diff --git a/CHANGELOG.md b/CHANGELOG.md index ce7253d31..1487b336e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,513 @@ +# 3.1.75 2023-12-27 + +### HuaweiCloud SDK AAD + +- _Features_ + - Support the following APIs: + - `CreateAadDomain` + - `CreateCertificate` + - `ModifyDomainWebSwitch` + - `ListSourceIps` + - `AddBlackWhiteIpList` + - `DeleteBlackWhiteIpList` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK APIG + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListMetricData** + - changes of response param + - `* datapoints.timestamp: int32 -> int64` + - **ListApisV2** + - changes of request param + - `+ return_data_mode: enum value [brief,include_group,include_group_backend]` + +### HuaweiCloud SDK CodeArtsArtifact + +- _Features_ + - Support the following APIs: + - `BatchRestoreRepo` + - `BatchDeleteTrashes` + - `CreateMavenRepo` + - `ShowProjectList` + - `ModifyRepository` + - `ShowRepositoryInfo` + - `CreateDockerRepositories` + - `DeleteRepository` + - `ShowStorage` + - `ShowMavenInfo` + - `CreateProjectRelatedRepository` + - `SearchByChecksum` + - `SearchArtifacts` + - `ResetUserPassword` + - `ShowFileTree` + - `ListArtifactoryComponent` + - `ListAllRepositories` + - `ShowAudit` + - `ShowRepository` + - `ListArtifactoryStorageStatistic` + - `CreateAttention` + - `ListAttentions` + - `UpdateArtifactory` + - `CreateArtifactory` + - `DeleteArtifactFile` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK CSMS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListResourceInstances** + - changes of response param + - `+ resources.sys_tags` + +### HuaweiCloud SDK DataArtsStudio + +- _Features_ + - Support the APIs `ListFactoryJobs`, `CreateFactoryJob`, `ListFactoryAlarmInfo` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DCS + +- _Features_ + - Support the APIs `ShowInstanceSslDetail`, `UpdateSslSwitch`, `DownloadSslCert` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DDS + +- _Features_ + - Support the API `ShowClientNetwork` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK DGC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateJob** + - changes of request param + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - **ShowJob** + - changes of response param + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - **UpdateJob** + - changes of request param + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - **CreateSupplementdata** + - changes of request param + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - `+ dependJobs.singleNodeJobFlag` + - `+ dependJobs.singleNodeJobType` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _Features_ + - Support the API `ListJobs` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK HSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowAssetStatistic** + - changes of response param + - `+ environment_num` + - `+ core_conf_file_num` + - **ListPorts** + - changes of response param + - `+ data_list.agent_id` + - `+ data_list.container_id` + - **ListSwrImageRepository** + - changes of response param + - `+ data_list.instance_name` + - `+ data_list.instance_id` + - `+ data_list.instance_url` + +### HuaweiCloud SDK Kafka + +- _Features_ + - Support the APIs `CreateShrinkageJob`, `ShowShrinkCheckResult` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK MetaStudio + +- _Features_ + - Support the following APIs: + - `ListDigitalHumanVideo` + - `ListInteractionRuleGroups` + - `CreateInteractionRuleGroup` + - `UpdateInteractionRuleGroup` + - `DeleteInteractionRuleGroup` + - `CheckTextLanguage` + - `CreateFacialAnimations` + - `ListFacialAnimationsData` +- _Bug Fix_ + - None +- _Change_ + - **CreateFile** + - changes of response param + - `- file_id` + - `- upload_url` + - **ExecuteSmartLiveCommand** + - changes of request param + - `+ review_config` + - `+ command: enum value [GET_CURRENT_PLAYING_SCRIPTS]` + - **CreatePictureModelingByUrlJob** + - changes of request param + - `- X-User-Privilege` + - **ListAssetSummary** + - changes of response param + - `+ asset_list.asset_type: enum value [AUDIO]` + - **Create2DDigitalHumanVideo** + - changes of request param + - `+ review_config` + - `+ callback_config` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - **Show2DDigitalHumanVideo** + - changes of response param + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - **CreatePhotoDigitalHumanVideo** + - changes of request param + - `+ review_config` + - `- video_config.disable_system_watermark` + - **ShowPhotoDigitalHumanVideo** + - changes of response param + - `- video_config.disable_system_watermark` + - **LiveEventReport** + - changes of request param + - `+ review_config` + - **CreateTtsa** + - changes of request param + - `- X-User-Privilege` + - `+ script_type` + - `+ audio_file_download_url` + - `+ job_type` + - `- parent_job_id` + - `- auto_motion` + - **ListTtsaJobs** + - changes of response param + - `+ ttsa_jobs.job_type` + - **ListTtsaData** + - changes of response param + - `+ start_time` + - `+ end_time` + - `+ is_tail` + - **ListStyles** + - changes of response param + - `- styles.extra_meta.edit_value_items` + - `- styles.extra_meta.edit_color_items` + - `- styles.extra_meta.edit_components` + - `- styles.extra_meta.modelling_algorithm` + - **CreateDigitalHumanBusinessCard** + - changes of request param + - `+ introduction_type` + - `+ introduction_audio_asset_id` + - `+ review_config` + - changes of response param + - `- job_id` + - **UpdateDigitalHumanBusinessCard** + - changes of request param + - `+ introduction_type` + - `+ introduction_audio_asset_id` + - `+ review_config` + - changes of response param + - `- job_id` + - **ShowDigitalHumanBusinessCard** + - changes of response param + - `+ introduction_audio_asset_id` + - `+ introduction_type` + - **ShowSmartLive** + - changes of response param + - `+ stream_duration` + - `+ block_reason` + - `+ live_event_callback_config` + - `+ state: enum value [BLOCKED]` + - `+ rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ListVideoScripts** + - changes of request param + - `+ name` + - `+ script_catalog` + - `+ view_mode` + - changes of response param + - `+ video_scripts.script_cover_url` + - `+ video_scripts.script_type` + - `+ video_scripts.text` + - `- video_scripts.video_making_type` + - `- video_scripts.human_image` + - **ShowVideoScript** + - changes of response param + - `+ script_cover_url` + - `+ review_config` + - `- video_making_type` + - `- human_image` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `* shoot_scripts: list -> list` + - **CreatePictureModelingJob** + - changes of request param + - `- X-User-Privilege` + - changes of response param + - `- model_asset_id` + - `- job_id` + - **ShowVideoMotionCaptureJob** + - changes of response param + - `+ input_info.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ShowAsset** + - changes of response param + - `+ reason` + - `+ is_need_generate_cover` + - `+ fail_type` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ files.state` + - `+ files.reason` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - **UpdateDigitalAsset** + - changes of request param + - `+ is_need_generate_cover` + - `+ review_config` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - changes of response param + - `+ reason` + - `+ is_need_generate_cover` + - `+ fail_type` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ files.state` + - `+ files.reason` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - **ListSmartLiveRooms** + - changes of request param + - `+ room_type` + - changes of response param + - `+ smart_live_rooms.room_type` + - `+ smart_live_rooms.room_state` + - `+ smart_live_rooms.error_info` + - `+ smart_live_rooms.model_infos.backup_model_asset_ids` + - **CreateSmartLiveRoom** + - changes of request param + - `+ stream_keys` + - `+ backup_model_asset_ids` + - `+ live_event_callback_config` + - `+ review_config` + - `+ shared_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - **ShowSmartLiveRoom** + - changes of response param + - `+ backup_model_asset_ids` + - `+ error_info` + - `+ stream_keys` + - `+ shared_config` + - `+ live_event_callback_config` + - `+ room_state` + - `+ review_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - **UpdateSmartLiveRoom** + - changes of request param + - `+ stream_keys` + - `+ backup_model_asset_ids` + - `+ live_event_callback_config` + - `+ review_config` + - `+ shared_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - changes of response param + - `+ backup_model_asset_ids` + - `+ error_info` + - `+ stream_keys` + - `+ shared_config` + - `+ live_event_callback_config` + - `+ room_state` + - `+ review_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - **StartSmartLive** + - changes of request param + - `+ stream_keys` + - `+ interaction_callback_url` + - `+ live_event_callback_config` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ play_policy.random_play_mode` + - changes of response param + - `+ live_warning_info` + - `+ live_event_callback_config` + - `+ rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ListSmartLive** + - changes of response param + - `+ stream_duration` + - `+ block_reason` + - `+ live_event_callback_config` + - `+ smart_live_jobs.live_event_callback_config` + - `+ smart_live_jobs.stream_duration` + - `+ smart_live_jobs.block_reason` + - `+ smart_live_jobs.state: enum value [BLOCKED]` + - `+ smart_live_jobs.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **CreateVideoMotionCaptureJob** + - changes of request param + - `+ input_info.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - changes of response param + - `- rtc_room_info` + - `- job_id` + - `+ rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ListVideoMotionCaptureJobs** + - changes of response param + - `+ video_motion_capture_jobs.input_info.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **CreateDigitalAsset** + - changes of request param + - `+ is_need_generate_cover` + - `+ review_config` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - **ListAssets** + - changes of request param + - `- asset_manage_type` + - `- X-User-MePrivilege` + - changes of response param + - `+ reason` + - `+ is_need_generate_cover` + - `+ fail_type` + - `+ assets.fail_type` + - `+ assets.reason` + - `+ assets.is_need_generate_cover` + - `+ assets.asset_type: enum value [AUDIO]` + - `+ assets.system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ assets.files.state` + - `+ assets.files.reason` + - `+ assets.asset_extra_meta.voice_model_meta.speed_ratio` + - `+ assets.asset_extra_meta.voice_model_meta.volume_ratio` + - `- assets.asset_extra_meta.voice_model_meta.tts_mode` + - `- assets.asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ assets.asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ assets.asset_extra_meta.human_model_2d_meta.model_resolution` + - `- assets.asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ assets.asset_extra_meta.ppt_meta.error_info` + +### HuaweiCloud SDK RDS + +- _Features_ + - Support the APIs `SetInstancesNewDbShrink`, `StopBackup` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.74 2023-12-22 ### HuaweiCloud SDK Config diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 83cce5449..9a6e2a674 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,513 @@ +# 3.1.75 2023-12-27 + +### HuaweiCloud SDK AAD + +- _新增特性_ + - 支持以下接口: + - `CreateAadDomain` + - `CreateCertificate` + - `ModifyDomainWebSwitch` + - `ListSourceIps` + - `AddBlackWhiteIpList` + - `DeleteBlackWhiteIpList` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK APIG + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListMetricData** + - 响应参数变更 + - `* datapoints.timestamp: int32 -> int64` + - **ListApisV2** + - 请求参数变更 + - `+ return_data_mode: enum value [brief,include_group,include_group_backend]` + +### HuaweiCloud SDK CodeArtsArtifact + +- _新增特性_ + - 支持以下接口: + - `BatchRestoreRepo` + - `BatchDeleteTrashes` + - `CreateMavenRepo` + - `ShowProjectList` + - `ModifyRepository` + - `ShowRepositoryInfo` + - `CreateDockerRepositories` + - `DeleteRepository` + - `ShowStorage` + - `ShowMavenInfo` + - `CreateProjectRelatedRepository` + - `SearchByChecksum` + - `SearchArtifacts` + - `ResetUserPassword` + - `ShowFileTree` + - `ListArtifactoryComponent` + - `ListAllRepositories` + - `ShowAudit` + - `ShowRepository` + - `ListArtifactoryStorageStatistic` + - `CreateAttention` + - `ListAttentions` + - `UpdateArtifactory` + - `CreateArtifactory` + - `DeleteArtifactFile` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK CSMS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListResourceInstances** + - 响应参数变更 + - `+ resources.sys_tags` + +### HuaweiCloud SDK DataArtsStudio + +- _新增特性_ + - 支持接口`ListFactoryJobs`、`CreateFactoryJob`、`ListFactoryAlarmInfo` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DCS + +- _新增特性_ + - 支持接口`ShowInstanceSslDetail`、`UpdateSslSwitch`、`DownloadSslCert` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DDS + +- _新增特性_ + - 支持接口`ShowClientNetwork` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK DGC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateJob** + - 请求参数变更 + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - **ShowJob** + - 响应参数变更 + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - **UpdateJob** + - 请求参数变更 + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - **CreateSupplementdata** + - 请求参数变更 + - `+ singleNodeJobFlag` + - `+ singleNodeJobType` + - `+ dependJobs.singleNodeJobFlag` + - `+ dependJobs.singleNodeJobType` + +### HuaweiCloud SDK GaussDBforNoSQL + +- _新增特性_ + - 支持接口`ListJobs` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK HSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowAssetStatistic** + - 响应参数变更 + - `+ environment_num` + - `+ core_conf_file_num` + - **ListPorts** + - 响应参数变更 + - `+ data_list.agent_id` + - `+ data_list.container_id` + - **ListSwrImageRepository** + - 响应参数变更 + - `+ data_list.instance_name` + - `+ data_list.instance_id` + - `+ data_list.instance_url` + +### HuaweiCloud SDK Kafka + +- _新增特性_ + - 支持接口`CreateShrinkageJob`、`ShowShrinkCheckResult` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK MetaStudio + +- _新增特性_ + - 支持以下接口: + - `ListDigitalHumanVideo` + - `ListInteractionRuleGroups` + - `CreateInteractionRuleGroup` + - `UpdateInteractionRuleGroup` + - `DeleteInteractionRuleGroup` + - `CheckTextLanguage` + - `CreateFacialAnimations` + - `ListFacialAnimationsData` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateFile** + - 响应参数变更 + - `- file_id` + - `- upload_url` + - **ExecuteSmartLiveCommand** + - 请求参数变更 + - `+ review_config` + - `+ command: enum value [GET_CURRENT_PLAYING_SCRIPTS]` + - **CreatePictureModelingByUrlJob** + - 请求参数变更 + - `- X-User-Privilege` + - **ListAssetSummary** + - 响应参数变更 + - `+ asset_list.asset_type: enum value [AUDIO]` + - **Create2DDigitalHumanVideo** + - 请求参数变更 + - `+ review_config` + - `+ callback_config` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - **Show2DDigitalHumanVideo** + - 响应参数变更 + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - **CreatePhotoDigitalHumanVideo** + - 请求参数变更 + - `+ review_config` + - `- video_config.disable_system_watermark` + - **ShowPhotoDigitalHumanVideo** + - 响应参数变更 + - `- video_config.disable_system_watermark` + - **LiveEventReport** + - 请求参数变更 + - `+ review_config` + - **CreateTtsa** + - 请求参数变更 + - `- X-User-Privilege` + - `+ script_type` + - `+ audio_file_download_url` + - `+ job_type` + - `- parent_job_id` + - `- auto_motion` + - **ListTtsaJobs** + - 响应参数变更 + - `+ ttsa_jobs.job_type` + - **ListTtsaData** + - 响应参数变更 + - `+ start_time` + - `+ end_time` + - `+ is_tail` + - **ListStyles** + - 响应参数变更 + - `- styles.extra_meta.edit_value_items` + - `- styles.extra_meta.edit_color_items` + - `- styles.extra_meta.edit_components` + - `- styles.extra_meta.modelling_algorithm` + - **CreateDigitalHumanBusinessCard** + - 请求参数变更 + - `+ introduction_type` + - `+ introduction_audio_asset_id` + - `+ review_config` + - 响应参数变更 + - `- job_id` + - **UpdateDigitalHumanBusinessCard** + - 请求参数变更 + - `+ introduction_type` + - `+ introduction_audio_asset_id` + - `+ review_config` + - 响应参数变更 + - `- job_id` + - **ShowDigitalHumanBusinessCard** + - 响应参数变更 + - `+ introduction_audio_asset_id` + - `+ introduction_type` + - **ShowSmartLive** + - 响应参数变更 + - `+ stream_duration` + - `+ block_reason` + - `+ live_event_callback_config` + - `+ state: enum value [BLOCKED]` + - `+ rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ListVideoScripts** + - 请求参数变更 + - `+ name` + - `+ script_catalog` + - `+ view_mode` + - 响应参数变更 + - `+ video_scripts.script_cover_url` + - `+ video_scripts.script_type` + - `+ video_scripts.text` + - `- video_scripts.video_making_type` + - `- video_scripts.human_image` + - **ShowVideoScript** + - 响应参数变更 + - `+ script_cover_url` + - `+ review_config` + - `- video_making_type` + - `- human_image` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `* shoot_scripts: list -> list` + - **CreatePictureModelingJob** + - 请求参数变更 + - `- X-User-Privilege` + - 响应参数变更 + - `- model_asset_id` + - `- job_id` + - **ShowVideoMotionCaptureJob** + - 响应参数变更 + - `+ input_info.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ShowAsset** + - 响应参数变更 + - `+ reason` + - `+ is_need_generate_cover` + - `+ fail_type` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ files.state` + - `+ files.reason` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - **UpdateDigitalAsset** + - 请求参数变更 + - `+ is_need_generate_cover` + - `+ review_config` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - 响应参数变更 + - `+ reason` + - `+ is_need_generate_cover` + - `+ fail_type` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ files.state` + - `+ files.reason` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - **ListSmartLiveRooms** + - 请求参数变更 + - `+ room_type` + - 响应参数变更 + - `+ smart_live_rooms.room_type` + - `+ smart_live_rooms.room_state` + - `+ smart_live_rooms.error_info` + - `+ smart_live_rooms.model_infos.backup_model_asset_ids` + - **CreateSmartLiveRoom** + - 请求参数变更 + - `+ stream_keys` + - `+ backup_model_asset_ids` + - `+ live_event_callback_config` + - `+ review_config` + - `+ shared_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - **ShowSmartLiveRoom** + - 响应参数变更 + - `+ backup_model_asset_ids` + - `+ error_info` + - `+ stream_keys` + - `+ shared_config` + - `+ live_event_callback_config` + - `+ room_state` + - `+ review_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - **UpdateSmartLiveRoom** + - 请求参数变更 + - `+ stream_keys` + - `+ backup_model_asset_ids` + - `+ live_event_callback_config` + - `+ review_config` + - `+ shared_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - 响应参数变更 + - `+ backup_model_asset_ids` + - `+ error_info` + - `+ stream_keys` + - `+ shared_config` + - `+ live_event_callback_config` + - `+ room_state` + - `+ review_config` + - `+ room_type: enum value [TEMPLATE]` + - `+ play_policy.random_play_mode` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ scene_scripts.layer_config.group_id` + - `+ scene_scripts.layer_config.layer_type: enum value [TEXT]` + - `+ interaction_rules.rule_index` + - `+ interaction_rules.review_config` + - `+ interaction_rules.trigger.layer_config` + - `+ interaction_rules.trigger.reply_audios` + - `+ interaction_rules.trigger.reply_mode: enum value [CALLBACK,SHOW_LAYER]` + - **StartSmartLive** + - 请求参数变更 + - `+ stream_keys` + - `+ interaction_callback_url` + - `+ live_event_callback_config` + - `+ video_config.subtitle_config` + - `- video_config.disable_system_watermark` + - `+ video_config.codec: enum value [VP9]` + - `+ play_policy.random_play_mode` + - 响应参数变更 + - `+ live_warning_info` + - `+ live_event_callback_config` + - `+ rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ListSmartLive** + - 响应参数变更 + - `+ stream_duration` + - `+ block_reason` + - `+ live_event_callback_config` + - `+ smart_live_jobs.live_event_callback_config` + - `+ smart_live_jobs.stream_duration` + - `+ smart_live_jobs.block_reason` + - `+ smart_live_jobs.state: enum value [BLOCKED]` + - `+ smart_live_jobs.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **CreateVideoMotionCaptureJob** + - 请求参数变更 + - `+ input_info.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - 响应参数变更 + - `- rtc_room_info` + - `- job_id` + - `+ rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **ListVideoMotionCaptureJobs** + - 响应参数变更 + - `+ video_motion_capture_jobs.input_info.rtc_room_info.users.user_type: enum value [INFERENCE_USER,END_USER]` + - **CreateDigitalAsset** + - 请求参数变更 + - `+ is_need_generate_cover` + - `+ review_config` + - `+ asset_type: enum value [AUDIO]` + - `+ system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ asset_extra_meta.voice_model_meta.speed_ratio` + - `+ asset_extra_meta.voice_model_meta.volume_ratio` + - `- asset_extra_meta.voice_model_meta.tts_mode` + - `- asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ asset_extra_meta.human_model_2d_meta.model_resolution` + - `- asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ asset_extra_meta.ppt_meta.error_info` + - **ListAssets** + - 请求参数变更 + - `- asset_manage_type` + - `- X-User-MePrivilege` + - 响应参数变更 + - `+ reason` + - `+ is_need_generate_cover` + - `+ fail_type` + - `+ assets.fail_type` + - `+ assets.reason` + - `+ assets.is_need_generate_cover` + - `+ assets.asset_type: enum value [AUDIO]` + - `+ assets.system_properties.key: enum value [MATERIAL_IMG,MATERIAL_VIDEO,BUSSINESS_CARD_VIDEO,TO_BE_TRANSLATED_VIDEO]` + - `+ assets.files.state` + - `+ assets.files.reason` + - `+ assets.asset_extra_meta.voice_model_meta.speed_ratio` + - `+ assets.asset_extra_meta.voice_model_meta.volume_ratio` + - `- assets.asset_extra_meta.voice_model_meta.tts_mode` + - `- assets.asset_extra_meta.voice_model_meta.external_voice_meta` + - `+ assets.asset_extra_meta.voice_model_meta.language: enum value [GER,fr,Kr,por,JPN,Ita,ESP,DBH,GT,GXH,HBH,SXH,SCH,YY,Russian,Filipino,Dutch,Indonesian,Vietnamese,Arabic,Turkish,Malay,Thai,Finnish]` + - `+ assets.asset_extra_meta.human_model_2d_meta.model_resolution` + - `- assets.asset_extra_meta.human_model_2d_meta.is_realtime_matting` + - `+ assets.asset_extra_meta.ppt_meta.error_info` + +### HuaweiCloud SDK RDS + +- _新增特性_ + - 支持接口`SetInstancesNewDbShrink`、`StopBackup` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.74 2023-12-22 ### HuaweiCloud SDK Config diff --git a/VERSION b/VERSION index e29564d45..a4a03d509 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.74 +3.1.75 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py index 6a0b4a5e5..6093c9540 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/__init__.py @@ -5,6 +5,8 @@ from __future__ import absolute_import from huaweicloudsdkaad.v1.aad_client import AadClient from huaweicloudsdkaad.v1.aad_async_client import AadAsyncClient +from huaweicloudsdkaad.v1.model.add_black_white_ip_list_request import AddBlackWhiteIpListRequest +from huaweicloudsdkaad.v1.model.add_black_white_ip_list_response import AddBlackWhiteIpListResponse from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_request import AddPolicyBlackAndWhiteIpListRequest from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_response import AddPolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.alarm_body import AlarmBody @@ -16,14 +18,23 @@ from huaweicloudsdkaad.v1.model.batch_delete_instance_ip_rule_request import Bat from huaweicloudsdkaad.v1.model.batch_delete_instance_ip_rule_response import BatchDeleteInstanceIpRuleResponse from huaweicloudsdkaad.v1.model.batch_id_body import BatchIdBody from huaweicloudsdkaad.v1.model.batch_transfer_rule_body import BatchTransferRuleBody +from huaweicloudsdkaad.v1.model.black_white_ip_list_request import BlackWhiteIpListRequest from huaweicloudsdkaad.v1.model.black_white_ip_request_body import BlackWhiteIpRequestBody from huaweicloudsdkaad.v1.model.block_list_blocking_list import BlockListBlockingList from huaweicloudsdkaad.v1.model.bw import Bw +from huaweicloudsdkaad.v1.model.cad_domain_switch_request import CadDomainSwitchRequest +from huaweicloudsdkaad.v1.model.certificate_body import CertificateBody +from huaweicloudsdkaad.v1.model.create_aad_domain_request import CreateAadDomainRequest +from huaweicloudsdkaad.v1.model.create_aad_domain_response import CreateAadDomainResponse +from huaweicloudsdkaad.v1.model.create_certificate_request import CreateCertificateRequest +from huaweicloudsdkaad.v1.model.create_certificate_response import CreateCertificateResponse from huaweicloudsdkaad.v1.model.create_policy_request import CreatePolicyRequest from huaweicloudsdkaad.v1.model.create_policy_request_body import CreatePolicyRequestBody from huaweicloudsdkaad.v1.model.create_policy_response import CreatePolicyResponse from huaweicloudsdkaad.v1.model.delete_alarm_config_request import DeleteAlarmConfigRequest from huaweicloudsdkaad.v1.model.delete_alarm_config_response import DeleteAlarmConfigResponse +from huaweicloudsdkaad.v1.model.delete_black_white_ip_list_request import DeleteBlackWhiteIpListRequest +from huaweicloudsdkaad.v1.model.delete_black_white_ip_list_response import DeleteBlackWhiteIpListResponse from huaweicloudsdkaad.v1.model.delete_policy_black_and_white_ip_list_request import DeletePolicyBlackAndWhiteIpListRequest from huaweicloudsdkaad.v1.model.delete_policy_black_and_white_ip_list_response import DeletePolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.delete_policy_request import DeletePolicyRequest @@ -35,6 +46,7 @@ from huaweicloudsdkaad.v1.model.domain_real_server_info import DomainRealServerI from huaweicloudsdkaad.v1.model.execute_unblock_ip_request import ExecuteUnblockIpRequest from huaweicloudsdkaad.v1.model.execute_unblock_ip_request_body import ExecuteUnblockIpRequestBody from huaweicloudsdkaad.v1.model.execute_unblock_ip_response import ExecuteUnblockIpResponse +from huaweicloudsdkaad.v1.model.host_body import HostBody from huaweicloudsdkaad.v1.model.instance_info import InstanceInfo from huaweicloudsdkaad.v1.model.instance_ip_info import InstanceIpInfo from huaweicloudsdkaad.v1.model.ip_binding_body import IpBindingBody @@ -57,10 +69,14 @@ from huaweicloudsdkaad.v1.model.list_policy_request import ListPolicyRequest from huaweicloudsdkaad.v1.model.list_policy_response import ListPolicyResponse from huaweicloudsdkaad.v1.model.list_protected_ip_request import ListProtectedIpRequest from huaweicloudsdkaad.v1.model.list_protected_ip_response import ListProtectedIpResponse +from huaweicloudsdkaad.v1.model.list_source_ips_request import ListSourceIpsRequest +from huaweicloudsdkaad.v1.model.list_source_ips_response import ListSourceIpsResponse from huaweicloudsdkaad.v1.model.list_unblock_quota_statistics_request import ListUnblockQuotaStatisticsRequest from huaweicloudsdkaad.v1.model.list_unblock_quota_statistics_response import ListUnblockQuotaStatisticsResponse from huaweicloudsdkaad.v1.model.list_unbound_protected_ip_request import ListUnboundProtectedIpRequest from huaweicloudsdkaad.v1.model.list_unbound_protected_ip_response import ListUnboundProtectedIpResponse +from huaweicloudsdkaad.v1.model.modify_domain_web_switch_request import ModifyDomainWebSwitchRequest +from huaweicloudsdkaad.v1.model.modify_domain_web_switch_response import ModifyDomainWebSwitchResponse from huaweicloudsdkaad.v1.model.package_response import PackageResponse from huaweicloudsdkaad.v1.model.policy_response import PolicyResponse from huaweicloudsdkaad.v1.model.pop_policy import PopPolicy diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py index 29dbd77ae..ec23ac58b 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_async_client.py @@ -32,6 +32,71 @@ class AadAsyncClient(Client): return client_builder + def add_black_white_ip_list_async(self, request): + """高防实例添加黑白名单 + + 高防实例添加黑白名单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for AddBlackWhiteIpList + :type request: :class:`huaweicloudsdkaad.v1.AddBlackWhiteIpListRequest` + :rtype: :class:`huaweicloudsdkaad.v1.AddBlackWhiteIpListResponse` + """ + http_info = self._add_black_white_ip_list_http_info(request) + return self._call_api(**http_info) + + def add_black_white_ip_list_async_invoker(self, request): + http_info = self._add_black_white_ip_list_http_info(request) + return AsyncInvoker(self, http_info) + + def _add_black_white_ip_list_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/bwlist", + "request_type": request.__class__.__name__, + "response_type": "AddBlackWhiteIpListResponse" + } + + 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 add_policy_black_and_white_ip_list_async(self, request): """策略添加黑白名单 @@ -304,6 +369,136 @@ class AadAsyncClient(Client): return http_info + def create_aad_domain_async(self, request): + """创建防护域名 + + 创建防护域名 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAadDomain + :type request: :class:`huaweicloudsdkaad.v1.CreateAadDomainRequest` + :rtype: :class:`huaweicloudsdkaad.v1.CreateAadDomainResponse` + """ + http_info = self._create_aad_domain_http_info(request) + return self._call_api(**http_info) + + def create_aad_domain_async_invoker(self, request): + http_info = self._create_aad_domain_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_aad_domain_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/domains", + "request_type": request.__class__.__name__, + "response_type": "CreateAadDomainResponse" + } + + 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_certificate_async(self, request): + """上传/修改域名对应证书 + + 上传/修改域名对应证书 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateCertificate + :type request: :class:`huaweicloudsdkaad.v1.CreateCertificateRequest` + :rtype: :class:`huaweicloudsdkaad.v1.CreateCertificateResponse` + """ + http_info = self._create_certificate_http_info(request) + return self._call_api(**http_info) + + def create_certificate_async_invoker(self, request): + http_info = self._create_certificate_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_certificate_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/domains/certificate", + "request_type": request.__class__.__name__, + "response_type": "CreateCertificateResponse" + } + + 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_policy_async(self, request): """创建策略 @@ -432,6 +627,71 @@ class AadAsyncClient(Client): return http_info + def delete_black_white_ip_list_async(self, request): + """高防实例删除黑白名单 + + 高防实例删除黑白名单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteBlackWhiteIpList + :type request: :class:`huaweicloudsdkaad.v1.DeleteBlackWhiteIpListRequest` + :rtype: :class:`huaweicloudsdkaad.v1.DeleteBlackWhiteIpListResponse` + """ + http_info = self._delete_black_white_ip_list_http_info(request) + return self._call_api(**http_info) + + def delete_black_white_ip_list_async_invoker(self, request): + http_info = self._delete_black_white_ip_list_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_black_white_ip_list_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/aad/external/bwlist", + "request_type": request.__class__.__name__, + "response_type": "DeleteBlackWhiteIpListResponse" + } + + 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_policy_async(self, request): """删除策略 @@ -1167,6 +1427,69 @@ class AadAsyncClient(Client): return http_info + def list_source_ips_async(self, request): + """查询高防回源IP段列表 + + 查询高防回源IP段列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListSourceIps + :type request: :class:`huaweicloudsdkaad.v1.ListSourceIpsRequest` + :rtype: :class:`huaweicloudsdkaad.v1.ListSourceIpsResponse` + """ + http_info = self._list_source_ips_http_info(request) + return self._call_api(**http_info) + + def list_source_ips_async_invoker(self, request): + http_info = self._list_source_ips_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_source_ips_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/aad/external/source-ip", + "request_type": request.__class__.__name__, + "response_type": "ListSourceIpsResponse" + } + + 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 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_unbound_protected_ip_async(self, request): """查询可绑定的防护对象列表 @@ -1236,6 +1559,71 @@ class AadAsyncClient(Client): return http_info + def modify_domain_web_switch_async(self, request): + """修改域名WEB基础防护开关/CC防护开关 + + 修改域名WEB基础防护开关/CC防护开关 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ModifyDomainWebSwitch + :type request: :class:`huaweicloudsdkaad.v1.ModifyDomainWebSwitchRequest` + :rtype: :class:`huaweicloudsdkaad.v1.ModifyDomainWebSwitchResponse` + """ + http_info = self._modify_domain_web_switch_http_info(request) + return self._call_api(**http_info) + + def modify_domain_web_switch_async_invoker(self, request): + http_info = self._modify_domain_web_switch_http_info(request) + return AsyncInvoker(self, http_info) + + def _modify_domain_web_switch_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/domains/switch", + "request_type": request.__class__.__name__, + "response_type": "ModifyDomainWebSwitchResponse" + } + + 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 show_alarm_config_async(self, request): """查询告警配置 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py index 7a34f24db..dc95a95a2 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/aad_client.py @@ -32,6 +32,71 @@ class AadClient(Client): return client_builder + def add_black_white_ip_list(self, request): + """高防实例添加黑白名单 + + 高防实例添加黑白名单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for AddBlackWhiteIpList + :type request: :class:`huaweicloudsdkaad.v1.AddBlackWhiteIpListRequest` + :rtype: :class:`huaweicloudsdkaad.v1.AddBlackWhiteIpListResponse` + """ + http_info = self._add_black_white_ip_list_http_info(request) + return self._call_api(**http_info) + + def add_black_white_ip_list_invoker(self, request): + http_info = self._add_black_white_ip_list_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _add_black_white_ip_list_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/bwlist", + "request_type": request.__class__.__name__, + "response_type": "AddBlackWhiteIpListResponse" + } + + 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 add_policy_black_and_white_ip_list(self, request): """策略添加黑白名单 @@ -304,6 +369,136 @@ class AadClient(Client): return http_info + def create_aad_domain(self, request): + """创建防护域名 + + 创建防护域名 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAadDomain + :type request: :class:`huaweicloudsdkaad.v1.CreateAadDomainRequest` + :rtype: :class:`huaweicloudsdkaad.v1.CreateAadDomainResponse` + """ + http_info = self._create_aad_domain_http_info(request) + return self._call_api(**http_info) + + def create_aad_domain_invoker(self, request): + http_info = self._create_aad_domain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_aad_domain_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/domains", + "request_type": request.__class__.__name__, + "response_type": "CreateAadDomainResponse" + } + + 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_certificate(self, request): + """上传/修改域名对应证书 + + 上传/修改域名对应证书 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateCertificate + :type request: :class:`huaweicloudsdkaad.v1.CreateCertificateRequest` + :rtype: :class:`huaweicloudsdkaad.v1.CreateCertificateResponse` + """ + http_info = self._create_certificate_http_info(request) + return self._call_api(**http_info) + + def create_certificate_invoker(self, request): + http_info = self._create_certificate_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_certificate_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/domains/certificate", + "request_type": request.__class__.__name__, + "response_type": "CreateCertificateResponse" + } + + 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_policy(self, request): """创建策略 @@ -432,6 +627,71 @@ class AadClient(Client): return http_info + def delete_black_white_ip_list(self, request): + """高防实例删除黑白名单 + + 高防实例删除黑白名单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteBlackWhiteIpList + :type request: :class:`huaweicloudsdkaad.v1.DeleteBlackWhiteIpListRequest` + :rtype: :class:`huaweicloudsdkaad.v1.DeleteBlackWhiteIpListResponse` + """ + http_info = self._delete_black_white_ip_list_http_info(request) + return self._call_api(**http_info) + + def delete_black_white_ip_list_invoker(self, request): + http_info = self._delete_black_white_ip_list_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_black_white_ip_list_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/aad/external/bwlist", + "request_type": request.__class__.__name__, + "response_type": "DeleteBlackWhiteIpListResponse" + } + + 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_policy(self, request): """删除策略 @@ -1167,6 +1427,69 @@ class AadClient(Client): return http_info + def list_source_ips(self, request): + """查询高防回源IP段列表 + + 查询高防回源IP段列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListSourceIps + :type request: :class:`huaweicloudsdkaad.v1.ListSourceIpsRequest` + :rtype: :class:`huaweicloudsdkaad.v1.ListSourceIpsResponse` + """ + http_info = self._list_source_ips_http_info(request) + return self._call_api(**http_info) + + def list_source_ips_invoker(self, request): + http_info = self._list_source_ips_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_source_ips_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/aad/external/source-ip", + "request_type": request.__class__.__name__, + "response_type": "ListSourceIpsResponse" + } + + 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 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_unbound_protected_ip(self, request): """查询可绑定的防护对象列表 @@ -1236,6 +1559,71 @@ class AadClient(Client): return http_info + def modify_domain_web_switch(self, request): + """修改域名WEB基础防护开关/CC防护开关 + + 修改域名WEB基础防护开关/CC防护开关 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ModifyDomainWebSwitch + :type request: :class:`huaweicloudsdkaad.v1.ModifyDomainWebSwitchRequest` + :rtype: :class:`huaweicloudsdkaad.v1.ModifyDomainWebSwitchResponse` + """ + http_info = self._modify_domain_web_switch_http_info(request) + return self._call_api(**http_info) + + def modify_domain_web_switch_invoker(self, request): + http_info = self._modify_domain_web_switch_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _modify_domain_web_switch_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/aad/external/domains/switch", + "request_type": request.__class__.__name__, + "response_type": "ModifyDomainWebSwitchResponse" + } + + 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 show_alarm_config(self, request): """查询告警配置 diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py index a2dd2b944..38e76cf6a 100644 --- a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/__init__.py @@ -3,6 +3,8 @@ from __future__ import absolute_import # import models into model package +from huaweicloudsdkaad.v1.model.add_black_white_ip_list_request import AddBlackWhiteIpListRequest +from huaweicloudsdkaad.v1.model.add_black_white_ip_list_response import AddBlackWhiteIpListResponse from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_request import AddPolicyBlackAndWhiteIpListRequest from huaweicloudsdkaad.v1.model.add_policy_black_and_white_ip_list_response import AddPolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.alarm_body import AlarmBody @@ -14,14 +16,23 @@ from huaweicloudsdkaad.v1.model.batch_delete_instance_ip_rule_request import Bat from huaweicloudsdkaad.v1.model.batch_delete_instance_ip_rule_response import BatchDeleteInstanceIpRuleResponse from huaweicloudsdkaad.v1.model.batch_id_body import BatchIdBody from huaweicloudsdkaad.v1.model.batch_transfer_rule_body import BatchTransferRuleBody +from huaweicloudsdkaad.v1.model.black_white_ip_list_request import BlackWhiteIpListRequest from huaweicloudsdkaad.v1.model.black_white_ip_request_body import BlackWhiteIpRequestBody from huaweicloudsdkaad.v1.model.block_list_blocking_list import BlockListBlockingList from huaweicloudsdkaad.v1.model.bw import Bw +from huaweicloudsdkaad.v1.model.cad_domain_switch_request import CadDomainSwitchRequest +from huaweicloudsdkaad.v1.model.certificate_body import CertificateBody +from huaweicloudsdkaad.v1.model.create_aad_domain_request import CreateAadDomainRequest +from huaweicloudsdkaad.v1.model.create_aad_domain_response import CreateAadDomainResponse +from huaweicloudsdkaad.v1.model.create_certificate_request import CreateCertificateRequest +from huaweicloudsdkaad.v1.model.create_certificate_response import CreateCertificateResponse from huaweicloudsdkaad.v1.model.create_policy_request import CreatePolicyRequest from huaweicloudsdkaad.v1.model.create_policy_request_body import CreatePolicyRequestBody from huaweicloudsdkaad.v1.model.create_policy_response import CreatePolicyResponse from huaweicloudsdkaad.v1.model.delete_alarm_config_request import DeleteAlarmConfigRequest from huaweicloudsdkaad.v1.model.delete_alarm_config_response import DeleteAlarmConfigResponse +from huaweicloudsdkaad.v1.model.delete_black_white_ip_list_request import DeleteBlackWhiteIpListRequest +from huaweicloudsdkaad.v1.model.delete_black_white_ip_list_response import DeleteBlackWhiteIpListResponse from huaweicloudsdkaad.v1.model.delete_policy_black_and_white_ip_list_request import DeletePolicyBlackAndWhiteIpListRequest from huaweicloudsdkaad.v1.model.delete_policy_black_and_white_ip_list_response import DeletePolicyBlackAndWhiteIpListResponse from huaweicloudsdkaad.v1.model.delete_policy_request import DeletePolicyRequest @@ -33,6 +44,7 @@ from huaweicloudsdkaad.v1.model.domain_real_server_info import DomainRealServerI from huaweicloudsdkaad.v1.model.execute_unblock_ip_request import ExecuteUnblockIpRequest from huaweicloudsdkaad.v1.model.execute_unblock_ip_request_body import ExecuteUnblockIpRequestBody from huaweicloudsdkaad.v1.model.execute_unblock_ip_response import ExecuteUnblockIpResponse +from huaweicloudsdkaad.v1.model.host_body import HostBody from huaweicloudsdkaad.v1.model.instance_info import InstanceInfo from huaweicloudsdkaad.v1.model.instance_ip_info import InstanceIpInfo from huaweicloudsdkaad.v1.model.ip_binding_body import IpBindingBody @@ -55,10 +67,14 @@ from huaweicloudsdkaad.v1.model.list_policy_request import ListPolicyRequest from huaweicloudsdkaad.v1.model.list_policy_response import ListPolicyResponse from huaweicloudsdkaad.v1.model.list_protected_ip_request import ListProtectedIpRequest from huaweicloudsdkaad.v1.model.list_protected_ip_response import ListProtectedIpResponse +from huaweicloudsdkaad.v1.model.list_source_ips_request import ListSourceIpsRequest +from huaweicloudsdkaad.v1.model.list_source_ips_response import ListSourceIpsResponse from huaweicloudsdkaad.v1.model.list_unblock_quota_statistics_request import ListUnblockQuotaStatisticsRequest from huaweicloudsdkaad.v1.model.list_unblock_quota_statistics_response import ListUnblockQuotaStatisticsResponse from huaweicloudsdkaad.v1.model.list_unbound_protected_ip_request import ListUnboundProtectedIpRequest from huaweicloudsdkaad.v1.model.list_unbound_protected_ip_response import ListUnboundProtectedIpResponse +from huaweicloudsdkaad.v1.model.modify_domain_web_switch_request import ModifyDomainWebSwitchRequest +from huaweicloudsdkaad.v1.model.modify_domain_web_switch_response import ModifyDomainWebSwitchResponse from huaweicloudsdkaad.v1.model.package_response import PackageResponse from huaweicloudsdkaad.v1.model.policy_response import PolicyResponse from huaweicloudsdkaad.v1.model.pop_policy import PopPolicy diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/add_black_white_ip_list_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/add_black_white_ip_list_request.py new file mode 100644 index 000000000..5c3c0bce3 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/add_black_white_ip_list_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AddBlackWhiteIpListRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BlackWhiteIpListRequest' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """AddBlackWhiteIpListRequest + + The model defined in huaweicloud sdk + + :param body: Body of the AddBlackWhiteIpListRequest + :type body: :class:`huaweicloudsdkaad.v1.BlackWhiteIpListRequest` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this AddBlackWhiteIpListRequest. + + :return: The body of this AddBlackWhiteIpListRequest. + :rtype: :class:`huaweicloudsdkaad.v1.BlackWhiteIpListRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this AddBlackWhiteIpListRequest. + + :param body: The body of this AddBlackWhiteIpListRequest. + :type body: :class:`huaweicloudsdkaad.v1.BlackWhiteIpListRequest` + """ + 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, AddBlackWhiteIpListRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/add_black_white_ip_list_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/add_black_white_ip_list_response.py new file mode 100644 index 000000000..111a555e2 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/add_black_white_ip_list_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 AddBlackWhiteIpListResponse(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): + """AddBlackWhiteIpListResponse + + The model defined in huaweicloud sdk + + """ + + super(AddBlackWhiteIpListResponse, 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, AddBlackWhiteIpListResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/black_white_ip_list_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/black_white_ip_list_request.py new file mode 100644 index 000000000..51f8df49c --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/black_white_ip_list_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BlackWhiteIpListRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'type': 'str', + 'ips': 'list[str]' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'type': 'type', + 'ips': 'ips' + } + + def __init__(self, instance_id=None, type=None, ips=None): + """BlackWhiteIpListRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例id + :type instance_id: str + :param type: 规则类型。black - 黑名单, white - 白名单 + :type type: str + :param ips: ip列表 + :type ips: list[str] + """ + + + + self._instance_id = None + self._type = None + self._ips = None + self.discriminator = None + + self.instance_id = instance_id + self.type = type + self.ips = ips + + @property + def instance_id(self): + """Gets the instance_id of this BlackWhiteIpListRequest. + + 实例id + + :return: The instance_id of this BlackWhiteIpListRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this BlackWhiteIpListRequest. + + 实例id + + :param instance_id: The instance_id of this BlackWhiteIpListRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def type(self): + """Gets the type of this BlackWhiteIpListRequest. + + 规则类型。black - 黑名单, white - 白名单 + + :return: The type of this BlackWhiteIpListRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this BlackWhiteIpListRequest. + + 规则类型。black - 黑名单, white - 白名单 + + :param type: The type of this BlackWhiteIpListRequest. + :type type: str + """ + self._type = type + + @property + def ips(self): + """Gets the ips of this BlackWhiteIpListRequest. + + ip列表 + + :return: The ips of this BlackWhiteIpListRequest. + :rtype: list[str] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this BlackWhiteIpListRequest. + + ip列表 + + :param ips: The ips of this BlackWhiteIpListRequest. + :type ips: list[str] + """ + self._ips = ips + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlackWhiteIpListRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/cad_domain_switch_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/cad_domain_switch_request.py new file mode 100644 index 000000000..cc2420c90 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/cad_domain_switch_request.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CadDomainSwitchRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_id': 'str', + 'waf_switch': 'int', + 'cc_switch': 'int' + } + + attribute_map = { + 'domain_id': 'domain_id', + 'waf_switch': 'waf_switch', + 'cc_switch': 'cc_switch' + } + + def __init__(self, domain_id=None, waf_switch=None, cc_switch=None): + """CadDomainSwitchRequest + + The model defined in huaweicloud sdk + + :param domain_id: 域名id + :type domain_id: str + :param waf_switch: 是否开启WEB基础防护开关。0 - 开启, 1 - 关闭 + :type waf_switch: int + :param cc_switch: 是否开启CC防护开关。0 - 开启, 1 - 关闭。开启CC开关必须同时开启WEB基础防护开关 + :type cc_switch: int + """ + + + + self._domain_id = None + self._waf_switch = None + self._cc_switch = None + self.discriminator = None + + self.domain_id = domain_id + self.waf_switch = waf_switch + self.cc_switch = cc_switch + + @property + def domain_id(self): + """Gets the domain_id of this CadDomainSwitchRequest. + + 域名id + + :return: The domain_id of this CadDomainSwitchRequest. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this CadDomainSwitchRequest. + + 域名id + + :param domain_id: The domain_id of this CadDomainSwitchRequest. + :type domain_id: str + """ + self._domain_id = domain_id + + @property + def waf_switch(self): + """Gets the waf_switch of this CadDomainSwitchRequest. + + 是否开启WEB基础防护开关。0 - 开启, 1 - 关闭 + + :return: The waf_switch of this CadDomainSwitchRequest. + :rtype: int + """ + return self._waf_switch + + @waf_switch.setter + def waf_switch(self, waf_switch): + """Sets the waf_switch of this CadDomainSwitchRequest. + + 是否开启WEB基础防护开关。0 - 开启, 1 - 关闭 + + :param waf_switch: The waf_switch of this CadDomainSwitchRequest. + :type waf_switch: int + """ + self._waf_switch = waf_switch + + @property + def cc_switch(self): + """Gets the cc_switch of this CadDomainSwitchRequest. + + 是否开启CC防护开关。0 - 开启, 1 - 关闭。开启CC开关必须同时开启WEB基础防护开关 + + :return: The cc_switch of this CadDomainSwitchRequest. + :rtype: int + """ + return self._cc_switch + + @cc_switch.setter + def cc_switch(self, cc_switch): + """Sets the cc_switch of this CadDomainSwitchRequest. + + 是否开启CC防护开关。0 - 开启, 1 - 关闭。开启CC开关必须同时开启WEB基础防护开关 + + :param cc_switch: The cc_switch of this CadDomainSwitchRequest. + :type cc_switch: int + """ + self._cc_switch = cc_switch + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CadDomainSwitchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/certificate_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/certificate_body.py new file mode 100644 index 000000000..d0dfbe925 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/certificate_body.py @@ -0,0 +1,228 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CertificateBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'op_type': 'int', + 'cert_name': 'str', + 'cert_file': 'str', + 'cert_key_file': 'str', + 'domain_id': 'str' + } + + attribute_map = { + 'op_type': 'op_type', + 'cert_name': 'cert_name', + 'cert_file': 'cert_file', + 'cert_key_file': 'cert_key_file', + 'domain_id': 'domain_id' + } + + def __init__(self, op_type=None, cert_name=None, cert_file=None, cert_key_file=None, domain_id=None): + """CertificateBody + + The model defined in huaweicloud sdk + + :param op_type: 操作类型。0 - 上传, 1 - 更换 + :type op_type: int + :param cert_name: 证书名称 + :type cert_name: str + :param cert_file: 证书文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 + :type cert_file: str + :param cert_key_file: 私钥文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 + :type cert_key_file: str + :param domain_id: 域名id + :type domain_id: str + """ + + + + self._op_type = None + self._cert_name = None + self._cert_file = None + self._cert_key_file = None + self._domain_id = None + self.discriminator = None + + self.op_type = op_type + self.cert_name = cert_name + if cert_file is not None: + self.cert_file = cert_file + if cert_key_file is not None: + self.cert_key_file = cert_key_file + self.domain_id = domain_id + + @property + def op_type(self): + """Gets the op_type of this CertificateBody. + + 操作类型。0 - 上传, 1 - 更换 + + :return: The op_type of this CertificateBody. + :rtype: int + """ + return self._op_type + + @op_type.setter + def op_type(self, op_type): + """Sets the op_type of this CertificateBody. + + 操作类型。0 - 上传, 1 - 更换 + + :param op_type: The op_type of this CertificateBody. + :type op_type: int + """ + self._op_type = op_type + + @property + def cert_name(self): + """Gets the cert_name of this CertificateBody. + + 证书名称 + + :return: The cert_name of this CertificateBody. + :rtype: str + """ + return self._cert_name + + @cert_name.setter + def cert_name(self, cert_name): + """Sets the cert_name of this CertificateBody. + + 证书名称 + + :param cert_name: The cert_name of this CertificateBody. + :type cert_name: str + """ + self._cert_name = cert_name + + @property + def cert_file(self): + """Gets the cert_file of this CertificateBody. + + 证书文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 + + :return: The cert_file of this CertificateBody. + :rtype: str + """ + return self._cert_file + + @cert_file.setter + def cert_file(self, cert_file): + """Sets the cert_file of this CertificateBody. + + 证书文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 + + :param cert_file: The cert_file of this CertificateBody. + :type cert_file: str + """ + self._cert_file = cert_file + + @property + def cert_key_file(self): + """Gets the cert_key_file of this CertificateBody. + + 私钥文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 + + :return: The cert_key_file of this CertificateBody. + :rtype: str + """ + return self._cert_key_file + + @cert_key_file.setter + def cert_key_file(self, cert_key_file): + """Sets the cert_key_file of this CertificateBody. + + 私钥文件。上传新证书(op_type为0)时必填,更换为已有证书(op_type为1)时置空 + + :param cert_key_file: The cert_key_file of this CertificateBody. + :type cert_key_file: str + """ + self._cert_key_file = cert_key_file + + @property + def domain_id(self): + """Gets the domain_id of this CertificateBody. + + 域名id + + :return: The domain_id of this CertificateBody. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this CertificateBody. + + 域名id + + :param domain_id: The domain_id of this CertificateBody. + :type domain_id: str + """ + self._domain_id = domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CertificateBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_request.py new file mode 100644 index 000000000..82ed48958 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAadDomainRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'HostBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAadDomainRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateAadDomainRequest + :type body: :class:`huaweicloudsdkaad.v1.HostBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateAadDomainRequest. + + :return: The body of this CreateAadDomainRequest. + :rtype: :class:`huaweicloudsdkaad.v1.HostBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAadDomainRequest. + + :param body: The body of this CreateAadDomainRequest. + :type body: :class:`huaweicloudsdkaad.v1.HostBody` + """ + 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, CreateAadDomainRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_response.py new file mode 100644 index 000000000..34d18a196 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_aad_domain_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAadDomainResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'cname': 'str', + 'domain_id': 'str' + } + + attribute_map = { + 'cname': 'cname', + 'domain_id': 'domainId' + } + + def __init__(self, cname=None, domain_id=None): + """CreateAadDomainResponse + + The model defined in huaweicloud sdk + + :param cname: 高防提供的CNAME地址 + :type cname: str + :param domain_id: 域名id + :type domain_id: str + """ + + super(CreateAadDomainResponse, self).__init__() + + self._cname = None + self._domain_id = None + self.discriminator = None + + if cname is not None: + self.cname = cname + if domain_id is not None: + self.domain_id = domain_id + + @property + def cname(self): + """Gets the cname of this CreateAadDomainResponse. + + 高防提供的CNAME地址 + + :return: The cname of this CreateAadDomainResponse. + :rtype: str + """ + return self._cname + + @cname.setter + def cname(self, cname): + """Sets the cname of this CreateAadDomainResponse. + + 高防提供的CNAME地址 + + :param cname: The cname of this CreateAadDomainResponse. + :type cname: str + """ + self._cname = cname + + @property + def domain_id(self): + """Gets the domain_id of this CreateAadDomainResponse. + + 域名id + + :return: The domain_id of this CreateAadDomainResponse. + :rtype: str + """ + return self._domain_id + + @domain_id.setter + def domain_id(self, domain_id): + """Sets the domain_id of this CreateAadDomainResponse. + + 域名id + + :param domain_id: The domain_id of this CreateAadDomainResponse. + :type domain_id: str + """ + self._domain_id = domain_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateAadDomainResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_certificate_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_certificate_request.py new file mode 100644 index 000000000..8f257707a --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_certificate_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateCertificateRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'CertificateBody' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateCertificateRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateCertificateRequest + :type body: :class:`huaweicloudsdkaad.v1.CertificateBody` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateCertificateRequest. + + :return: The body of this CreateCertificateRequest. + :rtype: :class:`huaweicloudsdkaad.v1.CertificateBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateCertificateRequest. + + :param body: The body of this CreateCertificateRequest. + :type body: :class:`huaweicloudsdkaad.v1.CertificateBody` + """ + 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, CreateCertificateRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_certificate_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_certificate_response.py new file mode 100644 index 000000000..2831bafa9 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/create_certificate_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 CreateCertificateResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + } + + attribute_map = { + } + + def __init__(self): + """CreateCertificateResponse + + The model defined in huaweicloud sdk + + """ + + super(CreateCertificateResponse, 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, CreateCertificateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/delete_black_white_ip_list_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/delete_black_white_ip_list_request.py new file mode 100644 index 000000000..2afb8678d --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/delete_black_white_ip_list_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteBlackWhiteIpListRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'BlackWhiteIpListRequest' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteBlackWhiteIpListRequest + + The model defined in huaweicloud sdk + + :param body: Body of the DeleteBlackWhiteIpListRequest + :type body: :class:`huaweicloudsdkaad.v1.BlackWhiteIpListRequest` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteBlackWhiteIpListRequest. + + :return: The body of this DeleteBlackWhiteIpListRequest. + :rtype: :class:`huaweicloudsdkaad.v1.BlackWhiteIpListRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteBlackWhiteIpListRequest. + + :param body: The body of this DeleteBlackWhiteIpListRequest. + :type body: :class:`huaweicloudsdkaad.v1.BlackWhiteIpListRequest` + """ + 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, DeleteBlackWhiteIpListRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/delete_black_white_ip_list_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/delete_black_white_ip_list_response.py new file mode 100644 index 000000000..e76767e83 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/delete_black_white_ip_list_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 DeleteBlackWhiteIpListResponse(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): + """DeleteBlackWhiteIpListResponse + + The model defined in huaweicloud sdk + + """ + + super(DeleteBlackWhiteIpListResponse, 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, DeleteBlackWhiteIpListResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/host_body.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/host_body.py new file mode 100644 index 000000000..7904710e6 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/host_body.py @@ -0,0 +1,284 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class HostBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'enterprise_project_id': 'str', + 'vips': 'list[str]', + 'real_server_type': 'int', + 'port_http': 'list[int]', + 'port_https': 'list[int]', + 'real_server': 'str' + } + + attribute_map = { + 'domain_name': 'domain_name', + 'enterprise_project_id': 'enterprise_project_id', + 'vips': 'vips', + 'real_server_type': 'real_server_type', + 'port_http': 'port_http', + 'port_https': 'port_https', + 'real_server': 'real_server' + } + + def __init__(self, domain_name=None, enterprise_project_id=None, vips=None, real_server_type=None, port_http=None, port_https=None, real_server=None): + """HostBody + + The model defined in huaweicloud sdk + + :param domain_name: 域名 + :type domain_name: str + :param enterprise_project_id: 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 + :type enterprise_project_id: str + :param vips: 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 + :type vips: list[str] + :param real_server_type: 源站类型。 0 - 源站IP, 1 - 源站域名。 + :type real_server_type: int + :param port_http: HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 + :type port_http: list[int] + :param port_https: HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 + :type port_https: list[int] + :param real_server: 源站ip/源站域名 + :type real_server: str + """ + + + + self._domain_name = None + self._enterprise_project_id = None + self._vips = None + self._real_server_type = None + self._port_http = None + self._port_https = None + self._real_server = None + self.discriminator = None + + self.domain_name = domain_name + self.enterprise_project_id = enterprise_project_id + self.vips = vips + self.real_server_type = real_server_type + if port_http is not None: + self.port_http = port_http + if port_https is not None: + self.port_https = port_https + self.real_server = real_server + + @property + def domain_name(self): + """Gets the domain_name of this HostBody. + + 域名 + + :return: The domain_name of this HostBody. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this HostBody. + + 域名 + + :param domain_name: The domain_name of this HostBody. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def enterprise_project_id(self): + """Gets the enterprise_project_id of this HostBody. + + 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 + + :return: The enterprise_project_id of this HostBody. + :rtype: str + """ + return self._enterprise_project_id + + @enterprise_project_id.setter + def enterprise_project_id(self, enterprise_project_id): + """Sets the enterprise_project_id of this HostBody. + + 企业项目id,与接入的高防实例所属企业项目保持一致。可在华为云EPS服务中查看企业项目id,default企业项目id为\"0\"。 + + :param enterprise_project_id: The enterprise_project_id of this HostBody. + :type enterprise_project_id: str + """ + self._enterprise_project_id = enterprise_project_id + + @property + def vips(self): + """Gets the vips of this HostBody. + + 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 + + :return: The vips of this HostBody. + :rtype: list[str] + """ + return self._vips + + @vips.setter + def vips(self, vips): + """Sets the vips of this HostBody. + + 高防实例ip列表。多个高防实例ip必须属于同一企业项目。 + + :param vips: The vips of this HostBody. + :type vips: list[str] + """ + self._vips = vips + + @property + def real_server_type(self): + """Gets the real_server_type of this HostBody. + + 源站类型。 0 - 源站IP, 1 - 源站域名。 + + :return: The real_server_type of this HostBody. + :rtype: int + """ + return self._real_server_type + + @real_server_type.setter + def real_server_type(self, real_server_type): + """Sets the real_server_type of this HostBody. + + 源站类型。 0 - 源站IP, 1 - 源站域名。 + + :param real_server_type: The real_server_type of this HostBody. + :type real_server_type: int + """ + self._real_server_type = real_server_type + + @property + def port_http(self): + """Gets the port_http of this HostBody. + + HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 + + :return: The port_http of this HostBody. + :rtype: list[int] + """ + return self._port_http + + @port_http.setter + def port_http(self, port_http): + """Sets the port_http of this HostBody. + + HTTP端口,与port_https不能同时为空。DDoS高防支持的HTTP端口可在控制台查看。 + + :param port_http: The port_http of this HostBody. + :type port_http: list[int] + """ + self._port_http = port_http + + @property + def port_https(self): + """Gets the port_https of this HostBody. + + HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 + + :return: The port_https of this HostBody. + :rtype: list[int] + """ + return self._port_https + + @port_https.setter + def port_https(self, port_https): + """Sets the port_https of this HostBody. + + HTTPS端口,与port_http不能同时为空。DDoS高防支持的HTTPS端口可在控制台查看。 + + :param port_https: The port_https of this HostBody. + :type port_https: list[int] + """ + self._port_https = port_https + + @property + def real_server(self): + """Gets the real_server of this HostBody. + + 源站ip/源站域名 + + :return: The real_server of this HostBody. + :rtype: str + """ + return self._real_server + + @real_server.setter + def real_server(self, real_server): + """Sets the real_server of this HostBody. + + 源站ip/源站域名 + + :param real_server: The real_server of this HostBody. + :type real_server: str + """ + self._real_server = real_server + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, HostBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/list_source_ips_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/list_source_ips_request.py new file mode 100644 index 000000000..bf32fba17 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/list_source_ips_request.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListSourceIpsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ListSourceIpsRequest + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceIpsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/list_source_ips_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/list_source_ips_response.py new file mode 100644 index 000000000..b44606e00 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/list_source_ips_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 ListSourceIpsResponse(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 = { + 'ips': 'list[str]' + } + + attribute_map = { + 'ips': 'ips' + } + + def __init__(self, ips=None): + """ListSourceIpsResponse + + The model defined in huaweicloud sdk + + :param ips: 查询高防回源IP段列表 + :type ips: list[str] + """ + + super(ListSourceIpsResponse, self).__init__() + + self._ips = None + self.discriminator = None + + if ips is not None: + self.ips = ips + + @property + def ips(self): + """Gets the ips of this ListSourceIpsResponse. + + 查询高防回源IP段列表 + + :return: The ips of this ListSourceIpsResponse. + :rtype: list[str] + """ + return self._ips + + @ips.setter + def ips(self, ips): + """Sets the ips of this ListSourceIpsResponse. + + 查询高防回源IP段列表 + + :param ips: The ips of this ListSourceIpsResponse. + :type ips: list[str] + """ + self._ips = ips + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListSourceIpsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/modify_domain_web_switch_request.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/modify_domain_web_switch_request.py new file mode 100644 index 000000000..a35146969 --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/modify_domain_web_switch_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyDomainWebSwitchRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CadDomainSwitchRequest' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """ModifyDomainWebSwitchRequest + + The model defined in huaweicloud sdk + + :param body: Body of the ModifyDomainWebSwitchRequest + :type body: :class:`huaweicloudsdkaad.v1.CadDomainSwitchRequest` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this ModifyDomainWebSwitchRequest. + + :return: The body of this ModifyDomainWebSwitchRequest. + :rtype: :class:`huaweicloudsdkaad.v1.CadDomainSwitchRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ModifyDomainWebSwitchRequest. + + :param body: The body of this ModifyDomainWebSwitchRequest. + :type body: :class:`huaweicloudsdkaad.v1.CadDomainSwitchRequest` + """ + 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, ModifyDomainWebSwitchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/modify_domain_web_switch_response.py b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/modify_domain_web_switch_response.py new file mode 100644 index 000000000..676283f1f --- /dev/null +++ b/huaweicloud-sdk-aad/huaweicloudsdkaad/v1/model/modify_domain_web_switch_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 ModifyDomainWebSwitchResponse(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): + """ModifyDomainWebSwitchResponse + + The model defined in huaweicloud sdk + + """ + + super(ModifyDomainWebSwitchResponse, 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, ModifyDomainWebSwitchResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-aad/requirements.txt b/huaweicloud-sdk-aad/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-aad/requirements.txt +++ b/huaweicloud-sdk-aad/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-aad/setup.py b/huaweicloud-sdk-aad/setup.py index d1f17d586..50aa9b60c 100644 --- a/huaweicloud-sdk-aad/setup.py +++ b/huaweicloud-sdk-aad/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaad" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-all/requirements.txt b/huaweicloud-sdk-all/requirements.txt index f8f8096a6..b6dc4333c 100644 --- a/huaweicloud-sdk-all/requirements.txt +++ b/huaweicloud-sdk-all/requirements.txt @@ -1,158 +1,159 @@ -huaweicloudsdkcore == 3.1.74 -huaweicloudsdkaad == 3.1.74 -huaweicloudsdkantiddos == 3.1.74 -huaweicloudsdkaom == 3.1.74 -huaweicloudsdkaos == 3.1.74 -huaweicloudsdkapig == 3.1.74 -huaweicloudsdkapm == 3.1.74 -huaweicloudsdkas == 3.1.74 -huaweicloudsdkasm == 3.1.74 -huaweicloudsdkbcs == 3.1.74 -huaweicloudsdkbms == 3.1.74 -huaweicloudsdkbss == 3.1.74 -huaweicloudsdkbssintl == 3.1.74 -huaweicloudsdkcae == 3.1.74 -huaweicloudsdkcampusgo == 3.1.74 -huaweicloudsdkcbh == 3.1.74 -huaweicloudsdkcbr == 3.1.74 -huaweicloudsdkcbs == 3.1.74 -huaweicloudsdkcc == 3.1.74 -huaweicloudsdkcce == 3.1.74 -huaweicloudsdkccm == 3.1.74 -huaweicloudsdkcdm == 3.1.74 -huaweicloudsdkcdn == 3.1.74 -huaweicloudsdkces == 3.1.74 -huaweicloudsdkcfw == 3.1.74 -huaweicloudsdkcgs == 3.1.74 -huaweicloudsdkclassroom == 3.1.74 -huaweicloudsdkcloudide == 3.1.74 -huaweicloudsdkcloudpond == 3.1.74 -huaweicloudsdkcloudrtc == 3.1.74 -huaweicloudsdkcloudtable == 3.1.74 -huaweicloudsdkcloudtest == 3.1.74 -huaweicloudsdkcodeartsartifact == 3.1.74 -huaweicloudsdkcodeartsbuild == 3.1.74 -huaweicloudsdkcodeartscheck == 3.1.74 -huaweicloudsdkcodeartsdeploy == 3.1.74 -huaweicloudsdkcodeartsinspector == 3.1.74 -huaweicloudsdkcodeartspipeline == 3.1.74 -huaweicloudsdkcodecraft == 3.1.74 -huaweicloudsdkcodehub == 3.1.74 -huaweicloudsdkconfig == 3.1.74 -huaweicloudsdkcph == 3.1.74 -huaweicloudsdkcpts == 3.1.74 -huaweicloudsdkcse == 3.1.74 -huaweicloudsdkcsms == 3.1.74 -huaweicloudsdkcss == 3.1.74 -huaweicloudsdkcts == 3.1.74 -huaweicloudsdkdas == 3.1.74 -huaweicloudsdkdataartsstudio == 3.1.74 -huaweicloudsdkdbss == 3.1.74 -huaweicloudsdkdc == 3.1.74 -huaweicloudsdkdcs == 3.1.74 -huaweicloudsdkddm == 3.1.74 -huaweicloudsdkdds == 3.1.74 -huaweicloudsdkdeh == 3.1.74 -huaweicloudsdkdevsecurity == 3.1.74 -huaweicloudsdkdevstar == 3.1.74 -huaweicloudsdkdgc == 3.1.74 -huaweicloudsdkdis == 3.1.74 -huaweicloudsdkdlf == 3.1.74 -huaweicloudsdkdli == 3.1.74 -huaweicloudsdkdns == 3.1.74 -huaweicloudsdkdris == 3.1.74 -huaweicloudsdkdrs == 3.1.74 -huaweicloudsdkdsc == 3.1.74 -huaweicloudsdkdwr == 3.1.74 -huaweicloudsdkdws == 3.1.74 -huaweicloudsdkec == 3.1.74 -huaweicloudsdkecs == 3.1.74 -huaweicloudsdkedgesec == 3.1.74 -huaweicloudsdkeg == 3.1.74 -huaweicloudsdkeihealth == 3.1.74 -huaweicloudsdkeip == 3.1.74 -huaweicloudsdkelb == 3.1.74 -huaweicloudsdkeps == 3.1.74 -huaweicloudsdker == 3.1.74 -huaweicloudsdkevs == 3.1.74 -huaweicloudsdkfrs == 3.1.74 -huaweicloudsdkfunctiongraph == 3.1.74 -huaweicloudsdkga == 3.1.74 -huaweicloudsdkgaussdb == 3.1.74 -huaweicloudsdkgaussdbfornosql == 3.1.74 -huaweicloudsdkgaussdbforopengauss == 3.1.74 -huaweicloudsdkges == 3.1.74 -huaweicloudsdkgsl == 3.1.74 -huaweicloudsdkhilens == 3.1.74 -huaweicloudsdkhss == 3.1.74 -huaweicloudsdkiam == 3.1.74 -huaweicloudsdkidentitycenter == 3.1.74 -huaweicloudsdkidentitycenterstore == 3.1.74 -huaweicloudsdkidme == 3.1.74 -huaweicloudsdkidmeclassicapi == 3.1.74 -huaweicloudsdkiec == 3.1.74 -huaweicloudsdkief == 3.1.74 -huaweicloudsdkimage == 3.1.74 -huaweicloudsdkimagesearch == 3.1.74 -huaweicloudsdkims == 3.1.74 -huaweicloudsdkiotanalytics == 3.1.74 -huaweicloudsdkiotda == 3.1.74 -huaweicloudsdkiotedge == 3.1.74 -huaweicloudsdkivs == 3.1.74 -huaweicloudsdkkafka == 3.1.74 -huaweicloudsdkkms == 3.1.74 -huaweicloudsdkkoomessage == 3.1.74 -huaweicloudsdkkps == 3.1.74 -huaweicloudsdklakeformation == 3.1.74 -huaweicloudsdklive == 3.1.74 -huaweicloudsdklts == 3.1.74 -huaweicloudsdkmapds == 3.1.74 -huaweicloudsdkmas == 3.1.74 -huaweicloudsdkmeeting == 3.1.74 -huaweicloudsdkmetastudio == 3.1.74 -huaweicloudsdkmoderation == 3.1.74 -huaweicloudsdkmpc == 3.1.74 -huaweicloudsdkmrs == 3.1.74 -huaweicloudsdkmsgsms == 3.1.74 -huaweicloudsdkmssi == 3.1.74 -huaweicloudsdknat == 3.1.74 -huaweicloudsdknlp == 3.1.74 -huaweicloudsdkocr == 3.1.74 -huaweicloudsdkoctopus == 3.1.74 -huaweicloudsdkoms == 3.1.74 -huaweicloudsdkoptverse == 3.1.74 -huaweicloudsdkorganizations == 3.1.74 -huaweicloudsdkoroas == 3.1.74 -huaweicloudsdkosm == 3.1.74 -huaweicloudsdkpangulargemodels == 3.1.74 -huaweicloudsdkprojectman == 3.1.74 -huaweicloudsdkrabbitmq == 3.1.74 -huaweicloudsdkram == 3.1.74 -huaweicloudsdkrds == 3.1.74 -huaweicloudsdkres == 3.1.74 -huaweicloudsdkrgc == 3.1.74 -huaweicloudsdkrms == 3.1.74 -huaweicloudsdkrocketmq == 3.1.74 -huaweicloudsdkroma == 3.1.74 -huaweicloudsdksa == 3.1.74 -huaweicloudsdkscm == 3.1.74 -huaweicloudsdksdrs == 3.1.74 -huaweicloudsdksecmaster == 3.1.74 -huaweicloudsdkservicestage == 3.1.74 -huaweicloudsdksfsturbo == 3.1.74 -huaweicloudsdksis == 3.1.74 -huaweicloudsdksmn == 3.1.74 -huaweicloudsdksms == 3.1.74 -huaweicloudsdkswr == 3.1.74 -huaweicloudsdktics == 3.1.74 -huaweicloudsdktms == 3.1.74 -huaweicloudsdkugo == 3.1.74 -huaweicloudsdkvas == 3.1.74 -huaweicloudsdkvcm == 3.1.74 -huaweicloudsdkvod == 3.1.74 -huaweicloudsdkvpc == 3.1.74 -huaweicloudsdkvpcep == 3.1.74 -huaweicloudsdkvpn == 3.1.74 -huaweicloudsdkwaf == 3.1.74 -huaweicloudsdkworkspace == 3.1.74 -huaweicloudsdkworkspaceapp == 3.1.74 +huaweicloudsdkcore == 3.1.75 +huaweicloudsdkaad == 3.1.75 +huaweicloudsdkantiddos == 3.1.75 +huaweicloudsdkaom == 3.1.75 +huaweicloudsdkaos == 3.1.75 +huaweicloudsdkapig == 3.1.75 +huaweicloudsdkapm == 3.1.75 +huaweicloudsdkas == 3.1.75 +huaweicloudsdkasm == 3.1.75 +huaweicloudsdkbcs == 3.1.75 +huaweicloudsdkbms == 3.1.75 +huaweicloudsdkbss == 3.1.75 +huaweicloudsdkbssintl == 3.1.75 +huaweicloudsdkcae == 3.1.75 +huaweicloudsdkcampusgo == 3.1.75 +huaweicloudsdkcbh == 3.1.75 +huaweicloudsdkcbr == 3.1.75 +huaweicloudsdkcbs == 3.1.75 +huaweicloudsdkcc == 3.1.75 +huaweicloudsdkcce == 3.1.75 +huaweicloudsdkccm == 3.1.75 +huaweicloudsdkcdm == 3.1.75 +huaweicloudsdkcdn == 3.1.75 +huaweicloudsdkces == 3.1.75 +huaweicloudsdkcfw == 3.1.75 +huaweicloudsdkcgs == 3.1.75 +huaweicloudsdkclassroom == 3.1.75 +huaweicloudsdkcloudide == 3.1.75 +huaweicloudsdkcloudpond == 3.1.75 +huaweicloudsdkcloudrtc == 3.1.75 +huaweicloudsdkcloudtable == 3.1.75 +huaweicloudsdkcloudtest == 3.1.75 +huaweicloudsdkcodeartsartifact == 3.1.75 +huaweicloudsdkcodeartsbuild == 3.1.75 +huaweicloudsdkcodeartscheck == 3.1.75 +huaweicloudsdkcodeartsdeploy == 3.1.75 +huaweicloudsdkcodeartsinspector == 3.1.75 +huaweicloudsdkcodeartspipeline == 3.1.75 +huaweicloudsdkcodecraft == 3.1.75 +huaweicloudsdkcodehub == 3.1.75 +huaweicloudsdkconfig == 3.1.75 +huaweicloudsdkcph == 3.1.75 +huaweicloudsdkcpts == 3.1.75 +huaweicloudsdkcse == 3.1.75 +huaweicloudsdkcsms == 3.1.75 +huaweicloudsdkcss == 3.1.75 +huaweicloudsdkcts == 3.1.75 +huaweicloudsdkdas == 3.1.75 +huaweicloudsdkdataartsstudio == 3.1.75 +huaweicloudsdkdbss == 3.1.75 +huaweicloudsdkdc == 3.1.75 +huaweicloudsdkdcs == 3.1.75 +huaweicloudsdkddm == 3.1.75 +huaweicloudsdkdds == 3.1.75 +huaweicloudsdkdeh == 3.1.75 +huaweicloudsdkdevsecurity == 3.1.75 +huaweicloudsdkdevstar == 3.1.75 +huaweicloudsdkdgc == 3.1.75 +huaweicloudsdkdis == 3.1.75 +huaweicloudsdkdlf == 3.1.75 +huaweicloudsdkdli == 3.1.75 +huaweicloudsdkdns == 3.1.75 +huaweicloudsdkdris == 3.1.75 +huaweicloudsdkdrs == 3.1.75 +huaweicloudsdkdsc == 3.1.75 +huaweicloudsdkdwr == 3.1.75 +huaweicloudsdkdws == 3.1.75 +huaweicloudsdkec == 3.1.75 +huaweicloudsdkecs == 3.1.75 +huaweicloudsdkedgesec == 3.1.75 +huaweicloudsdkeg == 3.1.75 +huaweicloudsdkeihealth == 3.1.75 +huaweicloudsdkeip == 3.1.75 +huaweicloudsdkelb == 3.1.75 +huaweicloudsdkeps == 3.1.75 +huaweicloudsdker == 3.1.75 +huaweicloudsdkevs == 3.1.75 +huaweicloudsdkfrs == 3.1.75 +huaweicloudsdkfunctiongraph == 3.1.75 +huaweicloudsdkga == 3.1.75 +huaweicloudsdkgaussdb == 3.1.75 +huaweicloudsdkgaussdbfornosql == 3.1.75 +huaweicloudsdkgaussdbforopengauss == 3.1.75 +huaweicloudsdkges == 3.1.75 +huaweicloudsdkgsl == 3.1.75 +huaweicloudsdkhilens == 3.1.75 +huaweicloudsdkhss == 3.1.75 +huaweicloudsdkiam == 3.1.75 +huaweicloudsdkidentitycenter == 3.1.75 +huaweicloudsdkidentitycenterstore == 3.1.75 +huaweicloudsdkidme == 3.1.75 +huaweicloudsdkidmeclassicapi == 3.1.75 +huaweicloudsdkiec == 3.1.75 +huaweicloudsdkief == 3.1.75 +huaweicloudsdkimage == 3.1.75 +huaweicloudsdkimagesearch == 3.1.75 +huaweicloudsdkims == 3.1.75 +huaweicloudsdkiotanalytics == 3.1.75 +huaweicloudsdkiotda == 3.1.75 +huaweicloudsdkiotedge == 3.1.75 +huaweicloudsdkivs == 3.1.75 +huaweicloudsdkkafka == 3.1.75 +huaweicloudsdkkms == 3.1.75 +huaweicloudsdkkoomessage == 3.1.75 +huaweicloudsdkkps == 3.1.75 +huaweicloudsdklakeformation == 3.1.75 +huaweicloudsdklive == 3.1.75 +huaweicloudsdklts == 3.1.75 +huaweicloudsdkmapds == 3.1.75 +huaweicloudsdkmas == 3.1.75 +huaweicloudsdkmeeting == 3.1.75 +huaweicloudsdkmetastudio == 3.1.75 +huaweicloudsdkmoderation == 3.1.75 +huaweicloudsdkmpc == 3.1.75 +huaweicloudsdkmrs == 3.1.75 +huaweicloudsdkmsgsms == 3.1.75 +huaweicloudsdkmssi == 3.1.75 +huaweicloudsdknat == 3.1.75 +huaweicloudsdknlp == 3.1.75 +huaweicloudsdkobs == 3.1.75 +huaweicloudsdkocr == 3.1.75 +huaweicloudsdkoctopus == 3.1.75 +huaweicloudsdkoms == 3.1.75 +huaweicloudsdkoptverse == 3.1.75 +huaweicloudsdkorganizations == 3.1.75 +huaweicloudsdkoroas == 3.1.75 +huaweicloudsdkosm == 3.1.75 +huaweicloudsdkpangulargemodels == 3.1.75 +huaweicloudsdkprojectman == 3.1.75 +huaweicloudsdkrabbitmq == 3.1.75 +huaweicloudsdkram == 3.1.75 +huaweicloudsdkrds == 3.1.75 +huaweicloudsdkres == 3.1.75 +huaweicloudsdkrgc == 3.1.75 +huaweicloudsdkrms == 3.1.75 +huaweicloudsdkrocketmq == 3.1.75 +huaweicloudsdkroma == 3.1.75 +huaweicloudsdksa == 3.1.75 +huaweicloudsdkscm == 3.1.75 +huaweicloudsdksdrs == 3.1.75 +huaweicloudsdksecmaster == 3.1.75 +huaweicloudsdkservicestage == 3.1.75 +huaweicloudsdksfsturbo == 3.1.75 +huaweicloudsdksis == 3.1.75 +huaweicloudsdksmn == 3.1.75 +huaweicloudsdksms == 3.1.75 +huaweicloudsdkswr == 3.1.75 +huaweicloudsdktics == 3.1.75 +huaweicloudsdktms == 3.1.75 +huaweicloudsdkugo == 3.1.75 +huaweicloudsdkvas == 3.1.75 +huaweicloudsdkvcm == 3.1.75 +huaweicloudsdkvod == 3.1.75 +huaweicloudsdkvpc == 3.1.75 +huaweicloudsdkvpcep == 3.1.75 +huaweicloudsdkvpn == 3.1.75 +huaweicloudsdkwaf == 3.1.75 +huaweicloudsdkworkspace == 3.1.75 +huaweicloudsdkworkspaceapp == 3.1.75 diff --git a/huaweicloud-sdk-all/setup.py b/huaweicloud-sdk-all/setup.py index ce6fd58ca..2078d0b2e 100644 --- a/huaweicloud-sdk-all/setup.py +++ b/huaweicloud-sdk-all/setup.py @@ -23,7 +23,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkall" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -34,164 +34,165 @@ with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() INSTALL_REQUIRES = [ - 'huaweicloudsdkcore==3.1.74', - 'huaweicloudsdkaad==3.1.74', - 'huaweicloudsdkantiddos==3.1.74', - 'huaweicloudsdkaom==3.1.74', - 'huaweicloudsdkaos==3.1.74', - 'huaweicloudsdkapig==3.1.74', - 'huaweicloudsdkapm==3.1.74', - 'huaweicloudsdkas==3.1.74', - 'huaweicloudsdkasm==3.1.74', - 'huaweicloudsdkbcs==3.1.74', - 'huaweicloudsdkbms==3.1.74', - 'huaweicloudsdkbss==3.1.74', - 'huaweicloudsdkbssintl==3.1.74', - 'huaweicloudsdkcae==3.1.74', - 'huaweicloudsdkcampusgo==3.1.74', - 'huaweicloudsdkcbh==3.1.74', - 'huaweicloudsdkcbr==3.1.74', - 'huaweicloudsdkcbs==3.1.74', - 'huaweicloudsdkcc==3.1.74', - 'huaweicloudsdkcce==3.1.74', - 'huaweicloudsdkccm==3.1.74', - 'huaweicloudsdkcdm==3.1.74', - 'huaweicloudsdkcdn==3.1.74', - 'huaweicloudsdkces==3.1.74', - 'huaweicloudsdkcfw==3.1.74', - 'huaweicloudsdkcgs==3.1.74', - 'huaweicloudsdkclassroom==3.1.74', - 'huaweicloudsdkcloudide==3.1.74', - 'huaweicloudsdkcloudpond==3.1.74', - 'huaweicloudsdkcloudrtc==3.1.74', - 'huaweicloudsdkcloudtable==3.1.74', - 'huaweicloudsdkcloudtest==3.1.74', - 'huaweicloudsdkcodeartsartifact==3.1.74', - 'huaweicloudsdkcodeartsbuild==3.1.74', - 'huaweicloudsdkcodeartscheck==3.1.74', - 'huaweicloudsdkcodeartsdeploy==3.1.74', - 'huaweicloudsdkcodeartsinspector==3.1.74', - 'huaweicloudsdkcodeartspipeline==3.1.74', - 'huaweicloudsdkcodecraft==3.1.74', - 'huaweicloudsdkcodehub==3.1.74', - 'huaweicloudsdkconfig==3.1.74', - 'huaweicloudsdkcph==3.1.74', - 'huaweicloudsdkcpts==3.1.74', - 'huaweicloudsdkcse==3.1.74', - 'huaweicloudsdkcsms==3.1.74', - 'huaweicloudsdkcss==3.1.74', - 'huaweicloudsdkcts==3.1.74', - 'huaweicloudsdkdas==3.1.74', - 'huaweicloudsdkdataartsstudio==3.1.74', - 'huaweicloudsdkdbss==3.1.74', - 'huaweicloudsdkdc==3.1.74', - 'huaweicloudsdkdcs==3.1.74', - 'huaweicloudsdkddm==3.1.74', - 'huaweicloudsdkdds==3.1.74', - 'huaweicloudsdkdeh==3.1.74', - 'huaweicloudsdkdevsecurity==3.1.74', - 'huaweicloudsdkdevstar==3.1.74', - 'huaweicloudsdkdgc==3.1.74', - 'huaweicloudsdkdis==3.1.74', - 'huaweicloudsdkdlf==3.1.74', - 'huaweicloudsdkdli==3.1.74', - 'huaweicloudsdkdns==3.1.74', - 'huaweicloudsdkdris==3.1.74', - 'huaweicloudsdkdrs==3.1.74', - 'huaweicloudsdkdsc==3.1.74', - 'huaweicloudsdkdwr==3.1.74', - 'huaweicloudsdkdws==3.1.74', - 'huaweicloudsdkec==3.1.74', - 'huaweicloudsdkecs==3.1.74', - 'huaweicloudsdkedgesec==3.1.74', - 'huaweicloudsdkeg==3.1.74', - 'huaweicloudsdkeihealth==3.1.74', - 'huaweicloudsdkeip==3.1.74', - 'huaweicloudsdkelb==3.1.74', - 'huaweicloudsdkeps==3.1.74', - 'huaweicloudsdker==3.1.74', - 'huaweicloudsdkevs==3.1.74', - 'huaweicloudsdkfrs==3.1.74', - 'huaweicloudsdkfunctiongraph==3.1.74', - 'huaweicloudsdkga==3.1.74', - 'huaweicloudsdkgaussdb==3.1.74', - 'huaweicloudsdkgaussdbfornosql==3.1.74', - 'huaweicloudsdkgaussdbforopengauss==3.1.74', - 'huaweicloudsdkges==3.1.74', - 'huaweicloudsdkgsl==3.1.74', - 'huaweicloudsdkhilens==3.1.74', - 'huaweicloudsdkhss==3.1.74', - 'huaweicloudsdkiam==3.1.74', - 'huaweicloudsdkidentitycenter==3.1.74', - 'huaweicloudsdkidentitycenterstore==3.1.74', - 'huaweicloudsdkidme==3.1.74', - 'huaweicloudsdkidmeclassicapi==3.1.74', - 'huaweicloudsdkiec==3.1.74', - 'huaweicloudsdkief==3.1.74', - 'huaweicloudsdkimage==3.1.74', - 'huaweicloudsdkimagesearch==3.1.74', - 'huaweicloudsdkims==3.1.74', - 'huaweicloudsdkiotanalytics==3.1.74', - 'huaweicloudsdkiotda==3.1.74', - 'huaweicloudsdkiotedge==3.1.74', - 'huaweicloudsdkivs==3.1.74', - 'huaweicloudsdkkafka==3.1.74', - 'huaweicloudsdkkms==3.1.74', - 'huaweicloudsdkkoomessage==3.1.74', - 'huaweicloudsdkkps==3.1.74', - 'huaweicloudsdklakeformation==3.1.74', - 'huaweicloudsdklive==3.1.74', - 'huaweicloudsdklts==3.1.74', - 'huaweicloudsdkmapds==3.1.74', - 'huaweicloudsdkmas==3.1.74', - 'huaweicloudsdkmeeting==3.1.74', - 'huaweicloudsdkmetastudio==3.1.74', - 'huaweicloudsdkmoderation==3.1.74', - 'huaweicloudsdkmpc==3.1.74', - 'huaweicloudsdkmrs==3.1.74', - 'huaweicloudsdkmsgsms==3.1.74', - 'huaweicloudsdkmssi==3.1.74', - 'huaweicloudsdknat==3.1.74', - 'huaweicloudsdknlp==3.1.74', - 'huaweicloudsdkocr==3.1.74', - 'huaweicloudsdkoctopus==3.1.74', - 'huaweicloudsdkoms==3.1.74', - 'huaweicloudsdkoptverse==3.1.74', - 'huaweicloudsdkorganizations==3.1.74', - 'huaweicloudsdkoroas==3.1.74', - 'huaweicloudsdkosm==3.1.74', - 'huaweicloudsdkpangulargemodels==3.1.74', - 'huaweicloudsdkprojectman==3.1.74', - 'huaweicloudsdkrabbitmq==3.1.74', - 'huaweicloudsdkram==3.1.74', - 'huaweicloudsdkrds==3.1.74', - 'huaweicloudsdkres==3.1.74', - 'huaweicloudsdkrgc==3.1.74', - 'huaweicloudsdkrms==3.1.74', - 'huaweicloudsdkrocketmq==3.1.74', - 'huaweicloudsdkroma==3.1.74', - 'huaweicloudsdksa==3.1.74', - 'huaweicloudsdkscm==3.1.74', - 'huaweicloudsdksdrs==3.1.74', - 'huaweicloudsdksecmaster==3.1.74', - 'huaweicloudsdkservicestage==3.1.74', - 'huaweicloudsdksfsturbo==3.1.74', - 'huaweicloudsdksis==3.1.74', - 'huaweicloudsdksmn==3.1.74', - 'huaweicloudsdksms==3.1.74', - 'huaweicloudsdkswr==3.1.74', - 'huaweicloudsdktics==3.1.74', - 'huaweicloudsdktms==3.1.74', - 'huaweicloudsdkugo==3.1.74', - 'huaweicloudsdkvas==3.1.74', - 'huaweicloudsdkvcm==3.1.74', - 'huaweicloudsdkvod==3.1.74', - 'huaweicloudsdkvpc==3.1.74', - 'huaweicloudsdkvpcep==3.1.74', - 'huaweicloudsdkvpn==3.1.74', - 'huaweicloudsdkwaf==3.1.74', - 'huaweicloudsdkworkspace==3.1.74', - 'huaweicloudsdkworkspaceapp==3.1.74', + 'huaweicloudsdkcore==3.1.75', + 'huaweicloudsdkaad==3.1.75', + 'huaweicloudsdkantiddos==3.1.75', + 'huaweicloudsdkaom==3.1.75', + 'huaweicloudsdkaos==3.1.75', + 'huaweicloudsdkapig==3.1.75', + 'huaweicloudsdkapm==3.1.75', + 'huaweicloudsdkas==3.1.75', + 'huaweicloudsdkasm==3.1.75', + 'huaweicloudsdkbcs==3.1.75', + 'huaweicloudsdkbms==3.1.75', + 'huaweicloudsdkbss==3.1.75', + 'huaweicloudsdkbssintl==3.1.75', + 'huaweicloudsdkcae==3.1.75', + 'huaweicloudsdkcampusgo==3.1.75', + 'huaweicloudsdkcbh==3.1.75', + 'huaweicloudsdkcbr==3.1.75', + 'huaweicloudsdkcbs==3.1.75', + 'huaweicloudsdkcc==3.1.75', + 'huaweicloudsdkcce==3.1.75', + 'huaweicloudsdkccm==3.1.75', + 'huaweicloudsdkcdm==3.1.75', + 'huaweicloudsdkcdn==3.1.75', + 'huaweicloudsdkces==3.1.75', + 'huaweicloudsdkcfw==3.1.75', + 'huaweicloudsdkcgs==3.1.75', + 'huaweicloudsdkclassroom==3.1.75', + 'huaweicloudsdkcloudide==3.1.75', + 'huaweicloudsdkcloudpond==3.1.75', + 'huaweicloudsdkcloudrtc==3.1.75', + 'huaweicloudsdkcloudtable==3.1.75', + 'huaweicloudsdkcloudtest==3.1.75', + 'huaweicloudsdkcodeartsartifact==3.1.75', + 'huaweicloudsdkcodeartsbuild==3.1.75', + 'huaweicloudsdkcodeartscheck==3.1.75', + 'huaweicloudsdkcodeartsdeploy==3.1.75', + 'huaweicloudsdkcodeartsinspector==3.1.75', + 'huaweicloudsdkcodeartspipeline==3.1.75', + 'huaweicloudsdkcodecraft==3.1.75', + 'huaweicloudsdkcodehub==3.1.75', + 'huaweicloudsdkconfig==3.1.75', + 'huaweicloudsdkcph==3.1.75', + 'huaweicloudsdkcpts==3.1.75', + 'huaweicloudsdkcse==3.1.75', + 'huaweicloudsdkcsms==3.1.75', + 'huaweicloudsdkcss==3.1.75', + 'huaweicloudsdkcts==3.1.75', + 'huaweicloudsdkdas==3.1.75', + 'huaweicloudsdkdataartsstudio==3.1.75', + 'huaweicloudsdkdbss==3.1.75', + 'huaweicloudsdkdc==3.1.75', + 'huaweicloudsdkdcs==3.1.75', + 'huaweicloudsdkddm==3.1.75', + 'huaweicloudsdkdds==3.1.75', + 'huaweicloudsdkdeh==3.1.75', + 'huaweicloudsdkdevsecurity==3.1.75', + 'huaweicloudsdkdevstar==3.1.75', + 'huaweicloudsdkdgc==3.1.75', + 'huaweicloudsdkdis==3.1.75', + 'huaweicloudsdkdlf==3.1.75', + 'huaweicloudsdkdli==3.1.75', + 'huaweicloudsdkdns==3.1.75', + 'huaweicloudsdkdris==3.1.75', + 'huaweicloudsdkdrs==3.1.75', + 'huaweicloudsdkdsc==3.1.75', + 'huaweicloudsdkdwr==3.1.75', + 'huaweicloudsdkdws==3.1.75', + 'huaweicloudsdkec==3.1.75', + 'huaweicloudsdkecs==3.1.75', + 'huaweicloudsdkedgesec==3.1.75', + 'huaweicloudsdkeg==3.1.75', + 'huaweicloudsdkeihealth==3.1.75', + 'huaweicloudsdkeip==3.1.75', + 'huaweicloudsdkelb==3.1.75', + 'huaweicloudsdkeps==3.1.75', + 'huaweicloudsdker==3.1.75', + 'huaweicloudsdkevs==3.1.75', + 'huaweicloudsdkfrs==3.1.75', + 'huaweicloudsdkfunctiongraph==3.1.75', + 'huaweicloudsdkga==3.1.75', + 'huaweicloudsdkgaussdb==3.1.75', + 'huaweicloudsdkgaussdbfornosql==3.1.75', + 'huaweicloudsdkgaussdbforopengauss==3.1.75', + 'huaweicloudsdkges==3.1.75', + 'huaweicloudsdkgsl==3.1.75', + 'huaweicloudsdkhilens==3.1.75', + 'huaweicloudsdkhss==3.1.75', + 'huaweicloudsdkiam==3.1.75', + 'huaweicloudsdkidentitycenter==3.1.75', + 'huaweicloudsdkidentitycenterstore==3.1.75', + 'huaweicloudsdkidme==3.1.75', + 'huaweicloudsdkidmeclassicapi==3.1.75', + 'huaweicloudsdkiec==3.1.75', + 'huaweicloudsdkief==3.1.75', + 'huaweicloudsdkimage==3.1.75', + 'huaweicloudsdkimagesearch==3.1.75', + 'huaweicloudsdkims==3.1.75', + 'huaweicloudsdkiotanalytics==3.1.75', + 'huaweicloudsdkiotda==3.1.75', + 'huaweicloudsdkiotedge==3.1.75', + 'huaweicloudsdkivs==3.1.75', + 'huaweicloudsdkkafka==3.1.75', + 'huaweicloudsdkkms==3.1.75', + 'huaweicloudsdkkoomessage==3.1.75', + 'huaweicloudsdkkps==3.1.75', + 'huaweicloudsdklakeformation==3.1.75', + 'huaweicloudsdklive==3.1.75', + 'huaweicloudsdklts==3.1.75', + 'huaweicloudsdkmapds==3.1.75', + 'huaweicloudsdkmas==3.1.75', + 'huaweicloudsdkmeeting==3.1.75', + 'huaweicloudsdkmetastudio==3.1.75', + 'huaweicloudsdkmoderation==3.1.75', + 'huaweicloudsdkmpc==3.1.75', + 'huaweicloudsdkmrs==3.1.75', + 'huaweicloudsdkmsgsms==3.1.75', + 'huaweicloudsdkmssi==3.1.75', + 'huaweicloudsdknat==3.1.75', + 'huaweicloudsdknlp==3.1.75', + 'huaweicloudsdkobs==3.1.75', + 'huaweicloudsdkocr==3.1.75', + 'huaweicloudsdkoctopus==3.1.75', + 'huaweicloudsdkoms==3.1.75', + 'huaweicloudsdkoptverse==3.1.75', + 'huaweicloudsdkorganizations==3.1.75', + 'huaweicloudsdkoroas==3.1.75', + 'huaweicloudsdkosm==3.1.75', + 'huaweicloudsdkpangulargemodels==3.1.75', + 'huaweicloudsdkprojectman==3.1.75', + 'huaweicloudsdkrabbitmq==3.1.75', + 'huaweicloudsdkram==3.1.75', + 'huaweicloudsdkrds==3.1.75', + 'huaweicloudsdkres==3.1.75', + 'huaweicloudsdkrgc==3.1.75', + 'huaweicloudsdkrms==3.1.75', + 'huaweicloudsdkrocketmq==3.1.75', + 'huaweicloudsdkroma==3.1.75', + 'huaweicloudsdksa==3.1.75', + 'huaweicloudsdkscm==3.1.75', + 'huaweicloudsdksdrs==3.1.75', + 'huaweicloudsdksecmaster==3.1.75', + 'huaweicloudsdkservicestage==3.1.75', + 'huaweicloudsdksfsturbo==3.1.75', + 'huaweicloudsdksis==3.1.75', + 'huaweicloudsdksmn==3.1.75', + 'huaweicloudsdksms==3.1.75', + 'huaweicloudsdkswr==3.1.75', + 'huaweicloudsdktics==3.1.75', + 'huaweicloudsdktms==3.1.75', + 'huaweicloudsdkugo==3.1.75', + 'huaweicloudsdkvas==3.1.75', + 'huaweicloudsdkvcm==3.1.75', + 'huaweicloudsdkvod==3.1.75', + 'huaweicloudsdkvpc==3.1.75', + 'huaweicloudsdkvpcep==3.1.75', + 'huaweicloudsdkvpn==3.1.75', + 'huaweicloudsdkwaf==3.1.75', + 'huaweicloudsdkworkspace==3.1.75', + 'huaweicloudsdkworkspaceapp==3.1.75', ] OPTIONS = { diff --git a/huaweicloud-sdk-antiddos/requirements.txt b/huaweicloud-sdk-antiddos/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-antiddos/requirements.txt +++ b/huaweicloud-sdk-antiddos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-antiddos/setup.py b/huaweicloud-sdk-antiddos/setup.py index ca7669c39..6ae6bb799 100644 --- a/huaweicloud-sdk-antiddos/setup.py +++ b/huaweicloud-sdk-antiddos/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkantiddos" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aom/requirements.txt b/huaweicloud-sdk-aom/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-aom/requirements.txt +++ b/huaweicloud-sdk-aom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-aom/setup.py b/huaweicloud-sdk-aom/setup.py index 24985ed66..16bdd6c7a 100644 --- a/huaweicloud-sdk-aom/setup.py +++ b/huaweicloud-sdk-aom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaom" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-aos/requirements.txt b/huaweicloud-sdk-aos/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-aos/requirements.txt +++ b/huaweicloud-sdk-aos/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-aos/setup.py b/huaweicloud-sdk-aos/setup.py index b1b217f61..86148461b 100644 --- a/huaweicloud-sdk-aos/setup.py +++ b/huaweicloud-sdk-aos/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkaos" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apig/requirements.txt b/huaweicloud-sdk-apig/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-apig/requirements.txt +++ b/huaweicloud-sdk-apig/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-apig/setup.py b/huaweicloud-sdk-apig/setup.py index 12dca653d..9ab9e0bb4 100644 --- a/huaweicloud-sdk-apig/setup.py +++ b/huaweicloud-sdk-apig/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapig" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-apm/requirements.txt b/huaweicloud-sdk-apm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-apm/requirements.txt +++ b/huaweicloud-sdk-apm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-apm/setup.py b/huaweicloud-sdk-apm/setup.py index 947d30f37..5a11643b4 100644 --- a/huaweicloud-sdk-apm/setup.py +++ b/huaweicloud-sdk-apm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkapm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-as/requirements.txt b/huaweicloud-sdk-as/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-as/requirements.txt +++ b/huaweicloud-sdk-as/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-as/setup.py b/huaweicloud-sdk-as/setup.py index 1398a743b..bee13738e 100644 --- a/huaweicloud-sdk-as/setup.py +++ b/huaweicloud-sdk-as/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkas" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-asm/requirements.txt b/huaweicloud-sdk-asm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-asm/requirements.txt +++ b/huaweicloud-sdk-asm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-asm/setup.py b/huaweicloud-sdk-asm/setup.py index 3ab0ecba3..333c4059b 100644 --- a/huaweicloud-sdk-asm/setup.py +++ b/huaweicloud-sdk-asm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkasm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bcs/requirements.txt b/huaweicloud-sdk-bcs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-bcs/requirements.txt +++ b/huaweicloud-sdk-bcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-bcs/setup.py b/huaweicloud-sdk-bcs/setup.py index da5d58bcb..65b5411e0 100644 --- a/huaweicloud-sdk-bcs/setup.py +++ b/huaweicloud-sdk-bcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbcs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bms/requirements.txt b/huaweicloud-sdk-bms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-bms/requirements.txt +++ b/huaweicloud-sdk-bms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-bms/setup.py b/huaweicloud-sdk-bms/setup.py index 4fcab09c2..059fd7504 100644 --- a/huaweicloud-sdk-bms/setup.py +++ b/huaweicloud-sdk-bms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bss/requirements.txt b/huaweicloud-sdk-bss/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-bss/requirements.txt +++ b/huaweicloud-sdk-bss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-bss/setup.py b/huaweicloud-sdk-bss/setup.py index 1963f8b95..e6982ac67 100644 --- a/huaweicloud-sdk-bss/setup.py +++ b/huaweicloud-sdk-bss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbss" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-bssintl/requirements.txt b/huaweicloud-sdk-bssintl/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-bssintl/requirements.txt +++ b/huaweicloud-sdk-bssintl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-bssintl/setup.py b/huaweicloud-sdk-bssintl/setup.py index 2daf9f59f..e3582f81e 100644 --- a/huaweicloud-sdk-bssintl/setup.py +++ b/huaweicloud-sdk-bssintl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkbssintl" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cae/requirements.txt b/huaweicloud-sdk-cae/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cae/requirements.txt +++ b/huaweicloud-sdk-cae/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cae/setup.py b/huaweicloud-sdk-cae/setup.py index 2153aba56..f8152a8d9 100644 --- a/huaweicloud-sdk-cae/setup.py +++ b/huaweicloud-sdk-cae/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcae" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-campusgo/requirements.txt b/huaweicloud-sdk-campusgo/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-campusgo/requirements.txt +++ b/huaweicloud-sdk-campusgo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-campusgo/setup.py b/huaweicloud-sdk-campusgo/setup.py index 2f12312cf..810f3b839 100644 --- a/huaweicloud-sdk-campusgo/setup.py +++ b/huaweicloud-sdk-campusgo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcampusgo" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/__init__.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/__init__.py index 9570de42f..ca73c9eb6 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/__init__.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/__init__.py @@ -5,6 +5,7 @@ from __future__ import absolute_import from huaweicloudsdkcbh.v2.cbh_client import CbhClient from huaweicloudsdkcbh.v2.cbh_async_client import CbhAsyncClient +from huaweicloudsdkcbh.v2.model.agency_authorize_info import AgencyAuthorizeInfo from huaweicloudsdkcbh.v2.model.authorize_csms_and_kms_request_body import AuthorizeCsmsAndKmsRequestBody from huaweicloudsdkcbh.v2.model.availability_zones import AvailabilityZones from huaweicloudsdkcbh.v2.model.batch_create_instance_tag_request import BatchCreateInstanceTagRequest @@ -45,6 +46,7 @@ from huaweicloudsdkcbh.v2.model.list_tags_response import ListTagsResponse from huaweicloudsdkcbh.v2.model.login_instance_request import LoginInstanceRequest from huaweicloudsdkcbh.v2.model.login_instance_response import LoginInstanceResponse from huaweicloudsdkcbh.v2.model.match import Match +from huaweicloudsdkcbh.v2.model.network_info_create import NetworkInfoCreate from huaweicloudsdkcbh.v2.model.operate_eip_request_body import OperateEipRequestBody from huaweicloudsdkcbh.v2.model.reboot_cbh_request_body import RebootCbhRequestBody from huaweicloudsdkcbh.v2.model.reboot_instance_request import RebootInstanceRequest @@ -63,6 +65,7 @@ from huaweicloudsdkcbh.v2.model.resources import Resources from huaweicloudsdkcbh.v2.model.rollback_instance_request import RollbackInstanceRequest from huaweicloudsdkcbh.v2.model.rollback_instance_request_body import RollbackInstanceRequestBody from huaweicloudsdkcbh.v2.model.rollback_instance_response import RollbackInstanceResponse +from huaweicloudsdkcbh.v2.model.security_group import SecurityGroup from huaweicloudsdkcbh.v2.model.show_authorization_request import ShowAuthorizationRequest from huaweicloudsdkcbh.v2.model.show_authorization_response import ShowAuthorizationResponse from huaweicloudsdkcbh.v2.model.show_ecs_quota_request import ShowEcsQuotaRequest diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/__init__.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/__init__.py index 5c0af06bd..9a64bf891 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/__init__.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/__init__.py @@ -3,6 +3,7 @@ from __future__ import absolute_import # import models into model package +from huaweicloudsdkcbh.v2.model.agency_authorize_info import AgencyAuthorizeInfo from huaweicloudsdkcbh.v2.model.authorize_csms_and_kms_request_body import AuthorizeCsmsAndKmsRequestBody from huaweicloudsdkcbh.v2.model.availability_zones import AvailabilityZones from huaweicloudsdkcbh.v2.model.batch_create_instance_tag_request import BatchCreateInstanceTagRequest @@ -43,6 +44,7 @@ from huaweicloudsdkcbh.v2.model.list_tags_response import ListTagsResponse from huaweicloudsdkcbh.v2.model.login_instance_request import LoginInstanceRequest from huaweicloudsdkcbh.v2.model.login_instance_response import LoginInstanceResponse from huaweicloudsdkcbh.v2.model.match import Match +from huaweicloudsdkcbh.v2.model.network_info_create import NetworkInfoCreate from huaweicloudsdkcbh.v2.model.operate_eip_request_body import OperateEipRequestBody from huaweicloudsdkcbh.v2.model.reboot_cbh_request_body import RebootCbhRequestBody from huaweicloudsdkcbh.v2.model.reboot_instance_request import RebootInstanceRequest @@ -61,6 +63,7 @@ from huaweicloudsdkcbh.v2.model.resources import Resources from huaweicloudsdkcbh.v2.model.rollback_instance_request import RollbackInstanceRequest from huaweicloudsdkcbh.v2.model.rollback_instance_request_body import RollbackInstanceRequestBody from huaweicloudsdkcbh.v2.model.rollback_instance_response import RollbackInstanceResponse +from huaweicloudsdkcbh.v2.model.security_group import SecurityGroup from huaweicloudsdkcbh.v2.model.show_authorization_request import ShowAuthorizationRequest from huaweicloudsdkcbh.v2.model.show_authorization_response import ShowAuthorizationResponse from huaweicloudsdkcbh.v2.model.show_ecs_quota_request import ShowEcsQuotaRequest diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/agency_authorize_info.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/agency_authorize_info.py new file mode 100644 index 000000000..c17029bcb --- /dev/null +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/agency_authorize_info.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AgencyAuthorizeInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'csms': 'bool', + 'kms': 'bool' + } + + attribute_map = { + 'csms': 'csms', + 'kms': 'kms' + } + + def __init__(self, csms=None, kms=None): + """AgencyAuthorizeInfo + + The model defined in huaweicloud sdk + + :param csms: 凭据管理权限信息。 + :type csms: bool + :param kms: 密钥管理权限信息。 + :type kms: bool + """ + + + + self._csms = None + self._kms = None + self.discriminator = None + + self.csms = csms + self.kms = kms + + @property + def csms(self): + """Gets the csms of this AgencyAuthorizeInfo. + + 凭据管理权限信息。 + + :return: The csms of this AgencyAuthorizeInfo. + :rtype: bool + """ + return self._csms + + @csms.setter + def csms(self, csms): + """Sets the csms of this AgencyAuthorizeInfo. + + 凭据管理权限信息。 + + :param csms: The csms of this AgencyAuthorizeInfo. + :type csms: bool + """ + self._csms = csms + + @property + def kms(self): + """Gets the kms of this AgencyAuthorizeInfo. + + 密钥管理权限信息。 + + :return: The kms of this AgencyAuthorizeInfo. + :rtype: bool + """ + return self._kms + + @kms.setter + def kms(self, kms): + """Sets the kms of this AgencyAuthorizeInfo. + + 密钥管理权限信息。 + + :param kms: The kms of this AgencyAuthorizeInfo. + :type kms: bool + """ + self._kms = kms + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AgencyAuthorizeInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/authorize_csms_and_kms_request_body.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/authorize_csms_and_kms_request_body.py index b54fa449f..6b961433a 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/authorize_csms_and_kms_request_body.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/authorize_csms_and_kms_request_body.py @@ -17,7 +17,7 @@ class AuthorizeCsmsAndKmsRequestBody: sensitive_list = [] openapi_types = { - 'authorization': 'object' + 'authorization': 'AgencyAuthorizeInfo' } attribute_map = { @@ -29,8 +29,8 @@ class AuthorizeCsmsAndKmsRequestBody: The model defined in huaweicloud sdk - :param authorization: 委托授权信息。 - :type authorization: object + :param authorization: + :type authorization: :class:`huaweicloudsdkcbh.v2.AgencyAuthorizeInfo` """ @@ -44,10 +44,8 @@ class AuthorizeCsmsAndKmsRequestBody: def authorization(self): """Gets the authorization of this AuthorizeCsmsAndKmsRequestBody. - 委托授权信息。 - :return: The authorization of this AuthorizeCsmsAndKmsRequestBody. - :rtype: object + :rtype: :class:`huaweicloudsdkcbh.v2.AgencyAuthorizeInfo` """ return self._authorization @@ -55,10 +53,8 @@ class AuthorizeCsmsAndKmsRequestBody: def authorization(self, authorization): """Sets the authorization of this AuthorizeCsmsAndKmsRequestBody. - 委托授权信息。 - :param authorization: The authorization of this AuthorizeCsmsAndKmsRequestBody. - :type authorization: object + :type authorization: :class:`huaweicloudsdkcbh.v2.AgencyAuthorizeInfo` """ self._authorization = authorization diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/cbh_instances.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/cbh_instances.py index f63ec5ce1..d9601df8b 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/cbh_instances.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/cbh_instances.py @@ -28,7 +28,7 @@ class CBHInstances: 'period_num': 'int', 'is_auto_renew': 'int', 'is_auto_pay': 'int', - 'network': 'object', + 'network': 'NetworkInfoCreate', 'ipv6_enable': 'bool', 'enterprise_project_id': 'str', 'attach_disk_size': 'int', @@ -81,8 +81,8 @@ class CBHInstances: :type is_auto_renew: int :param is_auto_pay: 是否自动支付,下单订购后,是否自动从客户的华为云账户中支付,而不需要客户手动去进行支付。 - 1:是(会自动选择折扣和优惠券进行优惠,然后自动从客户华为云账户中支付),自动支付失败后会生成订单成功(该订单应付金额是优惠后金额)、但订单状态为“待支付”,等待客户手动支付(手动支付时,客户还可以修改系统自动选择的折扣和优惠券) - 0:否(需要客户手动去支付,客户可以选择折扣和优惠券。) 默认值为“0” :type is_auto_pay: int - :param network: 网络信息。 - :type network: object + :param network: + :type network: :class:`huaweicloudsdkcbh.v2.NetworkInfoCreate` :param ipv6_enable: 云堡垒机实例是否支持IPV6。 默认值为“false”。 :type ipv6_enable: bool :param enterprise_project_id: 企业项目ID。 默认值为“0”。 @@ -385,10 +385,8 @@ class CBHInstances: def network(self): """Gets the network of this CBHInstances. - 网络信息。 - :return: The network of this CBHInstances. - :rtype: object + :rtype: :class:`huaweicloudsdkcbh.v2.NetworkInfoCreate` """ return self._network @@ -396,10 +394,8 @@ class CBHInstances: def network(self, network): """Sets the network of this CBHInstances. - 网络信息。 - :param network: The network of this CBHInstances. - :type network: object + :type network: :class:`huaweicloudsdkcbh.v2.NetworkInfoCreate` """ self._network = network diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/network_info_create.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/network_info_create.py new file mode 100644 index 000000000..76e6b2a78 --- /dev/null +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/network_info_create.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class NetworkInfoCreate: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'vpc_id': 'str', + 'subnet_id': 'str', + 'public_ip': 'object', + 'security_groups': 'list[SecurityGroup]', + 'private_ip': 'object' + } + + attribute_map = { + 'vpc_id': 'vpc_id', + 'subnet_id': 'subnet_id', + 'public_ip': 'public_ip', + 'security_groups': 'security_groups', + 'private_ip': 'private_ip' + } + + def __init__(self, vpc_id=None, subnet_id=None, public_ip=None, security_groups=None, private_ip=None): + """NetworkInfoCreate + + The model defined in huaweicloud sdk + + :param vpc_id: 待创建云服务器所属虚拟私有云(简称VPC),需要指定已创建VPC的ID,UUID格式。 VPC的ID可以从控制台或者参考《虚拟私有云接口参考》的“查询VPC”章节获取。 例如:03211ecf-xxxx-4306-xxxx-6e939bfxxxxx + :type vpc_id: str + :param subnet_id: 子网ID,字母数字下划线连接符组成。 + :type subnet_id: str + :param public_ip: 云堡垒机实例弹性公网IP信息。可填写null值 + :type public_ip: object + :param security_groups: 安全组信息。 + :type security_groups: list[:class:`huaweicloudsdkcbh.v2.SecurityGroup`] + :param private_ip: 私网IP信息。 + :type private_ip: object + """ + + + + self._vpc_id = None + self._subnet_id = None + self._public_ip = None + self._security_groups = None + self._private_ip = None + self.discriminator = None + + self.vpc_id = vpc_id + self.subnet_id = subnet_id + self.public_ip = public_ip + self.security_groups = security_groups + if private_ip is not None: + self.private_ip = private_ip + + @property + def vpc_id(self): + """Gets the vpc_id of this NetworkInfoCreate. + + 待创建云服务器所属虚拟私有云(简称VPC),需要指定已创建VPC的ID,UUID格式。 VPC的ID可以从控制台或者参考《虚拟私有云接口参考》的“查询VPC”章节获取。 例如:03211ecf-xxxx-4306-xxxx-6e939bfxxxxx + + :return: The vpc_id of this NetworkInfoCreate. + :rtype: str + """ + return self._vpc_id + + @vpc_id.setter + def vpc_id(self, vpc_id): + """Sets the vpc_id of this NetworkInfoCreate. + + 待创建云服务器所属虚拟私有云(简称VPC),需要指定已创建VPC的ID,UUID格式。 VPC的ID可以从控制台或者参考《虚拟私有云接口参考》的“查询VPC”章节获取。 例如:03211ecf-xxxx-4306-xxxx-6e939bfxxxxx + + :param vpc_id: The vpc_id of this NetworkInfoCreate. + :type vpc_id: str + """ + self._vpc_id = vpc_id + + @property + def subnet_id(self): + """Gets the subnet_id of this NetworkInfoCreate. + + 子网ID,字母数字下划线连接符组成。 + + :return: The subnet_id of this NetworkInfoCreate. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """Sets the subnet_id of this NetworkInfoCreate. + + 子网ID,字母数字下划线连接符组成。 + + :param subnet_id: The subnet_id of this NetworkInfoCreate. + :type subnet_id: str + """ + self._subnet_id = subnet_id + + @property + def public_ip(self): + """Gets the public_ip of this NetworkInfoCreate. + + 云堡垒机实例弹性公网IP信息。可填写null值 + + :return: The public_ip of this NetworkInfoCreate. + :rtype: object + """ + return self._public_ip + + @public_ip.setter + def public_ip(self, public_ip): + """Sets the public_ip of this NetworkInfoCreate. + + 云堡垒机实例弹性公网IP信息。可填写null值 + + :param public_ip: The public_ip of this NetworkInfoCreate. + :type public_ip: object + """ + self._public_ip = public_ip + + @property + def security_groups(self): + """Gets the security_groups of this NetworkInfoCreate. + + 安全组信息。 + + :return: The security_groups of this NetworkInfoCreate. + :rtype: list[:class:`huaweicloudsdkcbh.v2.SecurityGroup`] + """ + return self._security_groups + + @security_groups.setter + def security_groups(self, security_groups): + """Sets the security_groups of this NetworkInfoCreate. + + 安全组信息。 + + :param security_groups: The security_groups of this NetworkInfoCreate. + :type security_groups: list[:class:`huaweicloudsdkcbh.v2.SecurityGroup`] + """ + self._security_groups = security_groups + + @property + def private_ip(self): + """Gets the private_ip of this NetworkInfoCreate. + + 私网IP信息。 + + :return: The private_ip of this NetworkInfoCreate. + :rtype: object + """ + return self._private_ip + + @private_ip.setter + def private_ip(self, private_ip): + """Sets the private_ip of this NetworkInfoCreate. + + 私网IP信息。 + + :param private_ip: The private_ip of this NetworkInfoCreate. + :type private_ip: object + """ + self._private_ip = private_ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworkInfoCreate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/resources.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/resources.py index e7f7f62eb..a8f71ccfa 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/resources.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/resources.py @@ -18,7 +18,7 @@ class Resources: openapi_types = { 'resource_id': 'str', - 'resource_detail': 'object', + 'resource_detail': 'InstanceDetail', 'tags': 'list[ResourceTag]', 'sys_tags': 'list[ResourceTag]', 'resource_name': 'str' @@ -39,8 +39,8 @@ class Resources: :param resource_id: 实例ID。 :type resource_id: str - :param resource_detail: 资源详情。预留用于扩展,默认为空。 - :type resource_detail: object + :param resource_detail: + :type resource_detail: :class:`huaweicloudsdkcbh.v2.InstanceDetail` :param tags: tags。 :type tags: list[:class:`huaweicloudsdkcbh.v2.ResourceTag`] :param sys_tags: sys_tags。 @@ -90,10 +90,8 @@ class Resources: def resource_detail(self): """Gets the resource_detail of this Resources. - 资源详情。预留用于扩展,默认为空。 - :return: The resource_detail of this Resources. - :rtype: object + :rtype: :class:`huaweicloudsdkcbh.v2.InstanceDetail` """ return self._resource_detail @@ -101,10 +99,8 @@ class Resources: def resource_detail(self, resource_detail): """Sets the resource_detail of this Resources. - 资源详情。预留用于扩展,默认为空。 - :param resource_detail: The resource_detail of this Resources. - :type resource_detail: object + :type resource_detail: :class:`huaweicloudsdkcbh.v2.InstanceDetail` """ self._resource_detail = resource_detail diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/security_group.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/security_group.py new file mode 100644 index 000000000..24a4bde40 --- /dev/null +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/security_group.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SecurityGroup: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """SecurityGroup + + 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 SecurityGroup. + + 云堡垒机实例安全组ID,字母数字下划线连接符组成。 + + :return: The id of this SecurityGroup. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SecurityGroup. + + 云堡垒机实例安全组ID,字母数字下划线连接符组成。 + + :param id: The id of this SecurityGroup. + :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, SecurityGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/show_authorization_response.py b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/show_authorization_response.py index 11f340a90..a84497c10 100644 --- a/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/show_authorization_response.py +++ b/huaweicloud-sdk-cbh/huaweicloudsdkcbh/v2/model/show_authorization_response.py @@ -18,7 +18,7 @@ class ShowAuthorizationResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'authorization': 'object' + 'authorization': 'AgencyAuthorizeInfo' } attribute_map = { @@ -30,8 +30,8 @@ class ShowAuthorizationResponse(SdkResponse): The model defined in huaweicloud sdk - :param authorization: 委托授权信息。 - :type authorization: object + :param authorization: + :type authorization: :class:`huaweicloudsdkcbh.v2.AgencyAuthorizeInfo` """ super(ShowAuthorizationResponse, self).__init__() @@ -46,10 +46,8 @@ class ShowAuthorizationResponse(SdkResponse): def authorization(self): """Gets the authorization of this ShowAuthorizationResponse. - 委托授权信息。 - :return: The authorization of this ShowAuthorizationResponse. - :rtype: object + :rtype: :class:`huaweicloudsdkcbh.v2.AgencyAuthorizeInfo` """ return self._authorization @@ -57,10 +55,8 @@ class ShowAuthorizationResponse(SdkResponse): def authorization(self, authorization): """Sets the authorization of this ShowAuthorizationResponse. - 委托授权信息。 - :param authorization: The authorization of this ShowAuthorizationResponse. - :type authorization: object + :type authorization: :class:`huaweicloudsdkcbh.v2.AgencyAuthorizeInfo` """ self._authorization = authorization diff --git a/huaweicloud-sdk-cbh/requirements.txt b/huaweicloud-sdk-cbh/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cbh/requirements.txt +++ b/huaweicloud-sdk-cbh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cbh/setup.py b/huaweicloud-sdk-cbh/setup.py index 1e6a7a000..546710a2c 100644 --- a/huaweicloud-sdk-cbh/setup.py +++ b/huaweicloud-sdk-cbh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbh" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbr/requirements.txt b/huaweicloud-sdk-cbr/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cbr/requirements.txt +++ b/huaweicloud-sdk-cbr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cbr/setup.py b/huaweicloud-sdk-cbr/setup.py index 72f314e2b..5ffa6e9de 100644 --- a/huaweicloud-sdk-cbr/setup.py +++ b/huaweicloud-sdk-cbr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbr" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cbs/requirements.txt b/huaweicloud-sdk-cbs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cbs/requirements.txt +++ b/huaweicloud-sdk-cbs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cbs/setup.py b/huaweicloud-sdk-cbs/setup.py index e80cc0d7a..8f1430f61 100644 --- a/huaweicloud-sdk-cbs/setup.py +++ b/huaweicloud-sdk-cbs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcbs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cc/requirements.txt b/huaweicloud-sdk-cc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cc/requirements.txt +++ b/huaweicloud-sdk-cc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cc/setup.py b/huaweicloud-sdk-cc/setup.py index 49fc07ab4..ef5a64abb 100644 --- a/huaweicloud-sdk-cc/setup.py +++ b/huaweicloud-sdk-cc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/host_network.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/host_network.py index f33aadce3..42f83ea9e 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/host_network.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/host_network.py @@ -33,7 +33,7 @@ class HostNetwork: The model defined in huaweicloud sdk - :param vpc: 用于创建控制节点的VPC的ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询。 [链接请参见[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)](tag:hws) [链接请参见[查询VPC列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_api01_0003.html)](tag:hws_hk) > 当前vpc-router容器网络模型不支持对接含拓展网段的VPC。 + :param vpc: 用于创建控制节点的VPC的ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询。 [链接请参见[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)](tag:hws) [链接请参见[查询VPC列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_api01_0003.html)](tag:hws_hk) :type vpc: str :param subnet: 用于创建控制节点的subnet的网络ID。获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的查询子网列表接口查询。 [链接请参见[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)](tag:hws) [链接请参见[查询子网列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_subnet01_0003.html)](tag:hws_hk) :type subnet: str @@ -57,7 +57,7 @@ class HostNetwork: def vpc(self): """Gets the vpc of this HostNetwork. - 用于创建控制节点的VPC的ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询。 [链接请参见[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)](tag:hws) [链接请参见[查询VPC列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_api01_0003.html)](tag:hws_hk) > 当前vpc-router容器网络模型不支持对接含拓展网段的VPC。 + 用于创建控制节点的VPC的ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询。 [链接请参见[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)](tag:hws) [链接请参见[查询VPC列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_api01_0003.html)](tag:hws_hk) :return: The vpc of this HostNetwork. :rtype: str @@ -68,7 +68,7 @@ class HostNetwork: def vpc(self, vpc): """Sets the vpc of this HostNetwork. - 用于创建控制节点的VPC的ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询。 [链接请参见[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)](tag:hws) [链接请参见[查询VPC列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_api01_0003.html)](tag:hws_hk) > 当前vpc-router容器网络模型不支持对接含拓展网段的VPC。 + 用于创建控制节点的VPC的ID。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询。 [链接请参见[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)](tag:hws) [链接请参见[查询VPC列表](https://support.huaweicloud.com/intl/zh-cn/api-vpc/vpc_api01_0003.html)](tag:hws_hk) :param vpc: The vpc of this HostNetwork. :type vpc: str diff --git a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_spec.py b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_spec.py index a51d93bd6..5c868ec1e 100644 --- a/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_spec.py +++ b/huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/node_spec.py @@ -93,7 +93,7 @@ class NodeSpec: :type taints: list[:class:`huaweicloudsdkcce.v3.Taint`] :param k8s_tags: 格式为key/value键值对。键值对个数不超过20条。 - Key:必须以字母或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符;另外可以使用DNS子域作为前缀,例如example.com/my-key,DNS子域最长253个字符。 - Value:可以为空或者非空字符串,非空字符串必须以字符或数字开头,可以包含字母、数字、连字符、下划线和点,最长63个字符。 字段使用场景:在节点创建场景下,支持指定初始值,查询时不返回该字段;在节点池场景下,其中节点模板中支持指定初始值,查询时支持返回该字段;在其余场景下,查询时都不会返回该字段。 示例: ``` \"k8sTags\": { \"key\": \"value\" } ``` :type k8s_tags: dict(str, str) - :param ecs_group_id: 云服务器组ID,若指定,将节点创建在该云服务器组下 + :param ecs_group_id: 云服务器组ID,若指定,将节点创建在该云服务器组下 > 创建节点池时该配置不会生效,若要保持节点池中的节点都在同一个云服务器组内,请在节点池 nodeManagement 字段中配置 :type ecs_group_id: str :param dedicated_host_id: 指定DeH主机的ID,将节点调度到自己的DeH上。 >创建节点池添加节点时不支持该参数。 :type dedicated_host_id: str @@ -439,7 +439,7 @@ class NodeSpec: def ecs_group_id(self): """Gets the ecs_group_id of this NodeSpec. - 云服务器组ID,若指定,将节点创建在该云服务器组下 + 云服务器组ID,若指定,将节点创建在该云服务器组下 > 创建节点池时该配置不会生效,若要保持节点池中的节点都在同一个云服务器组内,请在节点池 nodeManagement 字段中配置 :return: The ecs_group_id of this NodeSpec. :rtype: str @@ -450,7 +450,7 @@ class NodeSpec: def ecs_group_id(self, ecs_group_id): """Sets the ecs_group_id of this NodeSpec. - 云服务器组ID,若指定,将节点创建在该云服务器组下 + 云服务器组ID,若指定,将节点创建在该云服务器组下 > 创建节点池时该配置不会生效,若要保持节点池中的节点都在同一个云服务器组内,请在节点池 nodeManagement 字段中配置 :param ecs_group_id: The ecs_group_id of this NodeSpec. :type ecs_group_id: str diff --git a/huaweicloud-sdk-cce/requirements.txt b/huaweicloud-sdk-cce/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cce/requirements.txt +++ b/huaweicloud-sdk-cce/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cce/setup.py b/huaweicloud-sdk-cce/setup.py index 2c67b8696..63d3b3aa0 100644 --- a/huaweicloud-sdk-cce/setup.py +++ b/huaweicloud-sdk-cce/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcce" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ccm/requirements.txt b/huaweicloud-sdk-ccm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ccm/requirements.txt +++ b/huaweicloud-sdk-ccm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ccm/setup.py b/huaweicloud-sdk-ccm/setup.py index 81b5411b0..466d82083 100644 --- a/huaweicloud-sdk-ccm/setup.py +++ b/huaweicloud-sdk-ccm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkccm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdm/requirements.txt b/huaweicloud-sdk-cdm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cdm/requirements.txt +++ b/huaweicloud-sdk-cdm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cdm/setup.py b/huaweicloud-sdk-cdm/setup.py index 58feba8fe..20baae0ba 100644 --- a/huaweicloud-sdk-cdm/setup.py +++ b/huaweicloud-sdk-cdm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cdn/requirements.txt b/huaweicloud-sdk-cdn/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cdn/requirements.txt +++ b/huaweicloud-sdk-cdn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cdn/setup.py b/huaweicloud-sdk-cdn/setup.py index 9e8b2373f..9af958ce2 100644 --- a/huaweicloud-sdk-cdn/setup.py +++ b/huaweicloud-sdk-cdn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcdn" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ces/requirements.txt b/huaweicloud-sdk-ces/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ces/requirements.txt +++ b/huaweicloud-sdk-ces/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ces/setup.py b/huaweicloud-sdk-ces/setup.py index 103481d00..84cf1c4ec 100644 --- a/huaweicloud-sdk-ces/setup.py +++ b/huaweicloud-sdk-ces/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkces" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cfw/requirements.txt b/huaweicloud-sdk-cfw/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cfw/requirements.txt +++ b/huaweicloud-sdk-cfw/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cfw/setup.py b/huaweicloud-sdk-cfw/setup.py index 5c95a76c8..7c4549826 100644 --- a/huaweicloud-sdk-cfw/setup.py +++ b/huaweicloud-sdk-cfw/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcfw" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cgs/requirements.txt b/huaweicloud-sdk-cgs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cgs/requirements.txt +++ b/huaweicloud-sdk-cgs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cgs/setup.py b/huaweicloud-sdk-cgs/setup.py index c91843690..339171555 100644 --- a/huaweicloud-sdk-cgs/setup.py +++ b/huaweicloud-sdk-cgs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcgs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-classroom/requirements.txt b/huaweicloud-sdk-classroom/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-classroom/requirements.txt +++ b/huaweicloud-sdk-classroom/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-classroom/setup.py b/huaweicloud-sdk-classroom/setup.py index b5f4fefbb..057c0a83b 100644 --- a/huaweicloud-sdk-classroom/setup.py +++ b/huaweicloud-sdk-classroom/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkclassroom" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudide/requirements.txt b/huaweicloud-sdk-cloudide/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cloudide/requirements.txt +++ b/huaweicloud-sdk-cloudide/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudide/setup.py b/huaweicloud-sdk-cloudide/setup.py index 538189a6a..7b8e12b0d 100644 --- a/huaweicloud-sdk-cloudide/setup.py +++ b/huaweicloud-sdk-cloudide/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudide" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudpond/requirements.txt b/huaweicloud-sdk-cloudpond/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cloudpond/requirements.txt +++ b/huaweicloud-sdk-cloudpond/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudpond/setup.py b/huaweicloud-sdk-cloudpond/setup.py index 2d462b2d7..fc254b8f7 100644 --- a/huaweicloud-sdk-cloudpond/setup.py +++ b/huaweicloud-sdk-cloudpond/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudpond" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudrtc/requirements.txt b/huaweicloud-sdk-cloudrtc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cloudrtc/requirements.txt +++ b/huaweicloud-sdk-cloudrtc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudrtc/setup.py b/huaweicloud-sdk-cloudrtc/setup.py index 652435e61..0d461af90 100644 --- a/huaweicloud-sdk-cloudrtc/setup.py +++ b/huaweicloud-sdk-cloudrtc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudrtc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtable/requirements.txt b/huaweicloud-sdk-cloudtable/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cloudtable/requirements.txt +++ b/huaweicloud-sdk-cloudtable/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtable/setup.py b/huaweicloud-sdk-cloudtable/setup.py index b85a470ca..326df7430 100644 --- a/huaweicloud-sdk-cloudtable/setup.py +++ b/huaweicloud-sdk-cloudtable/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtable" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cloudtest/requirements.txt b/huaweicloud-sdk-cloudtest/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cloudtest/requirements.txt +++ b/huaweicloud-sdk-cloudtest/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cloudtest/setup.py b/huaweicloud-sdk-cloudtest/setup.py index 20ba30076..ba4080d72 100644 --- a/huaweicloud-sdk-cloudtest/setup.py +++ b/huaweicloud-sdk-cloudtest/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcloudtest" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/__init__.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/__init__.py index d3ed20d8c..b95bd738b 100644 --- a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/__init__.py +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/__init__.py @@ -5,10 +5,72 @@ from __future__ import absolute_import from huaweicloudsdkcodeartsartifact.v2.codeartsartifact_client import CodeArtsArtifactClient from huaweicloudsdkcodeartsartifact.v2.codeartsartifact_async_client import CodeArtsArtifactAsyncClient +from huaweicloudsdkcodeartsartifact.v2.model.attention_do import AttentionDO +from huaweicloudsdkcodeartsartifact.v2.model.batch_delete_trashes_request import BatchDeleteTrashesRequest +from huaweicloudsdkcodeartsartifact.v2.model.batch_delete_trashes_response import BatchDeleteTrashesResponse +from huaweicloudsdkcodeartsartifact.v2.model.batch_restore_repo_request import BatchRestoreRepoRequest +from huaweicloudsdkcodeartsartifact.v2.model.batch_restore_repo_response import BatchRestoreRepoResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_artifactory_request import CreateArtifactoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_artifactory_response import CreateArtifactoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_attention_request import CreateAttentionRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_attention_response import CreateAttentionResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_docker_repositories_request import CreateDockerRepositoriesRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_docker_repositories_response import CreateDockerRepositoriesResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_docker_repository_do import CreateDockerRepositoryDO +from huaweicloudsdkcodeartsartifact.v2.model.create_maven_repo_request import CreateMavenRepoRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_maven_repo_response import CreateMavenRepoResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_not_maven_repo_do import CreateNotMavenRepoDO +from huaweicloudsdkcodeartsartifact.v2.model.create_project_related_repository_request import CreateProjectRelatedRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_project_related_repository_response import CreateProjectRelatedRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.delete_artifact_file_request import DeleteArtifactFileRequest +from huaweicloudsdkcodeartsartifact.v2.model.delete_artifact_file_response import DeleteArtifactFileResponse +from huaweicloudsdkcodeartsartifact.v2.model.delete_repository_request import DeleteRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.delete_repository_response import DeleteRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.ide_privilage_project_info import IDEPrivilageProjectInfo +from huaweicloudsdkcodeartsartifact.v2.model.ide_repo_revision_model import IDERepoRevisionModel +from huaweicloudsdkcodeartsartifact.v2.model.ide_repo_search_do import IDERepoSearchDO +from huaweicloudsdkcodeartsartifact.v2.model.ide_repository_do import IDERepositoryDO +from huaweicloudsdkcodeartsartifact.v2.model.ide_repository_pair import IDERepositoryPair +from huaweicloudsdkcodeartsartifact.v2.model.ide_trash_artifact_model import IDETrashArtifactModel +from huaweicloudsdkcodeartsartifact.v2.model.list_all_repositories_request import ListAllRepositoriesRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_all_repositories_response import ListAllRepositoriesResponse +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_component_request import ListArtifactoryComponentRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_component_response import ListArtifactoryComponentResponse +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_storage_statistic_request import ListArtifactoryStorageStatisticRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_storage_statistic_response import ListArtifactoryStorageStatisticResponse +from huaweicloudsdkcodeartsartifact.v2.model.list_attentions_request import ListAttentionsRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_attentions_response import ListAttentionsResponse +from huaweicloudsdkcodeartsartifact.v2.model.modify_repository_request import ModifyRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.modify_repository_response import ModifyRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.path_map import PathMap from huaweicloudsdkcodeartsartifact.v2.model.release_file_version_do import ReleaseFileVersionDo +from huaweicloudsdkcodeartsartifact.v2.model.reset_user_password_request import ResetUserPasswordRequest +from huaweicloudsdkcodeartsartifact.v2.model.reset_user_password_response import ResetUserPasswordResponse +from huaweicloudsdkcodeartsartifact.v2.model.search_artifacts_request import SearchArtifactsRequest +from huaweicloudsdkcodeartsartifact.v2.model.search_artifacts_response import SearchArtifactsResponse +from huaweicloudsdkcodeartsartifact.v2.model.search_by_checksum_request import SearchByChecksumRequest +from huaweicloudsdkcodeartsartifact.v2.model.search_by_checksum_response import SearchByChecksumResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_audit_request import ShowAuditRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_audit_response import ShowAuditResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_file_tree_request import ShowFileTreeRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_file_tree_response import ShowFileTreeResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_maven_info_request import ShowMavenInfoRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_maven_info_response import ShowMavenInfoResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_project_list_request import ShowProjectListRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_project_list_response import ShowProjectListResponse from huaweicloudsdkcodeartsartifact.v2.model.show_project_release_files_request import ShowProjectReleaseFilesRequest from huaweicloudsdkcodeartsartifact.v2.model.show_project_release_files_response import ShowProjectReleaseFilesResponse from huaweicloudsdkcodeartsartifact.v2.model.show_release_project_files_request import ShowReleaseProjectFilesRequest from huaweicloudsdkcodeartsartifact.v2.model.show_release_project_files_response import ShowReleaseProjectFilesResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_info_request import ShowRepositoryInfoRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_info_response import ShowRepositoryInfoResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_request import ShowRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_response import ShowRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_storage_request import ShowStorageRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_storage_response import ShowStorageResponse from huaweicloudsdkcodeartsartifact.v2.model.standard_response_result import StandardResponseResult +from huaweicloudsdkcodeartsartifact.v2.model.trash_artifact_model_for_delete import TrashArtifactModelForDelete +from huaweicloudsdkcodeartsartifact.v2.model.update_artifactory_request import UpdateArtifactoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.update_artifactory_response import UpdateArtifactoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.update_not_maven_repo_do import UpdateNotMavenRepoDO diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_async_client.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_async_client.py index f94fa0635..2fe6c20a1 100644 --- a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_async_client.py +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_async_client.py @@ -32,6 +32,1461 @@ class CodeArtsArtifactAsyncClient(Client): return client_builder + def batch_delete_trashes_async(self, request): + """批量删除回收站 + + 批量删除回收站 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchDeleteTrashes + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.BatchDeleteTrashesRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.BatchDeleteTrashesResponse` + """ + http_info = self._batch_delete_trashes_http_info(request) + return self._call_api(**http_info) + + def batch_delete_trashes_async_invoker(self, request): + http_info = self._batch_delete_trashes_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_delete_trashes_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/cloudartifact/v5/trashes", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteTrashesResponse" + } + + 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 batch_restore_repo_async(self, request): + """批量还原回收站 + + 批量还原回收站 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for BatchRestoreRepo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.BatchRestoreRepoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.BatchRestoreRepoResponse` + """ + http_info = self._batch_restore_repo_http_info(request) + return self._call_api(**http_info) + + def batch_restore_repo_async_invoker(self, request): + http_info = self._batch_restore_repo_http_info(request) + return AsyncInvoker(self, http_info) + + def _batch_restore_repo_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/cloudartifact/v5/trashes", + "request_type": request.__class__.__name__, + "response_type": "BatchRestoreRepoResponse" + } + + 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 = ['apig-auth-iam'] + + 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_artifactory_async(self, request): + """创建非maven仓库 + + 创建非maven仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateArtifactory + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateArtifactoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateArtifactoryResponse` + """ + http_info = self._create_artifactory_http_info(request) + return self._call_api(**http_info) + + def create_artifactory_async_invoker(self, request): + http_info = self._create_artifactory_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_artifactory_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/artifact/", + "request_type": request.__class__.__name__, + "response_type": "CreateArtifactoryResponse" + } + + 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_attention_async(self, request): + """关注组件/取消关注组件 + + 关注组件/取消关注组件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateAttention + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateAttentionRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateAttentionResponse` + """ + http_info = self._create_attention_http_info(request) + return self._call_api(**http_info) + + def create_attention_async_invoker(self, request): + http_info = self._create_attention_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_attention_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/attention", + "request_type": request.__class__.__name__, + "response_type": "CreateAttentionResponse" + } + + 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_docker_repositories_async(self, request): + """创建docker仓库 + + 创建docker仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateDockerRepositories + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateDockerRepositoriesRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateDockerRepositoriesResponse` + """ + http_info = self._create_docker_repositories_http_info(request) + return self._call_api(**http_info) + + def create_docker_repositories_async_invoker(self, request): + http_info = self._create_docker_repositories_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_docker_repositories_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/repositories", + "request_type": request.__class__.__name__, + "response_type": "CreateDockerRepositoriesResponse" + } + + 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_maven_repo_async(self, request): + """创建maven仓库 + + 创建maven仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateMavenRepo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateMavenRepoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateMavenRepoResponse` + """ + http_info = self._create_maven_repo_http_info(request) + return self._call_api(**http_info) + + def create_maven_repo_async_invoker(self, request): + http_info = self._create_maven_repo_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_maven_repo_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/maven/repositories", + "request_type": request.__class__.__name__, + "response_type": "CreateMavenRepoResponse" + } + + 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 = ['apig-auth-iam'] + + 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_project_related_repository_async(self, request): + """创建项目关联仓库 + + 创建项目管理关联仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateProjectRelatedRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateProjectRelatedRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateProjectRelatedRepositoryResponse` + """ + http_info = self._create_project_related_repository_http_info(request) + return self._call_api(**http_info) + + def create_project_related_repository_async_invoker(self, request): + http_info = self._create_project_related_repository_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_project_related_repository_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/maven/project/repository", + "request_type": request.__class__.__name__, + "response_type": "CreateProjectRelatedRepositoryResponse" + } + + 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 = ['apig-auth-iam'] + + 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_artifact_file_async(self, request): + """非maven删除文件 + + 非maven删除文件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteArtifactFile + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteArtifactFileRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteArtifactFileResponse` + """ + http_info = self._delete_artifact_file_http_info(request) + return self._call_api(**http_info) + + def delete_artifact_file_async_invoker(self, request): + http_info = self._delete_artifact_file_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_artifact_file_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/cloudartifact/v5/file", + "request_type": request.__class__.__name__, + "response_type": "DeleteArtifactFileResponse" + } + + 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_repository_async(self, request): + """删除仓库到回收站 + + 删除仓库到回收站 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteRepositoryResponse` + """ + http_info = self._delete_repository_http_info(request) + return self._call_api(**http_info) + + def delete_repository_async_invoker(self, request): + http_info = self._delete_repository_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_repository_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/cloudartifact/v5/repositories", + "request_type": request.__class__.__name__, + "response_type": "DeleteRepositoryResponse" + } + + 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 = ['apig-auth-iam'] + + 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_all_repositories_async(self, request): + """查询仓库详情,不会去统计仓库下的制品数量 + + 查询仓库详情,不会去统计仓库下的制品数量 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAllRepositories + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListAllRepositoriesRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListAllRepositoriesResponse` + """ + http_info = self._list_all_repositories_http_info(request) + return self._call_api(**http_info) + + def list_all_repositories_async_invoker(self, request): + http_info = self._list_all_repositories_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_all_repositories_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/repositories", + "request_type": request.__class__.__name__, + "response_type": "ListAllRepositoriesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + + query_params = [] + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + if 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'sort' in local_var_params: + query_params.append(('sort', local_var_params['sort'])) + if 'qname' in local_var_params: + query_params.append(('qname', local_var_params['qname'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'format' in local_var_params: + query_params.append(('format', local_var_params['format'])) + if 'format_list' in local_var_params: + query_params.append(('format_list', local_var_params['format_list'])) + if 'is_recycle_bin' in local_var_params: + query_params.append(('is_recycle_bin', local_var_params['is_recycle_bin'])) + if 'is_need_paging' in local_var_params: + query_params.append(('is_need_paging', local_var_params['is_need_paging'])) + if 'in_project' in local_var_params: + query_params.append(('in_project', local_var_params['in_project'])) + + 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_artifactory_component_async(self, request): + """查询仓库文件详情 + + 查询仓库文件详情 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListArtifactoryComponent + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryComponentRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryComponentResponse` + """ + http_info = self._list_artifactory_component_http_info(request) + return self._call_api(**http_info) + + def list_artifactory_component_async_invoker(self, request): + http_info = self._list_artifactory_component_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_artifactory_component_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{repo_name}/file-detail", + "request_type": request.__class__.__name__, + "response_type": "ListArtifactoryComponentResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'repo_name' in local_var_params: + path_params['repo_name'] = local_var_params['repo_name'] + + query_params = [] + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) + if 'format' in local_var_params: + query_params.append(('format', local_var_params['format'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_artifactory_storage_statistic_async(self, request): + """查询存储容量趋势 + + 查询存储容量趋势 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListArtifactoryStorageStatistic + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryStorageStatisticRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryStorageStatisticResponse` + """ + http_info = self._list_artifactory_storage_statistic_http_info(request) + return self._call_api(**http_info) + + def list_artifactory_storage_statistic_async_invoker(self, request): + http_info = self._list_artifactory_storage_statistic_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_artifactory_storage_statistic_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/storageinfo/statistic", + "request_type": request.__class__.__name__, + "response_type": "ListArtifactoryStorageStatisticResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + + query_params = [] + if 'repo' in local_var_params: + query_params.append(('repo', local_var_params['repo'])) + 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 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_attentions_async(self, request): + """查询关注列表 + + 查询关注列表 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListAttentions + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListAttentionsRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListAttentionsResponse` + """ + http_info = self._list_attentions_http_info(request) + return self._call_api(**http_info) + + def list_attentions_async_invoker(self, request): + http_info = self._list_attentions_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_attentions_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/attention/artifacts", + "request_type": request.__class__.__name__, + "response_type": "ListAttentionsResponse" + } + + 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 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_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 modify_repository_async(self, request): + """编辑仓库 + + 编辑仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ModifyRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ModifyRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ModifyRepositoryResponse` + """ + http_info = self._modify_repository_http_info(request) + return self._call_api(**http_info) + + def modify_repository_async_invoker(self, request): + http_info = self._modify_repository_http_info(request) + return AsyncInvoker(self, http_info) + + def _modify_repository_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/cloudartifact/v5/repositories/tab/{tab_id}", + "request_type": request.__class__.__name__, + "response_type": "ModifyRepositoryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tab_id' in local_var_params: + path_params['tab_id'] = local_var_params['tab_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 = ['apig-auth-iam'] + + 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 reset_user_password_async(self, request): + """重置用户密码 + + 重置用户密码 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ResetUserPassword + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ResetUserPasswordRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ResetUserPasswordResponse` + """ + http_info = self._reset_user_password_http_info(request) + return self._call_api(**http_info) + + def reset_user_password_async_invoker(self, request): + http_info = self._reset_user_password_http_info(request) + return AsyncInvoker(self, http_info) + + def _reset_user_password_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/maven/users/me", + "request_type": request.__class__.__name__, + "response_type": "ResetUserPasswordResponse" + } + + 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 isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + 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 search_artifacts_async(self, request): + """统筹搜索 + + 统筹搜索 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SearchArtifacts + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.SearchArtifactsRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.SearchArtifactsResponse` + """ + http_info = self._search_artifacts_http_info(request) + return self._call_api(**http_info) + + def search_artifacts_async_invoker(self, request): + http_info = self._search_artifacts_http_info(request) + return AsyncInvoker(self, http_info) + + def _search_artifacts_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/tree/repos/artifacts", + "request_type": request.__class__.__name__, + "response_type": "SearchArtifactsResponse" + } + + 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 = ['apig-auth-iam'] + + 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 search_by_checksum_async(self, request): + """通过checksum搜索文件 + + 通过checksum搜索文件 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SearchByChecksum + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.SearchByChecksumRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.SearchByChecksumResponse` + """ + http_info = self._search_by_checksum_http_info(request) + return self._call_api(**http_info) + + def search_by_checksum_async_invoker(self, request): + http_info = self._search_by_checksum_http_info(request) + return AsyncInvoker(self, http_info) + + def _search_by_checksum_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/search/checksum", + "request_type": request.__class__.__name__, + "response_type": "SearchByChecksumResponse" + } + + 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 'checksum' in local_var_params: + query_params.append(('checksum', local_var_params['checksum'])) + if 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'format' in local_var_params: + query_params.append(('format', local_var_params['format'])) + if 'in_project' in local_var_params: + query_params.append(('in_project', local_var_params['in_project'])) + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_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 = ['apig-auth-iam'] + + 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_audit_async(self, request): + """查询仓库或文件的审计日志信息 + + 查询仓库或文件的审计日志信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowAudit + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowAuditRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowAuditResponse` + """ + http_info = self._show_audit_http_info(request) + return self._call_api(**http_info) + + def show_audit_async_invoker(self, request): + http_info = self._show_audit_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_audit_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{module}/{repo}/audit", + "request_type": request.__class__.__name__, + "response_type": "ShowAuditResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'module' in local_var_params: + path_params['module'] = local_var_params['module'] + if 'repo' in local_var_params: + path_params['repo'] = local_var_params['repo'] + + query_params = [] + if 'user_id' in local_var_params: + query_params.append(('user_id', local_var_params['user_id'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'page_num' in local_var_params: + query_params.append(('page_num', local_var_params['page_num'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + + 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_file_tree_async(self, request): + """查询仓库文件夹目录 + + 查询仓库文件夹目录 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowFileTree + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowFileTreeRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowFileTreeResponse` + """ + http_info = self._show_file_tree_http_info(request) + return self._call_api(**http_info) + + def show_file_tree_async_invoker(self, request): + http_info = self._show_file_tree_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_file_tree_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{repo_name}/file-tree", + "request_type": request.__class__.__name__, + "response_type": "ShowFileTreeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'repo_name' in local_var_params: + path_params['repo_name'] = local_var_params['repo_name'] + + query_params = [] + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'is_recycle_bin' in local_var_params: + query_params.append(('is_recycle_bin', local_var_params['is_recycle_bin'])) + + 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 = ['apig-auth-iam'] + + 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_maven_info_async(self, request): + """查询租户Maven仓库列表和账号密码 + + 查询租户Maven仓库列表和账号密码,支持跨租户 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowMavenInfo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowMavenInfoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowMavenInfoResponse` + """ + http_info = self._show_maven_info_http_info(request) + return self._call_api(**http_info) + + def show_maven_info_async_invoker(self, request): + http_info = self._show_maven_info_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_maven_info_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/maven/info", + "request_type": request.__class__.__name__, + "response_type": "ShowMavenInfoResponse" + } + + 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 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_id'])) + if 'policy' in local_var_params: + query_params.append(('policy', local_var_params['policy'])) + if 'access' in local_var_params: + query_params.append(('access', local_var_params['access'])) + if 'default' in local_var_params: + query_params.append(('default', local_var_params['default'])) + if 'ids' in local_var_params: + query_params.append(('ids', local_var_params['ids'])) + + 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 = ['apig-auth-iam'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_project_list_async(self, request): + """查询项目管理关联仓库 + + 查询项目管理关联仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowProjectList + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowProjectListRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowProjectListResponse` + """ + http_info = self._show_project_list_http_info(request) + return self._call_api(**http_info) + + def show_project_list_async_invoker(self, request): + http_info = self._show_project_list_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_project_list_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/maven/repository/list", + "request_type": request.__class__.__name__, + "response_type": "ShowProjectListResponse" + } + + 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 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_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 = ['apig-auth-iam'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_project_release_files_async(self, request): """获取项目下文件版本信息列表 @@ -176,6 +1631,274 @@ class CodeArtsArtifactAsyncClient(Client): return http_info + def show_repository_async(self, request): + """查询单个仓库详细信息,会去统计仓库下的制品数量 + + 查询单个仓库详细信息,会去统计仓库下的制品数量 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryResponse` + """ + http_info = self._show_repository_http_info(request) + return self._call_api(**http_info) + + def show_repository_async_invoker(self, request): + http_info = self._show_repository_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_repository_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{repo_id}/repositories", + "request_type": request.__class__.__name__, + "response_type": "ShowRepositoryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'repo_id' in local_var_params: + path_params['repo_id'] = local_var_params['repo_id'] + + query_params = [] + if 'region' in local_var_params: + query_params.append(('region', local_var_params['region'])) + + 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_repository_info_async(self, request): + """查看仓库信息 + + 查看仓库信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowRepositoryInfo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryInfoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryInfoResponse` + """ + http_info = self._show_repository_info_http_info(request) + return self._call_api(**http_info) + + def show_repository_info_async_invoker(self, request): + http_info = self._show_repository_info_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_repository_info_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/repositories/{repo_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRepositoryInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'repo_id' in local_var_params: + path_params['repo_id'] = local_var_params['repo_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 = ['apig-auth-iam'] + + 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_storage_async(self, request): + """仓库用量查询 + + 仓库用量查询 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowStorage + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowStorageRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowStorageResponse` + """ + http_info = self._show_storage_http_info(request) + return self._call_api(**http_info) + + def show_storage_async_invoker(self, request): + http_info = self._show_storage_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_storage_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/storage", + "request_type": request.__class__.__name__, + "response_type": "ShowStorageResponse" + } + + 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 'format_list' in local_var_params: + query_params.append(('format_list', local_var_params['format_list'])) + if 'in_project' in local_var_params: + query_params.append(('in_project', local_var_params['in_project'])) + + 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 = ['apig-auth-iam'] + + 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_artifactory_async(self, request): + """编辑非maven仓库信息 + + 编辑非maven仓库信息 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateArtifactory + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.UpdateArtifactoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.UpdateArtifactoryResponse` + """ + http_info = self._update_artifactory_http_info(request) + return self._call_api(**http_info) + + def update_artifactory_async_invoker(self, request): + http_info = self._update_artifactory_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_artifactory_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/cloudartifact/v5/artifact/", + "request_type": request.__class__.__name__, + "response_type": "UpdateArtifactoryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def _call_api(self, **kwargs): try: kwargs["async_request"] = True diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_client.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_client.py index 017aafa13..3e0caba04 100644 --- a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_client.py +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/codeartsartifact_client.py @@ -32,6 +32,1461 @@ class CodeArtsArtifactClient(Client): return client_builder + def batch_delete_trashes(self, request): + """批量删除回收站 + + 批量删除回收站 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchDeleteTrashes + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.BatchDeleteTrashesRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.BatchDeleteTrashesResponse` + """ + http_info = self._batch_delete_trashes_http_info(request) + return self._call_api(**http_info) + + def batch_delete_trashes_invoker(self, request): + http_info = self._batch_delete_trashes_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_delete_trashes_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/cloudartifact/v5/trashes", + "request_type": request.__class__.__name__, + "response_type": "BatchDeleteTrashesResponse" + } + + 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 batch_restore_repo(self, request): + """批量还原回收站 + + 批量还原回收站 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for BatchRestoreRepo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.BatchRestoreRepoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.BatchRestoreRepoResponse` + """ + http_info = self._batch_restore_repo_http_info(request) + return self._call_api(**http_info) + + def batch_restore_repo_invoker(self, request): + http_info = self._batch_restore_repo_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _batch_restore_repo_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/cloudartifact/v5/trashes", + "request_type": request.__class__.__name__, + "response_type": "BatchRestoreRepoResponse" + } + + 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 = ['apig-auth-iam'] + + 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_artifactory(self, request): + """创建非maven仓库 + + 创建非maven仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateArtifactory + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateArtifactoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateArtifactoryResponse` + """ + http_info = self._create_artifactory_http_info(request) + return self._call_api(**http_info) + + def create_artifactory_invoker(self, request): + http_info = self._create_artifactory_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_artifactory_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/artifact/", + "request_type": request.__class__.__name__, + "response_type": "CreateArtifactoryResponse" + } + + 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_attention(self, request): + """关注组件/取消关注组件 + + 关注组件/取消关注组件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateAttention + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateAttentionRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateAttentionResponse` + """ + http_info = self._create_attention_http_info(request) + return self._call_api(**http_info) + + def create_attention_invoker(self, request): + http_info = self._create_attention_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_attention_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/attention", + "request_type": request.__class__.__name__, + "response_type": "CreateAttentionResponse" + } + + 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_docker_repositories(self, request): + """创建docker仓库 + + 创建docker仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateDockerRepositories + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateDockerRepositoriesRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateDockerRepositoriesResponse` + """ + http_info = self._create_docker_repositories_http_info(request) + return self._call_api(**http_info) + + def create_docker_repositories_invoker(self, request): + http_info = self._create_docker_repositories_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_docker_repositories_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/repositories", + "request_type": request.__class__.__name__, + "response_type": "CreateDockerRepositoriesResponse" + } + + 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_maven_repo(self, request): + """创建maven仓库 + + 创建maven仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateMavenRepo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateMavenRepoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateMavenRepoResponse` + """ + http_info = self._create_maven_repo_http_info(request) + return self._call_api(**http_info) + + def create_maven_repo_invoker(self, request): + http_info = self._create_maven_repo_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_maven_repo_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/maven/repositories", + "request_type": request.__class__.__name__, + "response_type": "CreateMavenRepoResponse" + } + + 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 = ['apig-auth-iam'] + + 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_project_related_repository(self, request): + """创建项目关联仓库 + + 创建项目管理关联仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateProjectRelatedRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.CreateProjectRelatedRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateProjectRelatedRepositoryResponse` + """ + http_info = self._create_project_related_repository_http_info(request) + return self._call_api(**http_info) + + def create_project_related_repository_invoker(self, request): + http_info = self._create_project_related_repository_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_project_related_repository_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/maven/project/repository", + "request_type": request.__class__.__name__, + "response_type": "CreateProjectRelatedRepositoryResponse" + } + + 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 = ['apig-auth-iam'] + + 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_artifact_file(self, request): + """非maven删除文件 + + 非maven删除文件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteArtifactFile + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteArtifactFileRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteArtifactFileResponse` + """ + http_info = self._delete_artifact_file_http_info(request) + return self._call_api(**http_info) + + def delete_artifact_file_invoker(self, request): + http_info = self._delete_artifact_file_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_artifact_file_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/cloudartifact/v5/file", + "request_type": request.__class__.__name__, + "response_type": "DeleteArtifactFileResponse" + } + + 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_repository(self, request): + """删除仓库到回收站 + + 删除仓库到回收站 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.DeleteRepositoryResponse` + """ + http_info = self._delete_repository_http_info(request) + return self._call_api(**http_info) + + def delete_repository_invoker(self, request): + http_info = self._delete_repository_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_repository_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/cloudartifact/v5/repositories", + "request_type": request.__class__.__name__, + "response_type": "DeleteRepositoryResponse" + } + + 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 = ['apig-auth-iam'] + + 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_all_repositories(self, request): + """查询仓库详情,不会去统计仓库下的制品数量 + + 查询仓库详情,不会去统计仓库下的制品数量 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAllRepositories + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListAllRepositoriesRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListAllRepositoriesResponse` + """ + http_info = self._list_all_repositories_http_info(request) + return self._call_api(**http_info) + + def list_all_repositories_invoker(self, request): + http_info = self._list_all_repositories_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_all_repositories_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/repositories", + "request_type": request.__class__.__name__, + "response_type": "ListAllRepositoriesResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + + query_params = [] + if 'group_id' in local_var_params: + query_params.append(('group_id', local_var_params['group_id'])) + if 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'sort' in local_var_params: + query_params.append(('sort', local_var_params['sort'])) + if 'qname' in local_var_params: + query_params.append(('qname', local_var_params['qname'])) + if 'type' in local_var_params: + query_params.append(('type', local_var_params['type'])) + if 'format' in local_var_params: + query_params.append(('format', local_var_params['format'])) + if 'format_list' in local_var_params: + query_params.append(('format_list', local_var_params['format_list'])) + if 'is_recycle_bin' in local_var_params: + query_params.append(('is_recycle_bin', local_var_params['is_recycle_bin'])) + if 'is_need_paging' in local_var_params: + query_params.append(('is_need_paging', local_var_params['is_need_paging'])) + if 'in_project' in local_var_params: + query_params.append(('in_project', local_var_params['in_project'])) + + 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_artifactory_component(self, request): + """查询仓库文件详情 + + 查询仓库文件详情 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListArtifactoryComponent + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryComponentRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryComponentResponse` + """ + http_info = self._list_artifactory_component_http_info(request) + return self._call_api(**http_info) + + def list_artifactory_component_invoker(self, request): + http_info = self._list_artifactory_component_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_artifactory_component_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{repo_name}/file-detail", + "request_type": request.__class__.__name__, + "response_type": "ListArtifactoryComponentResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'repo_name' in local_var_params: + path_params['repo_name'] = local_var_params['repo_name'] + + query_params = [] + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) + if 'format' in local_var_params: + query_params.append(('format', local_var_params['format'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_artifactory_storage_statistic(self, request): + """查询存储容量趋势 + + 查询存储容量趋势 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListArtifactoryStorageStatistic + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryStorageStatisticRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListArtifactoryStorageStatisticResponse` + """ + http_info = self._list_artifactory_storage_statistic_http_info(request) + return self._call_api(**http_info) + + def list_artifactory_storage_statistic_invoker(self, request): + http_info = self._list_artifactory_storage_statistic_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_artifactory_storage_statistic_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/storageinfo/statistic", + "request_type": request.__class__.__name__, + "response_type": "ListArtifactoryStorageStatisticResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + + query_params = [] + if 'repo' in local_var_params: + query_params.append(('repo', local_var_params['repo'])) + 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 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def list_attentions(self, request): + """查询关注列表 + + 查询关注列表 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListAttentions + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ListAttentionsRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ListAttentionsResponse` + """ + http_info = self._list_attentions_http_info(request) + return self._call_api(**http_info) + + def list_attentions_invoker(self, request): + http_info = self._list_attentions_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_attentions_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/attention/artifacts", + "request_type": request.__class__.__name__, + "response_type": "ListAttentionsResponse" + } + + 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 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_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 modify_repository(self, request): + """编辑仓库 + + 编辑仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ModifyRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ModifyRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ModifyRepositoryResponse` + """ + http_info = self._modify_repository_http_info(request) + return self._call_api(**http_info) + + def modify_repository_invoker(self, request): + http_info = self._modify_repository_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _modify_repository_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/cloudartifact/v5/repositories/tab/{tab_id}", + "request_type": request.__class__.__name__, + "response_type": "ModifyRepositoryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tab_id' in local_var_params: + path_params['tab_id'] = local_var_params['tab_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 = ['apig-auth-iam'] + + 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 reset_user_password(self, request): + """重置用户密码 + + 重置用户密码 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ResetUserPassword + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ResetUserPasswordRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ResetUserPasswordResponse` + """ + http_info = self._reset_user_password_http_info(request) + return self._call_api(**http_info) + + def reset_user_password_invoker(self, request): + http_info = self._reset_user_password_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _reset_user_password_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/maven/users/me", + "request_type": request.__class__.__name__, + "response_type": "ResetUserPasswordResponse" + } + + 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 isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = ['apig-auth-iam'] + + 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 search_artifacts(self, request): + """统筹搜索 + + 统筹搜索 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SearchArtifacts + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.SearchArtifactsRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.SearchArtifactsResponse` + """ + http_info = self._search_artifacts_http_info(request) + return self._call_api(**http_info) + + def search_artifacts_invoker(self, request): + http_info = self._search_artifacts_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _search_artifacts_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/cloudartifact/v5/tree/repos/artifacts", + "request_type": request.__class__.__name__, + "response_type": "SearchArtifactsResponse" + } + + 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 = ['apig-auth-iam'] + + 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 search_by_checksum(self, request): + """通过checksum搜索文件 + + 通过checksum搜索文件 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SearchByChecksum + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.SearchByChecksumRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.SearchByChecksumResponse` + """ + http_info = self._search_by_checksum_http_info(request) + return self._call_api(**http_info) + + def search_by_checksum_invoker(self, request): + http_info = self._search_by_checksum_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _search_by_checksum_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/search/checksum", + "request_type": request.__class__.__name__, + "response_type": "SearchByChecksumResponse" + } + + 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 'checksum' in local_var_params: + query_params.append(('checksum', local_var_params['checksum'])) + if 'page_no' in local_var_params: + query_params.append(('page_no', local_var_params['page_no'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + if 'format' in local_var_params: + query_params.append(('format', local_var_params['format'])) + if 'in_project' in local_var_params: + query_params.append(('in_project', local_var_params['in_project'])) + if 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_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 = ['apig-auth-iam'] + + 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_audit(self, request): + """查询仓库或文件的审计日志信息 + + 查询仓库或文件的审计日志信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowAudit + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowAuditRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowAuditResponse` + """ + http_info = self._show_audit_http_info(request) + return self._call_api(**http_info) + + def show_audit_invoker(self, request): + http_info = self._show_audit_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_audit_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{module}/{repo}/audit", + "request_type": request.__class__.__name__, + "response_type": "ShowAuditResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'module' in local_var_params: + path_params['module'] = local_var_params['module'] + if 'repo' in local_var_params: + path_params['repo'] = local_var_params['repo'] + + query_params = [] + if 'user_id' in local_var_params: + query_params.append(('user_id', local_var_params['user_id'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'page_num' in local_var_params: + query_params.append(('page_num', local_var_params['page_num'])) + if 'page_size' in local_var_params: + query_params.append(('page_size', local_var_params['page_size'])) + + 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_file_tree(self, request): + """查询仓库文件夹目录 + + 查询仓库文件夹目录 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowFileTree + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowFileTreeRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowFileTreeResponse` + """ + http_info = self._show_file_tree_http_info(request) + return self._call_api(**http_info) + + def show_file_tree_invoker(self, request): + http_info = self._show_file_tree_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_file_tree_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{repo_name}/file-tree", + "request_type": request.__class__.__name__, + "response_type": "ShowFileTreeResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'repo_name' in local_var_params: + path_params['repo_name'] = local_var_params['repo_name'] + + query_params = [] + if 'path' in local_var_params: + query_params.append(('path', local_var_params['path'])) + if 'instance_id' in local_var_params: + query_params.append(('instance_id', local_var_params['instance_id'])) + if 'is_recycle_bin' in local_var_params: + query_params.append(('is_recycle_bin', local_var_params['is_recycle_bin'])) + + 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 = ['apig-auth-iam'] + + 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_maven_info(self, request): + """查询租户Maven仓库列表和账号密码 + + 查询租户Maven仓库列表和账号密码,支持跨租户 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowMavenInfo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowMavenInfoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowMavenInfoResponse` + """ + http_info = self._show_maven_info_http_info(request) + return self._call_api(**http_info) + + def show_maven_info_invoker(self, request): + http_info = self._show_maven_info_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_maven_info_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/maven/info", + "request_type": request.__class__.__name__, + "response_type": "ShowMavenInfoResponse" + } + + 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 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_id'])) + if 'policy' in local_var_params: + query_params.append(('policy', local_var_params['policy'])) + if 'access' in local_var_params: + query_params.append(('access', local_var_params['access'])) + if 'default' in local_var_params: + query_params.append(('default', local_var_params['default'])) + if 'ids' in local_var_params: + query_params.append(('ids', local_var_params['ids'])) + + 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 = ['apig-auth-iam'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + + def show_project_list(self, request): + """查询项目管理关联仓库 + + 查询项目管理关联仓库 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowProjectList + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowProjectListRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowProjectListResponse` + """ + http_info = self._show_project_list_http_info(request) + return self._call_api(**http_info) + + def show_project_list_invoker(self, request): + http_info = self._show_project_list_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_project_list_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/maven/repository/list", + "request_type": request.__class__.__name__, + "response_type": "ShowProjectListResponse" + } + + 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 'project_id' in local_var_params: + query_params.append(('project_id', local_var_params['project_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 = ['apig-auth-iam'] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_project_release_files(self, request): """获取项目下文件版本信息列表 @@ -176,6 +1631,274 @@ class CodeArtsArtifactClient(Client): return http_info + def show_repository(self, request): + """查询单个仓库详细信息,会去统计仓库下的制品数量 + + 查询单个仓库详细信息,会去统计仓库下的制品数量 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRepository + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryResponse` + """ + http_info = self._show_repository_http_info(request) + return self._call_api(**http_info) + + def show_repository_invoker(self, request): + http_info = self._show_repository_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_repository_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/{tenant_id}/{project_id}/{repo_id}/repositories", + "request_type": request.__class__.__name__, + "response_type": "ShowRepositoryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'tenant_id' in local_var_params: + path_params['tenant_id'] = local_var_params['tenant_id'] + if 'project_id' in local_var_params: + path_params['project_id'] = local_var_params['project_id'] + if 'repo_id' in local_var_params: + path_params['repo_id'] = local_var_params['repo_id'] + + query_params = [] + if 'region' in local_var_params: + query_params.append(('region', local_var_params['region'])) + + 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_repository_info(self, request): + """查看仓库信息 + + 查看仓库信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowRepositoryInfo + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryInfoRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowRepositoryInfoResponse` + """ + http_info = self._show_repository_info_http_info(request) + return self._call_api(**http_info) + + def show_repository_info_invoker(self, request): + http_info = self._show_repository_info_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_repository_info_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/repositories/{repo_id}", + "request_type": request.__class__.__name__, + "response_type": "ShowRepositoryInfoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'repo_id' in local_var_params: + path_params['repo_id'] = local_var_params['repo_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 = ['apig-auth-iam'] + + 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_storage(self, request): + """仓库用量查询 + + 仓库用量查询 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowStorage + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.ShowStorageRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.ShowStorageResponse` + """ + http_info = self._show_storage_http_info(request) + return self._call_api(**http_info) + + def show_storage_invoker(self, request): + http_info = self._show_storage_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_storage_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/cloudartifact/v5/storage", + "request_type": request.__class__.__name__, + "response_type": "ShowStorageResponse" + } + + 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 'format_list' in local_var_params: + query_params.append(('format_list', local_var_params['format_list'])) + if 'in_project' in local_var_params: + query_params.append(('in_project', local_var_params['in_project'])) + + 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 = ['apig-auth-iam'] + + 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_artifactory(self, request): + """编辑非maven仓库信息 + + 编辑非maven仓库信息 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateArtifactory + :type request: :class:`huaweicloudsdkcodeartsartifact.v2.UpdateArtifactoryRequest` + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.UpdateArtifactoryResponse` + """ + http_info = self._update_artifactory_http_info(request) + return self._call_api(**http_info) + + def update_artifactory_invoker(self, request): + http_info = self._update_artifactory_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_artifactory_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/cloudartifact/v5/artifact/", + "request_type": request.__class__.__name__, + "response_type": "UpdateArtifactoryResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def _call_api(self, **kwargs): try: return self.do_http_request(**kwargs) diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/__init__.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/__init__.py index 064bef560..cb1103160 100644 --- a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/__init__.py +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/__init__.py @@ -3,9 +3,71 @@ from __future__ import absolute_import # import models into model package +from huaweicloudsdkcodeartsartifact.v2.model.attention_do import AttentionDO +from huaweicloudsdkcodeartsartifact.v2.model.batch_delete_trashes_request import BatchDeleteTrashesRequest +from huaweicloudsdkcodeartsartifact.v2.model.batch_delete_trashes_response import BatchDeleteTrashesResponse +from huaweicloudsdkcodeartsartifact.v2.model.batch_restore_repo_request import BatchRestoreRepoRequest +from huaweicloudsdkcodeartsartifact.v2.model.batch_restore_repo_response import BatchRestoreRepoResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_artifactory_request import CreateArtifactoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_artifactory_response import CreateArtifactoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_attention_request import CreateAttentionRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_attention_response import CreateAttentionResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_docker_repositories_request import CreateDockerRepositoriesRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_docker_repositories_response import CreateDockerRepositoriesResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_docker_repository_do import CreateDockerRepositoryDO +from huaweicloudsdkcodeartsartifact.v2.model.create_maven_repo_request import CreateMavenRepoRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_maven_repo_response import CreateMavenRepoResponse +from huaweicloudsdkcodeartsartifact.v2.model.create_not_maven_repo_do import CreateNotMavenRepoDO +from huaweicloudsdkcodeartsartifact.v2.model.create_project_related_repository_request import CreateProjectRelatedRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.create_project_related_repository_response import CreateProjectRelatedRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.delete_artifact_file_request import DeleteArtifactFileRequest +from huaweicloudsdkcodeartsartifact.v2.model.delete_artifact_file_response import DeleteArtifactFileResponse +from huaweicloudsdkcodeartsartifact.v2.model.delete_repository_request import DeleteRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.delete_repository_response import DeleteRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.ide_privilage_project_info import IDEPrivilageProjectInfo +from huaweicloudsdkcodeartsartifact.v2.model.ide_repo_revision_model import IDERepoRevisionModel +from huaweicloudsdkcodeartsartifact.v2.model.ide_repo_search_do import IDERepoSearchDO +from huaweicloudsdkcodeartsartifact.v2.model.ide_repository_do import IDERepositoryDO +from huaweicloudsdkcodeartsartifact.v2.model.ide_repository_pair import IDERepositoryPair +from huaweicloudsdkcodeartsartifact.v2.model.ide_trash_artifact_model import IDETrashArtifactModel +from huaweicloudsdkcodeartsartifact.v2.model.list_all_repositories_request import ListAllRepositoriesRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_all_repositories_response import ListAllRepositoriesResponse +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_component_request import ListArtifactoryComponentRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_component_response import ListArtifactoryComponentResponse +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_storage_statistic_request import ListArtifactoryStorageStatisticRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_artifactory_storage_statistic_response import ListArtifactoryStorageStatisticResponse +from huaweicloudsdkcodeartsartifact.v2.model.list_attentions_request import ListAttentionsRequest +from huaweicloudsdkcodeartsartifact.v2.model.list_attentions_response import ListAttentionsResponse +from huaweicloudsdkcodeartsartifact.v2.model.modify_repository_request import ModifyRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.modify_repository_response import ModifyRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.path_map import PathMap from huaweicloudsdkcodeartsartifact.v2.model.release_file_version_do import ReleaseFileVersionDo +from huaweicloudsdkcodeartsartifact.v2.model.reset_user_password_request import ResetUserPasswordRequest +from huaweicloudsdkcodeartsartifact.v2.model.reset_user_password_response import ResetUserPasswordResponse +from huaweicloudsdkcodeartsartifact.v2.model.search_artifacts_request import SearchArtifactsRequest +from huaweicloudsdkcodeartsartifact.v2.model.search_artifacts_response import SearchArtifactsResponse +from huaweicloudsdkcodeartsartifact.v2.model.search_by_checksum_request import SearchByChecksumRequest +from huaweicloudsdkcodeartsartifact.v2.model.search_by_checksum_response import SearchByChecksumResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_audit_request import ShowAuditRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_audit_response import ShowAuditResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_file_tree_request import ShowFileTreeRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_file_tree_response import ShowFileTreeResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_maven_info_request import ShowMavenInfoRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_maven_info_response import ShowMavenInfoResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_project_list_request import ShowProjectListRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_project_list_response import ShowProjectListResponse from huaweicloudsdkcodeartsartifact.v2.model.show_project_release_files_request import ShowProjectReleaseFilesRequest from huaweicloudsdkcodeartsartifact.v2.model.show_project_release_files_response import ShowProjectReleaseFilesResponse from huaweicloudsdkcodeartsartifact.v2.model.show_release_project_files_request import ShowReleaseProjectFilesRequest from huaweicloudsdkcodeartsartifact.v2.model.show_release_project_files_response import ShowReleaseProjectFilesResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_info_request import ShowRepositoryInfoRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_info_response import ShowRepositoryInfoResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_request import ShowRepositoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_repository_response import ShowRepositoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.show_storage_request import ShowStorageRequest +from huaweicloudsdkcodeartsartifact.v2.model.show_storage_response import ShowStorageResponse from huaweicloudsdkcodeartsartifact.v2.model.standard_response_result import StandardResponseResult +from huaweicloudsdkcodeartsartifact.v2.model.trash_artifact_model_for_delete import TrashArtifactModelForDelete +from huaweicloudsdkcodeartsartifact.v2.model.update_artifactory_request import UpdateArtifactoryRequest +from huaweicloudsdkcodeartsartifact.v2.model.update_artifactory_response import UpdateArtifactoryResponse +from huaweicloudsdkcodeartsartifact.v2.model.update_not_maven_repo_do import UpdateNotMavenRepoDO diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/attention_do.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/attention_do.py new file mode 100644 index 000000000..0f3e28123 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/attention_do.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AttentionDO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'attention': 'str', + 'ids': 'list[str]', + 'format': 'str' + } + + attribute_map = { + 'attention': 'attention', + 'ids': 'ids', + 'format': 'format' + } + + def __init__(self, attention=None, ids=None, format=None): + """AttentionDO + + The model defined in huaweicloud sdk + + :param attention: 关注/取消关注 + :type attention: str + :param ids: 组件id列表 + :type ids: list[str] + :param format: 格式 + :type format: str + """ + + + + self._attention = None + self._ids = None + self._format = None + self.discriminator = None + + self.attention = attention + self.ids = ids + if format is not None: + self.format = format + + @property + def attention(self): + """Gets the attention of this AttentionDO. + + 关注/取消关注 + + :return: The attention of this AttentionDO. + :rtype: str + """ + return self._attention + + @attention.setter + def attention(self, attention): + """Sets the attention of this AttentionDO. + + 关注/取消关注 + + :param attention: The attention of this AttentionDO. + :type attention: str + """ + self._attention = attention + + @property + def ids(self): + """Gets the ids of this AttentionDO. + + 组件id列表 + + :return: The ids of this AttentionDO. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this AttentionDO. + + 组件id列表 + + :param ids: The ids of this AttentionDO. + :type ids: list[str] + """ + self._ids = ids + + @property + def format(self): + """Gets the format of this AttentionDO. + + 格式 + + :return: The format of this AttentionDO. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this AttentionDO. + + 格式 + + :param format: The format of this AttentionDO. + :type format: str + """ + self._format = format + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AttentionDO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_delete_trashes_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_delete_trashes_request.py new file mode 100644 index 000000000..3101b170b --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_delete_trashes_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchDeleteTrashesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'list[TrashArtifactModelForDelete]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BatchDeleteTrashesRequest + + The model defined in huaweicloud sdk + + :param body: Body of the BatchDeleteTrashesRequest + :type body: list[:class:`huaweicloudsdkcodeartsartifact.v2.TrashArtifactModelForDelete`] + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BatchDeleteTrashesRequest. + + :return: The body of this BatchDeleteTrashesRequest. + :rtype: list[:class:`huaweicloudsdkcodeartsartifact.v2.TrashArtifactModelForDelete`] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchDeleteTrashesRequest. + + :param body: The body of this BatchDeleteTrashesRequest. + :type body: list[:class:`huaweicloudsdkcodeartsartifact.v2.TrashArtifactModelForDelete`] + """ + 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, BatchDeleteTrashesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_delete_trashes_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_delete_trashes_response.py new file mode 100644 index 000000000..a4424d915 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_delete_trashes_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 BatchDeleteTrashesResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """BatchDeleteTrashesResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(BatchDeleteTrashesResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this BatchDeleteTrashesResponse. + + 结果状态 + + :return: The status of this BatchDeleteTrashesResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchDeleteTrashesResponse. + + 结果状态 + + :param status: The status of this BatchDeleteTrashesResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this BatchDeleteTrashesResponse. + + 请求id + + :return: The trace_id of this BatchDeleteTrashesResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this BatchDeleteTrashesResponse. + + 请求id + + :param trace_id: The trace_id of this BatchDeleteTrashesResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this BatchDeleteTrashesResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this BatchDeleteTrashesResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this BatchDeleteTrashesResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this BatchDeleteTrashesResponse. + :type result: object + """ + 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, BatchDeleteTrashesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_restore_repo_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_restore_repo_request.py new file mode 100644 index 000000000..cdd29c371 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_restore_repo_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BatchRestoreRepoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'body': 'list[IDETrashArtifactModel]' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """BatchRestoreRepoRequest + + The model defined in huaweicloud sdk + + :param body: Body of the BatchRestoreRepoRequest + :type body: list[:class:`huaweicloudsdkcodeartsartifact.v2.IDETrashArtifactModel`] + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this BatchRestoreRepoRequest. + + :return: The body of this BatchRestoreRepoRequest. + :rtype: list[:class:`huaweicloudsdkcodeartsartifact.v2.IDETrashArtifactModel`] + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BatchRestoreRepoRequest. + + :param body: The body of this BatchRestoreRepoRequest. + :type body: list[:class:`huaweicloudsdkcodeartsartifact.v2.IDETrashArtifactModel`] + """ + 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, BatchRestoreRepoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_restore_repo_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_restore_repo_response.py new file mode 100644 index 000000000..77263fbba --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/batch_restore_repo_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 BatchRestoreRepoResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """BatchRestoreRepoResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(BatchRestoreRepoResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this BatchRestoreRepoResponse. + + 结果状态 + + :return: The status of this BatchRestoreRepoResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this BatchRestoreRepoResponse. + + 结果状态 + + :param status: The status of this BatchRestoreRepoResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this BatchRestoreRepoResponse. + + 请求id + + :return: The trace_id of this BatchRestoreRepoResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this BatchRestoreRepoResponse. + + 请求id + + :param trace_id: The trace_id of this BatchRestoreRepoResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this BatchRestoreRepoResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this BatchRestoreRepoResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this BatchRestoreRepoResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this BatchRestoreRepoResponse. + :type result: object + """ + 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, BatchRestoreRepoResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_artifactory_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_artifactory_request.py new file mode 100644 index 000000000..83e9a5bce --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_artifactory_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateArtifactoryRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateNotMavenRepoDO' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateArtifactoryRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateArtifactoryRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.CreateNotMavenRepoDO` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateArtifactoryRequest. + + :return: The body of this CreateArtifactoryRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateNotMavenRepoDO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateArtifactoryRequest. + + :param body: The body of this CreateArtifactoryRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.CreateNotMavenRepoDO` + """ + 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, CreateArtifactoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_artifactory_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_artifactory_response.py new file mode 100644 index 000000000..b4a0f5edb --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_artifactory_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 CreateArtifactoryResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """CreateArtifactoryResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(CreateArtifactoryResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this CreateArtifactoryResponse. + + 结果状态 + + :return: The status of this CreateArtifactoryResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateArtifactoryResponse. + + 结果状态 + + :param status: The status of this CreateArtifactoryResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this CreateArtifactoryResponse. + + 请求id + + :return: The trace_id of this CreateArtifactoryResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this CreateArtifactoryResponse. + + 请求id + + :param trace_id: The trace_id of this CreateArtifactoryResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this CreateArtifactoryResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this CreateArtifactoryResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this CreateArtifactoryResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this CreateArtifactoryResponse. + :type result: object + """ + 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, CreateArtifactoryResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_attention_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_attention_request.py new file mode 100644 index 000000000..fd91ed32a --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_attention_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateAttentionRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'AttentionDO' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateAttentionRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateAttentionRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.AttentionDO` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateAttentionRequest. + + :return: The body of this CreateAttentionRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.AttentionDO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateAttentionRequest. + + :param body: The body of this CreateAttentionRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.AttentionDO` + """ + 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, CreateAttentionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_attention_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_attention_response.py new file mode 100644 index 000000000..098d6c902 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_attention_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 CreateAttentionResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """CreateAttentionResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(CreateAttentionResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this CreateAttentionResponse. + + 结果状态 + + :return: The status of this CreateAttentionResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateAttentionResponse. + + 结果状态 + + :param status: The status of this CreateAttentionResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this CreateAttentionResponse. + + 请求id + + :return: The trace_id of this CreateAttentionResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this CreateAttentionResponse. + + 请求id + + :param trace_id: The trace_id of this CreateAttentionResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this CreateAttentionResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this CreateAttentionResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this CreateAttentionResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this CreateAttentionResponse. + :type result: object + """ + 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, CreateAttentionResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repositories_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repositories_request.py new file mode 100644 index 000000000..9dc310cb8 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repositories_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDockerRepositoriesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateDockerRepositoryDO' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateDockerRepositoriesRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateDockerRepositoriesRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.CreateDockerRepositoryDO` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateDockerRepositoriesRequest. + + :return: The body of this CreateDockerRepositoriesRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.CreateDockerRepositoryDO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateDockerRepositoriesRequest. + + :param body: The body of this CreateDockerRepositoriesRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.CreateDockerRepositoryDO` + """ + 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, CreateDockerRepositoriesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repositories_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repositories_response.py new file mode 100644 index 000000000..b81329639 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repositories_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 CreateDockerRepositoriesResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """CreateDockerRepositoriesResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(CreateDockerRepositoriesResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this CreateDockerRepositoriesResponse. + + 结果状态 + + :return: The status of this CreateDockerRepositoriesResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateDockerRepositoriesResponse. + + 结果状态 + + :param status: The status of this CreateDockerRepositoriesResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this CreateDockerRepositoriesResponse. + + 请求id + + :return: The trace_id of this CreateDockerRepositoriesResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this CreateDockerRepositoriesResponse. + + 请求id + + :param trace_id: The trace_id of this CreateDockerRepositoriesResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this CreateDockerRepositoriesResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this CreateDockerRepositoriesResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this CreateDockerRepositoriesResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this CreateDockerRepositoriesResponse. + :type result: object + """ + 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, CreateDockerRepositoriesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repository_do.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repository_do.py new file mode 100644 index 000000000..f86b7721f --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_docker_repository_do.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateDockerRepositoryDO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'display_name': 'str', + 'description': 'str', + 'type': 'str' + } + + attribute_map = { + 'format': 'format', + 'display_name': 'display_name', + 'description': 'description', + 'type': 'type' + } + + def __init__(self, format=None, display_name=None, description=None, type=None): + """CreateDockerRepositoryDO + + The model defined in huaweicloud sdk + + :param format: 仓库格式 + :type format: str + :param display_name: 仓库展示名称 + :type display_name: str + :param description: 仓库描述 + :type description: str + :param type: 仓库类型 + :type type: str + """ + + + + self._format = None + self._display_name = None + self._description = None + self._type = None + self.discriminator = None + + self.format = format + self.display_name = display_name + if description is not None: + self.description = description + self.type = type + + @property + def format(self): + """Gets the format of this CreateDockerRepositoryDO. + + 仓库格式 + + :return: The format of this CreateDockerRepositoryDO. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this CreateDockerRepositoryDO. + + 仓库格式 + + :param format: The format of this CreateDockerRepositoryDO. + :type format: str + """ + self._format = format + + @property + def display_name(self): + """Gets the display_name of this CreateDockerRepositoryDO. + + 仓库展示名称 + + :return: The display_name of this CreateDockerRepositoryDO. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this CreateDockerRepositoryDO. + + 仓库展示名称 + + :param display_name: The display_name of this CreateDockerRepositoryDO. + :type display_name: str + """ + self._display_name = display_name + + @property + def description(self): + """Gets the description of this CreateDockerRepositoryDO. + + 仓库描述 + + :return: The description of this CreateDockerRepositoryDO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateDockerRepositoryDO. + + 仓库描述 + + :param description: The description of this CreateDockerRepositoryDO. + :type description: str + """ + self._description = description + + @property + def type(self): + """Gets the type of this CreateDockerRepositoryDO. + + 仓库类型 + + :return: The type of this CreateDockerRepositoryDO. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateDockerRepositoryDO. + + 仓库类型 + + :param type: The type of this CreateDockerRepositoryDO. + :type type: str + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateDockerRepositoryDO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_maven_repo_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_maven_repo_request.py new file mode 100644 index 000000000..f89215f0e --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_maven_repo_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateMavenRepoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'IDERepositoryDO' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateMavenRepoRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateMavenRepoRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepositoryDO` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateMavenRepoRequest. + + :return: The body of this CreateMavenRepoRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepositoryDO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateMavenRepoRequest. + + :param body: The body of this CreateMavenRepoRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepositoryDO` + """ + 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, CreateMavenRepoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_maven_repo_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_maven_repo_response.py new file mode 100644 index 000000000..5a00e4900 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_maven_repo_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 CreateMavenRepoResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """CreateMavenRepoResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(CreateMavenRepoResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this CreateMavenRepoResponse. + + 结果状态 + + :return: The status of this CreateMavenRepoResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateMavenRepoResponse. + + 结果状态 + + :param status: The status of this CreateMavenRepoResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this CreateMavenRepoResponse. + + 请求id + + :return: The trace_id of this CreateMavenRepoResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this CreateMavenRepoResponse. + + 请求id + + :param trace_id: The trace_id of this CreateMavenRepoResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this CreateMavenRepoResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this CreateMavenRepoResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this CreateMavenRepoResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this CreateMavenRepoResponse. + :type result: object + """ + 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, CreateMavenRepoResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_not_maven_repo_do.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_not_maven_repo_do.py new file mode 100644 index 000000000..ed73d0d0f --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_not_maven_repo_do.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateNotMavenRepoDO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'type': 'str', + 'repository_name': 'str', + 'description': 'str', + 'includes_pattern': 'str', + 'project_id': 'str', + 'share_right': 'str' + } + + attribute_map = { + 'format': 'format', + 'type': 'type', + 'repository_name': 'repository_name', + 'description': 'description', + 'includes_pattern': 'includes_pattern', + 'project_id': 'project_id', + 'share_right': 'share_right' + } + + def __init__(self, format=None, type=None, repository_name=None, description=None, includes_pattern=None, project_id=None, share_right=None): + """CreateNotMavenRepoDO + + The model defined in huaweicloud sdk + + :param format: 仓库格式 + :type format: str + :param type: 仓库类型 + :type type: str + :param repository_name: 仓库名称 + :type repository_name: str + :param description: 仓库描述 + :type description: str + :param includes_pattern: 路径白名单 + :type includes_pattern: str + :param project_id: 项目id + :type project_id: str + :param share_right: 共享策略 + :type share_right: str + """ + + + + self._format = None + self._type = None + self._repository_name = None + self._description = None + self._includes_pattern = None + self._project_id = None + self._share_right = None + self.discriminator = None + + self.format = format + self.type = type + self.repository_name = repository_name + if description is not None: + self.description = description + self.includes_pattern = includes_pattern + if project_id is not None: + self.project_id = project_id + if share_right is not None: + self.share_right = share_right + + @property + def format(self): + """Gets the format of this CreateNotMavenRepoDO. + + 仓库格式 + + :return: The format of this CreateNotMavenRepoDO. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this CreateNotMavenRepoDO. + + 仓库格式 + + :param format: The format of this CreateNotMavenRepoDO. + :type format: str + """ + self._format = format + + @property + def type(self): + """Gets the type of this CreateNotMavenRepoDO. + + 仓库类型 + + :return: The type of this CreateNotMavenRepoDO. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this CreateNotMavenRepoDO. + + 仓库类型 + + :param type: The type of this CreateNotMavenRepoDO. + :type type: str + """ + self._type = type + + @property + def repository_name(self): + """Gets the repository_name of this CreateNotMavenRepoDO. + + 仓库名称 + + :return: The repository_name of this CreateNotMavenRepoDO. + :rtype: str + """ + return self._repository_name + + @repository_name.setter + def repository_name(self, repository_name): + """Sets the repository_name of this CreateNotMavenRepoDO. + + 仓库名称 + + :param repository_name: The repository_name of this CreateNotMavenRepoDO. + :type repository_name: str + """ + self._repository_name = repository_name + + @property + def description(self): + """Gets the description of this CreateNotMavenRepoDO. + + 仓库描述 + + :return: The description of this CreateNotMavenRepoDO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this CreateNotMavenRepoDO. + + 仓库描述 + + :param description: The description of this CreateNotMavenRepoDO. + :type description: str + """ + self._description = description + + @property + def includes_pattern(self): + """Gets the includes_pattern of this CreateNotMavenRepoDO. + + 路径白名单 + + :return: The includes_pattern of this CreateNotMavenRepoDO. + :rtype: str + """ + return self._includes_pattern + + @includes_pattern.setter + def includes_pattern(self, includes_pattern): + """Sets the includes_pattern of this CreateNotMavenRepoDO. + + 路径白名单 + + :param includes_pattern: The includes_pattern of this CreateNotMavenRepoDO. + :type includes_pattern: str + """ + self._includes_pattern = includes_pattern + + @property + def project_id(self): + """Gets the project_id of this CreateNotMavenRepoDO. + + 项目id + + :return: The project_id of this CreateNotMavenRepoDO. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this CreateNotMavenRepoDO. + + 项目id + + :param project_id: The project_id of this CreateNotMavenRepoDO. + :type project_id: str + """ + self._project_id = project_id + + @property + def share_right(self): + """Gets the share_right of this CreateNotMavenRepoDO. + + 共享策略 + + :return: The share_right of this CreateNotMavenRepoDO. + :rtype: str + """ + return self._share_right + + @share_right.setter + def share_right(self, share_right): + """Sets the share_right of this CreateNotMavenRepoDO. + + 共享策略 + + :param share_right: The share_right of this CreateNotMavenRepoDO. + :type share_right: str + """ + self._share_right = share_right + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateNotMavenRepoDO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_project_related_repository_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_project_related_repository_request.py new file mode 100644 index 000000000..5a74ca2ce --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_project_related_repository_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateProjectRelatedRepositoryRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'IDEPrivilageProjectInfo' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateProjectRelatedRepositoryRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateProjectRelatedRepositoryRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDEPrivilageProjectInfo` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateProjectRelatedRepositoryRequest. + + :return: The body of this CreateProjectRelatedRepositoryRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.IDEPrivilageProjectInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateProjectRelatedRepositoryRequest. + + :param body: The body of this CreateProjectRelatedRepositoryRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDEPrivilageProjectInfo` + """ + 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, CreateProjectRelatedRepositoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_project_related_repository_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_project_related_repository_response.py new file mode 100644 index 000000000..96916e9bf --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/create_project_related_repository_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 CreateProjectRelatedRepositoryResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """CreateProjectRelatedRepositoryResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(CreateProjectRelatedRepositoryResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this CreateProjectRelatedRepositoryResponse. + + 结果状态 + + :return: The status of this CreateProjectRelatedRepositoryResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateProjectRelatedRepositoryResponse. + + 结果状态 + + :param status: The status of this CreateProjectRelatedRepositoryResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this CreateProjectRelatedRepositoryResponse. + + 请求id + + :return: The trace_id of this CreateProjectRelatedRepositoryResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this CreateProjectRelatedRepositoryResponse. + + 请求id + + :param trace_id: The trace_id of this CreateProjectRelatedRepositoryResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this CreateProjectRelatedRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this CreateProjectRelatedRepositoryResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this CreateProjectRelatedRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this CreateProjectRelatedRepositoryResponse. + :type result: object + """ + 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, CreateProjectRelatedRepositoryResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_artifact_file_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_artifact_file_request.py new file mode 100644 index 000000000..1aabd7f62 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_artifact_file_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteArtifactFileRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'PathMap' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteArtifactFileRequest + + The model defined in huaweicloud sdk + + :param body: Body of the DeleteArtifactFileRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.PathMap` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteArtifactFileRequest. + + :return: The body of this DeleteArtifactFileRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.PathMap` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteArtifactFileRequest. + + :param body: The body of this DeleteArtifactFileRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.PathMap` + """ + 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, DeleteArtifactFileRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_artifact_file_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_artifact_file_response.py new file mode 100644 index 000000000..0231505d1 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_artifact_file_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 DeleteArtifactFileResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """DeleteArtifactFileResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(DeleteArtifactFileResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this DeleteArtifactFileResponse. + + 结果状态 + + :return: The status of this DeleteArtifactFileResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DeleteArtifactFileResponse. + + 结果状态 + + :param status: The status of this DeleteArtifactFileResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this DeleteArtifactFileResponse. + + 请求id + + :return: The trace_id of this DeleteArtifactFileResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this DeleteArtifactFileResponse. + + 请求id + + :param trace_id: The trace_id of this DeleteArtifactFileResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this DeleteArtifactFileResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this DeleteArtifactFileResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this DeleteArtifactFileResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this DeleteArtifactFileResponse. + :type result: object + """ + 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, DeleteArtifactFileResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_repository_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_repository_request.py new file mode 100644 index 000000000..2e960ac12 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_repository_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteRepositoryRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'IDERepoRevisionModel' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """DeleteRepositoryRequest + + The model defined in huaweicloud sdk + + :param body: Body of the DeleteRepositoryRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepoRevisionModel` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this DeleteRepositoryRequest. + + :return: The body of this DeleteRepositoryRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepoRevisionModel` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteRepositoryRequest. + + :param body: The body of this DeleteRepositoryRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepoRevisionModel` + """ + 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, DeleteRepositoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_repository_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_repository_response.py new file mode 100644 index 000000000..9122b1f5a --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/delete_repository_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 DeleteRepositoryResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """DeleteRepositoryResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(DeleteRepositoryResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this DeleteRepositoryResponse. + + 结果状态 + + :return: The status of this DeleteRepositoryResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this DeleteRepositoryResponse. + + 结果状态 + + :param status: The status of this DeleteRepositoryResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this DeleteRepositoryResponse. + + 请求id + + :return: The trace_id of this DeleteRepositoryResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this DeleteRepositoryResponse. + + 请求id + + :param trace_id: The trace_id of this DeleteRepositoryResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this DeleteRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this DeleteRepositoryResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this DeleteRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this DeleteRepositoryResponse. + :type result: object + """ + 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, DeleteRepositoryResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_privilage_project_info.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_privilage_project_info.py new file mode 100644 index 000000000..c31151428 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_privilage_project_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IDEPrivilageProjectInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'ids': 'list[str]' + } + + attribute_map = { + 'project_id': 'project_id', + 'ids': 'ids' + } + + def __init__(self, project_id=None, ids=None): + """IDEPrivilageProjectInfo + + The model defined in huaweicloud sdk + + :param project_id: 项目id + :type project_id: str + :param ids: tab_id集合 + :type ids: list[str] + """ + + + + self._project_id = None + self._ids = None + self.discriminator = None + + if project_id is not None: + self.project_id = project_id + if ids is not None: + self.ids = ids + + @property + def project_id(self): + """Gets the project_id of this IDEPrivilageProjectInfo. + + 项目id + + :return: The project_id of this IDEPrivilageProjectInfo. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IDEPrivilageProjectInfo. + + 项目id + + :param project_id: The project_id of this IDEPrivilageProjectInfo. + :type project_id: str + """ + self._project_id = project_id + + @property + def ids(self): + """Gets the ids of this IDEPrivilageProjectInfo. + + tab_id集合 + + :return: The ids of this IDEPrivilageProjectInfo. + :rtype: list[str] + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this IDEPrivilageProjectInfo. + + tab_id集合 + + :param ids: The ids of this IDEPrivilageProjectInfo. + :type ids: list[str] + """ + self._ids = 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, IDEPrivilageProjectInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repo_revision_model.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repo_revision_model.py new file mode 100644 index 000000000..6e9327f51 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repo_revision_model.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IDERepoRevisionModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'repository_ids': 'str', + 'format': 'str' + } + + attribute_map = { + 'repository_ids': 'repository_ids', + 'format': 'format' + } + + def __init__(self, repository_ids=None, format=None): + """IDERepoRevisionModel + + The model defined in huaweicloud sdk + + :param repository_ids: 仓库id集合 + :type repository_ids: str + :param format: 类型 + :type format: str + """ + + + + self._repository_ids = None + self._format = None + self.discriminator = None + + if repository_ids is not None: + self.repository_ids = repository_ids + if format is not None: + self.format = format + + @property + def repository_ids(self): + """Gets the repository_ids of this IDERepoRevisionModel. + + 仓库id集合 + + :return: The repository_ids of this IDERepoRevisionModel. + :rtype: str + """ + return self._repository_ids + + @repository_ids.setter + def repository_ids(self, repository_ids): + """Sets the repository_ids of this IDERepoRevisionModel. + + 仓库id集合 + + :param repository_ids: The repository_ids of this IDERepoRevisionModel. + :type repository_ids: str + """ + self._repository_ids = repository_ids + + @property + def format(self): + """Gets the format of this IDERepoRevisionModel. + + 类型 + + :return: The format of this IDERepoRevisionModel. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this IDERepoRevisionModel. + + 类型 + + :param format: The format of this IDERepoRevisionModel. + :type format: str + """ + self._format = format + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IDERepoRevisionModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repo_search_do.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repo_search_do.py new file mode 100644 index 000000000..8bf9f3f15 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repo_search_do.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IDERepoSearchDO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'artifact_name': 'str', + 'artifact_type': 'str', + 'page_no': 'int', + 'page_size': 'int', + 'project_id': 'str', + 'in_project': 'str' + } + + attribute_map = { + 'artifact_name': 'artifact_name', + 'artifact_type': 'artifact_type', + 'page_no': 'page_no', + 'page_size': 'page_size', + 'project_id': 'project_id', + 'in_project': 'in_project' + } + + def __init__(self, artifact_name=None, artifact_type=None, page_no=None, page_size=None, project_id=None, in_project=None): + """IDERepoSearchDO + + The model defined in huaweicloud sdk + + :param artifact_name: 搜索制品名称 + :type artifact_name: str + :param artifact_type: 制品类型 + :type artifact_type: str + :param page_no: 页码 + :type page_no: int + :param page_size: 每页条数 + :type page_size: int + :param project_id: 项目id + :type project_id: str + :param in_project: 是否在项目中 + :type in_project: str + """ + + + + self._artifact_name = None + self._artifact_type = None + self._page_no = None + self._page_size = None + self._project_id = None + self._in_project = None + self.discriminator = None + + self.artifact_name = artifact_name + if artifact_type is not None: + self.artifact_type = artifact_type + if page_no is not None: + self.page_no = page_no + if page_size is not None: + self.page_size = page_size + if project_id is not None: + self.project_id = project_id + if in_project is not None: + self.in_project = in_project + + @property + def artifact_name(self): + """Gets the artifact_name of this IDERepoSearchDO. + + 搜索制品名称 + + :return: The artifact_name of this IDERepoSearchDO. + :rtype: str + """ + return self._artifact_name + + @artifact_name.setter + def artifact_name(self, artifact_name): + """Sets the artifact_name of this IDERepoSearchDO. + + 搜索制品名称 + + :param artifact_name: The artifact_name of this IDERepoSearchDO. + :type artifact_name: str + """ + self._artifact_name = artifact_name + + @property + def artifact_type(self): + """Gets the artifact_type of this IDERepoSearchDO. + + 制品类型 + + :return: The artifact_type of this IDERepoSearchDO. + :rtype: str + """ + return self._artifact_type + + @artifact_type.setter + def artifact_type(self, artifact_type): + """Sets the artifact_type of this IDERepoSearchDO. + + 制品类型 + + :param artifact_type: The artifact_type of this IDERepoSearchDO. + :type artifact_type: str + """ + self._artifact_type = artifact_type + + @property + def page_no(self): + """Gets the page_no of this IDERepoSearchDO. + + 页码 + + :return: The page_no of this IDERepoSearchDO. + :rtype: int + """ + return self._page_no + + @page_no.setter + def page_no(self, page_no): + """Sets the page_no of this IDERepoSearchDO. + + 页码 + + :param page_no: The page_no of this IDERepoSearchDO. + :type page_no: int + """ + self._page_no = page_no + + @property + def page_size(self): + """Gets the page_size of this IDERepoSearchDO. + + 每页条数 + + :return: The page_size of this IDERepoSearchDO. + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this IDERepoSearchDO. + + 每页条数 + + :param page_size: The page_size of this IDERepoSearchDO. + :type page_size: int + """ + self._page_size = page_size + + @property + def project_id(self): + """Gets the project_id of this IDERepoSearchDO. + + 项目id + + :return: The project_id of this IDERepoSearchDO. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IDERepoSearchDO. + + 项目id + + :param project_id: The project_id of this IDERepoSearchDO. + :type project_id: str + """ + self._project_id = project_id + + @property + def in_project(self): + """Gets the in_project of this IDERepoSearchDO. + + 是否在项目中 + + :return: The in_project of this IDERepoSearchDO. + :rtype: str + """ + return self._in_project + + @in_project.setter + def in_project(self, in_project): + """Sets the in_project of this IDERepoSearchDO. + + 是否在项目中 + + :param in_project: The in_project of this IDERepoSearchDO. + :type in_project: str + """ + self._in_project = in_project + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IDERepoSearchDO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repository_do.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repository_do.py new file mode 100644 index 000000000..318cabc3e --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repository_do.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IDERepositoryDO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'repository_name': 'str', + 'format': 'str', + 'description': 'str', + 'release': 'str', + 'snapshot': 'str', + 'includes_pattern': 'str', + 'share_right': 'str', + 'project_id': 'str', + 'type': 'str' + } + + attribute_map = { + 'repository_name': 'repository_name', + 'format': 'format', + 'description': 'description', + 'release': 'release', + 'snapshot': 'snapshot', + 'includes_pattern': 'includes_pattern', + 'share_right': 'share_right', + 'project_id': 'project_id', + 'type': 'type' + } + + def __init__(self, repository_name=None, format=None, description=None, release=None, snapshot=None, includes_pattern=None, share_right=None, project_id=None, type=None): + """IDERepositoryDO + + The model defined in huaweicloud sdk + + :param repository_name: 仓库名称 + :type repository_name: str + :param format: 仓库类型 + :type format: str + :param description: 仓库描述 + :type description: str + :param release: release仓库名称 + :type release: str + :param snapshot: snapshot仓库名称 + :type snapshot: str + :param includes_pattern: 路径 + :type includes_pattern: str + :param share_right: 共享权限级别 + :type share_right: str + :param project_id: 项目ID + :type project_id: str + :param type: 仓库类别,本地仓或聚合仓 + :type type: str + """ + + + + self._repository_name = None + self._format = None + self._description = None + self._release = None + self._snapshot = None + self._includes_pattern = None + self._share_right = None + self._project_id = None + self._type = None + self.discriminator = None + + if repository_name is not None: + self.repository_name = repository_name + if format is not None: + self.format = format + if description is not None: + self.description = description + if release is not None: + self.release = release + if snapshot is not None: + self.snapshot = snapshot + if includes_pattern is not None: + self.includes_pattern = includes_pattern + if share_right is not None: + self.share_right = share_right + if project_id is not None: + self.project_id = project_id + if type is not None: + self.type = type + + @property + def repository_name(self): + """Gets the repository_name of this IDERepositoryDO. + + 仓库名称 + + :return: The repository_name of this IDERepositoryDO. + :rtype: str + """ + return self._repository_name + + @repository_name.setter + def repository_name(self, repository_name): + """Sets the repository_name of this IDERepositoryDO. + + 仓库名称 + + :param repository_name: The repository_name of this IDERepositoryDO. + :type repository_name: str + """ + self._repository_name = repository_name + + @property + def format(self): + """Gets the format of this IDERepositoryDO. + + 仓库类型 + + :return: The format of this IDERepositoryDO. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this IDERepositoryDO. + + 仓库类型 + + :param format: The format of this IDERepositoryDO. + :type format: str + """ + self._format = format + + @property + def description(self): + """Gets the description of this IDERepositoryDO. + + 仓库描述 + + :return: The description of this IDERepositoryDO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this IDERepositoryDO. + + 仓库描述 + + :param description: The description of this IDERepositoryDO. + :type description: str + """ + self._description = description + + @property + def release(self): + """Gets the release of this IDERepositoryDO. + + release仓库名称 + + :return: The release of this IDERepositoryDO. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """Sets the release of this IDERepositoryDO. + + release仓库名称 + + :param release: The release of this IDERepositoryDO. + :type release: str + """ + self._release = release + + @property + def snapshot(self): + """Gets the snapshot of this IDERepositoryDO. + + snapshot仓库名称 + + :return: The snapshot of this IDERepositoryDO. + :rtype: str + """ + return self._snapshot + + @snapshot.setter + def snapshot(self, snapshot): + """Sets the snapshot of this IDERepositoryDO. + + snapshot仓库名称 + + :param snapshot: The snapshot of this IDERepositoryDO. + :type snapshot: str + """ + self._snapshot = snapshot + + @property + def includes_pattern(self): + """Gets the includes_pattern of this IDERepositoryDO. + + 路径 + + :return: The includes_pattern of this IDERepositoryDO. + :rtype: str + """ + return self._includes_pattern + + @includes_pattern.setter + def includes_pattern(self, includes_pattern): + """Sets the includes_pattern of this IDERepositoryDO. + + 路径 + + :param includes_pattern: The includes_pattern of this IDERepositoryDO. + :type includes_pattern: str + """ + self._includes_pattern = includes_pattern + + @property + def share_right(self): + """Gets the share_right of this IDERepositoryDO. + + 共享权限级别 + + :return: The share_right of this IDERepositoryDO. + :rtype: str + """ + return self._share_right + + @share_right.setter + def share_right(self, share_right): + """Sets the share_right of this IDERepositoryDO. + + 共享权限级别 + + :param share_right: The share_right of this IDERepositoryDO. + :type share_right: str + """ + self._share_right = share_right + + @property + def project_id(self): + """Gets the project_id of this IDERepositoryDO. + + 项目ID + + :return: The project_id of this IDERepositoryDO. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IDERepositoryDO. + + 项目ID + + :param project_id: The project_id of this IDERepositoryDO. + :type project_id: str + """ + self._project_id = project_id + + @property + def type(self): + """Gets the type of this IDERepositoryDO. + + 仓库类别,本地仓或聚合仓 + + :return: The type of this IDERepositoryDO. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this IDERepositoryDO. + + 仓库类别,本地仓或聚合仓 + + :param type: The type of this IDERepositoryDO. + :type type: str + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IDERepositoryDO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repository_pair.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repository_pair.py new file mode 100644 index 000000000..479cd4bce --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_repository_pair.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IDERepositoryPair: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'repo_name': 'str', + 'includes_pattern': 'str', + 'project_id': 'str', + 'description': 'str', + 'snapshot': 'str', + 'release': 'str' + } + + attribute_map = { + 'repo_name': 'repo_name', + 'includes_pattern': 'includes_pattern', + 'project_id': 'project_id', + 'description': 'description', + 'snapshot': 'snapshot', + 'release': 'release' + } + + def __init__(self, repo_name=None, includes_pattern=None, project_id=None, description=None, snapshot=None, release=None): + """IDERepositoryPair + + The model defined in huaweicloud sdk + + :param repo_name: 仓库名称 + :type repo_name: str + :param includes_pattern: 路径 + :type includes_pattern: str + :param project_id: 项目id + :type project_id: str + :param description: 描述 + :type description: str + :param snapshot: snapshot仓库名称 + :type snapshot: str + :param release: release仓库名称 + :type release: str + """ + + + + self._repo_name = None + self._includes_pattern = None + self._project_id = None + self._description = None + self._snapshot = None + self._release = None + self.discriminator = None + + if repo_name is not None: + self.repo_name = repo_name + if includes_pattern is not None: + self.includes_pattern = includes_pattern + if project_id is not None: + self.project_id = project_id + if description is not None: + self.description = description + if snapshot is not None: + self.snapshot = snapshot + if release is not None: + self.release = release + + @property + def repo_name(self): + """Gets the repo_name of this IDERepositoryPair. + + 仓库名称 + + :return: The repo_name of this IDERepositoryPair. + :rtype: str + """ + return self._repo_name + + @repo_name.setter + def repo_name(self, repo_name): + """Sets the repo_name of this IDERepositoryPair. + + 仓库名称 + + :param repo_name: The repo_name of this IDERepositoryPair. + :type repo_name: str + """ + self._repo_name = repo_name + + @property + def includes_pattern(self): + """Gets the includes_pattern of this IDERepositoryPair. + + 路径 + + :return: The includes_pattern of this IDERepositoryPair. + :rtype: str + """ + return self._includes_pattern + + @includes_pattern.setter + def includes_pattern(self, includes_pattern): + """Sets the includes_pattern of this IDERepositoryPair. + + 路径 + + :param includes_pattern: The includes_pattern of this IDERepositoryPair. + :type includes_pattern: str + """ + self._includes_pattern = includes_pattern + + @property + def project_id(self): + """Gets the project_id of this IDERepositoryPair. + + 项目id + + :return: The project_id of this IDERepositoryPair. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this IDERepositoryPair. + + 项目id + + :param project_id: The project_id of this IDERepositoryPair. + :type project_id: str + """ + self._project_id = project_id + + @property + def description(self): + """Gets the description of this IDERepositoryPair. + + 描述 + + :return: The description of this IDERepositoryPair. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this IDERepositoryPair. + + 描述 + + :param description: The description of this IDERepositoryPair. + :type description: str + """ + self._description = description + + @property + def snapshot(self): + """Gets the snapshot of this IDERepositoryPair. + + snapshot仓库名称 + + :return: The snapshot of this IDERepositoryPair. + :rtype: str + """ + return self._snapshot + + @snapshot.setter + def snapshot(self, snapshot): + """Sets the snapshot of this IDERepositoryPair. + + snapshot仓库名称 + + :param snapshot: The snapshot of this IDERepositoryPair. + :type snapshot: str + """ + self._snapshot = snapshot + + @property + def release(self): + """Gets the release of this IDERepositoryPair. + + release仓库名称 + + :return: The release of this IDERepositoryPair. + :rtype: str + """ + return self._release + + @release.setter + def release(self, release): + """Sets the release of this IDERepositoryPair. + + release仓库名称 + + :param release: The release of this IDERepositoryPair. + :type release: str + """ + self._release = release + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IDERepositoryPair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_trash_artifact_model.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_trash_artifact_model.py new file mode 100644 index 000000000..a94f3f625 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/ide_trash_artifact_model.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class IDETrashArtifactModel: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'format': 'str', + 'status': 'str', + 'uri': 'str' + } + + attribute_map = { + 'id': 'id', + 'format': 'format', + 'status': 'status', + 'uri': 'uri' + } + + def __init__(self, id=None, format=None, status=None, uri=None): + """IDETrashArtifactModel + + The model defined in huaweicloud sdk + + :param id: 仓库id + :type id: str + :param format: 类型 + :type format: str + :param status: 当前仓库状态 + :type status: str + :param uri: 待还原的文件路径 + :type uri: str + """ + + + + self._id = None + self._format = None + self._status = None + self._uri = None + self.discriminator = None + + if id is not None: + self.id = id + if format is not None: + self.format = format + if status is not None: + self.status = status + if uri is not None: + self.uri = uri + + @property + def id(self): + """Gets the id of this IDETrashArtifactModel. + + 仓库id + + :return: The id of this IDETrashArtifactModel. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this IDETrashArtifactModel. + + 仓库id + + :param id: The id of this IDETrashArtifactModel. + :type id: str + """ + self._id = id + + @property + def format(self): + """Gets the format of this IDETrashArtifactModel. + + 类型 + + :return: The format of this IDETrashArtifactModel. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this IDETrashArtifactModel. + + 类型 + + :param format: The format of this IDETrashArtifactModel. + :type format: str + """ + self._format = format + + @property + def status(self): + """Gets the status of this IDETrashArtifactModel. + + 当前仓库状态 + + :return: The status of this IDETrashArtifactModel. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this IDETrashArtifactModel. + + 当前仓库状态 + + :param status: The status of this IDETrashArtifactModel. + :type status: str + """ + self._status = status + + @property + def uri(self): + """Gets the uri of this IDETrashArtifactModel. + + 待还原的文件路径 + + :return: The uri of this IDETrashArtifactModel. + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this IDETrashArtifactModel. + + 待还原的文件路径 + + :param uri: The uri of this IDETrashArtifactModel. + :type uri: str + """ + self._uri = uri + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, IDETrashArtifactModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_all_repositories_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_all_repositories_request.py new file mode 100644 index 000000000..4407afd20 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_all_repositories_request.py @@ -0,0 +1,461 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAllRepositoriesRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tenant_id': 'str', + 'project_id': 'str', + 'group_id': 'str', + 'page_no': 'int', + 'page_size': 'int', + 'sort': 'str', + 'qname': 'str', + 'type': 'str', + 'format': 'str', + 'format_list': 'str', + 'is_recycle_bin': 'bool', + 'is_need_paging': 'bool', + 'in_project': 'bool' + } + + attribute_map = { + 'tenant_id': 'tenant_id', + 'project_id': 'project_id', + 'group_id': 'group_id', + 'page_no': 'page_no', + 'page_size': 'page_size', + 'sort': 'sort', + 'qname': 'qname', + 'type': 'type', + 'format': 'format', + 'format_list': 'format_list', + 'is_recycle_bin': 'is_recycle_bin', + 'is_need_paging': 'is_need_paging', + 'in_project': 'in_project' + } + + def __init__(self, tenant_id=None, project_id=None, group_id=None, page_no=None, page_size=None, sort=None, qname=None, type=None, format=None, format_list=None, is_recycle_bin=None, is_need_paging=None, in_project=None): + """ListAllRepositoriesRequest + + The model defined in huaweicloud sdk + + :param tenant_id: 租户id + :type tenant_id: str + :param project_id: 项目id + :type project_id: str + :param group_id: 组id + :type group_id: str + :param page_no: 页码 + :type page_no: int + :param page_size: 每页大小 + :type page_size: int + :param sort: 排序类型 + :type sort: str + :param qname: 查询内容 + :type qname: str + :param type: 仓库类型 + :type type: str + :param format: 仓库格式 + :type format: str + :param format_list: 仓库格式列表 + :type format_list: str + :param is_recycle_bin: 是否是回收站文件 + :type is_recycle_bin: bool + :param is_need_paging: 是否需要分页 + :type is_need_paging: bool + :param in_project: 是否在项目中 + :type in_project: bool + """ + + + + self._tenant_id = None + self._project_id = None + self._group_id = None + self._page_no = None + self._page_size = None + self._sort = None + self._qname = None + self._type = None + self._format = None + self._format_list = None + self._is_recycle_bin = None + self._is_need_paging = None + self._in_project = None + self.discriminator = None + + self.tenant_id = tenant_id + self.project_id = project_id + if group_id is not None: + self.group_id = group_id + if page_no is not None: + self.page_no = page_no + if page_size is not None: + self.page_size = page_size + if sort is not None: + self.sort = sort + if qname is not None: + self.qname = qname + if type is not None: + self.type = type + if format is not None: + self.format = format + if format_list is not None: + self.format_list = format_list + if is_recycle_bin is not None: + self.is_recycle_bin = is_recycle_bin + if is_need_paging is not None: + self.is_need_paging = is_need_paging + if in_project is not None: + self.in_project = in_project + + @property + def tenant_id(self): + """Gets the tenant_id of this ListAllRepositoriesRequest. + + 租户id + + :return: The tenant_id of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this ListAllRepositoriesRequest. + + 租户id + + :param tenant_id: The tenant_id of this ListAllRepositoriesRequest. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def project_id(self): + """Gets the project_id of this ListAllRepositoriesRequest. + + 项目id + + :return: The project_id of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListAllRepositoriesRequest. + + 项目id + + :param project_id: The project_id of this ListAllRepositoriesRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def group_id(self): + """Gets the group_id of this ListAllRepositoriesRequest. + + 组id + + :return: The group_id of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this ListAllRepositoriesRequest. + + 组id + + :param group_id: The group_id of this ListAllRepositoriesRequest. + :type group_id: str + """ + self._group_id = group_id + + @property + def page_no(self): + """Gets the page_no of this ListAllRepositoriesRequest. + + 页码 + + :return: The page_no of this ListAllRepositoriesRequest. + :rtype: int + """ + return self._page_no + + @page_no.setter + def page_no(self, page_no): + """Sets the page_no of this ListAllRepositoriesRequest. + + 页码 + + :param page_no: The page_no of this ListAllRepositoriesRequest. + :type page_no: int + """ + self._page_no = page_no + + @property + def page_size(self): + """Gets the page_size of this ListAllRepositoriesRequest. + + 每页大小 + + :return: The page_size of this ListAllRepositoriesRequest. + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this ListAllRepositoriesRequest. + + 每页大小 + + :param page_size: The page_size of this ListAllRepositoriesRequest. + :type page_size: int + """ + self._page_size = page_size + + @property + def sort(self): + """Gets the sort of this ListAllRepositoriesRequest. + + 排序类型 + + :return: The sort of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._sort + + @sort.setter + def sort(self, sort): + """Sets the sort of this ListAllRepositoriesRequest. + + 排序类型 + + :param sort: The sort of this ListAllRepositoriesRequest. + :type sort: str + """ + self._sort = sort + + @property + def qname(self): + """Gets the qname of this ListAllRepositoriesRequest. + + 查询内容 + + :return: The qname of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._qname + + @qname.setter + def qname(self, qname): + """Sets the qname of this ListAllRepositoriesRequest. + + 查询内容 + + :param qname: The qname of this ListAllRepositoriesRequest. + :type qname: str + """ + self._qname = qname + + @property + def type(self): + """Gets the type of this ListAllRepositoriesRequest. + + 仓库类型 + + :return: The type of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ListAllRepositoriesRequest. + + 仓库类型 + + :param type: The type of this ListAllRepositoriesRequest. + :type type: str + """ + self._type = type + + @property + def format(self): + """Gets the format of this ListAllRepositoriesRequest. + + 仓库格式 + + :return: The format of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this ListAllRepositoriesRequest. + + 仓库格式 + + :param format: The format of this ListAllRepositoriesRequest. + :type format: str + """ + self._format = format + + @property + def format_list(self): + """Gets the format_list of this ListAllRepositoriesRequest. + + 仓库格式列表 + + :return: The format_list of this ListAllRepositoriesRequest. + :rtype: str + """ + return self._format_list + + @format_list.setter + def format_list(self, format_list): + """Sets the format_list of this ListAllRepositoriesRequest. + + 仓库格式列表 + + :param format_list: The format_list of this ListAllRepositoriesRequest. + :type format_list: str + """ + self._format_list = format_list + + @property + def is_recycle_bin(self): + """Gets the is_recycle_bin of this ListAllRepositoriesRequest. + + 是否是回收站文件 + + :return: The is_recycle_bin of this ListAllRepositoriesRequest. + :rtype: bool + """ + return self._is_recycle_bin + + @is_recycle_bin.setter + def is_recycle_bin(self, is_recycle_bin): + """Sets the is_recycle_bin of this ListAllRepositoriesRequest. + + 是否是回收站文件 + + :param is_recycle_bin: The is_recycle_bin of this ListAllRepositoriesRequest. + :type is_recycle_bin: bool + """ + self._is_recycle_bin = is_recycle_bin + + @property + def is_need_paging(self): + """Gets the is_need_paging of this ListAllRepositoriesRequest. + + 是否需要分页 + + :return: The is_need_paging of this ListAllRepositoriesRequest. + :rtype: bool + """ + return self._is_need_paging + + @is_need_paging.setter + def is_need_paging(self, is_need_paging): + """Sets the is_need_paging of this ListAllRepositoriesRequest. + + 是否需要分页 + + :param is_need_paging: The is_need_paging of this ListAllRepositoriesRequest. + :type is_need_paging: bool + """ + self._is_need_paging = is_need_paging + + @property + def in_project(self): + """Gets the in_project of this ListAllRepositoriesRequest. + + 是否在项目中 + + :return: The in_project of this ListAllRepositoriesRequest. + :rtype: bool + """ + return self._in_project + + @in_project.setter + def in_project(self, in_project): + """Sets the in_project of this ListAllRepositoriesRequest. + + 是否在项目中 + + :param in_project: The in_project of this ListAllRepositoriesRequest. + :type in_project: bool + """ + self._in_project = in_project + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAllRepositoriesRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_all_repositories_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_all_repositories_response.py new file mode 100644 index 000000000..148cd1bd7 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_all_repositories_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 ListAllRepositoriesResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ListAllRepositoriesResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ListAllRepositoriesResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ListAllRepositoriesResponse. + + 结果状态 + + :return: The status of this ListAllRepositoriesResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListAllRepositoriesResponse. + + 结果状态 + + :param status: The status of this ListAllRepositoriesResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ListAllRepositoriesResponse. + + 请求id + + :return: The trace_id of this ListAllRepositoriesResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ListAllRepositoriesResponse. + + 请求id + + :param trace_id: The trace_id of this ListAllRepositoriesResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ListAllRepositoriesResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ListAllRepositoriesResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ListAllRepositoriesResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ListAllRepositoriesResponse. + :type result: object + """ + 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, ListAllRepositoriesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_component_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_component_request.py new file mode 100644 index 000000000..1c27609b7 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_component_request.py @@ -0,0 +1,255 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListArtifactoryComponentRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tenant_id': 'str', + 'project_id': 'str', + 'repo_name': 'str', + 'path': 'str', + 'format': 'str', + 'instance_id': 'str' + } + + attribute_map = { + 'tenant_id': 'tenant_id', + 'project_id': 'project_id', + 'repo_name': 'repo_name', + 'path': 'path', + 'format': 'format', + 'instance_id': 'instance_id' + } + + def __init__(self, tenant_id=None, project_id=None, repo_name=None, path=None, format=None, instance_id=None): + """ListArtifactoryComponentRequest + + The model defined in huaweicloud sdk + + :param tenant_id: 租户id + :type tenant_id: str + :param project_id: 项目id + :type project_id: str + :param repo_name: 仓库名称 + :type repo_name: str + :param path: 仓库中路径 + :type path: str + :param format: 仓库格式 + :type format: str + :param instance_id: 实例id + :type instance_id: str + """ + + + + self._tenant_id = None + self._project_id = None + self._repo_name = None + self._path = None + self._format = None + self._instance_id = None + self.discriminator = None + + self.tenant_id = tenant_id + self.project_id = project_id + self.repo_name = repo_name + self.path = path + self.format = format + if instance_id is not None: + self.instance_id = instance_id + + @property + def tenant_id(self): + """Gets the tenant_id of this ListArtifactoryComponentRequest. + + 租户id + + :return: The tenant_id of this ListArtifactoryComponentRequest. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this ListArtifactoryComponentRequest. + + 租户id + + :param tenant_id: The tenant_id of this ListArtifactoryComponentRequest. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def project_id(self): + """Gets the project_id of this ListArtifactoryComponentRequest. + + 项目id + + :return: The project_id of this ListArtifactoryComponentRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListArtifactoryComponentRequest. + + 项目id + + :param project_id: The project_id of this ListArtifactoryComponentRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def repo_name(self): + """Gets the repo_name of this ListArtifactoryComponentRequest. + + 仓库名称 + + :return: The repo_name of this ListArtifactoryComponentRequest. + :rtype: str + """ + return self._repo_name + + @repo_name.setter + def repo_name(self, repo_name): + """Sets the repo_name of this ListArtifactoryComponentRequest. + + 仓库名称 + + :param repo_name: The repo_name of this ListArtifactoryComponentRequest. + :type repo_name: str + """ + self._repo_name = repo_name + + @property + def path(self): + """Gets the path of this ListArtifactoryComponentRequest. + + 仓库中路径 + + :return: The path of this ListArtifactoryComponentRequest. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this ListArtifactoryComponentRequest. + + 仓库中路径 + + :param path: The path of this ListArtifactoryComponentRequest. + :type path: str + """ + self._path = path + + @property + def format(self): + """Gets the format of this ListArtifactoryComponentRequest. + + 仓库格式 + + :return: The format of this ListArtifactoryComponentRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this ListArtifactoryComponentRequest. + + 仓库格式 + + :param format: The format of this ListArtifactoryComponentRequest. + :type format: str + """ + self._format = format + + @property + def instance_id(self): + """Gets the instance_id of this ListArtifactoryComponentRequest. + + 实例id + + :return: The instance_id of this ListArtifactoryComponentRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListArtifactoryComponentRequest. + + 实例id + + :param instance_id: The instance_id of this ListArtifactoryComponentRequest. + :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, ListArtifactoryComponentRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_component_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_component_response.py new file mode 100644 index 000000000..fff6135ce --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_component_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 ListArtifactoryComponentResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ListArtifactoryComponentResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ListArtifactoryComponentResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ListArtifactoryComponentResponse. + + 结果状态 + + :return: The status of this ListArtifactoryComponentResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListArtifactoryComponentResponse. + + 结果状态 + + :param status: The status of this ListArtifactoryComponentResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ListArtifactoryComponentResponse. + + 请求id + + :return: The trace_id of this ListArtifactoryComponentResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ListArtifactoryComponentResponse. + + 请求id + + :param trace_id: The trace_id of this ListArtifactoryComponentResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ListArtifactoryComponentResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ListArtifactoryComponentResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ListArtifactoryComponentResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ListArtifactoryComponentResponse. + :type result: object + """ + 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, ListArtifactoryComponentResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_storage_statistic_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_storage_statistic_request.py new file mode 100644 index 000000000..77c6e2507 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_storage_statistic_request.py @@ -0,0 +1,258 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListArtifactoryStorageStatisticRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tenant_id': 'str', + 'project_id': 'str', + 'repo': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'instance_id': 'str' + } + + attribute_map = { + 'tenant_id': 'tenant_id', + 'project_id': 'project_id', + 'repo': 'repo', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'instance_id': 'instance_id' + } + + def __init__(self, tenant_id=None, project_id=None, repo=None, start_time=None, end_time=None, instance_id=None): + """ListArtifactoryStorageStatisticRequest + + The model defined in huaweicloud sdk + + :param tenant_id: 租户id + :type tenant_id: str + :param project_id: 项目id + :type project_id: str + :param repo: 仓库id + :type repo: str + :param start_time: 起始时间 + :type start_time: str + :param end_time: 终止时间 + :type end_time: str + :param instance_id: 实例id + :type instance_id: str + """ + + + + self._tenant_id = None + self._project_id = None + self._repo = None + self._start_time = None + self._end_time = None + self._instance_id = None + self.discriminator = None + + self.tenant_id = tenant_id + self.project_id = project_id + if repo is not None: + self.repo = repo + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if instance_id is not None: + self.instance_id = instance_id + + @property + def tenant_id(self): + """Gets the tenant_id of this ListArtifactoryStorageStatisticRequest. + + 租户id + + :return: The tenant_id of this ListArtifactoryStorageStatisticRequest. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this ListArtifactoryStorageStatisticRequest. + + 租户id + + :param tenant_id: The tenant_id of this ListArtifactoryStorageStatisticRequest. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def project_id(self): + """Gets the project_id of this ListArtifactoryStorageStatisticRequest. + + 项目id + + :return: The project_id of this ListArtifactoryStorageStatisticRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListArtifactoryStorageStatisticRequest. + + 项目id + + :param project_id: The project_id of this ListArtifactoryStorageStatisticRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def repo(self): + """Gets the repo of this ListArtifactoryStorageStatisticRequest. + + 仓库id + + :return: The repo of this ListArtifactoryStorageStatisticRequest. + :rtype: str + """ + return self._repo + + @repo.setter + def repo(self, repo): + """Sets the repo of this ListArtifactoryStorageStatisticRequest. + + 仓库id + + :param repo: The repo of this ListArtifactoryStorageStatisticRequest. + :type repo: str + """ + self._repo = repo + + @property + def start_time(self): + """Gets the start_time of this ListArtifactoryStorageStatisticRequest. + + 起始时间 + + :return: The start_time of this ListArtifactoryStorageStatisticRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListArtifactoryStorageStatisticRequest. + + 起始时间 + + :param start_time: The start_time of this ListArtifactoryStorageStatisticRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListArtifactoryStorageStatisticRequest. + + 终止时间 + + :return: The end_time of this ListArtifactoryStorageStatisticRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListArtifactoryStorageStatisticRequest. + + 终止时间 + + :param end_time: The end_time of this ListArtifactoryStorageStatisticRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def instance_id(self): + """Gets the instance_id of this ListArtifactoryStorageStatisticRequest. + + 实例id + + :return: The instance_id of this ListArtifactoryStorageStatisticRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ListArtifactoryStorageStatisticRequest. + + 实例id + + :param instance_id: The instance_id of this ListArtifactoryStorageStatisticRequest. + :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, ListArtifactoryStorageStatisticRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_storage_statistic_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_storage_statistic_response.py new file mode 100644 index 000000000..b175b3af8 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_artifactory_storage_statistic_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 ListArtifactoryStorageStatisticResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ListArtifactoryStorageStatisticResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ListArtifactoryStorageStatisticResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ListArtifactoryStorageStatisticResponse. + + 结果状态 + + :return: The status of this ListArtifactoryStorageStatisticResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListArtifactoryStorageStatisticResponse. + + 结果状态 + + :param status: The status of this ListArtifactoryStorageStatisticResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ListArtifactoryStorageStatisticResponse. + + 请求id + + :return: The trace_id of this ListArtifactoryStorageStatisticResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ListArtifactoryStorageStatisticResponse. + + 请求id + + :param trace_id: The trace_id of this ListArtifactoryStorageStatisticResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ListArtifactoryStorageStatisticResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ListArtifactoryStorageStatisticResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ListArtifactoryStorageStatisticResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ListArtifactoryStorageStatisticResponse. + :type result: object + """ + 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, ListArtifactoryStorageStatisticResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_attentions_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_attentions_request.py new file mode 100644 index 000000000..7b82c5078 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_attentions_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListAttentionsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'page_no': 'int', + 'page_size': 'int', + 'project_id': 'str' + } + + attribute_map = { + 'page_no': 'page_no', + 'page_size': 'page_size', + 'project_id': 'project_id' + } + + def __init__(self, page_no=None, page_size=None, project_id=None): + """ListAttentionsRequest + + The model defined in huaweicloud sdk + + :param page_no: 页码 + :type page_no: int + :param page_size: 每页大小 + :type page_size: int + :param project_id: 项目id + :type project_id: str + """ + + + + self._page_no = None + self._page_size = None + self._project_id = None + self.discriminator = None + + if page_no is not None: + self.page_no = page_no + if page_size is not None: + self.page_size = page_size + if project_id is not None: + self.project_id = project_id + + @property + def page_no(self): + """Gets the page_no of this ListAttentionsRequest. + + 页码 + + :return: The page_no of this ListAttentionsRequest. + :rtype: int + """ + return self._page_no + + @page_no.setter + def page_no(self, page_no): + """Sets the page_no of this ListAttentionsRequest. + + 页码 + + :param page_no: The page_no of this ListAttentionsRequest. + :type page_no: int + """ + self._page_no = page_no + + @property + def page_size(self): + """Gets the page_size of this ListAttentionsRequest. + + 每页大小 + + :return: The page_size of this ListAttentionsRequest. + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this ListAttentionsRequest. + + 每页大小 + + :param page_size: The page_size of this ListAttentionsRequest. + :type page_size: int + """ + self._page_size = page_size + + @property + def project_id(self): + """Gets the project_id of this ListAttentionsRequest. + + 项目id + + :return: The project_id of this ListAttentionsRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ListAttentionsRequest. + + 项目id + + :param project_id: The project_id of this ListAttentionsRequest. + :type project_id: str + """ + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListAttentionsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_attentions_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_attentions_response.py new file mode 100644 index 000000000..2004b1d0a --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/list_attentions_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 ListAttentionsResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ListAttentionsResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ListAttentionsResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ListAttentionsResponse. + + 结果状态 + + :return: The status of this ListAttentionsResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListAttentionsResponse. + + 结果状态 + + :param status: The status of this ListAttentionsResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ListAttentionsResponse. + + 请求id + + :return: The trace_id of this ListAttentionsResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ListAttentionsResponse. + + 请求id + + :param trace_id: The trace_id of this ListAttentionsResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ListAttentionsResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ListAttentionsResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ListAttentionsResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ListAttentionsResponse. + :type result: object + """ + 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, ListAttentionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/modify_repository_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/modify_repository_request.py new file mode 100644 index 000000000..a07251adf --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/modify_repository_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModifyRepositoryRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tab_id': 'str', + 'body': 'IDERepositoryPair' + } + + attribute_map = { + 'tab_id': 'tab_id', + 'body': 'body' + } + + def __init__(self, tab_id=None, body=None): + """ModifyRepositoryRequest + + The model defined in huaweicloud sdk + + :param tab_id: tab_id + :type tab_id: str + :param body: Body of the ModifyRepositoryRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepositoryPair` + """ + + + + self._tab_id = None + self._body = None + self.discriminator = None + + self.tab_id = tab_id + if body is not None: + self.body = body + + @property + def tab_id(self): + """Gets the tab_id of this ModifyRepositoryRequest. + + tab_id + + :return: The tab_id of this ModifyRepositoryRequest. + :rtype: str + """ + return self._tab_id + + @tab_id.setter + def tab_id(self, tab_id): + """Sets the tab_id of this ModifyRepositoryRequest. + + tab_id + + :param tab_id: The tab_id of this ModifyRepositoryRequest. + :type tab_id: str + """ + self._tab_id = tab_id + + @property + def body(self): + """Gets the body of this ModifyRepositoryRequest. + + :return: The body of this ModifyRepositoryRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepositoryPair` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ModifyRepositoryRequest. + + :param body: The body of this ModifyRepositoryRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepositoryPair` + """ + 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, ModifyRepositoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/modify_repository_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/modify_repository_response.py new file mode 100644 index 000000000..553d66767 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/modify_repository_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 ModifyRepositoryResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ModifyRepositoryResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ModifyRepositoryResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ModifyRepositoryResponse. + + 结果状态 + + :return: The status of this ModifyRepositoryResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ModifyRepositoryResponse. + + 结果状态 + + :param status: The status of this ModifyRepositoryResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ModifyRepositoryResponse. + + 请求id + + :return: The trace_id of this ModifyRepositoryResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ModifyRepositoryResponse. + + 请求id + + :param trace_id: The trace_id of this ModifyRepositoryResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ModifyRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ModifyRepositoryResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ModifyRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ModifyRepositoryResponse. + :type result: object + """ + 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, ModifyRepositoryResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/path_map.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/path_map.py new file mode 100644 index 000000000..20f722a9c --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/path_map.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PathMap: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'path': 'str' + } + + attribute_map = { + 'path': 'path' + } + + def __init__(self, path=None): + """PathMap + + The model defined in huaweicloud sdk + + :param path: 文件路径 + :type path: str + """ + + + + self._path = None + self.discriminator = None + + self.path = path + + @property + def path(self): + """Gets the path of this PathMap. + + 文件路径 + + :return: The path of this PathMap. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this PathMap. + + 文件路径 + + :param path: The path of this PathMap. + :type path: str + """ + self._path = path + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PathMap): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/reset_user_password_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/reset_user_password_request.py new file mode 100644 index 000000000..07d02dbc6 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/reset_user_password_request.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ResetUserPasswordRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ResetUserPasswordRequest + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResetUserPasswordRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/reset_user_password_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/reset_user_password_response.py new file mode 100644 index 000000000..7dc06965c --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/reset_user_password_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 ResetUserPasswordResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ResetUserPasswordResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ResetUserPasswordResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ResetUserPasswordResponse. + + 结果状态 + + :return: The status of this ResetUserPasswordResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ResetUserPasswordResponse. + + 结果状态 + + :param status: The status of this ResetUserPasswordResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ResetUserPasswordResponse. + + 请求id + + :return: The trace_id of this ResetUserPasswordResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ResetUserPasswordResponse. + + 请求id + + :param trace_id: The trace_id of this ResetUserPasswordResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ResetUserPasswordResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ResetUserPasswordResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResetUserPasswordResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ResetUserPasswordResponse. + :type result: object + """ + 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, ResetUserPasswordResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_artifacts_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_artifacts_request.py new file mode 100644 index 000000000..980bb1bb6 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_artifacts_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchArtifactsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'IDERepoSearchDO' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """SearchArtifactsRequest + + The model defined in huaweicloud sdk + + :param body: Body of the SearchArtifactsRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepoSearchDO` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this SearchArtifactsRequest. + + :return: The body of this SearchArtifactsRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepoSearchDO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SearchArtifactsRequest. + + :param body: The body of this SearchArtifactsRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.IDERepoSearchDO` + """ + 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, SearchArtifactsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_artifacts_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_artifacts_response.py new file mode 100644 index 000000000..ad1a51c0f --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_artifacts_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 SearchArtifactsResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """SearchArtifactsResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(SearchArtifactsResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this SearchArtifactsResponse. + + 结果状态 + + :return: The status of this SearchArtifactsResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this SearchArtifactsResponse. + + 结果状态 + + :param status: The status of this SearchArtifactsResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this SearchArtifactsResponse. + + 请求id + + :return: The trace_id of this SearchArtifactsResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this SearchArtifactsResponse. + + 请求id + + :param trace_id: The trace_id of this SearchArtifactsResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this SearchArtifactsResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this SearchArtifactsResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this SearchArtifactsResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this SearchArtifactsResponse. + :type result: object + """ + 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, SearchArtifactsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_by_checksum_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_by_checksum_request.py new file mode 100644 index 000000000..be3414111 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_by_checksum_request.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SearchByChecksumRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'checksum': 'str', + 'page_no': 'int', + 'page_size': 'int', + 'format': 'str', + 'in_project': 'str', + 'project_id': 'str' + } + + attribute_map = { + 'checksum': 'checksum', + 'page_no': 'page_no', + 'page_size': 'page_size', + 'format': 'format', + 'in_project': 'in_project', + 'project_id': 'project_id' + } + + def __init__(self, checksum=None, page_no=None, page_size=None, format=None, in_project=None, project_id=None): + """SearchByChecksumRequest + + The model defined in huaweicloud sdk + + :param checksum: checksum + :type checksum: str + :param page_no: 页码 + :type page_no: int + :param page_size: 每页条数 + :type page_size: int + :param format: 仓库类型 + :type format: str + :param in_project: 是否在项目中 + :type in_project: str + :param project_id: 项目id + :type project_id: str + """ + + + + self._checksum = None + self._page_no = None + self._page_size = None + self._format = None + self._in_project = None + self._project_id = None + self.discriminator = None + + self.checksum = checksum + if page_no is not None: + self.page_no = page_no + if page_size is not None: + self.page_size = page_size + if format is not None: + self.format = format + if in_project is not None: + self.in_project = in_project + if project_id is not None: + self.project_id = project_id + + @property + def checksum(self): + """Gets the checksum of this SearchByChecksumRequest. + + checksum + + :return: The checksum of this SearchByChecksumRequest. + :rtype: str + """ + return self._checksum + + @checksum.setter + def checksum(self, checksum): + """Sets the checksum of this SearchByChecksumRequest. + + checksum + + :param checksum: The checksum of this SearchByChecksumRequest. + :type checksum: str + """ + self._checksum = checksum + + @property + def page_no(self): + """Gets the page_no of this SearchByChecksumRequest. + + 页码 + + :return: The page_no of this SearchByChecksumRequest. + :rtype: int + """ + return self._page_no + + @page_no.setter + def page_no(self, page_no): + """Sets the page_no of this SearchByChecksumRequest. + + 页码 + + :param page_no: The page_no of this SearchByChecksumRequest. + :type page_no: int + """ + self._page_no = page_no + + @property + def page_size(self): + """Gets the page_size of this SearchByChecksumRequest. + + 每页条数 + + :return: The page_size of this SearchByChecksumRequest. + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this SearchByChecksumRequest. + + 每页条数 + + :param page_size: The page_size of this SearchByChecksumRequest. + :type page_size: int + """ + self._page_size = page_size + + @property + def format(self): + """Gets the format of this SearchByChecksumRequest. + + 仓库类型 + + :return: The format of this SearchByChecksumRequest. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this SearchByChecksumRequest. + + 仓库类型 + + :param format: The format of this SearchByChecksumRequest. + :type format: str + """ + self._format = format + + @property + def in_project(self): + """Gets the in_project of this SearchByChecksumRequest. + + 是否在项目中 + + :return: The in_project of this SearchByChecksumRequest. + :rtype: str + """ + return self._in_project + + @in_project.setter + def in_project(self, in_project): + """Sets the in_project of this SearchByChecksumRequest. + + 是否在项目中 + + :param in_project: The in_project of this SearchByChecksumRequest. + :type in_project: str + """ + self._in_project = in_project + + @property + def project_id(self): + """Gets the project_id of this SearchByChecksumRequest. + + 项目id + + :return: The project_id of this SearchByChecksumRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this SearchByChecksumRequest. + + 项目id + + :param project_id: The project_id of this SearchByChecksumRequest. + :type project_id: str + """ + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SearchByChecksumRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_by_checksum_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_by_checksum_response.py new file mode 100644 index 000000000..1693b34d9 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/search_by_checksum_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 SearchByChecksumResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """SearchByChecksumResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(SearchByChecksumResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this SearchByChecksumResponse. + + 结果状态 + + :return: The status of this SearchByChecksumResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this SearchByChecksumResponse. + + 结果状态 + + :param status: The status of this SearchByChecksumResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this SearchByChecksumResponse. + + 请求id + + :return: The trace_id of this SearchByChecksumResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this SearchByChecksumResponse. + + 请求id + + :param trace_id: The trace_id of this SearchByChecksumResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this SearchByChecksumResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this SearchByChecksumResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this SearchByChecksumResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this SearchByChecksumResponse. + :type result: object + """ + 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, SearchByChecksumResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_audit_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_audit_request.py new file mode 100644 index 000000000..c397cb5fe --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_audit_request.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowAuditRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tenant_id': 'str', + 'project_id': 'str', + 'module': 'str', + 'repo': 'str', + 'user_id': 'str', + 'instance_id': 'str', + 'page_num': 'int', + 'page_size': 'int' + } + + attribute_map = { + 'tenant_id': 'tenant_id', + 'project_id': 'project_id', + 'module': 'module', + 'repo': 'repo', + 'user_id': 'user_id', + 'instance_id': 'instance_id', + 'page_num': 'page_num', + 'page_size': 'page_size' + } + + def __init__(self, tenant_id=None, project_id=None, module=None, repo=None, user_id=None, instance_id=None, page_num=None, page_size=None): + """ShowAuditRequest + + The model defined in huaweicloud sdk + + :param tenant_id: 租户id + :type tenant_id: str + :param project_id: 项目id + :type project_id: str + :param module: 模块 + :type module: str + :param repo: 仓库id + :type repo: str + :param user_id: 用户id + :type user_id: str + :param instance_id: 实例id + :type instance_id: str + :param page_num: 页码 + :type page_num: int + :param page_size: 每页大小 + :type page_size: int + """ + + + + self._tenant_id = None + self._project_id = None + self._module = None + self._repo = None + self._user_id = None + self._instance_id = None + self._page_num = None + self._page_size = None + self.discriminator = None + + self.tenant_id = tenant_id + self.project_id = project_id + self.module = module + self.repo = repo + if user_id is not None: + self.user_id = user_id + if instance_id is not None: + self.instance_id = instance_id + if page_num is not None: + self.page_num = page_num + if page_size is not None: + self.page_size = page_size + + @property + def tenant_id(self): + """Gets the tenant_id of this ShowAuditRequest. + + 租户id + + :return: The tenant_id of this ShowAuditRequest. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this ShowAuditRequest. + + 租户id + + :param tenant_id: The tenant_id of this ShowAuditRequest. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def project_id(self): + """Gets the project_id of this ShowAuditRequest. + + 项目id + + :return: The project_id of this ShowAuditRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowAuditRequest. + + 项目id + + :param project_id: The project_id of this ShowAuditRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def module(self): + """Gets the module of this ShowAuditRequest. + + 模块 + + :return: The module of this ShowAuditRequest. + :rtype: str + """ + return self._module + + @module.setter + def module(self, module): + """Sets the module of this ShowAuditRequest. + + 模块 + + :param module: The module of this ShowAuditRequest. + :type module: str + """ + self._module = module + + @property + def repo(self): + """Gets the repo of this ShowAuditRequest. + + 仓库id + + :return: The repo of this ShowAuditRequest. + :rtype: str + """ + return self._repo + + @repo.setter + def repo(self, repo): + """Sets the repo of this ShowAuditRequest. + + 仓库id + + :param repo: The repo of this ShowAuditRequest. + :type repo: str + """ + self._repo = repo + + @property + def user_id(self): + """Gets the user_id of this ShowAuditRequest. + + 用户id + + :return: The user_id of this ShowAuditRequest. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this ShowAuditRequest. + + 用户id + + :param user_id: The user_id of this ShowAuditRequest. + :type user_id: str + """ + self._user_id = user_id + + @property + def instance_id(self): + """Gets the instance_id of this ShowAuditRequest. + + 实例id + + :return: The instance_id of this ShowAuditRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowAuditRequest. + + 实例id + + :param instance_id: The instance_id of this ShowAuditRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def page_num(self): + """Gets the page_num of this ShowAuditRequest. + + 页码 + + :return: The page_num of this ShowAuditRequest. + :rtype: int + """ + return self._page_num + + @page_num.setter + def page_num(self, page_num): + """Sets the page_num of this ShowAuditRequest. + + 页码 + + :param page_num: The page_num of this ShowAuditRequest. + :type page_num: int + """ + self._page_num = page_num + + @property + def page_size(self): + """Gets the page_size of this ShowAuditRequest. + + 每页大小 + + :return: The page_size of this ShowAuditRequest. + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this ShowAuditRequest. + + 每页大小 + + :param page_size: The page_size of this ShowAuditRequest. + :type page_size: int + """ + self._page_size = page_size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowAuditRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_audit_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_audit_response.py new file mode 100644 index 000000000..06d72bc5d --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_audit_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 ShowAuditResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ShowAuditResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ShowAuditResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ShowAuditResponse. + + 结果状态 + + :return: The status of this ShowAuditResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowAuditResponse. + + 结果状态 + + :param status: The status of this ShowAuditResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ShowAuditResponse. + + 请求id + + :return: The trace_id of this ShowAuditResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ShowAuditResponse. + + 请求id + + :param trace_id: The trace_id of this ShowAuditResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ShowAuditResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ShowAuditResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ShowAuditResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ShowAuditResponse. + :type result: object + """ + 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, ShowAuditResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_file_tree_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_file_tree_request.py new file mode 100644 index 000000000..20a50c566 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_file_tree_request.py @@ -0,0 +1,256 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowFileTreeRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tenant_id': 'str', + 'project_id': 'str', + 'repo_name': 'str', + 'path': 'str', + 'instance_id': 'str', + 'is_recycle_bin': 'bool' + } + + attribute_map = { + 'tenant_id': 'tenant_id', + 'project_id': 'project_id', + 'repo_name': 'repo_name', + 'path': 'path', + 'instance_id': 'instance_id', + 'is_recycle_bin': 'is_recycle_bin' + } + + def __init__(self, tenant_id=None, project_id=None, repo_name=None, path=None, instance_id=None, is_recycle_bin=None): + """ShowFileTreeRequest + + The model defined in huaweicloud sdk + + :param tenant_id: 租户id + :type tenant_id: str + :param project_id: 项目id + :type project_id: str + :param repo_name: 仓库名称 + :type repo_name: str + :param path: 仓库中路径 + :type path: str + :param instance_id: 实例id + :type instance_id: str + :param is_recycle_bin: 是否是回收站文件 + :type is_recycle_bin: bool + """ + + + + self._tenant_id = None + self._project_id = None + self._repo_name = None + self._path = None + self._instance_id = None + self._is_recycle_bin = None + self.discriminator = None + + self.tenant_id = tenant_id + self.project_id = project_id + self.repo_name = repo_name + self.path = path + if instance_id is not None: + self.instance_id = instance_id + if is_recycle_bin is not None: + self.is_recycle_bin = is_recycle_bin + + @property + def tenant_id(self): + """Gets the tenant_id of this ShowFileTreeRequest. + + 租户id + + :return: The tenant_id of this ShowFileTreeRequest. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this ShowFileTreeRequest. + + 租户id + + :param tenant_id: The tenant_id of this ShowFileTreeRequest. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def project_id(self): + """Gets the project_id of this ShowFileTreeRequest. + + 项目id + + :return: The project_id of this ShowFileTreeRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowFileTreeRequest. + + 项目id + + :param project_id: The project_id of this ShowFileTreeRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def repo_name(self): + """Gets the repo_name of this ShowFileTreeRequest. + + 仓库名称 + + :return: The repo_name of this ShowFileTreeRequest. + :rtype: str + """ + return self._repo_name + + @repo_name.setter + def repo_name(self, repo_name): + """Sets the repo_name of this ShowFileTreeRequest. + + 仓库名称 + + :param repo_name: The repo_name of this ShowFileTreeRequest. + :type repo_name: str + """ + self._repo_name = repo_name + + @property + def path(self): + """Gets the path of this ShowFileTreeRequest. + + 仓库中路径 + + :return: The path of this ShowFileTreeRequest. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this ShowFileTreeRequest. + + 仓库中路径 + + :param path: The path of this ShowFileTreeRequest. + :type path: str + """ + self._path = path + + @property + def instance_id(self): + """Gets the instance_id of this ShowFileTreeRequest. + + 实例id + + :return: The instance_id of this ShowFileTreeRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowFileTreeRequest. + + 实例id + + :param instance_id: The instance_id of this ShowFileTreeRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def is_recycle_bin(self): + """Gets the is_recycle_bin of this ShowFileTreeRequest. + + 是否是回收站文件 + + :return: The is_recycle_bin of this ShowFileTreeRequest. + :rtype: bool + """ + return self._is_recycle_bin + + @is_recycle_bin.setter + def is_recycle_bin(self, is_recycle_bin): + """Sets the is_recycle_bin of this ShowFileTreeRequest. + + 是否是回收站文件 + + :param is_recycle_bin: The is_recycle_bin of this ShowFileTreeRequest. + :type is_recycle_bin: bool + """ + self._is_recycle_bin = is_recycle_bin + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowFileTreeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_file_tree_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_file_tree_response.py new file mode 100644 index 000000000..2eec72fc1 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_file_tree_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 ShowFileTreeResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ShowFileTreeResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ShowFileTreeResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ShowFileTreeResponse. + + 结果状态 + + :return: The status of this ShowFileTreeResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowFileTreeResponse. + + 结果状态 + + :param status: The status of this ShowFileTreeResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ShowFileTreeResponse. + + 请求id + + :return: The trace_id of this ShowFileTreeResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ShowFileTreeResponse. + + 请求id + + :param trace_id: The trace_id of this ShowFileTreeResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ShowFileTreeResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ShowFileTreeResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ShowFileTreeResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ShowFileTreeResponse. + :type result: object + """ + 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, ShowFileTreeResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_maven_info_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_maven_info_request.py new file mode 100644 index 000000000..860e6d63a --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_maven_info_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowMavenInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str', + 'policy': 'str', + 'access': 'str', + 'default': 'str', + 'ids': 'str' + } + + attribute_map = { + 'project_id': 'project_id', + 'policy': 'policy', + 'access': 'access', + 'default': 'default', + 'ids': 'ids' + } + + def __init__(self, project_id=None, policy=None, access=None, default=None, ids=None): + """ShowMavenInfoRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目id + :type project_id: str + :param policy: snapshot or releases + :type policy: str + :param access: r or rw + :type access: str + :param default: 是否返回默认仓库 true or false + :type default: str + :param ids: 仓库id 多个仓库id用英文逗号间隔 + :type ids: str + """ + + + + self._project_id = None + self._policy = None + self._access = None + self._default = None + self._ids = None + self.discriminator = None + + if project_id is not None: + self.project_id = project_id + if policy is not None: + self.policy = policy + if access is not None: + self.access = access + if default is not None: + self.default = default + if ids is not None: + self.ids = ids + + @property + def project_id(self): + """Gets the project_id of this ShowMavenInfoRequest. + + 项目id + + :return: The project_id of this ShowMavenInfoRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowMavenInfoRequest. + + 项目id + + :param project_id: The project_id of this ShowMavenInfoRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def policy(self): + """Gets the policy of this ShowMavenInfoRequest. + + snapshot or releases + + :return: The policy of this ShowMavenInfoRequest. + :rtype: str + """ + return self._policy + + @policy.setter + def policy(self, policy): + """Sets the policy of this ShowMavenInfoRequest. + + snapshot or releases + + :param policy: The policy of this ShowMavenInfoRequest. + :type policy: str + """ + self._policy = policy + + @property + def access(self): + """Gets the access of this ShowMavenInfoRequest. + + r or rw + + :return: The access of this ShowMavenInfoRequest. + :rtype: str + """ + return self._access + + @access.setter + def access(self, access): + """Sets the access of this ShowMavenInfoRequest. + + r or rw + + :param access: The access of this ShowMavenInfoRequest. + :type access: str + """ + self._access = access + + @property + def default(self): + """Gets the default of this ShowMavenInfoRequest. + + 是否返回默认仓库 true or false + + :return: The default of this ShowMavenInfoRequest. + :rtype: str + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this ShowMavenInfoRequest. + + 是否返回默认仓库 true or false + + :param default: The default of this ShowMavenInfoRequest. + :type default: str + """ + self._default = default + + @property + def ids(self): + """Gets the ids of this ShowMavenInfoRequest. + + 仓库id 多个仓库id用英文逗号间隔 + + :return: The ids of this ShowMavenInfoRequest. + :rtype: str + """ + return self._ids + + @ids.setter + def ids(self, ids): + """Sets the ids of this ShowMavenInfoRequest. + + 仓库id 多个仓库id用英文逗号间隔 + + :param ids: The ids of this ShowMavenInfoRequest. + :type ids: str + """ + self._ids = 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, ShowMavenInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_maven_info_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_maven_info_response.py new file mode 100644 index 000000000..06640d2be --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_maven_info_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 ShowMavenInfoResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ShowMavenInfoResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ShowMavenInfoResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ShowMavenInfoResponse. + + 结果状态 + + :return: The status of this ShowMavenInfoResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowMavenInfoResponse. + + 结果状态 + + :param status: The status of this ShowMavenInfoResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ShowMavenInfoResponse. + + 请求id + + :return: The trace_id of this ShowMavenInfoResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ShowMavenInfoResponse. + + 请求id + + :param trace_id: The trace_id of this ShowMavenInfoResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ShowMavenInfoResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ShowMavenInfoResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ShowMavenInfoResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ShowMavenInfoResponse. + :type result: object + """ + 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, ShowMavenInfoResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_project_list_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_project_list_request.py new file mode 100644 index 000000000..2e7706bae --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_project_list_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowProjectListRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'project_id': 'str' + } + + attribute_map = { + 'project_id': 'project_id' + } + + def __init__(self, project_id=None): + """ShowProjectListRequest + + The model defined in huaweicloud sdk + + :param project_id: 项目id + :type project_id: str + """ + + + + self._project_id = None + self.discriminator = None + + self.project_id = project_id + + @property + def project_id(self): + """Gets the project_id of this ShowProjectListRequest. + + 项目id + + :return: The project_id of this ShowProjectListRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowProjectListRequest. + + 项目id + + :param project_id: The project_id of this ShowProjectListRequest. + :type project_id: str + """ + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowProjectListRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_project_list_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_project_list_response.py new file mode 100644 index 000000000..397d923b6 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_project_list_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 ShowProjectListResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ShowProjectListResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ShowProjectListResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ShowProjectListResponse. + + 结果状态 + + :return: The status of this ShowProjectListResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowProjectListResponse. + + 结果状态 + + :param status: The status of this ShowProjectListResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ShowProjectListResponse. + + 请求id + + :return: The trace_id of this ShowProjectListResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ShowProjectListResponse. + + 请求id + + :param trace_id: The trace_id of this ShowProjectListResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ShowProjectListResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ShowProjectListResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ShowProjectListResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ShowProjectListResponse. + :type result: object + """ + 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, ShowProjectListResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_info_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_info_request.py new file mode 100644 index 000000000..8edb8d7f5 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_info_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRepositoryInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'repo_id': 'str' + } + + attribute_map = { + 'repo_id': 'repo_id' + } + + def __init__(self, repo_id=None): + """ShowRepositoryInfoRequest + + The model defined in huaweicloud sdk + + :param repo_id: 仓库id + :type repo_id: str + """ + + + + self._repo_id = None + self.discriminator = None + + self.repo_id = repo_id + + @property + def repo_id(self): + """Gets the repo_id of this ShowRepositoryInfoRequest. + + 仓库id + + :return: The repo_id of this ShowRepositoryInfoRequest. + :rtype: str + """ + return self._repo_id + + @repo_id.setter + def repo_id(self, repo_id): + """Sets the repo_id of this ShowRepositoryInfoRequest. + + 仓库id + + :param repo_id: The repo_id of this ShowRepositoryInfoRequest. + :type repo_id: str + """ + self._repo_id = repo_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, ShowRepositoryInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_info_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_info_response.py new file mode 100644 index 000000000..16b337908 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_info_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 ShowRepositoryInfoResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ShowRepositoryInfoResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ShowRepositoryInfoResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ShowRepositoryInfoResponse. + + 结果状态 + + :return: The status of this ShowRepositoryInfoResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowRepositoryInfoResponse. + + 结果状态 + + :param status: The status of this ShowRepositoryInfoResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ShowRepositoryInfoResponse. + + 请求id + + :return: The trace_id of this ShowRepositoryInfoResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ShowRepositoryInfoResponse. + + 请求id + + :param trace_id: The trace_id of this ShowRepositoryInfoResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ShowRepositoryInfoResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ShowRepositoryInfoResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ShowRepositoryInfoResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ShowRepositoryInfoResponse. + :type result: object + """ + 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, ShowRepositoryInfoResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_request.py new file mode 100644 index 000000000..72ec52a06 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_request.py @@ -0,0 +1,199 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowRepositoryRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'tenant_id': 'str', + 'project_id': 'str', + 'repo_id': 'str', + 'region': 'str' + } + + attribute_map = { + 'tenant_id': 'tenant_id', + 'project_id': 'project_id', + 'repo_id': 'repo_id', + 'region': 'region' + } + + def __init__(self, tenant_id=None, project_id=None, repo_id=None, region=None): + """ShowRepositoryRequest + + The model defined in huaweicloud sdk + + :param tenant_id: 租户id + :type tenant_id: str + :param project_id: 项目id + :type project_id: str + :param repo_id: 仓库id + :type repo_id: str + :param region: 服务区 + :type region: str + """ + + + + self._tenant_id = None + self._project_id = None + self._repo_id = None + self._region = None + self.discriminator = None + + self.tenant_id = tenant_id + self.project_id = project_id + self.repo_id = repo_id + if region is not None: + self.region = region + + @property + def tenant_id(self): + """Gets the tenant_id of this ShowRepositoryRequest. + + 租户id + + :return: The tenant_id of this ShowRepositoryRequest. + :rtype: str + """ + return self._tenant_id + + @tenant_id.setter + def tenant_id(self, tenant_id): + """Sets the tenant_id of this ShowRepositoryRequest. + + 租户id + + :param tenant_id: The tenant_id of this ShowRepositoryRequest. + :type tenant_id: str + """ + self._tenant_id = tenant_id + + @property + def project_id(self): + """Gets the project_id of this ShowRepositoryRequest. + + 项目id + + :return: The project_id of this ShowRepositoryRequest. + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this ShowRepositoryRequest. + + 项目id + + :param project_id: The project_id of this ShowRepositoryRequest. + :type project_id: str + """ + self._project_id = project_id + + @property + def repo_id(self): + """Gets the repo_id of this ShowRepositoryRequest. + + 仓库id + + :return: The repo_id of this ShowRepositoryRequest. + :rtype: str + """ + return self._repo_id + + @repo_id.setter + def repo_id(self, repo_id): + """Sets the repo_id of this ShowRepositoryRequest. + + 仓库id + + :param repo_id: The repo_id of this ShowRepositoryRequest. + :type repo_id: str + """ + self._repo_id = repo_id + + @property + def region(self): + """Gets the region of this ShowRepositoryRequest. + + 服务区 + + :return: The region of this ShowRepositoryRequest. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this ShowRepositoryRequest. + + 服务区 + + :param region: The region of this ShowRepositoryRequest. + :type region: str + """ + self._region = region + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowRepositoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_response.py new file mode 100644 index 000000000..c085d779c --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_repository_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 ShowRepositoryResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ShowRepositoryResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ShowRepositoryResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ShowRepositoryResponse. + + 结果状态 + + :return: The status of this ShowRepositoryResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowRepositoryResponse. + + 结果状态 + + :param status: The status of this ShowRepositoryResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ShowRepositoryResponse. + + 请求id + + :return: The trace_id of this ShowRepositoryResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ShowRepositoryResponse. + + 请求id + + :param trace_id: The trace_id of this ShowRepositoryResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ShowRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ShowRepositoryResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ShowRepositoryResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ShowRepositoryResponse. + :type result: object + """ + 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, ShowRepositoryResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_storage_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_storage_request.py new file mode 100644 index 000000000..b98c64e2f --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_storage_request.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowStorageRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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_list': 'str', + 'in_project': 'str' + } + + attribute_map = { + 'format_list': 'format_list', + 'in_project': 'in_project' + } + + def __init__(self, format_list=None, in_project=None): + """ShowStorageRequest + + The model defined in huaweicloud sdk + + :param format_list: 类型列表 + :type format_list: str + :param in_project: 是否在项目中 + :type in_project: str + """ + + + + self._format_list = None + self._in_project = None + self.discriminator = None + + if format_list is not None: + self.format_list = format_list + if in_project is not None: + self.in_project = in_project + + @property + def format_list(self): + """Gets the format_list of this ShowStorageRequest. + + 类型列表 + + :return: The format_list of this ShowStorageRequest. + :rtype: str + """ + return self._format_list + + @format_list.setter + def format_list(self, format_list): + """Sets the format_list of this ShowStorageRequest. + + 类型列表 + + :param format_list: The format_list of this ShowStorageRequest. + :type format_list: str + """ + self._format_list = format_list + + @property + def in_project(self): + """Gets the in_project of this ShowStorageRequest. + + 是否在项目中 + + :return: The in_project of this ShowStorageRequest. + :rtype: str + """ + return self._in_project + + @in_project.setter + def in_project(self, in_project): + """Sets the in_project of this ShowStorageRequest. + + 是否在项目中 + + :param in_project: The in_project of this ShowStorageRequest. + :type in_project: str + """ + self._in_project = in_project + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowStorageRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_storage_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_storage_response.py new file mode 100644 index 000000000..38fdf6cee --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/show_storage_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 ShowStorageResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """ShowStorageResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(ShowStorageResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this ShowStorageResponse. + + 结果状态 + + :return: The status of this ShowStorageResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ShowStorageResponse. + + 结果状态 + + :param status: The status of this ShowStorageResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this ShowStorageResponse. + + 请求id + + :return: The trace_id of this ShowStorageResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this ShowStorageResponse. + + 请求id + + :param trace_id: The trace_id of this ShowStorageResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this ShowStorageResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this ShowStorageResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ShowStorageResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this ShowStorageResponse. + :type result: object + """ + 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, ShowStorageResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/trash_artifact_model_for_delete.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/trash_artifact_model_for_delete.py new file mode 100644 index 000000000..80bae71d3 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/trash_artifact_model_for_delete.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TrashArtifactModelForDelete: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'fomat': 'str', + 'uri': 'str', + 'status': 'str', + 'include_pattern': 'str' + } + + attribute_map = { + 'id': 'id', + 'fomat': 'fomat', + 'uri': 'uri', + 'status': 'status', + 'include_pattern': 'include_pattern' + } + + def __init__(self, id=None, fomat=None, uri=None, status=None, include_pattern=None): + """TrashArtifactModelForDelete + + The model defined in huaweicloud sdk + + :param id: 仓库id + :type id: str + :param fomat: 仓库类型 + :type fomat: str + :param uri: URI + :type uri: str + :param status: 状态 + :type status: str + :param include_pattern: 路径白名单 + :type include_pattern: str + """ + + + + self._id = None + self._fomat = None + self._uri = None + self._status = None + self._include_pattern = None + self.discriminator = None + + self.id = id + self.fomat = fomat + self.uri = uri + self.status = status + if include_pattern is not None: + self.include_pattern = include_pattern + + @property + def id(self): + """Gets the id of this TrashArtifactModelForDelete. + + 仓库id + + :return: The id of this TrashArtifactModelForDelete. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TrashArtifactModelForDelete. + + 仓库id + + :param id: The id of this TrashArtifactModelForDelete. + :type id: str + """ + self._id = id + + @property + def fomat(self): + """Gets the fomat of this TrashArtifactModelForDelete. + + 仓库类型 + + :return: The fomat of this TrashArtifactModelForDelete. + :rtype: str + """ + return self._fomat + + @fomat.setter + def fomat(self, fomat): + """Sets the fomat of this TrashArtifactModelForDelete. + + 仓库类型 + + :param fomat: The fomat of this TrashArtifactModelForDelete. + :type fomat: str + """ + self._fomat = fomat + + @property + def uri(self): + """Gets the uri of this TrashArtifactModelForDelete. + + URI + + :return: The uri of this TrashArtifactModelForDelete. + :rtype: str + """ + return self._uri + + @uri.setter + def uri(self, uri): + """Sets the uri of this TrashArtifactModelForDelete. + + URI + + :param uri: The uri of this TrashArtifactModelForDelete. + :type uri: str + """ + self._uri = uri + + @property + def status(self): + """Gets the status of this TrashArtifactModelForDelete. + + 状态 + + :return: The status of this TrashArtifactModelForDelete. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TrashArtifactModelForDelete. + + 状态 + + :param status: The status of this TrashArtifactModelForDelete. + :type status: str + """ + self._status = status + + @property + def include_pattern(self): + """Gets the include_pattern of this TrashArtifactModelForDelete. + + 路径白名单 + + :return: The include_pattern of this TrashArtifactModelForDelete. + :rtype: str + """ + return self._include_pattern + + @include_pattern.setter + def include_pattern(self, include_pattern): + """Sets the include_pattern of this TrashArtifactModelForDelete. + + 路径白名单 + + :param include_pattern: The include_pattern of this TrashArtifactModelForDelete. + :type include_pattern: str + """ + self._include_pattern = include_pattern + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TrashArtifactModelForDelete): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_artifactory_request.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_artifactory_request.py new file mode 100644 index 000000000..a7d778300 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_artifactory_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateArtifactoryRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'UpdateNotMavenRepoDO' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """UpdateArtifactoryRequest + + The model defined in huaweicloud sdk + + :param body: Body of the UpdateArtifactoryRequest + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.UpdateNotMavenRepoDO` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this UpdateArtifactoryRequest. + + :return: The body of this UpdateArtifactoryRequest. + :rtype: :class:`huaweicloudsdkcodeartsartifact.v2.UpdateNotMavenRepoDO` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateArtifactoryRequest. + + :param body: The body of this UpdateArtifactoryRequest. + :type body: :class:`huaweicloudsdkcodeartsartifact.v2.UpdateNotMavenRepoDO` + """ + 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, UpdateArtifactoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_artifactory_response.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_artifactory_response.py new file mode 100644 index 000000000..8135bee34 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_artifactory_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 UpdateArtifactoryResponse(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 = { + 'status': 'str', + 'trace_id': 'str', + 'result': 'object' + } + + attribute_map = { + 'status': 'status', + 'trace_id': 'trace_id', + 'result': 'result' + } + + def __init__(self, status=None, trace_id=None, result=None): + """UpdateArtifactoryResponse + + The model defined in huaweicloud sdk + + :param status: 结果状态 + :type status: str + :param trace_id: 请求id + :type trace_id: str + :param result: 请求返回结果,接口不同,返回不同 + :type result: object + """ + + super(UpdateArtifactoryResponse, self).__init__() + + self._status = None + self._trace_id = None + self._result = None + self.discriminator = None + + if status is not None: + self.status = status + if trace_id is not None: + self.trace_id = trace_id + if result is not None: + self.result = result + + @property + def status(self): + """Gets the status of this UpdateArtifactoryResponse. + + 结果状态 + + :return: The status of this UpdateArtifactoryResponse. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this UpdateArtifactoryResponse. + + 结果状态 + + :param status: The status of this UpdateArtifactoryResponse. + :type status: str + """ + self._status = status + + @property + def trace_id(self): + """Gets the trace_id of this UpdateArtifactoryResponse. + + 请求id + + :return: The trace_id of this UpdateArtifactoryResponse. + :rtype: str + """ + return self._trace_id + + @trace_id.setter + def trace_id(self, trace_id): + """Sets the trace_id of this UpdateArtifactoryResponse. + + 请求id + + :param trace_id: The trace_id of this UpdateArtifactoryResponse. + :type trace_id: str + """ + self._trace_id = trace_id + + @property + def result(self): + """Gets the result of this UpdateArtifactoryResponse. + + 请求返回结果,接口不同,返回不同 + + :return: The result of this UpdateArtifactoryResponse. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this UpdateArtifactoryResponse. + + 请求返回结果,接口不同,返回不同 + + :param result: The result of this UpdateArtifactoryResponse. + :type result: object + """ + 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, UpdateArtifactoryResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_not_maven_repo_do.py b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_not_maven_repo_do.py new file mode 100644 index 000000000..d716f8770 --- /dev/null +++ b/huaweicloud-sdk-codeartsartifact/huaweicloudsdkcodeartsartifact/v2/model/update_not_maven_repo_do.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateNotMavenRepoDO: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'repo_name': 'str', + 'format': 'str', + 'description': 'str', + 'repository_ids': 'list[str]', + 'includes_pattern': 'str', + 'deployment_policy': 'str', + 'auto_clean_snapshot': 'bool', + 'snapshot_alive_days': 'str', + 'max_unique_snapshots': 'str', + 'allow_anonymous': 'bool' + } + + attribute_map = { + 'repo_name': 'repo_name', + 'format': 'format', + 'description': 'description', + 'repository_ids': 'repository_ids', + 'includes_pattern': 'includes_pattern', + 'deployment_policy': 'deployment_policy', + 'auto_clean_snapshot': 'auto_clean_snapshot', + 'snapshot_alive_days': 'snapshot_alive_days', + 'max_unique_snapshots': 'max_unique_snapshots', + 'allow_anonymous': 'allow_anonymous' + } + + def __init__(self, repo_name=None, format=None, description=None, repository_ids=None, includes_pattern=None, deployment_policy=None, auto_clean_snapshot=None, snapshot_alive_days=None, max_unique_snapshots=None, allow_anonymous=None): + """UpdateNotMavenRepoDO + + The model defined in huaweicloud sdk + + :param repo_name: 仓库名称 + :type repo_name: str + :param format: 仓库格式 + :type format: str + :param description: 仓库描述 + :type description: str + :param repository_ids: 仓库id列表 + :type repository_ids: list[str] + :param includes_pattern: 路径白名单 + :type includes_pattern: str + :param deployment_policy: 仓库属性-覆盖策略 + :type deployment_policy: str + :param auto_clean_snapshot: 自动清理快照 + :type auto_clean_snapshot: bool + :param snapshot_alive_days: 快照保存时间长度 + :type snapshot_alive_days: str + :param max_unique_snapshots: 最大不同快照个数 + :type max_unique_snapshots: str + :param allow_anonymous: 是否允许匿名 + :type allow_anonymous: bool + """ + + + + self._repo_name = None + self._format = None + self._description = None + self._repository_ids = None + self._includes_pattern = None + self._deployment_policy = None + self._auto_clean_snapshot = None + self._snapshot_alive_days = None + self._max_unique_snapshots = None + self._allow_anonymous = None + self.discriminator = None + + self.repo_name = repo_name + self.format = format + if description is not None: + self.description = description + self.repository_ids = repository_ids + if includes_pattern is not None: + self.includes_pattern = includes_pattern + if deployment_policy is not None: + self.deployment_policy = deployment_policy + if auto_clean_snapshot is not None: + self.auto_clean_snapshot = auto_clean_snapshot + if snapshot_alive_days is not None: + self.snapshot_alive_days = snapshot_alive_days + if max_unique_snapshots is not None: + self.max_unique_snapshots = max_unique_snapshots + if allow_anonymous is not None: + self.allow_anonymous = allow_anonymous + + @property + def repo_name(self): + """Gets the repo_name of this UpdateNotMavenRepoDO. + + 仓库名称 + + :return: The repo_name of this UpdateNotMavenRepoDO. + :rtype: str + """ + return self._repo_name + + @repo_name.setter + def repo_name(self, repo_name): + """Sets the repo_name of this UpdateNotMavenRepoDO. + + 仓库名称 + + :param repo_name: The repo_name of this UpdateNotMavenRepoDO. + :type repo_name: str + """ + self._repo_name = repo_name + + @property + def format(self): + """Gets the format of this UpdateNotMavenRepoDO. + + 仓库格式 + + :return: The format of this UpdateNotMavenRepoDO. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """Sets the format of this UpdateNotMavenRepoDO. + + 仓库格式 + + :param format: The format of this UpdateNotMavenRepoDO. + :type format: str + """ + self._format = format + + @property + def description(self): + """Gets the description of this UpdateNotMavenRepoDO. + + 仓库描述 + + :return: The description of this UpdateNotMavenRepoDO. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this UpdateNotMavenRepoDO. + + 仓库描述 + + :param description: The description of this UpdateNotMavenRepoDO. + :type description: str + """ + self._description = description + + @property + def repository_ids(self): + """Gets the repository_ids of this UpdateNotMavenRepoDO. + + 仓库id列表 + + :return: The repository_ids of this UpdateNotMavenRepoDO. + :rtype: list[str] + """ + return self._repository_ids + + @repository_ids.setter + def repository_ids(self, repository_ids): + """Sets the repository_ids of this UpdateNotMavenRepoDO. + + 仓库id列表 + + :param repository_ids: The repository_ids of this UpdateNotMavenRepoDO. + :type repository_ids: list[str] + """ + self._repository_ids = repository_ids + + @property + def includes_pattern(self): + """Gets the includes_pattern of this UpdateNotMavenRepoDO. + + 路径白名单 + + :return: The includes_pattern of this UpdateNotMavenRepoDO. + :rtype: str + """ + return self._includes_pattern + + @includes_pattern.setter + def includes_pattern(self, includes_pattern): + """Sets the includes_pattern of this UpdateNotMavenRepoDO. + + 路径白名单 + + :param includes_pattern: The includes_pattern of this UpdateNotMavenRepoDO. + :type includes_pattern: str + """ + self._includes_pattern = includes_pattern + + @property + def deployment_policy(self): + """Gets the deployment_policy of this UpdateNotMavenRepoDO. + + 仓库属性-覆盖策略 + + :return: The deployment_policy of this UpdateNotMavenRepoDO. + :rtype: str + """ + return self._deployment_policy + + @deployment_policy.setter + def deployment_policy(self, deployment_policy): + """Sets the deployment_policy of this UpdateNotMavenRepoDO. + + 仓库属性-覆盖策略 + + :param deployment_policy: The deployment_policy of this UpdateNotMavenRepoDO. + :type deployment_policy: str + """ + self._deployment_policy = deployment_policy + + @property + def auto_clean_snapshot(self): + """Gets the auto_clean_snapshot of this UpdateNotMavenRepoDO. + + 自动清理快照 + + :return: The auto_clean_snapshot of this UpdateNotMavenRepoDO. + :rtype: bool + """ + return self._auto_clean_snapshot + + @auto_clean_snapshot.setter + def auto_clean_snapshot(self, auto_clean_snapshot): + """Sets the auto_clean_snapshot of this UpdateNotMavenRepoDO. + + 自动清理快照 + + :param auto_clean_snapshot: The auto_clean_snapshot of this UpdateNotMavenRepoDO. + :type auto_clean_snapshot: bool + """ + self._auto_clean_snapshot = auto_clean_snapshot + + @property + def snapshot_alive_days(self): + """Gets the snapshot_alive_days of this UpdateNotMavenRepoDO. + + 快照保存时间长度 + + :return: The snapshot_alive_days of this UpdateNotMavenRepoDO. + :rtype: str + """ + return self._snapshot_alive_days + + @snapshot_alive_days.setter + def snapshot_alive_days(self, snapshot_alive_days): + """Sets the snapshot_alive_days of this UpdateNotMavenRepoDO. + + 快照保存时间长度 + + :param snapshot_alive_days: The snapshot_alive_days of this UpdateNotMavenRepoDO. + :type snapshot_alive_days: str + """ + self._snapshot_alive_days = snapshot_alive_days + + @property + def max_unique_snapshots(self): + """Gets the max_unique_snapshots of this UpdateNotMavenRepoDO. + + 最大不同快照个数 + + :return: The max_unique_snapshots of this UpdateNotMavenRepoDO. + :rtype: str + """ + return self._max_unique_snapshots + + @max_unique_snapshots.setter + def max_unique_snapshots(self, max_unique_snapshots): + """Sets the max_unique_snapshots of this UpdateNotMavenRepoDO. + + 最大不同快照个数 + + :param max_unique_snapshots: The max_unique_snapshots of this UpdateNotMavenRepoDO. + :type max_unique_snapshots: str + """ + self._max_unique_snapshots = max_unique_snapshots + + @property + def allow_anonymous(self): + """Gets the allow_anonymous of this UpdateNotMavenRepoDO. + + 是否允许匿名 + + :return: The allow_anonymous of this UpdateNotMavenRepoDO. + :rtype: bool + """ + return self._allow_anonymous + + @allow_anonymous.setter + def allow_anonymous(self, allow_anonymous): + """Sets the allow_anonymous of this UpdateNotMavenRepoDO. + + 是否允许匿名 + + :param allow_anonymous: The allow_anonymous of this UpdateNotMavenRepoDO. + :type allow_anonymous: bool + """ + self._allow_anonymous = allow_anonymous + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateNotMavenRepoDO): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-codeartsartifact/requirements.txt b/huaweicloud-sdk-codeartsartifact/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codeartsartifact/requirements.txt +++ b/huaweicloud-sdk-codeartsartifact/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsartifact/setup.py b/huaweicloud-sdk-codeartsartifact/setup.py index 9d4b66900..0d90c85be 100644 --- a/huaweicloud-sdk-codeartsartifact/setup.py +++ b/huaweicloud-sdk-codeartsartifact/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsartifact" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py index 86bf64f7e..77f216bdf 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py @@ -559,9 +559,9 @@ class CodeArtsBuildAsyncClient(Client): return http_info def download_task_log_async(self, request): - """下载全量构建步骤日志 + """下载构建步骤日志 - 下载全量构建步骤日志 + 下载构建步骤日志 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py index 35ef7e9d6..3044af8fe 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py @@ -559,9 +559,9 @@ class CodeArtsBuildClient(Client): return http_info def download_task_log(self, request): - """下载全量构建步骤日志 + """下载构建步骤日志 - 下载全量构建步骤日志 + 下载构建步骤日志 Please refer to HUAWEI cloud API Explorer for details. diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py index 354c71e45..5a76e349d 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py @@ -55,7 +55,7 @@ class CreateBuildJobScm: :type repo_id: str :param web_url: 代码仓http地址 :type web_url: str - :param scm_type: 仓库类别,codehub还是github等等 + :param scm_type: 仓库类别,Repo、Github等 :type scm_type: str :param is_auto_build: 是否自动构建 :type is_auto_build: bool @@ -194,7 +194,7 @@ class CreateBuildJobScm: def scm_type(self): """Gets the scm_type of this CreateBuildJobScm. - 仓库类别,codehub还是github等等 + 仓库类别,Repo、Github等 :return: The scm_type of this CreateBuildJobScm. :rtype: str @@ -205,7 +205,7 @@ class CreateBuildJobScm: def scm_type(self, scm_type): """Sets the scm_type of this CreateBuildJobScm. - 仓库类别,codehub还是github等等 + 仓库类别,Repo、Github等 :param scm_type: The scm_type of this CreateBuildJobScm. :type scm_type: str diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_templates_response.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_templates_response.py index 542c26bb1..714e04c20 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_templates_response.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/create_templates_response.py @@ -18,7 +18,7 @@ class CreateTemplatesResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'list[CreateTemplatesItems]', + 'result': 'CreateTemplatesItems', 'error': 'str', 'status': 'str' } @@ -34,8 +34,8 @@ class CreateTemplatesResponse(SdkResponse): The model defined in huaweicloud sdk - :param result: 查询模板结果 - :type result: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplatesItems`] + :param result: + :type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplatesItems` :param error: 返回错误信息 :type error: str :param status: 返回状态信息 @@ -60,10 +60,8 @@ class CreateTemplatesResponse(SdkResponse): def result(self): """Gets the result of this CreateTemplatesResponse. - 查询模板结果 - :return: The result of this CreateTemplatesResponse. - :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplatesItems`] + :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplatesItems` """ return self._result @@ -71,10 +69,8 @@ class CreateTemplatesResponse(SdkResponse): def result(self, result): """Sets the result of this CreateTemplatesResponse. - 查询模板结果 - :param result: The result of this CreateTemplatesResponse. - :type result: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplatesItems`] + :type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateTemplatesItems` """ self._result = result diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/download_task_log_request.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/download_task_log_request.py index 4d776efe6..8073a8d6e 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/download_task_log_request.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/download_task_log_request.py @@ -35,7 +35,7 @@ class DownloadTaskLogRequest: :param record_id: 记录ID,36位数字、小写字母、'-'组组合。 :type record_id: str - :param task_name: 记录ID,36位数字、小写字母、'-'组组合。 + :param task_name: 步骤名称 :type task_name: str :param log_level: 日志等级 值为INFO | DEBUG。 :type log_level: str @@ -79,7 +79,7 @@ class DownloadTaskLogRequest: def task_name(self): """Gets the task_name of this DownloadTaskLogRequest. - 记录ID,36位数字、小写字母、'-'组组合。 + 步骤名称 :return: The task_name of this DownloadTaskLogRequest. :rtype: str @@ -90,7 +90,7 @@ class DownloadTaskLogRequest: def task_name(self, task_name): """Sets the task_name of this DownloadTaskLogRequest. - 记录ID,36位数字、小写字母、'-'组组合。 + 步骤名称 :param task_name: The task_name of this DownloadTaskLogRequest. :type task_name: str diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_job_config_response.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_job_config_response.py index 6740810db..da7881141 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_job_config_response.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_job_config_response.py @@ -18,7 +18,7 @@ class ListJobConfigResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'list[CreateBuildJobRequestBody]', + 'result': 'CreateBuildJobRequestBody', 'error': 'str', 'status': 'str' } @@ -34,8 +34,8 @@ class ListJobConfigResponse(SdkResponse): The model defined in huaweicloud sdk - :param result: 查询模板结果 - :type result: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody`] + :param result: + :type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody` :param error: 返回错误信息 :type error: str :param status: 返回状态信息 @@ -60,10 +60,8 @@ class ListJobConfigResponse(SdkResponse): def result(self): """Gets the result of this ListJobConfigResponse. - 查询模板结果 - :return: The result of this ListJobConfigResponse. - :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody`] + :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody` """ return self._result @@ -71,10 +69,8 @@ class ListJobConfigResponse(SdkResponse): def result(self, result): """Sets the result of this ListJobConfigResponse. - 查询模板结果 - :param result: The result of this ListJobConfigResponse. - :type result: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody`] + :type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody` """ self._result = result diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_templates_response.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_templates_response.py index eed4825a7..bd638d96a 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_templates_response.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/list_templates_response.py @@ -18,7 +18,7 @@ class ListTemplatesResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'list[QueryTemplatesResult]', + 'result': 'QueryTemplatesResult', 'error': 'str', 'status': 'str' } @@ -34,8 +34,8 @@ class ListTemplatesResponse(SdkResponse): The model defined in huaweicloud sdk - :param result: 查询模板结果 - :type result: list[:class:`huaweicloudsdkcodeartsbuild.v3.QueryTemplatesResult`] + :param result: + :type result: :class:`huaweicloudsdkcodeartsbuild.v3.QueryTemplatesResult` :param error: 返回错误信息 :type error: str :param status: 返回状态信息 @@ -60,10 +60,8 @@ class ListTemplatesResponse(SdkResponse): def result(self): """Gets the result of this ListTemplatesResponse. - 查询模板结果 - :return: The result of this ListTemplatesResponse. - :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.QueryTemplatesResult`] + :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.QueryTemplatesResult` """ return self._result @@ -71,10 +69,8 @@ class ListTemplatesResponse(SdkResponse): def result(self, result): """Sets the result of this ListTemplatesResponse. - 查询模板结果 - :param result: The result of this ListTemplatesResponse. - :type result: list[:class:`huaweicloudsdkcodeartsbuild.v3.QueryTemplatesResult`] + :type result: :class:`huaweicloudsdkcodeartsbuild.v3.QueryTemplatesResult` """ self._result = result diff --git a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/update_build_job_scm.py b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/update_build_job_scm.py index c7035d825..87a4aee19 100644 --- a/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/update_build_job_scm.py +++ b/huaweicloud-sdk-codeartsbuild/huaweicloudsdkcodeartsbuild/v3/model/update_build_job_scm.py @@ -55,7 +55,7 @@ class UpdateBuildJobScm: :type repo_id: str :param web_url: 代码仓http地址 :type web_url: str - :param scm_type: 仓库类别,codehub还是github等等 + :param scm_type: 仓库类别,Repo、Github等 :type scm_type: str :param is_auto_build: 是否自动构建 :type is_auto_build: bool @@ -194,7 +194,7 @@ class UpdateBuildJobScm: def scm_type(self): """Gets the scm_type of this UpdateBuildJobScm. - 仓库类别,codehub还是github等等 + 仓库类别,Repo、Github等 :return: The scm_type of this UpdateBuildJobScm. :rtype: str @@ -205,7 +205,7 @@ class UpdateBuildJobScm: def scm_type(self, scm_type): """Sets the scm_type of this UpdateBuildJobScm. - 仓库类别,codehub还是github等等 + 仓库类别,Repo、Github等 :param scm_type: The scm_type of this UpdateBuildJobScm. :type scm_type: str diff --git a/huaweicloud-sdk-codeartsbuild/requirements.txt b/huaweicloud-sdk-codeartsbuild/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codeartsbuild/requirements.txt +++ b/huaweicloud-sdk-codeartsbuild/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsbuild/setup.py b/huaweicloud-sdk-codeartsbuild/setup.py index d954abc61..2e9fb20ee 100644 --- a/huaweicloud-sdk-codeartsbuild/setup.py +++ b/huaweicloud-sdk-codeartsbuild/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsbuild" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartscheck/requirements.txt b/huaweicloud-sdk-codeartscheck/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codeartscheck/requirements.txt +++ b/huaweicloud-sdk-codeartscheck/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartscheck/setup.py b/huaweicloud-sdk-codeartscheck/setup.py index 623e370fb..621e09b6d 100644 --- a/huaweicloud-sdk-codeartscheck/setup.py +++ b/huaweicloud-sdk-codeartscheck/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartscheck" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsdeploy/requirements.txt b/huaweicloud-sdk-codeartsdeploy/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codeartsdeploy/requirements.txt +++ b/huaweicloud-sdk-codeartsdeploy/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsdeploy/setup.py b/huaweicloud-sdk-codeartsdeploy/setup.py index 5743db46c..035167ecd 100644 --- a/huaweicloud-sdk-codeartsdeploy/setup.py +++ b/huaweicloud-sdk-codeartsdeploy/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsdeploy" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartsinspector/requirements.txt b/huaweicloud-sdk-codeartsinspector/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codeartsinspector/requirements.txt +++ b/huaweicloud-sdk-codeartsinspector/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartsinspector/setup.py b/huaweicloud-sdk-codeartsinspector/setup.py index a1a122322..8afe20119 100644 --- a/huaweicloud-sdk-codeartsinspector/setup.py +++ b/huaweicloud-sdk-codeartsinspector/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartsinspector" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codeartspipeline/requirements.txt b/huaweicloud-sdk-codeartspipeline/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codeartspipeline/requirements.txt +++ b/huaweicloud-sdk-codeartspipeline/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codeartspipeline/setup.py b/huaweicloud-sdk-codeartspipeline/setup.py index aa5b25447..9a5adb358 100644 --- a/huaweicloud-sdk-codeartspipeline/setup.py +++ b/huaweicloud-sdk-codeartspipeline/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodeartspipeline" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codecraft/requirements.txt b/huaweicloud-sdk-codecraft/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codecraft/requirements.txt +++ b/huaweicloud-sdk-codecraft/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codecraft/setup.py b/huaweicloud-sdk-codecraft/setup.py index d33fdfed3..87d3402ee 100644 --- a/huaweicloud-sdk-codecraft/setup.py +++ b/huaweicloud-sdk-codecraft/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodecraft" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-codehub/requirements.txt b/huaweicloud-sdk-codehub/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-codehub/requirements.txt +++ b/huaweicloud-sdk-codehub/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-codehub/setup.py b/huaweicloud-sdk-codehub/setup.py index fd2e37040..57433377a 100644 --- a/huaweicloud-sdk-codehub/setup.py +++ b/huaweicloud-sdk-codehub/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcodehub" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-config/requirements.txt b/huaweicloud-sdk-config/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-config/requirements.txt +++ b/huaweicloud-sdk-config/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-config/setup.py b/huaweicloud-sdk-config/setup.py index 296b57a9c..177ed3a33 100644 --- a/huaweicloud-sdk-config/setup.py +++ b/huaweicloud-sdk-config/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkconfig" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-core/setup.py b/huaweicloud-sdk-core/setup.py index 71bf18a63..ad02d4478 100644 --- a/huaweicloud-sdk-core/setup.py +++ b/huaweicloud-sdk-core/setup.py @@ -22,7 +22,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcore" -VERSION = "3.1.74" +VERSION = "3.1.75" 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 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cph/requirements.txt +++ b/huaweicloud-sdk-cph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cph/setup.py b/huaweicloud-sdk-cph/setup.py index 1042559a2..fe23cd278 100644 --- a/huaweicloud-sdk-cph/setup.py +++ b/huaweicloud-sdk-cph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcph" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cpts/requirements.txt b/huaweicloud-sdk-cpts/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cpts/requirements.txt +++ b/huaweicloud-sdk-cpts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cpts/setup.py b/huaweicloud-sdk-cpts/setup.py index c1a06acc7..04226442a 100644 --- a/huaweicloud-sdk-cpts/setup.py +++ b/huaweicloud-sdk-cpts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcpts" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cse/requirements.txt b/huaweicloud-sdk-cse/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cse/requirements.txt +++ b/huaweicloud-sdk-cse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cse/setup.py b/huaweicloud-sdk-cse/setup.py index 9ffe52b36..41a3b8cfa 100644 --- a/huaweicloud-sdk-cse/setup.py +++ b/huaweicloud-sdk-cse/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcse" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/model/action_resources.py b/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/model/action_resources.py index 28cd33272..55fde38cf 100644 --- a/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/model/action_resources.py +++ b/huaweicloud-sdk-csms/huaweicloudsdkcsms/v1/model/action_resources.py @@ -20,17 +20,19 @@ class ActionResources: 'resource_id': 'str', 'resource_detail': 'Secret', 'resource_name': 'str', - 'tags': 'list[TagItem]' + 'tags': 'list[TagItem]', + 'sys_tags': 'list[SysTag]' } attribute_map = { 'resource_id': 'resource_id', 'resource_detail': 'resource_detail', 'resource_name': 'resource_name', - 'tags': 'tags' + 'tags': 'tags', + 'sys_tags': 'sys_tags' } - def __init__(self, resource_id=None, resource_detail=None, resource_name=None, tags=None): + def __init__(self, resource_id=None, resource_detail=None, resource_name=None, tags=None, sys_tags=None): """ActionResources The model defined in huaweicloud sdk @@ -43,6 +45,8 @@ class ActionResources: :type resource_name: str :param tags: 标签列表,没有标签,数组默认为空。 :type tags: list[:class:`huaweicloudsdkcsms.v1.TagItem`] + :param sys_tags: 系统标签列表,没有标签,数组默认为空 + :type sys_tags: list[:class:`huaweicloudsdkcsms.v1.SysTag`] """ @@ -51,6 +55,7 @@ class ActionResources: self._resource_detail = None self._resource_name = None self._tags = None + self._sys_tags = None self.discriminator = None if resource_id is not None: @@ -61,6 +66,8 @@ class ActionResources: self.resource_name = resource_name if tags is not None: self.tags = tags + if sys_tags is not None: + self.sys_tags = sys_tags @property def resource_id(self): @@ -146,6 +153,28 @@ class ActionResources: """ self._tags = tags + @property + def sys_tags(self): + """Gets the sys_tags of this ActionResources. + + 系统标签列表,没有标签,数组默认为空 + + :return: The sys_tags of this ActionResources. + :rtype: list[:class:`huaweicloudsdkcsms.v1.SysTag`] + """ + return self._sys_tags + + @sys_tags.setter + def sys_tags(self, sys_tags): + """Sets the sys_tags of this ActionResources. + + 系统标签列表,没有标签,数组默认为空 + + :param sys_tags: The sys_tags of this ActionResources. + :type sys_tags: list[:class:`huaweicloudsdkcsms.v1.SysTag`] + """ + self._sys_tags = sys_tags + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-csms/requirements.txt b/huaweicloud-sdk-csms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-csms/requirements.txt +++ b/huaweicloud-sdk-csms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-csms/setup.py b/huaweicloud-sdk-csms/setup.py index c905a33aa..1958d6962 100644 --- a/huaweicloud-sdk-csms/setup.py +++ b/huaweicloud-sdk-csms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcsms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-css/requirements.txt b/huaweicloud-sdk-css/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-css/requirements.txt +++ b/huaweicloud-sdk-css/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-css/setup.py b/huaweicloud-sdk-css/setup.py index 8def020c1..495b7daa1 100644 --- a/huaweicloud-sdk-css/setup.py +++ b/huaweicloud-sdk-css/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcss" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-cts/requirements.txt b/huaweicloud-sdk-cts/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-cts/requirements.txt +++ b/huaweicloud-sdk-cts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-cts/setup.py b/huaweicloud-sdk-cts/setup.py index c0d3d7aa9..46dbcf066 100644 --- a/huaweicloud-sdk-cts/setup.py +++ b/huaweicloud-sdk-cts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkcts" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-das/requirements.txt b/huaweicloud-sdk-das/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-das/requirements.txt +++ b/huaweicloud-sdk-das/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-das/setup.py b/huaweicloud-sdk-das/setup.py index b1dab61be..caf586cad 100644 --- a/huaweicloud-sdk-das/setup.py +++ b/huaweicloud-sdk-das/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdas" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py index 01e735b18..def117e53 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/__init__.py @@ -9,6 +9,7 @@ from huaweicloudsdkdataartsstudio.v1.model.add_tag_to_asset_request import AddTa from huaweicloudsdkdataartsstudio.v1.model.add_tag_to_asset_response import AddTagToAssetResponse from huaweicloudsdkdataartsstudio.v1.model.add_work_space_users_request import AddWorkSpaceUsersRequest from huaweicloudsdkdataartsstudio.v1.model.add_work_space_users_response import AddWorkSpaceUsersResponse +from huaweicloudsdkdataartsstudio.v1.model.alarm_info_response_alarm_info import AlarmInfoResponseAlarmInfo from huaweicloudsdkdataartsstudio.v1.model.api import Api from huaweicloudsdkdataartsstudio.v1.model.api_action_dto import ApiActionDTO from huaweicloudsdkdataartsstudio.v1.model.api_catalog_create_para_dto import ApiCatalogCreateParaDTO @@ -47,6 +48,7 @@ from huaweicloudsdkdataartsstudio.v1.model.approval_info_param import ApprovalIn from huaweicloudsdkdataartsstudio.v1.model.approval_status_enum import ApprovalStatusEnum from huaweicloudsdkdataartsstudio.v1.model.approval_type_enum import ApprovalTypeEnum from huaweicloudsdkdataartsstudio.v1.model.approval_vo import ApprovalVO +from huaweicloudsdkdataartsstudio.v1.model.approver import Approver from huaweicloudsdkdataartsstudio.v1.model.approver_param import ApproverParam from huaweicloudsdkdataartsstudio.v1.model.architecture_statistic import ArchitectureStatistic from huaweicloudsdkdataartsstudio.v1.model.associate_classification_to_entity_request import AssociateClassificationToEntityRequest @@ -69,6 +71,7 @@ from huaweicloudsdkdataartsstudio.v1.model.authorize_api_to_instance_response im from huaweicloudsdkdataartsstudio.v1.model.backend_config import BackendConfig from huaweicloudsdkdataartsstudio.v1.model.backend_constant import BackendConstant from huaweicloudsdkdataartsstudio.v1.model.backend_request_para import BackendRequestPara +from huaweicloudsdkdataartsstudio.v1.model.basic_info import BasicInfo from huaweicloudsdkdataartsstudio.v1.model.batch_approve_apply_request import BatchApproveApplyRequest from huaweicloudsdkdataartsstudio.v1.model.batch_approve_apply_response import BatchApproveApplyResponse from huaweicloudsdkdataartsstudio.v1.model.batch_associate_classification_to_entities_request import BatchAssociateClassificationToEntitiesRequest @@ -132,6 +135,7 @@ from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo import CompoundMet from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo_detail_data import CompoundMetricVODetailData from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo_search_result_data import CompoundMetricVOSearchResultData from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo_search_result_data_value import CompoundMetricVOSearchResultDataValue +from huaweicloudsdkdataartsstudio.v1.model.condition import Condition from huaweicloudsdkdataartsstudio.v1.model.confirm_approvals_request import ConfirmApprovalsRequest from huaweicloudsdkdataartsstudio.v1.model.confirm_approvals_response import ConfirmApprovalsResponse from huaweicloudsdkdataartsstudio.v1.model.confirm_message_request import ConfirmMessageRequest @@ -164,6 +168,8 @@ from huaweicloudsdkdataartsstudio.v1.model.create_directory_request import Creat from huaweicloudsdkdataartsstudio.v1.model.create_directory_response import CreateDirectoryResponse from huaweicloudsdkdataartsstudio.v1.model.create_factory_env_request import CreateFactoryEnvRequest from huaweicloudsdkdataartsstudio.v1.model.create_factory_env_response import CreateFactoryEnvResponse +from huaweicloudsdkdataartsstudio.v1.model.create_factory_job_request import CreateFactoryJobRequest +from huaweicloudsdkdataartsstudio.v1.model.create_factory_job_response import CreateFactoryJobResponse from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request import CreateFactorySupplementDataInstanceRequest from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body import CreateFactorySupplementDataInstanceRequestBody from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body_depend_jobs import CreateFactorySupplementDataInstanceRequestBodyDependJobs @@ -201,6 +207,7 @@ from huaweicloudsdkdataartsstudio.v1.model.create_template_response import Creat from huaweicloudsdkdataartsstudio.v1.model.create_workspace_params import CreateWorkspaceParams from huaweicloudsdkdataartsstudio.v1.model.create_workspace_request import CreateWorkspaceRequest from huaweicloudsdkdataartsstudio.v1.model.create_workspace_response import CreateWorkspaceResponse +from huaweicloudsdkdataartsstudio.v1.model.cron import Cron from huaweicloudsdkdataartsstudio.v1.model.css_index import CssIndex from huaweicloudsdkdataartsstudio.v1.model.custom_metadata import CustomMetadata from huaweicloudsdkdataartsstudio.v1.model.customized_fields_vo import CustomizedFieldsVO @@ -265,6 +272,7 @@ from huaweicloudsdkdataartsstudio.v1.model.delete_workspaces_request import Dele from huaweicloudsdkdataartsstudio.v1.model.delete_workspaces_response import DeleteWorkspacesResponse from huaweicloudsdkdataartsstudio.v1.model.delete_workspaceusers_request import DeleteWorkspaceusersRequest from huaweicloudsdkdataartsstudio.v1.model.delete_workspaceusers_response import DeleteWorkspaceusersResponse +from huaweicloudsdkdataartsstudio.v1.model.depend_job import DependJob from huaweicloudsdkdataartsstudio.v1.model.derivative_index_dimension_vo import DerivativeIndexDimensionVO from huaweicloudsdkdataartsstudio.v1.model.derivative_index_vo import DerivativeIndexVO from huaweicloudsdkdataartsstudio.v1.model.derivative_index_vo_detail_data import DerivativeIndexVODetailData @@ -282,6 +290,7 @@ from huaweicloudsdkdataartsstudio.v1.model.entity_with_ext_info import EntityWit from huaweicloudsdkdataartsstudio.v1.model.env_request_body import EnvRequestBody from huaweicloudsdkdataartsstudio.v1.model.env_request_body_params import EnvRequestBodyParams from huaweicloudsdkdataartsstudio.v1.model.env_resp_params import EnvRespParams +from huaweicloudsdkdataartsstudio.v1.model.event import Event from huaweicloudsdkdataartsstudio.v1.model.event_param import EventParam from huaweicloudsdkdataartsstudio.v1.model.execute_api_to_instance_request import ExecuteApiToInstanceRequest from huaweicloudsdkdataartsstudio.v1.model.execute_api_to_instance_response import ExecuteApiToInstanceResponse @@ -300,7 +309,10 @@ from huaweicloudsdkdataartsstudio.v1.model.initialize_standard_template_response from huaweicloudsdkdataartsstudio.v1.model.instance_for_api_action_dto import InstanceForApiActionDTO from huaweicloudsdkdataartsstudio.v1.model.instance_host_dto import InstanceHostDTO from huaweicloudsdkdataartsstudio.v1.model.instance_overview_vo import InstanceOverviewVo +from huaweicloudsdkdataartsstudio.v1.model.job_info_request import JobInfoRequest from huaweicloudsdkdataartsstudio.v1.model.job_log_request import JobLogRequest +from huaweicloudsdkdataartsstudio.v1.model.job_param import JobParam +from huaweicloudsdkdataartsstudio.v1.model.job_resp import JobResp from huaweicloudsdkdataartsstudio.v1.model.l1 import L1 from huaweicloudsdkdataartsstudio.v1.model.l1_statistic import L1Statistic from huaweicloudsdkdataartsstudio.v1.model.l2 import L2 @@ -308,6 +320,7 @@ from huaweicloudsdkdataartsstudio.v1.model.l2_id import L2Id from huaweicloudsdkdataartsstudio.v1.model.l2_statistic import L2Statistic from huaweicloudsdkdataartsstudio.v1.model.l3 import L3 from huaweicloudsdkdataartsstudio.v1.model.layer_path import LayerPath +from huaweicloudsdkdataartsstudio.v1.model.lineage_relation import LineageRelation from huaweicloudsdkdataartsstudio.v1.model.link_attribute_and_element_vo import LinkAttributeAndElementVO from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_request import ListAggregationLogicTablesRequest from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_response import ListAggregationLogicTablesResponse @@ -377,6 +390,10 @@ from huaweicloudsdkdataartsstudio.v1.model.list_directories_request import ListD from huaweicloudsdkdataartsstudio.v1.model.list_directories_response import ListDirectoriesResponse from huaweicloudsdkdataartsstudio.v1.model.list_fact_logic_tables_request import ListFactLogicTablesRequest from huaweicloudsdkdataartsstudio.v1.model.list_fact_logic_tables_response import ListFactLogicTablesResponse +from huaweicloudsdkdataartsstudio.v1.model.list_factory_alarm_info_request import ListFactoryAlarmInfoRequest +from huaweicloudsdkdataartsstudio.v1.model.list_factory_alarm_info_response import ListFactoryAlarmInfoResponse +from huaweicloudsdkdataartsstudio.v1.model.list_factory_jobs_request import ListFactoryJobsRequest +from huaweicloudsdkdataartsstudio.v1.model.list_factory_jobs_response import ListFactoryJobsResponse from huaweicloudsdkdataartsstudio.v1.model.list_instance_list_request import ListInstanceListRequest from huaweicloudsdkdataartsstudio.v1.model.list_instance_list_response import ListInstanceListResponse from huaweicloudsdkdataartsstudio.v1.model.list_instances_request import ListInstancesRequest @@ -419,6 +436,7 @@ from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_request import ListWo from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_response import ListWorkspacesResponse from huaweicloudsdkdataartsstudio.v1.model.list_workspaceusers_request import ListWorkspaceusersRequest from huaweicloudsdkdataartsstudio.v1.model.list_workspaceusers_response import ListWorkspaceusersResponse +from huaweicloudsdkdataartsstudio.v1.model.location import Location from huaweicloudsdkdataartsstudio.v1.model.mapping_join_field_vo import MappingJoinFieldVO from huaweicloudsdkdataartsstudio.v1.model.mapping_source_field_vo import MappingSourceFieldVO from huaweicloudsdkdataartsstudio.v1.model.mapping_source_table_vo import MappingSourceTableVO @@ -430,9 +448,11 @@ from huaweicloudsdkdataartsstudio.v1.model.migrate_api_response import MigrateAp from huaweicloudsdkdataartsstudio.v1.model.migrate_catalog_request import MigrateCatalogRequest from huaweicloudsdkdataartsstudio.v1.model.migrate_catalog_response import MigrateCatalogResponse from huaweicloudsdkdataartsstudio.v1.model.model_level import ModelLevel +from huaweicloudsdkdataartsstudio.v1.model.model_property import ModelProperty from huaweicloudsdkdataartsstudio.v1.model.modify_customized_fields_request import ModifyCustomizedFieldsRequest from huaweicloudsdkdataartsstudio.v1.model.modify_customized_fields_response import ModifyCustomizedFieldsResponse from huaweicloudsdkdataartsstudio.v1.model.namespace import Namespace +from huaweicloudsdkdataartsstudio.v1.model.node import Node from huaweicloudsdkdataartsstudio.v1.model.obs_folder import ObsFolder from huaweicloudsdkdataartsstudio.v1.model.open_api_para_for_check_message import OpenApiParaForCheckMessage from huaweicloudsdkdataartsstudio.v1.model.open_api_para_for_publish import OpenApiParaForPublish @@ -478,6 +498,7 @@ from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_res from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_request import RollbackApprovalRequest from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_response import RollbackApprovalResponse from huaweicloudsdkdataartsstudio.v1.model.rule_template_detail_vo import RuleTemplateDetailVO +from huaweicloudsdkdataartsstudio.v1.model.schedule import Schedule from huaweicloudsdkdataartsstudio.v1.model.scheduler_info import SchedulerInfo from huaweicloudsdkdataartsstudio.v1.model.schemas_list import SchemasList from huaweicloudsdkdataartsstudio.v1.model.search_approvals_request import SearchApprovalsRequest @@ -586,6 +607,8 @@ from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_request import Show from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_response import ShowInstanceLogResponse from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_request import ShowInstanceResultRequest from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_response import ShowInstanceResultResponse +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_request import ShowLineageRequest +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_response import ShowLineageResponse from huaweicloudsdkdataartsstudio.v1.model.show_message_detail_request import ShowMessageDetailRequest from huaweicloudsdkdataartsstudio.v1.model.show_message_detail_response import ShowMessageDetailResponse from huaweicloudsdkdataartsstudio.v1.model.show_metric_assets_request import ShowMetricAssetsRequest diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py index b18f2b241..d34f38f18 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_async_client.py @@ -2251,6 +2251,73 @@ class DataArtsStudioAsyncClient(Client): return http_info + def create_factory_job_async(self, request): + """创建作业 + + 创建作业 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateFactoryJob + :type request: :class:`huaweicloudsdkdataartsstudio.v1.CreateFactoryJobRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.CreateFactoryJobResponse` + """ + http_info = self._create_factory_job_http_info(request) + return self._call_api(**http_info) + + def create_factory_job_async_invoker(self, request): + http_info = self._create_factory_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_factory_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/factory/jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateFactoryJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_factory_supplement_data_instance_async(self, request): """创建补数据实例的接口 @@ -7566,6 +7633,154 @@ class DataArtsStudioAsyncClient(Client): return http_info + def list_factory_alarm_info_async(self, request): + """查询告警通知记录 + + 查询告警通知记录 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListFactoryAlarmInfo + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryAlarmInfoRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryAlarmInfoResponse` + """ + http_info = self._list_factory_alarm_info_http_info(request) + return self._call_api(**http_info) + + def list_factory_alarm_info_async_invoker(self, request): + http_info = self._list_factory_alarm_info_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_factory_alarm_info_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/factory/alarm-info", + "request_type": request.__class__.__name__, + "response_type": "ListFactoryAlarmInfoResponse" + } + + 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 '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 = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + 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_factory_jobs_async(self, request): + """查询作业列表 + + 查询作业列表清单 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListFactoryJobs + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryJobsRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryJobsResponse` + """ + http_info = self._list_factory_jobs_http_info(request) + return self._call_api(**http_info) + + def list_factory_jobs_async_invoker(self, request): + http_info = self._list_factory_jobs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_factory_jobs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/factory/jobs", + "request_type": request.__class__.__name__, + "response_type": "ListFactoryJobsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'job_type' in local_var_params: + query_params.append(('job_type', local_var_params['job_type'])) + if 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + 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_instances_async(self, request): """获取任务执行结果列表 @@ -13014,6 +13229,77 @@ class DataArtsStudioAsyncClient(Client): return http_info + def show_lineage_async(self, request): + """血缘查询 + + 血缘查询 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowLineage + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageResponse` + """ + http_info = self._show_lineage_http_info(request) + return self._call_api(**http_info) + + def show_lineage_async_invoker(self, request): + http_info = self._show_lineage_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_lineage_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/entities/{guid}/lineage", + "request_type": request.__class__.__name__, + "response_type": "ShowLineageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + if 'direction' in local_var_params: + query_params.append(('direction', local_var_params['direction'])) + if 'depth' in local_var_params: + query_params.append(('depth', local_var_params['depth'])) + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + 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_message_detail_async(self, request): """获取消息详情 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py index 586b29c98..a598ebab5 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/dataartsstudio_client.py @@ -2251,6 +2251,73 @@ class DataArtsStudioClient(Client): return http_info + def create_factory_job(self, request): + """创建作业 + + 创建作业 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateFactoryJob + :type request: :class:`huaweicloudsdkdataartsstudio.v1.CreateFactoryJobRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.CreateFactoryJobResponse` + """ + http_info = self._create_factory_job_http_info(request) + return self._call_api(**http_info) + + def create_factory_job_invoker(self, request): + http_info = self._create_factory_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_factory_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/factory/jobs", + "request_type": request.__class__.__name__, + "response_type": "CreateFactoryJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_factory_supplement_data_instance(self, request): """创建补数据实例的接口 @@ -7566,6 +7633,154 @@ class DataArtsStudioClient(Client): return http_info + def list_factory_alarm_info(self, request): + """查询告警通知记录 + + 查询告警通知记录 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListFactoryAlarmInfo + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryAlarmInfoRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryAlarmInfoResponse` + """ + http_info = self._list_factory_alarm_info_http_info(request) + return self._call_api(**http_info) + + def list_factory_alarm_info_invoker(self, request): + http_info = self._list_factory_alarm_info_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_factory_alarm_info_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/factory/alarm-info", + "request_type": request.__class__.__name__, + "response_type": "ListFactoryAlarmInfoResponse" + } + + 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 '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 = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + 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_factory_jobs(self, request): + """查询作业列表 + + 查询作业列表清单 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListFactoryJobs + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryJobsRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ListFactoryJobsResponse` + """ + http_info = self._list_factory_jobs_http_info(request) + return self._call_api(**http_info) + + def list_factory_jobs_invoker(self, request): + http_info = self._list_factory_jobs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_factory_jobs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/factory/jobs", + "request_type": request.__class__.__name__, + "response_type": "ListFactoryJobsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'job_type' in local_var_params: + query_params.append(('job_type', local_var_params['job_type'])) + if 'job_name' in local_var_params: + query_params.append(('job_name', local_var_params['job_name'])) + if 'tags' in local_var_params: + query_params.append(('tags', local_var_params['tags'])) + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + 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_instances(self, request): """获取任务执行结果列表 @@ -13014,6 +13229,77 @@ class DataArtsStudioClient(Client): return http_info + def show_lineage(self, request): + """血缘查询 + + 血缘查询 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowLineage + :type request: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageRequest` + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.ShowLineageResponse` + """ + http_info = self._show_lineage_http_info(request) + return self._call_api(**http_info) + + def show_lineage_invoker(self, request): + http_info = self._show_lineage_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_lineage_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/entities/{guid}/lineage", + "request_type": request.__class__.__name__, + "response_type": "ShowLineageResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'guid' in local_var_params: + path_params['guid'] = local_var_params['guid'] + + query_params = [] + if 'direction' in local_var_params: + query_params.append(('direction', local_var_params['direction'])) + if 'depth' in local_var_params: + query_params.append(('depth', local_var_params['depth'])) + + header_params = {} + if 'workspace' in local_var_params: + header_params['workspace'] = local_var_params['workspace'] + + 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_message_detail(self, request): """获取消息详情 diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py index d9bc6228e..b7b47c981 100644 --- a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/__init__.py @@ -7,6 +7,7 @@ from huaweicloudsdkdataartsstudio.v1.model.add_tag_to_asset_request import AddTa from huaweicloudsdkdataartsstudio.v1.model.add_tag_to_asset_response import AddTagToAssetResponse from huaweicloudsdkdataartsstudio.v1.model.add_work_space_users_request import AddWorkSpaceUsersRequest from huaweicloudsdkdataartsstudio.v1.model.add_work_space_users_response import AddWorkSpaceUsersResponse +from huaweicloudsdkdataartsstudio.v1.model.alarm_info_response_alarm_info import AlarmInfoResponseAlarmInfo from huaweicloudsdkdataartsstudio.v1.model.api import Api from huaweicloudsdkdataartsstudio.v1.model.api_action_dto import ApiActionDTO from huaweicloudsdkdataartsstudio.v1.model.api_catalog_create_para_dto import ApiCatalogCreateParaDTO @@ -45,6 +46,7 @@ from huaweicloudsdkdataartsstudio.v1.model.approval_info_param import ApprovalIn from huaweicloudsdkdataartsstudio.v1.model.approval_status_enum import ApprovalStatusEnum from huaweicloudsdkdataartsstudio.v1.model.approval_type_enum import ApprovalTypeEnum from huaweicloudsdkdataartsstudio.v1.model.approval_vo import ApprovalVO +from huaweicloudsdkdataartsstudio.v1.model.approver import Approver from huaweicloudsdkdataartsstudio.v1.model.approver_param import ApproverParam from huaweicloudsdkdataartsstudio.v1.model.architecture_statistic import ArchitectureStatistic from huaweicloudsdkdataartsstudio.v1.model.associate_classification_to_entity_request import AssociateClassificationToEntityRequest @@ -67,6 +69,7 @@ from huaweicloudsdkdataartsstudio.v1.model.authorize_api_to_instance_response im from huaweicloudsdkdataartsstudio.v1.model.backend_config import BackendConfig from huaweicloudsdkdataartsstudio.v1.model.backend_constant import BackendConstant from huaweicloudsdkdataartsstudio.v1.model.backend_request_para import BackendRequestPara +from huaweicloudsdkdataartsstudio.v1.model.basic_info import BasicInfo from huaweicloudsdkdataartsstudio.v1.model.batch_approve_apply_request import BatchApproveApplyRequest from huaweicloudsdkdataartsstudio.v1.model.batch_approve_apply_response import BatchApproveApplyResponse from huaweicloudsdkdataartsstudio.v1.model.batch_associate_classification_to_entities_request import BatchAssociateClassificationToEntitiesRequest @@ -130,6 +133,7 @@ from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo import CompoundMet from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo_detail_data import CompoundMetricVODetailData from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo_search_result_data import CompoundMetricVOSearchResultData from huaweicloudsdkdataartsstudio.v1.model.compound_metric_vo_search_result_data_value import CompoundMetricVOSearchResultDataValue +from huaweicloudsdkdataartsstudio.v1.model.condition import Condition from huaweicloudsdkdataartsstudio.v1.model.confirm_approvals_request import ConfirmApprovalsRequest from huaweicloudsdkdataartsstudio.v1.model.confirm_approvals_response import ConfirmApprovalsResponse from huaweicloudsdkdataartsstudio.v1.model.confirm_message_request import ConfirmMessageRequest @@ -162,6 +166,8 @@ from huaweicloudsdkdataartsstudio.v1.model.create_directory_request import Creat from huaweicloudsdkdataartsstudio.v1.model.create_directory_response import CreateDirectoryResponse from huaweicloudsdkdataartsstudio.v1.model.create_factory_env_request import CreateFactoryEnvRequest from huaweicloudsdkdataartsstudio.v1.model.create_factory_env_response import CreateFactoryEnvResponse +from huaweicloudsdkdataartsstudio.v1.model.create_factory_job_request import CreateFactoryJobRequest +from huaweicloudsdkdataartsstudio.v1.model.create_factory_job_response import CreateFactoryJobResponse from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request import CreateFactorySupplementDataInstanceRequest from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body import CreateFactorySupplementDataInstanceRequestBody from huaweicloudsdkdataartsstudio.v1.model.create_factory_supplement_data_instance_request_body_depend_jobs import CreateFactorySupplementDataInstanceRequestBodyDependJobs @@ -199,6 +205,7 @@ from huaweicloudsdkdataartsstudio.v1.model.create_template_response import Creat from huaweicloudsdkdataartsstudio.v1.model.create_workspace_params import CreateWorkspaceParams from huaweicloudsdkdataartsstudio.v1.model.create_workspace_request import CreateWorkspaceRequest from huaweicloudsdkdataartsstudio.v1.model.create_workspace_response import CreateWorkspaceResponse +from huaweicloudsdkdataartsstudio.v1.model.cron import Cron from huaweicloudsdkdataartsstudio.v1.model.css_index import CssIndex from huaweicloudsdkdataartsstudio.v1.model.custom_metadata import CustomMetadata from huaweicloudsdkdataartsstudio.v1.model.customized_fields_vo import CustomizedFieldsVO @@ -263,6 +270,7 @@ from huaweicloudsdkdataartsstudio.v1.model.delete_workspaces_request import Dele from huaweicloudsdkdataartsstudio.v1.model.delete_workspaces_response import DeleteWorkspacesResponse from huaweicloudsdkdataartsstudio.v1.model.delete_workspaceusers_request import DeleteWorkspaceusersRequest from huaweicloudsdkdataartsstudio.v1.model.delete_workspaceusers_response import DeleteWorkspaceusersResponse +from huaweicloudsdkdataartsstudio.v1.model.depend_job import DependJob from huaweicloudsdkdataartsstudio.v1.model.derivative_index_dimension_vo import DerivativeIndexDimensionVO from huaweicloudsdkdataartsstudio.v1.model.derivative_index_vo import DerivativeIndexVO from huaweicloudsdkdataartsstudio.v1.model.derivative_index_vo_detail_data import DerivativeIndexVODetailData @@ -280,6 +288,7 @@ from huaweicloudsdkdataartsstudio.v1.model.entity_with_ext_info import EntityWit from huaweicloudsdkdataartsstudio.v1.model.env_request_body import EnvRequestBody from huaweicloudsdkdataartsstudio.v1.model.env_request_body_params import EnvRequestBodyParams from huaweicloudsdkdataartsstudio.v1.model.env_resp_params import EnvRespParams +from huaweicloudsdkdataartsstudio.v1.model.event import Event from huaweicloudsdkdataartsstudio.v1.model.event_param import EventParam from huaweicloudsdkdataartsstudio.v1.model.execute_api_to_instance_request import ExecuteApiToInstanceRequest from huaweicloudsdkdataartsstudio.v1.model.execute_api_to_instance_response import ExecuteApiToInstanceResponse @@ -298,7 +307,10 @@ from huaweicloudsdkdataartsstudio.v1.model.initialize_standard_template_response from huaweicloudsdkdataartsstudio.v1.model.instance_for_api_action_dto import InstanceForApiActionDTO from huaweicloudsdkdataartsstudio.v1.model.instance_host_dto import InstanceHostDTO from huaweicloudsdkdataartsstudio.v1.model.instance_overview_vo import InstanceOverviewVo +from huaweicloudsdkdataartsstudio.v1.model.job_info_request import JobInfoRequest from huaweicloudsdkdataartsstudio.v1.model.job_log_request import JobLogRequest +from huaweicloudsdkdataartsstudio.v1.model.job_param import JobParam +from huaweicloudsdkdataartsstudio.v1.model.job_resp import JobResp from huaweicloudsdkdataartsstudio.v1.model.l1 import L1 from huaweicloudsdkdataartsstudio.v1.model.l1_statistic import L1Statistic from huaweicloudsdkdataartsstudio.v1.model.l2 import L2 @@ -306,6 +318,7 @@ from huaweicloudsdkdataartsstudio.v1.model.l2_id import L2Id from huaweicloudsdkdataartsstudio.v1.model.l2_statistic import L2Statistic from huaweicloudsdkdataartsstudio.v1.model.l3 import L3 from huaweicloudsdkdataartsstudio.v1.model.layer_path import LayerPath +from huaweicloudsdkdataartsstudio.v1.model.lineage_relation import LineageRelation from huaweicloudsdkdataartsstudio.v1.model.link_attribute_and_element_vo import LinkAttributeAndElementVO from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_request import ListAggregationLogicTablesRequest from huaweicloudsdkdataartsstudio.v1.model.list_aggregation_logic_tables_response import ListAggregationLogicTablesResponse @@ -375,6 +388,10 @@ from huaweicloudsdkdataartsstudio.v1.model.list_directories_request import ListD from huaweicloudsdkdataartsstudio.v1.model.list_directories_response import ListDirectoriesResponse from huaweicloudsdkdataartsstudio.v1.model.list_fact_logic_tables_request import ListFactLogicTablesRequest from huaweicloudsdkdataartsstudio.v1.model.list_fact_logic_tables_response import ListFactLogicTablesResponse +from huaweicloudsdkdataartsstudio.v1.model.list_factory_alarm_info_request import ListFactoryAlarmInfoRequest +from huaweicloudsdkdataartsstudio.v1.model.list_factory_alarm_info_response import ListFactoryAlarmInfoResponse +from huaweicloudsdkdataartsstudio.v1.model.list_factory_jobs_request import ListFactoryJobsRequest +from huaweicloudsdkdataartsstudio.v1.model.list_factory_jobs_response import ListFactoryJobsResponse from huaweicloudsdkdataartsstudio.v1.model.list_instance_list_request import ListInstanceListRequest from huaweicloudsdkdataartsstudio.v1.model.list_instance_list_response import ListInstanceListResponse from huaweicloudsdkdataartsstudio.v1.model.list_instances_request import ListInstancesRequest @@ -417,6 +434,7 @@ from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_request import ListWo from huaweicloudsdkdataartsstudio.v1.model.list_workspaces_response import ListWorkspacesResponse from huaweicloudsdkdataartsstudio.v1.model.list_workspaceusers_request import ListWorkspaceusersRequest from huaweicloudsdkdataartsstudio.v1.model.list_workspaceusers_response import ListWorkspaceusersResponse +from huaweicloudsdkdataartsstudio.v1.model.location import Location from huaweicloudsdkdataartsstudio.v1.model.mapping_join_field_vo import MappingJoinFieldVO from huaweicloudsdkdataartsstudio.v1.model.mapping_source_field_vo import MappingSourceFieldVO from huaweicloudsdkdataartsstudio.v1.model.mapping_source_table_vo import MappingSourceTableVO @@ -428,9 +446,11 @@ from huaweicloudsdkdataartsstudio.v1.model.migrate_api_response import MigrateAp from huaweicloudsdkdataartsstudio.v1.model.migrate_catalog_request import MigrateCatalogRequest from huaweicloudsdkdataartsstudio.v1.model.migrate_catalog_response import MigrateCatalogResponse from huaweicloudsdkdataartsstudio.v1.model.model_level import ModelLevel +from huaweicloudsdkdataartsstudio.v1.model.model_property import ModelProperty from huaweicloudsdkdataartsstudio.v1.model.modify_customized_fields_request import ModifyCustomizedFieldsRequest from huaweicloudsdkdataartsstudio.v1.model.modify_customized_fields_response import ModifyCustomizedFieldsResponse from huaweicloudsdkdataartsstudio.v1.model.namespace import Namespace +from huaweicloudsdkdataartsstudio.v1.model.node import Node from huaweicloudsdkdataartsstudio.v1.model.obs_folder import ObsFolder from huaweicloudsdkdataartsstudio.v1.model.open_api_para_for_check_message import OpenApiParaForCheckMessage from huaweicloudsdkdataartsstudio.v1.model.open_api_para_for_publish import OpenApiParaForPublish @@ -476,6 +496,7 @@ from huaweicloudsdkdataartsstudio.v1.model.reset_link_attribute_and_standard_res from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_request import RollbackApprovalRequest from huaweicloudsdkdataartsstudio.v1.model.rollback_approval_response import RollbackApprovalResponse from huaweicloudsdkdataartsstudio.v1.model.rule_template_detail_vo import RuleTemplateDetailVO +from huaweicloudsdkdataartsstudio.v1.model.schedule import Schedule from huaweicloudsdkdataartsstudio.v1.model.scheduler_info import SchedulerInfo from huaweicloudsdkdataartsstudio.v1.model.schemas_list import SchemasList from huaweicloudsdkdataartsstudio.v1.model.search_approvals_request import SearchApprovalsRequest @@ -584,6 +605,8 @@ from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_request import Show from huaweicloudsdkdataartsstudio.v1.model.show_instance_log_response import ShowInstanceLogResponse from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_request import ShowInstanceResultRequest from huaweicloudsdkdataartsstudio.v1.model.show_instance_result_response import ShowInstanceResultResponse +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_request import ShowLineageRequest +from huaweicloudsdkdataartsstudio.v1.model.show_lineage_response import ShowLineageResponse from huaweicloudsdkdataartsstudio.v1.model.show_message_detail_request import ShowMessageDetailRequest from huaweicloudsdkdataartsstudio.v1.model.show_message_detail_response import ShowMessageDetailResponse from huaweicloudsdkdataartsstudio.v1.model.show_metric_assets_request import ShowMetricAssetsRequest diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/alarm_info_response_alarm_info.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/alarm_info_response_alarm_info.py new file mode 100644 index 000000000..587c5cdd7 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/alarm_info_response_alarm_info.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AlarmInfoResponseAlarmInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'alarm_time': 'int', + 'job_name': 'str', + 'schedule_type': 'int', + 'send_msg': 'str', + 'plan_time': 'int', + 'remind_type': 'int', + 'send_status': 'int', + 'job_id': 'int' + } + + attribute_map = { + 'alarm_time': 'alarm_time', + 'job_name': 'job_name', + 'schedule_type': 'schedule_type', + 'send_msg': 'send_msg', + 'plan_time': 'plan_time', + 'remind_type': 'remind_type', + 'send_status': 'send_status', + 'job_id': 'job_id' + } + + def __init__(self, alarm_time=None, job_name=None, schedule_type=None, send_msg=None, plan_time=None, remind_type=None, send_status=None, job_id=None): + """AlarmInfoResponseAlarmInfo + + The model defined in huaweicloud sdk + + :param alarm_time: 告警通知时间 + :type alarm_time: int + :param job_name: 作业名称 + :type job_name: str + :param schedule_type: 作业实例调度方式,取值范围:0 正常调度,2手工调度,5补数据,6子作业调度,7单次调度 + :type schedule_type: int + :param send_msg: 发送信息 + :type send_msg: str + :param plan_time: 计划时间 + :type plan_time: int + :param remind_type: 告警通知类型,取值范围:0 运行成功,1 运行异常/失败, 12 未完成,13 运行取消 + :type remind_type: int + :param send_status: 发送状态,取值范围:0 发送成功,1:发送失败 + :type send_status: int + :param job_id: 作业ID + :type job_id: int + """ + + + + self._alarm_time = None + self._job_name = None + self._schedule_type = None + self._send_msg = None + self._plan_time = None + self._remind_type = None + self._send_status = None + self._job_id = None + self.discriminator = None + + if alarm_time is not None: + self.alarm_time = alarm_time + if job_name is not None: + self.job_name = job_name + if schedule_type is not None: + self.schedule_type = schedule_type + if send_msg is not None: + self.send_msg = send_msg + if plan_time is not None: + self.plan_time = plan_time + if remind_type is not None: + self.remind_type = remind_type + if send_status is not None: + self.send_status = send_status + if job_id is not None: + self.job_id = job_id + + @property + def alarm_time(self): + """Gets the alarm_time of this AlarmInfoResponseAlarmInfo. + + 告警通知时间 + + :return: The alarm_time of this AlarmInfoResponseAlarmInfo. + :rtype: int + """ + return self._alarm_time + + @alarm_time.setter + def alarm_time(self, alarm_time): + """Sets the alarm_time of this AlarmInfoResponseAlarmInfo. + + 告警通知时间 + + :param alarm_time: The alarm_time of this AlarmInfoResponseAlarmInfo. + :type alarm_time: int + """ + self._alarm_time = alarm_time + + @property + def job_name(self): + """Gets the job_name of this AlarmInfoResponseAlarmInfo. + + 作业名称 + + :return: The job_name of this AlarmInfoResponseAlarmInfo. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this AlarmInfoResponseAlarmInfo. + + 作业名称 + + :param job_name: The job_name of this AlarmInfoResponseAlarmInfo. + :type job_name: str + """ + self._job_name = job_name + + @property + def schedule_type(self): + """Gets the schedule_type of this AlarmInfoResponseAlarmInfo. + + 作业实例调度方式,取值范围:0 正常调度,2手工调度,5补数据,6子作业调度,7单次调度 + + :return: The schedule_type of this AlarmInfoResponseAlarmInfo. + :rtype: int + """ + return self._schedule_type + + @schedule_type.setter + def schedule_type(self, schedule_type): + """Sets the schedule_type of this AlarmInfoResponseAlarmInfo. + + 作业实例调度方式,取值范围:0 正常调度,2手工调度,5补数据,6子作业调度,7单次调度 + + :param schedule_type: The schedule_type of this AlarmInfoResponseAlarmInfo. + :type schedule_type: int + """ + self._schedule_type = schedule_type + + @property + def send_msg(self): + """Gets the send_msg of this AlarmInfoResponseAlarmInfo. + + 发送信息 + + :return: The send_msg of this AlarmInfoResponseAlarmInfo. + :rtype: str + """ + return self._send_msg + + @send_msg.setter + def send_msg(self, send_msg): + """Sets the send_msg of this AlarmInfoResponseAlarmInfo. + + 发送信息 + + :param send_msg: The send_msg of this AlarmInfoResponseAlarmInfo. + :type send_msg: str + """ + self._send_msg = send_msg + + @property + def plan_time(self): + """Gets the plan_time of this AlarmInfoResponseAlarmInfo. + + 计划时间 + + :return: The plan_time of this AlarmInfoResponseAlarmInfo. + :rtype: int + """ + return self._plan_time + + @plan_time.setter + def plan_time(self, plan_time): + """Sets the plan_time of this AlarmInfoResponseAlarmInfo. + + 计划时间 + + :param plan_time: The plan_time of this AlarmInfoResponseAlarmInfo. + :type plan_time: int + """ + self._plan_time = plan_time + + @property + def remind_type(self): + """Gets the remind_type of this AlarmInfoResponseAlarmInfo. + + 告警通知类型,取值范围:0 运行成功,1 运行异常/失败, 12 未完成,13 运行取消 + + :return: The remind_type of this AlarmInfoResponseAlarmInfo. + :rtype: int + """ + return self._remind_type + + @remind_type.setter + def remind_type(self, remind_type): + """Sets the remind_type of this AlarmInfoResponseAlarmInfo. + + 告警通知类型,取值范围:0 运行成功,1 运行异常/失败, 12 未完成,13 运行取消 + + :param remind_type: The remind_type of this AlarmInfoResponseAlarmInfo. + :type remind_type: int + """ + self._remind_type = remind_type + + @property + def send_status(self): + """Gets the send_status of this AlarmInfoResponseAlarmInfo. + + 发送状态,取值范围:0 发送成功,1:发送失败 + + :return: The send_status of this AlarmInfoResponseAlarmInfo. + :rtype: int + """ + return self._send_status + + @send_status.setter + def send_status(self, send_status): + """Sets the send_status of this AlarmInfoResponseAlarmInfo. + + 发送状态,取值范围:0 发送成功,1:发送失败 + + :param send_status: The send_status of this AlarmInfoResponseAlarmInfo. + :type send_status: int + """ + self._send_status = send_status + + @property + def job_id(self): + """Gets the job_id of this AlarmInfoResponseAlarmInfo. + + 作业ID + + :return: The job_id of this AlarmInfoResponseAlarmInfo. + :rtype: int + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this AlarmInfoResponseAlarmInfo. + + 作业ID + + :param job_id: The job_id of this AlarmInfoResponseAlarmInfo. + :type job_id: int + """ + self._job_id = job_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AlarmInfoResponseAlarmInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/approver.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/approver.py new file mode 100644 index 000000000..749ab45ee --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/approver.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Approver: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'approver_name': 'str' + } + + attribute_map = { + 'approver_name': 'approver_name' + } + + def __init__(self, approver_name=None): + """Approver + + The model defined in huaweicloud sdk + + :param approver_name: 审批人名称 + :type approver_name: str + """ + + + + self._approver_name = None + self.discriminator = None + + self.approver_name = approver_name + + @property + def approver_name(self): + """Gets the approver_name of this Approver. + + 审批人名称 + + :return: The approver_name of this Approver. + :rtype: str + """ + return self._approver_name + + @approver_name.setter + def approver_name(self, approver_name): + """Sets the approver_name of this Approver. + + 审批人名称 + + :param approver_name: The approver_name of this Approver. + :type approver_name: str + """ + self._approver_name = approver_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Approver): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/basic_info.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/basic_info.py new file mode 100644 index 000000000..ebc806991 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/basic_info.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class BasicInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'owner': 'str', + 'priority': 'int', + 'execute_user': 'str', + 'instance_timeout': 'int', + 'custom_fields': 'object' + } + + attribute_map = { + 'owner': 'owner', + 'priority': 'priority', + 'execute_user': 'execute_user', + 'instance_timeout': 'instance_timeout', + 'custom_fields': 'custom_fields' + } + + def __init__(self, owner=None, priority=None, execute_user=None, instance_timeout=None, custom_fields=None): + """BasicInfo + + The model defined in huaweicloud sdk + + :param owner: 作业责任人 + :type owner: str + :param priority: 作业优先级,0代表高优先级,1代表中优先级,2代表低优先级。 + :type priority: int + :param execute_user: 作业执行用户,必须是已存在的用户名。 + :type execute_user: str + :param instance_timeout: 实例超时时间,单位是分钟。 + :type instance_timeout: int + :param custom_fields: 用户自定义属性字段 + :type custom_fields: object + """ + + + + self._owner = None + self._priority = None + self._execute_user = None + self._instance_timeout = None + self._custom_fields = None + self.discriminator = None + + if owner is not None: + self.owner = owner + if priority is not None: + self.priority = priority + if execute_user is not None: + self.execute_user = execute_user + if instance_timeout is not None: + self.instance_timeout = instance_timeout + if custom_fields is not None: + self.custom_fields = custom_fields + + @property + def owner(self): + """Gets the owner of this BasicInfo. + + 作业责任人 + + :return: The owner of this BasicInfo. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this BasicInfo. + + 作业责任人 + + :param owner: The owner of this BasicInfo. + :type owner: str + """ + self._owner = owner + + @property + def priority(self): + """Gets the priority of this BasicInfo. + + 作业优先级,0代表高优先级,1代表中优先级,2代表低优先级。 + + :return: The priority of this BasicInfo. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this BasicInfo. + + 作业优先级,0代表高优先级,1代表中优先级,2代表低优先级。 + + :param priority: The priority of this BasicInfo. + :type priority: int + """ + self._priority = priority + + @property + def execute_user(self): + """Gets the execute_user of this BasicInfo. + + 作业执行用户,必须是已存在的用户名。 + + :return: The execute_user of this BasicInfo. + :rtype: str + """ + return self._execute_user + + @execute_user.setter + def execute_user(self, execute_user): + """Sets the execute_user of this BasicInfo. + + 作业执行用户,必须是已存在的用户名。 + + :param execute_user: The execute_user of this BasicInfo. + :type execute_user: str + """ + self._execute_user = execute_user + + @property + def instance_timeout(self): + """Gets the instance_timeout of this BasicInfo. + + 实例超时时间,单位是分钟。 + + :return: The instance_timeout of this BasicInfo. + :rtype: int + """ + return self._instance_timeout + + @instance_timeout.setter + def instance_timeout(self, instance_timeout): + """Sets the instance_timeout of this BasicInfo. + + 实例超时时间,单位是分钟。 + + :param instance_timeout: The instance_timeout of this BasicInfo. + :type instance_timeout: int + """ + self._instance_timeout = instance_timeout + + @property + def custom_fields(self): + """Gets the custom_fields of this BasicInfo. + + 用户自定义属性字段 + + :return: The custom_fields of this BasicInfo. + :rtype: object + """ + return self._custom_fields + + @custom_fields.setter + def custom_fields(self, custom_fields): + """Sets the custom_fields of this BasicInfo. + + 用户自定义属性字段 + + :param custom_fields: The custom_fields of this BasicInfo. + :type custom_fields: object + """ + self._custom_fields = custom_fields + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BasicInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/condition.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/condition.py new file mode 100644 index 000000000..7aeae76b1 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/condition.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Condition: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'pre_node_name': 'str', + 'expression': 'str' + } + + attribute_map = { + 'pre_node_name': 'pre_node_name', + 'expression': 'expression' + } + + def __init__(self, pre_node_name=None, expression=None): + """Condition + + The model defined in huaweicloud sdk + + :param pre_node_name: 本节点依赖的前一个节点名称 + :type pre_node_name: str + :param expression: EL表达式,如果EL表达式的计算结果为true,则触发执行本节点。 + :type expression: str + """ + + + + self._pre_node_name = None + self._expression = None + self.discriminator = None + + if pre_node_name is not None: + self.pre_node_name = pre_node_name + if expression is not None: + self.expression = expression + + @property + def pre_node_name(self): + """Gets the pre_node_name of this Condition. + + 本节点依赖的前一个节点名称 + + :return: The pre_node_name of this Condition. + :rtype: str + """ + return self._pre_node_name + + @pre_node_name.setter + def pre_node_name(self, pre_node_name): + """Sets the pre_node_name of this Condition. + + 本节点依赖的前一个节点名称 + + :param pre_node_name: The pre_node_name of this Condition. + :type pre_node_name: str + """ + self._pre_node_name = pre_node_name + + @property + def expression(self): + """Gets the expression of this Condition. + + EL表达式,如果EL表达式的计算结果为true,则触发执行本节点。 + + :return: The expression of this Condition. + :rtype: str + """ + return self._expression + + @expression.setter + def expression(self, expression): + """Sets the expression of this Condition. + + EL表达式,如果EL表达式的计算结果为true,则触发执行本节点。 + + :param expression: The expression of this Condition. + :type expression: str + """ + self._expression = expression + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Condition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_factory_job_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_factory_job_request.py new file mode 100644 index 000000000..d84f6be83 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_factory_job_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFactoryJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'workspace': 'str', + 'body': 'JobInfoRequest' + } + + attribute_map = { + 'workspace': 'workspace', + 'body': 'body' + } + + def __init__(self, workspace=None, body=None): + """CreateFactoryJobRequest + + The model defined in huaweicloud sdk + + :param workspace: DataArts Studio工作空间ID + :type workspace: str + :param body: Body of the CreateFactoryJobRequest + :type body: :class:`huaweicloudsdkdataartsstudio.v1.JobInfoRequest` + """ + + + + self._workspace = None + self._body = None + self.discriminator = None + + self.workspace = workspace + if body is not None: + self.body = body + + @property + def workspace(self): + """Gets the workspace of this CreateFactoryJobRequest. + + DataArts Studio工作空间ID + + :return: The workspace of this CreateFactoryJobRequest. + :rtype: str + """ + return self._workspace + + @workspace.setter + def workspace(self, workspace): + """Sets the workspace of this CreateFactoryJobRequest. + + DataArts Studio工作空间ID + + :param workspace: The workspace of this CreateFactoryJobRequest. + :type workspace: str + """ + self._workspace = workspace + + @property + def body(self): + """Gets the body of this CreateFactoryJobRequest. + + :return: The body of this CreateFactoryJobRequest. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.JobInfoRequest` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateFactoryJobRequest. + + :param body: The body of this CreateFactoryJobRequest. + :type body: :class:`huaweicloudsdkdataartsstudio.v1.JobInfoRequest` + """ + 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, CreateFactoryJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_factory_job_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_factory_job_response.py new file mode 100644 index 000000000..a46b5dd20 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/create_factory_job_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 CreateFactoryJobResponse(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): + """CreateFactoryJobResponse + + The model defined in huaweicloud sdk + + """ + + super(CreateFactoryJobResponse, 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, CreateFactoryJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/cron.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/cron.py new file mode 100644 index 000000000..a9347128e --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/cron.py @@ -0,0 +1,286 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Cron: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'start_time': 'str', + 'end_time': 'str', + 'expression': 'str', + 'expression_time_zone': 'str', + 'period': 'str', + 'depend_pre_period': 'bool', + 'depend_jobs': 'list[DependJob]' + } + + attribute_map = { + 'start_time': 'start_time', + 'end_time': 'end_time', + 'expression': 'expression', + 'expression_time_zone': 'expression_time_zone', + 'period': 'period', + 'depend_pre_period': 'depend_pre_period', + 'depend_jobs': 'depend_jobs' + } + + def __init__(self, start_time=None, end_time=None, expression=None, expression_time_zone=None, period=None, depend_pre_period=None, depend_jobs=None): + """Cron + + The model defined in huaweicloud sdk + + :param start_time: 调度开始时间,采用ISO 8601时间表示方法,格式为yyyy-MM-dd'T'HH:mm:ssZ,例如2018-10-22T23:59:59+08表示的时间为2018年10月22日23时59分59秒,在正8区,即北京时区。 + :type start_time: str + :param end_time: 调度结束时间,采用ISO 8601时间表示方法,格式为yyyy-MM-dd'T'HH:mm:ssZ,例如2018-10-22T23:59:59+08表示的时间为2018年10月22日23时59分59秒,在正8区,即北京时区。如果结束时间不配置,作业会按照调度周期一直执行下去。 + :type end_time: str + :param expression: Cron表达式,格式为\"<秒> <分> <时> <天> <月> <星期>\" + :type expression: str + :param expression_time_zone: Cron表达式对应的时区信息,例如GMT+8。默认值:使用DataArts Studio服务端所在的时区。 + :type expression_time_zone: str + :param period: 用于描述运行的间隔时间,格式为时间+时间单位。需要与expression中的表达式对应 + :type period: str + :param depend_pre_period: 是否依赖本作业上一个运行周期任务的执行结果 + :type depend_pre_period: bool + :param depend_jobs: 依赖其它作业列表 + :type depend_jobs: list[:class:`huaweicloudsdkdataartsstudio.v1.DependJob`] + """ + + + + self._start_time = None + self._end_time = None + self._expression = None + self._expression_time_zone = None + self._period = None + self._depend_pre_period = None + self._depend_jobs = None + self.discriminator = None + + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + self.expression = expression + if expression_time_zone is not None: + self.expression_time_zone = expression_time_zone + self.period = period + if depend_pre_period is not None: + self.depend_pre_period = depend_pre_period + if depend_jobs is not None: + self.depend_jobs = depend_jobs + + @property + def start_time(self): + """Gets the start_time of this Cron. + + 调度开始时间,采用ISO 8601时间表示方法,格式为yyyy-MM-dd'T'HH:mm:ssZ,例如2018-10-22T23:59:59+08表示的时间为2018年10月22日23时59分59秒,在正8区,即北京时区。 + + :return: The start_time of this Cron. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this Cron. + + 调度开始时间,采用ISO 8601时间表示方法,格式为yyyy-MM-dd'T'HH:mm:ssZ,例如2018-10-22T23:59:59+08表示的时间为2018年10月22日23时59分59秒,在正8区,即北京时区。 + + :param start_time: The start_time of this Cron. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this Cron. + + 调度结束时间,采用ISO 8601时间表示方法,格式为yyyy-MM-dd'T'HH:mm:ssZ,例如2018-10-22T23:59:59+08表示的时间为2018年10月22日23时59分59秒,在正8区,即北京时区。如果结束时间不配置,作业会按照调度周期一直执行下去。 + + :return: The end_time of this Cron. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this Cron. + + 调度结束时间,采用ISO 8601时间表示方法,格式为yyyy-MM-dd'T'HH:mm:ssZ,例如2018-10-22T23:59:59+08表示的时间为2018年10月22日23时59分59秒,在正8区,即北京时区。如果结束时间不配置,作业会按照调度周期一直执行下去。 + + :param end_time: The end_time of this Cron. + :type end_time: str + """ + self._end_time = end_time + + @property + def expression(self): + """Gets the expression of this Cron. + + Cron表达式,格式为\"<秒> <分> <时> <天> <月> <星期>\" + + :return: The expression of this Cron. + :rtype: str + """ + return self._expression + + @expression.setter + def expression(self, expression): + """Sets the expression of this Cron. + + Cron表达式,格式为\"<秒> <分> <时> <天> <月> <星期>\" + + :param expression: The expression of this Cron. + :type expression: str + """ + self._expression = expression + + @property + def expression_time_zone(self): + """Gets the expression_time_zone of this Cron. + + Cron表达式对应的时区信息,例如GMT+8。默认值:使用DataArts Studio服务端所在的时区。 + + :return: The expression_time_zone of this Cron. + :rtype: str + """ + return self._expression_time_zone + + @expression_time_zone.setter + def expression_time_zone(self, expression_time_zone): + """Sets the expression_time_zone of this Cron. + + Cron表达式对应的时区信息,例如GMT+8。默认值:使用DataArts Studio服务端所在的时区。 + + :param expression_time_zone: The expression_time_zone of this Cron. + :type expression_time_zone: str + """ + self._expression_time_zone = expression_time_zone + + @property + def period(self): + """Gets the period of this Cron. + + 用于描述运行的间隔时间,格式为时间+时间单位。需要与expression中的表达式对应 + + :return: The period of this Cron. + :rtype: str + """ + return self._period + + @period.setter + def period(self, period): + """Sets the period of this Cron. + + 用于描述运行的间隔时间,格式为时间+时间单位。需要与expression中的表达式对应 + + :param period: The period of this Cron. + :type period: str + """ + self._period = period + + @property + def depend_pre_period(self): + """Gets the depend_pre_period of this Cron. + + 是否依赖本作业上一个运行周期任务的执行结果 + + :return: The depend_pre_period of this Cron. + :rtype: bool + """ + return self._depend_pre_period + + @depend_pre_period.setter + def depend_pre_period(self, depend_pre_period): + """Sets the depend_pre_period of this Cron. + + 是否依赖本作业上一个运行周期任务的执行结果 + + :param depend_pre_period: The depend_pre_period of this Cron. + :type depend_pre_period: bool + """ + self._depend_pre_period = depend_pre_period + + @property + def depend_jobs(self): + """Gets the depend_jobs of this Cron. + + 依赖其它作业列表 + + :return: The depend_jobs of this Cron. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.DependJob`] + """ + return self._depend_jobs + + @depend_jobs.setter + def depend_jobs(self, depend_jobs): + """Sets the depend_jobs of this Cron. + + 依赖其它作业列表 + + :param depend_jobs: The depend_jobs of this Cron. + :type depend_jobs: list[:class:`huaweicloudsdkdataartsstudio.v1.DependJob`] + """ + self._depend_jobs = depend_jobs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Cron): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/depend_job.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/depend_job.py new file mode 100644 index 000000000..75f2aefab --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/depend_job.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DependJob: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'jobs': 'list[str]', + 'depend_period': 'str', + 'depend_fail_policy': 'str' + } + + attribute_map = { + 'jobs': 'jobs', + 'depend_period': 'depend_period', + 'depend_fail_policy': 'depend_fail_policy' + } + + def __init__(self, jobs=None, depend_period=None, depend_fail_policy=None): + """DependJob + + The model defined in huaweicloud sdk + + :param jobs: 依赖的作业名称列表,必须依赖已存在的作业。 + :type jobs: list[str] + :param depend_period: 依赖周期: - SAME_PERIOD:依赖被依赖作业的同周期任务的执行结果。 - PRE_PERIOD:依赖被依赖作业的前一周期任务的执行结果。 + :type depend_period: str + :param depend_fail_policy: 依赖作业任务执行失败处理策略: - FAIL:停止作业,设置作业为失败状态。 - IGNORE:继续执行作业。 - SUSPEND: 挂起作业。 + :type depend_fail_policy: str + """ + + + + self._jobs = None + self._depend_period = None + self._depend_fail_policy = None + self.discriminator = None + + self.jobs = jobs + if depend_period is not None: + self.depend_period = depend_period + if depend_fail_policy is not None: + self.depend_fail_policy = depend_fail_policy + + @property + def jobs(self): + """Gets the jobs of this DependJob. + + 依赖的作业名称列表,必须依赖已存在的作业。 + + :return: The jobs of this DependJob. + :rtype: list[str] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """Sets the jobs of this DependJob. + + 依赖的作业名称列表,必须依赖已存在的作业。 + + :param jobs: The jobs of this DependJob. + :type jobs: list[str] + """ + self._jobs = jobs + + @property + def depend_period(self): + """Gets the depend_period of this DependJob. + + 依赖周期: - SAME_PERIOD:依赖被依赖作业的同周期任务的执行结果。 - PRE_PERIOD:依赖被依赖作业的前一周期任务的执行结果。 + + :return: The depend_period of this DependJob. + :rtype: str + """ + return self._depend_period + + @depend_period.setter + def depend_period(self, depend_period): + """Sets the depend_period of this DependJob. + + 依赖周期: - SAME_PERIOD:依赖被依赖作业的同周期任务的执行结果。 - PRE_PERIOD:依赖被依赖作业的前一周期任务的执行结果。 + + :param depend_period: The depend_period of this DependJob. + :type depend_period: str + """ + self._depend_period = depend_period + + @property + def depend_fail_policy(self): + """Gets the depend_fail_policy of this DependJob. + + 依赖作业任务执行失败处理策略: - FAIL:停止作业,设置作业为失败状态。 - IGNORE:继续执行作业。 - SUSPEND: 挂起作业。 + + :return: The depend_fail_policy of this DependJob. + :rtype: str + """ + return self._depend_fail_policy + + @depend_fail_policy.setter + def depend_fail_policy(self, depend_fail_policy): + """Sets the depend_fail_policy of this DependJob. + + 依赖作业任务执行失败处理策略: - FAIL:停止作业,设置作业为失败状态。 - IGNORE:继续执行作业。 - SUSPEND: 挂起作业。 + + :param depend_fail_policy: The depend_fail_policy of this DependJob. + :type depend_fail_policy: str + """ + self._depend_fail_policy = depend_fail_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, DependJob): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/event.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/event.py new file mode 100644 index 000000000..76c3fd02c --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/event.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Event: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'event_type': 'str', + 'channel': 'str', + 'fail_policy': 'str', + 'concurrent': 'int', + 'read_policy': 'str' + } + + attribute_map = { + 'event_type': 'event_type', + 'channel': 'channel', + 'fail_policy': 'fail_policy', + 'concurrent': 'concurrent', + 'read_policy': 'read_policy' + } + + def __init__(self, event_type=None, channel=None, fail_policy=None, concurrent=None, read_policy=None): + """Event + + The model defined in huaweicloud sdk + + :param event_type: 事件类型。 - KAFKA: 选择对应的连接名称与topic,当有新的kafka消息时将会触发作业运行一次 - DIS: 当前只支持监听DIS通道的新上报数据事件,每上报一条数据,触发作业运行一次。 - OBS: 选择要监听的OBS路径,如果该路径下有新增文件,则触发调度;新增的文件的路径名,可以通过变量Job.trigger.obsNewFiles引用。前提条件:该OBS路径已经配置DIS消息通知。 + :type event_type: str + :param channel: DIS通道名称。通过DIS管理控制台获取通道名称:登录管理控制台。单击“数据接入服务”,左侧列表选择“通道管理”。通道管理页面中列出了用户拥有的通道 + :type channel: str + :param fail_policy: 执行失败处理策略。 - SUSPEND: 挂起 - IGNORE:忽略失败,读取下一事件 + :type fail_policy: str + :param concurrent: 调度并发数 + :type concurrent: int + :param read_policy: 读取策略。 - LAST: 从上次位置读取 - NEW:从最新位置读取 + :type read_policy: str + """ + + + + self._event_type = None + self._channel = None + self._fail_policy = None + self._concurrent = None + self._read_policy = None + self.discriminator = None + + self.event_type = event_type + self.channel = channel + if fail_policy is not None: + self.fail_policy = fail_policy + if concurrent is not None: + self.concurrent = concurrent + if read_policy is not None: + self.read_policy = read_policy + + @property + def event_type(self): + """Gets the event_type of this Event. + + 事件类型。 - KAFKA: 选择对应的连接名称与topic,当有新的kafka消息时将会触发作业运行一次 - DIS: 当前只支持监听DIS通道的新上报数据事件,每上报一条数据,触发作业运行一次。 - OBS: 选择要监听的OBS路径,如果该路径下有新增文件,则触发调度;新增的文件的路径名,可以通过变量Job.trigger.obsNewFiles引用。前提条件:该OBS路径已经配置DIS消息通知。 + + :return: The event_type of this Event. + :rtype: str + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this Event. + + 事件类型。 - KAFKA: 选择对应的连接名称与topic,当有新的kafka消息时将会触发作业运行一次 - DIS: 当前只支持监听DIS通道的新上报数据事件,每上报一条数据,触发作业运行一次。 - OBS: 选择要监听的OBS路径,如果该路径下有新增文件,则触发调度;新增的文件的路径名,可以通过变量Job.trigger.obsNewFiles引用。前提条件:该OBS路径已经配置DIS消息通知。 + + :param event_type: The event_type of this Event. + :type event_type: str + """ + self._event_type = event_type + + @property + def channel(self): + """Gets the channel of this Event. + + DIS通道名称。通过DIS管理控制台获取通道名称:登录管理控制台。单击“数据接入服务”,左侧列表选择“通道管理”。通道管理页面中列出了用户拥有的通道 + + :return: The channel of this Event. + :rtype: str + """ + return self._channel + + @channel.setter + def channel(self, channel): + """Sets the channel of this Event. + + DIS通道名称。通过DIS管理控制台获取通道名称:登录管理控制台。单击“数据接入服务”,左侧列表选择“通道管理”。通道管理页面中列出了用户拥有的通道 + + :param channel: The channel of this Event. + :type channel: str + """ + self._channel = channel + + @property + def fail_policy(self): + """Gets the fail_policy of this Event. + + 执行失败处理策略。 - SUSPEND: 挂起 - IGNORE:忽略失败,读取下一事件 + + :return: The fail_policy of this Event. + :rtype: str + """ + return self._fail_policy + + @fail_policy.setter + def fail_policy(self, fail_policy): + """Sets the fail_policy of this Event. + + 执行失败处理策略。 - SUSPEND: 挂起 - IGNORE:忽略失败,读取下一事件 + + :param fail_policy: The fail_policy of this Event. + :type fail_policy: str + """ + self._fail_policy = fail_policy + + @property + def concurrent(self): + """Gets the concurrent of this Event. + + 调度并发数 + + :return: The concurrent of this Event. + :rtype: int + """ + return self._concurrent + + @concurrent.setter + def concurrent(self, concurrent): + """Sets the concurrent of this Event. + + 调度并发数 + + :param concurrent: The concurrent of this Event. + :type concurrent: int + """ + self._concurrent = concurrent + + @property + def read_policy(self): + """Gets the read_policy of this Event. + + 读取策略。 - LAST: 从上次位置读取 - NEW:从最新位置读取 + + :return: The read_policy of this Event. + :rtype: str + """ + return self._read_policy + + @read_policy.setter + def read_policy(self, read_policy): + """Sets the read_policy of this Event. + + 读取策略。 - LAST: 从上次位置读取 - NEW:从最新位置读取 + + :param read_policy: The read_policy of this Event. + :type read_policy: str + """ + self._read_policy = read_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, Event): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_info_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_info_request.py new file mode 100644 index 000000000..da4e540f3 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_info_request.py @@ -0,0 +1,538 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'nodes': 'list[Node]', + 'schedule': 'Schedule', + 'params': 'list[JobParam]', + 'log_path': 'str', + 'directory': 'str', + 'process_type': 'str', + 'single_node_job_flag': 'bool', + 'single_node_job_type': 'str', + 'create_user': 'str', + 'owner': 'str', + 'priority': 'str', + 'last_update_user': 'str', + 'target_status': 'str', + 'approvers': 'list[Approver]', + 'basic_config': 'BasicInfo' + } + + attribute_map = { + 'name': 'name', + 'nodes': 'nodes', + 'schedule': 'schedule', + 'params': 'params', + 'log_path': 'log_path', + 'directory': 'directory', + 'process_type': 'process_type', + 'single_node_job_flag': 'single_node_job_flag', + 'single_node_job_type': 'single_node_job_type', + 'create_user': 'create_user', + 'owner': 'owner', + 'priority': 'priority', + 'last_update_user': 'last_update_user', + 'target_status': 'target_status', + 'approvers': 'approvers', + 'basic_config': 'basic_config' + } + + def __init__(self, name=None, nodes=None, schedule=None, params=None, log_path=None, directory=None, process_type=None, single_node_job_flag=None, single_node_job_type=None, create_user=None, owner=None, priority=None, last_update_user=None, target_status=None, approvers=None, basic_config=None): + """JobInfoRequest + + The model defined in huaweicloud sdk + + :param name: 作业名称,只能包含六种字符:英文字母、数字、中文、中划线、下划线和点号。作业名称不能重复。 + :type name: str + :param nodes: 节点清单 + :type nodes: list[:class:`huaweicloudsdkdataartsstudio.v1.Node`] + :param schedule: + :type schedule: :class:`huaweicloudsdkdataartsstudio.v1.Schedule` + :param params: 作业参数清单 + :type params: list[:class:`huaweicloudsdkdataartsstudio.v1.JobParam`] + :param log_path: 日志路径 + :type log_path: str + :param directory: 目录路径 + :type directory: str + :param process_type: 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + :type process_type: str + :param single_node_job_flag: 是否选择单任务,默认为false + :type single_node_job_flag: bool + :param single_node_job_type: 单任务类型 + :type single_node_job_type: str + :param create_user: 创建用户 + :type create_user: str + :param owner: 责任人 + :type owner: str + :param priority: 优先级 + :type priority: str + :param last_update_user: 作业最后修改人 + :type last_update_user: str + :param target_status: 在开启审批开关后,需要填写该字段。表示创建作业的目标状态。 - SAVED: 保存态,表示作业仅保存,无法调度运行,需要提交并审核通过后才能运行。 - SUBMITTED: 提交态,表示作业保存后会自动提交,需要审核通过才能运行。 - PRODUCTION: 生产态,表示作业跳过审批环节,创建后可以直接运行。注意:只有工作空间的管理员用户才能创建生产态的作业。 + :type target_status: str + :param approvers: 作业审批人 + :type approvers: list[:class:`huaweicloudsdkdataartsstudio.v1.Approver`] + :param basic_config: + :type basic_config: :class:`huaweicloudsdkdataartsstudio.v1.BasicInfo` + """ + + + + self._name = None + self._nodes = None + self._schedule = None + self._params = None + self._log_path = None + self._directory = None + self._process_type = None + self._single_node_job_flag = None + self._single_node_job_type = None + self._create_user = None + self._owner = None + self._priority = None + self._last_update_user = None + self._target_status = None + self._approvers = None + self._basic_config = None + self.discriminator = None + + self.name = name + self.nodes = nodes + self.schedule = schedule + if params is not None: + self.params = params + if log_path is not None: + self.log_path = log_path + if directory is not None: + self.directory = directory + self.process_type = process_type + if single_node_job_flag is not None: + self.single_node_job_flag = single_node_job_flag + if single_node_job_type is not None: + self.single_node_job_type = single_node_job_type + if create_user is not None: + self.create_user = create_user + if owner is not None: + self.owner = owner + if priority is not None: + self.priority = priority + if last_update_user is not None: + self.last_update_user = last_update_user + if target_status is not None: + self.target_status = target_status + if approvers is not None: + self.approvers = approvers + if basic_config is not None: + self.basic_config = basic_config + + @property + def name(self): + """Gets the name of this JobInfoRequest. + + 作业名称,只能包含六种字符:英文字母、数字、中文、中划线、下划线和点号。作业名称不能重复。 + + :return: The name of this JobInfoRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this JobInfoRequest. + + 作业名称,只能包含六种字符:英文字母、数字、中文、中划线、下划线和点号。作业名称不能重复。 + + :param name: The name of this JobInfoRequest. + :type name: str + """ + self._name = name + + @property + def nodes(self): + """Gets the nodes of this JobInfoRequest. + + 节点清单 + + :return: The nodes of this JobInfoRequest. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.Node`] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this JobInfoRequest. + + 节点清单 + + :param nodes: The nodes of this JobInfoRequest. + :type nodes: list[:class:`huaweicloudsdkdataartsstudio.v1.Node`] + """ + self._nodes = nodes + + @property + def schedule(self): + """Gets the schedule of this JobInfoRequest. + + :return: The schedule of this JobInfoRequest. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Schedule` + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """Sets the schedule of this JobInfoRequest. + + :param schedule: The schedule of this JobInfoRequest. + :type schedule: :class:`huaweicloudsdkdataartsstudio.v1.Schedule` + """ + self._schedule = schedule + + @property + def params(self): + """Gets the params of this JobInfoRequest. + + 作业参数清单 + + :return: The params of this JobInfoRequest. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.JobParam`] + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this JobInfoRequest. + + 作业参数清单 + + :param params: The params of this JobInfoRequest. + :type params: list[:class:`huaweicloudsdkdataartsstudio.v1.JobParam`] + """ + self._params = params + + @property + def log_path(self): + """Gets the log_path of this JobInfoRequest. + + 日志路径 + + :return: The log_path of this JobInfoRequest. + :rtype: str + """ + return self._log_path + + @log_path.setter + def log_path(self, log_path): + """Sets the log_path of this JobInfoRequest. + + 日志路径 + + :param log_path: The log_path of this JobInfoRequest. + :type log_path: str + """ + self._log_path = log_path + + @property + def directory(self): + """Gets the directory of this JobInfoRequest. + + 目录路径 + + :return: The directory of this JobInfoRequest. + :rtype: str + """ + return self._directory + + @directory.setter + def directory(self, directory): + """Sets the directory of this JobInfoRequest. + + 目录路径 + + :param directory: The directory of this JobInfoRequest. + :type directory: str + """ + self._directory = directory + + @property + def process_type(self): + """Gets the process_type of this JobInfoRequest. + + 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + + :return: The process_type of this JobInfoRequest. + :rtype: str + """ + return self._process_type + + @process_type.setter + def process_type(self, process_type): + """Sets the process_type of this JobInfoRequest. + + 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + + :param process_type: The process_type of this JobInfoRequest. + :type process_type: str + """ + self._process_type = process_type + + @property + def single_node_job_flag(self): + """Gets the single_node_job_flag of this JobInfoRequest. + + 是否选择单任务,默认为false + + :return: The single_node_job_flag of this JobInfoRequest. + :rtype: bool + """ + return self._single_node_job_flag + + @single_node_job_flag.setter + def single_node_job_flag(self, single_node_job_flag): + """Sets the single_node_job_flag of this JobInfoRequest. + + 是否选择单任务,默认为false + + :param single_node_job_flag: The single_node_job_flag of this JobInfoRequest. + :type single_node_job_flag: bool + """ + self._single_node_job_flag = single_node_job_flag + + @property + def single_node_job_type(self): + """Gets the single_node_job_type of this JobInfoRequest. + + 单任务类型 + + :return: The single_node_job_type of this JobInfoRequest. + :rtype: str + """ + return self._single_node_job_type + + @single_node_job_type.setter + def single_node_job_type(self, single_node_job_type): + """Sets the single_node_job_type of this JobInfoRequest. + + 单任务类型 + + :param single_node_job_type: The single_node_job_type of this JobInfoRequest. + :type single_node_job_type: str + """ + self._single_node_job_type = single_node_job_type + + @property + def create_user(self): + """Gets the create_user of this JobInfoRequest. + + 创建用户 + + :return: The create_user of this JobInfoRequest. + :rtype: str + """ + return self._create_user + + @create_user.setter + def create_user(self, create_user): + """Sets the create_user of this JobInfoRequest. + + 创建用户 + + :param create_user: The create_user of this JobInfoRequest. + :type create_user: str + """ + self._create_user = create_user + + @property + def owner(self): + """Gets the owner of this JobInfoRequest. + + 责任人 + + :return: The owner of this JobInfoRequest. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this JobInfoRequest. + + 责任人 + + :param owner: The owner of this JobInfoRequest. + :type owner: str + """ + self._owner = owner + + @property + def priority(self): + """Gets the priority of this JobInfoRequest. + + 优先级 + + :return: The priority of this JobInfoRequest. + :rtype: str + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this JobInfoRequest. + + 优先级 + + :param priority: The priority of this JobInfoRequest. + :type priority: str + """ + self._priority = priority + + @property + def last_update_user(self): + """Gets the last_update_user of this JobInfoRequest. + + 作业最后修改人 + + :return: The last_update_user of this JobInfoRequest. + :rtype: str + """ + return self._last_update_user + + @last_update_user.setter + def last_update_user(self, last_update_user): + """Sets the last_update_user of this JobInfoRequest. + + 作业最后修改人 + + :param last_update_user: The last_update_user of this JobInfoRequest. + :type last_update_user: str + """ + self._last_update_user = last_update_user + + @property + def target_status(self): + """Gets the target_status of this JobInfoRequest. + + 在开启审批开关后,需要填写该字段。表示创建作业的目标状态。 - SAVED: 保存态,表示作业仅保存,无法调度运行,需要提交并审核通过后才能运行。 - SUBMITTED: 提交态,表示作业保存后会自动提交,需要审核通过才能运行。 - PRODUCTION: 生产态,表示作业跳过审批环节,创建后可以直接运行。注意:只有工作空间的管理员用户才能创建生产态的作业。 + + :return: The target_status of this JobInfoRequest. + :rtype: str + """ + return self._target_status + + @target_status.setter + def target_status(self, target_status): + """Sets the target_status of this JobInfoRequest. + + 在开启审批开关后,需要填写该字段。表示创建作业的目标状态。 - SAVED: 保存态,表示作业仅保存,无法调度运行,需要提交并审核通过后才能运行。 - SUBMITTED: 提交态,表示作业保存后会自动提交,需要审核通过才能运行。 - PRODUCTION: 生产态,表示作业跳过审批环节,创建后可以直接运行。注意:只有工作空间的管理员用户才能创建生产态的作业。 + + :param target_status: The target_status of this JobInfoRequest. + :type target_status: str + """ + self._target_status = target_status + + @property + def approvers(self): + """Gets the approvers of this JobInfoRequest. + + 作业审批人 + + :return: The approvers of this JobInfoRequest. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.Approver`] + """ + return self._approvers + + @approvers.setter + def approvers(self, approvers): + """Sets the approvers of this JobInfoRequest. + + 作业审批人 + + :param approvers: The approvers of this JobInfoRequest. + :type approvers: list[:class:`huaweicloudsdkdataartsstudio.v1.Approver`] + """ + self._approvers = approvers + + @property + def basic_config(self): + """Gets the basic_config of this JobInfoRequest. + + :return: The basic_config of this JobInfoRequest. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.BasicInfo` + """ + return self._basic_config + + @basic_config.setter + def basic_config(self, basic_config): + """Sets the basic_config of this JobInfoRequest. + + :param basic_config: The basic_config of this JobInfoRequest. + :type basic_config: :class:`huaweicloudsdkdataartsstudio.v1.BasicInfo` + """ + self._basic_config = basic_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_param.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_param.py new file mode 100644 index 000000000..5b65ee78c --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_param.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobParam: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'value': 'str', + 'type': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value', + 'type': 'type' + } + + def __init__(self, name=None, value=None, type=None): + """JobParam + + The model defined in huaweicloud sdk + + :param name: 参数名称,只能包含英文字母、数字、中划线和下划线。 + :type name: str + :param value: 参数值 + :type value: str + :param type: 参数类型: - variable: 变量 - constants: 常量 + :type type: str + """ + + + + self._name = None + self._value = None + self._type = None + self.discriminator = None + + self.name = name + self.value = value + if type is not None: + self.type = type + + @property + def name(self): + """Gets the name of this JobParam. + + 参数名称,只能包含英文字母、数字、中划线和下划线。 + + :return: The name of this JobParam. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this JobParam. + + 参数名称,只能包含英文字母、数字、中划线和下划线。 + + :param name: The name of this JobParam. + :type name: str + """ + self._name = name + + @property + def value(self): + """Gets the value of this JobParam. + + 参数值 + + :return: The value of this JobParam. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this JobParam. + + 参数值 + + :param value: The value of this JobParam. + :type value: str + """ + self._value = value + + @property + def type(self): + """Gets the type of this JobParam. + + 参数类型: - variable: 变量 - constants: 常量 + + :return: The type of this JobParam. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this JobParam. + + 参数类型: - variable: 变量 - constants: 常量 + + :param type: The type of this JobParam. + :type type: str + """ + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobParam): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_resp.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_resp.py new file mode 100644 index 000000000..18f8a6f95 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/job_resp.py @@ -0,0 +1,492 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobResp: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'create_time': 'int', + 'create_user': 'str', + 'job_type': 'str', + 'last_instance_end_time': 'int', + 'last_instance_status': 'str', + 'last_update_time': 'int', + 'last_update_user': 'str', + 'name': 'str', + 'owner': 'str', + 'path': 'str', + 'priority': 'int', + 'single_node_job_flag': 'bool', + 'start_time': 'int', + 'status': 'str' + } + + attribute_map = { + 'create_time': 'create_time', + 'create_user': 'create_user', + 'job_type': 'job_type', + 'last_instance_end_time': 'last_instance_end_time', + 'last_instance_status': 'last_instance_status', + 'last_update_time': 'last_update_time', + 'last_update_user': 'last_update_user', + 'name': 'name', + 'owner': 'owner', + 'path': 'path', + 'priority': 'priority', + 'single_node_job_flag': 'single_node_job_flag', + 'start_time': 'start_time', + 'status': 'status' + } + + def __init__(self, create_time=None, create_user=None, job_type=None, last_instance_end_time=None, last_instance_status=None, last_update_time=None, last_update_user=None, name=None, owner=None, path=None, priority=None, single_node_job_flag=None, start_time=None, status=None): + """JobResp + + The model defined in huaweicloud sdk + + :param create_time: 创建时间 + :type create_time: int + :param create_user: 创建用户 + :type create_user: str + :param job_type: 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + :type job_type: str + :param last_instance_end_time: 最近实例的运行结束时间 + :type last_instance_end_time: int + :param last_instance_status: 最近实例的运行状态 + :type last_instance_status: str + :param last_update_time: 最后更新时间 + :type last_update_time: int + :param last_update_user: 最后修改人 + :type last_update_user: str + :param name: 作业名称 + :type name: str + :param owner: 责任人 + :type owner: str + :param path: 作业目录路径 + :type path: str + :param priority: 作业优先级 + :type priority: int + :param single_node_job_flag: 单算子作业标识 + :type single_node_job_flag: bool + :param start_time: 作业启动时间 + :type start_time: int + :param status: 作业状态 + :type status: str + """ + + + + self._create_time = None + self._create_user = None + self._job_type = None + self._last_instance_end_time = None + self._last_instance_status = None + self._last_update_time = None + self._last_update_user = None + self._name = None + self._owner = None + self._path = None + self._priority = None + self._single_node_job_flag = None + self._start_time = None + self._status = None + self.discriminator = None + + if create_time is not None: + self.create_time = create_time + if create_user is not None: + self.create_user = create_user + if job_type is not None: + self.job_type = job_type + if last_instance_end_time is not None: + self.last_instance_end_time = last_instance_end_time + if last_instance_status is not None: + self.last_instance_status = last_instance_status + if last_update_time is not None: + self.last_update_time = last_update_time + if last_update_user is not None: + self.last_update_user = last_update_user + if name is not None: + self.name = name + if owner is not None: + self.owner = owner + if path is not None: + self.path = path + if priority is not None: + self.priority = priority + if single_node_job_flag is not None: + self.single_node_job_flag = single_node_job_flag + if start_time is not None: + self.start_time = start_time + if status is not None: + self.status = status + + @property + def create_time(self): + """Gets the create_time of this JobResp. + + 创建时间 + + :return: The create_time of this JobResp. + :rtype: int + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this JobResp. + + 创建时间 + + :param create_time: The create_time of this JobResp. + :type create_time: int + """ + self._create_time = create_time + + @property + def create_user(self): + """Gets the create_user of this JobResp. + + 创建用户 + + :return: The create_user of this JobResp. + :rtype: str + """ + return self._create_user + + @create_user.setter + def create_user(self, create_user): + """Sets the create_user of this JobResp. + + 创建用户 + + :param create_user: The create_user of this JobResp. + :type create_user: str + """ + self._create_user = create_user + + @property + def job_type(self): + """Gets the job_type of this JobResp. + + 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + + :return: The job_type of this JobResp. + :rtype: str + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this JobResp. + + 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + + :param job_type: The job_type of this JobResp. + :type job_type: str + """ + self._job_type = job_type + + @property + def last_instance_end_time(self): + """Gets the last_instance_end_time of this JobResp. + + 最近实例的运行结束时间 + + :return: The last_instance_end_time of this JobResp. + :rtype: int + """ + return self._last_instance_end_time + + @last_instance_end_time.setter + def last_instance_end_time(self, last_instance_end_time): + """Sets the last_instance_end_time of this JobResp. + + 最近实例的运行结束时间 + + :param last_instance_end_time: The last_instance_end_time of this JobResp. + :type last_instance_end_time: int + """ + self._last_instance_end_time = last_instance_end_time + + @property + def last_instance_status(self): + """Gets the last_instance_status of this JobResp. + + 最近实例的运行状态 + + :return: The last_instance_status of this JobResp. + :rtype: str + """ + return self._last_instance_status + + @last_instance_status.setter + def last_instance_status(self, last_instance_status): + """Sets the last_instance_status of this JobResp. + + 最近实例的运行状态 + + :param last_instance_status: The last_instance_status of this JobResp. + :type last_instance_status: str + """ + self._last_instance_status = last_instance_status + + @property + def last_update_time(self): + """Gets the last_update_time of this JobResp. + + 最后更新时间 + + :return: The last_update_time of this JobResp. + :rtype: int + """ + return self._last_update_time + + @last_update_time.setter + def last_update_time(self, last_update_time): + """Sets the last_update_time of this JobResp. + + 最后更新时间 + + :param last_update_time: The last_update_time of this JobResp. + :type last_update_time: int + """ + self._last_update_time = last_update_time + + @property + def last_update_user(self): + """Gets the last_update_user of this JobResp. + + 最后修改人 + + :return: The last_update_user of this JobResp. + :rtype: str + """ + return self._last_update_user + + @last_update_user.setter + def last_update_user(self, last_update_user): + """Sets the last_update_user of this JobResp. + + 最后修改人 + + :param last_update_user: The last_update_user of this JobResp. + :type last_update_user: str + """ + self._last_update_user = last_update_user + + @property + def name(self): + """Gets the name of this JobResp. + + 作业名称 + + :return: The name of this JobResp. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this JobResp. + + 作业名称 + + :param name: The name of this JobResp. + :type name: str + """ + self._name = name + + @property + def owner(self): + """Gets the owner of this JobResp. + + 责任人 + + :return: The owner of this JobResp. + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this JobResp. + + 责任人 + + :param owner: The owner of this JobResp. + :type owner: str + """ + self._owner = owner + + @property + def path(self): + """Gets the path of this JobResp. + + 作业目录路径 + + :return: The path of this JobResp. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this JobResp. + + 作业目录路径 + + :param path: The path of this JobResp. + :type path: str + """ + self._path = path + + @property + def priority(self): + """Gets the priority of this JobResp. + + 作业优先级 + + :return: The priority of this JobResp. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this JobResp. + + 作业优先级 + + :param priority: The priority of this JobResp. + :type priority: int + """ + self._priority = priority + + @property + def single_node_job_flag(self): + """Gets the single_node_job_flag of this JobResp. + + 单算子作业标识 + + :return: The single_node_job_flag of this JobResp. + :rtype: bool + """ + return self._single_node_job_flag + + @single_node_job_flag.setter + def single_node_job_flag(self, single_node_job_flag): + """Sets the single_node_job_flag of this JobResp. + + 单算子作业标识 + + :param single_node_job_flag: The single_node_job_flag of this JobResp. + :type single_node_job_flag: bool + """ + self._single_node_job_flag = single_node_job_flag + + @property + def start_time(self): + """Gets the start_time of this JobResp. + + 作业启动时间 + + :return: The start_time of this JobResp. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this JobResp. + + 作业启动时间 + + :param start_time: The start_time of this JobResp. + :type start_time: int + """ + self._start_time = start_time + + @property + def status(self): + """Gets the status of this JobResp. + + 作业状态 + + :return: The status of this JobResp. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this JobResp. + + 作业状态 + + :param status: The status of this JobResp. + :type status: str + """ + self._status = status + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobResp): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage_relation.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage_relation.py new file mode 100644 index 000000000..db5c6de94 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/lineage_relation.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LineageRelation: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'from_entity_id': 'str', + 'relationship_id': 'str', + 'to_entity_id': 'str' + } + + attribute_map = { + 'from_entity_id': 'from_entity_id', + 'relationship_id': 'relationship_id', + 'to_entity_id': 'to_entity_id' + } + + def __init__(self, from_entity_id=None, relationship_id=None, to_entity_id=None): + """LineageRelation + + The model defined in huaweicloud sdk + + :param from_entity_id: 血缘来源 + :type from_entity_id: str + :param relationship_id: 关系id + :type relationship_id: str + :param to_entity_id: 血缘流向 + :type to_entity_id: str + """ + + + + self._from_entity_id = None + self._relationship_id = None + self._to_entity_id = None + self.discriminator = None + + if from_entity_id is not None: + self.from_entity_id = from_entity_id + if relationship_id is not None: + self.relationship_id = relationship_id + if to_entity_id is not None: + self.to_entity_id = to_entity_id + + @property + def from_entity_id(self): + """Gets the from_entity_id of this LineageRelation. + + 血缘来源 + + :return: The from_entity_id of this LineageRelation. + :rtype: str + """ + return self._from_entity_id + + @from_entity_id.setter + def from_entity_id(self, from_entity_id): + """Sets the from_entity_id of this LineageRelation. + + 血缘来源 + + :param from_entity_id: The from_entity_id of this LineageRelation. + :type from_entity_id: str + """ + self._from_entity_id = from_entity_id + + @property + def relationship_id(self): + """Gets the relationship_id of this LineageRelation. + + 关系id + + :return: The relationship_id of this LineageRelation. + :rtype: str + """ + return self._relationship_id + + @relationship_id.setter + def relationship_id(self, relationship_id): + """Sets the relationship_id of this LineageRelation. + + 关系id + + :param relationship_id: The relationship_id of this LineageRelation. + :type relationship_id: str + """ + self._relationship_id = relationship_id + + @property + def to_entity_id(self): + """Gets the to_entity_id of this LineageRelation. + + 血缘流向 + + :return: The to_entity_id of this LineageRelation. + :rtype: str + """ + return self._to_entity_id + + @to_entity_id.setter + def to_entity_id(self, to_entity_id): + """Sets the to_entity_id of this LineageRelation. + + 血缘流向 + + :param to_entity_id: The to_entity_id of this LineageRelation. + :type to_entity_id: str + """ + self._to_entity_id = to_entity_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, LineageRelation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_alarm_info_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_alarm_info_request.py new file mode 100644 index 000000000..1955950a4 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_alarm_info_request.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFactoryAlarmInfoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'workspace': 'str', + 'start_time': 'int', + 'end_time': 'int', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'workspace': 'workspace', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, workspace=None, start_time=None, end_time=None, offset=None, limit=None): + """ListFactoryAlarmInfoRequest + + The model defined in huaweicloud sdk + + :param workspace: 工作空间ID + :type workspace: str + :param start_time: 告警的开始时间,默认当前时间的前一个小时,13位时间戳 + :type start_time: int + :param end_time: 告警的最后时间,默认为当前时间,13位时间戳 + :type end_time: int + :param offset: 分页的起始页,默认值为0。取值范围大于等于0。 + :type offset: int + :param limit: 分页返回结果,指定每页最大记录数。默认值10 + :type limit: int + """ + + + + self._workspace = None + self._start_time = None + self._end_time = None + self._offset = None + self._limit = None + self.discriminator = None + + if workspace is not None: + self.workspace = workspace + 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 workspace(self): + """Gets the workspace of this ListFactoryAlarmInfoRequest. + + 工作空间ID + + :return: The workspace of this ListFactoryAlarmInfoRequest. + :rtype: str + """ + return self._workspace + + @workspace.setter + def workspace(self, workspace): + """Sets the workspace of this ListFactoryAlarmInfoRequest. + + 工作空间ID + + :param workspace: The workspace of this ListFactoryAlarmInfoRequest. + :type workspace: str + """ + self._workspace = workspace + + @property + def start_time(self): + """Gets the start_time of this ListFactoryAlarmInfoRequest. + + 告警的开始时间,默认当前时间的前一个小时,13位时间戳 + + :return: The start_time of this ListFactoryAlarmInfoRequest. + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListFactoryAlarmInfoRequest. + + 告警的开始时间,默认当前时间的前一个小时,13位时间戳 + + :param start_time: The start_time of this ListFactoryAlarmInfoRequest. + :type start_time: int + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListFactoryAlarmInfoRequest. + + 告警的最后时间,默认为当前时间,13位时间戳 + + :return: The end_time of this ListFactoryAlarmInfoRequest. + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListFactoryAlarmInfoRequest. + + 告警的最后时间,默认为当前时间,13位时间戳 + + :param end_time: The end_time of this ListFactoryAlarmInfoRequest. + :type end_time: int + """ + self._end_time = end_time + + @property + def offset(self): + """Gets the offset of this ListFactoryAlarmInfoRequest. + + 分页的起始页,默认值为0。取值范围大于等于0。 + + :return: The offset of this ListFactoryAlarmInfoRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListFactoryAlarmInfoRequest. + + 分页的起始页,默认值为0。取值范围大于等于0。 + + :param offset: The offset of this ListFactoryAlarmInfoRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListFactoryAlarmInfoRequest. + + 分页返回结果,指定每页最大记录数。默认值10 + + :return: The limit of this ListFactoryAlarmInfoRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListFactoryAlarmInfoRequest. + + 分页返回结果,指定每页最大记录数。默认值10 + + :param limit: The limit of this ListFactoryAlarmInfoRequest. + :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, ListFactoryAlarmInfoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_alarm_info_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_alarm_info_response.py new file mode 100644 index 000000000..8464ff457 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_alarm_info_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 ListFactoryAlarmInfoResponse(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 = { + 'alarm_info': 'list[AlarmInfoResponseAlarmInfo]', + 'total': 'int' + } + + attribute_map = { + 'alarm_info': 'alarm_info', + 'total': 'total' + } + + def __init__(self, alarm_info=None, total=None): + """ListFactoryAlarmInfoResponse + + The model defined in huaweicloud sdk + + :param alarm_info: 通知记录信息 + :type alarm_info: list[:class:`huaweicloudsdkdataartsstudio.v1.AlarmInfoResponseAlarmInfo`] + :param total: 通知记录数量 + :type total: int + """ + + super(ListFactoryAlarmInfoResponse, self).__init__() + + self._alarm_info = None + self._total = None + self.discriminator = None + + if alarm_info is not None: + self.alarm_info = alarm_info + if total is not None: + self.total = total + + @property + def alarm_info(self): + """Gets the alarm_info of this ListFactoryAlarmInfoResponse. + + 通知记录信息 + + :return: The alarm_info of this ListFactoryAlarmInfoResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.AlarmInfoResponseAlarmInfo`] + """ + return self._alarm_info + + @alarm_info.setter + def alarm_info(self, alarm_info): + """Sets the alarm_info of this ListFactoryAlarmInfoResponse. + + 通知记录信息 + + :param alarm_info: The alarm_info of this ListFactoryAlarmInfoResponse. + :type alarm_info: list[:class:`huaweicloudsdkdataartsstudio.v1.AlarmInfoResponseAlarmInfo`] + """ + self._alarm_info = alarm_info + + @property + def total(self): + """Gets the total of this ListFactoryAlarmInfoResponse. + + 通知记录数量 + + :return: The total of this ListFactoryAlarmInfoResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListFactoryAlarmInfoResponse. + + 通知记录数量 + + :param total: The total of this ListFactoryAlarmInfoResponse. + :type total: int + """ + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFactoryAlarmInfoResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_jobs_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_jobs_request.py new file mode 100644 index 000000000..9415b26aa --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_jobs_request.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFactoryJobsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'workspace': 'str', + 'limit': 'int', + 'offset': 'int', + 'job_type': 'str', + 'job_name': 'str', + 'tags': 'str' + } + + attribute_map = { + 'workspace': 'workspace', + 'limit': 'limit', + 'offset': 'offset', + 'job_type': 'job_type', + 'job_name': 'job_name', + 'tags': 'tags' + } + + def __init__(self, workspace=None, limit=None, offset=None, job_type=None, job_name=None, tags=None): + """ListFactoryJobsRequest + + The model defined in huaweicloud sdk + + :param workspace: DataArts Studio工作空间ID + :type workspace: str + :param limit: 分页参数:每页限定数量 + :type limit: int + :param offset: 分页参数:页数 + :type offset: int + :param job_type: 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + :type job_type: str + :param job_name: 作业名称 + :type job_name: str + :param tags: 作业标签 + :type tags: str + """ + + + + self._workspace = None + self._limit = None + self._offset = None + self._job_type = None + self._job_name = None + self._tags = None + self.discriminator = None + + self.workspace = workspace + if limit is not None: + self.limit = limit + if offset is not None: + self.offset = offset + if job_type is not None: + self.job_type = job_type + if job_name is not None: + self.job_name = job_name + if tags is not None: + self.tags = tags + + @property + def workspace(self): + """Gets the workspace of this ListFactoryJobsRequest. + + DataArts Studio工作空间ID + + :return: The workspace of this ListFactoryJobsRequest. + :rtype: str + """ + return self._workspace + + @workspace.setter + def workspace(self, workspace): + """Sets the workspace of this ListFactoryJobsRequest. + + DataArts Studio工作空间ID + + :param workspace: The workspace of this ListFactoryJobsRequest. + :type workspace: str + """ + self._workspace = workspace + + @property + def limit(self): + """Gets the limit of this ListFactoryJobsRequest. + + 分页参数:每页限定数量 + + :return: The limit of this ListFactoryJobsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListFactoryJobsRequest. + + 分页参数:每页限定数量 + + :param limit: The limit of this ListFactoryJobsRequest. + :type limit: int + """ + self._limit = limit + + @property + def offset(self): + """Gets the offset of this ListFactoryJobsRequest. + + 分页参数:页数 + + :return: The offset of this ListFactoryJobsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListFactoryJobsRequest. + + 分页参数:页数 + + :param offset: The offset of this ListFactoryJobsRequest. + :type offset: int + """ + self._offset = offset + + @property + def job_type(self): + """Gets the job_type of this ListFactoryJobsRequest. + + 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + + :return: The job_type of this ListFactoryJobsRequest. + :rtype: str + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this ListFactoryJobsRequest. + + 作业类型: - REAL_TIME: 实时处理 - BATCH: 批处理 + + :param job_type: The job_type of this ListFactoryJobsRequest. + :type job_type: str + """ + self._job_type = job_type + + @property + def job_name(self): + """Gets the job_name of this ListFactoryJobsRequest. + + 作业名称 + + :return: The job_name of this ListFactoryJobsRequest. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """Sets the job_name of this ListFactoryJobsRequest. + + 作业名称 + + :param job_name: The job_name of this ListFactoryJobsRequest. + :type job_name: str + """ + self._job_name = job_name + + @property + def tags(self): + """Gets the tags of this ListFactoryJobsRequest. + + 作业标签 + + :return: The tags of this ListFactoryJobsRequest. + :rtype: str + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this ListFactoryJobsRequest. + + 作业标签 + + :param tags: The tags of this ListFactoryJobsRequest. + :type tags: str + """ + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFactoryJobsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_jobs_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_jobs_response.py new file mode 100644 index 000000000..5385d2fe9 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/list_factory_jobs_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFactoryJobsResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'total': 'int', + 'jobs': 'list[JobResp]' + } + + attribute_map = { + 'total': 'total', + 'jobs': 'jobs' + } + + def __init__(self, total=None, jobs=None): + """ListFactoryJobsResponse + + The model defined in huaweicloud sdk + + :param total: 作业数量 + :type total: int + :param jobs: 作业列表 + :type jobs: list[:class:`huaweicloudsdkdataartsstudio.v1.JobResp`] + """ + + super(ListFactoryJobsResponse, self).__init__() + + self._total = None + self._jobs = None + self.discriminator = None + + if total is not None: + self.total = total + if jobs is not None: + self.jobs = jobs + + @property + def total(self): + """Gets the total of this ListFactoryJobsResponse. + + 作业数量 + + :return: The total of this ListFactoryJobsResponse. + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this ListFactoryJobsResponse. + + 作业数量 + + :param total: The total of this ListFactoryJobsResponse. + :type total: int + """ + self._total = total + + @property + def jobs(self): + """Gets the jobs of this ListFactoryJobsResponse. + + 作业列表 + + :return: The jobs of this ListFactoryJobsResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.JobResp`] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """Sets the jobs of this ListFactoryJobsResponse. + + 作业列表 + + :param jobs: The jobs of this ListFactoryJobsResponse. + :type jobs: list[:class:`huaweicloudsdkdataartsstudio.v1.JobResp`] + """ + self._jobs = jobs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListFactoryJobsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/location.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/location.py new file mode 100644 index 000000000..bca9bf211 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/location.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Location: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'str', + 'y': 'str' + } + + attribute_map = { + 'x': 'x', + 'y': 'y' + } + + def __init__(self, x=None, y=None): + """Location + + The model defined in huaweicloud sdk + + :param x: 节点在作业画布上的横轴位置 + :type x: str + :param y: 节点在作业画布上的纵轴位置 + :type y: str + """ + + + + self._x = None + self._y = None + self.discriminator = None + + self.x = x + self.y = y + + @property + def x(self): + """Gets the x of this Location. + + 节点在作业画布上的横轴位置 + + :return: The x of this Location. + :rtype: str + """ + return self._x + + @x.setter + def x(self, x): + """Sets the x of this Location. + + 节点在作业画布上的横轴位置 + + :param x: The x of this Location. + :type x: str + """ + self._x = x + + @property + def y(self): + """Gets the y of this Location. + + 节点在作业画布上的纵轴位置 + + :return: The y of this Location. + :rtype: str + """ + return self._y + + @y.setter + def y(self, y): + """Sets the y of this Location. + + 节点在作业画布上的纵轴位置 + + :param y: The y of this Location. + :type y: str + """ + 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, Location): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/model_property.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/model_property.py new file mode 100644 index 000000000..f10cb2e73 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/model_property.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ModelProperty: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): + """ModelProperty + + The model defined in huaweicloud sdk + + :param name: 属性名称。 1.SQL类 HiveSQL、SparkSQL、DWSSQL、DLISQL、RDSSQL: 取值如下: scriptName,脚本名称 database,数据库名称 connectionName,连接名称 scriptArgs,脚本参数,key、value形式,多个参数间用\\n分隔,例如key1=value1\\nkey2=value2 2.Host类 Shell Python 取值如下: scriptName,脚本名称 connectionName,连接名称 arguments,脚本参数,key、value形式,多个参数间用\\n分隔,例如key1=value1\\nkey2=value2 3.CDMJob 取值如下: clusterName,集群名称 jobName,作业名称 4.DISTransferTask 取值如下: streamName,DIS通道名称 destinationType,转储目标 duplicatePolicy,转储任务重名处理策略 configuration,转储配置 5.OBSManager 取值如下: action,动作类型 path,OBS路径 6.RESTAPI 取值如下: url,URL地址 method,HTTP方法 headers, HTTP消息头,每个消息头的格式为<消息头名称>=<值>,多个消息头之间使用换行符分割。 body, 消息体 7.SMN 取值如下: topic,SMN主题URN subject,消息标题,给邮箱订阅者发送邮件时作为邮件主题。 messageType, 消息类型 message, 发送的消息。 8.MRSSpark、MapReduce 取值如下: clusterName,集群名称 jobName,作业名称 resourcePath,自定义Jar包OBS资源路径 parameters, Jar包自定义参数;对于开发的自定义Jar包,可以在此处对参数进行输入替换 input,输入路径 output,输出路径 programParameter,运行程序参数;允许多个key:value,多个参数要用竖线隔开。 9.DLISpark 取值如下: clusterName,集群名称 jobName,作业名称 resourceType,DLI作业运行资源类型 sparkConfig,Spark作业运行参数 jobClass,主类名称。当应用程序类型为“.jar”时,主类名称不能为空。 jarArgs,主类入口参数 resourcePath,JAR包资源路径 10.MRSFlink 取值如下: clusterName,集群名称 jobName,作业名称 flinkJobType,flink作业类型;FLink SQL作业或Flink JAR作业。 flinkJobProcessType,flink作业处理模式;批处理模式或流处理模式。 scriptName,脚本名称;Flink SQL关联的SQL脚本。 resourcePath,JAR包资源路径 input,输入路径 output,输出路径 programParameter,运行程序参数;允许多个key:value,多个参数要用竖线隔开。 11.MRS HetuEngine 取值如下: clusterName,集群名称 jobName,作业名称 statementOrScript,脚本类型;SQL语句或关联SQL脚本 statement,自定义的SQL内容。 scriptName,选择关联的SQL脚本。 Data Warehouse,指定HetuEngine服务所需数据连接。 Schema,使用HetuEngine服务所要访问的数据源schema名称。 Database,使用HetuEngine服务所要访问的数据源database名称。 Queue,使用HetuEngine服务所需资源队列名称。 + :type name: str + :param value: 属性值 + :type value: str + """ + + + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this ModelProperty. + + 属性名称。 1.SQL类 HiveSQL、SparkSQL、DWSSQL、DLISQL、RDSSQL: 取值如下: scriptName,脚本名称 database,数据库名称 connectionName,连接名称 scriptArgs,脚本参数,key、value形式,多个参数间用\\n分隔,例如key1=value1\\nkey2=value2 2.Host类 Shell Python 取值如下: scriptName,脚本名称 connectionName,连接名称 arguments,脚本参数,key、value形式,多个参数间用\\n分隔,例如key1=value1\\nkey2=value2 3.CDMJob 取值如下: clusterName,集群名称 jobName,作业名称 4.DISTransferTask 取值如下: streamName,DIS通道名称 destinationType,转储目标 duplicatePolicy,转储任务重名处理策略 configuration,转储配置 5.OBSManager 取值如下: action,动作类型 path,OBS路径 6.RESTAPI 取值如下: url,URL地址 method,HTTP方法 headers, HTTP消息头,每个消息头的格式为<消息头名称>=<值>,多个消息头之间使用换行符分割。 body, 消息体 7.SMN 取值如下: topic,SMN主题URN subject,消息标题,给邮箱订阅者发送邮件时作为邮件主题。 messageType, 消息类型 message, 发送的消息。 8.MRSSpark、MapReduce 取值如下: clusterName,集群名称 jobName,作业名称 resourcePath,自定义Jar包OBS资源路径 parameters, Jar包自定义参数;对于开发的自定义Jar包,可以在此处对参数进行输入替换 input,输入路径 output,输出路径 programParameter,运行程序参数;允许多个key:value,多个参数要用竖线隔开。 9.DLISpark 取值如下: clusterName,集群名称 jobName,作业名称 resourceType,DLI作业运行资源类型 sparkConfig,Spark作业运行参数 jobClass,主类名称。当应用程序类型为“.jar”时,主类名称不能为空。 jarArgs,主类入口参数 resourcePath,JAR包资源路径 10.MRSFlink 取值如下: clusterName,集群名称 jobName,作业名称 flinkJobType,flink作业类型;FLink SQL作业或Flink JAR作业。 flinkJobProcessType,flink作业处理模式;批处理模式或流处理模式。 scriptName,脚本名称;Flink SQL关联的SQL脚本。 resourcePath,JAR包资源路径 input,输入路径 output,输出路径 programParameter,运行程序参数;允许多个key:value,多个参数要用竖线隔开。 11.MRS HetuEngine 取值如下: clusterName,集群名称 jobName,作业名称 statementOrScript,脚本类型;SQL语句或关联SQL脚本 statement,自定义的SQL内容。 scriptName,选择关联的SQL脚本。 Data Warehouse,指定HetuEngine服务所需数据连接。 Schema,使用HetuEngine服务所要访问的数据源schema名称。 Database,使用HetuEngine服务所要访问的数据源database名称。 Queue,使用HetuEngine服务所需资源队列名称。 + + :return: The name of this ModelProperty. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ModelProperty. + + 属性名称。 1.SQL类 HiveSQL、SparkSQL、DWSSQL、DLISQL、RDSSQL: 取值如下: scriptName,脚本名称 database,数据库名称 connectionName,连接名称 scriptArgs,脚本参数,key、value形式,多个参数间用\\n分隔,例如key1=value1\\nkey2=value2 2.Host类 Shell Python 取值如下: scriptName,脚本名称 connectionName,连接名称 arguments,脚本参数,key、value形式,多个参数间用\\n分隔,例如key1=value1\\nkey2=value2 3.CDMJob 取值如下: clusterName,集群名称 jobName,作业名称 4.DISTransferTask 取值如下: streamName,DIS通道名称 destinationType,转储目标 duplicatePolicy,转储任务重名处理策略 configuration,转储配置 5.OBSManager 取值如下: action,动作类型 path,OBS路径 6.RESTAPI 取值如下: url,URL地址 method,HTTP方法 headers, HTTP消息头,每个消息头的格式为<消息头名称>=<值>,多个消息头之间使用换行符分割。 body, 消息体 7.SMN 取值如下: topic,SMN主题URN subject,消息标题,给邮箱订阅者发送邮件时作为邮件主题。 messageType, 消息类型 message, 发送的消息。 8.MRSSpark、MapReduce 取值如下: clusterName,集群名称 jobName,作业名称 resourcePath,自定义Jar包OBS资源路径 parameters, Jar包自定义参数;对于开发的自定义Jar包,可以在此处对参数进行输入替换 input,输入路径 output,输出路径 programParameter,运行程序参数;允许多个key:value,多个参数要用竖线隔开。 9.DLISpark 取值如下: clusterName,集群名称 jobName,作业名称 resourceType,DLI作业运行资源类型 sparkConfig,Spark作业运行参数 jobClass,主类名称。当应用程序类型为“.jar”时,主类名称不能为空。 jarArgs,主类入口参数 resourcePath,JAR包资源路径 10.MRSFlink 取值如下: clusterName,集群名称 jobName,作业名称 flinkJobType,flink作业类型;FLink SQL作业或Flink JAR作业。 flinkJobProcessType,flink作业处理模式;批处理模式或流处理模式。 scriptName,脚本名称;Flink SQL关联的SQL脚本。 resourcePath,JAR包资源路径 input,输入路径 output,输出路径 programParameter,运行程序参数;允许多个key:value,多个参数要用竖线隔开。 11.MRS HetuEngine 取值如下: clusterName,集群名称 jobName,作业名称 statementOrScript,脚本类型;SQL语句或关联SQL脚本 statement,自定义的SQL内容。 scriptName,选择关联的SQL脚本。 Data Warehouse,指定HetuEngine服务所需数据连接。 Schema,使用HetuEngine服务所要访问的数据源schema名称。 Database,使用HetuEngine服务所要访问的数据源database名称。 Queue,使用HetuEngine服务所需资源队列名称。 + + :param name: The name of this ModelProperty. + :type name: str + """ + self._name = name + + @property + def value(self): + """Gets the value of this ModelProperty. + + 属性值 + + :return: The value of this ModelProperty. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ModelProperty. + + 属性值 + + :param value: The value of this ModelProperty. + :type value: str + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ModelProperty): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/node.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/node.py new file mode 100644 index 000000000..f6a288fc3 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/node.py @@ -0,0 +1,476 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Node: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'location': 'Location', + 'pre_node_names': 'list[str]', + 'conditions': 'list[Condition]', + 'properties': 'list[ModelProperty]', + 'polling_interval': 'int', + 'exec_time_out_retry': 'str', + 'max_execution_time': 'int', + 'retry_times': 'int', + 'retry_interval': 'int', + 'fail_policy': 'str', + 'event_trigger': 'Event', + 'cron_trigger': 'Cron' + } + + attribute_map = { + 'name': 'name', + 'type': 'type', + 'location': 'location', + 'pre_node_names': 'pre_node_names', + 'conditions': 'conditions', + 'properties': 'properties', + 'polling_interval': 'polling_interval', + 'exec_time_out_retry': 'exec_time_out_retry', + 'max_execution_time': 'max_execution_time', + 'retry_times': 'retry_times', + 'retry_interval': 'retry_interval', + 'fail_policy': 'fail_policy', + 'event_trigger': 'event_trigger', + 'cron_trigger': 'cron_trigger' + } + + def __init__(self, name=None, type=None, location=None, pre_node_names=None, conditions=None, properties=None, polling_interval=None, exec_time_out_retry=None, max_execution_time=None, retry_times=None, retry_interval=None, fail_policy=None, event_trigger=None, cron_trigger=None): + """Node + + The model defined in huaweicloud sdk + + :param name: 节点名称。只能包含六种字符:英文字母、数字、中文、中划线、下划线和点号。同一个作业中节点名称不能重复。 + :type name: str + :param type: 节点类型: - HiveSQL:执行Hive SQL脚本 - SparkSQL:执行Spark SQL脚本 - DWSSQL:执行DWS SQL脚本 - DLISQL:执行DLI SQL脚本 - RDSSQL:执行RDS SQL脚本 - Shell:执行Shell脚本 - Python:执行Python脚本 - DISTransferTask:创建DIS转储任务 - CDMJob:执行CDM作业 - OBSManager:执行OBS相关操作 - Dummy:虚拟节点 - RESTAPI:执行Rest API调用 - DLISpark:执行DLI Spark作业 - SMN:执行SMN通知 - MRSSpark:执行MRS Spark作业 - MapReduce:执行MapReduce作业 - MRSFlink:执行MRS服务的FLlink作业 - MRSHetuEngine: 执行MRS服务的HetuEngine作业 + :type type: str + :param location: + :type location: :class:`huaweicloudsdkdataartsstudio.v1.Location` + :param pre_node_names: 本节点依赖的前面的节点名称列表。 + :type pre_node_names: list[str] + :param conditions: 节点执行条件,如果配置此参数,本节点是否执行由condition的字段expression所保存的EL表达式计算结果决定 + :type conditions: list[:class:`huaweicloudsdkdataartsstudio.v1.Condition`] + :param properties: 节点的属性。 + :type properties: list[:class:`huaweicloudsdkdataartsstudio.v1.ModelProperty`] + :param polling_interval: 轮询节点执行结果时间间隔。单位:秒。 + :type polling_interval: int + :param exec_time_out_retry: 节点是否超时重试 + :type exec_time_out_retry: str + :param max_execution_time: 节点最大执行时间,如果节点在最大执行时间内还未执行完成,会把节点置为失败状态。单位:分钟。 + :type max_execution_time: int + :param retry_times: 节点失败重试次数。0代表不重试。 + :type retry_times: int + :param retry_interval: 失败重试时间间隔。单位:秒。 + :type retry_interval: int + :param fail_policy: 作业失败策略: - FAIL:终止当前作业执行计划 - IGNORE:继续执行下一个节点 - SUSPEND:挂起当前作业执行计划 - FAIL_CHILD: 终止后续节点执行计划 + :type fail_policy: str + :param event_trigger: + :type event_trigger: :class:`huaweicloudsdkdataartsstudio.v1.Event` + :param cron_trigger: + :type cron_trigger: :class:`huaweicloudsdkdataartsstudio.v1.Cron` + """ + + + + self._name = None + self._type = None + self._location = None + self._pre_node_names = None + self._conditions = None + self._properties = None + self._polling_interval = None + self._exec_time_out_retry = None + self._max_execution_time = None + self._retry_times = None + self._retry_interval = None + self._fail_policy = None + self._event_trigger = None + self._cron_trigger = None + self.discriminator = None + + self.name = name + self.type = type + self.location = location + if pre_node_names is not None: + self.pre_node_names = pre_node_names + if conditions is not None: + self.conditions = conditions + self.properties = properties + if polling_interval is not None: + self.polling_interval = polling_interval + if exec_time_out_retry is not None: + self.exec_time_out_retry = exec_time_out_retry + if max_execution_time is not None: + self.max_execution_time = max_execution_time + if retry_times is not None: + self.retry_times = retry_times + if retry_interval is not None: + self.retry_interval = retry_interval + if fail_policy is not None: + self.fail_policy = fail_policy + if event_trigger is not None: + self.event_trigger = event_trigger + if cron_trigger is not None: + self.cron_trigger = cron_trigger + + @property + def name(self): + """Gets the name of this Node. + + 节点名称。只能包含六种字符:英文字母、数字、中文、中划线、下划线和点号。同一个作业中节点名称不能重复。 + + :return: The name of this Node. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Node. + + 节点名称。只能包含六种字符:英文字母、数字、中文、中划线、下划线和点号。同一个作业中节点名称不能重复。 + + :param name: The name of this Node. + :type name: str + """ + self._name = name + + @property + def type(self): + """Gets the type of this Node. + + 节点类型: - HiveSQL:执行Hive SQL脚本 - SparkSQL:执行Spark SQL脚本 - DWSSQL:执行DWS SQL脚本 - DLISQL:执行DLI SQL脚本 - RDSSQL:执行RDS SQL脚本 - Shell:执行Shell脚本 - Python:执行Python脚本 - DISTransferTask:创建DIS转储任务 - CDMJob:执行CDM作业 - OBSManager:执行OBS相关操作 - Dummy:虚拟节点 - RESTAPI:执行Rest API调用 - DLISpark:执行DLI Spark作业 - SMN:执行SMN通知 - MRSSpark:执行MRS Spark作业 - MapReduce:执行MapReduce作业 - MRSFlink:执行MRS服务的FLlink作业 - MRSHetuEngine: 执行MRS服务的HetuEngine作业 + + :return: The type of this Node. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Node. + + 节点类型: - HiveSQL:执行Hive SQL脚本 - SparkSQL:执行Spark SQL脚本 - DWSSQL:执行DWS SQL脚本 - DLISQL:执行DLI SQL脚本 - RDSSQL:执行RDS SQL脚本 - Shell:执行Shell脚本 - Python:执行Python脚本 - DISTransferTask:创建DIS转储任务 - CDMJob:执行CDM作业 - OBSManager:执行OBS相关操作 - Dummy:虚拟节点 - RESTAPI:执行Rest API调用 - DLISpark:执行DLI Spark作业 - SMN:执行SMN通知 - MRSSpark:执行MRS Spark作业 - MapReduce:执行MapReduce作业 - MRSFlink:执行MRS服务的FLlink作业 - MRSHetuEngine: 执行MRS服务的HetuEngine作业 + + :param type: The type of this Node. + :type type: str + """ + self._type = type + + @property + def location(self): + """Gets the location of this Node. + + :return: The location of this Node. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Location` + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this Node. + + :param location: The location of this Node. + :type location: :class:`huaweicloudsdkdataartsstudio.v1.Location` + """ + self._location = location + + @property + def pre_node_names(self): + """Gets the pre_node_names of this Node. + + 本节点依赖的前面的节点名称列表。 + + :return: The pre_node_names of this Node. + :rtype: list[str] + """ + return self._pre_node_names + + @pre_node_names.setter + def pre_node_names(self, pre_node_names): + """Sets the pre_node_names of this Node. + + 本节点依赖的前面的节点名称列表。 + + :param pre_node_names: The pre_node_names of this Node. + :type pre_node_names: list[str] + """ + self._pre_node_names = pre_node_names + + @property + def conditions(self): + """Gets the conditions of this Node. + + 节点执行条件,如果配置此参数,本节点是否执行由condition的字段expression所保存的EL表达式计算结果决定 + + :return: The conditions of this Node. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.Condition`] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """Sets the conditions of this Node. + + 节点执行条件,如果配置此参数,本节点是否执行由condition的字段expression所保存的EL表达式计算结果决定 + + :param conditions: The conditions of this Node. + :type conditions: list[:class:`huaweicloudsdkdataartsstudio.v1.Condition`] + """ + self._conditions = conditions + + @property + def properties(self): + """Gets the properties of this Node. + + 节点的属性。 + + :return: The properties of this Node. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.ModelProperty`] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """Sets the properties of this Node. + + 节点的属性。 + + :param properties: The properties of this Node. + :type properties: list[:class:`huaweicloudsdkdataartsstudio.v1.ModelProperty`] + """ + self._properties = properties + + @property + def polling_interval(self): + """Gets the polling_interval of this Node. + + 轮询节点执行结果时间间隔。单位:秒。 + + :return: The polling_interval of this Node. + :rtype: int + """ + return self._polling_interval + + @polling_interval.setter + def polling_interval(self, polling_interval): + """Sets the polling_interval of this Node. + + 轮询节点执行结果时间间隔。单位:秒。 + + :param polling_interval: The polling_interval of this Node. + :type polling_interval: int + """ + self._polling_interval = polling_interval + + @property + def exec_time_out_retry(self): + """Gets the exec_time_out_retry of this Node. + + 节点是否超时重试 + + :return: The exec_time_out_retry of this Node. + :rtype: str + """ + return self._exec_time_out_retry + + @exec_time_out_retry.setter + def exec_time_out_retry(self, exec_time_out_retry): + """Sets the exec_time_out_retry of this Node. + + 节点是否超时重试 + + :param exec_time_out_retry: The exec_time_out_retry of this Node. + :type exec_time_out_retry: str + """ + self._exec_time_out_retry = exec_time_out_retry + + @property + def max_execution_time(self): + """Gets the max_execution_time of this Node. + + 节点最大执行时间,如果节点在最大执行时间内还未执行完成,会把节点置为失败状态。单位:分钟。 + + :return: The max_execution_time of this Node. + :rtype: int + """ + return self._max_execution_time + + @max_execution_time.setter + def max_execution_time(self, max_execution_time): + """Sets the max_execution_time of this Node. + + 节点最大执行时间,如果节点在最大执行时间内还未执行完成,会把节点置为失败状态。单位:分钟。 + + :param max_execution_time: The max_execution_time of this Node. + :type max_execution_time: int + """ + self._max_execution_time = max_execution_time + + @property + def retry_times(self): + """Gets the retry_times of this Node. + + 节点失败重试次数。0代表不重试。 + + :return: The retry_times of this Node. + :rtype: int + """ + return self._retry_times + + @retry_times.setter + def retry_times(self, retry_times): + """Sets the retry_times of this Node. + + 节点失败重试次数。0代表不重试。 + + :param retry_times: The retry_times of this Node. + :type retry_times: int + """ + self._retry_times = retry_times + + @property + def retry_interval(self): + """Gets the retry_interval of this Node. + + 失败重试时间间隔。单位:秒。 + + :return: The retry_interval of this Node. + :rtype: int + """ + return self._retry_interval + + @retry_interval.setter + def retry_interval(self, retry_interval): + """Sets the retry_interval of this Node. + + 失败重试时间间隔。单位:秒。 + + :param retry_interval: The retry_interval of this Node. + :type retry_interval: int + """ + self._retry_interval = retry_interval + + @property + def fail_policy(self): + """Gets the fail_policy of this Node. + + 作业失败策略: - FAIL:终止当前作业执行计划 - IGNORE:继续执行下一个节点 - SUSPEND:挂起当前作业执行计划 - FAIL_CHILD: 终止后续节点执行计划 + + :return: The fail_policy of this Node. + :rtype: str + """ + return self._fail_policy + + @fail_policy.setter + def fail_policy(self, fail_policy): + """Sets the fail_policy of this Node. + + 作业失败策略: - FAIL:终止当前作业执行计划 - IGNORE:继续执行下一个节点 - SUSPEND:挂起当前作业执行计划 - FAIL_CHILD: 终止后续节点执行计划 + + :param fail_policy: The fail_policy of this Node. + :type fail_policy: str + """ + self._fail_policy = fail_policy + + @property + def event_trigger(self): + """Gets the event_trigger of this Node. + + :return: The event_trigger of this Node. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Event` + """ + return self._event_trigger + + @event_trigger.setter + def event_trigger(self, event_trigger): + """Sets the event_trigger of this Node. + + :param event_trigger: The event_trigger of this Node. + :type event_trigger: :class:`huaweicloudsdkdataartsstudio.v1.Event` + """ + self._event_trigger = event_trigger + + @property + def cron_trigger(self): + """Gets the cron_trigger of this Node. + + :return: The cron_trigger of this Node. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Cron` + """ + return self._cron_trigger + + @cron_trigger.setter + def cron_trigger(self, cron_trigger): + """Sets the cron_trigger of this Node. + + :param cron_trigger: The cron_trigger of this Node. + :type cron_trigger: :class:`huaweicloudsdkdataartsstudio.v1.Cron` + """ + self._cron_trigger = cron_trigger + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Node): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/schedule.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/schedule.py new file mode 100644 index 000000000..9a0a749ca --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/schedule.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Schedule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'type': 'str', + 'cron': 'Cron', + 'event': 'Event' + } + + attribute_map = { + 'type': 'type', + 'cron': 'cron', + 'event': 'event' + } + + def __init__(self, type=None, cron=None, event=None): + """Schedule + + The model defined in huaweicloud sdk + + :param type: 调度类型 - EXECUTE_ONCE: 作业立即运行,只运行一次。 - CRON: 作业按指定频率周期执行。 - EVENT: 根据事件触发执行。 + :type type: str + :param cron: + :type cron: :class:`huaweicloudsdkdataartsstudio.v1.Cron` + :param event: + :type event: :class:`huaweicloudsdkdataartsstudio.v1.Event` + """ + + + + self._type = None + self._cron = None + self._event = None + self.discriminator = None + + self.type = type + if cron is not None: + self.cron = cron + if event is not None: + self.event = event + + @property + def type(self): + """Gets the type of this Schedule. + + 调度类型 - EXECUTE_ONCE: 作业立即运行,只运行一次。 - CRON: 作业按指定频率周期执行。 - EVENT: 根据事件触发执行。 + + :return: The type of this Schedule. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Schedule. + + 调度类型 - EXECUTE_ONCE: 作业立即运行,只运行一次。 - CRON: 作业按指定频率周期执行。 - EVENT: 根据事件触发执行。 + + :param type: The type of this Schedule. + :type type: str + """ + self._type = type + + @property + def cron(self): + """Gets the cron of this Schedule. + + :return: The cron of this Schedule. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Cron` + """ + return self._cron + + @cron.setter + def cron(self, cron): + """Sets the cron of this Schedule. + + :param cron: The cron of this Schedule. + :type cron: :class:`huaweicloudsdkdataartsstudio.v1.Cron` + """ + self._cron = cron + + @property + def event(self): + """Gets the event of this Schedule. + + :return: The event of this Schedule. + :rtype: :class:`huaweicloudsdkdataartsstudio.v1.Event` + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this Schedule. + + :param event: The event of this Schedule. + :type event: :class:`huaweicloudsdkdataartsstudio.v1.Event` + """ + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Schedule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_request.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_request.py new file mode 100644 index 000000000..052b9f40b --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_request.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowLineageRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'workspace': 'str', + 'guid': 'str', + 'direction': 'str', + 'depth': 'int' + } + + attribute_map = { + 'workspace': 'workspace', + 'guid': 'guid', + 'direction': 'direction', + 'depth': 'depth' + } + + def __init__(self, workspace=None, guid=None, direction=None, depth=None): + """ShowLineageRequest + + The model defined in huaweicloud sdk + + :param workspace: DataArts Studio工作空间ID + :type workspace: str + :param guid: 资产guid + :type guid: str + :param direction: 查询方向,取值范围:BOTH、IN、OUT。默认BOTH + :type direction: str + :param depth: 血缘链路长度,默认值5 + :type depth: int + """ + + + + self._workspace = None + self._guid = None + self._direction = None + self._depth = None + self.discriminator = None + + self.workspace = workspace + self.guid = guid + if direction is not None: + self.direction = direction + if depth is not None: + self.depth = depth + + @property + def workspace(self): + """Gets the workspace of this ShowLineageRequest. + + DataArts Studio工作空间ID + + :return: The workspace of this ShowLineageRequest. + :rtype: str + """ + return self._workspace + + @workspace.setter + def workspace(self, workspace): + """Sets the workspace of this ShowLineageRequest. + + DataArts Studio工作空间ID + + :param workspace: The workspace of this ShowLineageRequest. + :type workspace: str + """ + self._workspace = workspace + + @property + def guid(self): + """Gets the guid of this ShowLineageRequest. + + 资产guid + + :return: The guid of this ShowLineageRequest. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this ShowLineageRequest. + + 资产guid + + :param guid: The guid of this ShowLineageRequest. + :type guid: str + """ + self._guid = guid + + @property + def direction(self): + """Gets the direction of this ShowLineageRequest. + + 查询方向,取值范围:BOTH、IN、OUT。默认BOTH + + :return: The direction of this ShowLineageRequest. + :rtype: str + """ + return self._direction + + @direction.setter + def direction(self, direction): + """Sets the direction of this ShowLineageRequest. + + 查询方向,取值范围:BOTH、IN、OUT。默认BOTH + + :param direction: The direction of this ShowLineageRequest. + :type direction: str + """ + self._direction = direction + + @property + def depth(self): + """Gets the depth of this ShowLineageRequest. + + 血缘链路长度,默认值5 + + :return: The depth of this ShowLineageRequest. + :rtype: int + """ + return self._depth + + @depth.setter + def depth(self, depth): + """Sets the depth of this ShowLineageRequest. + + 血缘链路长度,默认值5 + + :param depth: The depth of this ShowLineageRequest. + :type depth: int + """ + self._depth = depth + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowLineageRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_response.py b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_response.py new file mode 100644 index 000000000..b163f6d27 --- /dev/null +++ b/huaweicloud-sdk-dataartsstudio/huaweicloudsdkdataartsstudio/v1/model/show_lineage_response.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowLineageResponse(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 = { + 'base_entity_guid': 'str', + 'guid_entity_map': 'object', + 'relations': 'list[LineageRelation]', + 'referred_entities': 'object' + } + + attribute_map = { + 'base_entity_guid': 'base_entity_guid', + 'guid_entity_map': 'guid_entity_map', + 'relations': 'relations', + 'referred_entities': 'referred_entities' + } + + def __init__(self, base_entity_guid=None, guid_entity_map=None, relations=None, referred_entities=None): + """ShowLineageResponse + + The model defined in huaweicloud sdk + + :param base_entity_guid: 当前资产的guid + :type base_entity_guid: str + :param guid_entity_map: 实体集合Map(String, OpenEntityHeader) + :type guid_entity_map: object + :param relations: 血缘关系 + :type relations: list[:class:`huaweicloudsdkdataartsstudio.v1.LineageRelation`] + :param referred_entities: 相关实体集合Map(String, OpenEntity) + :type referred_entities: object + """ + + super(ShowLineageResponse, self).__init__() + + self._base_entity_guid = None + self._guid_entity_map = None + self._relations = None + self._referred_entities = None + self.discriminator = None + + if base_entity_guid is not None: + self.base_entity_guid = base_entity_guid + if guid_entity_map is not None: + self.guid_entity_map = guid_entity_map + if relations is not None: + self.relations = relations + if referred_entities is not None: + self.referred_entities = referred_entities + + @property + def base_entity_guid(self): + """Gets the base_entity_guid of this ShowLineageResponse. + + 当前资产的guid + + :return: The base_entity_guid of this ShowLineageResponse. + :rtype: str + """ + return self._base_entity_guid + + @base_entity_guid.setter + def base_entity_guid(self, base_entity_guid): + """Sets the base_entity_guid of this ShowLineageResponse. + + 当前资产的guid + + :param base_entity_guid: The base_entity_guid of this ShowLineageResponse. + :type base_entity_guid: str + """ + self._base_entity_guid = base_entity_guid + + @property + def guid_entity_map(self): + """Gets the guid_entity_map of this ShowLineageResponse. + + 实体集合Map(String, OpenEntityHeader) + + :return: The guid_entity_map of this ShowLineageResponse. + :rtype: object + """ + return self._guid_entity_map + + @guid_entity_map.setter + def guid_entity_map(self, guid_entity_map): + """Sets the guid_entity_map of this ShowLineageResponse. + + 实体集合Map(String, OpenEntityHeader) + + :param guid_entity_map: The guid_entity_map of this ShowLineageResponse. + :type guid_entity_map: object + """ + self._guid_entity_map = guid_entity_map + + @property + def relations(self): + """Gets the relations of this ShowLineageResponse. + + 血缘关系 + + :return: The relations of this ShowLineageResponse. + :rtype: list[:class:`huaweicloudsdkdataartsstudio.v1.LineageRelation`] + """ + return self._relations + + @relations.setter + def relations(self, relations): + """Sets the relations of this ShowLineageResponse. + + 血缘关系 + + :param relations: The relations of this ShowLineageResponse. + :type relations: list[:class:`huaweicloudsdkdataartsstudio.v1.LineageRelation`] + """ + self._relations = relations + + @property + def referred_entities(self): + """Gets the referred_entities of this ShowLineageResponse. + + 相关实体集合Map(String, OpenEntity) + + :return: The referred_entities of this ShowLineageResponse. + :rtype: object + """ + return self._referred_entities + + @referred_entities.setter + def referred_entities(self, referred_entities): + """Sets the referred_entities of this ShowLineageResponse. + + 相关实体集合Map(String, OpenEntity) + + :param referred_entities: The referred_entities of this ShowLineageResponse. + :type referred_entities: object + """ + self._referred_entities = referred_entities + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowLineageResponse): + return False + + return self.__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 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dataartsstudio/requirements.txt +++ b/huaweicloud-sdk-dataartsstudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dataartsstudio/setup.py b/huaweicloud-sdk-dataartsstudio/setup.py index 04e4a78e5..ea611775f 100644 --- a/huaweicloud-sdk-dataartsstudio/setup.py +++ b/huaweicloud-sdk-dataartsstudio/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdataartsstudio" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dbss/requirements.txt b/huaweicloud-sdk-dbss/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dbss/requirements.txt +++ b/huaweicloud-sdk-dbss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dbss/setup.py b/huaweicloud-sdk-dbss/setup.py index bb6302469..b0781eb8e 100644 --- a/huaweicloud-sdk-dbss/setup.py +++ b/huaweicloud-sdk-dbss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdbss" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py index 43f91dc5d..d180f489e 100644 --- a/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py +++ b/huaweicloud-sdk-dc/huaweicloudsdkdc/v3/region/dc_region.py @@ -49,6 +49,8 @@ class DcRegion: "https://dcaas.tr-west-1.myhuaweicloud.com") CN_SOUTH_4 = Region("cn-south-4", "https://dcaas.cn-south-4.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://dcaas.me-east-1.myhuaweicloud.com") static_fields = { "af-south-1": AF_SOUTH_1, @@ -71,6 +73,7 @@ class DcRegion: "ap-southeast-4": AP_SOUTHEAST_4, "tr-west-1": TR_WEST_1, "cn-south-4": CN_SOUTH_4, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-dc/requirements.txt b/huaweicloud-sdk-dc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dc/requirements.txt +++ b/huaweicloud-sdk-dc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dc/setup.py b/huaweicloud-sdk-dc/setup.py index 26ef6cbb3..ebb61f1a2 100644 --- a/huaweicloud-sdk-dc/setup.py +++ b/huaweicloud-sdk-dc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py index f4aabd1c9..418dd9477 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/__init__.py @@ -109,6 +109,8 @@ from huaweicloudsdkdcs.v2.model.dim_child import DimChild from huaweicloudsdkdcs.v2.model.domain_name_entity import DomainNameEntity from huaweicloudsdkdcs.v2.model.domain_name_info import DomainNameInfo from huaweicloudsdkdcs.v2.model.download_backup_files_req import DownloadBackupFilesReq +from huaweicloudsdkdcs.v2.model.download_ssl_cert_request import DownloadSslCertRequest +from huaweicloudsdkdcs.v2.model.download_ssl_cert_response import DownloadSslCertResponse from huaweicloudsdkdcs.v2.model.exchange_instance_ip_request import ExchangeInstanceIpRequest from huaweicloudsdkdcs.v2.model.exchange_instance_ip_response import ExchangeInstanceIpResponse from huaweicloudsdkdcs.v2.model.execute_cluster_switchover_request import ExecuteClusterSwitchoverRequest @@ -263,6 +265,8 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotk from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_response import ShowHotkeyTaskDetailsResponse from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest +from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest @@ -330,8 +334,11 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_request import UpdateMigra from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest from huaweicloudsdkdcs.v2.model.update_password_response import UpdatePasswordResponse +from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse +from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest +from huaweicloudsdkdcs.v2.model.update_ssl_switch_response import UpdateSslSwitchResponse from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse from huaweicloudsdkdcs.v2.model.whitelist import Whitelist diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py index 308116a08..8d0652c02 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_async_client.py @@ -1968,6 +1968,71 @@ class DcsAsyncClient(Client): return http_info + def download_ssl_cert_async(self, request): + """下载实例SSL证书 + + 下载实例SSL证书。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DownloadSslCert + :type request: :class:`huaweicloudsdkdcs.v2.DownloadSslCertRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.DownloadSslCertResponse` + """ + http_info = self._download_ssl_cert_http_info(request) + return self._call_api(**http_info) + + def download_ssl_cert_async_invoker(self, request): + http_info = self._download_ssl_cert_http_info(request) + return AsyncInvoker(self, http_info) + + def _download_ssl_cert_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl-certs/download", + "request_type": request.__class__.__name__, + "response_type": "DownloadSslCertResponse" + } + + 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 exchange_instance_ip_async(self, request): """进行IP交换 @@ -5521,6 +5586,71 @@ class DcsAsyncClient(Client): return http_info + def show_instance_ssl_detail_async(self, request): + """查询实例SSL信息 + + 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowInstanceSslDetail + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse` + """ + http_info = self._show_instance_ssl_detail_http_info(request) + return self._call_api(**http_info) + + def show_instance_ssl_detail_async_invoker(self, request): + http_info = self._show_instance_ssl_detail_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_instance_ssl_detail_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceSslDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_job_info_async(self, request): """查询租户Job执行结果 @@ -7188,6 +7318,73 @@ class DcsAsyncClient(Client): return http_info + def update_ssl_switch_async(self, request): + """开启/关闭SSL + + 开启/关闭SSL。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateSslSwitch + :type request: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchResponse` + """ + http_info = self._update_ssl_switch_http_info(request) + return self._call_api(**http_info) + + def update_ssl_switch_async_invoker(self, request): + http_info = self._update_ssl_switch_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_ssl_switch_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", + "request_type": request.__class__.__name__, + "response_type": "UpdateSslSwitchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def validate_deletable_replica_async(self, request): """校验集群副本是否支持删除 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py index 804fc214d..7ea1a8ead 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/dcs_client.py @@ -1968,6 +1968,71 @@ class DcsClient(Client): return http_info + def download_ssl_cert(self, request): + """下载实例SSL证书 + + 下载实例SSL证书。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DownloadSslCert + :type request: :class:`huaweicloudsdkdcs.v2.DownloadSslCertRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.DownloadSslCertResponse` + """ + http_info = self._download_ssl_cert_http_info(request) + return self._call_api(**http_info) + + def download_ssl_cert_invoker(self, request): + http_info = self._download_ssl_cert_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _download_ssl_cert_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl-certs/download", + "request_type": request.__class__.__name__, + "response_type": "DownloadSslCertResponse" + } + + 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 exchange_instance_ip(self, request): """进行IP交换 @@ -5521,6 +5586,71 @@ class DcsClient(Client): return http_info + def show_instance_ssl_detail(self, request): + """查询实例SSL信息 + + 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowInstanceSslDetail + :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse` + """ + http_info = self._show_instance_ssl_detail_http_info(request) + return self._call_api(**http_info) + + def show_instance_ssl_detail_invoker(self, request): + http_info = self._show_instance_ssl_detail_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_instance_ssl_detail_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", + "request_type": request.__class__.__name__, + "response_type": "ShowInstanceSslDetailResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def show_job_info(self, request): """查询租户Job执行结果 @@ -7188,6 +7318,73 @@ class DcsClient(Client): return http_info + def update_ssl_switch(self, request): + """开启/关闭SSL + + 开启/关闭SSL。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateSslSwitch + :type request: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchRequest` + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchResponse` + """ + http_info = self._update_ssl_switch_http_info(request) + return self._call_api(**http_info) + + def update_ssl_switch_invoker(self, request): + http_info = self._update_ssl_switch_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_ssl_switch_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl", + "request_type": request.__class__.__name__, + "response_type": "UpdateSslSwitchResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def validate_deletable_replica(self, request): """校验集群副本是否支持删除 diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py index 8d0859ed3..7226d40a6 100644 --- a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/__init__.py @@ -107,6 +107,8 @@ from huaweicloudsdkdcs.v2.model.dim_child import DimChild from huaweicloudsdkdcs.v2.model.domain_name_entity import DomainNameEntity from huaweicloudsdkdcs.v2.model.domain_name_info import DomainNameInfo from huaweicloudsdkdcs.v2.model.download_backup_files_req import DownloadBackupFilesReq +from huaweicloudsdkdcs.v2.model.download_ssl_cert_request import DownloadSslCertRequest +from huaweicloudsdkdcs.v2.model.download_ssl_cert_response import DownloadSslCertResponse from huaweicloudsdkdcs.v2.model.exchange_instance_ip_request import ExchangeInstanceIpRequest from huaweicloudsdkdcs.v2.model.exchange_instance_ip_response import ExchangeInstanceIpResponse from huaweicloudsdkdcs.v2.model.execute_cluster_switchover_request import ExecuteClusterSwitchoverRequest @@ -261,6 +263,8 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotk from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_response import ShowHotkeyTaskDetailsResponse from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse +from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest +from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest @@ -328,8 +332,11 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_request import UpdateMigra from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest from huaweicloudsdkdcs.v2.model.update_password_response import UpdatePasswordResponse +from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse +from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest +from huaweicloudsdkdcs.v2.model.update_ssl_switch_response import UpdateSslSwitchResponse from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse from huaweicloudsdkdcs.v2.model.whitelist import Whitelist diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/download_ssl_cert_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/download_ssl_cert_request.py new file mode 100644 index 000000000..742b2cf45 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/download_ssl_cert_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DownloadSslCertRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """DownloadSslCertRequest + + 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 DownloadSslCertRequest. + + 实例ID。 + + :return: The instance_id of this DownloadSslCertRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this DownloadSslCertRequest. + + 实例ID。 + + :param instance_id: The instance_id of this DownloadSslCertRequest. + :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, DownloadSslCertRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/download_ssl_cert_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/download_ssl_cert_response.py new file mode 100644 index 000000000..5b3a2c1eb --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/download_ssl_cert_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 DownloadSslCertResponse(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 = { + 'file_name': 'str', + 'link': 'str', + 'bucket_name': 'str' + } + + attribute_map = { + 'file_name': 'file_name', + 'link': 'link', + 'bucket_name': 'bucket_name' + } + + def __init__(self, file_name=None, link=None, bucket_name=None): + """DownloadSslCertResponse + + The model defined in huaweicloud sdk + + :param file_name: SSL证书文件名。 + :type file_name: str + :param link: SSL证书下载链接。 + :type link: str + :param bucket_name: 保存SSL证书的obs桶名。 + :type bucket_name: str + """ + + super(DownloadSslCertResponse, self).__init__() + + self._file_name = None + self._link = None + self._bucket_name = None + self.discriminator = None + + if file_name is not None: + self.file_name = file_name + if link is not None: + self.link = link + if bucket_name is not None: + self.bucket_name = bucket_name + + @property + def file_name(self): + """Gets the file_name of this DownloadSslCertResponse. + + SSL证书文件名。 + + :return: The file_name of this DownloadSslCertResponse. + :rtype: str + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name): + """Sets the file_name of this DownloadSslCertResponse. + + SSL证书文件名。 + + :param file_name: The file_name of this DownloadSslCertResponse. + :type file_name: str + """ + self._file_name = file_name + + @property + def link(self): + """Gets the link of this DownloadSslCertResponse. + + SSL证书下载链接。 + + :return: The link of this DownloadSslCertResponse. + :rtype: str + """ + return self._link + + @link.setter + def link(self, link): + """Sets the link of this DownloadSslCertResponse. + + SSL证书下载链接。 + + :param link: The link of this DownloadSslCertResponse. + :type link: str + """ + self._link = link + + @property + def bucket_name(self): + """Gets the bucket_name of this DownloadSslCertResponse. + + 保存SSL证书的obs桶名。 + + :return: The bucket_name of this DownloadSslCertResponse. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this DownloadSslCertResponse. + + 保存SSL证书的obs桶名。 + + :param bucket_name: The bucket_name of this DownloadSslCertResponse. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DownloadSslCertResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_ssl_detail_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_ssl_detail_request.py new file mode 100644 index 000000000..ddf1ef0de --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_ssl_detail_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceSslDetailRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowInstanceSslDetailRequest + + 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 ShowInstanceSslDetailRequest. + + 实例ID。 + + :return: The instance_id of this ShowInstanceSslDetailRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowInstanceSslDetailRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowInstanceSslDetailRequest. + :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, ShowInstanceSslDetailRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_ssl_detail_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_ssl_detail_response.py new file mode 100644 index 000000000..fee2994f2 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/show_instance_ssl_detail_response.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowInstanceSslDetailResponse(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', + 'ip': 'str', + 'port': 'str', + 'domain_name': 'str', + 'ssl_expired_at': 'str', + 'ssl_validated': 'bool' + } + + attribute_map = { + 'enabled': 'enabled', + 'ip': 'ip', + 'port': 'port', + 'domain_name': 'domain_name', + 'ssl_expired_at': 'ssl_expired_at', + 'ssl_validated': 'ssl_validated' + } + + def __init__(self, enabled=None, ip=None, port=None, domain_name=None, ssl_expired_at=None, ssl_validated=None): + """ShowInstanceSslDetailResponse + + The model defined in huaweicloud sdk + + :param enabled: 开启或关闭SSL。true:开启/false:关闭 + :type enabled: bool + :param ip: SSL连接IP。 + :type ip: str + :param port: SSL连接端口。 + :type port: str + :param domain_name: SSL连接域名。 + :type domain_name: str + :param ssl_expired_at: SSL证书有效期(UTC时间)。 + :type ssl_expired_at: str + :param ssl_validated: SSL证书是否有效。 + :type ssl_validated: bool + """ + + super(ShowInstanceSslDetailResponse, self).__init__() + + self._enabled = None + self._ip = None + self._port = None + self._domain_name = None + self._ssl_expired_at = None + self._ssl_validated = None + self.discriminator = None + + if enabled is not None: + self.enabled = enabled + if ip is not None: + self.ip = ip + if port is not None: + self.port = port + if domain_name is not None: + self.domain_name = domain_name + if ssl_expired_at is not None: + self.ssl_expired_at = ssl_expired_at + if ssl_validated is not None: + self.ssl_validated = ssl_validated + + @property + def enabled(self): + """Gets the enabled of this ShowInstanceSslDetailResponse. + + 开启或关闭SSL。true:开启/false:关闭 + + :return: The enabled of this ShowInstanceSslDetailResponse. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this ShowInstanceSslDetailResponse. + + 开启或关闭SSL。true:开启/false:关闭 + + :param enabled: The enabled of this ShowInstanceSslDetailResponse. + :type enabled: bool + """ + self._enabled = enabled + + @property + def ip(self): + """Gets the ip of this ShowInstanceSslDetailResponse. + + SSL连接IP。 + + :return: The ip of this ShowInstanceSslDetailResponse. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this ShowInstanceSslDetailResponse. + + SSL连接IP。 + + :param ip: The ip of this ShowInstanceSslDetailResponse. + :type ip: str + """ + self._ip = ip + + @property + def port(self): + """Gets the port of this ShowInstanceSslDetailResponse. + + SSL连接端口。 + + :return: The port of this ShowInstanceSslDetailResponse. + :rtype: str + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this ShowInstanceSslDetailResponse. + + SSL连接端口。 + + :param port: The port of this ShowInstanceSslDetailResponse. + :type port: str + """ + self._port = port + + @property + def domain_name(self): + """Gets the domain_name of this ShowInstanceSslDetailResponse. + + SSL连接域名。 + + :return: The domain_name of this ShowInstanceSslDetailResponse. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this ShowInstanceSslDetailResponse. + + SSL连接域名。 + + :param domain_name: The domain_name of this ShowInstanceSslDetailResponse. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def ssl_expired_at(self): + """Gets the ssl_expired_at of this ShowInstanceSslDetailResponse. + + SSL证书有效期(UTC时间)。 + + :return: The ssl_expired_at of this ShowInstanceSslDetailResponse. + :rtype: str + """ + return self._ssl_expired_at + + @ssl_expired_at.setter + def ssl_expired_at(self, ssl_expired_at): + """Sets the ssl_expired_at of this ShowInstanceSslDetailResponse. + + SSL证书有效期(UTC时间)。 + + :param ssl_expired_at: The ssl_expired_at of this ShowInstanceSslDetailResponse. + :type ssl_expired_at: str + """ + self._ssl_expired_at = ssl_expired_at + + @property + def ssl_validated(self): + """Gets the ssl_validated of this ShowInstanceSslDetailResponse. + + SSL证书是否有效。 + + :return: The ssl_validated of this ShowInstanceSslDetailResponse. + :rtype: bool + """ + return self._ssl_validated + + @ssl_validated.setter + def ssl_validated(self, ssl_validated): + """Sets the ssl_validated of this ShowInstanceSslDetailResponse. + + SSL证书是否有效。 + + :param ssl_validated: The ssl_validated of this ShowInstanceSslDetailResponse. + :type ssl_validated: bool + """ + self._ssl_validated = ssl_validated + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowInstanceSslDetailResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_request.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_request.py new file mode 100644 index 000000000..0039c8994 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateSslSwitchRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'UpdateSSLSwitchRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """UpdateSslSwitchRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the UpdateSslSwitchRequest + :type body: :class:`huaweicloudsdkdcs.v2.UpdateSSLSwitchRequestBody` + """ + + + + 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 UpdateSslSwitchRequest. + + 实例ID。 + + :return: The instance_id of this UpdateSslSwitchRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this UpdateSslSwitchRequest. + + 实例ID。 + + :param instance_id: The instance_id of this UpdateSslSwitchRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this UpdateSslSwitchRequest. + + :return: The body of this UpdateSslSwitchRequest. + :rtype: :class:`huaweicloudsdkdcs.v2.UpdateSSLSwitchRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateSslSwitchRequest. + + :param body: The body of this UpdateSslSwitchRequest. + :type body: :class:`huaweicloudsdkdcs.v2.UpdateSSLSwitchRequestBody` + """ + 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, UpdateSslSwitchRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_request_body.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_request_body.py new file mode 100644 index 000000000..8edd039e0 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_request_body.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateSSLSwitchRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """UpdateSSLSwitchRequestBody + + The model defined in huaweicloud sdk + + :param enabled: 开启或关闭SSL。true:开启/false:关闭 + :type enabled: bool + """ + + + + self._enabled = None + self.discriminator = None + + self.enabled = enabled + + @property + def enabled(self): + """Gets the enabled of this UpdateSSLSwitchRequestBody. + + 开启或关闭SSL。true:开启/false:关闭 + + :return: The enabled of this UpdateSSLSwitchRequestBody. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this UpdateSSLSwitchRequestBody. + + 开启或关闭SSL。true:开启/false:关闭 + + :param enabled: The enabled of this UpdateSSLSwitchRequestBody. + :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, UpdateSSLSwitchRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_response.py b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_response.py new file mode 100644 index 000000000..288ade9e8 --- /dev/null +++ b/huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/update_ssl_switch_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 UpdateSslSwitchResponse(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): + """UpdateSslSwitchResponse + + The model defined in huaweicloud sdk + + :param job_id: DCS任务ID。 + :type job_id: str + """ + + super(UpdateSslSwitchResponse, 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 UpdateSslSwitchResponse. + + DCS任务ID。 + + :return: The job_id of this UpdateSslSwitchResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this UpdateSslSwitchResponse. + + DCS任务ID。 + + :param job_id: The job_id of this UpdateSslSwitchResponse. + :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, UpdateSslSwitchResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-dcs/requirements.txt b/huaweicloud-sdk-dcs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dcs/requirements.txt +++ b/huaweicloud-sdk-dcs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dcs/setup.py b/huaweicloud-sdk-dcs/setup.py index 7fba4e910..0ab90f6a6 100644 --- a/huaweicloud-sdk-dcs/setup.py +++ b/huaweicloud-sdk-dcs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdcs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ddm/requirements.txt b/huaweicloud-sdk-ddm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ddm/requirements.txt +++ b/huaweicloud-sdk-ddm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ddm/setup.py b/huaweicloud-sdk-ddm/setup.py index b78862101..55bd74c65 100644 --- a/huaweicloud-sdk-ddm/setup.py +++ b/huaweicloud-sdk-ddm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkddm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py index c09a0b456..c9c095657 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/__init__.py @@ -279,6 +279,8 @@ from huaweicloudsdkdds.v3.model.show_backup_download_link_request import ShowBac from huaweicloudsdkdds.v3.model.show_backup_download_link_response import ShowBackupDownloadLinkResponse from huaweicloudsdkdds.v3.model.show_backup_policy_request import ShowBackupPolicyRequest from huaweicloudsdkdds.v3.model.show_backup_policy_response import ShowBackupPolicyResponse +from huaweicloudsdkdds.v3.model.show_client_network_request import ShowClientNetworkRequest +from huaweicloudsdkdds.v3.model.show_client_network_response import ShowClientNetworkResponse from huaweicloudsdkdds.v3.model.show_configuration_applied_history_request import ShowConfigurationAppliedHistoryRequest from huaweicloudsdkdds.v3.model.show_configuration_applied_history_response import ShowConfigurationAppliedHistoryResponse from huaweicloudsdkdds.v3.model.show_configuration_modify_history_request import ShowConfigurationModifyHistoryRequest diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py index 7487a8fb7..1459b679a 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_async_client.py @@ -5200,6 +5200,71 @@ class DdsAsyncClient(Client): return http_info + def show_client_network_async(self, request): + """查询副本集跨网段访问配置 + + 查询副本集跨网段访问配置 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowClientNetwork + :type request: :class:`huaweicloudsdkdds.v3.ShowClientNetworkRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ShowClientNetworkResponse` + """ + http_info = self._show_client_network_http_info(request) + return self._call_api(**http_info) + + def show_client_network_async_invoker(self, request): + http_info = self._show_client_network_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_client_network_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/client-network", + "request_type": request.__class__.__name__, + "response_type": "ShowClientNetworkResponse" + } + + 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_configuration_applied_history_async(self, request): """查询参数模板被应用历史 diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py index 542495739..389a3d03b 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/dds_client.py @@ -5200,6 +5200,71 @@ class DdsClient(Client): return http_info + def show_client_network(self, request): + """查询副本集跨网段访问配置 + + 查询副本集跨网段访问配置 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowClientNetwork + :type request: :class:`huaweicloudsdkdds.v3.ShowClientNetworkRequest` + :rtype: :class:`huaweicloudsdkdds.v3.ShowClientNetworkResponse` + """ + http_info = self._show_client_network_http_info(request) + return self._call_api(**http_info) + + def show_client_network_invoker(self, request): + http_info = self._show_client_network_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_client_network_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/instances/{instance_id}/client-network", + "request_type": request.__class__.__name__, + "response_type": "ShowClientNetworkResponse" + } + + 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_configuration_applied_history(self, request): """查询参数模板被应用历史 diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py index 5143cc282..5f3c1c938 100644 --- a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/__init__.py @@ -277,6 +277,8 @@ from huaweicloudsdkdds.v3.model.show_backup_download_link_request import ShowBac from huaweicloudsdkdds.v3.model.show_backup_download_link_response import ShowBackupDownloadLinkResponse from huaweicloudsdkdds.v3.model.show_backup_policy_request import ShowBackupPolicyRequest from huaweicloudsdkdds.v3.model.show_backup_policy_response import ShowBackupPolicyResponse +from huaweicloudsdkdds.v3.model.show_client_network_request import ShowClientNetworkRequest +from huaweicloudsdkdds.v3.model.show_client_network_response import ShowClientNetworkResponse from huaweicloudsdkdds.v3.model.show_configuration_applied_history_request import ShowConfigurationAppliedHistoryRequest from huaweicloudsdkdds.v3.model.show_configuration_applied_history_response import ShowConfigurationAppliedHistoryResponse from huaweicloudsdkdds.v3.model.show_configuration_modify_history_request import ShowConfigurationModifyHistoryRequest diff --git a/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_client_network_request.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_client_network_request.py new file mode 100644 index 000000000..bfd9b1c4b --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_client_network_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowClientNetworkRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ShowClientNetworkRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。 + :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 ShowClientNetworkRequest. + + 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。 + + :return: The instance_id of this ShowClientNetworkRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowClientNetworkRequest. + + 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。 + + :param instance_id: The instance_id of this ShowClientNetworkRequest. + :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, ShowClientNetworkRequest): + return False + + return self.__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_client_network_response.py b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_client_network_response.py new file mode 100644 index 000000000..f188e7365 --- /dev/null +++ b/huaweicloud-sdk-dds/huaweicloudsdkdds/v3/model/show_client_network_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 ShowClientNetworkResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'client_network_ranges': 'list[str]' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'client_network_ranges': 'client_network_ranges' + } + + def __init__(self, instance_id=None, client_network_ranges=None): + """ShowClientNetworkResponse + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。 + :type instance_id: str + :param client_network_ranges: 客户端所在网段。 > - [跨网段访问配置只有在客户端与副本集实例部署在不同网段的情况下才允许配置,例如访问副本集的客户端所在网段为192.168.0.0/16,副本集所在的网段为172.16.0.0/24,则需要添加跨网段配置192.168.0.0/16才能正常访问。只有副本集有该功能。](tag:ccs,cmcc,ctc,dt,dt_test,fcs,fcs_dt,g42,hic,hk_g42,hk_sbc,hc,hws_ocb,hws_sbc,ocb,tlf,tm,hk,hws_eu) + :type client_network_ranges: list[str] + """ + + super(ShowClientNetworkResponse, self).__init__() + + self._instance_id = None + self._client_network_ranges = None + self.discriminator = None + + if instance_id is not None: + self.instance_id = instance_id + if client_network_ranges is not None: + self.client_network_ranges = client_network_ranges + + @property + def instance_id(self): + """Gets the instance_id of this ShowClientNetworkResponse. + + 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。 + + :return: The instance_id of this ShowClientNetworkResponse. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowClientNetworkResponse. + + 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。 + + :param instance_id: The instance_id of this ShowClientNetworkResponse. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def client_network_ranges(self): + """Gets the client_network_ranges of this ShowClientNetworkResponse. + + 客户端所在网段。 > - [跨网段访问配置只有在客户端与副本集实例部署在不同网段的情况下才允许配置,例如访问副本集的客户端所在网段为192.168.0.0/16,副本集所在的网段为172.16.0.0/24,则需要添加跨网段配置192.168.0.0/16才能正常访问。只有副本集有该功能。](tag:ccs,cmcc,ctc,dt,dt_test,fcs,fcs_dt,g42,hic,hk_g42,hk_sbc,hc,hws_ocb,hws_sbc,ocb,tlf,tm,hk,hws_eu) + + :return: The client_network_ranges of this ShowClientNetworkResponse. + :rtype: list[str] + """ + return self._client_network_ranges + + @client_network_ranges.setter + def client_network_ranges(self, client_network_ranges): + """Sets the client_network_ranges of this ShowClientNetworkResponse. + + 客户端所在网段。 > - [跨网段访问配置只有在客户端与副本集实例部署在不同网段的情况下才允许配置,例如访问副本集的客户端所在网段为192.168.0.0/16,副本集所在的网段为172.16.0.0/24,则需要添加跨网段配置192.168.0.0/16才能正常访问。只有副本集有该功能。](tag:ccs,cmcc,ctc,dt,dt_test,fcs,fcs_dt,g42,hic,hk_g42,hk_sbc,hc,hws_ocb,hws_sbc,ocb,tlf,tm,hk,hws_eu) + + :param client_network_ranges: The client_network_ranges of this ShowClientNetworkResponse. + :type client_network_ranges: list[str] + """ + self._client_network_ranges = client_network_ranges + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowClientNetworkResponse): + return False + + return self.__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/requirements.txt b/huaweicloud-sdk-dds/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dds/requirements.txt +++ b/huaweicloud-sdk-dds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dds/setup.py b/huaweicloud-sdk-dds/setup.py index 36ffe7e15..ff45349e8 100644 --- a/huaweicloud-sdk-dds/setup.py +++ b/huaweicloud-sdk-dds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdds" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-deh/requirements.txt b/huaweicloud-sdk-deh/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-deh/requirements.txt +++ b/huaweicloud-sdk-deh/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-deh/setup.py b/huaweicloud-sdk-deh/setup.py index 1bc069911..0cc071eb3 100644 --- a/huaweicloud-sdk-deh/setup.py +++ b/huaweicloud-sdk-deh/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdeh" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devsecurity/requirements.txt b/huaweicloud-sdk-devsecurity/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-devsecurity/requirements.txt +++ b/huaweicloud-sdk-devsecurity/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-devsecurity/setup.py b/huaweicloud-sdk-devsecurity/setup.py index 6a7882fbb..ec94546a2 100644 --- a/huaweicloud-sdk-devsecurity/setup.py +++ b/huaweicloud-sdk-devsecurity/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevsecurity" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-devstar/requirements.txt b/huaweicloud-sdk-devstar/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-devstar/requirements.txt +++ b/huaweicloud-sdk-devstar/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-devstar/setup.py b/huaweicloud-sdk-devstar/setup.py index 7c932aadb..e6c37f73a 100644 --- a/huaweicloud-sdk-devstar/setup.py +++ b/huaweicloud-sdk-devstar/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdevstar" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py index 78fc292b5..19a60591d 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/job_info.py @@ -23,6 +23,8 @@ class JobInfo: 'params': 'list[JobParam]', 'directory': 'str', 'process_type': 'str', + 'single_node_job_flag': 'bool', + 'single_node_job_type': 'str', 'last_update_user': 'str', 'log_path': 'str', 'basic_config': 'BasicConfig', @@ -37,6 +39,8 @@ class JobInfo: 'params': 'params', 'directory': 'directory', 'process_type': 'processType', + 'single_node_job_flag': 'singleNodeJobFlag', + 'single_node_job_type': 'singleNodeJobType', 'last_update_user': 'lastUpdateUser', 'log_path': 'logPath', 'basic_config': 'basicConfig', @@ -44,7 +48,7 @@ class JobInfo: 'approvers': 'approvers' } - def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, process_type=None, last_update_user=None, log_path=None, basic_config=None, target_status=None, approvers=None): + def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, process_type=None, single_node_job_flag=None, single_node_job_type=None, last_update_user=None, log_path=None, basic_config=None, target_status=None, approvers=None): """JobInfo The model defined in huaweicloud sdk @@ -61,6 +65,10 @@ class JobInfo: :type directory: str :param process_type: 作业类型,REAL_TIME: 实时处理,BATCH:批处理 :type process_type: str + :param single_node_job_flag: 是否选择单任务,默认为false + :type single_node_job_flag: bool + :param single_node_job_type: 单任务类型 + :type single_node_job_type: str :param last_update_user: 作业最后修改人 :type last_update_user: str :param log_path: 作业运行日志存放的OBS路径。 @@ -81,6 +89,8 @@ class JobInfo: self._params = None self._directory = None self._process_type = None + self._single_node_job_flag = None + self._single_node_job_type = None self._last_update_user = None self._log_path = None self._basic_config = None @@ -96,6 +106,10 @@ class JobInfo: if directory is not None: self.directory = directory self.process_type = process_type + if single_node_job_flag is not None: + self.single_node_job_flag = single_node_job_flag + if single_node_job_type is not None: + self.single_node_job_type = single_node_job_type if last_update_user is not None: self.last_update_user = last_update_user if log_path is not None: @@ -235,6 +249,50 @@ class JobInfo: """ self._process_type = process_type + @property + def single_node_job_flag(self): + """Gets the single_node_job_flag of this JobInfo. + + 是否选择单任务,默认为false + + :return: The single_node_job_flag of this JobInfo. + :rtype: bool + """ + return self._single_node_job_flag + + @single_node_job_flag.setter + def single_node_job_flag(self, single_node_job_flag): + """Sets the single_node_job_flag of this JobInfo. + + 是否选择单任务,默认为false + + :param single_node_job_flag: The single_node_job_flag of this JobInfo. + :type single_node_job_flag: bool + """ + self._single_node_job_flag = single_node_job_flag + + @property + def single_node_job_type(self): + """Gets the single_node_job_type of this JobInfo. + + 单任务类型 + + :return: The single_node_job_type of this JobInfo. + :rtype: str + """ + return self._single_node_job_type + + @single_node_job_type.setter + def single_node_job_type(self, single_node_job_type): + """Sets the single_node_job_type of this JobInfo. + + 单任务类型 + + :param single_node_job_type: The single_node_job_type of this JobInfo. + :type single_node_job_type: str + """ + self._single_node_job_type = single_node_job_type + @property def last_update_user(self): """Gets the last_update_user of this JobInfo. diff --git a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py index fba68101d..21f88f7b6 100644 --- a/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py +++ b/huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/show_job_response.py @@ -24,6 +24,8 @@ class ShowJobResponse(SdkResponse): 'params': 'list[JobParam]', 'directory': 'str', 'process_type': 'str', + 'single_node_job_flag': 'bool', + 'single_node_job_type': 'str', 'last_update_user': 'str', 'log_path': 'str', 'basic_config': 'BasicConfig', @@ -38,6 +40,8 @@ class ShowJobResponse(SdkResponse): 'params': 'params', 'directory': 'directory', 'process_type': 'processType', + 'single_node_job_flag': 'singleNodeJobFlag', + 'single_node_job_type': 'singleNodeJobType', 'last_update_user': 'lastUpdateUser', 'log_path': 'logPath', 'basic_config': 'basicConfig', @@ -45,7 +49,7 @@ class ShowJobResponse(SdkResponse): 'approvers': 'approvers' } - def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, process_type=None, last_update_user=None, log_path=None, basic_config=None, target_status=None, approvers=None): + def __init__(self, name=None, nodes=None, schedule=None, params=None, directory=None, process_type=None, single_node_job_flag=None, single_node_job_type=None, last_update_user=None, log_path=None, basic_config=None, target_status=None, approvers=None): """ShowJobResponse The model defined in huaweicloud sdk @@ -62,6 +66,10 @@ class ShowJobResponse(SdkResponse): :type directory: str :param process_type: 作业类型,REAL_TIME: 实时处理,BATCH:批处理 :type process_type: str + :param single_node_job_flag: 是否选择单任务,默认为false + :type single_node_job_flag: bool + :param single_node_job_type: 单任务类型 + :type single_node_job_type: str :param last_update_user: 作业最后修改人 :type last_update_user: str :param log_path: 作业运行日志存放的OBS路径。 @@ -82,6 +90,8 @@ class ShowJobResponse(SdkResponse): self._params = None self._directory = None self._process_type = None + self._single_node_job_flag = None + self._single_node_job_type = None self._last_update_user = None self._log_path = None self._basic_config = None @@ -101,6 +111,10 @@ class ShowJobResponse(SdkResponse): self.directory = directory if process_type is not None: self.process_type = process_type + if single_node_job_flag is not None: + self.single_node_job_flag = single_node_job_flag + if single_node_job_type is not None: + self.single_node_job_type = single_node_job_type if last_update_user is not None: self.last_update_user = last_update_user if log_path is not None: @@ -240,6 +254,50 @@ class ShowJobResponse(SdkResponse): """ self._process_type = process_type + @property + def single_node_job_flag(self): + """Gets the single_node_job_flag of this ShowJobResponse. + + 是否选择单任务,默认为false + + :return: The single_node_job_flag of this ShowJobResponse. + :rtype: bool + """ + return self._single_node_job_flag + + @single_node_job_flag.setter + def single_node_job_flag(self, single_node_job_flag): + """Sets the single_node_job_flag of this ShowJobResponse. + + 是否选择单任务,默认为false + + :param single_node_job_flag: The single_node_job_flag of this ShowJobResponse. + :type single_node_job_flag: bool + """ + self._single_node_job_flag = single_node_job_flag + + @property + def single_node_job_type(self): + """Gets the single_node_job_type of this ShowJobResponse. + + 单任务类型 + + :return: The single_node_job_type of this ShowJobResponse. + :rtype: str + """ + return self._single_node_job_type + + @single_node_job_type.setter + def single_node_job_type(self, single_node_job_type): + """Sets the single_node_job_type of this ShowJobResponse. + + 单任务类型 + + :param single_node_job_type: The single_node_job_type of this ShowJobResponse. + :type single_node_job_type: str + """ + self._single_node_job_type = single_node_job_type + @property def last_update_user(self): """Gets the last_update_user of this ShowJobResponse. diff --git a/huaweicloud-sdk-dgc/requirements.txt b/huaweicloud-sdk-dgc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dgc/requirements.txt +++ b/huaweicloud-sdk-dgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dgc/setup.py b/huaweicloud-sdk-dgc/setup.py index 536cd4383..7793b148d 100644 --- a/huaweicloud-sdk-dgc/setup.py +++ b/huaweicloud-sdk-dgc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdgc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dis/requirements.txt b/huaweicloud-sdk-dis/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dis/requirements.txt +++ b/huaweicloud-sdk-dis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dis/setup.py b/huaweicloud-sdk-dis/setup.py index c49c8c0b4..cf346cedd 100644 --- a/huaweicloud-sdk-dis/setup.py +++ b/huaweicloud-sdk-dis/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdis" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dlf/requirements.txt b/huaweicloud-sdk-dlf/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dlf/requirements.txt +++ b/huaweicloud-sdk-dlf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dlf/setup.py b/huaweicloud-sdk-dlf/setup.py index 879d1ad06..3a38af30e 100644 --- a/huaweicloud-sdk-dlf/setup.py +++ b/huaweicloud-sdk-dlf/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdlf" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dli/requirements.txt b/huaweicloud-sdk-dli/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dli/requirements.txt +++ b/huaweicloud-sdk-dli/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dli/setup.py b/huaweicloud-sdk-dli/setup.py index ea037871a..d5fb1b8da 100644 --- a/huaweicloud-sdk-dli/setup.py +++ b/huaweicloud-sdk-dli/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdli" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dns/requirements.txt b/huaweicloud-sdk-dns/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dns/requirements.txt +++ b/huaweicloud-sdk-dns/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dns/setup.py b/huaweicloud-sdk-dns/setup.py index 88b2b0ca3..f1a52cae4 100644 --- a/huaweicloud-sdk-dns/setup.py +++ b/huaweicloud-sdk-dns/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdns" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dris/requirements.txt b/huaweicloud-sdk-dris/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dris/requirements.txt +++ b/huaweicloud-sdk-dris/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dris/setup.py b/huaweicloud-sdk-dris/setup.py index 13ec124e1..c71ec9898 100644 --- a/huaweicloud-sdk-dris/setup.py +++ b/huaweicloud-sdk-dris/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdris" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-drs/requirements.txt b/huaweicloud-sdk-drs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-drs/requirements.txt +++ b/huaweicloud-sdk-drs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-drs/setup.py b/huaweicloud-sdk-drs/setup.py index fedbd0972..6472f71de 100644 --- a/huaweicloud-sdk-drs/setup.py +++ b/huaweicloud-sdk-drs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdrs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dsc/requirements.txt b/huaweicloud-sdk-dsc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dsc/requirements.txt +++ b/huaweicloud-sdk-dsc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dsc/setup.py b/huaweicloud-sdk-dsc/setup.py index 6d1199d27..cde785255 100644 --- a/huaweicloud-sdk-dsc/setup.py +++ b/huaweicloud-sdk-dsc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdsc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dwr/requirements.txt b/huaweicloud-sdk-dwr/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dwr/requirements.txt +++ b/huaweicloud-sdk-dwr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dwr/setup.py b/huaweicloud-sdk-dwr/setup.py index c020158f7..6e600464d 100644 --- a/huaweicloud-sdk-dwr/setup.py +++ b/huaweicloud-sdk-dwr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdwr" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-dws/requirements.txt b/huaweicloud-sdk-dws/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-dws/requirements.txt +++ b/huaweicloud-sdk-dws/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-dws/setup.py b/huaweicloud-sdk-dws/setup.py index 7d1194e94..2f5454e39 100644 --- a/huaweicloud-sdk-dws/setup.py +++ b/huaweicloud-sdk-dws/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkdws" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ec/requirements.txt b/huaweicloud-sdk-ec/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ec/requirements.txt +++ b/huaweicloud-sdk-ec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ec/setup.py b/huaweicloud-sdk-ec/setup.py index 18f11d6ef..9d4675b9d 100644 --- a/huaweicloud-sdk-ec/setup.py +++ b/huaweicloud-sdk-ec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkec" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ecs/requirements.txt b/huaweicloud-sdk-ecs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ecs/requirements.txt +++ b/huaweicloud-sdk-ecs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ecs/setup.py b/huaweicloud-sdk-ecs/setup.py index ae2e514e0..f8d343b71 100644 --- a/huaweicloud-sdk-ecs/setup.py +++ b/huaweicloud-sdk-ecs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkecs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-edgesec/requirements.txt b/huaweicloud-sdk-edgesec/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-edgesec/requirements.txt +++ b/huaweicloud-sdk-edgesec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-edgesec/setup.py b/huaweicloud-sdk-edgesec/setup.py index c0c687d58..ae64a3c62 100644 --- a/huaweicloud-sdk-edgesec/setup.py +++ b/huaweicloud-sdk-edgesec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkedgesec" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eg/requirements.txt b/huaweicloud-sdk-eg/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-eg/requirements.txt +++ b/huaweicloud-sdk-eg/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-eg/setup.py b/huaweicloud-sdk-eg/setup.py index 54a4d1ea9..d3445bb3e 100644 --- a/huaweicloud-sdk-eg/setup.py +++ b/huaweicloud-sdk-eg/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeg" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eihealth/requirements.txt b/huaweicloud-sdk-eihealth/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-eihealth/requirements.txt +++ b/huaweicloud-sdk-eihealth/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-eihealth/setup.py b/huaweicloud-sdk-eihealth/setup.py index ac70b6011..dfd08f5ba 100644 --- a/huaweicloud-sdk-eihealth/setup.py +++ b/huaweicloud-sdk-eihealth/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeihealth" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eip/requirements.txt b/huaweicloud-sdk-eip/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-eip/requirements.txt +++ b/huaweicloud-sdk-eip/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-eip/setup.py b/huaweicloud-sdk-eip/setup.py index 22d529a94..c718d2637 100644 --- a/huaweicloud-sdk-eip/setup.py +++ b/huaweicloud-sdk-eip/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeip" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-elb/requirements.txt b/huaweicloud-sdk-elb/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-elb/requirements.txt +++ b/huaweicloud-sdk-elb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-elb/setup.py b/huaweicloud-sdk-elb/setup.py index b8704baec..2adc76458 100644 --- a/huaweicloud-sdk-elb/setup.py +++ b/huaweicloud-sdk-elb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkelb" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-eps/requirements.txt b/huaweicloud-sdk-eps/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-eps/requirements.txt +++ b/huaweicloud-sdk-eps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-eps/setup.py b/huaweicloud-sdk-eps/setup.py index d59a6feb3..da09476c7 100644 --- a/huaweicloud-sdk-eps/setup.py +++ b/huaweicloud-sdk-eps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkeps" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-er/requirements.txt b/huaweicloud-sdk-er/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-er/requirements.txt +++ b/huaweicloud-sdk-er/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-er/setup.py b/huaweicloud-sdk-er/setup.py index c988ffdd7..8ed33443b 100644 --- a/huaweicloud-sdk-er/setup.py +++ b/huaweicloud-sdk-er/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdker" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-evs/requirements.txt b/huaweicloud-sdk-evs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-evs/requirements.txt +++ b/huaweicloud-sdk-evs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-evs/setup.py b/huaweicloud-sdk-evs/setup.py index 3da410dea..ad1b06dd7 100644 --- a/huaweicloud-sdk-evs/setup.py +++ b/huaweicloud-sdk-evs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkevs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-frs/requirements.txt b/huaweicloud-sdk-frs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-frs/requirements.txt +++ b/huaweicloud-sdk-frs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-frs/setup.py b/huaweicloud-sdk-frs/setup.py index ba3c2916e..75953ceaf 100644 --- a/huaweicloud-sdk-frs/setup.py +++ b/huaweicloud-sdk-frs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfrs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-functiongraph/requirements.txt b/huaweicloud-sdk-functiongraph/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-functiongraph/requirements.txt +++ b/huaweicloud-sdk-functiongraph/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-functiongraph/setup.py b/huaweicloud-sdk-functiongraph/setup.py index 0f6e7a145..b5bfa21fe 100644 --- a/huaweicloud-sdk-functiongraph/setup.py +++ b/huaweicloud-sdk-functiongraph/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkfunctiongraph" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ga/requirements.txt b/huaweicloud-sdk-ga/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ga/requirements.txt +++ b/huaweicloud-sdk-ga/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ga/setup.py b/huaweicloud-sdk-ga/setup.py index 5ee62e811..81b2a4864 100644 --- a/huaweicloud-sdk-ga/setup.py +++ b/huaweicloud-sdk-ga/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkga" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdb/requirements.txt b/huaweicloud-sdk-gaussdb/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-gaussdb/requirements.txt +++ b/huaweicloud-sdk-gaussdb/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdb/setup.py b/huaweicloud-sdk-gaussdb/setup.py index dd2c132f3..75e982129 100644 --- a/huaweicloud-sdk-gaussdb/setup.py +++ b/huaweicloud-sdk-gaussdb/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdb" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py index e520c2bfa..366f9ea71 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/__init__.py @@ -97,6 +97,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.instance_log_config_detail import In from huaweicloudsdkgaussdbfornosql.v3.model.instance_result import InstanceResult from huaweicloudsdkgaussdbfornosql.v3.model.instance_tag_result import InstanceTagResult from huaweicloudsdkgaussdbfornosql.v3.model.instances_datastore_result import InstancesDatastoreResult +from huaweicloudsdkgaussdbfornosql.v3.model.job_detail import JobDetail +from huaweicloudsdkgaussdbfornosql.v3.model.job_instance_info import JobInstanceInfo from huaweicloudsdkgaussdbfornosql.v3.model.links import Links from huaweicloudsdkgaussdbfornosql.v3.model.list_api_version_request import ListApiVersionRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_api_version_response import ListApiVersionResponse @@ -152,6 +154,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_response impo from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_statistics_request import ListInstancesSessionStatisticsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_statistics_respond_body_top_source_ips import ListInstancesSessionStatisticsRespondBodyTopSourceIps from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_statistics_response import ListInstancesSessionStatisticsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_jobs_request import ListJobsRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_jobs_response import ListJobsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_lts_configs_request import ListLtsConfigsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_lts_configs_response import ListLtsConfigsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_error_logs_request import ListMongodbErrorLogsRequest diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py index 416522df7..18d4d69f5 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_async_client.py @@ -2707,6 +2707,83 @@ class GaussDBforNoSQLAsyncClient(Client): return http_info + def list_jobs_async(self, request): + """查询任务列表和详情 + + 查询任务列表和详情,默认查询任务列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListJobs + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListJobsRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListJobsResponse` + """ + http_info = self._list_jobs_http_info(request) + return self._call_api(**http_info) + + def list_jobs_async_invoker(self, request): + http_info = self._list_jobs_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_jobs_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/jobs", + "request_type": request.__class__.__name__, + "response_type": "ListJobsResponse" + } + + 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 '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 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['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_lts_configs_async(self, request): """查询LTS日志配置信息 diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py index 456e1f725..122a9b58c 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/gaussdbfornosql_client.py @@ -2707,6 +2707,83 @@ class GaussDBforNoSQLClient(Client): return http_info + def list_jobs(self, request): + """查询任务列表和详情 + + 查询任务列表和详情,默认查询任务列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListJobs + :type request: :class:`huaweicloudsdkgaussdbfornosql.v3.ListJobsRequest` + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.ListJobsResponse` + """ + http_info = self._list_jobs_http_info(request) + return self._call_api(**http_info) + + def list_jobs_invoker(self, request): + http_info = self._list_jobs_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_jobs_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v3/{project_id}/jobs", + "request_type": request.__class__.__name__, + "response_type": "ListJobsResponse" + } + + 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 '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 'status' in local_var_params: + query_params.append(('status', local_var_params['status'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['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_lts_configs(self, request): """查询LTS日志配置信息 diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py index 0aa0c460c..51e132ada 100644 --- a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/__init__.py @@ -95,6 +95,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.instance_log_config_detail import In from huaweicloudsdkgaussdbfornosql.v3.model.instance_result import InstanceResult from huaweicloudsdkgaussdbfornosql.v3.model.instance_tag_result import InstanceTagResult from huaweicloudsdkgaussdbfornosql.v3.model.instances_datastore_result import InstancesDatastoreResult +from huaweicloudsdkgaussdbfornosql.v3.model.job_detail import JobDetail +from huaweicloudsdkgaussdbfornosql.v3.model.job_instance_info import JobInstanceInfo from huaweicloudsdkgaussdbfornosql.v3.model.links import Links from huaweicloudsdkgaussdbfornosql.v3.model.list_api_version_request import ListApiVersionRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_api_version_response import ListApiVersionResponse @@ -150,6 +152,8 @@ from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_response impo from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_statistics_request import ListInstancesSessionStatisticsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_statistics_respond_body_top_source_ips import ListInstancesSessionStatisticsRespondBodyTopSourceIps from huaweicloudsdkgaussdbfornosql.v3.model.list_instances_session_statistics_response import ListInstancesSessionStatisticsResponse +from huaweicloudsdkgaussdbfornosql.v3.model.list_jobs_request import ListJobsRequest +from huaweicloudsdkgaussdbfornosql.v3.model.list_jobs_response import ListJobsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_lts_configs_request import ListLtsConfigsRequest from huaweicloudsdkgaussdbfornosql.v3.model.list_lts_configs_response import ListLtsConfigsResponse from huaweicloudsdkgaussdbfornosql.v3.model.list_mongodb_error_logs_request import ListMongodbErrorLogsRequest diff --git a/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/job_detail.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/job_detail.py new file mode 100644 index 000000000..5fbeff42b --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/job_detail.py @@ -0,0 +1,306 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'start_time': 'str', + 'end_time': 'str', + 'progress': 'str', + 'instance': 'JobInstanceInfo', + 'fail_reason': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'status': 'status', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'progress': 'progress', + 'instance': 'instance', + 'fail_reason': 'fail_reason' + } + + def __init__(self, id=None, name=None, status=None, start_time=None, end_time=None, progress=None, instance=None, fail_reason=None): + """JobDetail + + The model defined in huaweicloud sdk + + :param id: 任务ID + :type id: str + :param name: 任务名称。 + :type name: str + :param status: 任务执行状态。 取值: Running:表示任务正在执行。 Completed:表示任务执行成功。 Failed:表示任务执行失败。 枚举值: Running Completed Failed + :type status: str + :param start_time: 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量[,例如北京时间偏移显示为+0800。](tag:hc) + :type start_time: str + :param end_time: 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量[,例如北京时间偏移显示为+0800。](tag:hc) + :type end_time: str + :param progress: 任务执行进度。 > 执行中状态才返回执行进度,例如“60%”,表示任务执行进度为60%,否则返回“”。 + :type progress: str + :param instance: + :type instance: :class:`huaweicloudsdkgaussdbfornosql.v3.JobInstanceInfo` + :param fail_reason: 任务执行失败时的错误信息。 + :type fail_reason: str + """ + + + + self._id = None + self._name = None + self._status = None + self._start_time = None + self._end_time = None + self._progress = None + self._instance = None + self._fail_reason = None + self.discriminator = None + + self.id = id + self.name = name + self.status = status + self.start_time = start_time + self.end_time = end_time + self.progress = progress + self.instance = instance + self.fail_reason = fail_reason + + @property + def id(self): + """Gets the id of this JobDetail. + + 任务ID + + :return: The id of this JobDetail. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this JobDetail. + + 任务ID + + :param id: The id of this JobDetail. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this JobDetail. + + 任务名称。 + + :return: The name of this JobDetail. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this JobDetail. + + 任务名称。 + + :param name: The name of this JobDetail. + :type name: str + """ + self._name = name + + @property + def status(self): + """Gets the status of this JobDetail. + + 任务执行状态。 取值: Running:表示任务正在执行。 Completed:表示任务执行成功。 Failed:表示任务执行失败。 枚举值: Running Completed Failed + + :return: The status of this JobDetail. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this JobDetail. + + 任务执行状态。 取值: Running:表示任务正在执行。 Completed:表示任务执行成功。 Failed:表示任务执行失败。 枚举值: Running Completed Failed + + :param status: The status of this JobDetail. + :type status: str + """ + self._status = status + + @property + def start_time(self): + """Gets the start_time of this JobDetail. + + 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量[,例如北京时间偏移显示为+0800。](tag:hc) + + :return: The start_time of this JobDetail. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this JobDetail. + + 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量[,例如北京时间偏移显示为+0800。](tag:hc) + + :param start_time: The start_time of this JobDetail. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this JobDetail. + + 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量[,例如北京时间偏移显示为+0800。](tag:hc) + + :return: The end_time of this JobDetail. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this JobDetail. + + 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量[,例如北京时间偏移显示为+0800。](tag:hc) + + :param end_time: The end_time of this JobDetail. + :type end_time: str + """ + self._end_time = end_time + + @property + def progress(self): + """Gets the progress of this JobDetail. + + 任务执行进度。 > 执行中状态才返回执行进度,例如“60%”,表示任务执行进度为60%,否则返回“”。 + + :return: The progress of this JobDetail. + :rtype: str + """ + return self._progress + + @progress.setter + def progress(self, progress): + """Sets the progress of this JobDetail. + + 任务执行进度。 > 执行中状态才返回执行进度,例如“60%”,表示任务执行进度为60%,否则返回“”。 + + :param progress: The progress of this JobDetail. + :type progress: str + """ + self._progress = progress + + @property + def instance(self): + """Gets the instance of this JobDetail. + + :return: The instance of this JobDetail. + :rtype: :class:`huaweicloudsdkgaussdbfornosql.v3.JobInstanceInfo` + """ + return self._instance + + @instance.setter + def instance(self, instance): + """Sets the instance of this JobDetail. + + :param instance: The instance of this JobDetail. + :type instance: :class:`huaweicloudsdkgaussdbfornosql.v3.JobInstanceInfo` + """ + self._instance = instance + + @property + def fail_reason(self): + """Gets the fail_reason of this JobDetail. + + 任务执行失败时的错误信息。 + + :return: The fail_reason of this JobDetail. + :rtype: str + """ + return self._fail_reason + + @fail_reason.setter + def fail_reason(self, fail_reason): + """Sets the fail_reason of this JobDetail. + + 任务执行失败时的错误信息。 + + :param fail_reason: The fail_reason of this JobDetail. + :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, JobDetail): + return False + + return self.__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/job_instance_info.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/job_instance_info.py new file mode 100644 index 000000000..02730ced9 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/job_instance_info.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class JobInstanceInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): + """JobInstanceInfo + + The model defined in huaweicloud sdk + + :param id: 实例ID。 + :type id: str + :param name: 实例名称。 + :type name: str + """ + + + + self._id = None + self._name = None + self.discriminator = None + + self.id = id + self.name = name + + @property + def id(self): + """Gets the id of this JobInstanceInfo. + + 实例ID。 + + :return: The id of this JobInstanceInfo. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this JobInstanceInfo. + + 实例ID。 + + :param id: The id of this JobInstanceInfo. + :type id: str + """ + self._id = id + + @property + def name(self): + """Gets the name of this JobInstanceInfo. + + 实例名称。 + + :return: The name of this JobInstanceInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this JobInstanceInfo. + + 实例名称。 + + :param name: The name of this JobInstanceInfo. + :type name: str + """ + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JobInstanceInfo): + return False + + return self.__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_jobs_request.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_jobs_request.py new file mode 100644 index 000000000..ddee13948 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_jobs_request.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListJobsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'start_time': 'str', + 'end_time': 'str', + 'status': 'str', + 'name': 'str', + 'offset': 'int', + 'limit': 'int' + } + + attribute_map = { + 'id': 'id', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'status': 'status', + 'name': 'name', + 'offset': 'offset', + 'limit': 'limit' + } + + def __init__(self, id=None, start_time=None, end_time=None, status=None, name=None, offset=None, limit=None): + """ListJobsRequest + + The model defined in huaweicloud sdk + + :param id: 任务ID。 + :type id: str + :param start_time: 查询开始时间,默认当前时间往前30天,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始,Z指时区偏移量 + :type start_time: str + :param end_time: 查询结束时间,默认当前时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间,时间跨度不超过30天。 其中,T指某个时间的开始,Z指时区偏移量。 + :type end_time: str + :param status: 任务状态: 取值为“Running”为执行中; 取值为“Completed”为完成; 取值为“Failed” 为失败。 + :type status: str + :param name: 任务名称。对应取值如下: - \"CreateInstance\":创建实例 - \"RestoreNewInstance\":恢复到新实例 - \"EnlargeInstance\":扩容实例 - \"ReduceInstance\":缩容实例 - \"RestartInstance\":重启实例 - \"RestartNode\":重启节点 - \"EnlargeInstanceVolume\":扩容实例磁盘 - \"ReduceInstanceVolume\":缩容实例磁盘 - \"ResizeInstance\":规格变更实例 - \"UpgradeDbVersion\":升级数据库版本 - \"BindPublicIP\":绑定公网IP - \"UnbindPublicIP\":解绑公网IP - \"DeleteInstance\":删除实例 - \"EnlargeInstanceColdVolume\":扩容实例冷存储 - \"AddInstanceColdVolume\":增加实例冷存储 - \"ModifySecurityGroup\":修改安全组 - \"ModifyCcmCert\":修改CCM证书 - \"ModifyPort\":修改端口 - \"ConstructDisasterRecovery\":构造容灾关系 - \"DeConstructDisasterRecovery\":解除容灾关系 - \"SwitchOverDisasterRecovery\":切换容灾关系 - \"BuildBiActiveInstance\":构建双活实例 - \"ReleaseBiActiveInstance\":解除双活实例关系 - \"BackupInstance\":备份实例 + :type name: str + :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + :type offset: int + :param limit: 查询记录数。取值 10 20 50 ,默认为50。 + :type limit: int + """ + + + + self._id = None + self._start_time = None + self._end_time = None + self._status = None + self._name = None + self._offset = None + self._limit = None + self.discriminator = None + + if id is not None: + self.id = id + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if status is not None: + self.status = status + if name is not None: + self.name = 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 ListJobsRequest. + + 任务ID。 + + :return: The id of this ListJobsRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ListJobsRequest. + + 任务ID。 + + :param id: The id of this ListJobsRequest. + :type id: str + """ + self._id = id + + @property + def start_time(self): + """Gets the start_time of this ListJobsRequest. + + 查询开始时间,默认当前时间往前30天,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始,Z指时区偏移量 + + :return: The start_time of this ListJobsRequest. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListJobsRequest. + + 查询开始时间,默认当前时间往前30天,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始,Z指时区偏移量 + + :param start_time: The start_time of this ListJobsRequest. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListJobsRequest. + + 查询结束时间,默认当前时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间,时间跨度不超过30天。 其中,T指某个时间的开始,Z指时区偏移量。 + + :return: The end_time of this ListJobsRequest. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListJobsRequest. + + 查询结束时间,默认当前时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间,时间跨度不超过30天。 其中,T指某个时间的开始,Z指时区偏移量。 + + :param end_time: The end_time of this ListJobsRequest. + :type end_time: str + """ + self._end_time = end_time + + @property + def status(self): + """Gets the status of this ListJobsRequest. + + 任务状态: 取值为“Running”为执行中; 取值为“Completed”为完成; 取值为“Failed” 为失败。 + + :return: The status of this ListJobsRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this ListJobsRequest. + + 任务状态: 取值为“Running”为执行中; 取值为“Completed”为完成; 取值为“Failed” 为失败。 + + :param status: The status of this ListJobsRequest. + :type status: str + """ + self._status = status + + @property + def name(self): + """Gets the name of this ListJobsRequest. + + 任务名称。对应取值如下: - \"CreateInstance\":创建实例 - \"RestoreNewInstance\":恢复到新实例 - \"EnlargeInstance\":扩容实例 - \"ReduceInstance\":缩容实例 - \"RestartInstance\":重启实例 - \"RestartNode\":重启节点 - \"EnlargeInstanceVolume\":扩容实例磁盘 - \"ReduceInstanceVolume\":缩容实例磁盘 - \"ResizeInstance\":规格变更实例 - \"UpgradeDbVersion\":升级数据库版本 - \"BindPublicIP\":绑定公网IP - \"UnbindPublicIP\":解绑公网IP - \"DeleteInstance\":删除实例 - \"EnlargeInstanceColdVolume\":扩容实例冷存储 - \"AddInstanceColdVolume\":增加实例冷存储 - \"ModifySecurityGroup\":修改安全组 - \"ModifyCcmCert\":修改CCM证书 - \"ModifyPort\":修改端口 - \"ConstructDisasterRecovery\":构造容灾关系 - \"DeConstructDisasterRecovery\":解除容灾关系 - \"SwitchOverDisasterRecovery\":切换容灾关系 - \"BuildBiActiveInstance\":构建双活实例 - \"ReleaseBiActiveInstance\":解除双活实例关系 - \"BackupInstance\":备份实例 + + :return: The name of this ListJobsRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListJobsRequest. + + 任务名称。对应取值如下: - \"CreateInstance\":创建实例 - \"RestoreNewInstance\":恢复到新实例 - \"EnlargeInstance\":扩容实例 - \"ReduceInstance\":缩容实例 - \"RestartInstance\":重启实例 - \"RestartNode\":重启节点 - \"EnlargeInstanceVolume\":扩容实例磁盘 - \"ReduceInstanceVolume\":缩容实例磁盘 - \"ResizeInstance\":规格变更实例 - \"UpgradeDbVersion\":升级数据库版本 - \"BindPublicIP\":绑定公网IP - \"UnbindPublicIP\":解绑公网IP - \"DeleteInstance\":删除实例 - \"EnlargeInstanceColdVolume\":扩容实例冷存储 - \"AddInstanceColdVolume\":增加实例冷存储 - \"ModifySecurityGroup\":修改安全组 - \"ModifyCcmCert\":修改CCM证书 - \"ModifyPort\":修改端口 - \"ConstructDisasterRecovery\":构造容灾关系 - \"DeConstructDisasterRecovery\":解除容灾关系 - \"SwitchOverDisasterRecovery\":切换容灾关系 - \"BuildBiActiveInstance\":构建双活实例 - \"ReleaseBiActiveInstance\":解除双活实例关系 - \"BackupInstance\":备份实例 + + :param name: The name of this ListJobsRequest. + :type name: str + """ + self._name = name + + @property + def offset(self): + """Gets the offset of this ListJobsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :return: The offset of this ListJobsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListJobsRequest. + + 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + + :param offset: The offset of this ListJobsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListJobsRequest. + + 查询记录数。取值 10 20 50 ,默认为50。 + + :return: The limit of this ListJobsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListJobsRequest. + + 查询记录数。取值 10 20 50 ,默认为50。 + + :param limit: The limit of this ListJobsRequest. + :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, ListJobsRequest): + return False + + return self.__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_jobs_response.py b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_jobs_response.py new file mode 100644 index 000000000..ad47dbdd8 --- /dev/null +++ b/huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_jobs_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListJobsResponse(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 = { + 'jobs': 'list[JobDetail]', + 'total_count': 'int' + } + + attribute_map = { + 'jobs': 'jobs', + 'total_count': 'total_count' + } + + def __init__(self, jobs=None, total_count=None): + """ListJobsResponse + + The model defined in huaweicloud sdk + + :param jobs: 任务列表。 + :type jobs: list[:class:`huaweicloudsdkgaussdbfornosql.v3.JobDetail`] + :param total_count: 任务列表总数 + :type total_count: int + """ + + super(ListJobsResponse, self).__init__() + + self._jobs = None + self._total_count = None + self.discriminator = None + + if jobs is not None: + self.jobs = jobs + if total_count is not None: + self.total_count = total_count + + @property + def jobs(self): + """Gets the jobs of this ListJobsResponse. + + 任务列表。 + + :return: The jobs of this ListJobsResponse. + :rtype: list[:class:`huaweicloudsdkgaussdbfornosql.v3.JobDetail`] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """Sets the jobs of this ListJobsResponse. + + 任务列表。 + + :param jobs: The jobs of this ListJobsResponse. + :type jobs: list[:class:`huaweicloudsdkgaussdbfornosql.v3.JobDetail`] + """ + self._jobs = jobs + + @property + def total_count(self): + """Gets the total_count of this ListJobsResponse. + + 任务列表总数 + + :return: The total_count of this ListJobsResponse. + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this ListJobsResponse. + + 任务列表总数 + + :param total_count: The total_count of this ListJobsResponse. + :type total_count: int + """ + self._total_count = total_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListJobsResponse): + return False + + return self.__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 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-gaussdbfornosql/requirements.txt +++ b/huaweicloud-sdk-gaussdbfornosql/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbfornosql/setup.py b/huaweicloud-sdk-gaussdbfornosql/setup.py index 6799b50fb..621299690 100644 --- a/huaweicloud-sdk-gaussdbfornosql/setup.py +++ b/huaweicloud-sdk-gaussdbfornosql/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbfornosql" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/requirements.txt +++ b/huaweicloud-sdk-gaussdbforopengauss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-gaussdbforopengauss/setup.py b/huaweicloud-sdk-gaussdbforopengauss/setup.py index 64f19e56b..11afc0953 100644 --- a/huaweicloud-sdk-gaussdbforopengauss/setup.py +++ b/huaweicloud-sdk-gaussdbforopengauss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgaussdbforopengauss" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ges/requirements.txt b/huaweicloud-sdk-ges/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ges/requirements.txt +++ b/huaweicloud-sdk-ges/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ges/setup.py b/huaweicloud-sdk-ges/setup.py index 70ee19ee5..6913dea33 100644 --- a/huaweicloud-sdk-ges/setup.py +++ b/huaweicloud-sdk-ges/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkges" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-gsl/requirements.txt b/huaweicloud-sdk-gsl/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-gsl/requirements.txt +++ b/huaweicloud-sdk-gsl/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-gsl/setup.py b/huaweicloud-sdk-gsl/setup.py index 712645477..3258f92c6 100644 --- a/huaweicloud-sdk-gsl/setup.py +++ b/huaweicloud-sdk-gsl/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkgsl" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hilens/requirements.txt b/huaweicloud-sdk-hilens/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-hilens/requirements.txt +++ b/huaweicloud-sdk-hilens/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-hilens/setup.py b/huaweicloud-sdk-hilens/setup.py index 337e53d7e..ab79b59cb 100644 --- a/huaweicloud-sdk-hilens/setup.py +++ b/huaweicloud-sdk-hilens/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhilens" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/port_response_info.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/port_response_info.py index e0843db91..668756747 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/port_response_info.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/port_response_info.py @@ -23,7 +23,9 @@ class PortResponseInfo: 'port': 'int', 'type': 'str', 'pid': 'int', - 'path': 'str' + 'path': 'str', + 'agent_id': 'str', + 'container_id': 'str' } attribute_map = { @@ -33,10 +35,12 @@ class PortResponseInfo: 'port': 'port', 'type': 'type', 'pid': 'pid', - 'path': 'path' + 'path': 'path', + 'agent_id': 'agent_id', + 'container_id': 'container_id' } - def __init__(self, host_id=None, laddr=None, status=None, port=None, type=None, pid=None, path=None): + def __init__(self, host_id=None, laddr=None, status=None, port=None, type=None, pid=None, path=None, agent_id=None, container_id=None): """PortResponseInfo The model defined in huaweicloud sdk @@ -55,6 +59,10 @@ class PortResponseInfo: :type pid: int :param path: 程序文件 :type path: str + :param agent_id: agent id + :type agent_id: str + :param container_id: 容器id + :type container_id: str """ @@ -66,6 +74,8 @@ class PortResponseInfo: self._type = None self._pid = None self._path = None + self._agent_id = None + self._container_id = None self.discriminator = None if host_id is not None: @@ -82,6 +92,10 @@ class PortResponseInfo: self.pid = pid if path is not None: self.path = path + if agent_id is not None: + self.agent_id = agent_id + if container_id is not None: + self.container_id = container_id @property def host_id(self): @@ -237,6 +251,50 @@ class PortResponseInfo: """ self._path = path + @property + def agent_id(self): + """Gets the agent_id of this PortResponseInfo. + + agent id + + :return: The agent_id of this PortResponseInfo. + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this PortResponseInfo. + + agent id + + :param agent_id: The agent_id of this PortResponseInfo. + :type agent_id: str + """ + self._agent_id = agent_id + + @property + def container_id(self): + """Gets the container_id of this PortResponseInfo. + + 容器id + + :return: The container_id of this PortResponseInfo. + :rtype: str + """ + return self._container_id + + @container_id.setter + def container_id(self, container_id): + """Sets the container_id of this PortResponseInfo. + + 容器id + + :param container_id: The container_id of this PortResponseInfo. + :type container_id: str + """ + self._container_id = container_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/private_image_repository_info.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/private_image_repository_info.py index f2e0019ce..49ed5d848 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/private_image_repository_info.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/private_image_repository_info.py @@ -36,6 +36,9 @@ class PrivateImageRepositoryInfo: 'domain_name': 'str', 'shared_status': 'str', 'scannable': 'bool', + 'instance_name': 'str', + 'instance_id': 'str', + 'instance_url': 'str', 'association_images': 'list[AssociateImages]' } @@ -59,10 +62,13 @@ class PrivateImageRepositoryInfo: 'domain_name': 'domain_name', 'shared_status': 'shared_status', 'scannable': 'scannable', + 'instance_name': 'instance_name', + 'instance_id': 'instance_id', + 'instance_url': 'instance_url', 'association_images': 'association_images' } - def __init__(self, id=None, namespace=None, image_name=None, image_id=None, image_digest=None, image_version=None, image_type=None, latest_version=None, scan_status=None, scan_failed_desc=None, image_size=None, latest_update_time=None, latest_scan_time=None, vul_num=None, unsafe_setting_num=None, malicious_file_num=None, domain_name=None, shared_status=None, scannable=None, association_images=None): + def __init__(self, id=None, namespace=None, image_name=None, image_id=None, image_digest=None, image_version=None, image_type=None, latest_version=None, scan_status=None, scan_failed_desc=None, image_size=None, latest_update_time=None, latest_scan_time=None, vul_num=None, unsafe_setting_num=None, malicious_file_num=None, domain_name=None, shared_status=None, scannable=None, instance_name=None, instance_id=None, instance_url=None, association_images=None): """PrivateImageRepositoryInfo The model defined in huaweicloud sdk @@ -105,6 +111,12 @@ class PrivateImageRepositoryInfo: :type shared_status: str :param scannable: 是否可扫描 :type scannable: bool + :param instance_name: 企业实例名称 + :type instance_name: str + :param instance_id: 企业实例ID + :type instance_id: str + :param instance_url: 企业镜像URL + :type instance_url: str :param association_images: 多架构关联镜像信息 :type association_images: list[:class:`huaweicloudsdkhss.v5.AssociateImages`] """ @@ -130,6 +142,9 @@ class PrivateImageRepositoryInfo: self._domain_name = None self._shared_status = None self._scannable = None + self._instance_name = None + self._instance_id = None + self._instance_url = None self._association_images = None self.discriminator = None @@ -171,6 +186,12 @@ class PrivateImageRepositoryInfo: self.shared_status = shared_status if scannable is not None: self.scannable = scannable + if instance_name is not None: + self.instance_name = instance_name + if instance_id is not None: + self.instance_id = instance_id + if instance_url is not None: + self.instance_url = instance_url if association_images is not None: self.association_images = association_images @@ -592,6 +613,72 @@ class PrivateImageRepositoryInfo: """ self._scannable = scannable + @property + def instance_name(self): + """Gets the instance_name of this PrivateImageRepositoryInfo. + + 企业实例名称 + + :return: The instance_name of this PrivateImageRepositoryInfo. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """Sets the instance_name of this PrivateImageRepositoryInfo. + + 企业实例名称 + + :param instance_name: The instance_name of this PrivateImageRepositoryInfo. + :type instance_name: str + """ + self._instance_name = instance_name + + @property + def instance_id(self): + """Gets the instance_id of this PrivateImageRepositoryInfo. + + 企业实例ID + + :return: The instance_id of this PrivateImageRepositoryInfo. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this PrivateImageRepositoryInfo. + + 企业实例ID + + :param instance_id: The instance_id of this PrivateImageRepositoryInfo. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def instance_url(self): + """Gets the instance_url of this PrivateImageRepositoryInfo. + + 企业镜像URL + + :return: The instance_url of this PrivateImageRepositoryInfo. + :rtype: str + """ + return self._instance_url + + @instance_url.setter + def instance_url(self, instance_url): + """Sets the instance_url of this PrivateImageRepositoryInfo. + + 企业镜像URL + + :param instance_url: The instance_url of this PrivateImageRepositoryInfo. + :type instance_url: str + """ + self._instance_url = instance_url + @property def association_images(self): """Gets the association_images of this PrivateImageRepositoryInfo. diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/show_asset_statistic_response.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/show_asset_statistic_response.py index 352cdabe0..ef78c112a 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/show_asset_statistic_response.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/show_asset_statistic_response.py @@ -29,7 +29,9 @@ class ShowAssetStatisticResponse(SdkResponse): 'kernel_module_num': 'int', 'web_service_num': 'int', 'web_app_num': 'int', - 'database_num': 'int' + 'database_num': 'int', + 'core_conf_file_num': 'int', + 'environment_num': 'int' } attribute_map = { @@ -44,10 +46,12 @@ class ShowAssetStatisticResponse(SdkResponse): 'kernel_module_num': 'kernel_module_num', 'web_service_num': 'web_service_num', 'web_app_num': 'web_app_num', - 'database_num': 'database_num' + 'database_num': 'database_num', + 'core_conf_file_num': 'core_conf_file_num', + 'environment_num': 'environment_num' } - def __init__(self, account_num=None, port_num=None, process_num=None, app_num=None, auto_launch_num=None, web_framework_num=None, web_site_num=None, jar_package_num=None, kernel_module_num=None, web_service_num=None, web_app_num=None, database_num=None): + def __init__(self, account_num=None, port_num=None, process_num=None, app_num=None, auto_launch_num=None, web_framework_num=None, web_site_num=None, jar_package_num=None, kernel_module_num=None, web_service_num=None, web_app_num=None, database_num=None, core_conf_file_num=None, environment_num=None): """ShowAssetStatisticResponse The model defined in huaweicloud sdk @@ -76,6 +80,10 @@ class ShowAssetStatisticResponse(SdkResponse): :type web_app_num: int :param database_num: 数据库数量 :type database_num: int + :param core_conf_file_num: 关键配置文件数量 + :type core_conf_file_num: int + :param environment_num: 环境变量数量 + :type environment_num: int """ super(ShowAssetStatisticResponse, self).__init__() @@ -92,6 +100,8 @@ class ShowAssetStatisticResponse(SdkResponse): self._web_service_num = None self._web_app_num = None self._database_num = None + self._core_conf_file_num = None + self._environment_num = None self.discriminator = None if account_num is not None: @@ -118,6 +128,10 @@ class ShowAssetStatisticResponse(SdkResponse): self.web_app_num = web_app_num if database_num is not None: self.database_num = database_num + if core_conf_file_num is not None: + self.core_conf_file_num = core_conf_file_num + if environment_num is not None: + self.environment_num = environment_num @property def account_num(self): @@ -383,6 +397,50 @@ class ShowAssetStatisticResponse(SdkResponse): """ self._database_num = database_num + @property + def core_conf_file_num(self): + """Gets the core_conf_file_num of this ShowAssetStatisticResponse. + + 关键配置文件数量 + + :return: The core_conf_file_num of this ShowAssetStatisticResponse. + :rtype: int + """ + return self._core_conf_file_num + + @core_conf_file_num.setter + def core_conf_file_num(self, core_conf_file_num): + """Sets the core_conf_file_num of this ShowAssetStatisticResponse. + + 关键配置文件数量 + + :param core_conf_file_num: The core_conf_file_num of this ShowAssetStatisticResponse. + :type core_conf_file_num: int + """ + self._core_conf_file_num = core_conf_file_num + + @property + def environment_num(self): + """Gets the environment_num of this ShowAssetStatisticResponse. + + 环境变量数量 + + :return: The environment_num of this ShowAssetStatisticResponse. + :rtype: int + """ + return self._environment_num + + @environment_num.setter + def environment_num(self, environment_num): + """Sets the environment_num of this ShowAssetStatisticResponse. + + 环境变量数量 + + :param environment_num: The environment_num of this ShowAssetStatisticResponse. + :type environment_num: int + """ + self._environment_num = environment_num + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/vul_host_info.py b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/vul_host_info.py index 23a7d524d..7fca2836c 100644 --- a/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/vul_host_info.py +++ b/huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/vul_host_info.py @@ -101,7 +101,7 @@ class VulHostInfo: :type group_name: str :param os_type: 操作系统 :type os_type: str - :param asset_value: 资产重要性,包含如下3种 important :重要资产 common :一般资产 test :测试资产 + :param asset_value: 资产重要性,包含如下3种 - important :重要资产 - common :一般资产 - test :测试资产 :type asset_value: str :param is_affect_business: 是否影响业务 :type is_affect_business: bool @@ -537,7 +537,7 @@ class VulHostInfo: def asset_value(self): """Gets the asset_value of this VulHostInfo. - 资产重要性,包含如下3种 important :重要资产 common :一般资产 test :测试资产 + 资产重要性,包含如下3种 - important :重要资产 - common :一般资产 - test :测试资产 :return: The asset_value of this VulHostInfo. :rtype: str @@ -548,7 +548,7 @@ class VulHostInfo: def asset_value(self, asset_value): """Sets the asset_value of this VulHostInfo. - 资产重要性,包含如下3种 important :重要资产 common :一般资产 test :测试资产 + 资产重要性,包含如下3种 - important :重要资产 - common :一般资产 - test :测试资产 :param asset_value: The asset_value of this VulHostInfo. :type asset_value: str diff --git a/huaweicloud-sdk-hss/requirements.txt b/huaweicloud-sdk-hss/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-hss/requirements.txt +++ b/huaweicloud-sdk-hss/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-hss/setup.py b/huaweicloud-sdk-hss/setup.py index e7be7c7dc..72208f785 100644 --- a/huaweicloud-sdk-hss/setup.py +++ b/huaweicloud-sdk-hss/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkhss" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py index 0b798586c..1c523a474 100644 --- a/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py +++ b/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/region/iam_region.py @@ -45,6 +45,8 @@ class IamRegion: "https://iam.cn-north-9.myhuaweicloud.com") EU_WEST_101 = Region("eu-west-101", "https://iam.eu-west-101.myhuaweicloud.eu") + EU_WEST_0 = Region("eu-west-0", + "https://iam.eu-west-0.myhuaweicloud.com") static_fields = { "cn-north-2": CN_NORTH_2, @@ -65,6 +67,7 @@ class IamRegion: "la-north-2": LA_NORTH_2, "cn-north-9": CN_NORTH_9, "eu-west-101": EU_WEST_101, + "eu-west-0": EU_WEST_0, } @classmethod diff --git a/huaweicloud-sdk-iam/requirements.txt b/huaweicloud-sdk-iam/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-iam/requirements.txt +++ b/huaweicloud-sdk-iam/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-iam/setup.py b/huaweicloud-sdk-iam/setup.py index c95b67a49..667d559da 100644 --- a/huaweicloud-sdk-iam/setup.py +++ b/huaweicloud-sdk-iam/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiam" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenter/requirements.txt b/huaweicloud-sdk-identitycenter/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-identitycenter/requirements.txt +++ b/huaweicloud-sdk-identitycenter/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenter/setup.py b/huaweicloud-sdk-identitycenter/setup.py index 637587ee2..02ae6c2b8 100644 --- a/huaweicloud-sdk-identitycenter/setup.py +++ b/huaweicloud-sdk-identitycenter/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenter" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-identitycenterstore/requirements.txt b/huaweicloud-sdk-identitycenterstore/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-identitycenterstore/requirements.txt +++ b/huaweicloud-sdk-identitycenterstore/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-identitycenterstore/setup.py b/huaweicloud-sdk-identitycenterstore/setup.py index 14b255fd9..43a7dbf8a 100644 --- a/huaweicloud-sdk-identitycenterstore/setup.py +++ b/huaweicloud-sdk-identitycenterstore/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidentitycenterstore" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idme/requirements.txt b/huaweicloud-sdk-idme/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-idme/requirements.txt +++ b/huaweicloud-sdk-idme/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-idme/setup.py b/huaweicloud-sdk-idme/setup.py index fe5e7d774..ca0575c7b 100644 --- a/huaweicloud-sdk-idme/setup.py +++ b/huaweicloud-sdk-idme/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidme" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-idmeclassicapi/requirements.txt b/huaweicloud-sdk-idmeclassicapi/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-idmeclassicapi/requirements.txt +++ b/huaweicloud-sdk-idmeclassicapi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-idmeclassicapi/setup.py b/huaweicloud-sdk-idmeclassicapi/setup.py index 4f9a8d95e..dea024bb4 100644 --- a/huaweicloud-sdk-idmeclassicapi/setup.py +++ b/huaweicloud-sdk-idmeclassicapi/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkidmeclassicapi" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iec/requirements.txt b/huaweicloud-sdk-iec/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-iec/requirements.txt +++ b/huaweicloud-sdk-iec/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-iec/setup.py b/huaweicloud-sdk-iec/setup.py index 57fadc3a6..953c6e5ab 100644 --- a/huaweicloud-sdk-iec/setup.py +++ b/huaweicloud-sdk-iec/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiec" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ief/requirements.txt b/huaweicloud-sdk-ief/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ief/requirements.txt +++ b/huaweicloud-sdk-ief/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ief/setup.py b/huaweicloud-sdk-ief/setup.py index a9e86597a..9d69fe4cf 100644 --- a/huaweicloud-sdk-ief/setup.py +++ b/huaweicloud-sdk-ief/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkief" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-image/requirements.txt b/huaweicloud-sdk-image/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-image/requirements.txt +++ b/huaweicloud-sdk-image/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-image/setup.py b/huaweicloud-sdk-image/setup.py index 48ea9c0ac..10c64ae9b 100644 --- a/huaweicloud-sdk-image/setup.py +++ b/huaweicloud-sdk-image/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimage" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-imagesearch/requirements.txt b/huaweicloud-sdk-imagesearch/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-imagesearch/requirements.txt +++ b/huaweicloud-sdk-imagesearch/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-imagesearch/setup.py b/huaweicloud-sdk-imagesearch/setup.py index b13093000..dba213078 100644 --- a/huaweicloud-sdk-imagesearch/setup.py +++ b/huaweicloud-sdk-imagesearch/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkimagesearch" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ims/requirements.txt b/huaweicloud-sdk-ims/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ims/requirements.txt +++ b/huaweicloud-sdk-ims/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ims/setup.py b/huaweicloud-sdk-ims/setup.py index a017af383..ff3c2ddab 100644 --- a/huaweicloud-sdk-ims/setup.py +++ b/huaweicloud-sdk-ims/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkims" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotanalytics/requirements.txt b/huaweicloud-sdk-iotanalytics/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-iotanalytics/requirements.txt +++ b/huaweicloud-sdk-iotanalytics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-iotanalytics/setup.py b/huaweicloud-sdk-iotanalytics/setup.py index b0dcf95a7..d8aa90839 100644 --- a/huaweicloud-sdk-iotanalytics/setup.py +++ b/huaweicloud-sdk-iotanalytics/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotanalytics" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotda/requirements.txt b/huaweicloud-sdk-iotda/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-iotda/requirements.txt +++ b/huaweicloud-sdk-iotda/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-iotda/setup.py b/huaweicloud-sdk-iotda/setup.py index 3a450085a..cae588450 100644 --- a/huaweicloud-sdk-iotda/setup.py +++ b/huaweicloud-sdk-iotda/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotda" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-iotedge/requirements.txt b/huaweicloud-sdk-iotedge/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-iotedge/requirements.txt +++ b/huaweicloud-sdk-iotedge/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-iotedge/setup.py b/huaweicloud-sdk-iotedge/setup.py index 2891d70b7..2bed5080d 100644 --- a/huaweicloud-sdk-iotedge/setup.py +++ b/huaweicloud-sdk-iotedge/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkiotedge" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ivs/requirements.txt b/huaweicloud-sdk-ivs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ivs/requirements.txt +++ b/huaweicloud-sdk-ivs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ivs/setup.py b/huaweicloud-sdk-ivs/setup.py index a3b99c798..73216b11c 100644 --- a/huaweicloud-sdk-ivs/setup.py +++ b/huaweicloud-sdk-ivs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkivs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/__init__.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/__init__.py index c4b60c8ed..d64dea874 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/__init__.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/__init__.py @@ -56,6 +56,9 @@ from huaweicloudsdkkafka.v2.model.create_post_paid_instance_request import Creat from huaweicloudsdkkafka.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse from huaweicloudsdkkafka.v2.model.create_reassignment_task_request import CreateReassignmentTaskRequest from huaweicloudsdkkafka.v2.model.create_reassignment_task_response import CreateReassignmentTaskResponse +from huaweicloudsdkkafka.v2.model.create_shrinkage_job_request import CreateShrinkageJobRequest +from huaweicloudsdkkafka.v2.model.create_shrinkage_job_request_body import CreateShrinkageJobRequestBody +from huaweicloudsdkkafka.v2.model.create_shrinkage_job_response import CreateShrinkageJobResponse from huaweicloudsdkkafka.v2.model.create_sink_task_req import CreateSinkTaskReq from huaweicloudsdkkafka.v2.model.create_sink_task_request import CreateSinkTaskRequest from huaweicloudsdkkafka.v2.model.create_sink_task_response import CreateSinkTaskResponse @@ -214,6 +217,10 @@ from huaweicloudsdkkafka.v2.model.show_partition_end_message_response import Sho from huaweicloudsdkkafka.v2.model.show_partition_message_entity import ShowPartitionMessageEntity from huaweicloudsdkkafka.v2.model.show_partition_message_request import ShowPartitionMessageRequest from huaweicloudsdkkafka.v2.model.show_partition_message_response import ShowPartitionMessageResponse +from huaweicloudsdkkafka.v2.model.show_shrink_check_request_body import ShowShrinkCheckRequestBody +from huaweicloudsdkkafka.v2.model.show_shrink_check_response_body_check_detail import ShowShrinkCheckResponseBodyCheckDetail +from huaweicloudsdkkafka.v2.model.show_shrink_check_result_request import ShowShrinkCheckResultRequest +from huaweicloudsdkkafka.v2.model.show_shrink_check_result_response import ShowShrinkCheckResultResponse from huaweicloudsdkkafka.v2.model.show_sink_task_detail_request import ShowSinkTaskDetailRequest from huaweicloudsdkkafka.v2.model.show_sink_task_detail_resp_obs_destination_descriptor import ShowSinkTaskDetailRespObsDestinationDescriptor from huaweicloudsdkkafka.v2.model.show_sink_task_detail_resp_partitions import ShowSinkTaskDetailRespPartitions diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_async_client.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_async_client.py index 61086aded..78cad1ed1 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_async_client.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_async_client.py @@ -1039,6 +1039,75 @@ class KafkaAsyncClient(Client): return http_info + def create_shrinkage_job_async(self, request): + """实例缩容 + + 实例缩容 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateShrinkageJob + :type request: :class:`huaweicloudsdkkafka.v2.CreateShrinkageJobRequest` + :rtype: :class:`huaweicloudsdkkafka.v2.CreateShrinkageJobResponse` + """ + http_info = self._create_shrinkage_job_http_info(request) + return self._call_api(**http_info) + + def create_shrinkage_job_async_invoker(self, request): + http_info = self._create_shrinkage_job_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_shrinkage_job_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/shrink", + "request_type": request.__class__.__name__, + "response_type": "CreateShrinkageJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + 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 = ['apig-auth-iam'] + + 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_sink_task_async(self, request): """创建转储任务 @@ -4184,6 +4253,75 @@ class KafkaAsyncClient(Client): return http_info + def show_shrink_check_result_async(self, request): + """实例缩容前置检查 + + 实例缩容前置检查。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ShowShrinkCheckResult + :type request: :class:`huaweicloudsdkkafka.v2.ShowShrinkCheckResultRequest` + :rtype: :class:`huaweicloudsdkkafka.v2.ShowShrinkCheckResultResponse` + """ + http_info = self._show_shrink_check_result_http_info(request) + return self._call_api(**http_info) + + def show_shrink_check_result_async_invoker(self, request): + http_info = self._show_shrink_check_result_http_info(request) + return AsyncInvoker(self, http_info) + + def _show_shrink_check_result_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/shrink-check", + "request_type": request.__class__.__name__, + "response_type": "ShowShrinkCheckResultResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + 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 = ['apig-auth-iam'] + + 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_sink_task_detail_async(self, request): """查询单个转储任务 diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_client.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_client.py index 841fe82c4..7a7b80611 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_client.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/kafka_client.py @@ -1039,6 +1039,75 @@ class KafkaClient(Client): return http_info + def create_shrinkage_job(self, request): + """实例缩容 + + 实例缩容 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateShrinkageJob + :type request: :class:`huaweicloudsdkkafka.v2.CreateShrinkageJobRequest` + :rtype: :class:`huaweicloudsdkkafka.v2.CreateShrinkageJobResponse` + """ + http_info = self._create_shrinkage_job_http_info(request) + return self._call_api(**http_info) + + def create_shrinkage_job_invoker(self, request): + http_info = self._create_shrinkage_job_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_shrinkage_job_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/shrink", + "request_type": request.__class__.__name__, + "response_type": "CreateShrinkageJobResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + 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 = ['apig-auth-iam'] + + 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_sink_task(self, request): """创建转储任务 @@ -4184,6 +4253,75 @@ class KafkaClient(Client): return http_info + def show_shrink_check_result(self, request): + """实例缩容前置检查 + + 实例缩容前置检查。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ShowShrinkCheckResult + :type request: :class:`huaweicloudsdkkafka.v2.ShowShrinkCheckResultRequest` + :rtype: :class:`huaweicloudsdkkafka.v2.ShowShrinkCheckResultResponse` + """ + http_info = self._show_shrink_check_result_http_info(request) + return self._call_api(**http_info) + + def show_shrink_check_result_invoker(self, request): + http_info = self._show_shrink_check_result_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _show_shrink_check_result_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v2/{engine}/{project_id}/instances/{instance_id}/shrink-check", + "request_type": request.__class__.__name__, + "response_type": "ShowShrinkCheckResultResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'engine' in local_var_params: + path_params['engine'] = local_var_params['engine'] + 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 = ['apig-auth-iam'] + + 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_sink_task_detail(self, request): """查询单个转储任务 diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/__init__.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/__init__.py index 80d751baa..975f82a3d 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/__init__.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/__init__.py @@ -54,6 +54,9 @@ from huaweicloudsdkkafka.v2.model.create_post_paid_instance_request import Creat from huaweicloudsdkkafka.v2.model.create_post_paid_instance_response import CreatePostPaidInstanceResponse from huaweicloudsdkkafka.v2.model.create_reassignment_task_request import CreateReassignmentTaskRequest from huaweicloudsdkkafka.v2.model.create_reassignment_task_response import CreateReassignmentTaskResponse +from huaweicloudsdkkafka.v2.model.create_shrinkage_job_request import CreateShrinkageJobRequest +from huaweicloudsdkkafka.v2.model.create_shrinkage_job_request_body import CreateShrinkageJobRequestBody +from huaweicloudsdkkafka.v2.model.create_shrinkage_job_response import CreateShrinkageJobResponse from huaweicloudsdkkafka.v2.model.create_sink_task_req import CreateSinkTaskReq from huaweicloudsdkkafka.v2.model.create_sink_task_request import CreateSinkTaskRequest from huaweicloudsdkkafka.v2.model.create_sink_task_response import CreateSinkTaskResponse @@ -212,6 +215,10 @@ from huaweicloudsdkkafka.v2.model.show_partition_end_message_response import Sho from huaweicloudsdkkafka.v2.model.show_partition_message_entity import ShowPartitionMessageEntity from huaweicloudsdkkafka.v2.model.show_partition_message_request import ShowPartitionMessageRequest from huaweicloudsdkkafka.v2.model.show_partition_message_response import ShowPartitionMessageResponse +from huaweicloudsdkkafka.v2.model.show_shrink_check_request_body import ShowShrinkCheckRequestBody +from huaweicloudsdkkafka.v2.model.show_shrink_check_response_body_check_detail import ShowShrinkCheckResponseBodyCheckDetail +from huaweicloudsdkkafka.v2.model.show_shrink_check_result_request import ShowShrinkCheckResultRequest +from huaweicloudsdkkafka.v2.model.show_shrink_check_result_response import ShowShrinkCheckResultResponse from huaweicloudsdkkafka.v2.model.show_sink_task_detail_request import ShowSinkTaskDetailRequest from huaweicloudsdkkafka.v2.model.show_sink_task_detail_resp_obs_destination_descriptor import ShowSinkTaskDetailRespObsDestinationDescriptor from huaweicloudsdkkafka.v2.model.show_sink_task_detail_resp_partitions import ShowSinkTaskDetailRespPartitions diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py index 9c1fadb94..12e4a07b0 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_instance_by_engine_req.py @@ -117,7 +117,7 @@ class CreateInstanceByEngineReq: :type subnet_id: str :param available_zones: 创建节点到指定且有资源的可用区ID。请参考[查询可用区信息](ListAvailableZones.xml)获取可用区ID。 该参数不能为空数组或者数组的值为空。 创建Kafka实例,支持节点部署在1个或3个及3个以上的可用区。在为节点指定可用区时,用逗号分隔开。 :type available_zones: list[str] - :param product_id: 产品ID。 产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。 + :param product_id: 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) :type product_id: str :param kafka_manager_user: 表示登录Kafka Manager的用户名。只能由英文字母、数字、中划线、下划线组成,长度为4~64的字符。 :type kafka_manager_user: str @@ -522,7 +522,7 @@ class CreateInstanceByEngineReq: def product_id(self): """Gets the product_id of this CreateInstanceByEngineReq. - 产品ID。 产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。 + 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) :return: The product_id of this CreateInstanceByEngineReq. :rtype: str @@ -533,7 +533,7 @@ class CreateInstanceByEngineReq: def product_id(self, product_id): """Sets the product_id of this CreateInstanceByEngineReq. - 产品ID。 产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。 + 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) :param product_id: The product_id of this CreateInstanceByEngineReq. :type product_id: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py index 85e26dca0..0702bff31 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_post_paid_instance_req.py @@ -121,7 +121,7 @@ class CreatePostPaidInstanceReq: :type subnet_id: str :param available_zones: 创建节点到指定且有资源的可用区ID。请参考[查询可用区信息](ListAvailableZones.xml)获取可用区ID。 该参数不能为空数组或者数组的值为空。 创建Kafka实例,支持节点部署在1个或3个及3个以上的可用区。在为节点指定可用区时,用逗号分隔开。 :type available_zones: list[str] - :param product_id: 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu,g42,tm,hk_g42,hk_tm,ocb,hws_ocb) [创建kafka实例,支持的产品规格有: (product_id/specification/partition_num/storage_space) 00300-30308-0--0/100MB/300/600; 00300-30310-0--0/300MB/900/1200; 00300-30312-0--0/600MB/1800/2400; 00300-30314-0--0/1200MB/1800/4800](tag:otc,dt) + :param product_id: 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) [创建kafka实例,支持的产品规格有: (product_id/specification/partition_num/storage_space) 00300-30308-0--0/100MB/300/600; 00300-30310-0--0/300MB/900/1200; 00300-30312-0--0/600MB/1800/2400; 00300-30314-0--0/1200MB/1800/4800](tag:otc,dt) :type product_id: str :param kafka_manager_user: 表示登录Kafka Manager的用户名。只能由英文字母、数字、中划线组成,长度为4~64的字符。 :type kafka_manager_user: str @@ -133,7 +133,7 @@ class CreatePostPaidInstanceReq: :type maintain_end: str :param enable_publicip: 是否开启公网访问功能。默认不开启公网。 - true:开启 - false:不开启 :type enable_publicip: bool - :param public_bandwidth: 表示公网带宽,单位是Mbit/s。 [取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。](tag:hws,hws_hk,otc,ocb,hws_ocb,ctc,sbc,hk_sbc,cmcc,g42,tm,hk_g42,hk_tm) [老规格实例取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。 新规格实例取值范围: - Kafka实例规格为c6.2u4g.cluster时,公网带宽取值范围3到250,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.4u8g.cluster时,公网带宽取值范围3到500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.8u16g.cluster时,公网带宽取值范围4到1000,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.12u24g.cluster时,公网带宽取值范围8到1500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.16u32g.cluster时,公网带宽取值范围8到2000,且必须为实例节点个数的倍数。](tag:hc,hk) + :param public_bandwidth: 表示公网带宽,单位是Mbit/s。 [取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。](tag:hws,hws_hk,otc,ocb,hws_ocb,ctc,sbc,hk_sbc,cmcc,g42,tm,hk_g42,hk_tm) [老规格实例取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。 新规格实例取值范围: - Kafka实例规格为c6.2u4g.cluster时,公网带宽取值范围3到250,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.4u8g.cluster时,公网带宽取值范围3到500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.8u16g.cluster时,公网带宽取值范围4到1000,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.12u24g.cluster时,公网带宽取值范围8到1500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.16u32g.cluster时,公网带宽取值范围8到2000,且必须为实例节点个数的倍数。](tag:hc,hk) :type public_bandwidth: int :param publicip_id: 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网访问功能(即enable_publicip为true),该字段为必选。 :type publicip_id: str @@ -567,7 +567,7 @@ class CreatePostPaidInstanceReq: def product_id(self): """Gets the product_id of this CreatePostPaidInstanceReq. - 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu,g42,tm,hk_g42,hk_tm,ocb,hws_ocb) [创建kafka实例,支持的产品规格有: (product_id/specification/partition_num/storage_space) 00300-30308-0--0/100MB/300/600; 00300-30310-0--0/300MB/900/1200; 00300-30312-0--0/600MB/1800/2400; 00300-30314-0--0/1200MB/1800/4800](tag:otc,dt) + 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) [创建kafka实例,支持的产品规格有: (product_id/specification/partition_num/storage_space) 00300-30308-0--0/100MB/300/600; 00300-30310-0--0/300MB/900/1200; 00300-30312-0--0/600MB/1800/2400; 00300-30314-0--0/1200MB/1800/4800](tag:otc,dt) :return: The product_id of this CreatePostPaidInstanceReq. :rtype: str @@ -578,7 +578,7 @@ class CreatePostPaidInstanceReq: def product_id(self, product_id): """Sets the product_id of this CreatePostPaidInstanceReq. - 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,sbc,hk_sbc,cmcc,hws_eu,g42,tm,hk_g42,hk_tm,ocb,hws_ocb) [创建kafka实例,支持的产品规格有: (product_id/specification/partition_num/storage_space) 00300-30308-0--0/100MB/300/600; 00300-30310-0--0/300MB/900/1200; 00300-30312-0--0/600MB/1800/2400; 00300-30314-0--0/1200MB/1800/4800](tag:otc,dt) + 产品ID。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) [创建kafka实例,支持的产品规格有: (product_id/specification/partition_num/storage_space) 00300-30308-0--0/100MB/300/600; 00300-30310-0--0/300MB/900/1200; 00300-30312-0--0/600MB/1800/2400; 00300-30314-0--0/1200MB/1800/4800](tag:otc,dt) :param product_id: The product_id of this CreatePostPaidInstanceReq. :type product_id: str @@ -699,7 +699,7 @@ class CreatePostPaidInstanceReq: def public_bandwidth(self): """Gets the public_bandwidth of this CreatePostPaidInstanceReq. - 表示公网带宽,单位是Mbit/s。 [取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。](tag:hws,hws_hk,otc,ocb,hws_ocb,ctc,sbc,hk_sbc,cmcc,g42,tm,hk_g42,hk_tm) [老规格实例取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。 新规格实例取值范围: - Kafka实例规格为c6.2u4g.cluster时,公网带宽取值范围3到250,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.4u8g.cluster时,公网带宽取值范围3到500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.8u16g.cluster时,公网带宽取值范围4到1000,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.12u24g.cluster时,公网带宽取值范围8到1500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.16u32g.cluster时,公网带宽取值范围8到2000,且必须为实例节点个数的倍数。](tag:hc,hk) + 表示公网带宽,单位是Mbit/s。 [取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。](tag:hws,hws_hk,otc,ocb,hws_ocb,ctc,sbc,hk_sbc,cmcc,g42,tm,hk_g42,hk_tm) [老规格实例取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。 新规格实例取值范围: - Kafka实例规格为c6.2u4g.cluster时,公网带宽取值范围3到250,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.4u8g.cluster时,公网带宽取值范围3到500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.8u16g.cluster时,公网带宽取值范围4到1000,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.12u24g.cluster时,公网带宽取值范围8到1500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.16u32g.cluster时,公网带宽取值范围8到2000,且必须为实例节点个数的倍数。](tag:hc,hk) :return: The public_bandwidth of this CreatePostPaidInstanceReq. :rtype: int @@ -710,7 +710,7 @@ class CreatePostPaidInstanceReq: def public_bandwidth(self, public_bandwidth): """Sets the public_bandwidth of this CreatePostPaidInstanceReq. - 表示公网带宽,单位是Mbit/s。 [取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。](tag:hws,hws_hk,otc,ocb,hws_ocb,ctc,sbc,hk_sbc,cmcc,g42,tm,hk_g42,hk_tm) [老规格实例取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。 新规格实例取值范围: - Kafka实例规格为c6.2u4g.cluster时,公网带宽取值范围3到250,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.4u8g.cluster时,公网带宽取值范围3到500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.8u16g.cluster时,公网带宽取值范围4到1000,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.12u24g.cluster时,公网带宽取值范围8到1500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.16u32g.cluster时,公网带宽取值范围8到2000,且必须为实例节点个数的倍数。](tag:hc,hk) + 表示公网带宽,单位是Mbit/s。 [取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。](tag:hws,hws_hk,otc,ocb,hws_ocb,ctc,sbc,hk_sbc,cmcc,g42,tm,hk_g42,hk_tm) [老规格实例取值范围: - Kafka实例规格为100MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为300MB时,公网带宽取值范围3到900,且必须为实例节点个数的倍数。 - Kafka实例规格为600MB时,公网带宽取值范围4到1200,且必须为实例节点个数的倍数。 - Kafka实例规格为1200MB时,公网带宽取值范围8到2400,且必须为实例节点个数的倍数。 新规格实例取值范围: - Kafka实例规格为c6.2u4g.cluster时,公网带宽取值范围3到250,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.4u8g.cluster时,公网带宽取值范围3到500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.8u16g.cluster时,公网带宽取值范围4到1000,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.12u24g.cluster时,公网带宽取值范围8到1500,且必须为实例节点个数的倍数。 - Kafka实例规格为c6.16u32g.cluster时,公网带宽取值范围8到2000,且必须为实例节点个数的倍数。](tag:hc,hk) :param public_bandwidth: The public_bandwidth of this CreatePostPaidInstanceReq. :type public_bandwidth: int diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_request.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_request.py new file mode 100644 index 000000000..6580f0855 --- /dev/null +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateShrinkageJobRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'engine': 'str', + 'instance_id': 'str', + 'body': 'CreateShrinkageJobRequestBody' + } + + attribute_map = { + 'engine': 'engine', + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, engine=None, instance_id=None, body=None): + """CreateShrinkageJobRequest + + The model defined in huaweicloud sdk + + :param engine: 消息引擎。 + :type engine: str + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the CreateShrinkageJobRequest + :type body: :class:`huaweicloudsdkkafka.v2.CreateShrinkageJobRequestBody` + """ + + + + self._engine = None + self._instance_id = None + self._body = None + self.discriminator = None + + self.engine = engine + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def engine(self): + """Gets the engine of this CreateShrinkageJobRequest. + + 消息引擎。 + + :return: The engine of this CreateShrinkageJobRequest. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this CreateShrinkageJobRequest. + + 消息引擎。 + + :param engine: The engine of this CreateShrinkageJobRequest. + :type engine: str + """ + self._engine = engine + + @property + def instance_id(self): + """Gets the instance_id of this CreateShrinkageJobRequest. + + 实例ID。 + + :return: The instance_id of this CreateShrinkageJobRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this CreateShrinkageJobRequest. + + 实例ID。 + + :param instance_id: The instance_id of this CreateShrinkageJobRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this CreateShrinkageJobRequest. + + :return: The body of this CreateShrinkageJobRequest. + :rtype: :class:`huaweicloudsdkkafka.v2.CreateShrinkageJobRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateShrinkageJobRequest. + + :param body: The body of this CreateShrinkageJobRequest. + :type body: :class:`huaweicloudsdkkafka.v2.CreateShrinkageJobRequestBody` + """ + 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, CreateShrinkageJobRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_request_body.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_request_body.py new file mode 100644 index 000000000..5d0b4fb5e --- /dev/null +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_request_body.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateShrinkageJobRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'new_broker_num': 'str' + } + + attribute_map = { + 'new_broker_num': 'new_broker_num' + } + + def __init__(self, new_broker_num=None): + """CreateShrinkageJobRequestBody + + The model defined in huaweicloud sdk + + :param new_broker_num: 缩容后集群节点数 + :type new_broker_num: str + """ + + + + self._new_broker_num = None + self.discriminator = None + + if new_broker_num is not None: + self.new_broker_num = new_broker_num + + @property + def new_broker_num(self): + """Gets the new_broker_num of this CreateShrinkageJobRequestBody. + + 缩容后集群节点数 + + :return: The new_broker_num of this CreateShrinkageJobRequestBody. + :rtype: str + """ + return self._new_broker_num + + @new_broker_num.setter + def new_broker_num(self, new_broker_num): + """Sets the new_broker_num of this CreateShrinkageJobRequestBody. + + 缩容后集群节点数 + + :param new_broker_num: The new_broker_num of this CreateShrinkageJobRequestBody. + :type new_broker_num: str + """ + self._new_broker_num = new_broker_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateShrinkageJobRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_response.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_response.py new file mode 100644 index 000000000..ecde74749 --- /dev/null +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_shrinkage_job_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateShrinkageJobResponse(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): + """CreateShrinkageJobResponse + + The model defined in huaweicloud sdk + + :param job_id: 缩容变更任务ID + :type job_id: str + """ + + super(CreateShrinkageJobResponse, 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 CreateShrinkageJobResponse. + + 缩容变更任务ID + + :return: The job_id of this CreateShrinkageJobResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateShrinkageJobResponse. + + 缩容变更任务ID + + :param job_id: The job_id of this CreateShrinkageJobResponse. + :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, CreateShrinkageJobResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_products_resp_hourly.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_products_resp_hourly.py index 537397ee7..e7f67aeaa 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_products_resp_hourly.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/list_products_resp_hourly.py @@ -35,7 +35,7 @@ class ListProductsRespHourly: :param name: 消息引擎的名称,该字段显示为kafka。 :type name: str - :param version: 消息引擎的版本,当前仅支持1.1.0和2.3.0。 + :param version: 消息引擎的版本,当前支持1.1.0、2.3.0和2.7。 :type version: str :param values: 产品规格列表。 :type values: list[:class:`huaweicloudsdkkafka.v2.ListProductsRespValues`] @@ -81,7 +81,7 @@ class ListProductsRespHourly: def version(self): """Gets the version of this ListProductsRespHourly. - 消息引擎的版本,当前仅支持1.1.0和2.3.0。 + 消息引擎的版本,当前支持1.1.0、2.3.0和2.7。 :return: The version of this ListProductsRespHourly. :rtype: str @@ -92,7 +92,7 @@ class ListProductsRespHourly: def version(self, version): """Sets the version of this ListProductsRespHourly. - 消息引擎的版本,当前仅支持1.1.0和2.3.0。 + 消息引擎的版本,当前支持1.1.0、2.3.0和2.7。 :param version: The version of this ListProductsRespHourly. :type version: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/resize_instance_req.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/resize_instance_req.py index d684e8451..6ed694449 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/resize_instance_req.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/resize_instance_req.py @@ -51,7 +51,7 @@ class ResizeInstanceReq: :type oper_type: str :param new_broker_num: 扩容后集群节点数。 :type new_broker_num: int - :param new_product_id: 新规格变更后的产品ID。 涉及垂直扩容场景,需指定该项。 产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。 + :param new_product_id: 新规格变更后的产品ID。 涉及垂直扩容场景,需指定该项。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) :type new_product_id: str :param publicip_id: 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网再进行扩容,需要填写此参数。 :type publicip_id: str @@ -182,7 +182,7 @@ class ResizeInstanceReq: def new_product_id(self): """Gets the new_product_id of this ResizeInstanceReq. - 新规格变更后的产品ID。 涉及垂直扩容场景,需指定该项。 产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。 + 新规格变更后的产品ID。 涉及垂直扩容场景,需指定该项。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) :return: The new_product_id of this ResizeInstanceReq. :rtype: str @@ -193,7 +193,7 @@ class ResizeInstanceReq: def new_product_id(self, new_product_id): """Sets the new_product_id of this ResizeInstanceReq. - 新规格变更后的产品ID。 涉及垂直扩容场景,需指定该项。 产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。 + 新规格变更后的产品ID。 涉及垂直扩容场景,需指定该项。 [产品ID可以从[查询产品规格列表](ListEngineProducts.xml)获取。](tag:hws,hws_hk,ctc,cmcc,hws_eu,g42,hk_g42,tm,hk_tm,ocb,hws_ocb) [产品ID可以从[查询产品规格列表](ListProducts.xml)获取。](tag:hk_sbc,sbc,otc) :param new_product_id: The new_product_id of this ResizeInstanceReq. :type new_product_id: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_extend_product_info_resp_hourly.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_extend_product_info_resp_hourly.py index 99ee48137..508ee54f2 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_extend_product_info_resp_hourly.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_extend_product_info_resp_hourly.py @@ -35,7 +35,7 @@ class ShowInstanceExtendProductInfoRespHourly: :param name: 消息引擎的名称,该字段显示为kafka。 :type name: str - :param version: 消息引擎的版本,当前仅支持1.1.0和2.3.0。 + :param version: 消息引擎的版本,当前支持1.1.0、2.3.0和2.7。 :type version: str :param values: 产品规格列表。 :type values: list[:class:`huaweicloudsdkkafka.v2.ShowInstanceExtendProductInfoRespValues`] @@ -81,7 +81,7 @@ class ShowInstanceExtendProductInfoRespHourly: def version(self): """Gets the version of this ShowInstanceExtendProductInfoRespHourly. - 消息引擎的版本,当前仅支持1.1.0和2.3.0。 + 消息引擎的版本,当前支持1.1.0、2.3.0和2.7。 :return: The version of this ShowInstanceExtendProductInfoRespHourly. :rtype: str @@ -92,7 +92,7 @@ class ShowInstanceExtendProductInfoRespHourly: def version(self, version): """Sets the version of this ShowInstanceExtendProductInfoRespHourly. - 消息引擎的版本,当前仅支持1.1.0和2.3.0。 + 消息引擎的版本,当前支持1.1.0、2.3.0和2.7。 :param version: The version of this ShowInstanceExtendProductInfoRespHourly. :type version: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_request_body.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_request_body.py new file mode 100644 index 000000000..78904b69b --- /dev/null +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_request_body.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowShrinkCheckRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'new_broker_num': 'str' + } + + attribute_map = { + 'new_broker_num': 'new_broker_num' + } + + def __init__(self, new_broker_num=None): + """ShowShrinkCheckRequestBody + + The model defined in huaweicloud sdk + + :param new_broker_num: 缩容后集群节点数 + :type new_broker_num: str + """ + + + + self._new_broker_num = None + self.discriminator = None + + if new_broker_num is not None: + self.new_broker_num = new_broker_num + + @property + def new_broker_num(self): + """Gets the new_broker_num of this ShowShrinkCheckRequestBody. + + 缩容后集群节点数 + + :return: The new_broker_num of this ShowShrinkCheckRequestBody. + :rtype: str + """ + return self._new_broker_num + + @new_broker_num.setter + def new_broker_num(self, new_broker_num): + """Sets the new_broker_num of this ShowShrinkCheckRequestBody. + + 缩容后集群节点数 + + :param new_broker_num: The new_broker_num of this ShowShrinkCheckRequestBody. + :type new_broker_num: str + """ + self._new_broker_num = new_broker_num + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowShrinkCheckRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_response_body_check_detail.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_response_body_check_detail.py new file mode 100644 index 000000000..cf6bccce4 --- /dev/null +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_response_body_check_detail.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowShrinkCheckResponseBodyCheckDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'broker_id': 'int', + 'can_delete': 'bool', + 'is_zk_node': 'bool', + 'is_controller': 'bool', + 'has_topics': 'bool', + 'topics': 'list[str]' + } + + attribute_map = { + 'broker_id': 'broker_id', + 'can_delete': 'can_delete', + 'is_zk_node': 'is_zk_node', + 'is_controller': 'is_controller', + 'has_topics': 'has_topics', + 'topics': 'topics' + } + + def __init__(self, broker_id=None, can_delete=None, is_zk_node=None, is_controller=None, has_topics=None, topics=None): + """ShowShrinkCheckResponseBodyCheckDetail + + The model defined in huaweicloud sdk + + :param broker_id: broker序号 + :type broker_id: int + :param can_delete: 节点是否可删除。 + :type can_delete: bool + :param is_zk_node: 节点是否为zk部署节点。 + :type is_zk_node: bool + :param is_controller: broker是否为controller。 + :type is_controller: bool + :param has_topics: broker上是否存在topic数据。 + :type has_topics: bool + :param topics: broker上存在的topic列表。 + :type topics: list[str] + """ + + + + self._broker_id = None + self._can_delete = None + self._is_zk_node = None + self._is_controller = None + self._has_topics = None + self._topics = None + self.discriminator = None + + if broker_id is not None: + self.broker_id = broker_id + if can_delete is not None: + self.can_delete = can_delete + if is_zk_node is not None: + self.is_zk_node = is_zk_node + if is_controller is not None: + self.is_controller = is_controller + if has_topics is not None: + self.has_topics = has_topics + if topics is not None: + self.topics = topics + + @property + def broker_id(self): + """Gets the broker_id of this ShowShrinkCheckResponseBodyCheckDetail. + + broker序号 + + :return: The broker_id of this ShowShrinkCheckResponseBodyCheckDetail. + :rtype: int + """ + return self._broker_id + + @broker_id.setter + def broker_id(self, broker_id): + """Sets the broker_id of this ShowShrinkCheckResponseBodyCheckDetail. + + broker序号 + + :param broker_id: The broker_id of this ShowShrinkCheckResponseBodyCheckDetail. + :type broker_id: int + """ + self._broker_id = broker_id + + @property + def can_delete(self): + """Gets the can_delete of this ShowShrinkCheckResponseBodyCheckDetail. + + 节点是否可删除。 + + :return: The can_delete of this ShowShrinkCheckResponseBodyCheckDetail. + :rtype: bool + """ + return self._can_delete + + @can_delete.setter + def can_delete(self, can_delete): + """Sets the can_delete of this ShowShrinkCheckResponseBodyCheckDetail. + + 节点是否可删除。 + + :param can_delete: The can_delete of this ShowShrinkCheckResponseBodyCheckDetail. + :type can_delete: bool + """ + self._can_delete = can_delete + + @property + def is_zk_node(self): + """Gets the is_zk_node of this ShowShrinkCheckResponseBodyCheckDetail. + + 节点是否为zk部署节点。 + + :return: The is_zk_node of this ShowShrinkCheckResponseBodyCheckDetail. + :rtype: bool + """ + return self._is_zk_node + + @is_zk_node.setter + def is_zk_node(self, is_zk_node): + """Sets the is_zk_node of this ShowShrinkCheckResponseBodyCheckDetail. + + 节点是否为zk部署节点。 + + :param is_zk_node: The is_zk_node of this ShowShrinkCheckResponseBodyCheckDetail. + :type is_zk_node: bool + """ + self._is_zk_node = is_zk_node + + @property + def is_controller(self): + """Gets the is_controller of this ShowShrinkCheckResponseBodyCheckDetail. + + broker是否为controller。 + + :return: The is_controller of this ShowShrinkCheckResponseBodyCheckDetail. + :rtype: bool + """ + return self._is_controller + + @is_controller.setter + def is_controller(self, is_controller): + """Sets the is_controller of this ShowShrinkCheckResponseBodyCheckDetail. + + broker是否为controller。 + + :param is_controller: The is_controller of this ShowShrinkCheckResponseBodyCheckDetail. + :type is_controller: bool + """ + self._is_controller = is_controller + + @property + def has_topics(self): + """Gets the has_topics of this ShowShrinkCheckResponseBodyCheckDetail. + + broker上是否存在topic数据。 + + :return: The has_topics of this ShowShrinkCheckResponseBodyCheckDetail. + :rtype: bool + """ + return self._has_topics + + @has_topics.setter + def has_topics(self, has_topics): + """Sets the has_topics of this ShowShrinkCheckResponseBodyCheckDetail. + + broker上是否存在topic数据。 + + :param has_topics: The has_topics of this ShowShrinkCheckResponseBodyCheckDetail. + :type has_topics: bool + """ + self._has_topics = has_topics + + @property + def topics(self): + """Gets the topics of this ShowShrinkCheckResponseBodyCheckDetail. + + broker上存在的topic列表。 + + :return: The topics of this ShowShrinkCheckResponseBodyCheckDetail. + :rtype: list[str] + """ + return self._topics + + @topics.setter + def topics(self, topics): + """Sets the topics of this ShowShrinkCheckResponseBodyCheckDetail. + + broker上存在的topic列表。 + + :param topics: The topics of this ShowShrinkCheckResponseBodyCheckDetail. + :type topics: list[str] + """ + self._topics = topics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShowShrinkCheckResponseBodyCheckDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_result_request.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_result_request.py new file mode 100644 index 000000000..a5d8f4439 --- /dev/null +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_result_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShowShrinkCheckResultRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'engine': 'str', + 'instance_id': 'str', + 'body': 'ShowShrinkCheckRequestBody' + } + + attribute_map = { + 'engine': 'engine', + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, engine=None, instance_id=None, body=None): + """ShowShrinkCheckResultRequest + + The model defined in huaweicloud sdk + + :param engine: 消息引擎。 + :type engine: str + :param instance_id: 实例ID。 + :type instance_id: str + :param body: Body of the ShowShrinkCheckResultRequest + :type body: :class:`huaweicloudsdkkafka.v2.ShowShrinkCheckRequestBody` + """ + + + + self._engine = None + self._instance_id = None + self._body = None + self.discriminator = None + + self.engine = engine + self.instance_id = instance_id + if body is not None: + self.body = body + + @property + def engine(self): + """Gets the engine of this ShowShrinkCheckResultRequest. + + 消息引擎。 + + :return: The engine of this ShowShrinkCheckResultRequest. + :rtype: str + """ + return self._engine + + @engine.setter + def engine(self, engine): + """Sets the engine of this ShowShrinkCheckResultRequest. + + 消息引擎。 + + :param engine: The engine of this ShowShrinkCheckResultRequest. + :type engine: str + """ + self._engine = engine + + @property + def instance_id(self): + """Gets the instance_id of this ShowShrinkCheckResultRequest. + + 实例ID。 + + :return: The instance_id of this ShowShrinkCheckResultRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this ShowShrinkCheckResultRequest. + + 实例ID。 + + :param instance_id: The instance_id of this ShowShrinkCheckResultRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this ShowShrinkCheckResultRequest. + + :return: The body of this ShowShrinkCheckResultRequest. + :rtype: :class:`huaweicloudsdkkafka.v2.ShowShrinkCheckRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this ShowShrinkCheckResultRequest. + + :param body: The body of this ShowShrinkCheckResultRequest. + :type body: :class:`huaweicloudsdkkafka.v2.ShowShrinkCheckRequestBody` + """ + 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, ShowShrinkCheckResultRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_result_response.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_result_response.py new file mode 100644 index 000000000..f94f232dd --- /dev/null +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_shrink_check_result_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 ShowShrinkCheckResultResponse(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 = { + 'success': 'bool', + 'check_detail': 'list[ShowShrinkCheckResponseBodyCheckDetail]' + } + + attribute_map = { + 'success': 'success', + 'check_detail': 'check_detail' + } + + def __init__(self, success=None, check_detail=None): + """ShowShrinkCheckResultResponse + + The model defined in huaweicloud sdk + + :param success: 缩容检查是否通过 + :type success: bool + :param check_detail: broker检查结果 + :type check_detail: list[:class:`huaweicloudsdkkafka.v2.ShowShrinkCheckResponseBodyCheckDetail`] + """ + + super(ShowShrinkCheckResultResponse, self).__init__() + + self._success = None + self._check_detail = None + self.discriminator = None + + if success is not None: + self.success = success + if check_detail is not None: + self.check_detail = check_detail + + @property + def success(self): + """Gets the success of this ShowShrinkCheckResultResponse. + + 缩容检查是否通过 + + :return: The success of this ShowShrinkCheckResultResponse. + :rtype: bool + """ + return self._success + + @success.setter + def success(self, success): + """Sets the success of this ShowShrinkCheckResultResponse. + + 缩容检查是否通过 + + :param success: The success of this ShowShrinkCheckResultResponse. + :type success: bool + """ + self._success = success + + @property + def check_detail(self): + """Gets the check_detail of this ShowShrinkCheckResultResponse. + + broker检查结果 + + :return: The check_detail of this ShowShrinkCheckResultResponse. + :rtype: list[:class:`huaweicloudsdkkafka.v2.ShowShrinkCheckResponseBodyCheckDetail`] + """ + return self._check_detail + + @check_detail.setter + def check_detail(self, check_detail): + """Sets the check_detail of this ShowShrinkCheckResultResponse. + + broker检查结果 + + :param check_detail: The check_detail of this ShowShrinkCheckResultResponse. + :type check_detail: list[:class:`huaweicloudsdkkafka.v2.ShowShrinkCheckResponseBodyCheckDetail`] + """ + self._check_detail = check_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, ShowShrinkCheckResultResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py index 20508aeba..d37a6dd01 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/tag_entity.py @@ -31,9 +31,9 @@ class TagEntity: The model defined in huaweicloud sdk - :param key: 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc) - 首尾字符不能为空格。 + :param key: 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc) - 首尾字符不能为空格。 :type key: str - :param value: 标签值。 [- 不能为空。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度不超过43个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为0~255个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc) - 首尾字符不能为空格。 + :param value: 标签值。 [- 不能为空。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度不超过43个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为0~255个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc) - 首尾字符不能为空格。 :type value: str """ @@ -52,7 +52,7 @@ class TagEntity: def key(self): """Gets the key of this TagEntity. - 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc) - 首尾字符不能为空格。 + 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc) - 首尾字符不能为空格。 :return: The key of this TagEntity. :rtype: str @@ -63,7 +63,7 @@ class TagEntity: def key(self, key): """Sets the key of this TagEntity. - 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc) - 首尾字符不能为空格。 + 标签键。 - 不能为空。 - 对于同一个实例,Key值唯一。 [- 长度不超过36个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为1~128个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc) - 首尾字符不能为空格。 :param key: The key of this TagEntity. :type key: str @@ -74,7 +74,7 @@ class TagEntity: def value(self): """Gets the value of this TagEntity. - 标签值。 [- 不能为空。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度不超过43个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为0~255个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc) - 首尾字符不能为空格。 + 标签值。 [- 不能为空。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度不超过43个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为0~255个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc) - 首尾字符不能为空格。 :return: The value of this TagEntity. :rtype: str @@ -85,7 +85,7 @@ class TagEntity: def value(self, value): """Sets the value of this TagEntity. - 标签值。 [- 不能为空。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度不超过43个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为0~255个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc) - 首尾字符不能为空格。 + 标签值。 [- 不能为空。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度不超过43个字符。](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 长度为0~255个字符(中文也可以输入128个字符)。](tag:hws,hws_hk,ctc,hk_sbc,sbc) [- 不能包含“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”](tag:cmcc,g42,hk_g42,hk_tm,hws_eu,hws_ocb,ocb,tm,otc) [- 由任意语种字母、数字、空格和字符组成,字符仅支持_ . : = + - @](tag:hws,hws_hk,ctc,hk_sbc,sbc) - 首尾字符不能为空格。 :param value: The value of this TagEntity. :type value: str diff --git a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py index ec20c425e..0f799d6bf 100644 --- a/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py +++ b/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/region/kafka_region.py @@ -55,6 +55,8 @@ class KafkaRegion: "https://dms.ae-ad-1.myhuaweicloud.com") EU_WEST_0 = Region("eu-west-0", "https://dms.eu-west-0.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://dms.me-east-1.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -80,6 +82,7 @@ class KafkaRegion: "tr-west-1": TR_WEST_1, "ae-ad-1": AE_AD_1, "eu-west-0": EU_WEST_0, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-kafka/requirements.txt b/huaweicloud-sdk-kafka/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-kafka/requirements.txt +++ b/huaweicloud-sdk-kafka/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-kafka/setup.py b/huaweicloud-sdk-kafka/setup.py index 46ef22c7e..d734ff5f0 100644 --- a/huaweicloud-sdk-kafka/setup.py +++ b/huaweicloud-sdk-kafka/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkafka" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kms/requirements.txt b/huaweicloud-sdk-kms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-kms/requirements.txt +++ b/huaweicloud-sdk-kms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-kms/setup.py b/huaweicloud-sdk-kms/setup.py index 5167e916e..12723dd26 100644 --- a/huaweicloud-sdk-kms/setup.py +++ b/huaweicloud-sdk-kms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-koomessage/requirements.txt b/huaweicloud-sdk-koomessage/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-koomessage/requirements.txt +++ b/huaweicloud-sdk-koomessage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-koomessage/setup.py b/huaweicloud-sdk-koomessage/setup.py index 6cb0145bf..93bf7da9a 100644 --- a/huaweicloud-sdk-koomessage/setup.py +++ b/huaweicloud-sdk-koomessage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkoomessage" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-kps/requirements.txt b/huaweicloud-sdk-kps/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-kps/requirements.txt +++ b/huaweicloud-sdk-kps/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-kps/setup.py b/huaweicloud-sdk-kps/setup.py index 16054ad73..6679f22d2 100644 --- a/huaweicloud-sdk-kps/setup.py +++ b/huaweicloud-sdk-kps/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkkps" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lakeformation/requirements.txt b/huaweicloud-sdk-lakeformation/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-lakeformation/requirements.txt +++ b/huaweicloud-sdk-lakeformation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-lakeformation/setup.py b/huaweicloud-sdk-lakeformation/setup.py index 7e5609ef3..3273407ee 100644 --- a/huaweicloud-sdk-lakeformation/setup.py +++ b/huaweicloud-sdk-lakeformation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklakeformation" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-live/requirements.txt b/huaweicloud-sdk-live/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-live/requirements.txt +++ b/huaweicloud-sdk-live/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-live/setup.py b/huaweicloud-sdk-live/setup.py index c1e1a90ec..af253ea7d 100644 --- a/huaweicloud-sdk-live/setup.py +++ b/huaweicloud-sdk-live/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklive" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py index c85d8a656..fe12fa0ec 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/__init__.py @@ -58,6 +58,8 @@ from huaweicloudsdklts.v2.model.create_log_dump_obs_response import CreateLogDum from huaweicloudsdklts.v2.model.create_log_group_params import CreateLogGroupParams from huaweicloudsdklts.v2.model.create_log_group_request import CreateLogGroupRequest from huaweicloudsdklts.v2.model.create_log_group_response import CreateLogGroupResponse +from huaweicloudsdklts.v2.model.create_log_stream_index_request import CreateLogStreamIndexRequest +from huaweicloudsdklts.v2.model.create_log_stream_index_response import CreateLogStreamIndexResponse from huaweicloudsdklts.v2.model.create_log_stream_params import CreateLogStreamParams from huaweicloudsdklts.v2.model.create_log_stream_request import CreateLogStreamRequest from huaweicloudsdklts.v2.model.create_log_stream_response import CreateLogStreamResponse @@ -149,6 +151,9 @@ from huaweicloudsdklts.v2.model.keywords_alarm_rule_resp_list import KeywordsAla from huaweicloudsdklts.v2.model.keywords_request import KeywordsRequest from huaweicloudsdklts.v2.model.keywords_res_body import KeywordsResBody from huaweicloudsdklts.v2.model.lts_access_config_info_respon200 import LTSAccessConfigInfoRespon200 +from huaweicloudsdklts.v2.model.lts_fields_info import LTSFieldsInfo +from huaweicloudsdklts.v2.model.lts_full_text_index_info import LTSFullTextIndexInfo +from huaweicloudsdklts.v2.model.lts_index_config_info import LTSIndexConfigInfo from huaweicloudsdklts.v2.model.list_access_config_request import ListAccessConfigRequest from huaweicloudsdklts.v2.model.list_access_config_response import ListAccessConfigResponse from huaweicloudsdklts.v2.model.list_active_or_history_alarms_request import ListActiveOrHistoryAlarmsRequest @@ -220,6 +225,7 @@ from huaweicloudsdklts.v2.model.query_log_key_word_count_request_body import Que from huaweicloudsdklts.v2.model.query_lts_log_params import QueryLtsLogParams from huaweicloudsdklts.v2.model.query_lts_struct_log_params import QueryLtsStructLogParams from huaweicloudsdklts.v2.model.query_lts_struct_log_params_new import QueryLtsStructLogParamsNew +from huaweicloudsdklts.v2.model.query_lts_struct_log_response_body_new import QueryLtsStructLogResponseBodyNew from huaweicloudsdklts.v2.model.register_dms_kafka_instance_request import RegisterDmsKafkaInstanceRequest from huaweicloudsdklts.v2.model.register_dms_kafka_instance_request_body import RegisterDmsKafkaInstanceRequestBody from huaweicloudsdklts.v2.model.register_dms_kafka_instance_request_body_connect_info import RegisterDmsKafkaInstanceRequestBodyConnectInfo diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py index b1b8acd4f..4311b29ed 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_async_client.py @@ -619,6 +619,75 @@ class LtsAsyncClient(Client): return http_info + def create_log_stream_index_async(self, request): + """向指定流创建索引 + + 向指定流创建索引 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateLogStreamIndex + :type request: :class:`huaweicloudsdklts.v2.CreateLogStreamIndexRequest` + :rtype: :class:`huaweicloudsdklts.v2.CreateLogStreamIndexResponse` + """ + http_info = self._create_log_stream_index_http_info(request) + return self._call_api(**http_info) + + def create_log_stream_index_async_invoker(self, request): + http_info = self._create_log_stream_index_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_log_stream_index_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1.0/{project_id}/groups/{group_id}/stream/{stream_id}/index/config", + "request_type": request.__class__.__name__, + "response_type": "CreateLogStreamIndexResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + if 'stream_id' in local_var_params: + path_params['stream_id'] = local_var_params['stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_notification_template_async(self, request): """创建消息模板 diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py index 8a066518f..a78e3900b 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/lts_client.py @@ -619,6 +619,75 @@ class LtsClient(Client): return http_info + def create_log_stream_index(self, request): + """向指定流创建索引 + + 向指定流创建索引 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateLogStreamIndex + :type request: :class:`huaweicloudsdklts.v2.CreateLogStreamIndexRequest` + :rtype: :class:`huaweicloudsdklts.v2.CreateLogStreamIndexResponse` + """ + http_info = self._create_log_stream_index_http_info(request) + return self._call_api(**http_info) + + def create_log_stream_index_invoker(self, request): + http_info = self._create_log_stream_index_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_log_stream_index_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1.0/{project_id}/groups/{group_id}/stream/{stream_id}/index/config", + "request_type": request.__class__.__name__, + "response_type": "CreateLogStreamIndexResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] + if 'stream_id' in local_var_params: + path_params['stream_id'] = local_var_params['stream_id'] + + query_params = [] + + header_params = {} + + form_params = {} + + body = None + if 'body' in local_var_params: + body = local_var_params['body'] + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json;charset=UTF-8']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def create_notification_template(self, request): """创建消息模板 diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py index dbd3bd858..b6a7ec140 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/__init__.py @@ -56,6 +56,8 @@ from huaweicloudsdklts.v2.model.create_log_dump_obs_response import CreateLogDum from huaweicloudsdklts.v2.model.create_log_group_params import CreateLogGroupParams from huaweicloudsdklts.v2.model.create_log_group_request import CreateLogGroupRequest from huaweicloudsdklts.v2.model.create_log_group_response import CreateLogGroupResponse +from huaweicloudsdklts.v2.model.create_log_stream_index_request import CreateLogStreamIndexRequest +from huaweicloudsdklts.v2.model.create_log_stream_index_response import CreateLogStreamIndexResponse from huaweicloudsdklts.v2.model.create_log_stream_params import CreateLogStreamParams from huaweicloudsdklts.v2.model.create_log_stream_request import CreateLogStreamRequest from huaweicloudsdklts.v2.model.create_log_stream_response import CreateLogStreamResponse @@ -147,6 +149,9 @@ from huaweicloudsdklts.v2.model.keywords_alarm_rule_resp_list import KeywordsAla from huaweicloudsdklts.v2.model.keywords_request import KeywordsRequest from huaweicloudsdklts.v2.model.keywords_res_body import KeywordsResBody from huaweicloudsdklts.v2.model.lts_access_config_info_respon200 import LTSAccessConfigInfoRespon200 +from huaweicloudsdklts.v2.model.lts_fields_info import LTSFieldsInfo +from huaweicloudsdklts.v2.model.lts_full_text_index_info import LTSFullTextIndexInfo +from huaweicloudsdklts.v2.model.lts_index_config_info import LTSIndexConfigInfo from huaweicloudsdklts.v2.model.list_access_config_request import ListAccessConfigRequest from huaweicloudsdklts.v2.model.list_access_config_response import ListAccessConfigResponse from huaweicloudsdklts.v2.model.list_active_or_history_alarms_request import ListActiveOrHistoryAlarmsRequest @@ -218,6 +223,7 @@ from huaweicloudsdklts.v2.model.query_log_key_word_count_request_body import Que from huaweicloudsdklts.v2.model.query_lts_log_params import QueryLtsLogParams from huaweicloudsdklts.v2.model.query_lts_struct_log_params import QueryLtsStructLogParams from huaweicloudsdklts.v2.model.query_lts_struct_log_params_new import QueryLtsStructLogParamsNew +from huaweicloudsdklts.v2.model.query_lts_struct_log_response_body_new import QueryLtsStructLogResponseBodyNew from huaweicloudsdklts.v2.model.register_dms_kafka_instance_request import RegisterDmsKafkaInstanceRequest from huaweicloudsdklts.v2.model.register_dms_kafka_instance_request_body import RegisterDmsKafkaInstanceRequestBody from huaweicloudsdklts.v2.model.register_dms_kafka_instance_request_body_connect_info import RegisterDmsKafkaInstanceRequestBodyConnectInfo diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_index_request.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_index_request.py new file mode 100644 index 000000000..0a69f2efc --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_index_request.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLogStreamIndexRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_id': 'str', + 'stream_id': 'str', + 'body': 'LTSIndexConfigInfo' + } + + attribute_map = { + 'group_id': 'group_id', + 'stream_id': 'stream_id', + 'body': 'body' + } + + def __init__(self, group_id=None, stream_id=None, body=None): + """CreateLogStreamIndexRequest + + The model defined in huaweicloud sdk + + :param group_id: '项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID' + :type group_id: str + :param stream_id: '项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID' + :type stream_id: str + :param body: Body of the CreateLogStreamIndexRequest + :type body: :class:`huaweicloudsdklts.v2.LTSIndexConfigInfo` + """ + + + + self._group_id = None + self._stream_id = None + self._body = None + self.discriminator = None + + self.group_id = group_id + self.stream_id = stream_id + if body is not None: + self.body = body + + @property + def group_id(self): + """Gets the group_id of this CreateLogStreamIndexRequest. + + '项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID' + + :return: The group_id of this CreateLogStreamIndexRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this CreateLogStreamIndexRequest. + + '项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID' + + :param group_id: The group_id of this CreateLogStreamIndexRequest. + :type group_id: str + """ + self._group_id = group_id + + @property + def stream_id(self): + """Gets the stream_id of this CreateLogStreamIndexRequest. + + '项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID' + + :return: The stream_id of this CreateLogStreamIndexRequest. + :rtype: str + """ + return self._stream_id + + @stream_id.setter + def stream_id(self, stream_id): + """Sets the stream_id of this CreateLogStreamIndexRequest. + + '项目ID,账号ID,日志组ID、日志流ID,获取方式请参见:获取项目ID,获取账号ID,日志组ID、日志流ID' + + :param stream_id: The stream_id of this CreateLogStreamIndexRequest. + :type stream_id: str + """ + self._stream_id = stream_id + + @property + def body(self): + """Gets the body of this CreateLogStreamIndexRequest. + + :return: The body of this CreateLogStreamIndexRequest. + :rtype: :class:`huaweicloudsdklts.v2.LTSIndexConfigInfo` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateLogStreamIndexRequest. + + :param body: The body of this CreateLogStreamIndexRequest. + :type body: :class:`huaweicloudsdklts.v2.LTSIndexConfigInfo` + """ + 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, CreateLogStreamIndexRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_index_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_index_response.py new file mode 100644 index 000000000..b8ec6a028 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/create_log_stream_index_response.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateLogStreamIndexResponse(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 = { + 'error_code': 'str', + 'error_message': 'str', + 'result': 'str', + 'is_query_complete': 'bool' + } + + attribute_map = { + 'error_code': 'errorCode', + 'error_message': 'errorMessage', + 'result': 'result', + 'is_query_complete': 'isQueryComplete' + } + + def __init__(self, error_code=None, error_message=None, result=None, is_query_complete=None): + """CreateLogStreamIndexResponse + + The model defined in huaweicloud sdk + + :param error_code: 错误码 + :type error_code: str + :param error_message: 错误信息描述 + :type error_message: str + :param result: 结果 + :type result: str + :param is_query_complete: 是否查询完成 + :type is_query_complete: bool + """ + + super(CreateLogStreamIndexResponse, self).__init__() + + self._error_code = None + self._error_message = None + self._result = None + self._is_query_complete = None + self.discriminator = None + + if error_code is not None: + self.error_code = error_code + if error_message is not None: + self.error_message = error_message + if result is not None: + self.result = result + if is_query_complete is not None: + self.is_query_complete = is_query_complete + + @property + def error_code(self): + """Gets the error_code of this CreateLogStreamIndexResponse. + + 错误码 + + :return: The error_code of this CreateLogStreamIndexResponse. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """Sets the error_code of this CreateLogStreamIndexResponse. + + 错误码 + + :param error_code: The error_code of this CreateLogStreamIndexResponse. + :type error_code: str + """ + self._error_code = error_code + + @property + def error_message(self): + """Gets the error_message of this CreateLogStreamIndexResponse. + + 错误信息描述 + + :return: The error_message of this CreateLogStreamIndexResponse. + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this CreateLogStreamIndexResponse. + + 错误信息描述 + + :param error_message: The error_message of this CreateLogStreamIndexResponse. + :type error_message: str + """ + self._error_message = error_message + + @property + def result(self): + """Gets the result of this CreateLogStreamIndexResponse. + + 结果 + + :return: The result of this CreateLogStreamIndexResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this CreateLogStreamIndexResponse. + + 结果 + + :param result: The result of this CreateLogStreamIndexResponse. + :type result: str + """ + self._result = result + + @property + def is_query_complete(self): + """Gets the is_query_complete of this CreateLogStreamIndexResponse. + + 是否查询完成 + + :return: The is_query_complete of this CreateLogStreamIndexResponse. + :rtype: bool + """ + return self._is_query_complete + + @is_query_complete.setter + def is_query_complete(self, is_query_complete): + """Sets the is_query_complete of this CreateLogStreamIndexResponse. + + 是否查询完成 + + :param is_query_complete: The is_query_complete of this CreateLogStreamIndexResponse. + :type is_query_complete: bool + """ + self._is_query_complete = is_query_complete + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateLogStreamIndexResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_structured_logs_with_time_range_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_structured_logs_with_time_range_response.py index fb797cd50..d51c440b2 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_structured_logs_with_time_range_response.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/list_structured_logs_with_time_range_response.py @@ -18,51 +18,51 @@ class ListStructuredLogsWithTimeRangeResponse(SdkResponse): sensitive_list = [] openapi_types = { - 'result': 'list[object]' + 'body': 'object' } attribute_map = { - 'result': 'result' + 'body': 'body' } - def __init__(self, result=None): + def __init__(self, body=None): """ListStructuredLogsWithTimeRangeResponse The model defined in huaweicloud sdk - :param result: 查询结构化日志结果信息。 此处仅为示例,具体参数名称取决于查询的字段。 - :type result: list[object] + :param body: 此参数在请求实体中,采用json字符串格式。 + :type body: object """ super(ListStructuredLogsWithTimeRangeResponse, self).__init__() - self._result = None + self._body = None self.discriminator = None - if result is not None: - self.result = result + if body is not None: + self.body = body @property - def result(self): - """Gets the result of this ListStructuredLogsWithTimeRangeResponse. + def body(self): + """Gets the body of this ListStructuredLogsWithTimeRangeResponse. - 查询结构化日志结果信息。 此处仅为示例,具体参数名称取决于查询的字段。 + 此参数在请求实体中,采用json字符串格式。 - :return: The result of this ListStructuredLogsWithTimeRangeResponse. - :rtype: list[object] + :return: The body of this ListStructuredLogsWithTimeRangeResponse. + :rtype: object """ - return self._result + return self._body - @result.setter - def result(self, result): - """Sets the result of this ListStructuredLogsWithTimeRangeResponse. + @body.setter + def body(self, body): + """Sets the body of this ListStructuredLogsWithTimeRangeResponse. - 查询结构化日志结果信息。 此处仅为示例,具体参数名称取决于查询的字段。 + 此参数在请求实体中,采用json字符串格式。 - :param result: The result of this ListStructuredLogsWithTimeRangeResponse. - :type result: list[object] + :param body: The body of this ListStructuredLogsWithTimeRangeResponse. + :type body: object """ - self._result = result + self._body = body def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_fields_info.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_fields_info.py new file mode 100644 index 000000000..db8bc72e9 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_fields_info.py @@ -0,0 +1,286 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LTSFieldsInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'field_type': 'str', + 'field_name': 'str', + 'case_sensitive': 'bool', + 'include_chinese': 'bool', + 'tokenizer': 'str', + 'quick_analysis': 'bool', + 'ascii': 'list[str]' + } + + attribute_map = { + 'field_type': 'fieldType', + 'field_name': 'fieldName', + 'case_sensitive': 'caseSensitive', + 'include_chinese': 'includeChinese', + 'tokenizer': 'tokenizer', + 'quick_analysis': 'quickAnalysis', + 'ascii': 'ascii' + } + + def __init__(self, field_type=None, field_name=None, case_sensitive=None, include_chinese=None, tokenizer=None, quick_analysis=None, ascii=None): + """LTSFieldsInfo + + The model defined in huaweicloud sdk + + :param field_type: 字段类型 + :type field_type: str + :param field_name: 字段名称 + :type field_name: str + :param case_sensitive: 是否大小写敏感 + :type case_sensitive: bool + :param include_chinese: 是否包含中文 + :type include_chinese: bool + :param tokenizer: 分词符 + :type tokenizer: str + :param quick_analysis: 是否快速分析 + :type quick_analysis: bool + :param ascii: 特殊分词符 + :type ascii: list[str] + """ + + + + self._field_type = None + self._field_name = None + self._case_sensitive = None + self._include_chinese = None + self._tokenizer = None + self._quick_analysis = None + self._ascii = None + self.discriminator = None + + self.field_type = field_type + self.field_name = field_name + if case_sensitive is not None: + self.case_sensitive = case_sensitive + if include_chinese is not None: + self.include_chinese = include_chinese + self.tokenizer = tokenizer + if quick_analysis is not None: + self.quick_analysis = quick_analysis + if ascii is not None: + self.ascii = ascii + + @property + def field_type(self): + """Gets the field_type of this LTSFieldsInfo. + + 字段类型 + + :return: The field_type of this LTSFieldsInfo. + :rtype: str + """ + return self._field_type + + @field_type.setter + def field_type(self, field_type): + """Sets the field_type of this LTSFieldsInfo. + + 字段类型 + + :param field_type: The field_type of this LTSFieldsInfo. + :type field_type: str + """ + self._field_type = field_type + + @property + def field_name(self): + """Gets the field_name of this LTSFieldsInfo. + + 字段名称 + + :return: The field_name of this LTSFieldsInfo. + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """Sets the field_name of this LTSFieldsInfo. + + 字段名称 + + :param field_name: The field_name of this LTSFieldsInfo. + :type field_name: str + """ + self._field_name = field_name + + @property + def case_sensitive(self): + """Gets the case_sensitive of this LTSFieldsInfo. + + 是否大小写敏感 + + :return: The case_sensitive of this LTSFieldsInfo. + :rtype: bool + """ + return self._case_sensitive + + @case_sensitive.setter + def case_sensitive(self, case_sensitive): + """Sets the case_sensitive of this LTSFieldsInfo. + + 是否大小写敏感 + + :param case_sensitive: The case_sensitive of this LTSFieldsInfo. + :type case_sensitive: bool + """ + self._case_sensitive = case_sensitive + + @property + def include_chinese(self): + """Gets the include_chinese of this LTSFieldsInfo. + + 是否包含中文 + + :return: The include_chinese of this LTSFieldsInfo. + :rtype: bool + """ + return self._include_chinese + + @include_chinese.setter + def include_chinese(self, include_chinese): + """Sets the include_chinese of this LTSFieldsInfo. + + 是否包含中文 + + :param include_chinese: The include_chinese of this LTSFieldsInfo. + :type include_chinese: bool + """ + self._include_chinese = include_chinese + + @property + def tokenizer(self): + """Gets the tokenizer of this LTSFieldsInfo. + + 分词符 + + :return: The tokenizer of this LTSFieldsInfo. + :rtype: str + """ + return self._tokenizer + + @tokenizer.setter + def tokenizer(self, tokenizer): + """Sets the tokenizer of this LTSFieldsInfo. + + 分词符 + + :param tokenizer: The tokenizer of this LTSFieldsInfo. + :type tokenizer: str + """ + self._tokenizer = tokenizer + + @property + def quick_analysis(self): + """Gets the quick_analysis of this LTSFieldsInfo. + + 是否快速分析 + + :return: The quick_analysis of this LTSFieldsInfo. + :rtype: bool + """ + return self._quick_analysis + + @quick_analysis.setter + def quick_analysis(self, quick_analysis): + """Sets the quick_analysis of this LTSFieldsInfo. + + 是否快速分析 + + :param quick_analysis: The quick_analysis of this LTSFieldsInfo. + :type quick_analysis: bool + """ + self._quick_analysis = quick_analysis + + @property + def ascii(self): + """Gets the ascii of this LTSFieldsInfo. + + 特殊分词符 + + :return: The ascii of this LTSFieldsInfo. + :rtype: list[str] + """ + return self._ascii + + @ascii.setter + def ascii(self, ascii): + """Sets the ascii of this LTSFieldsInfo. + + 特殊分词符 + + :param ascii: The ascii of this LTSFieldsInfo. + :type ascii: list[str] + """ + self._ascii = ascii + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LTSFieldsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_full_text_index_info.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_full_text_index_info.py new file mode 100644 index 000000000..052aaec28 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_full_text_index_info.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LTSFullTextIndexInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'enable': 'bool', + 'case_sensitive': 'bool', + 'include_chinese': 'bool', + 'tokenizer': 'str', + 'ascii': 'list[str]' + } + + attribute_map = { + 'enable': 'enable', + 'case_sensitive': 'caseSensitive', + 'include_chinese': 'includeChinese', + 'tokenizer': 'tokenizer', + 'ascii': 'ascii' + } + + def __init__(self, enable=None, case_sensitive=None, include_chinese=None, tokenizer=None, ascii=None): + """LTSFullTextIndexInfo + + The model defined in huaweicloud sdk + + :param enable: 是否开启全文索引 + :type enable: bool + :param case_sensitive: 是否大小写敏感 + :type case_sensitive: bool + :param include_chinese: 是否包含中文 + :type include_chinese: bool + :param tokenizer: 自定义分词符 + :type tokenizer: str + :param ascii: 特殊分词符 + :type ascii: list[str] + """ + + + + self._enable = None + self._case_sensitive = None + self._include_chinese = None + self._tokenizer = None + self._ascii = None + self.discriminator = None + + self.enable = enable + self.case_sensitive = case_sensitive + self.include_chinese = include_chinese + self.tokenizer = tokenizer + if ascii is not None: + self.ascii = ascii + + @property + def enable(self): + """Gets the enable of this LTSFullTextIndexInfo. + + 是否开启全文索引 + + :return: The enable of this LTSFullTextIndexInfo. + :rtype: bool + """ + return self._enable + + @enable.setter + def enable(self, enable): + """Sets the enable of this LTSFullTextIndexInfo. + + 是否开启全文索引 + + :param enable: The enable of this LTSFullTextIndexInfo. + :type enable: bool + """ + self._enable = enable + + @property + def case_sensitive(self): + """Gets the case_sensitive of this LTSFullTextIndexInfo. + + 是否大小写敏感 + + :return: The case_sensitive of this LTSFullTextIndexInfo. + :rtype: bool + """ + return self._case_sensitive + + @case_sensitive.setter + def case_sensitive(self, case_sensitive): + """Sets the case_sensitive of this LTSFullTextIndexInfo. + + 是否大小写敏感 + + :param case_sensitive: The case_sensitive of this LTSFullTextIndexInfo. + :type case_sensitive: bool + """ + self._case_sensitive = case_sensitive + + @property + def include_chinese(self): + """Gets the include_chinese of this LTSFullTextIndexInfo. + + 是否包含中文 + + :return: The include_chinese of this LTSFullTextIndexInfo. + :rtype: bool + """ + return self._include_chinese + + @include_chinese.setter + def include_chinese(self, include_chinese): + """Sets the include_chinese of this LTSFullTextIndexInfo. + + 是否包含中文 + + :param include_chinese: The include_chinese of this LTSFullTextIndexInfo. + :type include_chinese: bool + """ + self._include_chinese = include_chinese + + @property + def tokenizer(self): + """Gets the tokenizer of this LTSFullTextIndexInfo. + + 自定义分词符 + + :return: The tokenizer of this LTSFullTextIndexInfo. + :rtype: str + """ + return self._tokenizer + + @tokenizer.setter + def tokenizer(self, tokenizer): + """Sets the tokenizer of this LTSFullTextIndexInfo. + + 自定义分词符 + + :param tokenizer: The tokenizer of this LTSFullTextIndexInfo. + :type tokenizer: str + """ + self._tokenizer = tokenizer + + @property + def ascii(self): + """Gets the ascii of this LTSFullTextIndexInfo. + + 特殊分词符 + + :return: The ascii of this LTSFullTextIndexInfo. + :rtype: list[str] + """ + return self._ascii + + @ascii.setter + def ascii(self, ascii): + """Sets the ascii of this LTSFullTextIndexInfo. + + 特殊分词符 + + :param ascii: The ascii of this LTSFullTextIndexInfo. + :type ascii: list[str] + """ + self._ascii = ascii + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LTSFullTextIndexInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_index_config_info.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_index_config_info.py new file mode 100644 index 000000000..0c3cae7c4 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/lts_index_config_info.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LTSIndexConfigInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'log_stream_id': 'str', + 'full_text_index': 'LTSFullTextIndexInfo', + 'fields': 'list[LTSFieldsInfo]' + } + + attribute_map = { + 'log_stream_id': 'logStreamId', + 'full_text_index': 'fullTextIndex', + 'fields': 'fields' + } + + def __init__(self, log_stream_id=None, full_text_index=None, fields=None): + """LTSIndexConfigInfo + + The model defined in huaweicloud sdk + + :param log_stream_id: 日志流ID + :type log_stream_id: str + :param full_text_index: + :type full_text_index: :class:`huaweicloudsdklts.v2.LTSFullTextIndexInfo` + :param fields: 字段索引配置 + :type fields: list[:class:`huaweicloudsdklts.v2.LTSFieldsInfo`] + """ + + + + self._log_stream_id = None + self._full_text_index = None + self._fields = None + self.discriminator = None + + if log_stream_id is not None: + self.log_stream_id = log_stream_id + self.full_text_index = full_text_index + if fields is not None: + self.fields = fields + + @property + def log_stream_id(self): + """Gets the log_stream_id of this LTSIndexConfigInfo. + + 日志流ID + + :return: The log_stream_id of this LTSIndexConfigInfo. + :rtype: str + """ + return self._log_stream_id + + @log_stream_id.setter + def log_stream_id(self, log_stream_id): + """Sets the log_stream_id of this LTSIndexConfigInfo. + + 日志流ID + + :param log_stream_id: The log_stream_id of this LTSIndexConfigInfo. + :type log_stream_id: str + """ + self._log_stream_id = log_stream_id + + @property + def full_text_index(self): + """Gets the full_text_index of this LTSIndexConfigInfo. + + :return: The full_text_index of this LTSIndexConfigInfo. + :rtype: :class:`huaweicloudsdklts.v2.LTSFullTextIndexInfo` + """ + return self._full_text_index + + @full_text_index.setter + def full_text_index(self, full_text_index): + """Sets the full_text_index of this LTSIndexConfigInfo. + + :param full_text_index: The full_text_index of this LTSIndexConfigInfo. + :type full_text_index: :class:`huaweicloudsdklts.v2.LTSFullTextIndexInfo` + """ + self._full_text_index = full_text_index + + @property + def fields(self): + """Gets the fields of this LTSIndexConfigInfo. + + 字段索引配置 + + :return: The fields of this LTSIndexConfigInfo. + :rtype: list[:class:`huaweicloudsdklts.v2.LTSFieldsInfo`] + """ + return self._fields + + @fields.setter + def fields(self, fields): + """Sets the fields of this LTSIndexConfigInfo. + + 字段索引配置 + + :param fields: The fields of this LTSIndexConfigInfo. + :type fields: list[:class:`huaweicloudsdklts.v2.LTSFieldsInfo`] + """ + self._fields = fields + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LTSIndexConfigInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_response_body_new.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_response_body_new.py new file mode 100644 index 000000000..dcd1c4300 --- /dev/null +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/query_lts_struct_log_response_body_new.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class QueryLtsStructLogResponseBodyNew: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """QueryLtsStructLogResponseBodyNew + + The model defined in huaweicloud sdk + + """ + + + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, QueryLtsStructLogResponseBodyNew): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py index 6b2ad3e58..2853cb8f8 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_request_body.py @@ -19,6 +19,7 @@ class UpdateKeywordsAlarmRuleRequestBody: openapi_types = { 'keywords_alarm_rule_id': 'str', 'keywords_alarm_rule_name': 'str', + 'alarm_rule_alias': 'str', 'keywords_alarm_rule_description': 'str', 'keywords_requests': 'list[KeywordsRequest]', 'frequency': 'Frequency', @@ -38,6 +39,7 @@ class UpdateKeywordsAlarmRuleRequestBody: attribute_map = { 'keywords_alarm_rule_id': 'keywords_alarm_rule_id', 'keywords_alarm_rule_name': 'keywords_alarm_rule_name', + 'alarm_rule_alias': 'alarm_rule_alias', 'keywords_alarm_rule_description': 'keywords_alarm_rule_description', 'keywords_requests': 'keywords_requests', 'frequency': 'frequency', @@ -54,7 +56,7 @@ class UpdateKeywordsAlarmRuleRequestBody: 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, keywords_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): + def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, alarm_rule_alias=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, keywords_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateKeywordsAlarmRuleRequestBody The model defined in huaweicloud sdk @@ -63,6 +65,8 @@ class UpdateKeywordsAlarmRuleRequestBody: :type keywords_alarm_rule_id: str :param keywords_alarm_rule_name: 关键词告警名称 :type keywords_alarm_rule_name: str + :param alarm_rule_alias: 规则名称 + :type alarm_rule_alias: str :param keywords_alarm_rule_description: 关键词告警信息描述 :type keywords_alarm_rule_description: str :param keywords_requests: 关键词详细信息 @@ -97,6 +101,7 @@ class UpdateKeywordsAlarmRuleRequestBody: self._keywords_alarm_rule_id = None self._keywords_alarm_rule_name = None + self._alarm_rule_alias = None self._keywords_alarm_rule_description = None self._keywords_requests = None self._frequency = None @@ -115,6 +120,8 @@ class UpdateKeywordsAlarmRuleRequestBody: self.keywords_alarm_rule_id = keywords_alarm_rule_id self.keywords_alarm_rule_name = keywords_alarm_rule_name + if alarm_rule_alias is not None: + self.alarm_rule_alias = alarm_rule_alias if keywords_alarm_rule_description is not None: self.keywords_alarm_rule_description = keywords_alarm_rule_description self.keywords_requests = keywords_requests @@ -181,6 +188,28 @@ class UpdateKeywordsAlarmRuleRequestBody: """ self._keywords_alarm_rule_name = keywords_alarm_rule_name + @property + def alarm_rule_alias(self): + """Gets the alarm_rule_alias of this UpdateKeywordsAlarmRuleRequestBody. + + 规则名称 + + :return: The alarm_rule_alias of this UpdateKeywordsAlarmRuleRequestBody. + :rtype: str + """ + return self._alarm_rule_alias + + @alarm_rule_alias.setter + def alarm_rule_alias(self, alarm_rule_alias): + """Sets the alarm_rule_alias of this UpdateKeywordsAlarmRuleRequestBody. + + 规则名称 + + :param alarm_rule_alias: The alarm_rule_alias of this UpdateKeywordsAlarmRuleRequestBody. + :type alarm_rule_alias: str + """ + self._alarm_rule_alias = alarm_rule_alias + @property def keywords_alarm_rule_description(self): """Gets the keywords_alarm_rule_description of this UpdateKeywordsAlarmRuleRequestBody. diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py index a1718e3b0..0402b8420 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_keywords_alarm_rule_response.py @@ -20,6 +20,7 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): openapi_types = { 'keywords_alarm_rule_id': 'str', 'keywords_alarm_rule_name': 'str', + 'alarm_rule_alias': 'str', 'keywords_alarm_rule_description': 'str', 'keywords_requests': 'list[KeywordsResBody]', 'frequency': 'FrequencyRespBody', @@ -40,6 +41,7 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): attribute_map = { 'keywords_alarm_rule_id': 'keywords_alarm_rule_id', 'keywords_alarm_rule_name': 'keywords_alarm_rule_name', + 'alarm_rule_alias': 'alarm_rule_alias', 'keywords_alarm_rule_description': 'keywords_alarm_rule_description', 'keywords_requests': 'keywords_requests', 'frequency': 'frequency', @@ -57,7 +59,7 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, create_time=None, update_time=None, language=None, project_id=None, topics=None, condition_expression=None, index_id=None, notification_frequency=None, alarm_action_rule_name=None): + def __init__(self, keywords_alarm_rule_id=None, keywords_alarm_rule_name=None, alarm_rule_alias=None, keywords_alarm_rule_description=None, keywords_requests=None, frequency=None, keywords_alarm_level=None, keywords_alarm_send=None, domain_id=None, create_time=None, update_time=None, language=None, project_id=None, topics=None, condition_expression=None, index_id=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateKeywordsAlarmRuleResponse The model defined in huaweicloud sdk @@ -66,6 +68,8 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): :type keywords_alarm_rule_id: str :param keywords_alarm_rule_name: 关键词告警名称 :type keywords_alarm_rule_name: str + :param alarm_rule_alias: 规则名称 + :type alarm_rule_alias: str :param keywords_alarm_rule_description: 关键词告警信息描述 :type keywords_alarm_rule_description: str :param keywords_requests: 关键词详细信息 @@ -102,6 +106,7 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): self._keywords_alarm_rule_id = None self._keywords_alarm_rule_name = None + self._alarm_rule_alias = None self._keywords_alarm_rule_description = None self._keywords_requests = None self._frequency = None @@ -123,6 +128,8 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): self.keywords_alarm_rule_id = keywords_alarm_rule_id if keywords_alarm_rule_name is not None: self.keywords_alarm_rule_name = keywords_alarm_rule_name + if alarm_rule_alias is not None: + self.alarm_rule_alias = alarm_rule_alias if keywords_alarm_rule_description is not None: self.keywords_alarm_rule_description = keywords_alarm_rule_description if keywords_requests is not None: @@ -198,6 +205,28 @@ class UpdateKeywordsAlarmRuleResponse(SdkResponse): """ self._keywords_alarm_rule_name = keywords_alarm_rule_name + @property + def alarm_rule_alias(self): + """Gets the alarm_rule_alias of this UpdateKeywordsAlarmRuleResponse. + + 规则名称 + + :return: The alarm_rule_alias of this UpdateKeywordsAlarmRuleResponse. + :rtype: str + """ + return self._alarm_rule_alias + + @alarm_rule_alias.setter + def alarm_rule_alias(self, alarm_rule_alias): + """Sets the alarm_rule_alias of this UpdateKeywordsAlarmRuleResponse. + + 规则名称 + + :param alarm_rule_alias: The alarm_rule_alias of this UpdateKeywordsAlarmRuleResponse. + :type alarm_rule_alias: str + """ + self._alarm_rule_alias = alarm_rule_alias + @property def keywords_alarm_rule_description(self): """Gets the keywords_alarm_rule_description of this UpdateKeywordsAlarmRuleResponse. diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py index ee71c2896..ccd3f9cb2 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_request_body.py @@ -19,6 +19,7 @@ class UpdateSqlAlarmRuleRequestBody: openapi_types = { 'sql_alarm_rule_id': 'str', 'sql_alarm_rule_name': 'str', + 'alarm_rule_alias': 'str', 'is_css_sql': 'bool', 'sql_alarm_rule_description': 'str', 'sql_requests': 'list[SqlRequest]', @@ -40,6 +41,7 @@ class UpdateSqlAlarmRuleRequestBody: attribute_map = { 'sql_alarm_rule_id': 'sql_alarm_rule_id', 'sql_alarm_rule_name': 'sql_alarm_rule_name', + 'alarm_rule_alias': 'alarm_rule_alias', 'is_css_sql': 'is_css_sql', 'sql_alarm_rule_description': 'sql_alarm_rule_description', 'sql_requests': 'sql_requests', @@ -58,7 +60,7 @@ class UpdateSqlAlarmRuleRequestBody: 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, is_css_sql=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, sql_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): + def __init__(self, sql_alarm_rule_id=None, sql_alarm_rule_name=None, alarm_rule_alias=None, is_css_sql=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, sql_alarm_send_code=None, domain_id=None, notification_save_rule=None, trigger_condition_count=None, trigger_condition_frequency=None, whether_recovery_policy=None, recovery_policy=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateSqlAlarmRuleRequestBody The model defined in huaweicloud sdk @@ -67,6 +69,8 @@ class UpdateSqlAlarmRuleRequestBody: :type sql_alarm_rule_id: str :param sql_alarm_rule_name: SQL告警名称 :type sql_alarm_rule_name: str + :param alarm_rule_alias: 规则名称 + :type alarm_rule_alias: str :param is_css_sql: 是否管道符sql查询 :type is_css_sql: bool :param sql_alarm_rule_description: SQL告警信息描述 @@ -105,6 +109,7 @@ class UpdateSqlAlarmRuleRequestBody: self._sql_alarm_rule_id = None self._sql_alarm_rule_name = None + self._alarm_rule_alias = None self._is_css_sql = None self._sql_alarm_rule_description = None self._sql_requests = None @@ -125,6 +130,8 @@ class UpdateSqlAlarmRuleRequestBody: self.sql_alarm_rule_id = sql_alarm_rule_id self.sql_alarm_rule_name = sql_alarm_rule_name + if alarm_rule_alias is not None: + self.alarm_rule_alias = alarm_rule_alias if is_css_sql is not None: self.is_css_sql = is_css_sql if sql_alarm_rule_description is not None: @@ -194,6 +201,28 @@ class UpdateSqlAlarmRuleRequestBody: """ self._sql_alarm_rule_name = sql_alarm_rule_name + @property + def alarm_rule_alias(self): + """Gets the alarm_rule_alias of this UpdateSqlAlarmRuleRequestBody. + + 规则名称 + + :return: The alarm_rule_alias of this UpdateSqlAlarmRuleRequestBody. + :rtype: str + """ + return self._alarm_rule_alias + + @alarm_rule_alias.setter + def alarm_rule_alias(self, alarm_rule_alias): + """Sets the alarm_rule_alias of this UpdateSqlAlarmRuleRequestBody. + + 规则名称 + + :param alarm_rule_alias: The alarm_rule_alias of this UpdateSqlAlarmRuleRequestBody. + :type alarm_rule_alias: str + """ + self._alarm_rule_alias = alarm_rule_alias + @property def is_css_sql(self): """Gets the is_css_sql of this UpdateSqlAlarmRuleRequestBody. diff --git a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py index a2f2c2ea3..a4af2e432 100644 --- a/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py +++ b/huaweicloud-sdk-lts/huaweicloudsdklts/v2/model/update_sql_alarm_rule_response.py @@ -19,6 +19,7 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): openapi_types = { 'sql_alarm_rule_name': 'str', + 'alarm_rule_alias': 'str', 'is_css_sql': 'bool', 'index_id': 'str', 'project_id': 'str', @@ -41,6 +42,7 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): attribute_map = { 'sql_alarm_rule_name': 'sql_alarm_rule_name', + 'alarm_rule_alias': 'alarm_rule_alias', 'is_css_sql': 'is_css_sql', 'index_id': 'indexId', 'project_id': 'projectId', @@ -61,13 +63,15 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): 'alarm_action_rule_name': 'alarm_action_rule_name' } - def __init__(self, sql_alarm_rule_name=None, is_css_sql=None, index_id=None, project_id=None, sql_alarm_rule_id=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, create_time=None, update_time=None, topics=None, language=None, id=None, notification_frequency=None, alarm_action_rule_name=None): + def __init__(self, sql_alarm_rule_name=None, alarm_rule_alias=None, is_css_sql=None, index_id=None, project_id=None, sql_alarm_rule_id=None, sql_alarm_rule_description=None, sql_requests=None, frequency=None, condition_expression=None, sql_alarm_level=None, sql_alarm_send=None, domain_id=None, create_time=None, update_time=None, topics=None, language=None, id=None, notification_frequency=None, alarm_action_rule_name=None): """UpdateSqlAlarmRuleResponse The model defined in huaweicloud sdk :param sql_alarm_rule_name: SQL告警名称 :type sql_alarm_rule_name: str + :param alarm_rule_alias: 规则名称 + :type alarm_rule_alias: str :param is_css_sql: 是否管道符sql查询 :type is_css_sql: bool :param index_id: 索引id @@ -109,6 +113,7 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): super(UpdateSqlAlarmRuleResponse, self).__init__() self._sql_alarm_rule_name = None + self._alarm_rule_alias = None self._is_css_sql = None self._index_id = None self._project_id = None @@ -131,6 +136,8 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): if sql_alarm_rule_name is not None: self.sql_alarm_rule_name = sql_alarm_rule_name + if alarm_rule_alias is not None: + self.alarm_rule_alias = alarm_rule_alias if is_css_sql is not None: self.is_css_sql = is_css_sql if index_id is not None: @@ -190,6 +197,28 @@ class UpdateSqlAlarmRuleResponse(SdkResponse): """ self._sql_alarm_rule_name = sql_alarm_rule_name + @property + def alarm_rule_alias(self): + """Gets the alarm_rule_alias of this UpdateSqlAlarmRuleResponse. + + 规则名称 + + :return: The alarm_rule_alias of this UpdateSqlAlarmRuleResponse. + :rtype: str + """ + return self._alarm_rule_alias + + @alarm_rule_alias.setter + def alarm_rule_alias(self, alarm_rule_alias): + """Sets the alarm_rule_alias of this UpdateSqlAlarmRuleResponse. + + 规则名称 + + :param alarm_rule_alias: The alarm_rule_alias of this UpdateSqlAlarmRuleResponse. + :type alarm_rule_alias: str + """ + self._alarm_rule_alias = alarm_rule_alias + @property def is_css_sql(self): """Gets the is_css_sql of this UpdateSqlAlarmRuleResponse. diff --git a/huaweicloud-sdk-lts/requirements.txt b/huaweicloud-sdk-lts/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-lts/requirements.txt +++ b/huaweicloud-sdk-lts/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-lts/setup.py b/huaweicloud-sdk-lts/setup.py index 3d0f18618..a8ec4c5e2 100644 --- a/huaweicloud-sdk-lts/setup.py +++ b/huaweicloud-sdk-lts/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdklts" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mapds/requirements.txt b/huaweicloud-sdk-mapds/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-mapds/requirements.txt +++ b/huaweicloud-sdk-mapds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-mapds/setup.py b/huaweicloud-sdk-mapds/setup.py index 4902e7758..926b895cb 100644 --- a/huaweicloud-sdk-mapds/setup.py +++ b/huaweicloud-sdk-mapds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmapds" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mas/requirements.txt b/huaweicloud-sdk-mas/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-mas/requirements.txt +++ b/huaweicloud-sdk-mas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-mas/setup.py b/huaweicloud-sdk-mas/setup.py index ad775770b..a41bebc5a 100644 --- a/huaweicloud-sdk-mas/setup.py +++ b/huaweicloud-sdk-mas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmas" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-meeting/requirements.txt b/huaweicloud-sdk-meeting/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-meeting/requirements.txt +++ b/huaweicloud-sdk-meeting/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-meeting/setup.py b/huaweicloud-sdk-meeting/setup.py index 54ee59ae1..9fee3bc73 100644 --- a/huaweicloud-sdk-meeting/setup.py +++ b/huaweicloud-sdk-meeting/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmeeting" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py index d98b58282..285009eb8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/__init__.py @@ -15,10 +15,13 @@ from huaweicloudsdkmetastudio.v1.model.background_music_config import Background from huaweicloudsdkmetastudio.v1.model.business_card_image_config import BusinessCardImageConfig from huaweicloudsdkmetastudio.v1.model.business_card_image_url import BusinessCardImageUrl from huaweicloudsdkmetastudio.v1.model.business_card_text_config import BusinessCardTextConfig +from huaweicloudsdkmetastudio.v1.model.call_back_config import CallBackConfig from huaweicloudsdkmetastudio.v1.model.cancel2_d_digital_human_video_request import Cancel2DDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.cancel2_d_digital_human_video_response import Cancel2DDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_request import CancelPhotoDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_response import CancelPhotoDigitalHumanVideoResponse +from huaweicloudsdkmetastudio.v1.model.check_text_language_request import CheckTextLanguageRequest +from huaweicloudsdkmetastudio.v1.model.check_text_language_response import CheckTextLanguageResponse from huaweicloudsdkmetastudio.v1.model.component_info import ComponentInfo from huaweicloudsdkmetastudio.v1.model.confirm_file_upload_request import ConfirmFileUploadRequest from huaweicloudsdkmetastudio.v1.model.confirm_file_upload_request_body import ConfirmFileUploadRequestBody @@ -34,8 +37,13 @@ from huaweicloudsdkmetastudio.v1.model.create_digital_asset_response import Crea from huaweicloudsdkmetastudio.v1.model.create_digital_human_business_card_req import CreateDigitalHumanBusinessCardReq from huaweicloudsdkmetastudio.v1.model.create_digital_human_business_card_request import CreateDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.create_digital_human_business_card_response import CreateDigitalHumanBusinessCardResponse +from huaweicloudsdkmetastudio.v1.model.create_fas_req import CreateFASReq +from huaweicloudsdkmetastudio.v1.model.create_facial_animations_request import CreateFacialAnimationsRequest +from huaweicloudsdkmetastudio.v1.model.create_facial_animations_response import CreateFacialAnimationsResponse from huaweicloudsdkmetastudio.v1.model.create_file_request import CreateFileRequest from huaweicloudsdkmetastudio.v1.model.create_file_response import CreateFileResponse +from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_request import CreateInteractionRuleGroupRequest +from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_response import CreateInteractionRuleGroupResponse from huaweicloudsdkmetastudio.v1.model.create_photo_detection_req import CreatePhotoDetectionReq from huaweicloudsdkmetastudio.v1.model.create_photo_detection_request import CreatePhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.create_photo_detection_response import CreatePhotoDetectionResponse @@ -65,6 +73,8 @@ from huaweicloudsdkmetastudio.v1.model.delete_digital_human_business_card_reques from huaweicloudsdkmetastudio.v1.model.delete_digital_human_business_card_response import DeleteDigitalHumanBusinessCardResponse from huaweicloudsdkmetastudio.v1.model.delete_file_request import DeleteFileRequest from huaweicloudsdkmetastudio.v1.model.delete_file_response import DeleteFileResponse +from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_request import DeleteInteractionRuleGroupRequest +from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_response import DeleteInteractionRuleGroupResponse from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_request import DeleteSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_response import DeleteSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.delete_video_script_request import DeleteVideoScriptRequest @@ -80,11 +90,9 @@ from huaweicloudsdkmetastudio.v1.model.execute_smart_live_command_request import from huaweicloudsdkmetastudio.v1.model.execute_smart_live_command_response import ExecuteSmartLiveCommandResponse from huaweicloudsdkmetastudio.v1.model.execute_video_motion_capture_command_request import ExecuteVideoMotionCaptureCommandRequest from huaweicloudsdkmetastudio.v1.model.execute_video_motion_capture_command_response import ExecuteVideoMotionCaptureCommandResponse -from huaweicloudsdkmetastudio.v1.model.external_voice_asset_meta import ExternalVoiceAssetMeta from huaweicloudsdkmetastudio.v1.model.files_create_req import FilesCreateReq from huaweicloudsdkmetastudio.v1.model.hit_condition import HitCondition from huaweicloudsdkmetastudio.v1.model.hit_condition_tag import HitConditionTag -from huaweicloudsdkmetastudio.v1.model.huawei_ei_voice_asset_meta import HuaweiEIVoiceAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model2_d_asset_meta import HumanModel2DAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_asset_meta import HumanModelAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_meta_properties import HumanModelMetaProperties @@ -92,7 +100,11 @@ from huaweicloudsdkmetastudio.v1.model.human_position2_d import HumanPosition2D from huaweicloudsdkmetastudio.v1.model.human_size2_d import HumanSize2D from huaweicloudsdkmetastudio.v1.model.image_layer_config import ImageLayerConfig from huaweicloudsdkmetastudio.v1.model.input_info import InputInfo +from huaweicloudsdkmetastudio.v1.model.interaction_rule_detail_info import InteractionRuleDetailInfo +from huaweicloudsdkmetastudio.v1.model.interaction_rule_group import InteractionRuleGroup +from huaweicloudsdkmetastudio.v1.model.interaction_rule_group_detail import InteractionRuleGroupDetail from huaweicloudsdkmetastudio.v1.model.interaction_rule_info import InteractionRuleInfo +from huaweicloudsdkmetastudio.v1.model.language_check_info_req import LanguageCheckInfoReq from huaweicloudsdkmetastudio.v1.model.layer_config import LayerConfig from huaweicloudsdkmetastudio.v1.model.layer_position_config import LayerPositionConfig from huaweicloudsdkmetastudio.v1.model.layer_size_config import LayerSizeConfig @@ -103,6 +115,12 @@ from huaweicloudsdkmetastudio.v1.model.list_assets_request import ListAssetsRequ from huaweicloudsdkmetastudio.v1.model.list_assets_response import ListAssetsResponse from huaweicloudsdkmetastudio.v1.model.list_digital_human_business_card_request import ListDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.list_digital_human_business_card_response import ListDigitalHumanBusinessCardResponse +from huaweicloudsdkmetastudio.v1.model.list_digital_human_video_request import ListDigitalHumanVideoRequest +from huaweicloudsdkmetastudio.v1.model.list_digital_human_video_response import ListDigitalHumanVideoResponse +from huaweicloudsdkmetastudio.v1.model.list_facial_animations_data_request import ListFacialAnimationsDataRequest +from huaweicloudsdkmetastudio.v1.model.list_facial_animations_data_response import ListFacialAnimationsDataResponse +from huaweicloudsdkmetastudio.v1.model.list_interaction_rule_groups_request import ListInteractionRuleGroupsRequest +from huaweicloudsdkmetastudio.v1.model.list_interaction_rule_groups_response import ListInteractionRuleGroupsResponse from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_request import ListPictureModelingJobsRequest from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_response import ListPictureModelingJobsResponse from huaweicloudsdkmetastudio.v1.model.list_smart_live_request import ListSmartLiveRequest @@ -121,10 +139,12 @@ from huaweicloudsdkmetastudio.v1.model.list_video_scripts_request import ListVid from huaweicloudsdkmetastudio.v1.model.list_video_scripts_response import ListVideoScriptsResponse from huaweicloudsdkmetastudio.v1.model.live_audio_config import LiveAudioConfig from huaweicloudsdkmetastudio.v1.model.live_event import LiveEvent +from huaweicloudsdkmetastudio.v1.model.live_event_call_back_config import LiveEventCallBackConfig from huaweicloudsdkmetastudio.v1.model.live_event_report_request import LiveEventReportRequest from huaweicloudsdkmetastudio.v1.model.live_event_report_response import LiveEventReportResponse from huaweicloudsdkmetastudio.v1.model.live_shoot_script_item import LiveShootScriptItem from huaweicloudsdkmetastudio.v1.model.live_video_script_info import LiveVideoScriptInfo +from huaweicloudsdkmetastudio.v1.model.live_warning_item import LiveWarningItem from huaweicloudsdkmetastudio.v1.model.material_asset_meta import MaterialAssetMeta from huaweicloudsdkmetastudio.v1.model.material_component_info import MaterialComponentInfo from huaweicloudsdkmetastudio.v1.model.model_info import ModelInfo @@ -140,15 +160,21 @@ from huaweicloudsdkmetastudio.v1.model.picture_modeling_info import PictureModel from huaweicloudsdkmetastudio.v1.model.play_policy import PlayPolicy from huaweicloudsdkmetastudio.v1.model.rtc_room_info_list import RTCRoomInfoList from huaweicloudsdkmetastudio.v1.model.rtc_user_info import RTCUserInfo +from huaweicloudsdkmetastudio.v1.model.reply_audio_info import ReplyAudioInfo from huaweicloudsdkmetastudio.v1.model.report_live_event_req import ReportLiveEventReq from huaweicloudsdkmetastudio.v1.model.restore_asset_request import RestoreAssetRequest from huaweicloudsdkmetastudio.v1.model.restore_asset_response import RestoreAssetResponse +from huaweicloudsdkmetastudio.v1.model.review_config import ReviewConfig from huaweicloudsdkmetastudio.v1.model.scene_asset_meta import SceneAssetMeta from huaweicloudsdkmetastudio.v1.model.scene_component_info import SceneComponentInfo +from huaweicloudsdkmetastudio.v1.model.shared_config import SharedConfig from huaweicloudsdkmetastudio.v1.model.shoot_script import ShootScript from huaweicloudsdkmetastudio.v1.model.shoot_script_audio_file_item import ShootScriptAudioFileItem from huaweicloudsdkmetastudio.v1.model.shoot_script_audio_files import ShootScriptAudioFiles +from huaweicloudsdkmetastudio.v1.model.shoot_script_detail import ShootScriptDetail from huaweicloudsdkmetastudio.v1.model.shoot_script_item import ShootScriptItem +from huaweicloudsdkmetastudio.v1.model.shoot_script_item_base_info import ShootScriptItemBaseInfo +from huaweicloudsdkmetastudio.v1.model.shoot_script_show_item import ShootScriptShowItem from huaweicloudsdkmetastudio.v1.model.show2_d_digital_human_video_request import Show2DDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.show2_d_digital_human_video_response import Show2DDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.show_asset_request import ShowAssetRequest @@ -169,8 +195,11 @@ from huaweicloudsdkmetastudio.v1.model.show_video_motion_capture_job_request imp from huaweicloudsdkmetastudio.v1.model.show_video_motion_capture_job_response import ShowVideoMotionCaptureJobResponse from huaweicloudsdkmetastudio.v1.model.show_video_script_request import ShowVideoScriptRequest from huaweicloudsdkmetastudio.v1.model.show_video_script_response import ShowVideoScriptResponse +from huaweicloudsdkmetastudio.v1.model.smart_image_layer_config import SmartImageLayerConfig +from huaweicloudsdkmetastudio.v1.model.smart_layer_config import SmartLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_live_job import SmartLiveJob from huaweicloudsdkmetastudio.v1.model.smart_live_room_base_info import SmartLiveRoomBaseInfo +from huaweicloudsdkmetastudio.v1.model.smart_video_layer_config import SmartVideoLayerConfig from huaweicloudsdkmetastudio.v1.model.start_smart_live_req import StartSmartLiveReq from huaweicloudsdkmetastudio.v1.model.start_smart_live_request import StartSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.start_smart_live_response import StartSmartLiveResponse @@ -181,6 +210,7 @@ from huaweicloudsdkmetastudio.v1.model.stop_video_motion_capture_job_response im from huaweicloudsdkmetastudio.v1.model.style_asset_item import StyleAssetItem from huaweicloudsdkmetastudio.v1.model.style_extra_meta import StyleExtraMeta from huaweicloudsdkmetastudio.v1.model.style_info import StyleInfo +from huaweicloudsdkmetastudio.v1.model.subtitle_config import SubtitleConfig from huaweicloudsdkmetastudio.v1.model.system_property import SystemProperty from huaweicloudsdkmetastudio.v1.model.ttsa_job import TTSAJob from huaweicloudsdkmetastudio.v1.model.text_config import TextConfig @@ -191,6 +221,8 @@ from huaweicloudsdkmetastudio.v1.model.update_digital_asset_request_body import from huaweicloudsdkmetastudio.v1.model.update_digital_asset_response import UpdateDigitalAssetResponse from huaweicloudsdkmetastudio.v1.model.update_digital_human_business_card_request import UpdateDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.update_digital_human_business_card_response import UpdateDigitalHumanBusinessCardResponse +from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_request import UpdateInteractionRuleGroupRequest +from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_response import UpdateInteractionRuleGroupResponse from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_request import UpdateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_response import UpdateSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.update_video_script_request import UpdateVideoScriptRequest @@ -201,7 +233,9 @@ from huaweicloudsdkmetastudio.v1.model.video_layer_config import VideoLayerConfi from huaweicloudsdkmetastudio.v1.model.video_motion_capture_info import VideoMotionCaptureInfo from huaweicloudsdkmetastudio.v1.model.video_motion_capture_job_req import VideoMotionCaptureJobReq from huaweicloudsdkmetastudio.v1.model.video_script_base_info import VideoScriptBaseInfo +from huaweicloudsdkmetastudio.v1.model.video_scripts_create_info import VideoScriptsCreateInfo +from huaweicloudsdkmetastudio.v1.model.video_scripts_show_info import VideoScriptsShowInfo +from huaweicloudsdkmetastudio.v1.model.video_scripts_simple_info import VideoScriptsSimpleInfo from huaweicloudsdkmetastudio.v1.model.voice_config import VoiceConfig from huaweicloudsdkmetastudio.v1.model.voice_model_asset_meta import VoiceModelAssetMeta -from huaweicloudsdkmetastudio.v1.model.ximalaya_voice_asset_meta import XimalayaVoiceAssetMeta diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py index e95af4fba..44f8bcbab 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_async_client.py @@ -35,7 +35,10 @@ class MetaStudioAsyncClient(Client): def create_digital_asset_async(self, request): """创建资产 - 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:数字人模型、素材、视频、图片、场景等。 + 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。 + * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。 + * > 资产类型是VIDEO时,通过system_properties来区分素材视频(MATERIAL_VIDEO)、名片视频(BUSSINESS_CARD_VIDEO)。 + * > MetaStudio平台生成的视频,system_properties带CREATED_BY_PLATFORM。 Please refer to HUAWEI cloud API Explorer for details. @@ -886,6 +889,89 @@ class MetaStudioAsyncClient(Client): return http_info + def list_digital_human_video_async(self, request): + """查询视频制作任务列表 + + 该接口用于查询视频制作任务列表。可查询分身数字人视频制作列表,照片数字人视频制作列表等。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListDigitalHumanVideo + :type request: :class:`huaweicloudsdkmetastudio.v1.ListDigitalHumanVideoRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListDigitalHumanVideoResponse` + """ + http_info = self._list_digital_human_video_http_info(request) + return self._call_api(**http_info) + + def list_digital_human_video_async_invoker(self, request): + http_info = self._list_digital_human_video_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_digital_human_video_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-videos", + "request_type": request.__class__.__name__, + "response_type": "ListDigitalHumanVideoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'state' in local_var_params: + query_params.append(('state', local_var_params['state'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'create_until' in local_var_params: + query_params.append(('create_until', local_var_params['create_until'])) + if 'create_since' in local_var_params: + query_params.append(('create_since', local_var_params['create_since'])) + if 'script_id' in local_var_params: + query_params.append(('script_id', local_var_params['script_id'])) + if 'asset_name' in local_var_params: + query_params.append(('asset_name', local_var_params['asset_name'])) + + 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 cancel2_d_digital_human_video_async(self, request): """取消等待中的分身数字人视频制作任务 @@ -1005,7 +1091,7 @@ class MetaStudioAsyncClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1208,7 +1294,7 @@ class MetaStudioAsyncClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1275,7 +1361,7 @@ class MetaStudioAsyncClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1480,7 +1566,7 @@ class MetaStudioAsyncClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1547,7 +1633,7 @@ class MetaStudioAsyncClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -2036,10 +2122,10 @@ class MetaStudioAsyncClient(Client): query_params.append(('sort_key', local_var_params['sort_key'])) if 'sort_dir' in local_var_params: query_params.append(('sort_dir', local_var_params['sort_dir'])) - if 'create_until' in local_var_params: - query_params.append(('create_until', local_var_params['create_until'])) if 'create_since' in local_var_params: query_params.append(('create_since', local_var_params['create_since'])) + if 'create_until' in local_var_params: + query_params.append(('create_until', local_var_params['create_until'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -2353,6 +2439,138 @@ class MetaStudioAsyncClient(Client): return http_info + def check_text_language_async(self, request): + """检测音色与文本的语言一致性 + + 检测音色与文本的语言一致性,音色与文本不一致会导致报错 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CheckTextLanguage + :type request: :class:`huaweicloudsdkmetastudio.v1.CheckTextLanguageRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CheckTextLanguageResponse` + """ + http_info = self._check_text_language_http_info(request) + return self._call_api(**http_info) + + def check_text_language_async_invoker(self, request): + http_info = self._check_text_language_http_info(request) + return AsyncInvoker(self, http_info) + + def _check_text_language_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/smart-live-rooms-scripts/language-check", + "request_type": request.__class__.__name__, + "response_type": "CheckTextLanguageResponse" + } + + 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_interaction_rule_group_async(self, request): + """创建智能直播间互动规则库 + + 该接口用于创建智能直播间互动规则库。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateInteractionRuleGroup + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateInteractionRuleGroupRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateInteractionRuleGroupResponse` + """ + http_info = self._create_interaction_rule_group_http_info(request) + return self._call_api(**http_info) + + def create_interaction_rule_group_async_invoker(self, request): + http_info = self._create_interaction_rule_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_interaction_rule_group_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups", + "request_type": request.__class__.__name__, + "response_type": "CreateInteractionRuleGroupResponse" + } + + 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 create_smart_live_room_async(self, request): """创建智能直播间 @@ -2420,6 +2638,73 @@ class MetaStudioAsyncClient(Client): return http_info + def delete_interaction_rule_group_async(self, request): + """删除智能直播间互动规则库 + + 该接口用于删除智能直播间互动规则库。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteInteractionRuleGroup + :type request: :class:`huaweicloudsdkmetastudio.v1.DeleteInteractionRuleGroupRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeleteInteractionRuleGroupResponse` + """ + http_info = self._delete_interaction_rule_group_http_info(request) + return self._call_api(**http_info) + + def delete_interaction_rule_group_async_invoker(self, request): + http_info = self._delete_interaction_rule_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_interaction_rule_group_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteInteractionRuleGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_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 delete_smart_live_room_async(self, request): """删除智能直播间 @@ -2487,6 +2772,81 @@ class MetaStudioAsyncClient(Client): return http_info + def list_interaction_rule_groups_async(self, request): + """查询智能直播间互动规则库列表 + + 该接口用于智能直播间互动规则库列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListInteractionRuleGroups + :type request: :class:`huaweicloudsdkmetastudio.v1.ListInteractionRuleGroupsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListInteractionRuleGroupsResponse` + """ + http_info = self._list_interaction_rule_groups_http_info(request) + return self._call_api(**http_info) + + def list_interaction_rule_groups_async_invoker(self, request): + http_info = self._list_interaction_rule_groups_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_interaction_rule_groups_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups", + "request_type": request.__class__.__name__, + "response_type": "ListInteractionRuleGroupsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'create_since' in local_var_params: + query_params.append(('create_since', local_var_params['create_since'])) + if 'create_until' in local_var_params: + query_params.append(('create_until', local_var_params['create_until'])) + if 'group_name' in local_var_params: + query_params.append(('group_name', local_var_params['group_name'])) + + 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 list_smart_live_rooms_async(self, request): """查询智能直播间列表 @@ -2539,6 +2899,8 @@ class MetaStudioAsyncClient(Client): 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 'room_type' in local_var_params: + query_params.append(('room_type', local_var_params['room_type'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -2635,6 +2997,75 @@ class MetaStudioAsyncClient(Client): return http_info + def update_interaction_rule_group_async(self, request): + """更新智能直播间互动规则库 + + 该接口用于更新智能直播间互动规则库。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for UpdateInteractionRuleGroup + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdateInteractionRuleGroupRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdateInteractionRuleGroupResponse` + """ + http_info = self._update_interaction_rule_group_http_info(request) + return self._call_api(**http_info) + + def update_interaction_rule_group_async_invoker(self, request): + http_info = self._update_interaction_rule_group_http_info(request) + return AsyncInvoker(self, http_info) + + def _update_interaction_rule_group_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateInteractionRuleGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_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 '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 update_smart_live_room_async(self, request): """更新智能直播间信息 @@ -2783,6 +3214,71 @@ class MetaStudioAsyncClient(Client): return http_info + def create_facial_animations_async(self, request): + """创建语音驱动表情动画任务 + + 该接口用于创建驱动数字人表情的任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateFacialAnimations + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateFacialAnimationsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateFacialAnimationsResponse` + """ + http_info = self._create_facial_animations_http_info(request) + return self._call_api(**http_info) + + def create_facial_animations_async_invoker(self, request): + http_info = self._create_facial_animations_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_facial_animations_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/ttsa/fas", + "request_type": request.__class__.__name__, + "response_type": "CreateFacialAnimationsResponse" + } + + 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 = ["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 create_ttsa_async(self, request): """创建语音驱动任务 @@ -2850,6 +3346,71 @@ class MetaStudioAsyncClient(Client): return http_info + def list_facial_animations_data_async(self, request): + """获取语音驱动表情数据 + + 该接口用于获取生成的数字人表情驱动数据 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListFacialAnimationsData + :type request: :class:`huaweicloudsdkmetastudio.v1.ListFacialAnimationsDataRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListFacialAnimationsDataResponse` + """ + http_info = self._list_facial_animations_data_http_info(request) + return self._call_api(**http_info) + + def list_facial_animations_data_async_invoker(self, request): + http_info = self._list_facial_animations_data_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_facial_animations_data_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/fas-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ListFacialAnimationsDataResponse" + } + + 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 list_ttsa_data_async(self, request): """获取语音驱动数据 @@ -3109,7 +3670,7 @@ class MetaStudioAsyncClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -3501,6 +4062,12 @@ class MetaStudioAsyncClient(Client): query_params.append(('offset', local_var_params['offset'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'script_catalog' in local_var_params: + query_params.append(('script_catalog', local_var_params['script_catalog'])) + if 'view_mode' in local_var_params: + query_params.append(('view_mode', local_var_params['view_mode'])) header_params = {} if 'x_app_user_id' in local_var_params: diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py index 65a4f2c26..32dcc04d0 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/metastudio_client.py @@ -35,7 +35,10 @@ class MetaStudioClient(Client): def create_digital_asset(self, request): """创建资产 - 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:数字人模型、素材、视频、图片、场景等。 + 该接口用于在资产库中添加上传新的媒体资产。可上传的资产类型包括:分身数字人模型、背景图片、素材图片、素材视频、PPT等。 + * > 资产类型是IMAGE时,通过system_properties来区分背景图片(BACKGROUND_IMG)、素材图片(MATERIAL_IMG)。 + * > 资产类型是VIDEO时,通过system_properties来区分素材视频(MATERIAL_VIDEO)、名片视频(BUSSINESS_CARD_VIDEO)。 + * > MetaStudio平台生成的视频,system_properties带CREATED_BY_PLATFORM。 Please refer to HUAWEI cloud API Explorer for details. @@ -886,6 +889,89 @@ class MetaStudioClient(Client): return http_info + def list_digital_human_video(self, request): + """查询视频制作任务列表 + + 该接口用于查询视频制作任务列表。可查询分身数字人视频制作列表,照片数字人视频制作列表等。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListDigitalHumanVideo + :type request: :class:`huaweicloudsdkmetastudio.v1.ListDigitalHumanVideoRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListDigitalHumanVideoResponse` + """ + http_info = self._list_digital_human_video_http_info(request) + return self._call_api(**http_info) + + def list_digital_human_video_invoker(self, request): + http_info = self._list_digital_human_video_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_digital_human_video_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/digital-human-videos", + "request_type": request.__class__.__name__, + "response_type": "ListDigitalHumanVideoResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'state' in local_var_params: + query_params.append(('state', local_var_params['state'])) + if 'sort_key' in local_var_params: + query_params.append(('sort_key', local_var_params['sort_key'])) + if 'sort_dir' in local_var_params: + query_params.append(('sort_dir', local_var_params['sort_dir'])) + if 'create_until' in local_var_params: + query_params.append(('create_until', local_var_params['create_until'])) + if 'create_since' in local_var_params: + query_params.append(('create_since', local_var_params['create_since'])) + if 'script_id' in local_var_params: + query_params.append(('script_id', local_var_params['script_id'])) + if 'asset_name' in local_var_params: + query_params.append(('asset_name', local_var_params['asset_name'])) + + 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 cancel2_d_digital_human_video(self, request): """取消等待中的分身数字人视频制作任务 @@ -1005,7 +1091,7 @@ class MetaStudioClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1208,7 +1294,7 @@ class MetaStudioClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1275,7 +1361,7 @@ class MetaStudioClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1480,7 +1566,7 @@ class MetaStudioClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -1547,7 +1633,7 @@ class MetaStudioClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -2036,10 +2122,10 @@ class MetaStudioClient(Client): query_params.append(('sort_key', local_var_params['sort_key'])) if 'sort_dir' in local_var_params: query_params.append(('sort_dir', local_var_params['sort_dir'])) - if 'create_until' in local_var_params: - query_params.append(('create_until', local_var_params['create_until'])) if 'create_since' in local_var_params: query_params.append(('create_since', local_var_params['create_since'])) + if 'create_until' in local_var_params: + query_params.append(('create_until', local_var_params['create_until'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -2353,6 +2439,138 @@ class MetaStudioClient(Client): return http_info + def check_text_language(self, request): + """检测音色与文本的语言一致性 + + 检测音色与文本的语言一致性,音色与文本不一致会导致报错 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CheckTextLanguage + :type request: :class:`huaweicloudsdkmetastudio.v1.CheckTextLanguageRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CheckTextLanguageResponse` + """ + http_info = self._check_text_language_http_info(request) + return self._call_api(**http_info) + + def check_text_language_invoker(self, request): + http_info = self._check_text_language_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _check_text_language_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/smart-live-rooms-scripts/language-check", + "request_type": request.__class__.__name__, + "response_type": "CheckTextLanguageResponse" + } + + 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_interaction_rule_group(self, request): + """创建智能直播间互动规则库 + + 该接口用于创建智能直播间互动规则库。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateInteractionRuleGroup + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateInteractionRuleGroupRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateInteractionRuleGroupResponse` + """ + http_info = self._create_interaction_rule_group_http_info(request) + return self._call_api(**http_info) + + def create_interaction_rule_group_invoker(self, request): + http_info = self._create_interaction_rule_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_interaction_rule_group_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups", + "request_type": request.__class__.__name__, + "response_type": "CreateInteractionRuleGroupResponse" + } + + 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 create_smart_live_room(self, request): """创建智能直播间 @@ -2420,6 +2638,73 @@ class MetaStudioClient(Client): return http_info + def delete_interaction_rule_group(self, request): + """删除智能直播间互动规则库 + + 该接口用于删除智能直播间互动规则库。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteInteractionRuleGroup + :type request: :class:`huaweicloudsdkmetastudio.v1.DeleteInteractionRuleGroupRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.DeleteInteractionRuleGroupResponse` + """ + http_info = self._delete_interaction_rule_group_http_info(request) + return self._call_api(**http_info) + + def delete_interaction_rule_group_invoker(self, request): + http_info = self._delete_interaction_rule_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_interaction_rule_group_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}", + "request_type": request.__class__.__name__, + "response_type": "DeleteInteractionRuleGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_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 delete_smart_live_room(self, request): """删除智能直播间 @@ -2487,6 +2772,81 @@ class MetaStudioClient(Client): return http_info + def list_interaction_rule_groups(self, request): + """查询智能直播间互动规则库列表 + + 该接口用于智能直播间互动规则库列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListInteractionRuleGroups + :type request: :class:`huaweicloudsdkmetastudio.v1.ListInteractionRuleGroupsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListInteractionRuleGroupsResponse` + """ + http_info = self._list_interaction_rule_groups_http_info(request) + return self._call_api(**http_info) + + def list_interaction_rule_groups_invoker(self, request): + http_info = self._list_interaction_rule_groups_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_interaction_rule_groups_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups", + "request_type": request.__class__.__name__, + "response_type": "ListInteractionRuleGroupsResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'offset' in local_var_params: + query_params.append(('offset', local_var_params['offset'])) + if 'limit' in local_var_params: + query_params.append(('limit', local_var_params['limit'])) + if 'create_since' in local_var_params: + query_params.append(('create_since', local_var_params['create_since'])) + if 'create_until' in local_var_params: + query_params.append(('create_until', local_var_params['create_until'])) + if 'group_name' in local_var_params: + query_params.append(('group_name', local_var_params['group_name'])) + + 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 list_smart_live_rooms(self, request): """查询智能直播间列表 @@ -2539,6 +2899,8 @@ class MetaStudioClient(Client): 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 'room_type' in local_var_params: + query_params.append(('room_type', local_var_params['room_type'])) header_params = {} if 'x_app_user_id' in local_var_params: @@ -2635,6 +2997,75 @@ class MetaStudioClient(Client): return http_info + def update_interaction_rule_group(self, request): + """更新智能直播间互动规则库 + + 该接口用于更新智能直播间互动规则库。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for UpdateInteractionRuleGroup + :type request: :class:`huaweicloudsdkmetastudio.v1.UpdateInteractionRuleGroupRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.UpdateInteractionRuleGroupResponse` + """ + http_info = self._update_interaction_rule_group_http_info(request) + return self._call_api(**http_info) + + def update_interaction_rule_group_invoker(self, request): + http_info = self._update_interaction_rule_group_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _update_interaction_rule_group_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/v1/{project_id}/smart-live-interaction-rule-groups/{group_id}", + "request_type": request.__class__.__name__, + "response_type": "UpdateInteractionRuleGroupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_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 '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 update_smart_live_room(self, request): """更新智能直播间信息 @@ -2783,6 +3214,71 @@ class MetaStudioClient(Client): return http_info + def create_facial_animations(self, request): + """创建语音驱动表情动画任务 + + 该接口用于创建驱动数字人表情的任务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateFacialAnimations + :type request: :class:`huaweicloudsdkmetastudio.v1.CreateFacialAnimationsRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateFacialAnimationsResponse` + """ + http_info = self._create_facial_animations_http_info(request) + return self._call_api(**http_info) + + def create_facial_animations_invoker(self, request): + http_info = self._create_facial_animations_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_facial_animations_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v1/{project_id}/ttsa/fas", + "request_type": request.__class__.__name__, + "response_type": "CreateFacialAnimationsResponse" + } + + 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 = ["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 create_ttsa(self, request): """创建语音驱动任务 @@ -2850,6 +3346,71 @@ class MetaStudioClient(Client): return http_info + def list_facial_animations_data(self, request): + """获取语音驱动表情数据 + + 该接口用于获取生成的数字人表情驱动数据 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListFacialAnimationsData + :type request: :class:`huaweicloudsdkmetastudio.v1.ListFacialAnimationsDataRequest` + :rtype: :class:`huaweicloudsdkmetastudio.v1.ListFacialAnimationsDataResponse` + """ + http_info = self._list_facial_animations_data_http_info(request) + return self._call_api(**http_info) + + def list_facial_animations_data_invoker(self, request): + http_info = self._list_facial_animations_data_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_facial_animations_data_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/v1/{project_id}/fas-jobs/{job_id}", + "request_type": request.__class__.__name__, + "response_type": "ListFacialAnimationsDataResponse" + } + + 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 list_ttsa_data(self, request): """获取语音驱动数据 @@ -3109,7 +3670,7 @@ class MetaStudioClient(Client): response_headers = ["X-Request-Id", ] header_params['Content-Type'] = http_utils.select_header_content_type( - ['application/json']) + ['application/json;charset=utf-8']) auth_settings = [] @@ -3501,6 +4062,12 @@ class MetaStudioClient(Client): query_params.append(('offset', local_var_params['offset'])) if 'limit' in local_var_params: query_params.append(('limit', local_var_params['limit'])) + if 'name' in local_var_params: + query_params.append(('name', local_var_params['name'])) + if 'script_catalog' in local_var_params: + query_params.append(('script_catalog', local_var_params['script_catalog'])) + if 'view_mode' in local_var_params: + query_params.append(('view_mode', local_var_params['view_mode'])) header_params = {} if 'x_app_user_id' in local_var_params: diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py index ca21964c3..7e2801a59 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/__init__.py @@ -13,10 +13,13 @@ from huaweicloudsdkmetastudio.v1.model.background_music_config import Background from huaweicloudsdkmetastudio.v1.model.business_card_image_config import BusinessCardImageConfig from huaweicloudsdkmetastudio.v1.model.business_card_image_url import BusinessCardImageUrl from huaweicloudsdkmetastudio.v1.model.business_card_text_config import BusinessCardTextConfig +from huaweicloudsdkmetastudio.v1.model.call_back_config import CallBackConfig from huaweicloudsdkmetastudio.v1.model.cancel2_d_digital_human_video_request import Cancel2DDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.cancel2_d_digital_human_video_response import Cancel2DDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_request import CancelPhotoDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.cancel_photo_digital_human_video_response import CancelPhotoDigitalHumanVideoResponse +from huaweicloudsdkmetastudio.v1.model.check_text_language_request import CheckTextLanguageRequest +from huaweicloudsdkmetastudio.v1.model.check_text_language_response import CheckTextLanguageResponse from huaweicloudsdkmetastudio.v1.model.component_info import ComponentInfo from huaweicloudsdkmetastudio.v1.model.confirm_file_upload_request import ConfirmFileUploadRequest from huaweicloudsdkmetastudio.v1.model.confirm_file_upload_request_body import ConfirmFileUploadRequestBody @@ -32,8 +35,13 @@ from huaweicloudsdkmetastudio.v1.model.create_digital_asset_response import Crea from huaweicloudsdkmetastudio.v1.model.create_digital_human_business_card_req import CreateDigitalHumanBusinessCardReq from huaweicloudsdkmetastudio.v1.model.create_digital_human_business_card_request import CreateDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.create_digital_human_business_card_response import CreateDigitalHumanBusinessCardResponse +from huaweicloudsdkmetastudio.v1.model.create_fas_req import CreateFASReq +from huaweicloudsdkmetastudio.v1.model.create_facial_animations_request import CreateFacialAnimationsRequest +from huaweicloudsdkmetastudio.v1.model.create_facial_animations_response import CreateFacialAnimationsResponse from huaweicloudsdkmetastudio.v1.model.create_file_request import CreateFileRequest from huaweicloudsdkmetastudio.v1.model.create_file_response import CreateFileResponse +from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_request import CreateInteractionRuleGroupRequest +from huaweicloudsdkmetastudio.v1.model.create_interaction_rule_group_response import CreateInteractionRuleGroupResponse from huaweicloudsdkmetastudio.v1.model.create_photo_detection_req import CreatePhotoDetectionReq from huaweicloudsdkmetastudio.v1.model.create_photo_detection_request import CreatePhotoDetectionRequest from huaweicloudsdkmetastudio.v1.model.create_photo_detection_response import CreatePhotoDetectionResponse @@ -63,6 +71,8 @@ from huaweicloudsdkmetastudio.v1.model.delete_digital_human_business_card_reques from huaweicloudsdkmetastudio.v1.model.delete_digital_human_business_card_response import DeleteDigitalHumanBusinessCardResponse from huaweicloudsdkmetastudio.v1.model.delete_file_request import DeleteFileRequest from huaweicloudsdkmetastudio.v1.model.delete_file_response import DeleteFileResponse +from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_request import DeleteInteractionRuleGroupRequest +from huaweicloudsdkmetastudio.v1.model.delete_interaction_rule_group_response import DeleteInteractionRuleGroupResponse from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_request import DeleteSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.delete_smart_live_room_response import DeleteSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.delete_video_script_request import DeleteVideoScriptRequest @@ -78,11 +88,9 @@ from huaweicloudsdkmetastudio.v1.model.execute_smart_live_command_request import from huaweicloudsdkmetastudio.v1.model.execute_smart_live_command_response import ExecuteSmartLiveCommandResponse from huaweicloudsdkmetastudio.v1.model.execute_video_motion_capture_command_request import ExecuteVideoMotionCaptureCommandRequest from huaweicloudsdkmetastudio.v1.model.execute_video_motion_capture_command_response import ExecuteVideoMotionCaptureCommandResponse -from huaweicloudsdkmetastudio.v1.model.external_voice_asset_meta import ExternalVoiceAssetMeta from huaweicloudsdkmetastudio.v1.model.files_create_req import FilesCreateReq from huaweicloudsdkmetastudio.v1.model.hit_condition import HitCondition from huaweicloudsdkmetastudio.v1.model.hit_condition_tag import HitConditionTag -from huaweicloudsdkmetastudio.v1.model.huawei_ei_voice_asset_meta import HuaweiEIVoiceAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model2_d_asset_meta import HumanModel2DAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_asset_meta import HumanModelAssetMeta from huaweicloudsdkmetastudio.v1.model.human_model_meta_properties import HumanModelMetaProperties @@ -90,7 +98,11 @@ from huaweicloudsdkmetastudio.v1.model.human_position2_d import HumanPosition2D from huaweicloudsdkmetastudio.v1.model.human_size2_d import HumanSize2D from huaweicloudsdkmetastudio.v1.model.image_layer_config import ImageLayerConfig from huaweicloudsdkmetastudio.v1.model.input_info import InputInfo +from huaweicloudsdkmetastudio.v1.model.interaction_rule_detail_info import InteractionRuleDetailInfo +from huaweicloudsdkmetastudio.v1.model.interaction_rule_group import InteractionRuleGroup +from huaweicloudsdkmetastudio.v1.model.interaction_rule_group_detail import InteractionRuleGroupDetail from huaweicloudsdkmetastudio.v1.model.interaction_rule_info import InteractionRuleInfo +from huaweicloudsdkmetastudio.v1.model.language_check_info_req import LanguageCheckInfoReq from huaweicloudsdkmetastudio.v1.model.layer_config import LayerConfig from huaweicloudsdkmetastudio.v1.model.layer_position_config import LayerPositionConfig from huaweicloudsdkmetastudio.v1.model.layer_size_config import LayerSizeConfig @@ -101,6 +113,12 @@ from huaweicloudsdkmetastudio.v1.model.list_assets_request import ListAssetsRequ from huaweicloudsdkmetastudio.v1.model.list_assets_response import ListAssetsResponse from huaweicloudsdkmetastudio.v1.model.list_digital_human_business_card_request import ListDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.list_digital_human_business_card_response import ListDigitalHumanBusinessCardResponse +from huaweicloudsdkmetastudio.v1.model.list_digital_human_video_request import ListDigitalHumanVideoRequest +from huaweicloudsdkmetastudio.v1.model.list_digital_human_video_response import ListDigitalHumanVideoResponse +from huaweicloudsdkmetastudio.v1.model.list_facial_animations_data_request import ListFacialAnimationsDataRequest +from huaweicloudsdkmetastudio.v1.model.list_facial_animations_data_response import ListFacialAnimationsDataResponse +from huaweicloudsdkmetastudio.v1.model.list_interaction_rule_groups_request import ListInteractionRuleGroupsRequest +from huaweicloudsdkmetastudio.v1.model.list_interaction_rule_groups_response import ListInteractionRuleGroupsResponse from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_request import ListPictureModelingJobsRequest from huaweicloudsdkmetastudio.v1.model.list_picture_modeling_jobs_response import ListPictureModelingJobsResponse from huaweicloudsdkmetastudio.v1.model.list_smart_live_request import ListSmartLiveRequest @@ -119,10 +137,12 @@ from huaweicloudsdkmetastudio.v1.model.list_video_scripts_request import ListVid from huaweicloudsdkmetastudio.v1.model.list_video_scripts_response import ListVideoScriptsResponse from huaweicloudsdkmetastudio.v1.model.live_audio_config import LiveAudioConfig from huaweicloudsdkmetastudio.v1.model.live_event import LiveEvent +from huaweicloudsdkmetastudio.v1.model.live_event_call_back_config import LiveEventCallBackConfig from huaweicloudsdkmetastudio.v1.model.live_event_report_request import LiveEventReportRequest from huaweicloudsdkmetastudio.v1.model.live_event_report_response import LiveEventReportResponse from huaweicloudsdkmetastudio.v1.model.live_shoot_script_item import LiveShootScriptItem from huaweicloudsdkmetastudio.v1.model.live_video_script_info import LiveVideoScriptInfo +from huaweicloudsdkmetastudio.v1.model.live_warning_item import LiveWarningItem from huaweicloudsdkmetastudio.v1.model.material_asset_meta import MaterialAssetMeta from huaweicloudsdkmetastudio.v1.model.material_component_info import MaterialComponentInfo from huaweicloudsdkmetastudio.v1.model.model_info import ModelInfo @@ -138,15 +158,21 @@ from huaweicloudsdkmetastudio.v1.model.picture_modeling_info import PictureModel from huaweicloudsdkmetastudio.v1.model.play_policy import PlayPolicy from huaweicloudsdkmetastudio.v1.model.rtc_room_info_list import RTCRoomInfoList from huaweicloudsdkmetastudio.v1.model.rtc_user_info import RTCUserInfo +from huaweicloudsdkmetastudio.v1.model.reply_audio_info import ReplyAudioInfo from huaweicloudsdkmetastudio.v1.model.report_live_event_req import ReportLiveEventReq from huaweicloudsdkmetastudio.v1.model.restore_asset_request import RestoreAssetRequest from huaweicloudsdkmetastudio.v1.model.restore_asset_response import RestoreAssetResponse +from huaweicloudsdkmetastudio.v1.model.review_config import ReviewConfig from huaweicloudsdkmetastudio.v1.model.scene_asset_meta import SceneAssetMeta from huaweicloudsdkmetastudio.v1.model.scene_component_info import SceneComponentInfo +from huaweicloudsdkmetastudio.v1.model.shared_config import SharedConfig from huaweicloudsdkmetastudio.v1.model.shoot_script import ShootScript from huaweicloudsdkmetastudio.v1.model.shoot_script_audio_file_item import ShootScriptAudioFileItem from huaweicloudsdkmetastudio.v1.model.shoot_script_audio_files import ShootScriptAudioFiles +from huaweicloudsdkmetastudio.v1.model.shoot_script_detail import ShootScriptDetail from huaweicloudsdkmetastudio.v1.model.shoot_script_item import ShootScriptItem +from huaweicloudsdkmetastudio.v1.model.shoot_script_item_base_info import ShootScriptItemBaseInfo +from huaweicloudsdkmetastudio.v1.model.shoot_script_show_item import ShootScriptShowItem from huaweicloudsdkmetastudio.v1.model.show2_d_digital_human_video_request import Show2DDigitalHumanVideoRequest from huaweicloudsdkmetastudio.v1.model.show2_d_digital_human_video_response import Show2DDigitalHumanVideoResponse from huaweicloudsdkmetastudio.v1.model.show_asset_request import ShowAssetRequest @@ -167,8 +193,11 @@ from huaweicloudsdkmetastudio.v1.model.show_video_motion_capture_job_request imp from huaweicloudsdkmetastudio.v1.model.show_video_motion_capture_job_response import ShowVideoMotionCaptureJobResponse from huaweicloudsdkmetastudio.v1.model.show_video_script_request import ShowVideoScriptRequest from huaweicloudsdkmetastudio.v1.model.show_video_script_response import ShowVideoScriptResponse +from huaweicloudsdkmetastudio.v1.model.smart_image_layer_config import SmartImageLayerConfig +from huaweicloudsdkmetastudio.v1.model.smart_layer_config import SmartLayerConfig from huaweicloudsdkmetastudio.v1.model.smart_live_job import SmartLiveJob from huaweicloudsdkmetastudio.v1.model.smart_live_room_base_info import SmartLiveRoomBaseInfo +from huaweicloudsdkmetastudio.v1.model.smart_video_layer_config import SmartVideoLayerConfig from huaweicloudsdkmetastudio.v1.model.start_smart_live_req import StartSmartLiveReq from huaweicloudsdkmetastudio.v1.model.start_smart_live_request import StartSmartLiveRequest from huaweicloudsdkmetastudio.v1.model.start_smart_live_response import StartSmartLiveResponse @@ -179,6 +208,7 @@ from huaweicloudsdkmetastudio.v1.model.stop_video_motion_capture_job_response im from huaweicloudsdkmetastudio.v1.model.style_asset_item import StyleAssetItem from huaweicloudsdkmetastudio.v1.model.style_extra_meta import StyleExtraMeta from huaweicloudsdkmetastudio.v1.model.style_info import StyleInfo +from huaweicloudsdkmetastudio.v1.model.subtitle_config import SubtitleConfig from huaweicloudsdkmetastudio.v1.model.system_property import SystemProperty from huaweicloudsdkmetastudio.v1.model.ttsa_job import TTSAJob from huaweicloudsdkmetastudio.v1.model.text_config import TextConfig @@ -189,6 +219,8 @@ from huaweicloudsdkmetastudio.v1.model.update_digital_asset_request_body import from huaweicloudsdkmetastudio.v1.model.update_digital_asset_response import UpdateDigitalAssetResponse from huaweicloudsdkmetastudio.v1.model.update_digital_human_business_card_request import UpdateDigitalHumanBusinessCardRequest from huaweicloudsdkmetastudio.v1.model.update_digital_human_business_card_response import UpdateDigitalHumanBusinessCardResponse +from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_request import UpdateInteractionRuleGroupRequest +from huaweicloudsdkmetastudio.v1.model.update_interaction_rule_group_response import UpdateInteractionRuleGroupResponse from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_request import UpdateSmartLiveRoomRequest from huaweicloudsdkmetastudio.v1.model.update_smart_live_room_response import UpdateSmartLiveRoomResponse from huaweicloudsdkmetastudio.v1.model.update_video_script_request import UpdateVideoScriptRequest @@ -199,6 +231,8 @@ from huaweicloudsdkmetastudio.v1.model.video_layer_config import VideoLayerConfi from huaweicloudsdkmetastudio.v1.model.video_motion_capture_info import VideoMotionCaptureInfo from huaweicloudsdkmetastudio.v1.model.video_motion_capture_job_req import VideoMotionCaptureJobReq from huaweicloudsdkmetastudio.v1.model.video_script_base_info import VideoScriptBaseInfo +from huaweicloudsdkmetastudio.v1.model.video_scripts_create_info import VideoScriptsCreateInfo +from huaweicloudsdkmetastudio.v1.model.video_scripts_show_info import VideoScriptsShowInfo +from huaweicloudsdkmetastudio.v1.model.video_scripts_simple_info import VideoScriptsSimpleInfo from huaweicloudsdkmetastudio.v1.model.voice_config import VoiceConfig from huaweicloudsdkmetastudio.v1.model.voice_model_asset_meta import VoiceModelAssetMeta -from huaweicloudsdkmetastudio.v1.model.ximalaya_voice_asset_meta import XimalayaVoiceAssetMeta diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/asset_file_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/asset_file_info.py index 5de84c511..91394794a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/asset_file_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/asset_file_info.py @@ -23,7 +23,9 @@ class AssetFileInfo: 'file_size': 'int', 'file_type': 'str', 'asset_file_category': 'str', - 'download_url': 'str' + 'download_url': 'str', + 'state': 'str', + 'reason': 'str' } attribute_map = { @@ -33,10 +35,12 @@ class AssetFileInfo: 'file_size': 'file_size', 'file_type': 'file_type', 'asset_file_category': 'asset_file_category', - 'download_url': 'download_url' + 'download_url': 'download_url', + 'state': 'state', + 'reason': 'reason' } - def __init__(self, file_id=None, file_name=None, file_md5=None, file_size=None, file_type=None, asset_file_category=None, download_url=None): + def __init__(self, file_id=None, file_name=None, file_md5=None, file_size=None, file_type=None, asset_file_category=None, download_url=None, state=None, reason=None): """AssetFileInfo The model defined in huaweicloud sdk @@ -55,6 +59,10 @@ class AssetFileInfo: :type asset_file_category: str :param download_url: 文件下载URL,有效期为24小时。 :type download_url: str + :param state: 文件状态枚举: * CREATING:文件上传中 * CREATED:文件已上传(自动审核通过) * FAILED:文件上传失败 * CANCELLED:文件上传已取消 * DELETING:文件删除中 * DELETED:文件已删除 * UPLOADED:文件已上传(尚未审核) * REVIEW:人工审核(文件已上传) + :type state: str + :param reason: 审核失败原因 + :type reason: str """ @@ -66,6 +74,8 @@ class AssetFileInfo: self._file_type = None self._asset_file_category = None self._download_url = None + self._state = None + self._reason = None self.discriminator = None if file_id is not None: @@ -82,6 +92,10 @@ class AssetFileInfo: self.asset_file_category = asset_file_category if download_url is not None: self.download_url = download_url + if state is not None: + self.state = state + if reason is not None: + self.reason = reason @property def file_id(self): @@ -237,6 +251,50 @@ class AssetFileInfo: """ self._download_url = download_url + @property + def state(self): + """Gets the state of this AssetFileInfo. + + 文件状态枚举: * CREATING:文件上传中 * CREATED:文件已上传(自动审核通过) * FAILED:文件上传失败 * CANCELLED:文件上传已取消 * DELETING:文件删除中 * DELETED:文件已删除 * UPLOADED:文件已上传(尚未审核) * REVIEW:人工审核(文件已上传) + + :return: The state of this AssetFileInfo. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this AssetFileInfo. + + 文件状态枚举: * CREATING:文件上传中 * CREATED:文件已上传(自动审核通过) * FAILED:文件上传失败 * CANCELLED:文件上传已取消 * DELETING:文件删除中 * DELETED:文件已删除 * UPLOADED:文件已上传(尚未审核) * REVIEW:人工审核(文件已上传) + + :param state: The state of this AssetFileInfo. + :type state: str + """ + self._state = state + + @property + def reason(self): + """Gets the reason of this AssetFileInfo. + + 审核失败原因 + + :return: The reason of this AssetFileInfo. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this AssetFileInfo. + + 审核失败原因 + + :param reason: The reason of this AssetFileInfo. + :type reason: str + """ + self._reason = reason + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/background_config_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/background_config_info.py index d0bd1bc33..da0e0c343 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/background_config_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/background_config_info.py @@ -43,15 +43,15 @@ class BackgroundConfigInfo: :param background_type: 背景类型。 - IMAGE:图片,用于3D数字人演示素材讲解模式的图片或分身数字背景图片 - IMAGE_2D:图片,用于3D数字人主播播报模式的2D场景背景图片 - VIDEO:视频 - AUDIO:音频 > * 分身数字人视频制作仅支持IMAGE :type background_type: str - :param background_title: 背景标题。 + :param background_title: 背景标题。 > * 分身数字人视频制作此参数不生效。 :type background_title: str :param human_position_2d: :type human_position_2d: :class:`huaweicloudsdkmetastudio.v1.HumanPosition2D` :param human_size_2d: :type human_size_2d: :class:`huaweicloudsdkmetastudio.v1.HumanSize2D` - :param background_cover_url: 视频文件封面图片的下载URL。 演示素材为视频时有效。 + :param background_cover_url: 视频文件封面图片的下载URL。 演示素材为视频时有效。 > * 分身数字人视频制作此参数不生效。 :type background_cover_url: str - :param background_config: 背景文件的URL。 + :param background_config: 背景文件的URL。 > * 通过资产库查询获取,不支持外部URL。 :type background_config: str :param background_asset_id: 背景资产ID。 > * 背景是背景图片时,填图片资产ID。 :type background_asset_id: str @@ -107,7 +107,7 @@ class BackgroundConfigInfo: def background_title(self): """Gets the background_title of this BackgroundConfigInfo. - 背景标题。 + 背景标题。 > * 分身数字人视频制作此参数不生效。 :return: The background_title of this BackgroundConfigInfo. :rtype: str @@ -118,7 +118,7 @@ class BackgroundConfigInfo: def background_title(self, background_title): """Sets the background_title of this BackgroundConfigInfo. - 背景标题。 + 背景标题。 > * 分身数字人视频制作此参数不生效。 :param background_title: The background_title of this BackgroundConfigInfo. :type background_title: str @@ -165,7 +165,7 @@ class BackgroundConfigInfo: def background_cover_url(self): """Gets the background_cover_url of this BackgroundConfigInfo. - 视频文件封面图片的下载URL。 演示素材为视频时有效。 + 视频文件封面图片的下载URL。 演示素材为视频时有效。 > * 分身数字人视频制作此参数不生效。 :return: The background_cover_url of this BackgroundConfigInfo. :rtype: str @@ -176,7 +176,7 @@ class BackgroundConfigInfo: def background_cover_url(self, background_cover_url): """Sets the background_cover_url of this BackgroundConfigInfo. - 视频文件封面图片的下载URL。 演示素材为视频时有效。 + 视频文件封面图片的下载URL。 演示素材为视频时有效。 > * 分身数字人视频制作此参数不生效。 :param background_cover_url: The background_cover_url of this BackgroundConfigInfo. :type background_cover_url: str @@ -187,7 +187,7 @@ class BackgroundConfigInfo: def background_config(self): """Gets the background_config of this BackgroundConfigInfo. - 背景文件的URL。 + 背景文件的URL。 > * 通过资产库查询获取,不支持外部URL。 :return: The background_config of this BackgroundConfigInfo. :rtype: str @@ -198,7 +198,7 @@ class BackgroundConfigInfo: def background_config(self, background_config): """Sets the background_config of this BackgroundConfigInfo. - 背景文件的URL。 + 背景文件的URL。 > * 通过资产库查询获取,不支持外部URL。 :param background_config: The background_config of this BackgroundConfigInfo. :type background_config: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/business_card_text_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/business_card_text_config.py index 8b1c5eef8..85fad5f6a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/business_card_text_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/business_card_text_config.py @@ -63,9 +63,9 @@ class BusinessCardTextConfig: :type address: str :param other1: 其他信息1。可填写一些公司广告语等 :type other1: str - :param other2: 其他信息1。可填写一些公司广告语等 + :param other2: 其他信息2。可填写一些公司广告语等 :type other2: str - :param other3: 其他信息1。可填写一些公司广告语等 + :param other3: 其他信息3。可填写一些公司广告语等 :type other3: str """ @@ -284,7 +284,7 @@ class BusinessCardTextConfig: def other2(self): """Gets the other2 of this BusinessCardTextConfig. - 其他信息1。可填写一些公司广告语等 + 其他信息2。可填写一些公司广告语等 :return: The other2 of this BusinessCardTextConfig. :rtype: str @@ -295,7 +295,7 @@ class BusinessCardTextConfig: def other2(self, other2): """Sets the other2 of this BusinessCardTextConfig. - 其他信息1。可填写一些公司广告语等 + 其他信息2。可填写一些公司广告语等 :param other2: The other2 of this BusinessCardTextConfig. :type other2: str @@ -306,7 +306,7 @@ class BusinessCardTextConfig: def other3(self): """Gets the other3 of this BusinessCardTextConfig. - 其他信息1。可填写一些公司广告语等 + 其他信息3。可填写一些公司广告语等 :return: The other3 of this BusinessCardTextConfig. :rtype: str @@ -317,7 +317,7 @@ class BusinessCardTextConfig: def other3(self, other3): """Sets the other3 of this BusinessCardTextConfig. - 其他信息1。可填写一些公司广告语等 + 其他信息3。可填写一些公司广告语等 :param other3: The other3 of this BusinessCardTextConfig. :type other3: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/call_back_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/call_back_config.py new file mode 100644 index 000000000..e9791bb9b --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/call_back_config.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CallBackConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'callback_url': 'str', + 'auth_type': 'str', + 'key': 'str' + } + + attribute_map = { + 'callback_url': 'callback_url', + 'auth_type': 'auth_type', + 'key': 'key' + } + + def __init__(self, callback_url=None, auth_type=None, key=None): + """CallBackConfig + + The model defined in huaweicloud sdk + + :param callback_url: 回调URL。 回调请求body为json格式,带参数如下: result: SUCCEED或FAILED asset_id: 资产ID job_id: 任务 + :type callback_url: str + :param auth_type: 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:secret,time_stamp。取值方式:secret=hmac_sha256(key, URI(callback_url)+ time_stamp)&time_stamp=hex(timestamp) + :type auth_type: str + :param key: 密钥Key + :type key: str + """ + + + + self._callback_url = None + self._auth_type = None + self._key = None + self.discriminator = None + + self.callback_url = callback_url + if auth_type is not None: + self.auth_type = auth_type + if key is not None: + self.key = key + + @property + def callback_url(self): + """Gets the callback_url of this CallBackConfig. + + 回调URL。 回调请求body为json格式,带参数如下: result: SUCCEED或FAILED asset_id: 资产ID job_id: 任务 + + :return: The callback_url of this CallBackConfig. + :rtype: str + """ + return self._callback_url + + @callback_url.setter + def callback_url(self, callback_url): + """Sets the callback_url of this CallBackConfig. + + 回调URL。 回调请求body为json格式,带参数如下: result: SUCCEED或FAILED asset_id: 资产ID job_id: 任务 + + :param callback_url: The callback_url of this CallBackConfig. + :type callback_url: str + """ + self._callback_url = callback_url + + @property + def auth_type(self): + """Gets the auth_type of this CallBackConfig. + + 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:secret,time_stamp。取值方式:secret=hmac_sha256(key, URI(callback_url)+ time_stamp)&time_stamp=hex(timestamp) + + :return: The auth_type of this CallBackConfig. + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this CallBackConfig. + + 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:secret,time_stamp。取值方式:secret=hmac_sha256(key, URI(callback_url)+ time_stamp)&time_stamp=hex(timestamp) + + :param auth_type: The auth_type of this CallBackConfig. + :type auth_type: str + """ + self._auth_type = auth_type + + @property + def key(self): + """Gets the key of this CallBackConfig. + + 密钥Key + + :return: The key of this CallBackConfig. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CallBackConfig. + + 密钥Key + + :param key: The key of this CallBackConfig. + :type key: str + """ + self._key = key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CallBackConfig): + return False + + return self.__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/cancel2_d_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel2_d_digital_human_video_request.py index 91fb13e19..76ea62126 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel2_d_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel2_d_digital_human_video_request.py @@ -33,7 +33,7 @@ class Cancel2DDigitalHumanVideoRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class Cancel2DDigitalHumanVideoRequest: def x_app_user_id(self): """Gets the x_app_user_id of this Cancel2DDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this Cancel2DDigitalHumanVideoRequest. :rtype: str @@ -84,7 +84,7 @@ class Cancel2DDigitalHumanVideoRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Cancel2DDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Cancel2DDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py index b7cbc4c46..1eee2bccc 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/cancel_photo_digital_human_video_request.py @@ -33,7 +33,7 @@ class CancelPhotoDigitalHumanVideoRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class CancelPhotoDigitalHumanVideoRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. :rtype: str @@ -84,7 +84,7 @@ class CancelPhotoDigitalHumanVideoRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CancelPhotoDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/check_text_language_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/check_text_language_request.py new file mode 100644 index 000000000..6e40adbe2 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/check_text_language_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CheckTextLanguageRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'LanguageCheckInfoReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CheckTextLanguageRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CheckTextLanguageRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.LanguageCheckInfoReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CheckTextLanguageRequest. + + :return: The body of this CheckTextLanguageRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LanguageCheckInfoReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CheckTextLanguageRequest. + + :param body: The body of this CheckTextLanguageRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.LanguageCheckInfoReq` + """ + 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, CheckTextLanguageRequest): + return False + + return self.__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/check_text_language_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/check_text_language_response.py new file mode 100644 index 000000000..40d0aa49d --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/check_text_language_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 CheckTextLanguageResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'result': 'str' + } + + attribute_map = { + 'result': 'result' + } + + def __init__(self, result=None): + """CheckTextLanguageResponse + + The model defined in huaweicloud sdk + + :param result: 语言检测状态 + :type result: str + """ + + super(CheckTextLanguageResponse, 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 CheckTextLanguageResponse. + + 语言检测状态 + + :return: The result of this CheckTextLanguageResponse. + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this CheckTextLanguageResponse. + + 语言检测状态 + + :param result: The result of this CheckTextLanguageResponse. + :type result: str + """ + 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, CheckTextLanguageResponse): + return False + + return self.__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/confirm_file_upload_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/confirm_file_upload_request.py index de47c74ed..bc59d5a2d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/confirm_file_upload_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/confirm_file_upload_request.py @@ -33,7 +33,7 @@ class ConfirmFileUploadRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param file_id: 文件ID。 :type file_id: str @@ -58,7 +58,7 @@ class ConfirmFileUploadRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ConfirmFileUploadRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ConfirmFileUploadRequest. :rtype: str @@ -69,7 +69,7 @@ class ConfirmFileUploadRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ConfirmFileUploadRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ConfirmFileUploadRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py index ad76de4af..7f88b94f8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/control_smart_live_req.py @@ -18,40 +18,47 @@ class ControlSmartLiveReq: openapi_types = { 'command': 'str', - 'params': 'object' + 'params': 'object', + 'review_config': 'ReviewConfig' } attribute_map = { 'command': 'command', - 'params': 'params' + 'params': 'params', + 'review_config': 'review_config' } - def __init__(self, command=None, params=None): + def __init__(self, command=None, params=None, review_config=None): """ControlSmartLiveReq The model defined in huaweicloud sdk - :param command: 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_ADUIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo + :param command: 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:PlayTextInfo - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 - SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo :type command: str :param params: 命令参数。 :type params: object + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` """ self._command = None self._params = None + self._review_config = None self.discriminator = None self.command = command if params is not None: self.params = params + if review_config is not None: + self.review_config = review_config @property def command(self): """Gets the command of this ControlSmartLiveReq. - 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_ADUIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo + 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:PlayTextInfo - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 - SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo :return: The command of this ControlSmartLiveReq. :rtype: str @@ -62,7 +69,7 @@ class ControlSmartLiveReq: def command(self, command): """Sets the command of this ControlSmartLiveReq. - 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_ADUIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo + 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:PlayTextInfo - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_AUDIO:插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 - SHOW_LAYER:显示导播素材,用于直播导播。params结构定义:LiveGuideRuleInfo :param command: The command of this ControlSmartLiveReq. :type command: str @@ -91,6 +98,24 @@ class ControlSmartLiveReq: """ self._params = params + @property + def review_config(self): + """Gets the review_config of this ControlSmartLiveReq. + + :return: The review_config of this ControlSmartLiveReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this ControlSmartLiveReq. + + :param review_config: The review_config of this ControlSmartLiveReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_req.py index ad73b8092..b586bd88c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_req.py @@ -25,7 +25,9 @@ class Create2DDigitalHumanVideoReq: 'video_config': 'VideoConfig', 'shoot_scripts': 'list[ShootScriptItem]', 'output_asset_config': 'OutputAssetConfig', - 'background_music_config': 'BackgroundMusicConfig' + 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig', + 'callback_config': 'CallBackConfig' } attribute_map = { @@ -37,21 +39,23 @@ class Create2DDigitalHumanVideoReq: 'video_config': 'video_config', 'shoot_scripts': 'shoot_scripts', 'output_asset_config': 'output_asset_config', - 'background_music_config': 'background_music_config' + 'background_music_config': 'background_music_config', + 'review_config': 'review_config', + 'callback_config': 'callback_config' } - def __init__(self, script_id=None, video_making_type=None, model_asset_id=None, human_image=None, voice_config=None, video_config=None, shoot_scripts=None, output_asset_config=None, background_music_config=None): + def __init__(self, script_id=None, video_making_type=None, model_asset_id=None, human_image=None, voice_config=None, video_config=None, shoot_scripts=None, output_asset_config=None, background_music_config=None, review_config=None, callback_config=None): """Create2DDigitalHumanVideoReq The model defined in huaweicloud sdk :param script_id: 剧本ID。 > * 如果填写了script_id,model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts可以不填,以脚本中的配置为准。 > * 如果填写了script_id,并且同时也填写了model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts则以本接口中的配置为准。 :type script_id: str - :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 + :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :type video_making_type: str :param model_asset_id: 分身数字人模型资产ID。 :type model_asset_id: str - :param human_image: 人物照片,需要Base64编码。照片分辨率不超过1080P。 + :param human_image: 人物照片,需要Base64编码。照片分辨率不超过1080P。 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :type human_image: str :param voice_config: :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` @@ -63,6 +67,10 @@ class Create2DDigitalHumanVideoReq: :type output_asset_config: :class:`huaweicloudsdkmetastudio.v1.OutputAssetConfig` :param background_music_config: :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param callback_config: + :type callback_config: :class:`huaweicloudsdkmetastudio.v1.CallBackConfig` """ @@ -76,6 +84,8 @@ class Create2DDigitalHumanVideoReq: self._shoot_scripts = None self._output_asset_config = None self._background_music_config = None + self._review_config = None + self._callback_config = None self.discriminator = None if script_id is not None: @@ -96,6 +106,10 @@ class Create2DDigitalHumanVideoReq: self.output_asset_config = output_asset_config if background_music_config is not None: self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config + if callback_config is not None: + self.callback_config = callback_config @property def script_id(self): @@ -123,7 +137,7 @@ class Create2DDigitalHumanVideoReq: def video_making_type(self): """Gets the video_making_type of this Create2DDigitalHumanVideoReq. - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 + 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :return: The video_making_type of this Create2DDigitalHumanVideoReq. :rtype: str @@ -134,7 +148,7 @@ class Create2DDigitalHumanVideoReq: def video_making_type(self, video_making_type): """Sets the video_making_type of this Create2DDigitalHumanVideoReq. - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 + 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :param video_making_type: The video_making_type of this Create2DDigitalHumanVideoReq. :type video_making_type: str @@ -167,7 +181,7 @@ class Create2DDigitalHumanVideoReq: def human_image(self): """Gets the human_image of this Create2DDigitalHumanVideoReq. - 人物照片,需要Base64编码。照片分辨率不超过1080P。 + 人物照片,需要Base64编码。照片分辨率不超过1080P。 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :return: The human_image of this Create2DDigitalHumanVideoReq. :rtype: str @@ -178,7 +192,7 @@ class Create2DDigitalHumanVideoReq: def human_image(self, human_image): """Sets the human_image of this Create2DDigitalHumanVideoReq. - 人物照片,需要Base64编码。照片分辨率不超过1080P。 + 人物照片,需要Base64编码。照片分辨率不超过1080P。 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :param human_image: The human_image of this Create2DDigitalHumanVideoReq. :type human_image: str @@ -279,6 +293,42 @@ class Create2DDigitalHumanVideoReq: """ self._background_music_config = background_music_config + @property + def review_config(self): + """Gets the review_config of this Create2DDigitalHumanVideoReq. + + :return: The review_config of this Create2DDigitalHumanVideoReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this Create2DDigitalHumanVideoReq. + + :param review_config: The review_config of this Create2DDigitalHumanVideoReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def callback_config(self): + """Gets the callback_config of this Create2DDigitalHumanVideoReq. + + :return: The callback_config of this Create2DDigitalHumanVideoReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CallBackConfig` + """ + return self._callback_config + + @callback_config.setter + def callback_config(self, callback_config): + """Sets the callback_config of this Create2DDigitalHumanVideoReq. + + :param callback_config: The callback_config of this Create2DDigitalHumanVideoReq. + :type callback_config: :class:`huaweicloudsdkmetastudio.v1.CallBackConfig` + """ + self._callback_config = callback_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py index 1327cae64..6e4e3e6be 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create2_d_digital_human_video_request.py @@ -31,7 +31,7 @@ class Create2DDigitalHumanVideoRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the Create2DDigitalHumanVideoRequest :type body: :class:`huaweicloudsdkmetastudio.v1.Create2DDigitalHumanVideoReq` @@ -52,7 +52,7 @@ class Create2DDigitalHumanVideoRequest: def x_app_user_id(self): """Gets the x_app_user_id of this Create2DDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this Create2DDigitalHumanVideoRequest. :rtype: str @@ -63,7 +63,7 @@ class Create2DDigitalHumanVideoRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Create2DDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Create2DDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py index f7591c4d6..1be48c4d1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request.py @@ -31,7 +31,7 @@ class CreateDigitalAssetRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateDigitalAssetRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDigitalAssetRequestBody` @@ -52,7 +52,7 @@ class CreateDigitalAssetRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreateDigitalAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreateDigitalAssetRequest. :rtype: str @@ -63,7 +63,7 @@ class CreateDigitalAssetRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateDigitalAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateDigitalAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py index cfb6c8a6d..aeded210c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_asset_request_body.py @@ -21,6 +21,8 @@ class CreateDigitalAssetRequestBody: 'asset_description': 'str', 'asset_type': 'str', 'asset_owner': 'str', + 'is_need_generate_cover': 'bool', + 'review_config': 'ReviewConfig', 'tags': 'list[str]', 'asset_extra_meta': 'AssetExtraMeta', 'system_properties': 'list[SystemProperty]' @@ -31,12 +33,14 @@ class CreateDigitalAssetRequestBody: 'asset_description': 'asset_description', 'asset_type': 'asset_type', 'asset_owner': 'asset_owner', + 'is_need_generate_cover': 'is_need_generate_cover', + 'review_config': 'review_config', 'tags': 'tags', 'asset_extra_meta': 'asset_extra_meta', 'system_properties': 'system_properties' } - def __init__(self, asset_name=None, asset_description=None, asset_type=None, asset_owner=None, tags=None, asset_extra_meta=None, system_properties=None): + def __init__(self, asset_name=None, asset_description=None, asset_type=None, asset_owner=None, is_need_generate_cover=None, review_config=None, tags=None, asset_extra_meta=None, system_properties=None): """CreateDigitalAssetRequestBody The model defined in huaweicloud sdk @@ -45,10 +49,14 @@ class CreateDigitalAssetRequestBody: :type asset_name: str :param asset_description: 资产描述。 :type asset_description: str - :param asset_type: 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + :param asset_type: 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :type asset_type: str - :param asset_owner: 项目ID。 + :param asset_owner: 项目ID。 > * 仅管理员帐号可设置此参数。 :type asset_owner: str + :param is_need_generate_cover: 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO。 + :type is_need_generate_cover: bool + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` :param tags: 标签列表。 :type tags: list[str] :param asset_extra_meta: @@ -63,6 +71,8 @@ class CreateDigitalAssetRequestBody: self._asset_description = None self._asset_type = None self._asset_owner = None + self._is_need_generate_cover = None + self._review_config = None self._tags = None self._asset_extra_meta = None self._system_properties = None @@ -74,6 +84,10 @@ class CreateDigitalAssetRequestBody: self.asset_type = asset_type if asset_owner is not None: self.asset_owner = asset_owner + if is_need_generate_cover is not None: + self.is_need_generate_cover = is_need_generate_cover + if review_config is not None: + self.review_config = review_config if tags is not None: self.tags = tags if asset_extra_meta is not None: @@ -129,7 +143,7 @@ class CreateDigitalAssetRequestBody: def asset_type(self): """Gets the asset_type of this CreateDigitalAssetRequestBody. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :return: The asset_type of this CreateDigitalAssetRequestBody. :rtype: str @@ -140,7 +154,7 @@ class CreateDigitalAssetRequestBody: def asset_type(self, asset_type): """Sets the asset_type of this CreateDigitalAssetRequestBody. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可上传) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D: 2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :param asset_type: The asset_type of this CreateDigitalAssetRequestBody. :type asset_type: str @@ -151,7 +165,7 @@ class CreateDigitalAssetRequestBody: def asset_owner(self): """Gets the asset_owner of this CreateDigitalAssetRequestBody. - 项目ID。 + 项目ID。 > * 仅管理员帐号可设置此参数。 :return: The asset_owner of this CreateDigitalAssetRequestBody. :rtype: str @@ -162,13 +176,53 @@ class CreateDigitalAssetRequestBody: def asset_owner(self, asset_owner): """Sets the asset_owner of this CreateDigitalAssetRequestBody. - 项目ID。 + 项目ID。 > * 仅管理员帐号可设置此参数。 :param asset_owner: The asset_owner of this CreateDigitalAssetRequestBody. :type asset_owner: str """ self._asset_owner = asset_owner + @property + def is_need_generate_cover(self): + """Gets the is_need_generate_cover of this CreateDigitalAssetRequestBody. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO。 + + :return: The is_need_generate_cover of this CreateDigitalAssetRequestBody. + :rtype: bool + """ + return self._is_need_generate_cover + + @is_need_generate_cover.setter + def is_need_generate_cover(self, is_need_generate_cover): + """Sets the is_need_generate_cover of this CreateDigitalAssetRequestBody. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO。 + + :param is_need_generate_cover: The is_need_generate_cover of this CreateDigitalAssetRequestBody. + :type is_need_generate_cover: bool + """ + self._is_need_generate_cover = is_need_generate_cover + + @property + def review_config(self): + """Gets the review_config of this CreateDigitalAssetRequestBody. + + :return: The review_config of this CreateDigitalAssetRequestBody. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this CreateDigitalAssetRequestBody. + + :param review_config: The review_config of this CreateDigitalAssetRequestBody. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + @property def tags(self): """Gets the tags of this CreateDigitalAssetRequestBody. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_req.py index 8e87e4398..c7bd46e76 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_req.py @@ -21,10 +21,13 @@ class CreateDigitalHumanBusinessCardReq: 'card_templet_asset_id': 'str', 'card_text_config': 'BusinessCardTextConfig', 'card_image_config': 'BusinessCardImageConfig', + 'introduction_type': 'str', 'introduction_text': 'str', 'voice_asset_id': 'str', + 'introduction_audio_asset_id': 'str', 'video_asset_name': 'str', - 'gender': 'str' + 'gender': 'str', + 'review_config': 'ReviewConfig' } attribute_map = { @@ -32,13 +35,16 @@ class CreateDigitalHumanBusinessCardReq: 'card_templet_asset_id': 'card_templet_asset_id', 'card_text_config': 'card_text_config', 'card_image_config': 'card_image_config', + 'introduction_type': 'introduction_type', 'introduction_text': 'introduction_text', 'voice_asset_id': 'voice_asset_id', + 'introduction_audio_asset_id': 'introduction_audio_asset_id', 'video_asset_name': 'video_asset_name', - 'gender': 'gender' + 'gender': 'gender', + 'review_config': 'review_config' } - def __init__(self, business_card_type=None, card_templet_asset_id=None, card_text_config=None, card_image_config=None, introduction_text=None, voice_asset_id=None, video_asset_name=None, gender=None): + def __init__(self, business_card_type=None, card_templet_asset_id=None, card_text_config=None, card_image_config=None, introduction_type=None, introduction_text=None, voice_asset_id=None, introduction_audio_asset_id=None, video_asset_name=None, gender=None, review_config=None): """CreateDigitalHumanBusinessCardReq The model defined in huaweicloud sdk @@ -51,14 +57,20 @@ class CreateDigitalHumanBusinessCardReq: :type card_text_config: :class:`huaweicloudsdkmetastudio.v1.BusinessCardTextConfig` :param card_image_config: :type card_image_config: :class:`huaweicloudsdkmetastudio.v1.BusinessCardImageConfig` + :param introduction_type: 自我介绍驱动方式。 * TEXT: 文本驱动,即通过TTS合成语音。文本驱动需要填写introduction_text和voice_asset_id参数。 * AUDIO: 语音驱动,需要在资产库中先上传语音资产。语音驱动需要填写introduction_audio_asset_id参数。 + :type introduction_type: str :param introduction_text: 自我介绍文本,用于驱动数字人口型。 :type introduction_text: str :param voice_asset_id: 音色资产ID。 :type voice_asset_id: str + :param introduction_audio_asset_id: 自我介绍语音资产ID,用于驱动数字人口型。 > * 介绍语音需要作为asset_type=AUDIO资产先上传至资产库。 + :type introduction_audio_asset_id: str :param video_asset_name: 输出名片视频资产名称。默认取card_name的值 :type video_asset_name: str :param gender: 性别。 * MALE:男性 * FEMALE:女性 :type gender: str + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` """ @@ -67,22 +79,33 @@ class CreateDigitalHumanBusinessCardReq: self._card_templet_asset_id = None self._card_text_config = None self._card_image_config = None + self._introduction_type = None self._introduction_text = None self._voice_asset_id = None + self._introduction_audio_asset_id = None self._video_asset_name = None self._gender = None + self._review_config = None self.discriminator = None self.business_card_type = business_card_type self.card_templet_asset_id = card_templet_asset_id self.card_text_config = card_text_config self.card_image_config = card_image_config - self.introduction_text = introduction_text - self.voice_asset_id = voice_asset_id + if introduction_type is not None: + self.introduction_type = introduction_type + if introduction_text is not None: + self.introduction_text = introduction_text + if voice_asset_id is not None: + self.voice_asset_id = voice_asset_id + if introduction_audio_asset_id is not None: + self.introduction_audio_asset_id = introduction_audio_asset_id if video_asset_name is not None: self.video_asset_name = video_asset_name if gender is not None: self.gender = gender + if review_config is not None: + self.review_config = review_config @property def business_card_type(self): @@ -164,6 +187,28 @@ class CreateDigitalHumanBusinessCardReq: """ self._card_image_config = card_image_config + @property + def introduction_type(self): + """Gets the introduction_type of this CreateDigitalHumanBusinessCardReq. + + 自我介绍驱动方式。 * TEXT: 文本驱动,即通过TTS合成语音。文本驱动需要填写introduction_text和voice_asset_id参数。 * AUDIO: 语音驱动,需要在资产库中先上传语音资产。语音驱动需要填写introduction_audio_asset_id参数。 + + :return: The introduction_type of this CreateDigitalHumanBusinessCardReq. + :rtype: str + """ + return self._introduction_type + + @introduction_type.setter + def introduction_type(self, introduction_type): + """Sets the introduction_type of this CreateDigitalHumanBusinessCardReq. + + 自我介绍驱动方式。 * TEXT: 文本驱动,即通过TTS合成语音。文本驱动需要填写introduction_text和voice_asset_id参数。 * AUDIO: 语音驱动,需要在资产库中先上传语音资产。语音驱动需要填写introduction_audio_asset_id参数。 + + :param introduction_type: The introduction_type of this CreateDigitalHumanBusinessCardReq. + :type introduction_type: str + """ + self._introduction_type = introduction_type + @property def introduction_text(self): """Gets the introduction_text of this CreateDigitalHumanBusinessCardReq. @@ -208,6 +253,28 @@ class CreateDigitalHumanBusinessCardReq: """ self._voice_asset_id = voice_asset_id + @property + def introduction_audio_asset_id(self): + """Gets the introduction_audio_asset_id of this CreateDigitalHumanBusinessCardReq. + + 自我介绍语音资产ID,用于驱动数字人口型。 > * 介绍语音需要作为asset_type=AUDIO资产先上传至资产库。 + + :return: The introduction_audio_asset_id of this CreateDigitalHumanBusinessCardReq. + :rtype: str + """ + return self._introduction_audio_asset_id + + @introduction_audio_asset_id.setter + def introduction_audio_asset_id(self, introduction_audio_asset_id): + """Sets the introduction_audio_asset_id of this CreateDigitalHumanBusinessCardReq. + + 自我介绍语音资产ID,用于驱动数字人口型。 > * 介绍语音需要作为asset_type=AUDIO资产先上传至资产库。 + + :param introduction_audio_asset_id: The introduction_audio_asset_id of this CreateDigitalHumanBusinessCardReq. + :type introduction_audio_asset_id: str + """ + self._introduction_audio_asset_id = introduction_audio_asset_id + @property def video_asset_name(self): """Gets the video_asset_name of this CreateDigitalHumanBusinessCardReq. @@ -252,6 +319,24 @@ class CreateDigitalHumanBusinessCardReq: """ self._gender = gender + @property + def review_config(self): + """Gets the review_config of this CreateDigitalHumanBusinessCardReq. + + :return: The review_config of this CreateDigitalHumanBusinessCardReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this CreateDigitalHumanBusinessCardReq. + + :param review_config: The review_config of this CreateDigitalHumanBusinessCardReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py index 4ff709816..b28a611d0 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_digital_human_business_card_request.py @@ -31,7 +31,7 @@ class CreateDigitalHumanBusinessCardRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateDigitalHumanBusinessCardRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDigitalHumanBusinessCardReq` @@ -52,7 +52,7 @@ class CreateDigitalHumanBusinessCardRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreateDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreateDigitalHumanBusinessCardRequest. :rtype: str @@ -63,7 +63,7 @@ class CreateDigitalHumanBusinessCardRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_facial_animations_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_facial_animations_request.py new file mode 100644 index 000000000..e327fcc30 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_facial_animations_request.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFacialAnimationsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'CreateFASReq' + } + + attribute_map = { + 'body': 'body' + } + + def __init__(self, body=None): + """CreateFacialAnimationsRequest + + The model defined in huaweicloud sdk + + :param body: Body of the CreateFacialAnimationsRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateFASReq` + """ + + + + self._body = None + self.discriminator = None + + if body is not None: + self.body = body + + @property + def body(self): + """Gets the body of this CreateFacialAnimationsRequest. + + :return: The body of this CreateFacialAnimationsRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.CreateFASReq` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateFacialAnimationsRequest. + + :param body: The body of this CreateFacialAnimationsRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.CreateFASReq` + """ + 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, CreateFacialAnimationsRequest): + return False + + return self.__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_facial_animations_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_facial_animations_response.py new file mode 100644 index 000000000..5889cf5cb --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_facial_animations_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 CreateFacialAnimationsResponse(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', + 'x_request_id': 'str' + } + + attribute_map = { + 'job_id': 'job_id', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, job_id=None, x_request_id=None): + """CreateFacialAnimationsResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务ID。 + :type job_id: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateFacialAnimationsResponse, self).__init__() + + self._job_id = None + self._x_request_id = None + self.discriminator = None + + if job_id is not None: + self.job_id = job_id + 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 CreateFacialAnimationsResponse. + + 任务ID。 + + :return: The job_id of this CreateFacialAnimationsResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this CreateFacialAnimationsResponse. + + 任务ID。 + + :param job_id: The job_id of this CreateFacialAnimationsResponse. + :type job_id: str + """ + self._job_id = job_id + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateFacialAnimationsResponse. + + :return: The x_request_id of this CreateFacialAnimationsResponse. + :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 CreateFacialAnimationsResponse. + + :param x_request_id: The x_request_id of this CreateFacialAnimationsResponse. + :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, CreateFacialAnimationsResponse): + return False + + return self.__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_fas_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_fas_req.py new file mode 100644 index 000000000..f86b85bdb --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_fas_req.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateFASReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'audio_file_download_url': 'str', + 'frame_rate': 'int' + } + + attribute_map = { + 'audio_file_download_url': 'audio_file_download_url', + 'frame_rate': 'frame_rate' + } + + def __init__(self, audio_file_download_url=None, frame_rate=None): + """CreateFASReq + + The model defined in huaweicloud sdk + + :param audio_file_download_url: 语音驱动音频文件下载URL,格式为AAC或者MP3 + :type audio_file_download_url: str + :param frame_rate: 期望的输出帧率 + :type frame_rate: int + """ + + + + self._audio_file_download_url = None + self._frame_rate = None + self.discriminator = None + + self.audio_file_download_url = audio_file_download_url + self.frame_rate = frame_rate + + @property + def audio_file_download_url(self): + """Gets the audio_file_download_url of this CreateFASReq. + + 语音驱动音频文件下载URL,格式为AAC或者MP3 + + :return: The audio_file_download_url of this CreateFASReq. + :rtype: str + """ + return self._audio_file_download_url + + @audio_file_download_url.setter + def audio_file_download_url(self, audio_file_download_url): + """Sets the audio_file_download_url of this CreateFASReq. + + 语音驱动音频文件下载URL,格式为AAC或者MP3 + + :param audio_file_download_url: The audio_file_download_url of this CreateFASReq. + :type audio_file_download_url: str + """ + self._audio_file_download_url = audio_file_download_url + + @property + def frame_rate(self): + """Gets the frame_rate of this CreateFASReq. + + 期望的输出帧率 + + :return: The frame_rate of this CreateFASReq. + :rtype: int + """ + return self._frame_rate + + @frame_rate.setter + def frame_rate(self, frame_rate): + """Sets the frame_rate of this CreateFASReq. + + 期望的输出帧率 + + :param frame_rate: The frame_rate of this CreateFASReq. + :type frame_rate: int + """ + self._frame_rate = frame_rate + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateFASReq): + return False + + return self.__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_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_request.py index 224a9381f..dc4ad3d18 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_file_request.py @@ -31,7 +31,7 @@ class CreateFileRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateFileRequest :type body: :class:`huaweicloudsdkmetastudio.v1.FilesCreateReq` @@ -52,7 +52,7 @@ class CreateFileRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreateFileRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreateFileRequest. :rtype: str @@ -63,7 +63,7 @@ class CreateFileRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateFileRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateFileRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_request.py new file mode 100644 index 000000000..6cf7ecbc1 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_request.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateInteractionRuleGroupRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'InteractionRuleGroup' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, body=None): + """CreateInteractionRuleGroupRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :type x_app_user_id: str + :param body: Body of the CreateInteractionRuleGroupRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroup` + """ + + + + 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 CreateInteractionRuleGroupRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :return: The x_app_user_id of this CreateInteractionRuleGroupRequest. + :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 CreateInteractionRuleGroupRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this CreateInteractionRuleGroupRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def body(self): + """Gets the body of this CreateInteractionRuleGroupRequest. + + :return: The body of this CreateInteractionRuleGroupRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroup` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateInteractionRuleGroupRequest. + + :param body: The body of this CreateInteractionRuleGroupRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroup` + """ + 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, CreateInteractionRuleGroupRequest): + return False + + return self.__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_interaction_rule_group_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_response.py new file mode 100644 index 000000000..419f29002 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_interaction_rule_group_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 CreateInteractionRuleGroupResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_id': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'group_id': 'group_id', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, group_id=None, x_request_id=None): + """CreateInteractionRuleGroupResponse + + The model defined in huaweicloud sdk + + :param group_id: 互动规则库ID + :type group_id: str + :param x_request_id: + :type x_request_id: str + """ + + super(CreateInteractionRuleGroupResponse, self).__init__() + + self._group_id = None + self._x_request_id = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def group_id(self): + """Gets the group_id of this CreateInteractionRuleGroupResponse. + + 互动规则库ID + + :return: The group_id of this CreateInteractionRuleGroupResponse. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this CreateInteractionRuleGroupResponse. + + 互动规则库ID + + :param group_id: The group_id of this CreateInteractionRuleGroupResponse. + :type group_id: str + """ + self._group_id = group_id + + @property + def x_request_id(self): + """Gets the x_request_id of this CreateInteractionRuleGroupResponse. + + :return: The x_request_id of this CreateInteractionRuleGroupResponse. + :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 CreateInteractionRuleGroupResponse. + + :param x_request_id: The x_request_id of this CreateInteractionRuleGroupResponse. + :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, CreateInteractionRuleGroupResponse): + return False + + return self.__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_photo_detection_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_detection_request.py index 78c6c6e78..5b8735b0b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_detection_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_detection_request.py @@ -31,7 +31,7 @@ class CreatePhotoDetectionRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePhotoDetectionRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePhotoDetectionReq` @@ -52,7 +52,7 @@ class CreatePhotoDetectionRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreatePhotoDetectionRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreatePhotoDetectionRequest. :rtype: str @@ -63,7 +63,7 @@ class CreatePhotoDetectionRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePhotoDetectionRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePhotoDetectionRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_req.py index 9b98484d4..66806dd99 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_req.py @@ -23,7 +23,8 @@ class CreatePhotoDigitalHumanVideoReq: 'video_config': 'PhotoVideoConfig', 'shoot_scripts': 'list[ShootScriptItem]', 'output_asset_config': 'OutputAssetConfig', - 'background_music_config': 'BackgroundMusicConfig' + 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig' } attribute_map = { @@ -33,15 +34,16 @@ class CreatePhotoDigitalHumanVideoReq: 'video_config': 'video_config', 'shoot_scripts': 'shoot_scripts', 'output_asset_config': 'output_asset_config', - 'background_music_config': 'background_music_config' + 'background_music_config': 'background_music_config', + 'review_config': 'review_config' } - def __init__(self, script_id=None, human_image=None, voice_config=None, video_config=None, shoot_scripts=None, output_asset_config=None, background_music_config=None): + def __init__(self, script_id=None, human_image=None, voice_config=None, video_config=None, shoot_scripts=None, output_asset_config=None, background_music_config=None, review_config=None): """CreatePhotoDigitalHumanVideoReq The model defined in huaweicloud sdk - :param script_id: 剧本ID。 > * 如果填写了script_id,model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts可以不填,以脚本中的配置为准。 > * 如果填写了script_id,并且同时也填写了model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts则以本接口中的配置为准。 + :param script_id: 剧本ID。 > * 如果shoot_scripts中shoot_script.script_type为\"TEXT\",则台词以shoot_scripts中的文本为准; > * 如果shoot_scripts中shoot_script.script_type为\"AUDIO\",则台词以script_id对应剧本中的音频为准。 :type script_id: str :param human_image: 人物照片,需要Base64编码。照片分辨率不超过1080P。 :type human_image: str @@ -49,12 +51,14 @@ class CreatePhotoDigitalHumanVideoReq: :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.PhotoVideoConfig` - :param shoot_scripts: 拍摄脚本列表。 + :param shoot_scripts: 剧本列表。照片数字人仅支持传入一个剧本shoot_script,剧本参数仅支持shoot_script.script_type、shoot_script.text_config; :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] :param output_asset_config: :type output_asset_config: :class:`huaweicloudsdkmetastudio.v1.OutputAssetConfig` :param background_music_config: :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` """ @@ -66,6 +70,7 @@ class CreatePhotoDigitalHumanVideoReq: self._shoot_scripts = None self._output_asset_config = None self._background_music_config = None + self._review_config = None self.discriminator = None if script_id is not None: @@ -79,12 +84,14 @@ class CreatePhotoDigitalHumanVideoReq: self.output_asset_config = output_asset_config if background_music_config is not None: self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config @property def script_id(self): """Gets the script_id of this CreatePhotoDigitalHumanVideoReq. - 剧本ID。 > * 如果填写了script_id,model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts可以不填,以脚本中的配置为准。 > * 如果填写了script_id,并且同时也填写了model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts则以本接口中的配置为准。 + 剧本ID。 > * 如果shoot_scripts中shoot_script.script_type为\"TEXT\",则台词以shoot_scripts中的文本为准; > * 如果shoot_scripts中shoot_script.script_type为\"AUDIO\",则台词以script_id对应剧本中的音频为准。 :return: The script_id of this CreatePhotoDigitalHumanVideoReq. :rtype: str @@ -95,7 +102,7 @@ class CreatePhotoDigitalHumanVideoReq: def script_id(self, script_id): """Sets the script_id of this CreatePhotoDigitalHumanVideoReq. - 剧本ID。 > * 如果填写了script_id,model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts可以不填,以脚本中的配置为准。 > * 如果填写了script_id,并且同时也填写了model_asset_id、voice_config、scene_asset_id、video_config、shoot_scripts则以本接口中的配置为准。 + 剧本ID。 > * 如果shoot_scripts中shoot_script.script_type为\"TEXT\",则台词以shoot_scripts中的文本为准; > * 如果shoot_scripts中shoot_script.script_type为\"AUDIO\",则台词以script_id对应剧本中的音频为准。 :param script_id: The script_id of this CreatePhotoDigitalHumanVideoReq. :type script_id: str @@ -164,7 +171,7 @@ class CreatePhotoDigitalHumanVideoReq: def shoot_scripts(self): """Gets the shoot_scripts of this CreatePhotoDigitalHumanVideoReq. - 拍摄脚本列表。 + 剧本列表。照片数字人仅支持传入一个剧本shoot_script,剧本参数仅支持shoot_script.script_type、shoot_script.text_config; :return: The shoot_scripts of this CreatePhotoDigitalHumanVideoReq. :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] @@ -175,7 +182,7 @@ class CreatePhotoDigitalHumanVideoReq: def shoot_scripts(self, shoot_scripts): """Sets the shoot_scripts of this CreatePhotoDigitalHumanVideoReq. - 拍摄脚本列表。 + 剧本列表。照片数字人仅支持传入一个剧本shoot_script,剧本参数仅支持shoot_script.script_type、shoot_script.text_config; :param shoot_scripts: The shoot_scripts of this CreatePhotoDigitalHumanVideoReq. :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] @@ -218,6 +225,24 @@ class CreatePhotoDigitalHumanVideoReq: """ self._background_music_config = background_music_config + @property + def review_config(self): + """Gets the review_config of this CreatePhotoDigitalHumanVideoReq. + + :return: The review_config of this CreatePhotoDigitalHumanVideoReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this CreatePhotoDigitalHumanVideoReq. + + :param review_config: The review_config of this CreatePhotoDigitalHumanVideoReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py index fc5cd8154..fd121d410 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_photo_digital_human_video_request.py @@ -31,7 +31,7 @@ class CreatePhotoDigitalHumanVideoRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePhotoDigitalHumanVideoRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePhotoDigitalHumanVideoReq` @@ -52,7 +52,7 @@ class CreatePhotoDigitalHumanVideoRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. :rtype: str @@ -63,7 +63,7 @@ class CreatePhotoDigitalHumanVideoRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePhotoDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py index 66334fd1e..bfa5bee3e 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_by_url_job_request.py @@ -31,7 +31,7 @@ class CreatePictureModelingByUrlJobRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePictureModelingByUrlJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.PictureModelingByUrlReq` @@ -52,7 +52,7 @@ class CreatePictureModelingByUrlJobRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreatePictureModelingByUrlJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreatePictureModelingByUrlJobRequest. :rtype: str @@ -63,7 +63,7 @@ class CreatePictureModelingByUrlJobRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePictureModelingByUrlJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePictureModelingByUrlJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py index d4b40775d..faf9cd2ae 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_picture_modeling_job_request.py @@ -31,7 +31,7 @@ class CreatePictureModelingJobRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreatePictureModelingJobRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreatePictureModelingJobRequestBody` @@ -52,7 +52,7 @@ class CreatePictureModelingJobRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreatePictureModelingJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreatePictureModelingJobRequest. :rtype: str @@ -63,7 +63,7 @@ class CreatePictureModelingJobRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreatePictureModelingJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreatePictureModelingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py index 60c8a9a05..fef5b2c7c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_req.py @@ -24,7 +24,12 @@ class CreateSmartLiveRoomReq: 'interaction_rules': 'list[InteractionRuleInfo]', 'play_policy': 'PlayPolicy', 'video_config': 'VideoConfig', - 'output_urls': 'list[str]' + 'output_urls': 'list[str]', + 'stream_keys': 'list[str]', + 'backup_model_asset_ids': 'list[str]', + 'live_event_callback_config': 'LiveEventCallBackConfig', + 'review_config': 'ReviewConfig', + 'shared_config': 'SharedConfig' } attribute_map = { @@ -35,10 +40,15 @@ class CreateSmartLiveRoomReq: 'interaction_rules': 'interaction_rules', 'play_policy': 'play_policy', 'video_config': 'video_config', - 'output_urls': 'output_urls' + 'output_urls': 'output_urls', + 'stream_keys': 'stream_keys', + 'backup_model_asset_ids': 'backup_model_asset_ids', + 'live_event_callback_config': 'live_event_callback_config', + 'review_config': 'review_config', + 'shared_config': 'shared_config' } - def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None): + def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, review_config=None, shared_config=None): """CreateSmartLiveRoomReq The model defined in huaweicloud sdk @@ -47,7 +57,7 @@ class CreateSmartLiveRoomReq: :type room_name: str :param room_description: 直播间描述。 :type room_description: str - :param room_type: 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + :param room_type: 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :type room_type: str :param scene_scripts: 默认直播剧本列表。 :type scene_scripts: list[:class:`huaweicloudsdkmetastudio.v1.LiveVideoScriptInfo`] @@ -57,8 +67,18 @@ class CreateSmartLiveRoomReq: :type play_policy: :class:`huaweicloudsdkmetastudio.v1.PlayPolicy` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` - :param output_urls: 视频推流第三方直播平台地址。 + :param output_urls: RTMP视频推流第三方直播平台地址。 :type output_urls: list[str] + :param stream_keys: RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + :type stream_keys: list[str] + :param backup_model_asset_ids: 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + :type backup_model_asset_ids: list[str] + :param live_event_callback_config: + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shared_config: + :type shared_config: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` """ @@ -71,6 +91,11 @@ class CreateSmartLiveRoomReq: self._play_policy = None self._video_config = None self._output_urls = None + self._stream_keys = None + self._backup_model_asset_ids = None + self._live_event_callback_config = None + self._review_config = None + self._shared_config = None self.discriminator = None self.room_name = room_name @@ -88,6 +113,16 @@ class CreateSmartLiveRoomReq: self.video_config = video_config if output_urls is not None: self.output_urls = output_urls + if stream_keys is not None: + self.stream_keys = stream_keys + if backup_model_asset_ids is not None: + self.backup_model_asset_ids = backup_model_asset_ids + if live_event_callback_config is not None: + self.live_event_callback_config = live_event_callback_config + if review_config is not None: + self.review_config = review_config + if shared_config is not None: + self.shared_config = shared_config @property def room_name(self): @@ -137,7 +172,7 @@ class CreateSmartLiveRoomReq: def room_type(self): """Gets the room_type of this CreateSmartLiveRoomReq. - 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :return: The room_type of this CreateSmartLiveRoomReq. :rtype: str @@ -148,7 +183,7 @@ class CreateSmartLiveRoomReq: def room_type(self, room_type): """Sets the room_type of this CreateSmartLiveRoomReq. - 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :param room_type: The room_type of this CreateSmartLiveRoomReq. :type room_type: str @@ -239,7 +274,7 @@ class CreateSmartLiveRoomReq: def output_urls(self): """Gets the output_urls of this CreateSmartLiveRoomReq. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :return: The output_urls of this CreateSmartLiveRoomReq. :rtype: list[str] @@ -250,13 +285,111 @@ class CreateSmartLiveRoomReq: def output_urls(self, output_urls): """Sets the output_urls of this CreateSmartLiveRoomReq. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :param output_urls: The output_urls of this CreateSmartLiveRoomReq. :type output_urls: list[str] """ self._output_urls = output_urls + @property + def stream_keys(self): + """Gets the stream_keys of this CreateSmartLiveRoomReq. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :return: The stream_keys of this CreateSmartLiveRoomReq. + :rtype: list[str] + """ + return self._stream_keys + + @stream_keys.setter + def stream_keys(self, stream_keys): + """Sets the stream_keys of this CreateSmartLiveRoomReq. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :param stream_keys: The stream_keys of this CreateSmartLiveRoomReq. + :type stream_keys: list[str] + """ + self._stream_keys = stream_keys + + @property + def backup_model_asset_ids(self): + """Gets the backup_model_asset_ids of this CreateSmartLiveRoomReq. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :return: The backup_model_asset_ids of this CreateSmartLiveRoomReq. + :rtype: list[str] + """ + return self._backup_model_asset_ids + + @backup_model_asset_ids.setter + def backup_model_asset_ids(self, backup_model_asset_ids): + """Sets the backup_model_asset_ids of this CreateSmartLiveRoomReq. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :param backup_model_asset_ids: The backup_model_asset_ids of this CreateSmartLiveRoomReq. + :type backup_model_asset_ids: list[str] + """ + self._backup_model_asset_ids = backup_model_asset_ids + + @property + def live_event_callback_config(self): + """Gets the live_event_callback_config of this CreateSmartLiveRoomReq. + + :return: The live_event_callback_config of this CreateSmartLiveRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + return self._live_event_callback_config + + @live_event_callback_config.setter + def live_event_callback_config(self, live_event_callback_config): + """Sets the live_event_callback_config of this CreateSmartLiveRoomReq. + + :param live_event_callback_config: The live_event_callback_config of this CreateSmartLiveRoomReq. + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + self._live_event_callback_config = live_event_callback_config + + @property + def review_config(self): + """Gets the review_config of this CreateSmartLiveRoomReq. + + :return: The review_config of this CreateSmartLiveRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this CreateSmartLiveRoomReq. + + :param review_config: The review_config of this CreateSmartLiveRoomReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shared_config(self): + """Gets the shared_config of this CreateSmartLiveRoomReq. + + :return: The shared_config of this CreateSmartLiveRoomReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` + """ + return self._shared_config + + @shared_config.setter + def shared_config(self, shared_config): + """Sets the shared_config of this CreateSmartLiveRoomReq. + + :param shared_config: The shared_config of this CreateSmartLiveRoomReq. + :type shared_config: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` + """ + self._shared_config = shared_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py index 4c64f53c4..26e144642 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_smart_live_room_request.py @@ -31,7 +31,7 @@ class CreateSmartLiveRoomRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateSmartLiveRoomRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartLiveRoomReq` @@ -52,7 +52,7 @@ class CreateSmartLiveRoomRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreateSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreateSmartLiveRoomRequest. :rtype: str @@ -63,7 +63,7 @@ class CreateSmartLiveRoomRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateSmartLiveRoomRequest. :type x_app_user_id: 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 7adf016cb..00209df2b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_req.py @@ -18,35 +18,45 @@ class CreateTTSAReq: openapi_types = { 'voice_asset_id': 'str', + 'script_type': 'str', 'text': 'str', + 'audio_file_download_url': 'str', 'speed': 'int', 'pitch': 'int', 'volume': 'int', 'emotion': 'str', 'style_id': 'str', - 'camera_position': 'str' + 'camera_position': 'str', + 'job_type': 'str' } attribute_map = { 'voice_asset_id': 'voice_asset_id', + 'script_type': 'script_type', 'text': 'text', + 'audio_file_download_url': 'audio_file_download_url', 'speed': 'speed', 'pitch': 'pitch', 'volume': 'volume', 'emotion': 'emotion', 'style_id': 'style_id', - 'camera_position': 'camera_position' + 'camera_position': 'camera_position', + 'job_type': 'job_type' } - def __init__(self, voice_asset_id=None, text=None, speed=None, pitch=None, volume=None, emotion=None, style_id=None, camera_position=None): + def __init__(self, voice_asset_id=None, script_type=None, text=None, audio_file_download_url=None, speed=None, pitch=None, volume=None, emotion=None, style_id=None, camera_position=None, job_type=None): """CreateTTSAReq The model defined in huaweicloud sdk :param voice_asset_id: 音色模型ID :type voice_asset_id: str + :param script_type: 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + :type script_type: str :param text: HTML格式的台词,可包含动作。最多2048个字符。 > * HTML格式举例:\\<speak>大家好<insert-action id=\\\"14cc7bbcde4982aab82f9d9af9e0f743\\\"/>,非常高兴给大家介绍MetaStudio。\\</speak> > * insert-action id通过查询资产列表接口获取,查询时asset_type=ANIMATION > * 多音字标签:\\<phoneme ph=\\\"拼音\\\">汉字\\</phoneme>,南京\\<phoneme ph=\\\"shi4 zhang3\\\">市长\\</phoneme>江大桥。 > * 停顿标签:\\<break/>,中方一贯主张\\<break/>维护国家主权平等,不干涉他国内政\\<break time=\\\"300ms\\\"/>是联合国宪章\\<break time=\\\"500ms\\\"/>最重要的原则。 :type text: str + :param audio_file_download_url: 语音驱动音频文件下载URL。 + :type audio_file_download_url: str :param speed: 语速。 取值范围[50,200] 默认值:100 :type speed: int :param pitch: 基频。 取值范围[50,200] 默认值:100 @@ -59,22 +69,32 @@ class CreateTTSAReq: :type style_id: str :param camera_position: 人位置及相机位置。由如下4组浮点数组成的字符:人位置的X/Y/Z值,人角度的Pitch/Yaw/Roll值;相机位置的X/Y/Z值,相机角度的Pitch/Yaw/Roll值。 :type camera_position: str + :param job_type: 任务类型。 * REAL_JOB:实时任务。如数字人交互。 * UNREAL_JOB:非实时任务。如数字人视频制作 + :type job_type: str """ self._voice_asset_id = None + self._script_type = None self._text = None + self._audio_file_download_url = None self._speed = None self._pitch = None self._volume = None self._emotion = None self._style_id = None self._camera_position = None + self._job_type = None self.discriminator = None self.voice_asset_id = voice_asset_id - self.text = text + if script_type is not None: + self.script_type = script_type + if text is not None: + self.text = text + if audio_file_download_url is not None: + self.audio_file_download_url = audio_file_download_url if speed is not None: self.speed = speed if pitch is not None: @@ -83,10 +103,11 @@ class CreateTTSAReq: self.volume = volume if emotion is not None: self.emotion = emotion - if style_id is not None: - self.style_id = style_id + self.style_id = style_id if camera_position is not None: self.camera_position = camera_position + if job_type is not None: + self.job_type = job_type @property def voice_asset_id(self): @@ -110,6 +131,28 @@ class CreateTTSAReq: """ self._voice_asset_id = voice_asset_id + @property + def script_type(self): + """Gets the script_type of this CreateTTSAReq. + + 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + + :return: The script_type of this CreateTTSAReq. + :rtype: str + """ + return self._script_type + + @script_type.setter + def script_type(self, script_type): + """Sets the script_type of this CreateTTSAReq. + + 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + + :param script_type: The script_type of this CreateTTSAReq. + :type script_type: str + """ + self._script_type = script_type + @property def text(self): """Gets the text of this CreateTTSAReq. @@ -132,6 +175,28 @@ class CreateTTSAReq: """ self._text = text + @property + def audio_file_download_url(self): + """Gets the audio_file_download_url of this CreateTTSAReq. + + 语音驱动音频文件下载URL。 + + :return: The audio_file_download_url of this CreateTTSAReq. + :rtype: str + """ + return self._audio_file_download_url + + @audio_file_download_url.setter + def audio_file_download_url(self, audio_file_download_url): + """Sets the audio_file_download_url of this CreateTTSAReq. + + 语音驱动音频文件下载URL。 + + :param audio_file_download_url: The audio_file_download_url of this CreateTTSAReq. + :type audio_file_download_url: str + """ + self._audio_file_download_url = audio_file_download_url + @property def speed(self): """Gets the speed of this CreateTTSAReq. @@ -264,6 +329,28 @@ class CreateTTSAReq: """ self._camera_position = camera_position + @property + def job_type(self): + """Gets the job_type of this CreateTTSAReq. + + 任务类型。 * REAL_JOB:实时任务。如数字人交互。 * UNREAL_JOB:非实时任务。如数字人视频制作 + + :return: The job_type of this CreateTTSAReq. + :rtype: str + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this CreateTTSAReq. + + 任务类型。 * REAL_JOB:实时任务。如数字人交互。 * UNREAL_JOB:非实时任务。如数字人视频制作 + + :param job_type: The job_type of this CreateTTSAReq. + :type job_type: str + """ + self._job_type = job_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py index 51f08a8e2..862f31895 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_ttsa_request.py @@ -31,7 +31,7 @@ class CreateTtsaRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateTtsaRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateTTSAReq` @@ -52,7 +52,7 @@ class CreateTtsaRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreateTtsaRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreateTtsaRequest. :rtype: str @@ -63,7 +63,7 @@ class CreateTtsaRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateTtsaRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateTtsaRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py index 981dc8407..20217caa3 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_motion_capture_job_request.py @@ -33,7 +33,7 @@ class CreateVideoMotionCaptureJobRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param x_user_privilege: 测试用户判断。 :type x_user_privilege: str @@ -59,7 +59,7 @@ class CreateVideoMotionCaptureJobRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreateVideoMotionCaptureJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreateVideoMotionCaptureJobRequest. :rtype: str @@ -70,7 +70,7 @@ class CreateVideoMotionCaptureJobRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateVideoMotionCaptureJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateVideoMotionCaptureJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_req.py index c7b9ca18b..7cc2e2faf 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_req.py @@ -19,34 +19,32 @@ class CreateVideoScriptsReq: openapi_types = { 'script_name': 'str', 'script_description': 'str', - 'video_making_type': 'str', 'model_asset_id': 'str', 'model_asset_type': 'str', - 'human_image': 'str', 'voice_config': 'VoiceConfig', 'video_config': 'VideoConfig', 'scene_asset_id': 'str', - 'shoot_scripts': 'list[ShootScriptItem]', 'priv_data': 'str', - 'background_music_config': 'BackgroundMusicConfig' + 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig', + 'shoot_scripts': 'list[ShootScriptItem]' } attribute_map = { 'script_name': 'script_name', 'script_description': 'script_description', - 'video_making_type': 'video_making_type', 'model_asset_id': 'model_asset_id', 'model_asset_type': 'model_asset_type', - 'human_image': 'human_image', 'voice_config': 'voice_config', 'video_config': 'video_config', 'scene_asset_id': 'scene_asset_id', - 'shoot_scripts': 'shoot_scripts', 'priv_data': 'priv_data', - 'background_music_config': 'background_music_config' + 'background_music_config': 'background_music_config', + 'review_config': 'review_config', + 'shoot_scripts': 'shoot_scripts' } - def __init__(self, script_name=None, script_description=None, video_making_type=None, model_asset_id=None, model_asset_type=None, human_image=None, voice_config=None, video_config=None, scene_asset_id=None, shoot_scripts=None, priv_data=None, background_music_config=None): + def __init__(self, script_name=None, script_description=None, model_asset_id=None, model_asset_type=None, voice_config=None, video_config=None, scene_asset_id=None, priv_data=None, background_music_config=None, review_config=None, shoot_scripts=None): """CreateVideoScriptsReq The model defined in huaweicloud sdk @@ -55,65 +53,63 @@ class CreateVideoScriptsReq: :type script_name: str :param script_description: 剧本描述。 :type script_description: str - :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - :type video_making_type: str :param model_asset_id: 数字人模型资产ID。 :type model_asset_id: str :param model_asset_type: 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 :type model_asset_type: str - :param human_image: 人物照片下载URL。 - :type human_image: str :param voice_config: :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` :param scene_asset_id: 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 :type scene_asset_id: str - :param shoot_scripts: 拍摄脚本列表。 - :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] :param priv_data: 私有数据,用户填写,原样带回。 :type priv_data: str :param background_music_config: :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shoot_scripts: 拍摄脚本列表。 + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] """ self._script_name = None self._script_description = None - self._video_making_type = None self._model_asset_id = None self._model_asset_type = None - self._human_image = None self._voice_config = None self._video_config = None self._scene_asset_id = None - self._shoot_scripts = None self._priv_data = None self._background_music_config = None + self._review_config = None + self._shoot_scripts = None self.discriminator = None - self.script_name = script_name + if script_name is not None: + self.script_name = script_name if script_description is not None: self.script_description = script_description - if video_making_type is not None: - self.video_making_type = video_making_type if model_asset_id is not None: self.model_asset_id = model_asset_id if model_asset_type is not None: self.model_asset_type = model_asset_type - if human_image is not None: - self.human_image = human_image - self.voice_config = voice_config + if voice_config is not None: + self.voice_config = voice_config if video_config is not None: self.video_config = video_config if scene_asset_id is not None: self.scene_asset_id = scene_asset_id - self.shoot_scripts = shoot_scripts if priv_data is not None: self.priv_data = priv_data if background_music_config is not None: self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config + if shoot_scripts is not None: + self.shoot_scripts = shoot_scripts @property def script_name(self): @@ -159,28 +155,6 @@ class CreateVideoScriptsReq: """ self._script_description = script_description - @property - def video_making_type(self): - """Gets the video_making_type of this CreateVideoScriptsReq. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :return: The video_making_type of this CreateVideoScriptsReq. - :rtype: str - """ - return self._video_making_type - - @video_making_type.setter - def video_making_type(self, video_making_type): - """Sets the video_making_type of this CreateVideoScriptsReq. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :param video_making_type: The video_making_type of this CreateVideoScriptsReq. - :type video_making_type: str - """ - self._video_making_type = video_making_type - @property def model_asset_id(self): """Gets the model_asset_id of this CreateVideoScriptsReq. @@ -225,28 +199,6 @@ class CreateVideoScriptsReq: """ self._model_asset_type = model_asset_type - @property - def human_image(self): - """Gets the human_image of this CreateVideoScriptsReq. - - 人物照片下载URL。 - - :return: The human_image of this CreateVideoScriptsReq. - :rtype: str - """ - return self._human_image - - @human_image.setter - def human_image(self, human_image): - """Sets the human_image of this CreateVideoScriptsReq. - - 人物照片下载URL。 - - :param human_image: The human_image of this CreateVideoScriptsReq. - :type human_image: str - """ - self._human_image = human_image - @property def voice_config(self): """Gets the voice_config of this CreateVideoScriptsReq. @@ -305,28 +257,6 @@ class CreateVideoScriptsReq: """ self._scene_asset_id = scene_asset_id - @property - def shoot_scripts(self): - """Gets the shoot_scripts of this CreateVideoScriptsReq. - - 拍摄脚本列表。 - - :return: The shoot_scripts of this CreateVideoScriptsReq. - :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] - """ - return self._shoot_scripts - - @shoot_scripts.setter - def shoot_scripts(self, shoot_scripts): - """Sets the shoot_scripts of this CreateVideoScriptsReq. - - 拍摄脚本列表。 - - :param shoot_scripts: The shoot_scripts of this CreateVideoScriptsReq. - :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] - """ - self._shoot_scripts = shoot_scripts - @property def priv_data(self): """Gets the priv_data of this CreateVideoScriptsReq. @@ -367,6 +297,46 @@ class CreateVideoScriptsReq: """ self._background_music_config = background_music_config + @property + def review_config(self): + """Gets the review_config of this CreateVideoScriptsReq. + + :return: The review_config of this CreateVideoScriptsReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this CreateVideoScriptsReq. + + :param review_config: The review_config of this CreateVideoScriptsReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shoot_scripts(self): + """Gets the shoot_scripts of this CreateVideoScriptsReq. + + 拍摄脚本列表。 + + :return: The shoot_scripts of this CreateVideoScriptsReq. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + """ + return self._shoot_scripts + + @shoot_scripts.setter + def shoot_scripts(self, shoot_scripts): + """Sets the shoot_scripts of this CreateVideoScriptsReq. + + 拍摄脚本列表。 + + :param shoot_scripts: The shoot_scripts of this CreateVideoScriptsReq. + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + """ + self._shoot_scripts = shoot_scripts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py index 50abeefd5..416062bbc 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/create_video_scripts_request.py @@ -31,7 +31,7 @@ class CreateVideoScriptsRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the CreateVideoScriptsRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateVideoScriptsReq` @@ -52,7 +52,7 @@ class CreateVideoScriptsRequest: def x_app_user_id(self): """Gets the x_app_user_id of this CreateVideoScriptsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this CreateVideoScriptsRequest. :rtype: str @@ -63,7 +63,7 @@ class CreateVideoScriptsRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this CreateVideoScriptsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this CreateVideoScriptsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py index df60393aa..bb827ad1e 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_asset_request.py @@ -33,7 +33,7 @@ class DeleteAssetRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -58,7 +58,7 @@ class DeleteAssetRequest: def x_app_user_id(self): """Gets the x_app_user_id of this DeleteAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this DeleteAssetRequest. :rtype: str @@ -69,7 +69,7 @@ class DeleteAssetRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py index 89c3b4d33..925a13cdf 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_digital_human_business_card_request.py @@ -33,7 +33,7 @@ class DeleteDigitalHumanBusinessCardRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class DeleteDigitalHumanBusinessCardRequest: def x_app_user_id(self): """Gets the x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. :rtype: str @@ -84,7 +84,7 @@ class DeleteDigitalHumanBusinessCardRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py index c0a921722..100314d86 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_file_request.py @@ -31,7 +31,7 @@ class DeleteFileRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param file_id: 文件ID。 :type file_id: str @@ -51,7 +51,7 @@ class DeleteFileRequest: def x_app_user_id(self): """Gets the x_app_user_id of this DeleteFileRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this DeleteFileRequest. :rtype: str @@ -62,7 +62,7 @@ class DeleteFileRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteFileRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteFileRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_request.py new file mode 100644 index 000000000..ef668082f --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInteractionRuleGroupRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_id': 'str', + 'x_app_user_id': 'str' + } + + attribute_map = { + 'group_id': 'group_id', + 'x_app_user_id': 'X-App-UserId' + } + + def __init__(self, group_id=None, x_app_user_id=None): + """DeleteInteractionRuleGroupRequest + + The model defined in huaweicloud sdk + + :param group_id: 互动规则库ID。 + :type group_id: str + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :type x_app_user_id: str + """ + + + + self._group_id = None + self._x_app_user_id = None + self.discriminator = None + + self.group_id = group_id + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + + @property + def group_id(self): + """Gets the group_id of this DeleteInteractionRuleGroupRequest. + + 互动规则库ID。 + + :return: The group_id of this DeleteInteractionRuleGroupRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this DeleteInteractionRuleGroupRequest. + + 互动规则库ID。 + + :param group_id: The group_id of this DeleteInteractionRuleGroupRequest. + :type group_id: str + """ + self._group_id = group_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this DeleteInteractionRuleGroupRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :return: The x_app_user_id of this DeleteInteractionRuleGroupRequest. + :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 DeleteInteractionRuleGroupRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this DeleteInteractionRuleGroupRequest. + :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, DeleteInteractionRuleGroupRequest): + return False + + return self.__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/delete_interaction_rule_group_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_response.py new file mode 100644 index 000000000..4f5514784 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_interaction_rule_group_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteInteractionRuleGroupResponse(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 = { + 'x_request_id': 'str' + } + + attribute_map = { + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, x_request_id=None): + """DeleteInteractionRuleGroupResponse + + The model defined in huaweicloud sdk + + :param x_request_id: + :type x_request_id: str + """ + + super(DeleteInteractionRuleGroupResponse, self).__init__() + + self._x_request_id = None + self.discriminator = None + + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def x_request_id(self): + """Gets the x_request_id of this DeleteInteractionRuleGroupResponse. + + :return: The x_request_id of this DeleteInteractionRuleGroupResponse. + :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 DeleteInteractionRuleGroupResponse. + + :param x_request_id: The x_request_id of this DeleteInteractionRuleGroupResponse. + :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, DeleteInteractionRuleGroupResponse): + return False + + return self.__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/delete_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_live_room_request.py index cf76b8094..60add441e 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_smart_live_room_request.py @@ -33,7 +33,7 @@ class DeleteSmartLiveRoomRequest: :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class DeleteSmartLiveRoomRequest: def x_app_user_id(self): """Gets the x_app_user_id of this DeleteSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this DeleteSmartLiveRoomRequest. :rtype: str @@ -84,7 +84,7 @@ class DeleteSmartLiveRoomRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteSmartLiveRoomRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py index 1f2689386..d43372f9c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/delete_video_script_request.py @@ -31,7 +31,7 @@ class DeleteVideoScriptRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param script_id: 剧本ID。 :type script_id: str @@ -51,7 +51,7 @@ class DeleteVideoScriptRequest: def x_app_user_id(self): """Gets the x_app_user_id of this DeleteVideoScriptRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this DeleteVideoScriptRequest. :rtype: str @@ -62,7 +62,7 @@ class DeleteVideoScriptRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this DeleteVideoScriptRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this DeleteVideoScriptRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_info.py index ac4af6453..d8399660a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_info.py @@ -24,6 +24,9 @@ class DigitalAssetInfo: 'update_time': 'str', 'asset_type': 'str', 'asset_state': 'str', + 'fail_type': 'str', + 'reason': 'str', + 'is_need_generate_cover': 'bool', 'tags': 'list[str]', 'asset_extra_meta': 'AssetExtraMeta', 'system_properties': 'list[SystemProperty]', @@ -38,13 +41,16 @@ class DigitalAssetInfo: 'update_time': 'update_time', 'asset_type': 'asset_type', 'asset_state': 'asset_state', + 'fail_type': 'fail_type', + 'reason': 'reason', + 'is_need_generate_cover': 'is_need_generate_cover', 'tags': 'tags', 'asset_extra_meta': 'asset_extra_meta', 'system_properties': 'system_properties', 'files': 'files' } - def __init__(self, asset_id=None, asset_name=None, asset_description=None, create_time=None, update_time=None, asset_type=None, asset_state=None, tags=None, asset_extra_meta=None, system_properties=None, files=None): + def __init__(self, asset_id=None, asset_name=None, asset_description=None, create_time=None, update_time=None, asset_type=None, asset_state=None, fail_type=None, reason=None, is_need_generate_cover=None, tags=None, asset_extra_meta=None, system_properties=None, files=None): """DigitalAssetInfo The model defined in huaweicloud sdk @@ -59,10 +65,16 @@ class DigitalAssetInfo: :type create_time: str :param update_time: 资产更新时间。 :type update_time: str - :param asset_type: 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + :param asset_type: 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :type asset_type: str :param asset_state: 资产状态。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK: 资产被冻结,资产不可用,不可查看文件。 :type asset_state: str + :param fail_type: 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + :type fail_type: str + :param reason: 冻结/解冻/失败 原因。 + :type reason: str + :param is_need_generate_cover: 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + :type is_need_generate_cover: bool :param tags: 标签列表。 :type tags: list[str] :param asset_extra_meta: @@ -82,6 +94,9 @@ class DigitalAssetInfo: self._update_time = None self._asset_type = None self._asset_state = None + self._fail_type = None + self._reason = None + self._is_need_generate_cover = None self._tags = None self._asset_extra_meta = None self._system_properties = None @@ -102,6 +117,12 @@ class DigitalAssetInfo: self.asset_type = asset_type if asset_state is not None: self.asset_state = asset_state + if fail_type is not None: + self.fail_type = fail_type + if reason is not None: + self.reason = reason + if is_need_generate_cover is not None: + self.is_need_generate_cover = is_need_generate_cover if tags is not None: self.tags = tags if asset_extra_meta is not None: @@ -225,7 +246,7 @@ class DigitalAssetInfo: def asset_type(self): """Gets the asset_type of this DigitalAssetInfo. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :return: The asset_type of this DigitalAssetInfo. :rtype: str @@ -236,7 +257,7 @@ class DigitalAssetInfo: def asset_type(self, asset_type): """Sets the asset_type of this DigitalAssetInfo. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :param asset_type: The asset_type of this DigitalAssetInfo. :type asset_type: str @@ -265,6 +286,72 @@ class DigitalAssetInfo: """ self._asset_state = asset_state + @property + def fail_type(self): + """Gets the fail_type of this DigitalAssetInfo. + + 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + + :return: The fail_type of this DigitalAssetInfo. + :rtype: str + """ + return self._fail_type + + @fail_type.setter + def fail_type(self, fail_type): + """Sets the fail_type of this DigitalAssetInfo. + + 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + + :param fail_type: The fail_type of this DigitalAssetInfo. + :type fail_type: str + """ + self._fail_type = fail_type + + @property + def reason(self): + """Gets the reason of this DigitalAssetInfo. + + 冻结/解冻/失败 原因。 + + :return: The reason of this DigitalAssetInfo. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this DigitalAssetInfo. + + 冻结/解冻/失败 原因。 + + :param reason: The reason of this DigitalAssetInfo. + :type reason: str + """ + self._reason = reason + + @property + def is_need_generate_cover(self): + """Gets the is_need_generate_cover of this DigitalAssetInfo. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :return: The is_need_generate_cover of this DigitalAssetInfo. + :rtype: bool + """ + return self._is_need_generate_cover + + @is_need_generate_cover.setter + def is_need_generate_cover(self, is_need_generate_cover): + """Sets the is_need_generate_cover of this DigitalAssetInfo. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :param is_need_generate_cover: The is_need_generate_cover of this DigitalAssetInfo. + :type is_need_generate_cover: bool + """ + self._is_need_generate_cover = is_need_generate_cover + @property def tags(self): """Gets the tags of this DigitalAssetInfo. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_summary.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_summary.py index 804236454..f2355c234 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_summary.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/digital_asset_summary.py @@ -39,7 +39,7 @@ class DigitalAssetSummary: :type asset_id: str :param asset_name: 资产名称。 :type asset_name: str - :param asset_type: 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + :param asset_type: 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :type asset_type: str :param cover_url: 封面图片路径。 :type cover_url: str @@ -110,7 +110,7 @@ class DigitalAssetSummary: def asset_type(self): """Gets the asset_type of this DigitalAssetSummary. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :return: The asset_type of this DigitalAssetSummary. :rtype: str @@ -121,7 +121,7 @@ class DigitalAssetSummary: def asset_type(self, asset_type): """Sets the asset_type of this DigitalAssetSummary. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :param asset_type: The asset_type of this DigitalAssetSummary. :type asset_type: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py index 00588cbdf..cfbe092dd 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_request.py @@ -39,7 +39,7 @@ class ExecuteSmartLiveCommandRequest: :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the ExecuteSmartLiveCommandRequest :type body: :class:`huaweicloudsdkmetastudio.v1.ControlSmartLiveReq` @@ -108,7 +108,7 @@ class ExecuteSmartLiveCommandRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ExecuteSmartLiveCommandRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ExecuteSmartLiveCommandRequest. :rtype: str @@ -119,7 +119,7 @@ class ExecuteSmartLiveCommandRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ExecuteSmartLiveCommandRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ExecuteSmartLiveCommandRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py index c7edfbb5e..2db329265 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_smart_live_command_response.py @@ -34,7 +34,7 @@ class ExecuteSmartLiveCommandResponse(SdkResponse): The model defined in huaweicloud sdk - :param command: 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_ADUIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 + :param command: 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_AUDIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 :type command: str :param result: 命令执行结果 :type result: str @@ -60,7 +60,7 @@ class ExecuteSmartLiveCommandResponse(SdkResponse): def command(self): """Gets the command of this ExecuteSmartLiveCommandResponse. - 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_ADUIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 + 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_AUDIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 :return: The command of this ExecuteSmartLiveCommandResponse. :rtype: str @@ -71,7 +71,7 @@ class ExecuteSmartLiveCommandResponse(SdkResponse): def command(self, command): """Sets the command of this ExecuteSmartLiveCommandResponse. - 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_ADUIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 + 命令名称。 - INSERT_PLAY_SCRIPT: 插入表演脚本。用于互动回复。数字人不变,背景不变。params结构定义:ShootScript - REWRITE_PLAY_SCRIPT: 动态编辑未播放剧本。params结构定义:scence_scripts - INSERT_PLAY_AUDIO: 插入驱动音频。用于音频直接驱动。数字人不变,背景不变。params结构定义:PlayAudioInfo - GET_CURRENT_PLAYING_SCRIPTS: 查询本轮剧本列表。响应为LivePlayingScriptList结构 :param command: The command of this ExecuteSmartLiveCommandResponse. :type command: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py index 5d2771f32..df7ca6322 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/execute_video_motion_capture_command_request.py @@ -35,7 +35,7 @@ class ExecuteVideoMotionCaptureCommandRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the ExecuteVideoMotionCaptureCommandRequest :type body: :class:`huaweicloudsdkmetastudio.v1.ControlDigitalHumanLiveReq` @@ -80,7 +80,7 @@ class ExecuteVideoMotionCaptureCommandRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. :rtype: str @@ -91,7 +91,7 @@ class ExecuteVideoMotionCaptureCommandRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ExecuteVideoMotionCaptureCommandRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/external_voice_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/external_voice_asset_meta.py deleted file mode 100644 index b6d85ee60..000000000 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/external_voice_asset_meta.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class ExternalVoiceAssetMeta: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'provider': 'str', - 'ximalaya_voice_meta': 'XimalayaVoiceAssetMeta', - 'huawei_ei_voice_meta': 'HuaweiEIVoiceAssetMeta' - } - - attribute_map = { - 'provider': 'provider', - 'ximalaya_voice_meta': 'ximalaya_voice_meta', - 'huawei_ei_voice_meta': 'huawei_ei_voice_meta' - } - - def __init__(self, provider=None, ximalaya_voice_meta=None, huawei_ei_voice_meta=None): - """ExternalVoiceAssetMeta - - The model defined in huaweicloud sdk - - :param provider: 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI: 华为云EI TTS - :type provider: str - :param ximalaya_voice_meta: - :type ximalaya_voice_meta: :class:`huaweicloudsdkmetastudio.v1.XimalayaVoiceAssetMeta` - :param huawei_ei_voice_meta: - :type huawei_ei_voice_meta: :class:`huaweicloudsdkmetastudio.v1.HuaweiEIVoiceAssetMeta` - """ - - - - self._provider = None - self._ximalaya_voice_meta = None - self._huawei_ei_voice_meta = None - self.discriminator = None - - self.provider = provider - if ximalaya_voice_meta is not None: - self.ximalaya_voice_meta = ximalaya_voice_meta - if huawei_ei_voice_meta is not None: - self.huawei_ei_voice_meta = huawei_ei_voice_meta - - @property - def provider(self): - """Gets the provider of this ExternalVoiceAssetMeta. - - 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI: 华为云EI TTS - - :return: The provider of this ExternalVoiceAssetMeta. - :rtype: str - """ - return self._provider - - @provider.setter - def provider(self, provider): - """Sets the provider of this ExternalVoiceAssetMeta. - - 第三方TTS供应商类型。 * XIMALAYA:喜马拉雅TTS * HUAWEI_EI: 华为云EI TTS - - :param provider: The provider of this ExternalVoiceAssetMeta. - :type provider: str - """ - self._provider = provider - - @property - def ximalaya_voice_meta(self): - """Gets the ximalaya_voice_meta of this ExternalVoiceAssetMeta. - - :return: The ximalaya_voice_meta of this ExternalVoiceAssetMeta. - :rtype: :class:`huaweicloudsdkmetastudio.v1.XimalayaVoiceAssetMeta` - """ - return self._ximalaya_voice_meta - - @ximalaya_voice_meta.setter - def ximalaya_voice_meta(self, ximalaya_voice_meta): - """Sets the ximalaya_voice_meta of this ExternalVoiceAssetMeta. - - :param ximalaya_voice_meta: The ximalaya_voice_meta of this ExternalVoiceAssetMeta. - :type ximalaya_voice_meta: :class:`huaweicloudsdkmetastudio.v1.XimalayaVoiceAssetMeta` - """ - self._ximalaya_voice_meta = ximalaya_voice_meta - - @property - def huawei_ei_voice_meta(self): - """Gets the huawei_ei_voice_meta of this ExternalVoiceAssetMeta. - - :return: The huawei_ei_voice_meta of this ExternalVoiceAssetMeta. - :rtype: :class:`huaweicloudsdkmetastudio.v1.HuaweiEIVoiceAssetMeta` - """ - return self._huawei_ei_voice_meta - - @huawei_ei_voice_meta.setter - def huawei_ei_voice_meta(self, huawei_ei_voice_meta): - """Sets the huawei_ei_voice_meta of this ExternalVoiceAssetMeta. - - :param huawei_ei_voice_meta: The huawei_ei_voice_meta of this ExternalVoiceAssetMeta. - :type huawei_ei_voice_meta: :class:`huaweicloudsdkmetastudio.v1.HuaweiEIVoiceAssetMeta` - """ - self._huawei_ei_voice_meta = huawei_ei_voice_meta - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExternalVoiceAssetMeta): - return False - - return self.__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/files_create_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/files_create_req.py index bc680c876..2e2769a27 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 @@ class FilesCreateReq: :param file_name: 文件名,不区分大小写,最大长度256,最小长度1。 :type file_name: str - :param file_md5: 文件内容MD5值,MD5值需要进行Base64编码。 + :param file_md5: 文件内容MD5值,MD5值需要进行Base64编码。编码后字符串长度是24字节。 :type file_md5: str :param file_size: 文件总的大小,最小1,最大5368709120。 :type file_size: int @@ -49,7 +49,7 @@ class FilesCreateReq: :type file_type: str :param asset_id: 资产ID。 :type asset_id: str - :param asset_file_category: 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * COVER:封面文件 * PAGE:内容页图片 * SAMPLE:样例音频 * OTHER:其他文件 * WHOLE_MODEL:全模型 * USER_MODIFIED_MODEL:用户上传模型 > * 资产类型为SCENE、ANIMATION、VIDEO、IMAGE、MATERIAL时,包含MAIN、COVER和OTHER > * 资产类型为PPT时,包含MAIN、COVER、PAGE和OTHER > * 资产类型为HUMAN_MODEL时,包含MAIN、COVER、WHOLE_MODEL、USER_MODIFIED_MODEL和OTHER > * 资产类型为VOICE_MODEL时,包含MAIN、SAMPLE(样例音频文件)和OTHER > * 资产类型为HUMAN_MODEL_2D时,包含MAIN、COVER、SAMPLE(动作样例)和OTHER(遮罩文件) > * 资产类型为BUSINESS_CARD_TEMPLET时,包含MAIN和COVER(名片效果图) + :param asset_file_category: 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * COVER:封面文件 * PAGE:PPT内容页图片文件 * SAMPLE:样例音频或样例动作文件 * OTHER:其他文件 * WHOLE_MODEL:全模型文件(3D数字人) * USER_MODIFIED_MODEL:用户上传模型(3D数字人) > * 资产类型为SCENE、ANIMATION、VIDEO、IMAGE、MATERIAL时,包含MAIN、COVER和OTHER > * 资产类型为PPT时,包含MAIN、COVER、PAGE和OTHER > * 资产类型为HUMAN_MODEL时,包含MAIN、COVER、WHOLE_MODEL、USER_MODIFIED_MODEL和OTHER > * 资产类型为VOICE_MODEL时,包含MAIN、SAMPLE(样例音频文件)和OTHER > * 资产类型为HUMAN_MODEL_2D时,包含MAIN、COVER、SAMPLE(动作样例)和OTHER > * 资产类型为BUSINESS_CARD_TEMPLET时,包含MAIN和COVER(名片效果图) > * 资产类型为IMAGE时,包含MAIN > * 资产类型为VIDEO时,包含MAIN、COVER :type asset_file_category: str """ @@ -96,7 +96,7 @@ class FilesCreateReq: def file_md5(self): """Gets the file_md5 of this FilesCreateReq. - 文件内容MD5值,MD5值需要进行Base64编码。 + 文件内容MD5值,MD5值需要进行Base64编码。编码后字符串长度是24字节。 :return: The file_md5 of this FilesCreateReq. :rtype: str @@ -107,7 +107,7 @@ class FilesCreateReq: def file_md5(self, file_md5): """Sets the file_md5 of this FilesCreateReq. - 文件内容MD5值,MD5值需要进行Base64编码。 + 文件内容MD5值,MD5值需要进行Base64编码。编码后字符串长度是24字节。 :param file_md5: The file_md5 of this FilesCreateReq. :type file_md5: str @@ -184,7 +184,7 @@ class FilesCreateReq: def asset_file_category(self): """Gets the asset_file_category of this FilesCreateReq. - 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * COVER:封面文件 * PAGE:内容页图片 * SAMPLE:样例音频 * OTHER:其他文件 * WHOLE_MODEL:全模型 * USER_MODIFIED_MODEL:用户上传模型 > * 资产类型为SCENE、ANIMATION、VIDEO、IMAGE、MATERIAL时,包含MAIN、COVER和OTHER > * 资产类型为PPT时,包含MAIN、COVER、PAGE和OTHER > * 资产类型为HUMAN_MODEL时,包含MAIN、COVER、WHOLE_MODEL、USER_MODIFIED_MODEL和OTHER > * 资产类型为VOICE_MODEL时,包含MAIN、SAMPLE(样例音频文件)和OTHER > * 资产类型为HUMAN_MODEL_2D时,包含MAIN、COVER、SAMPLE(动作样例)和OTHER(遮罩文件) > * 资产类型为BUSINESS_CARD_TEMPLET时,包含MAIN和COVER(名片效果图) + 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * COVER:封面文件 * PAGE:PPT内容页图片文件 * SAMPLE:样例音频或样例动作文件 * OTHER:其他文件 * WHOLE_MODEL:全模型文件(3D数字人) * USER_MODIFIED_MODEL:用户上传模型(3D数字人) > * 资产类型为SCENE、ANIMATION、VIDEO、IMAGE、MATERIAL时,包含MAIN、COVER和OTHER > * 资产类型为PPT时,包含MAIN、COVER、PAGE和OTHER > * 资产类型为HUMAN_MODEL时,包含MAIN、COVER、WHOLE_MODEL、USER_MODIFIED_MODEL和OTHER > * 资产类型为VOICE_MODEL时,包含MAIN、SAMPLE(样例音频文件)和OTHER > * 资产类型为HUMAN_MODEL_2D时,包含MAIN、COVER、SAMPLE(动作样例)和OTHER > * 资产类型为BUSINESS_CARD_TEMPLET时,包含MAIN和COVER(名片效果图) > * 资产类型为IMAGE时,包含MAIN > * 资产类型为VIDEO时,包含MAIN、COVER :return: The asset_file_category of this FilesCreateReq. :rtype: str @@ -195,7 +195,7 @@ class FilesCreateReq: def asset_file_category(self, asset_file_category): """Sets the asset_file_category of this FilesCreateReq. - 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * COVER:封面文件 * PAGE:内容页图片 * SAMPLE:样例音频 * OTHER:其他文件 * WHOLE_MODEL:全模型 * USER_MODIFIED_MODEL:用户上传模型 > * 资产类型为SCENE、ANIMATION、VIDEO、IMAGE、MATERIAL时,包含MAIN、COVER和OTHER > * 资产类型为PPT时,包含MAIN、COVER、PAGE和OTHER > * 资产类型为HUMAN_MODEL时,包含MAIN、COVER、WHOLE_MODEL、USER_MODIFIED_MODEL和OTHER > * 资产类型为VOICE_MODEL时,包含MAIN、SAMPLE(样例音频文件)和OTHER > * 资产类型为HUMAN_MODEL_2D时,包含MAIN、COVER、SAMPLE(动作样例)和OTHER(遮罩文件) > * 资产类型为BUSINESS_CARD_TEMPLET时,包含MAIN和COVER(名片效果图) + 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * COVER:封面文件 * PAGE:PPT内容页图片文件 * SAMPLE:样例音频或样例动作文件 * OTHER:其他文件 * WHOLE_MODEL:全模型文件(3D数字人) * USER_MODIFIED_MODEL:用户上传模型(3D数字人) > * 资产类型为SCENE、ANIMATION、VIDEO、IMAGE、MATERIAL时,包含MAIN、COVER和OTHER > * 资产类型为PPT时,包含MAIN、COVER、PAGE和OTHER > * 资产类型为HUMAN_MODEL时,包含MAIN、COVER、WHOLE_MODEL、USER_MODIFIED_MODEL和OTHER > * 资产类型为VOICE_MODEL时,包含MAIN、SAMPLE(样例音频文件)和OTHER > * 资产类型为HUMAN_MODEL_2D时,包含MAIN、COVER、SAMPLE(动作样例)和OTHER > * 资产类型为BUSINESS_CARD_TEMPLET时,包含MAIN和COVER(名片效果图) > * 资产类型为IMAGE时,包含MAIN > * 资产类型为VIDEO时,包含MAIN、COVER :param asset_file_category: The asset_file_category of this FilesCreateReq. :type asset_file_category: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_voice_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_voice_asset_meta.py deleted file mode 100644 index 1c8527dd2..000000000 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/huawei_ei_voice_asset_meta.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class HuaweiEIVoiceAssetMeta: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - '_property': 'str', - 'is_cloned_voice': 'bool', - 'training_job_id': 'str' - } - - attribute_map = { - '_property': 'property', - 'is_cloned_voice': 'is_cloned_voice', - 'training_job_id': 'training_job_id' - } - - def __init__(self, _property=None, is_cloned_voice=None, training_job_id=None): - """HuaweiEIVoiceAssetMeta - - The model defined in huaweicloud sdk - - :param _property: 音色属性。 - :type _property: str - :param is_cloned_voice: 是否是克隆音色,默认是false。 - :type is_cloned_voice: bool - :param training_job_id: 音色克隆时的训练任务ID。当is_cloned_voice=true时需要填写。 - :type training_job_id: str - """ - - - - self.__property = None - self._is_cloned_voice = None - self._training_job_id = None - self.discriminator = None - - self._property = _property - if is_cloned_voice is not None: - self.is_cloned_voice = is_cloned_voice - if training_job_id is not None: - self.training_job_id = training_job_id - - @property - def _property(self): - """Gets the _property of this HuaweiEIVoiceAssetMeta. - - 音色属性。 - - :return: The _property of this HuaweiEIVoiceAssetMeta. - :rtype: str - """ - return self.__property - - @_property.setter - def _property(self, _property): - """Sets the _property of this HuaweiEIVoiceAssetMeta. - - 音色属性。 - - :param _property: The _property of this HuaweiEIVoiceAssetMeta. - :type _property: str - """ - self.__property = _property - - @property - def is_cloned_voice(self): - """Gets the is_cloned_voice of this HuaweiEIVoiceAssetMeta. - - 是否是克隆音色,默认是false。 - - :return: The is_cloned_voice of this HuaweiEIVoiceAssetMeta. - :rtype: bool - """ - return self._is_cloned_voice - - @is_cloned_voice.setter - def is_cloned_voice(self, is_cloned_voice): - """Sets the is_cloned_voice of this HuaweiEIVoiceAssetMeta. - - 是否是克隆音色,默认是false。 - - :param is_cloned_voice: The is_cloned_voice of this HuaweiEIVoiceAssetMeta. - :type is_cloned_voice: bool - """ - self._is_cloned_voice = is_cloned_voice - - @property - def training_job_id(self): - """Gets the training_job_id of this HuaweiEIVoiceAssetMeta. - - 音色克隆时的训练任务ID。当is_cloned_voice=true时需要填写。 - - :return: The training_job_id of this HuaweiEIVoiceAssetMeta. - :rtype: str - """ - return self._training_job_id - - @training_job_id.setter - def training_job_id(self, training_job_id): - """Sets the training_job_id of this HuaweiEIVoiceAssetMeta. - - 音色克隆时的训练任务ID。当is_cloned_voice=true时需要填写。 - - :param training_job_id: The training_job_id of this HuaweiEIVoiceAssetMeta. - :type training_job_id: str - """ - self._training_job_id = training_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, HuaweiEIVoiceAssetMeta): - return False - - return self.__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/human_model2_d_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/human_model2_d_asset_meta.py index d3d990d10..e1045d333 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/human_model2_d_asset_meta.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/human_model2_d_asset_meta.py @@ -20,17 +20,19 @@ class HumanModel2DAssetMeta: 'is_action_editable': 'bool', 'is_real_background': 'bool', 'support_live': 'bool', - 'model_version': 'str' + 'model_version': 'str', + 'model_resolution': 'str' } attribute_map = { 'is_action_editable': 'is_action_editable', 'is_real_background': 'is_real_background', 'support_live': 'support_live', - 'model_version': 'model_version' + 'model_version': 'model_version', + 'model_resolution': 'model_resolution' } - def __init__(self, is_action_editable=None, is_real_background=None, support_live=None, model_version=None): + def __init__(self, is_action_editable=None, is_real_background=None, support_live=None, model_version=None, model_resolution=None): """HumanModel2DAssetMeta The model defined in huaweicloud sdk @@ -43,6 +45,8 @@ class HumanModel2DAssetMeta: :type support_live: bool :param model_version: 分身数字人模型版本。默认是V2版本模型。 * V2: V2版本模型 * V3:V3版本模型 :type model_version: str + :param model_resolution: 分身数字人模型分辨率。默认是1080P。 * 1080P:1080P。支持1080P及720P的视频输出。 * 4K:4K。支持4K、1080P及720P的视频输出。 + :type model_resolution: str """ @@ -51,6 +55,7 @@ class HumanModel2DAssetMeta: self._is_real_background = None self._support_live = None self._model_version = None + self._model_resolution = None self.discriminator = None if is_action_editable is not None: @@ -61,6 +66,8 @@ class HumanModel2DAssetMeta: self.support_live = support_live if model_version is not None: self.model_version = model_version + if model_resolution is not None: + self.model_resolution = model_resolution @property def is_action_editable(self): @@ -150,6 +157,28 @@ class HumanModel2DAssetMeta: """ self._model_version = model_version + @property + def model_resolution(self): + """Gets the model_resolution of this HumanModel2DAssetMeta. + + 分身数字人模型分辨率。默认是1080P。 * 1080P:1080P。支持1080P及720P的视频输出。 * 4K:4K。支持4K、1080P及720P的视频输出。 + + :return: The model_resolution of this HumanModel2DAssetMeta. + :rtype: str + """ + return self._model_resolution + + @model_resolution.setter + def model_resolution(self, model_resolution): + """Sets the model_resolution of this HumanModel2DAssetMeta. + + 分身数字人模型分辨率。默认是1080P。 * 1080P:1080P。支持1080P及720P的视频输出。 * 4K:4K。支持4K、1080P及720P的视频输出。 + + :param model_resolution: The model_resolution of this HumanModel2DAssetMeta. + :type model_resolution: str + """ + self._model_resolution = model_resolution + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_detail_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_detail_info.py new file mode 100644 index 000000000..b1bf0c625 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_detail_info.py @@ -0,0 +1,364 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InteractionRuleDetailInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'rule_index': 'str', + 'rule_name': 'str', + 'enabled': 'bool', + 'event_type': 'int', + 'hit_condition': 'HitCondition', + 'trigger': 'TriggerProcess', + 'review_config': 'ReviewConfig', + 'rule_id': 'str', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'rule_index': 'rule_index', + 'rule_name': 'rule_name', + 'enabled': 'enabled', + 'event_type': 'event_type', + 'hit_condition': 'hit_condition', + 'trigger': 'trigger', + 'review_config': 'review_config', + 'rule_id': 'rule_id', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, rule_index=None, rule_name=None, enabled=None, event_type=None, hit_condition=None, trigger=None, review_config=None, rule_id=None, create_time=None, update_time=None): + """InteractionRuleDetailInfo + + The model defined in huaweicloud sdk + + :param rule_index: 规则索引 + :type rule_index: str + :param rule_name: 规则名称 + :type rule_name: str + :param enabled: 是否启用 + :type enabled: bool + :param event_type: 事件类型。 * 1:弹幕事件 * 2:用户入场事件 * 3:用户点赞事件 * 4:用户送礼事件 * 10: 预置话术事件 + :type event_type: int + :param hit_condition: + :type hit_condition: :class:`huaweicloudsdkmetastudio.v1.HitCondition` + :param trigger: + :type trigger: :class:`huaweicloudsdkmetastudio.v1.TriggerProcess` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param rule_id: 互动规则ID + :type rule_id: str + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + """ + + + + self._rule_index = None + self._rule_name = None + self._enabled = None + self._event_type = None + self._hit_condition = None + self._trigger = None + self._review_config = None + self._rule_id = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if rule_index is not None: + self.rule_index = rule_index + if rule_name is not None: + self.rule_name = rule_name + if enabled is not None: + self.enabled = enabled + if event_type is not None: + self.event_type = event_type + if hit_condition is not None: + self.hit_condition = hit_condition + if trigger is not None: + self.trigger = trigger + if review_config is not None: + self.review_config = review_config + if rule_id is not None: + self.rule_id = rule_id + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def rule_index(self): + """Gets the rule_index of this InteractionRuleDetailInfo. + + 规则索引 + + :return: The rule_index of this InteractionRuleDetailInfo. + :rtype: str + """ + return self._rule_index + + @rule_index.setter + def rule_index(self, rule_index): + """Sets the rule_index of this InteractionRuleDetailInfo. + + 规则索引 + + :param rule_index: The rule_index of this InteractionRuleDetailInfo. + :type rule_index: str + """ + self._rule_index = rule_index + + @property + def rule_name(self): + """Gets the rule_name of this InteractionRuleDetailInfo. + + 规则名称 + + :return: The rule_name of this InteractionRuleDetailInfo. + :rtype: str + """ + return self._rule_name + + @rule_name.setter + def rule_name(self, rule_name): + """Sets the rule_name of this InteractionRuleDetailInfo. + + 规则名称 + + :param rule_name: The rule_name of this InteractionRuleDetailInfo. + :type rule_name: str + """ + self._rule_name = rule_name + + @property + def enabled(self): + """Gets the enabled of this InteractionRuleDetailInfo. + + 是否启用 + + :return: The enabled of this InteractionRuleDetailInfo. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this InteractionRuleDetailInfo. + + 是否启用 + + :param enabled: The enabled of this InteractionRuleDetailInfo. + :type enabled: bool + """ + self._enabled = enabled + + @property + def event_type(self): + """Gets the event_type of this InteractionRuleDetailInfo. + + 事件类型。 * 1:弹幕事件 * 2:用户入场事件 * 3:用户点赞事件 * 4:用户送礼事件 * 10: 预置话术事件 + + :return: The event_type of this InteractionRuleDetailInfo. + :rtype: int + """ + return self._event_type + + @event_type.setter + def event_type(self, event_type): + """Sets the event_type of this InteractionRuleDetailInfo. + + 事件类型。 * 1:弹幕事件 * 2:用户入场事件 * 3:用户点赞事件 * 4:用户送礼事件 * 10: 预置话术事件 + + :param event_type: The event_type of this InteractionRuleDetailInfo. + :type event_type: int + """ + self._event_type = event_type + + @property + def hit_condition(self): + """Gets the hit_condition of this InteractionRuleDetailInfo. + + :return: The hit_condition of this InteractionRuleDetailInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.HitCondition` + """ + return self._hit_condition + + @hit_condition.setter + def hit_condition(self, hit_condition): + """Sets the hit_condition of this InteractionRuleDetailInfo. + + :param hit_condition: The hit_condition of this InteractionRuleDetailInfo. + :type hit_condition: :class:`huaweicloudsdkmetastudio.v1.HitCondition` + """ + self._hit_condition = hit_condition + + @property + def trigger(self): + """Gets the trigger of this InteractionRuleDetailInfo. + + :return: The trigger of this InteractionRuleDetailInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.TriggerProcess` + """ + return self._trigger + + @trigger.setter + def trigger(self, trigger): + """Sets the trigger of this InteractionRuleDetailInfo. + + :param trigger: The trigger of this InteractionRuleDetailInfo. + :type trigger: :class:`huaweicloudsdkmetastudio.v1.TriggerProcess` + """ + self._trigger = trigger + + @property + def review_config(self): + """Gets the review_config of this InteractionRuleDetailInfo. + + :return: The review_config of this InteractionRuleDetailInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this InteractionRuleDetailInfo. + + :param review_config: The review_config of this InteractionRuleDetailInfo. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def rule_id(self): + """Gets the rule_id of this InteractionRuleDetailInfo. + + 互动规则ID + + :return: The rule_id of this InteractionRuleDetailInfo. + :rtype: str + """ + return self._rule_id + + @rule_id.setter + def rule_id(self, rule_id): + """Sets the rule_id of this InteractionRuleDetailInfo. + + 互动规则ID + + :param rule_id: The rule_id of this InteractionRuleDetailInfo. + :type rule_id: str + """ + self._rule_id = rule_id + + @property + def create_time(self): + """Gets the create_time of this InteractionRuleDetailInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this InteractionRuleDetailInfo. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this InteractionRuleDetailInfo. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this InteractionRuleDetailInfo. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this InteractionRuleDetailInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this InteractionRuleDetailInfo. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this InteractionRuleDetailInfo. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this InteractionRuleDetailInfo. + :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, InteractionRuleDetailInfo): + return False + + return self.__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/interaction_rule_group.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_group.py new file mode 100644 index 000000000..666d6c19b --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_group.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InteractionRuleGroup: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_name': 'str', + 'interaction_rules': 'list[InteractionRuleInfo]' + } + + attribute_map = { + 'group_name': 'group_name', + 'interaction_rules': 'interaction_rules' + } + + def __init__(self, group_name=None, interaction_rules=None): + """InteractionRuleGroup + + The model defined in huaweicloud sdk + + :param group_name: 互动规则库名称 + :type group_name: str + :param interaction_rules: 互动规则列表 + :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleInfo`] + """ + + + + self._group_name = None + self._interaction_rules = None + self.discriminator = None + + self.group_name = group_name + if interaction_rules is not None: + self.interaction_rules = interaction_rules + + @property + def group_name(self): + """Gets the group_name of this InteractionRuleGroup. + + 互动规则库名称 + + :return: The group_name of this InteractionRuleGroup. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this InteractionRuleGroup. + + 互动规则库名称 + + :param group_name: The group_name of this InteractionRuleGroup. + :type group_name: str + """ + self._group_name = group_name + + @property + def interaction_rules(self): + """Gets the interaction_rules of this InteractionRuleGroup. + + 互动规则列表 + + :return: The interaction_rules of this InteractionRuleGroup. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleInfo`] + """ + return self._interaction_rules + + @interaction_rules.setter + def interaction_rules(self, interaction_rules): + """Sets the interaction_rules of this InteractionRuleGroup. + + 互动规则列表 + + :param interaction_rules: The interaction_rules of this InteractionRuleGroup. + :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleInfo`] + """ + self._interaction_rules = interaction_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, InteractionRuleGroup): + return False + + return self.__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/interaction_rule_group_detail.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_group_detail.py new file mode 100644 index 000000000..2ed976e2b --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_group_detail.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class InteractionRuleGroupDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_id': 'str', + 'group_name': 'str', + 'interaction_rules': 'list[InteractionRuleDetailInfo]', + 'create_time': 'str', + 'update_time': 'str' + } + + attribute_map = { + 'group_id': 'group_id', + 'group_name': 'group_name', + 'interaction_rules': 'interaction_rules', + 'create_time': 'create_time', + 'update_time': 'update_time' + } + + def __init__(self, group_id=None, group_name=None, interaction_rules=None, create_time=None, update_time=None): + """InteractionRuleGroupDetail + + The model defined in huaweicloud sdk + + :param group_id: 互动规则库ID + :type group_id: str + :param group_name: 互动规则库名称 + :type group_name: str + :param interaction_rules: 互动规则列表 + :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleDetailInfo`] + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + """ + + + + self._group_id = None + self._group_name = None + self._interaction_rules = None + self._create_time = None + self._update_time = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + self.group_name = group_name + if interaction_rules is not None: + self.interaction_rules = interaction_rules + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def group_id(self): + """Gets the group_id of this InteractionRuleGroupDetail. + + 互动规则库ID + + :return: The group_id of this InteractionRuleGroupDetail. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this InteractionRuleGroupDetail. + + 互动规则库ID + + :param group_id: The group_id of this InteractionRuleGroupDetail. + :type group_id: str + """ + self._group_id = group_id + + @property + def group_name(self): + """Gets the group_name of this InteractionRuleGroupDetail. + + 互动规则库名称 + + :return: The group_name of this InteractionRuleGroupDetail. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this InteractionRuleGroupDetail. + + 互动规则库名称 + + :param group_name: The group_name of this InteractionRuleGroupDetail. + :type group_name: str + """ + self._group_name = group_name + + @property + def interaction_rules(self): + """Gets the interaction_rules of this InteractionRuleGroupDetail. + + 互动规则列表 + + :return: The interaction_rules of this InteractionRuleGroupDetail. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleDetailInfo`] + """ + return self._interaction_rules + + @interaction_rules.setter + def interaction_rules(self, interaction_rules): + """Sets the interaction_rules of this InteractionRuleGroupDetail. + + 互动规则列表 + + :param interaction_rules: The interaction_rules of this InteractionRuleGroupDetail. + :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleDetailInfo`] + """ + self._interaction_rules = interaction_rules + + @property + def create_time(self): + """Gets the create_time of this InteractionRuleGroupDetail. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this InteractionRuleGroupDetail. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this InteractionRuleGroupDetail. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this InteractionRuleGroupDetail. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this InteractionRuleGroupDetail. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this InteractionRuleGroupDetail. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this InteractionRuleGroupDetail. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this InteractionRuleGroupDetail. + :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, InteractionRuleGroupDetail): + return False + + return self.__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/interaction_rule_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_info.py index 886e15156..1b72766ae 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/interaction_rule_info.py @@ -17,47 +17,59 @@ class InteractionRuleInfo: sensitive_list = [] openapi_types = { + 'rule_index': 'str', 'rule_name': 'str', 'enabled': 'bool', 'event_type': 'int', 'hit_condition': 'HitCondition', - 'trigger': 'TriggerProcess' + 'trigger': 'TriggerProcess', + 'review_config': 'ReviewConfig' } attribute_map = { + 'rule_index': 'rule_index', 'rule_name': 'rule_name', 'enabled': 'enabled', 'event_type': 'event_type', 'hit_condition': 'hit_condition', - 'trigger': 'trigger' + 'trigger': 'trigger', + 'review_config': 'review_config' } - def __init__(self, rule_name=None, enabled=None, event_type=None, hit_condition=None, trigger=None): + def __init__(self, rule_index=None, rule_name=None, enabled=None, event_type=None, hit_condition=None, trigger=None, review_config=None): """InteractionRuleInfo The model defined in huaweicloud sdk + :param rule_index: 规则索引 + :type rule_index: str :param rule_name: 规则名称 :type rule_name: str :param enabled: 是否启用 :type enabled: bool - :param event_type: 事件类型 + :param event_type: 事件类型。 * 1:弹幕事件 * 2:用户入场事件 * 3:用户点赞事件 * 4:用户送礼事件 * 10: 预置话术事件 :type event_type: int :param hit_condition: :type hit_condition: :class:`huaweicloudsdkmetastudio.v1.HitCondition` :param trigger: :type trigger: :class:`huaweicloudsdkmetastudio.v1.TriggerProcess` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` """ + self._rule_index = None self._rule_name = None self._enabled = None self._event_type = None self._hit_condition = None self._trigger = None + self._review_config = None self.discriminator = None + if rule_index is not None: + self.rule_index = rule_index if rule_name is not None: self.rule_name = rule_name if enabled is not None: @@ -68,6 +80,30 @@ class InteractionRuleInfo: self.hit_condition = hit_condition if trigger is not None: self.trigger = trigger + if review_config is not None: + self.review_config = review_config + + @property + def rule_index(self): + """Gets the rule_index of this InteractionRuleInfo. + + 规则索引 + + :return: The rule_index of this InteractionRuleInfo. + :rtype: str + """ + return self._rule_index + + @rule_index.setter + def rule_index(self, rule_index): + """Sets the rule_index of this InteractionRuleInfo. + + 规则索引 + + :param rule_index: The rule_index of this InteractionRuleInfo. + :type rule_index: str + """ + self._rule_index = rule_index @property def rule_name(self): @@ -117,7 +153,7 @@ class InteractionRuleInfo: def event_type(self): """Gets the event_type of this InteractionRuleInfo. - 事件类型 + 事件类型。 * 1:弹幕事件 * 2:用户入场事件 * 3:用户点赞事件 * 4:用户送礼事件 * 10: 预置话术事件 :return: The event_type of this InteractionRuleInfo. :rtype: int @@ -128,7 +164,7 @@ class InteractionRuleInfo: def event_type(self, event_type): """Sets the event_type of this InteractionRuleInfo. - 事件类型 + 事件类型。 * 1:弹幕事件 * 2:用户入场事件 * 3:用户点赞事件 * 4:用户送礼事件 * 10: 预置话术事件 :param event_type: The event_type of this InteractionRuleInfo. :type event_type: int @@ -171,6 +207,24 @@ class InteractionRuleInfo: """ self._trigger = trigger + @property + def review_config(self): + """Gets the review_config of this InteractionRuleInfo. + + :return: The review_config of this InteractionRuleInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this InteractionRuleInfo. + + :param review_config: The review_config of this InteractionRuleInfo. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language_check_info_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language_check_info_req.py new file mode 100644 index 000000000..2f78ce01e --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/language_check_info_req.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LanguageCheckInfoReq: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'target_language': 'str', + 'shoot_script': 'list[LiveShootScriptItem]' + } + + attribute_map = { + 'target_language': 'target_language', + 'shoot_script': 'shoot_script' + } + + def __init__(self, target_language=None, shoot_script=None): + """LanguageCheckInfoReq + + The model defined in huaweicloud sdk + + :param target_language: 目标语言 + :type target_language: str + :param shoot_script: 用户传来的剧本文本信息 + :type shoot_script: list[:class:`huaweicloudsdkmetastudio.v1.LiveShootScriptItem`] + """ + + + + self._target_language = None + self._shoot_script = None + self.discriminator = None + + self.target_language = target_language + self.shoot_script = shoot_script + + @property + def target_language(self): + """Gets the target_language of this LanguageCheckInfoReq. + + 目标语言 + + :return: The target_language of this LanguageCheckInfoReq. + :rtype: str + """ + return self._target_language + + @target_language.setter + def target_language(self, target_language): + """Sets the target_language of this LanguageCheckInfoReq. + + 目标语言 + + :param target_language: The target_language of this LanguageCheckInfoReq. + :type target_language: str + """ + self._target_language = target_language + + @property + def shoot_script(self): + """Gets the shoot_script of this LanguageCheckInfoReq. + + 用户传来的剧本文本信息 + + :return: The shoot_script of this LanguageCheckInfoReq. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.LiveShootScriptItem`] + """ + return self._shoot_script + + @shoot_script.setter + def shoot_script(self, shoot_script): + """Sets the shoot_script of this LanguageCheckInfoReq. + + 用户传来的剧本文本信息 + + :param shoot_script: The shoot_script of this LanguageCheckInfoReq. + :type shoot_script: list[:class:`huaweicloudsdkmetastudio.v1.LiveShootScriptItem`] + """ + self._shoot_script = shoot_script + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LanguageCheckInfoReq): + return False + + return self.__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/layer_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_config.py index 619b2aa9e..123b3dd24 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_config.py @@ -18,6 +18,7 @@ class LayerConfig: openapi_types = { 'layer_type': 'str', + 'group_id': 'str', 'position': 'LayerPositionConfig', 'size': 'LayerSizeConfig', 'image_config': 'ImageLayerConfig', @@ -27,6 +28,7 @@ class LayerConfig: attribute_map = { 'layer_type': 'layer_type', + 'group_id': 'group_id', 'position': 'position', 'size': 'size', 'image_config': 'image_config', @@ -34,13 +36,15 @@ class LayerConfig: 'text_config': 'text_config' } - def __init__(self, layer_type=None, position=None, size=None, image_config=None, video_config=None, text_config=None): + def __init__(self, layer_type=None, group_id=None, position=None, size=None, image_config=None, video_config=None, text_config=None): """LayerConfig The model defined in huaweicloud sdk - :param layer_type: 图层类型。 - HUMAN: 人物图层 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + :param layer_type: 图层类型。 - HUMAN: 人物图层 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 - TEXT: 素材文字图层 :type layer_type: str + :param group_id: 多场景素材编组。同一group_id的素材,在应用全局时共享位置信息。 + :type group_id: str :param position: :type position: :class:`huaweicloudsdkmetastudio.v1.LayerPositionConfig` :param size: @@ -56,6 +60,7 @@ class LayerConfig: self._layer_type = None + self._group_id = None self._position = None self._size = None self._image_config = None @@ -64,6 +69,8 @@ class LayerConfig: self.discriminator = None self.layer_type = layer_type + if group_id is not None: + self.group_id = group_id self.position = position if size is not None: self.size = size @@ -78,7 +85,7 @@ class LayerConfig: def layer_type(self): """Gets the layer_type of this LayerConfig. - 图层类型。 - HUMAN: 人物图层 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + 图层类型。 - HUMAN: 人物图层 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 - TEXT: 素材文字图层 :return: The layer_type of this LayerConfig. :rtype: str @@ -89,13 +96,35 @@ class LayerConfig: def layer_type(self, layer_type): """Sets the layer_type of this LayerConfig. - 图层类型。 - HUMAN: 人物图层 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + 图层类型。 - HUMAN: 人物图层 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 - TEXT: 素材文字图层 :param layer_type: The layer_type of this LayerConfig. :type layer_type: str """ self._layer_type = layer_type + @property + def group_id(self): + """Gets the group_id of this LayerConfig. + + 多场景素材编组。同一group_id的素材,在应用全局时共享位置信息。 + + :return: The group_id of this LayerConfig. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this LayerConfig. + + 多场景素材编组。同一group_id的素材,在应用全局时共享位置信息。 + + :param group_id: The group_id of this LayerConfig. + :type group_id: str + """ + self._group_id = group_id + @property def position(self): """Gets the position of this LayerConfig. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_position_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_position_config.py index bc56779e1..e111d9083 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_position_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_position_config.py @@ -33,9 +33,9 @@ class LayerPositionConfig: The model defined in huaweicloud sdk - :param dx: 图层图片左上角像素点的X轴位置值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + :param dx: 图层左上角像素点的X轴位置值(画布左上角坐标是0x0)。 > * 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :type dx: int - :param dy: 图层图片左上角像素点的Y轴位置值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + :param dy: 图层图片左上角像素点的Y轴位置值(画布左上角坐标是0x0)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :type dy: int :param layer_index: 图片/视频/人物图的层顺序。 > * 图层顺序从1开始的整数,底层图层顺序是1,往上依次增加。 :type layer_index: int @@ -56,7 +56,7 @@ class LayerPositionConfig: def dx(self): """Gets the dx of this LayerPositionConfig. - 图层图片左上角像素点的X轴位置值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层左上角像素点的X轴位置值(画布左上角坐标是0x0)。 > * 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :return: The dx of this LayerPositionConfig. :rtype: int @@ -67,7 +67,7 @@ class LayerPositionConfig: def dx(self, dx): """Sets the dx of this LayerPositionConfig. - 图层图片左上角像素点的X轴位置值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层左上角像素点的X轴位置值(画布左上角坐标是0x0)。 > * 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :param dx: The dx of this LayerPositionConfig. :type dx: int @@ -78,7 +78,7 @@ class LayerPositionConfig: def dy(self): """Gets the dy of this LayerPositionConfig. - 图层图片左上角像素点的Y轴位置值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层图片左上角像素点的Y轴位置值(画布左上角坐标是0x0)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :return: The dy of this LayerPositionConfig. :rtype: int @@ -89,7 +89,7 @@ class LayerPositionConfig: def dy(self, dy): """Sets the dy of this LayerPositionConfig. - 图层图片左上角像素点的Y轴位置值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层图片左上角像素点的Y轴位置值(画布左上角坐标是0x0)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :param dy: The dy of this LayerPositionConfig. :type dy: int diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_size_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_size_config.py index 53adf69ac..608c87b7f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_size_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/layer_size_config.py @@ -31,9 +31,9 @@ class LayerSizeConfig: The model defined in huaweicloud sdk - :param width: 图层图片宽度像素值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + :param width: 图层图片宽度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :type width: int - :param height: 图层图片高度像素值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + :param height: 图层图片高度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :type height: int """ @@ -52,7 +52,7 @@ class LayerSizeConfig: def width(self): """Gets the width of this LayerSizeConfig. - 图层图片宽度像素值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层图片宽度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :return: The width of this LayerSizeConfig. :rtype: int @@ -63,7 +63,7 @@ class LayerSizeConfig: def width(self, width): """Sets the width of this LayerSizeConfig. - 图层图片宽度像素值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层图片宽度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :param width: The width of this LayerSizeConfig. :type width: int @@ -74,7 +74,7 @@ class LayerSizeConfig: def height(self): """Gets the height of this LayerSizeConfig. - 图层图片高度像素值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层图片高度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :return: The height of this LayerSizeConfig. :rtype: int @@ -85,7 +85,7 @@ class LayerSizeConfig: def height(self, height): """Sets the height of this LayerSizeConfig. - 图层图片高度像素值(相对背景图片)。 > 横屏(16:9)背景图片像素为1920x1080;竖屏(9:16)背景图片像素为1080x1920。 + 图层图片高度像素值(相对画布大小)。 > 横屏(16:9)画布像素为1920x1080;竖屏(9:16)画布像素为1080x1920。 :param height: The height of this LayerSizeConfig. :type height: int 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 180343779..f320ee632 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_assets_request.py @@ -63,7 +63,7 @@ class ListAssetsRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param limit: 每页显示的条目数量。 :type limit: int @@ -77,7 +77,7 @@ class ListAssetsRequest: :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: 音乐 + :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。 :type sort_key: str @@ -95,7 +95,7 @@ class ListAssetsRequest: :type sex: str :param language: 语言。多选使用英文逗号分隔。 :type language: str - :param system_property: 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: * STYLE_ID:风格Id * RENDER_ENGINE:引擎类型,可取值UE或MetaEngine * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) * CREATED_BY_PLATFORM:是否平台生成,可取值Yes + :param system_property: 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: 公共资产属性: * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * CREATED_BY_PLATFORM:是否平台生成,可取值Yes 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。可取值Yes * MATERIAL_VIDEO:素材视频,用作前景。可取值Yes * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes 3D数字人资产属性: * STYLE_ID:风格Id * RENDER_ENGINE:引擎类型,可取值UE或MetaEngine * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) :type system_property: str :param action_editable: 动作是否可编辑。仅在分身数字人模型查询时有效。 :type action_editable: bool @@ -164,7 +164,7 @@ class ListAssetsRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ListAssetsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListAssetsRequest. :rtype: str @@ -175,7 +175,7 @@ class ListAssetsRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListAssetsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListAssetsRequest. :type x_app_user_id: str @@ -318,7 +318,7 @@ class ListAssetsRequest: 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: 音乐 + 资产类型。多个类型使用英文逗号分割。 * 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 @@ -329,7 +329,7 @@ class ListAssetsRequest: 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: 音乐 + 资产类型。多个类型使用英文逗号分割。 * 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 @@ -516,7 +516,7 @@ class ListAssetsRequest: def system_property(self): """Gets the system_property of this ListAssetsRequest. - 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: * STYLE_ID:风格Id * RENDER_ENGINE:引擎类型,可取值UE或MetaEngine * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) * CREATED_BY_PLATFORM:是否平台生成,可取值Yes + 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: 公共资产属性: * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * CREATED_BY_PLATFORM:是否平台生成,可取值Yes 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。可取值Yes * MATERIAL_VIDEO:素材视频,用作前景。可取值Yes * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes 3D数字人资产属性: * STYLE_ID:风格Id * RENDER_ENGINE:引擎类型,可取值UE或MetaEngine * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) :return: The system_property of this ListAssetsRequest. :rtype: str @@ -527,7 +527,7 @@ class ListAssetsRequest: def system_property(self, system_property): """Sets the system_property of this ListAssetsRequest. - 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: * STYLE_ID:风格Id * RENDER_ENGINE:引擎类型,可取值UE或MetaEngine * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) * CREATED_BY_PLATFORM:是否平台生成,可取值Yes + 系统属性。 key和value间用\":\"分隔,多个key之间用\",\"分隔。 如system_property=BACKGROUND_IMG:Yes,RENDER_ENGINE:MetaEngine。 不同Key对应Value取值如下: 公共资产属性: * BACKGROUND_IMG:视频制作的2D背景图片,可取值Yes * CREATED_BY_PLATFORM:是否平台生成,可取值Yes 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。可取值Yes * MATERIAL_VIDEO:素材视频,用作前景。可取值Yes * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes 3D数字人资产属性: * STYLE_ID:风格Id * RENDER_ENGINE:引擎类型,可取值UE或MetaEngine * BACKGROUND_SCENE:视频制作的2D背景场景,可取值Horizontal(横屏)或者Vertical(竖屏) :param system_property: The system_property of this ListAssetsRequest. :type system_property: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py index 4c20e6f5b..081419f57 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_business_card_request.py @@ -45,7 +45,7 @@ class ListDigitalHumanBusinessCardRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -101,7 +101,7 @@ class ListDigitalHumanBusinessCardRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ListDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListDigitalHumanBusinessCardRequest. :rtype: str @@ -112,7 +112,7 @@ class ListDigitalHumanBusinessCardRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_request.py new file mode 100644 index 000000000..5594a5f29 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_request.py @@ -0,0 +1,376 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListDigitalHumanVideoRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'offset': 'int', + 'limit': 'int', + 'state': 'str', + 'sort_key': 'str', + 'sort_dir': 'str', + 'create_until': 'str', + 'create_since': 'str', + 'script_id': 'str', + 'asset_name': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'offset': 'offset', + 'limit': 'limit', + 'state': 'state', + 'sort_key': 'sort_key', + 'sort_dir': 'sort_dir', + 'create_until': 'create_until', + 'create_since': 'create_since', + 'script_id': 'script_id', + 'asset_name': 'asset_name' + } + + def __init__(self, x_app_user_id=None, offset=None, limit=None, state=None, sort_key=None, sort_dir=None, create_until=None, create_since=None, script_id=None, asset_name=None): + """ListDigitalHumanVideoRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :type x_app_user_id: str + :param offset: 偏移量,表示从此偏移量开始查询。 + :type offset: int + :param limit: 每页显示的条目数量。 + :type limit: int + :param state: 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED + :type state: str + :param sort_key: 排序字段,目前只支持create_time。 + :type sort_key: str + :param sort_dir: 排序方式。 * asc:升序 * desc:降序 默认asc升序。 + :type sort_dir: str + :param create_until: 过滤创建时间<=输入时间的记录。 + :type create_until: str + :param create_since: 过滤创建时间>=输入时间的记录。 + :type create_since: str + :param script_id: 剧本ID。 + :type script_id: str + :param asset_name: 输出视频资产名称。 + :type asset_name: str + """ + + + + self._x_app_user_id = None + self._offset = None + self._limit = None + self._state = None + self._sort_key = None + self._sort_dir = None + self._create_until = None + self._create_since = None + self._script_id = None + self._asset_name = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if state is not None: + self.state = state + if sort_key is not None: + self.sort_key = sort_key + if sort_dir is not None: + self.sort_dir = sort_dir + if create_until is not None: + self.create_until = create_until + if create_since is not None: + self.create_since = create_since + if script_id is not None: + self.script_id = script_id + if asset_name is not None: + self.asset_name = asset_name + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ListDigitalHumanVideoRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :return: The x_app_user_id of this ListDigitalHumanVideoRequest. + :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 ListDigitalHumanVideoRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ListDigitalHumanVideoRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def offset(self): + """Gets the offset of this ListDigitalHumanVideoRequest. + + 偏移量,表示从此偏移量开始查询。 + + :return: The offset of this ListDigitalHumanVideoRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListDigitalHumanVideoRequest. + + 偏移量,表示从此偏移量开始查询。 + + :param offset: The offset of this ListDigitalHumanVideoRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListDigitalHumanVideoRequest. + + 每页显示的条目数量。 + + :return: The limit of this ListDigitalHumanVideoRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListDigitalHumanVideoRequest. + + 每页显示的条目数量。 + + :param limit: The limit of this ListDigitalHumanVideoRequest. + :type limit: int + """ + self._limit = limit + + @property + def state(self): + """Gets the state of this ListDigitalHumanVideoRequest. + + 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED + + :return: The state of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this ListDigitalHumanVideoRequest. + + 任务状态,默认所有状态。 可多个状态查询,使用英文逗号分隔。 如state=CREATING,PUBLISHED + + :param state: The state of this ListDigitalHumanVideoRequest. + :type state: str + """ + self._state = state + + @property + def sort_key(self): + """Gets the sort_key of this ListDigitalHumanVideoRequest. + + 排序字段,目前只支持create_time。 + + :return: The sort_key of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._sort_key + + @sort_key.setter + def sort_key(self, sort_key): + """Sets the sort_key of this ListDigitalHumanVideoRequest. + + 排序字段,目前只支持create_time。 + + :param sort_key: The sort_key of this ListDigitalHumanVideoRequest. + :type sort_key: str + """ + self._sort_key = sort_key + + @property + def sort_dir(self): + """Gets the sort_dir of this ListDigitalHumanVideoRequest. + + 排序方式。 * asc:升序 * desc:降序 默认asc升序。 + + :return: The sort_dir of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._sort_dir + + @sort_dir.setter + def sort_dir(self, sort_dir): + """Sets the sort_dir of this ListDigitalHumanVideoRequest. + + 排序方式。 * asc:升序 * desc:降序 默认asc升序。 + + :param sort_dir: The sort_dir of this ListDigitalHumanVideoRequest. + :type sort_dir: str + """ + self._sort_dir = sort_dir + + @property + def create_until(self): + """Gets the create_until of this ListDigitalHumanVideoRequest. + + 过滤创建时间<=输入时间的记录。 + + :return: The create_until of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._create_until + + @create_until.setter + def create_until(self, create_until): + """Sets the create_until of this ListDigitalHumanVideoRequest. + + 过滤创建时间<=输入时间的记录。 + + :param create_until: The create_until of this ListDigitalHumanVideoRequest. + :type create_until: str + """ + self._create_until = create_until + + @property + def create_since(self): + """Gets the create_since of this ListDigitalHumanVideoRequest. + + 过滤创建时间>=输入时间的记录。 + + :return: The create_since of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._create_since + + @create_since.setter + def create_since(self, create_since): + """Sets the create_since of this ListDigitalHumanVideoRequest. + + 过滤创建时间>=输入时间的记录。 + + :param create_since: The create_since of this ListDigitalHumanVideoRequest. + :type create_since: str + """ + self._create_since = create_since + + @property + def script_id(self): + """Gets the script_id of this ListDigitalHumanVideoRequest. + + 剧本ID。 + + :return: The script_id of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._script_id + + @script_id.setter + def script_id(self, script_id): + """Sets the script_id of this ListDigitalHumanVideoRequest. + + 剧本ID。 + + :param script_id: The script_id of this ListDigitalHumanVideoRequest. + :type script_id: str + """ + self._script_id = script_id + + @property + def asset_name(self): + """Gets the asset_name of this ListDigitalHumanVideoRequest. + + 输出视频资产名称。 + + :return: The asset_name of this ListDigitalHumanVideoRequest. + :rtype: str + """ + return self._asset_name + + @asset_name.setter + def asset_name(self, asset_name): + """Sets the asset_name of this ListDigitalHumanVideoRequest. + + 输出视频资产名称。 + + :param asset_name: The asset_name of this ListDigitalHumanVideoRequest. + :type asset_name: str + """ + self._asset_name = asset_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListDigitalHumanVideoRequest): + return False + + return self.__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/list_digital_human_video_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_response.py new file mode 100644 index 000000000..f85450130 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_digital_human_video_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 ListDigitalHumanVideoResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'count': 'int', + 'jobs': 'list[DigitalHumanVideo]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'jobs': 'jobs', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, count=None, jobs=None, x_request_id=None): + """ListDigitalHumanVideoResponse + + The model defined in huaweicloud sdk + + :param count: 视频制作任务总数。 + :type count: int + :param jobs: 视频制作任务列表。 + :type jobs: list[:class:`huaweicloudsdkmetastudio.v1.DigitalHumanVideo`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListDigitalHumanVideoResponse, self).__init__() + + self._count = None + self._jobs = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if jobs is not None: + self.jobs = jobs + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ListDigitalHumanVideoResponse. + + 视频制作任务总数。 + + :return: The count of this ListDigitalHumanVideoResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListDigitalHumanVideoResponse. + + 视频制作任务总数。 + + :param count: The count of this ListDigitalHumanVideoResponse. + :type count: int + """ + self._count = count + + @property + def jobs(self): + """Gets the jobs of this ListDigitalHumanVideoResponse. + + 视频制作任务列表。 + + :return: The jobs of this ListDigitalHumanVideoResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.DigitalHumanVideo`] + """ + return self._jobs + + @jobs.setter + def jobs(self, jobs): + """Sets the jobs of this ListDigitalHumanVideoResponse. + + 视频制作任务列表。 + + :param jobs: The jobs of this ListDigitalHumanVideoResponse. + :type jobs: list[:class:`huaweicloudsdkmetastudio.v1.DigitalHumanVideo`] + """ + self._jobs = jobs + + @property + def x_request_id(self): + """Gets the x_request_id of this ListDigitalHumanVideoResponse. + + :return: The x_request_id of this ListDigitalHumanVideoResponse. + :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 ListDigitalHumanVideoResponse. + + :param x_request_id: The x_request_id of this ListDigitalHumanVideoResponse. + :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, ListDigitalHumanVideoResponse): + return False + + return self.__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/list_facial_animations_data_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_facial_animations_data_request.py new file mode 100644 index 000000000..f4a9eccd8 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_facial_animations_data_request.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListFacialAnimationsDataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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): + """ListFacialAnimationsDataRequest + + The model defined in huaweicloud sdk + + :param job_id: 表情驱动任务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 ListFacialAnimationsDataRequest. + + 表情驱动任务ID + + :return: The job_id of this ListFacialAnimationsDataRequest. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this ListFacialAnimationsDataRequest. + + 表情驱动任务ID + + :param job_id: The job_id of this ListFacialAnimationsDataRequest. + :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, ListFacialAnimationsDataRequest): + return False + + return self.__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/list_facial_animations_data_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_facial_animations_data_response.py new file mode 100644 index 000000000..2ce675da5 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_facial_animations_data_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 ListFacialAnimationsDataResponse(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 = { + 'csv_file_download_url': 'str', + 'state': 'str', + 'error_message': 'str' + } + + attribute_map = { + 'csv_file_download_url': 'csv_file_download_url', + 'state': 'state', + 'error_message': 'error_message' + } + + def __init__(self, csv_file_download_url=None, state=None, error_message=None): + """ListFacialAnimationsDataResponse + + The model defined in huaweicloud sdk + + :param csv_file_download_url: csv文件下载地址 + :type csv_file_download_url: str + :param state: 任务的状态。 * PROCESSING:处理中 * SUCCEED:成功 * FAILED:失败 + :type state: str + :param error_message: 失败任务描述 + :type error_message: str + """ + + super(ListFacialAnimationsDataResponse, self).__init__() + + self._csv_file_download_url = None + self._state = None + self._error_message = None + self.discriminator = None + + if csv_file_download_url is not None: + self.csv_file_download_url = csv_file_download_url + if state is not None: + self.state = state + if error_message is not None: + self.error_message = error_message + + @property + def csv_file_download_url(self): + """Gets the csv_file_download_url of this ListFacialAnimationsDataResponse. + + csv文件下载地址 + + :return: The csv_file_download_url of this ListFacialAnimationsDataResponse. + :rtype: str + """ + return self._csv_file_download_url + + @csv_file_download_url.setter + def csv_file_download_url(self, csv_file_download_url): + """Sets the csv_file_download_url of this ListFacialAnimationsDataResponse. + + csv文件下载地址 + + :param csv_file_download_url: The csv_file_download_url of this ListFacialAnimationsDataResponse. + :type csv_file_download_url: str + """ + self._csv_file_download_url = csv_file_download_url + + @property + def state(self): + """Gets the state of this ListFacialAnimationsDataResponse. + + 任务的状态。 * PROCESSING:处理中 * SUCCEED:成功 * FAILED:失败 + + :return: The state of this ListFacialAnimationsDataResponse. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this ListFacialAnimationsDataResponse. + + 任务的状态。 * PROCESSING:处理中 * SUCCEED:成功 * FAILED:失败 + + :param state: The state of this ListFacialAnimationsDataResponse. + :type state: str + """ + self._state = state + + @property + def error_message(self): + """Gets the error_message of this ListFacialAnimationsDataResponse. + + 失败任务描述 + + :return: The error_message of this ListFacialAnimationsDataResponse. + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this ListFacialAnimationsDataResponse. + + 失败任务描述 + + :param error_message: The error_message of this ListFacialAnimationsDataResponse. + :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, ListFacialAnimationsDataResponse): + return False + + return self.__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/list_interaction_rule_groups_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_request.py new file mode 100644 index 000000000..6cff2bf17 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_request.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListInteractionRuleGroupsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'offset': 'int', + 'limit': 'int', + 'create_since': 'str', + 'create_until': 'str', + 'group_name': 'str' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'offset': 'offset', + 'limit': 'limit', + 'create_since': 'create_since', + 'create_until': 'create_until', + 'group_name': 'group_name' + } + + def __init__(self, x_app_user_id=None, offset=None, limit=None, create_since=None, create_until=None, group_name=None): + """ListInteractionRuleGroupsRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :type x_app_user_id: str + :param offset: 偏移量,表示从此偏移量开始查询。 + :type offset: int + :param limit: 每页显示的条目数量。 + :type limit: int + :param create_since: 过滤创建时间>=输入时间的记录。 + :type create_since: str + :param create_until: 过滤创建时间<=输入时间的记录。 + :type create_until: str + :param group_name: 规则库名称 + :type group_name: str + """ + + + + self._x_app_user_id = None + self._offset = None + self._limit = None + self._create_since = None + self._create_until = None + self._group_name = None + self.discriminator = None + + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id + if offset is not None: + self.offset = offset + if limit is not None: + self.limit = limit + if create_since is not None: + self.create_since = create_since + if create_until is not None: + self.create_until = create_until + if group_name is not None: + self.group_name = group_name + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ListInteractionRuleGroupsRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :return: The x_app_user_id of this ListInteractionRuleGroupsRequest. + :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 ListInteractionRuleGroupsRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ListInteractionRuleGroupsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def offset(self): + """Gets the offset of this ListInteractionRuleGroupsRequest. + + 偏移量,表示从此偏移量开始查询。 + + :return: The offset of this ListInteractionRuleGroupsRequest. + :rtype: int + """ + return self._offset + + @offset.setter + def offset(self, offset): + """Sets the offset of this ListInteractionRuleGroupsRequest. + + 偏移量,表示从此偏移量开始查询。 + + :param offset: The offset of this ListInteractionRuleGroupsRequest. + :type offset: int + """ + self._offset = offset + + @property + def limit(self): + """Gets the limit of this ListInteractionRuleGroupsRequest. + + 每页显示的条目数量。 + + :return: The limit of this ListInteractionRuleGroupsRequest. + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this ListInteractionRuleGroupsRequest. + + 每页显示的条目数量。 + + :param limit: The limit of this ListInteractionRuleGroupsRequest. + :type limit: int + """ + self._limit = limit + + @property + def create_since(self): + """Gets the create_since of this ListInteractionRuleGroupsRequest. + + 过滤创建时间>=输入时间的记录。 + + :return: The create_since of this ListInteractionRuleGroupsRequest. + :rtype: str + """ + return self._create_since + + @create_since.setter + def create_since(self, create_since): + """Sets the create_since of this ListInteractionRuleGroupsRequest. + + 过滤创建时间>=输入时间的记录。 + + :param create_since: The create_since of this ListInteractionRuleGroupsRequest. + :type create_since: str + """ + self._create_since = create_since + + @property + def create_until(self): + """Gets the create_until of this ListInteractionRuleGroupsRequest. + + 过滤创建时间<=输入时间的记录。 + + :return: The create_until of this ListInteractionRuleGroupsRequest. + :rtype: str + """ + return self._create_until + + @create_until.setter + def create_until(self, create_until): + """Sets the create_until of this ListInteractionRuleGroupsRequest. + + 过滤创建时间<=输入时间的记录。 + + :param create_until: The create_until of this ListInteractionRuleGroupsRequest. + :type create_until: str + """ + self._create_until = create_until + + @property + def group_name(self): + """Gets the group_name of this ListInteractionRuleGroupsRequest. + + 规则库名称 + + :return: The group_name of this ListInteractionRuleGroupsRequest. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this ListInteractionRuleGroupsRequest. + + 规则库名称 + + :param group_name: The group_name of this ListInteractionRuleGroupsRequest. + :type group_name: str + """ + self._group_name = group_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListInteractionRuleGroupsRequest): + return False + + return self.__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/list_interaction_rule_groups_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_response.py new file mode 100644 index 000000000..e25cff28e --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_interaction_rule_groups_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 ListInteractionRuleGroupsResponse(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', + 'interaction_rule_groups': 'list[InteractionRuleGroupDetail]', + 'x_request_id': 'str' + } + + attribute_map = { + 'count': 'count', + 'interaction_rule_groups': 'interaction_rule_groups', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, count=None, interaction_rule_groups=None, x_request_id=None): + """ListInteractionRuleGroupsResponse + + The model defined in huaweicloud sdk + + :param count: 互动规则总数。 + :type count: int + :param interaction_rule_groups: 互动规则库列表。 + :type interaction_rule_groups: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroupDetail`] + :param x_request_id: + :type x_request_id: str + """ + + super(ListInteractionRuleGroupsResponse, self).__init__() + + self._count = None + self._interaction_rule_groups = None + self._x_request_id = None + self.discriminator = None + + if count is not None: + self.count = count + if interaction_rule_groups is not None: + self.interaction_rule_groups = interaction_rule_groups + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def count(self): + """Gets the count of this ListInteractionRuleGroupsResponse. + + 互动规则总数。 + + :return: The count of this ListInteractionRuleGroupsResponse. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this ListInteractionRuleGroupsResponse. + + 互动规则总数。 + + :param count: The count of this ListInteractionRuleGroupsResponse. + :type count: int + """ + self._count = count + + @property + def interaction_rule_groups(self): + """Gets the interaction_rule_groups of this ListInteractionRuleGroupsResponse. + + 互动规则库列表。 + + :return: The interaction_rule_groups of this ListInteractionRuleGroupsResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroupDetail`] + """ + return self._interaction_rule_groups + + @interaction_rule_groups.setter + def interaction_rule_groups(self, interaction_rule_groups): + """Sets the interaction_rule_groups of this ListInteractionRuleGroupsResponse. + + 互动规则库列表。 + + :param interaction_rule_groups: The interaction_rule_groups of this ListInteractionRuleGroupsResponse. + :type interaction_rule_groups: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroupDetail`] + """ + self._interaction_rule_groups = interaction_rule_groups + + @property + def x_request_id(self): + """Gets the x_request_id of this ListInteractionRuleGroupsResponse. + + :return: The x_request_id of this ListInteractionRuleGroupsResponse. + :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 ListInteractionRuleGroupsResponse. + + :param x_request_id: The x_request_id of this ListInteractionRuleGroupsResponse. + :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, ListInteractionRuleGroupsResponse): + return False + + return self.__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/list_picture_modeling_jobs_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_picture_modeling_jobs_request.py index 513c81e32..d5c79a781 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_picture_modeling_jobs_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_picture_modeling_jobs_request.py @@ -43,7 +43,7 @@ class ListPictureModelingJobsRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -94,7 +94,7 @@ class ListPictureModelingJobsRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ListPictureModelingJobsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListPictureModelingJobsRequest. :rtype: str @@ -105,7 +105,7 @@ class ListPictureModelingJobsRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListPictureModelingJobsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListPictureModelingJobsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py index 5ba7fc51d..6c694a895 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_request.py @@ -24,8 +24,8 @@ class ListSmartLiveRequest: 'state': 'str', 'sort_key': 'str', 'sort_dir': 'str', - 'create_until': 'str', - 'create_since': 'str' + 'create_since': 'str', + 'create_until': 'str' } attribute_map = { @@ -36,18 +36,18 @@ class ListSmartLiveRequest: 'state': 'state', 'sort_key': 'sort_key', 'sort_dir': 'sort_dir', - 'create_until': 'create_until', - 'create_since': 'create_since' + 'create_since': 'create_since', + 'create_until': 'create_until' } - def __init__(self, room_id=None, x_app_user_id=None, offset=None, limit=None, state=None, sort_key=None, sort_dir=None, create_until=None, create_since=None): + def __init__(self, room_id=None, x_app_user_id=None, offset=None, limit=None, state=None, sort_key=None, sort_dir=None, create_since=None, create_until=None): """ListSmartLiveRequest The model defined in huaweicloud sdk :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -59,10 +59,10 @@ class ListSmartLiveRequest: :type sort_key: str :param sort_dir: 排序方式。 * asc:升序 * desc:降序 默认asc升序。 :type sort_dir: str - :param create_until: 过滤创建时间<=输入时间的记录。 - :type create_until: str :param create_since: 过滤创建时间>=输入时间的记录。 :type create_since: str + :param create_until: 过滤创建时间<=输入时间的记录。 + :type create_until: str """ @@ -74,8 +74,8 @@ class ListSmartLiveRequest: self._state = None self._sort_key = None self._sort_dir = None - self._create_until = None self._create_since = None + self._create_until = None self.discriminator = None self.room_id = room_id @@ -91,10 +91,10 @@ class ListSmartLiveRequest: self.sort_key = sort_key if sort_dir is not None: self.sort_dir = sort_dir - if create_until is not None: - self.create_until = create_until if create_since is not None: self.create_since = create_since + if create_until is not None: + self.create_until = create_until @property def room_id(self): @@ -122,7 +122,7 @@ class ListSmartLiveRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ListSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListSmartLiveRequest. :rtype: str @@ -133,7 +133,7 @@ class ListSmartLiveRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListSmartLiveRequest. :type x_app_user_id: str @@ -250,28 +250,6 @@ class ListSmartLiveRequest: """ self._sort_dir = sort_dir - @property - def create_until(self): - """Gets the create_until of this ListSmartLiveRequest. - - 过滤创建时间<=输入时间的记录。 - - :return: The create_until of this ListSmartLiveRequest. - :rtype: str - """ - return self._create_until - - @create_until.setter - def create_until(self, create_until): - """Sets the create_until of this ListSmartLiveRequest. - - 过滤创建时间<=输入时间的记录。 - - :param create_until: The create_until of this ListSmartLiveRequest. - :type create_until: str - """ - self._create_until = create_until - @property def create_since(self): """Gets the create_since of this ListSmartLiveRequest. @@ -294,6 +272,28 @@ class ListSmartLiveRequest: """ self._create_since = create_since + @property + def create_until(self): + """Gets the create_until of this ListSmartLiveRequest. + + 过滤创建时间<=输入时间的记录。 + + :return: The create_until of this ListSmartLiveRequest. + :rtype: str + """ + return self._create_until + + @create_until.setter + def create_until(self, create_until): + """Sets the create_until of this ListSmartLiveRequest. + + 过滤创建时间<=输入时间的记录。 + + :param create_until: The create_until of this ListSmartLiveRequest. + :type create_until: str + """ + self._create_until = create_until + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py index 4ddc66c1a..f200c6185 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_smart_live_rooms_request.py @@ -25,7 +25,8 @@ class ListSmartLiveRoomsRequest: 'model_name': 'str', 'live_state': 'str', 'start_time': 'str', - 'end_time': 'str' + 'end_time': 'str', + 'room_type': 'str' } attribute_map = { @@ -37,15 +38,16 @@ class ListSmartLiveRoomsRequest: 'model_name': 'model_name', 'live_state': 'live_state', 'start_time': 'start_time', - 'end_time': 'end_time' + 'end_time': 'end_time', + 'room_type': 'room_type' } - def __init__(self, x_app_user_id=None, offset=None, limit=None, room_name=None, dh_id=None, model_name=None, live_state=None, start_time=None, end_time=None): + def __init__(self, x_app_user_id=None, offset=None, limit=None, room_name=None, dh_id=None, model_name=None, live_state=None, start_time=None, end_time=None, room_type=None): """ListSmartLiveRoomsRequest The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -57,12 +59,14 @@ class ListSmartLiveRoomsRequest: :type dh_id: str :param model_name: 按形象名称模糊查询。 :type model_name: str - :param live_state: 当前直播间直播状态。 WAITING,PROCESSING,SUCCESS,FAILED对应直播任务状态 NULL 对应没有直播任务 可多个状态查询,使用英文逗号分隔。 + :param live_state: 当前直播间直播状态。 WAITING,PROCESSING,SUCCESS,FAILED,CANCELED对应直播任务状态 NULL 对应没有直播任务 可多个状态查询,使用英文逗号分隔。 :type live_state: str :param start_time: 最近直播任务起始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 :type start_time: str :param end_time: 最近直播任务结束时间。格式遵循:RFC 3339 如\"2021-01-10T10:43:17Z\"。 :type end_time: str + :param room_type: 按直播间类型查询。直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 + :type room_type: str """ @@ -76,6 +80,7 @@ class ListSmartLiveRoomsRequest: self._live_state = None self._start_time = None self._end_time = None + self._room_type = None self.discriminator = None if x_app_user_id is not None: @@ -96,12 +101,14 @@ class ListSmartLiveRoomsRequest: self.start_time = start_time if end_time is not None: self.end_time = end_time + if room_type is not None: + self.room_type = room_type @property def x_app_user_id(self): """Gets the x_app_user_id of this ListSmartLiveRoomsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListSmartLiveRoomsRequest. :rtype: str @@ -112,7 +119,7 @@ class ListSmartLiveRoomsRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListSmartLiveRoomsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListSmartLiveRoomsRequest. :type x_app_user_id: str @@ -233,7 +240,7 @@ class ListSmartLiveRoomsRequest: def live_state(self): """Gets the live_state of this ListSmartLiveRoomsRequest. - 当前直播间直播状态。 WAITING,PROCESSING,SUCCESS,FAILED对应直播任务状态 NULL 对应没有直播任务 可多个状态查询,使用英文逗号分隔。 + 当前直播间直播状态。 WAITING,PROCESSING,SUCCESS,FAILED,CANCELED对应直播任务状态 NULL 对应没有直播任务 可多个状态查询,使用英文逗号分隔。 :return: The live_state of this ListSmartLiveRoomsRequest. :rtype: str @@ -244,7 +251,7 @@ class ListSmartLiveRoomsRequest: def live_state(self, live_state): """Sets the live_state of this ListSmartLiveRoomsRequest. - 当前直播间直播状态。 WAITING,PROCESSING,SUCCESS,FAILED对应直播任务状态 NULL 对应没有直播任务 可多个状态查询,使用英文逗号分隔。 + 当前直播间直播状态。 WAITING,PROCESSING,SUCCESS,FAILED,CANCELED对应直播任务状态 NULL 对应没有直播任务 可多个状态查询,使用英文逗号分隔。 :param live_state: The live_state of this ListSmartLiveRoomsRequest. :type live_state: str @@ -295,6 +302,28 @@ class ListSmartLiveRoomsRequest: """ self._end_time = end_time + @property + def room_type(self): + """Gets the room_type of this ListSmartLiveRoomsRequest. + + 按直播间类型查询。直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 + + :return: The room_type of this ListSmartLiveRoomsRequest. + :rtype: str + """ + return self._room_type + + @room_type.setter + def room_type(self, room_type): + """Sets the room_type of this ListSmartLiveRoomsRequest. + + 按直播间类型查询。直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 + + :param room_type: The room_type of this ListSmartLiveRoomsRequest. + :type room_type: str + """ + self._room_type = room_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py index 017a0909e..dbb08b5e1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_styles_request.py @@ -43,7 +43,7 @@ class ListStylesRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -94,7 +94,7 @@ class ListStylesRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ListStylesRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListStylesRequest. :rtype: str @@ -105,7 +105,7 @@ class ListStylesRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListStylesRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListStylesRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_data_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_data_response.py index 8b85c2824..328b55f5d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_data_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_data_response.py @@ -19,6 +19,9 @@ class ListTtsaDataResponse(SdkResponse): openapi_types = { 'job_id': 'str', + 'start_time': 'str', + 'end_time': 'str', + 'is_tail': 'bool', 'audio': 'str', 'blendshapes': 'list[str]', 'animations': 'list[AnimationItem]', @@ -28,6 +31,9 @@ class ListTtsaDataResponse(SdkResponse): attribute_map = { 'job_id': 'jobId', + 'start_time': 'start_time', + 'end_time': 'end_time', + 'is_tail': 'is_tail', 'audio': 'audio', 'blendshapes': 'blendshapes', 'animations': 'animations', @@ -35,13 +41,19 @@ class ListTtsaDataResponse(SdkResponse): 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, audio=None, blendshapes=None, animations=None, motions=None, x_request_id=None): + def __init__(self, job_id=None, start_time=None, end_time=None, is_tail=None, audio=None, blendshapes=None, animations=None, motions=None, x_request_id=None): """ListTtsaDataResponse The model defined in huaweicloud sdk :param job_id: 任务ID。 :type job_id: str + :param start_time: 驱动任务开始时间,格式遵循:RFC 3339, 例 “2020-07-30T10:43:17Z” + :type start_time: str + :param end_time: 驱动任务结束时间,格式遵循:RFC 3339, 例 “2020-07-30T10:45:17Z” + :type end_time: str + :param is_tail: 是否为尾部(任务数据已全部生成,后续没有新的数据) + :type is_tail: bool :param audio: 音频数据,Base64编码,1秒内的数据。 :type audio: str :param blendshapes: 语音驱动的表情基数据。 @@ -57,6 +69,9 @@ class ListTtsaDataResponse(SdkResponse): super(ListTtsaDataResponse, self).__init__() self._job_id = None + self._start_time = None + self._end_time = None + self._is_tail = None self._audio = None self._blendshapes = None self._animations = None @@ -66,6 +81,12 @@ class ListTtsaDataResponse(SdkResponse): if job_id is not None: self.job_id = job_id + if start_time is not None: + self.start_time = start_time + if end_time is not None: + self.end_time = end_time + if is_tail is not None: + self.is_tail = is_tail if audio is not None: self.audio = audio if blendshapes is not None: @@ -99,6 +120,72 @@ class ListTtsaDataResponse(SdkResponse): """ self._job_id = job_id + @property + def start_time(self): + """Gets the start_time of this ListTtsaDataResponse. + + 驱动任务开始时间,格式遵循:RFC 3339, 例 “2020-07-30T10:43:17Z” + + :return: The start_time of this ListTtsaDataResponse. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this ListTtsaDataResponse. + + 驱动任务开始时间,格式遵循:RFC 3339, 例 “2020-07-30T10:43:17Z” + + :param start_time: The start_time of this ListTtsaDataResponse. + :type start_time: str + """ + self._start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this ListTtsaDataResponse. + + 驱动任务结束时间,格式遵循:RFC 3339, 例 “2020-07-30T10:45:17Z” + + :return: The end_time of this ListTtsaDataResponse. + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ListTtsaDataResponse. + + 驱动任务结束时间,格式遵循:RFC 3339, 例 “2020-07-30T10:45:17Z” + + :param end_time: The end_time of this ListTtsaDataResponse. + :type end_time: str + """ + self._end_time = end_time + + @property + def is_tail(self): + """Gets the is_tail of this ListTtsaDataResponse. + + 是否为尾部(任务数据已全部生成,后续没有新的数据) + + :return: The is_tail of this ListTtsaDataResponse. + :rtype: bool + """ + return self._is_tail + + @is_tail.setter + def is_tail(self, is_tail): + """Sets the is_tail of this ListTtsaDataResponse. + + 是否为尾部(任务数据已全部生成,后续没有新的数据) + + :param is_tail: The is_tail of this ListTtsaDataResponse. + :type is_tail: bool + """ + self._is_tail = is_tail + @property def audio(self): """Gets the audio of this ListTtsaDataResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py index cd495ef0b..215d7b69c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_ttsa_jobs_request.py @@ -17,43 +17,65 @@ class ListTtsaJobsRequest: sensitive_list = [] openapi_types = { + 'x_app_user_id': 'str', 'offset': 'int', - 'limit': 'int', - 'x_app_user_id': 'str' + 'limit': 'int' } attribute_map = { + 'x_app_user_id': 'X-App-UserId', 'offset': 'offset', - 'limit': 'limit', - 'x_app_user_id': 'X-App-UserId' + 'limit': 'limit' } - def __init__(self, offset=None, limit=None, x_app_user_id=None): + def __init__(self, x_app_user_id=None, offset=None, limit=None): """ListTtsaJobsRequest The model defined in huaweicloud sdk + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int :param limit: 每页显示的条目数量。 :type limit: int - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 - :type x_app_user_id: str """ + self._x_app_user_id = None self._offset = None self._limit = None - self._x_app_user_id = None self.discriminator = None + if x_app_user_id is not None: + self.x_app_user_id = x_app_user_id if offset is not None: self.offset = offset if limit is not None: self.limit = limit - if x_app_user_id is not None: - self.x_app_user_id = x_app_user_id + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this ListTtsaJobsRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :return: The x_app_user_id of this ListTtsaJobsRequest. + :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 ListTtsaJobsRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this ListTtsaJobsRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id @property def offset(self): @@ -99,28 +121,6 @@ class ListTtsaJobsRequest: """ self._limit = limit - @property - def x_app_user_id(self): - """Gets the x_app_user_id of this ListTtsaJobsRequest. - - 开发者应用作为资产权属的可选字段。 - - :return: The x_app_user_id of this ListTtsaJobsRequest. - :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 ListTtsaJobsRequest. - - 开发者应用作为资产权属的可选字段。 - - :param x_app_user_id: The x_app_user_id of this ListTtsaJobsRequest. - :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 = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py index 87c2c0161..a7d9451eb 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_motion_capture_jobs_request.py @@ -33,7 +33,7 @@ class ListVideoMotionCaptureJobsRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int @@ -59,7 +59,7 @@ class ListVideoMotionCaptureJobsRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ListVideoMotionCaptureJobsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListVideoMotionCaptureJobsRequest. :rtype: str @@ -70,7 +70,7 @@ class ListVideoMotionCaptureJobsRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListVideoMotionCaptureJobsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListVideoMotionCaptureJobsRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py index a2cdf90ab..fea89d0d8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/list_video_scripts_request.py @@ -19,26 +19,38 @@ class ListVideoScriptsRequest: openapi_types = { 'x_app_user_id': 'str', 'offset': 'int', - 'limit': 'int' + 'limit': 'int', + 'name': 'str', + 'script_catalog': 'str', + 'view_mode': 'str' } attribute_map = { 'x_app_user_id': 'X-App-UserId', 'offset': 'offset', - 'limit': 'limit' + 'limit': 'limit', + 'name': 'name', + 'script_catalog': 'script_catalog', + 'view_mode': 'view_mode' } - def __init__(self, x_app_user_id=None, offset=None, limit=None): + def __init__(self, x_app_user_id=None, offset=None, limit=None, name=None, script_catalog=None, view_mode=None): """ListVideoScriptsRequest The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param offset: 偏移量,表示从此偏移量开始查询。 :type offset: int :param limit: 每页显示的条目数量。 :type limit: int + :param name: 按名称模糊查询。 + :type name: str + :param script_catalog: 剧本类型。默认查询VIDEO_DRAFT。 * VIDEO_DRAFT:视频草稿。 * SYSTEM_VIDEO_TEMPLET: 系统视频模板。 + :type script_catalog: str + :param view_mode: 横竖屏类型(内部参数,不对外开放)。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + :type view_mode: str """ @@ -46,6 +58,9 @@ class ListVideoScriptsRequest: self._x_app_user_id = None self._offset = None self._limit = None + self._name = None + self._script_catalog = None + self._view_mode = None self.discriminator = None if x_app_user_id is not None: @@ -54,12 +69,18 @@ class ListVideoScriptsRequest: self.offset = offset if limit is not None: self.limit = limit + if name is not None: + self.name = name + if script_catalog is not None: + self.script_catalog = script_catalog + if view_mode is not None: + self.view_mode = view_mode @property def x_app_user_id(self): """Gets the x_app_user_id of this ListVideoScriptsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ListVideoScriptsRequest. :rtype: str @@ -70,7 +91,7 @@ class ListVideoScriptsRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ListVideoScriptsRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ListVideoScriptsRequest. :type x_app_user_id: str @@ -121,6 +142,72 @@ class ListVideoScriptsRequest: """ self._limit = limit + @property + def name(self): + """Gets the name of this ListVideoScriptsRequest. + + 按名称模糊查询。 + + :return: The name of this ListVideoScriptsRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListVideoScriptsRequest. + + 按名称模糊查询。 + + :param name: The name of this ListVideoScriptsRequest. + :type name: str + """ + self._name = name + + @property + def script_catalog(self): + """Gets the script_catalog of this ListVideoScriptsRequest. + + 剧本类型。默认查询VIDEO_DRAFT。 * VIDEO_DRAFT:视频草稿。 * SYSTEM_VIDEO_TEMPLET: 系统视频模板。 + + :return: The script_catalog of this ListVideoScriptsRequest. + :rtype: str + """ + return self._script_catalog + + @script_catalog.setter + def script_catalog(self, script_catalog): + """Sets the script_catalog of this ListVideoScriptsRequest. + + 剧本类型。默认查询VIDEO_DRAFT。 * VIDEO_DRAFT:视频草稿。 * SYSTEM_VIDEO_TEMPLET: 系统视频模板。 + + :param script_catalog: The script_catalog of this ListVideoScriptsRequest. + :type script_catalog: str + """ + self._script_catalog = script_catalog + + @property + def view_mode(self): + """Gets the view_mode of this ListVideoScriptsRequest. + + 横竖屏类型(内部参数,不对外开放)。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + + :return: The view_mode of this ListVideoScriptsRequest. + :rtype: str + """ + return self._view_mode + + @view_mode.setter + def view_mode(self, view_mode): + """Sets the view_mode of this ListVideoScriptsRequest. + + 横竖屏类型(内部参数,不对外开放)。默认值是LANDSCAPE。 * LANDSCAPE:横屏。 * VERTICAL: 竖屏。 + + :param view_mode: The view_mode of this ListVideoScriptsRequest. + :type view_mode: str + """ + self._view_mode = view_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_call_back_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_call_back_config.py new file mode 100644 index 000000000..ccfdd4b2d --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_call_back_config.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LiveEventCallBackConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'live_event_type_callback_url': 'str', + 'auth_type': 'str', + 'key': 'str', + 'callback_event_type': 'list[str]' + } + + attribute_map = { + 'live_event_type_callback_url': 'live_event_type_callback_url', + 'auth_type': 'auth_type', + 'key': 'key', + 'callback_event_type': 'callback_event_type' + } + + def __init__(self, live_event_type_callback_url=None, auth_type=None, key=None, callback_event_type=None): + """LiveEventCallBackConfig + + The model defined in huaweicloud sdk + + :param live_event_type_callback_url: 直播事件回调地址。https地址,需自带鉴权串。 + :type live_event_type_callback_url: str + :param auth_type: 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:hwSecret,hwTime。取值方式:hwSecret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime)&hwTime=hex(timestamp) + :type auth_type: str + :param key: 密钥Key + :type key: str + :param callback_event_type: 回调的直播事件类型列表 + :type callback_event_type: list[str] + """ + + + + self._live_event_type_callback_url = None + self._auth_type = None + self._key = None + self._callback_event_type = None + self.discriminator = None + + if live_event_type_callback_url is not None: + self.live_event_type_callback_url = live_event_type_callback_url + if auth_type is not None: + self.auth_type = auth_type + if key is not None: + self.key = key + if callback_event_type is not None: + self.callback_event_type = callback_event_type + + @property + def live_event_type_callback_url(self): + """Gets the live_event_type_callback_url of this LiveEventCallBackConfig. + + 直播事件回调地址。https地址,需自带鉴权串。 + + :return: The live_event_type_callback_url of this LiveEventCallBackConfig. + :rtype: str + """ + return self._live_event_type_callback_url + + @live_event_type_callback_url.setter + def live_event_type_callback_url(self, live_event_type_callback_url): + """Sets the live_event_type_callback_url of this LiveEventCallBackConfig. + + 直播事件回调地址。https地址,需自带鉴权串。 + + :param live_event_type_callback_url: The live_event_type_callback_url of this LiveEventCallBackConfig. + :type live_event_type_callback_url: str + """ + self._live_event_type_callback_url = live_event_type_callback_url + + @property + def auth_type(self): + """Gets the auth_type of this LiveEventCallBackConfig. + + 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:hwSecret,hwTime。取值方式:hwSecret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime)&hwTime=hex(timestamp) + + :return: The auth_type of this LiveEventCallBackConfig. + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this LiveEventCallBackConfig. + + 认证类型。 * NONE。URL中自带认证。 * MSS_A。HMACSHA256签名模式,在URL中追加参数:hwSecret,hwTime。取值方式:hwSecret=hmac_sha256(Key, URI(live_event_callback_url)+ hwTime)&hwTime=hex(timestamp) + + :param auth_type: The auth_type of this LiveEventCallBackConfig. + :type auth_type: str + """ + self._auth_type = auth_type + + @property + def key(self): + """Gets the key of this LiveEventCallBackConfig. + + 密钥Key + + :return: The key of this LiveEventCallBackConfig. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this LiveEventCallBackConfig. + + 密钥Key + + :param key: The key of this LiveEventCallBackConfig. + :type key: str + """ + self._key = key + + @property + def callback_event_type(self): + """Gets the callback_event_type of this LiveEventCallBackConfig. + + 回调的直播事件类型列表 + + :return: The callback_event_type of this LiveEventCallBackConfig. + :rtype: list[str] + """ + return self._callback_event_type + + @callback_event_type.setter + def callback_event_type(self, callback_event_type): + """Sets the callback_event_type of this LiveEventCallBackConfig. + + 回调的直播事件类型列表 + + :param callback_event_type: The callback_event_type of this LiveEventCallBackConfig. + :type callback_event_type: list[str] + """ + self._callback_event_type = callback_event_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LiveEventCallBackConfig): + return False + + return self.__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/live_event_report_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_report_request.py index 09c97796c..7be5b02c7 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_report_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_event_report_request.py @@ -45,7 +45,7 @@ class LiveEventReportRequest: :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param auth_key: 鉴权Key。通过HmacSHA256生成的鉴权key :type auth_key: str @@ -129,7 +129,7 @@ class LiveEventReportRequest: def x_app_user_id(self): """Gets the x_app_user_id of this LiveEventReportRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this LiveEventReportRequest. :rtype: str @@ -140,7 +140,7 @@ class LiveEventReportRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this LiveEventReportRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this LiveEventReportRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_video_script_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_video_script_info.py index fe900567c..74a64e6d3 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_video_script_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_video_script_info.py @@ -86,8 +86,7 @@ class LiveVideoScriptInfo: self.background_config = background_config if layer_config is not None: self.layer_config = layer_config - if shoot_scripts is not None: - self.shoot_scripts = shoot_scripts + self.shoot_scripts = shoot_scripts @property def script_name(self): diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_warning_item.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_warning_item.py new file mode 100644 index 000000000..6422bbfdb --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/live_warning_item.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class LiveWarningItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'warning_type': 'str' + } + + attribute_map = { + 'warning_type': 'warning_type' + } + + def __init__(self, warning_type=None): + """LiveWarningItem + + The model defined in huaweicloud sdk + + :param warning_type: 告警类型。 - TOO_LESSS_SCRIPT_ITEMS:段落(话术)数量太少。 - TOO_SHORT_SCRIPT_TIME:段落(话术)总时长太短。 - TOO_LESS_DANMAKU_RULES: 弹幕互动规则太少。 - RANDOM_PLAY_CLOSED: 随机播放开关关闭。 - ROTATION_MODEL_CLOSED: 主播轮转未配置。 + :type warning_type: str + """ + + + + self._warning_type = None + self.discriminator = None + + if warning_type is not None: + self.warning_type = warning_type + + @property + def warning_type(self): + """Gets the warning_type of this LiveWarningItem. + + 告警类型。 - TOO_LESSS_SCRIPT_ITEMS:段落(话术)数量太少。 - TOO_SHORT_SCRIPT_TIME:段落(话术)总时长太短。 - TOO_LESS_DANMAKU_RULES: 弹幕互动规则太少。 - RANDOM_PLAY_CLOSED: 随机播放开关关闭。 - ROTATION_MODEL_CLOSED: 主播轮转未配置。 + + :return: The warning_type of this LiveWarningItem. + :rtype: str + """ + return self._warning_type + + @warning_type.setter + def warning_type(self, warning_type): + """Sets the warning_type of this LiveWarningItem. + + 告警类型。 - TOO_LESSS_SCRIPT_ITEMS:段落(话术)数量太少。 - TOO_SHORT_SCRIPT_TIME:段落(话术)总时长太短。 - TOO_LESS_DANMAKU_RULES: 弹幕互动规则太少。 - RANDOM_PLAY_CLOSED: 随机播放开关关闭。 - ROTATION_MODEL_CLOSED: 主播轮转未配置。 + + :param warning_type: The warning_type of this LiveWarningItem. + :type warning_type: str + """ + self._warning_type = warning_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, LiveWarningItem): + return False + + return self.__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/model_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/model_info.py index 038a2cf8f..249640044 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/model_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/model_info.py @@ -18,15 +18,17 @@ class ModelInfo: openapi_types = { 'model_asset_id': 'str', - 'asset_name': 'str' + 'asset_name': 'str', + 'backup_model_asset_ids': 'list[str]' } attribute_map = { 'model_asset_id': 'model_asset_id', - 'asset_name': 'asset_name' + 'asset_name': 'asset_name', + 'backup_model_asset_ids': 'backup_model_asset_ids' } - def __init__(self, model_asset_id=None, asset_name=None): + def __init__(self, model_asset_id=None, asset_name=None, backup_model_asset_ids=None): """ModelInfo The model defined in huaweicloud sdk @@ -35,18 +37,23 @@ class ModelInfo: :type model_asset_id: str :param asset_name: 资产名称 :type asset_name: str + :param backup_model_asset_ids: 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + :type backup_model_asset_ids: list[str] """ self._model_asset_id = None self._asset_name = None + self._backup_model_asset_ids = None self.discriminator = None if model_asset_id is not None: self.model_asset_id = model_asset_id if asset_name is not None: self.asset_name = asset_name + if backup_model_asset_ids is not None: + self.backup_model_asset_ids = backup_model_asset_ids @property def model_asset_id(self): @@ -92,6 +99,28 @@ class ModelInfo: """ self._asset_name = asset_name + @property + def backup_model_asset_ids(self): + """Gets the backup_model_asset_ids of this ModelInfo. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :return: The backup_model_asset_ids of this ModelInfo. + :rtype: list[str] + """ + return self._backup_model_asset_ids + + @backup_model_asset_ids.setter + def backup_model_asset_ids(self, backup_model_asset_ids): + """Sets the backup_model_asset_ids of this ModelInfo. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :param backup_model_asset_ids: The backup_model_asset_ids of this ModelInfo. + :type backup_model_asset_ids: list[str] + """ + self._backup_model_asset_ids = backup_model_asset_ids + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/play_policy.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/play_policy.py index f9cd552e4..0fedb5285 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/play_policy.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/play_policy.py @@ -19,16 +19,18 @@ class PlayPolicy: openapi_types = { 'repeat_count': 'int', 'auto_play_script': 'bool', - 'play_mode': 'str' + 'play_mode': 'str', + 'random_play_mode': 'str' } attribute_map = { 'repeat_count': 'repeat_count', 'auto_play_script': 'auto_play_script', - 'play_mode': 'play_mode' + 'play_mode': 'play_mode', + 'random_play_mode': 'random_play_mode' } - def __init__(self, repeat_count=None, auto_play_script=None, play_mode=None): + def __init__(self, repeat_count=None, auto_play_script=None, play_mode=None, random_play_mode=None): """PlayPolicy The model defined in huaweicloud sdk @@ -39,6 +41,8 @@ class PlayPolicy: :type auto_play_script: bool :param play_mode: 驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 :type play_mode: str + :param random_play_mode: 随机播报模式。 * NONE: 不启动随机播报。 * SCENE: 按场景随机播报。场景内段落按顺序播报。 * SCRIPT_ITEM:按段落随机播报。场景按顺序播报。 * SCENE_AND_SCRIPT_ITEM: 场景和段落都随机播报。 + :type random_play_mode: str """ @@ -46,6 +50,7 @@ class PlayPolicy: self._repeat_count = None self._auto_play_script = None self._play_mode = None + self._random_play_mode = None self.discriminator = None if repeat_count is not None: @@ -54,6 +59,8 @@ class PlayPolicy: self.auto_play_script = auto_play_script if play_mode is not None: self.play_mode = play_mode + if random_play_mode is not None: + self.random_play_mode = random_play_mode @property def repeat_count(self): @@ -121,6 +128,28 @@ class PlayPolicy: """ self._play_mode = play_mode + @property + def random_play_mode(self): + """Gets the random_play_mode of this PlayPolicy. + + 随机播报模式。 * NONE: 不启动随机播报。 * SCENE: 按场景随机播报。场景内段落按顺序播报。 * SCRIPT_ITEM:按段落随机播报。场景按顺序播报。 * SCENE_AND_SCRIPT_ITEM: 场景和段落都随机播报。 + + :return: The random_play_mode of this PlayPolicy. + :rtype: str + """ + return self._random_play_mode + + @random_play_mode.setter + def random_play_mode(self, random_play_mode): + """Sets the random_play_mode of this PlayPolicy. + + 随机播报模式。 * NONE: 不启动随机播报。 * SCENE: 按场景随机播报。场景内段落按顺序播报。 * SCRIPT_ITEM:按段落随机播报。场景按顺序播报。 * SCENE_AND_SCRIPT_ITEM: 场景和段落都随机播报。 + + :param random_play_mode: The random_play_mode of this PlayPolicy. + :type random_play_mode: str + """ + self._random_play_mode = random_play_mode + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ppt_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ppt_asset_meta.py index 9bcc1d155..be8c5fac8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ppt_asset_meta.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ppt_asset_meta.py @@ -19,6 +19,7 @@ class PPTAssetMeta: openapi_types = { 'auto_analysis': 'bool', 'ppt_analysis_status': 'str', + 'error_info': 'ErrorResponse', 'page_count': 'int', 'pages': 'list[PPTPageInfo]' } @@ -26,11 +27,12 @@ class PPTAssetMeta: attribute_map = { 'auto_analysis': 'auto_analysis', 'ppt_analysis_status': 'ppt_analysis_status', + 'error_info': 'error_info', 'page_count': 'page_count', 'pages': 'pages' } - def __init__(self, auto_analysis=None, ppt_analysis_status=None, page_count=None, pages=None): + def __init__(self, auto_analysis=None, ppt_analysis_status=None, error_info=None, page_count=None, pages=None): """PPTAssetMeta The model defined in huaweicloud sdk @@ -39,6 +41,8 @@ class PPTAssetMeta: :type auto_analysis: bool :param ppt_analysis_status: PPT解析状态。 * INITIALIZE:初始 * WAITING:等待 * CONVERTING:解析中 * FAILED:失败 * SUCCEEDED:成功 * CANCELED:取消 :type ppt_analysis_status: str + :param error_info: + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` :param page_count: PPT页面总数。 :type page_count: int :param pages: PPT页面图片。 @@ -49,6 +53,7 @@ class PPTAssetMeta: self._auto_analysis = None self._ppt_analysis_status = None + self._error_info = None self._page_count = None self._pages = None self.discriminator = None @@ -57,6 +62,8 @@ class PPTAssetMeta: self.auto_analysis = auto_analysis if ppt_analysis_status is not None: self.ppt_analysis_status = ppt_analysis_status + if error_info is not None: + self.error_info = error_info if page_count is not None: self.page_count = page_count if pages is not None: @@ -106,6 +113,24 @@ class PPTAssetMeta: """ self._ppt_analysis_status = ppt_analysis_status + @property + def error_info(self): + """Gets the error_info of this PPTAssetMeta. + + :return: The error_info of this PPTAssetMeta. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + return self._error_info + + @error_info.setter + def error_info(self, error_info): + """Sets the error_info of this PPTAssetMeta. + + :param error_info: The error_info of this PPTAssetMeta. + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + self._error_info = error_info + @property def page_count(self): """Gets the page_count of this PPTAssetMeta. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/reply_audio_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/reply_audio_info.py new file mode 100644 index 000000000..0301c866f --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/reply_audio_info.py @@ -0,0 +1,144 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReplyAudioInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'audio_url': 'str', + 'audio_name': 'str' + } + + attribute_map = { + 'audio_url': 'audio_url', + 'audio_name': 'audio_name' + } + + def __init__(self, audio_url=None, audio_name=None): + """ReplyAudioInfo + + The model defined in huaweicloud sdk + + :param audio_url: 音频URL + :type audio_url: str + :param audio_name: 音频名 + :type audio_name: str + """ + + + + self._audio_url = None + self._audio_name = None + self.discriminator = None + + if audio_url is not None: + self.audio_url = audio_url + if audio_name is not None: + self.audio_name = audio_name + + @property + def audio_url(self): + """Gets the audio_url of this ReplyAudioInfo. + + 音频URL + + :return: The audio_url of this ReplyAudioInfo. + :rtype: str + """ + return self._audio_url + + @audio_url.setter + def audio_url(self, audio_url): + """Sets the audio_url of this ReplyAudioInfo. + + 音频URL + + :param audio_url: The audio_url of this ReplyAudioInfo. + :type audio_url: str + """ + self._audio_url = audio_url + + @property + def audio_name(self): + """Gets the audio_name of this ReplyAudioInfo. + + 音频名 + + :return: The audio_name of this ReplyAudioInfo. + :rtype: str + """ + return self._audio_name + + @audio_name.setter + def audio_name(self, audio_name): + """Sets the audio_name of this ReplyAudioInfo. + + 音频名 + + :param audio_name: The audio_name of this ReplyAudioInfo. + :type audio_name: str + """ + self._audio_name = audio_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReplyAudioInfo): + return False + + return self.__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/report_live_event_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/report_live_event_req.py index b8653ccb8..decb4c423 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/report_live_event_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/report_live_event_req.py @@ -18,15 +18,17 @@ class ReportLiveEventReq: openapi_types = { 'total': 'int', - 'events': 'list[LiveEvent]' + 'events': 'list[LiveEvent]', + 'review_config': 'ReviewConfig' } attribute_map = { 'total': 'total', - 'events': 'events' + 'events': 'events', + 'review_config': 'review_config' } - def __init__(self, total=None, events=None): + def __init__(self, total=None, events=None, review_config=None): """ReportLiveEventReq The model defined in huaweicloud sdk @@ -35,17 +37,22 @@ class ReportLiveEventReq: :type total: int :param events: 事件内容。 :type events: list[:class:`huaweicloudsdkmetastudio.v1.LiveEvent`] + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` """ self._total = None self._events = None + self._review_config = None self.discriminator = None self.total = total if events is not None: self.events = events + if review_config is not None: + self.review_config = review_config @property def total(self): @@ -91,6 +98,24 @@ class ReportLiveEventReq: """ self._events = events + @property + def review_config(self): + """Gets the review_config of this ReportLiveEventReq. + + :return: The review_config of this ReportLiveEventReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this ReportLiveEventReq. + + :param review_config: The review_config of this ReportLiveEventReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py index 4938f4c93..7c2fa6cc0 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/restore_asset_request.py @@ -31,7 +31,7 @@ class RestoreAssetRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -51,7 +51,7 @@ class RestoreAssetRequest: def x_app_user_id(self): """Gets the x_app_user_id of this RestoreAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this RestoreAssetRequest. :rtype: str @@ -62,7 +62,7 @@ class RestoreAssetRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this RestoreAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this RestoreAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/review_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/review_config.py new file mode 100644 index 000000000..a0b809bee --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/review_config.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ReviewConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'no_need_review': 'bool' + } + + attribute_map = { + 'no_need_review': 'no_need_review' + } + + def __init__(self, no_need_review=None): + """ReviewConfig + + The model defined in huaweicloud sdk + + :param no_need_review: 免审核。 目前仅白名单用户可使用此参数,非白名单用户跟随系统策略审核。 + :type no_need_review: bool + """ + + + + self._no_need_review = None + self.discriminator = None + + if no_need_review is not None: + self.no_need_review = no_need_review + + @property + def no_need_review(self): + """Gets the no_need_review of this ReviewConfig. + + 免审核。 目前仅白名单用户可使用此参数,非白名单用户跟随系统策略审核。 + + :return: The no_need_review of this ReviewConfig. + :rtype: bool + """ + return self._no_need_review + + @no_need_review.setter + def no_need_review(self, no_need_review): + """Sets the no_need_review of this ReviewConfig. + + 免审核。 目前仅白名单用户可使用此参数,非白名单用户跟随系统策略审核。 + + :param no_need_review: The no_need_review of this ReviewConfig. + :type no_need_review: bool + """ + self._no_need_review = no_need_review + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ReviewConfig): + return False + + return self.__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/rtc_user_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/rtc_user_info.py index 6d99b1c5f..8cd1789fe 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/rtc_user_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/rtc_user_info.py @@ -35,7 +35,7 @@ class RTCUserInfo: The model defined in huaweicloud sdk - :param user_type: 用户类型。 * CAPTURE: 直播助手,将摄像头获取视频流推送到RTC房间 * ANIMATION: VDS服务,从RTC房间拉视频流生成动作数据 * RENDER: 渲染服务,将动作数据渲染成数字人动画 * PLAYER: 普通观看方,可选择原始视频流或者数字人动画视频流观看 + :param user_type: 用户类型。 * CAPTURE: 直播助手,将摄像头获取视频流推送到RTC房间 * ANIMATION: VDS服务,从RTC房间拉视频流生成动作数据 * RENDER: 渲染服务,将动作数据渲染成数字人动画 * PLAYER: 普通观看方,可选择原始视频流或者数字人动画视频流观看 * INFERENCE_USER: 数字人推理端用户。从RTC房间接收音频流,并推送视频流到RTC房间 * END_USER: 端侧用户。从推送音频流到RTC房间,并从RTC房间接收视频流 :type user_type: str :param user_id: RTC用户ID。 :type user_id: str @@ -66,7 +66,7 @@ class RTCUserInfo: def user_type(self): """Gets the user_type of this RTCUserInfo. - 用户类型。 * CAPTURE: 直播助手,将摄像头获取视频流推送到RTC房间 * ANIMATION: VDS服务,从RTC房间拉视频流生成动作数据 * RENDER: 渲染服务,将动作数据渲染成数字人动画 * PLAYER: 普通观看方,可选择原始视频流或者数字人动画视频流观看 + 用户类型。 * CAPTURE: 直播助手,将摄像头获取视频流推送到RTC房间 * ANIMATION: VDS服务,从RTC房间拉视频流生成动作数据 * RENDER: 渲染服务,将动作数据渲染成数字人动画 * PLAYER: 普通观看方,可选择原始视频流或者数字人动画视频流观看 * INFERENCE_USER: 数字人推理端用户。从RTC房间接收音频流,并推送视频流到RTC房间 * END_USER: 端侧用户。从推送音频流到RTC房间,并从RTC房间接收视频流 :return: The user_type of this RTCUserInfo. :rtype: str @@ -77,7 +77,7 @@ class RTCUserInfo: def user_type(self, user_type): """Sets the user_type of this RTCUserInfo. - 用户类型。 * CAPTURE: 直播助手,将摄像头获取视频流推送到RTC房间 * ANIMATION: VDS服务,从RTC房间拉视频流生成动作数据 * RENDER: 渲染服务,将动作数据渲染成数字人动画 * PLAYER: 普通观看方,可选择原始视频流或者数字人动画视频流观看 + 用户类型。 * CAPTURE: 直播助手,将摄像头获取视频流推送到RTC房间 * ANIMATION: VDS服务,从RTC房间拉视频流生成动作数据 * RENDER: 渲染服务,将动作数据渲染成数字人动画 * PLAYER: 普通观看方,可选择原始视频流或者数字人动画视频流观看 * INFERENCE_USER: 数字人推理端用户。从RTC房间接收音频流,并推送视频流到RTC房间 * END_USER: 端侧用户。从推送音频流到RTC房间,并从RTC房间接收视频流 :param user_type: The user_type of this RTCUserInfo. :type user_type: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shared_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shared_config.py new file mode 100644 index 000000000..8bd4b1eb0 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shared_config.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SharedConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'shared_type': 'str', + 'shared_state': 'str', + 'expire_time': 'str', + 'allowed_project_ids': 'list[str]' + } + + attribute_map = { + 'shared_type': 'shared_type', + 'shared_state': 'shared_state', + 'expire_time': 'expire_time', + 'allowed_project_ids': 'allowed_project_ids' + } + + def __init__(self, shared_type=None, shared_state=None, expire_time=None, allowed_project_ids=None): + """SharedConfig + + The model defined in huaweicloud sdk + + :param shared_type: 共享类型。 * PRIVATE: 私有,仅本租户可访问。 * PUBLIC: 公开,所有租户可访问。当前仅提供系统资产可公开访问。 * SHARED:共享,指定租户可访问。拥有者指定租户可访问。 + :type shared_type: str + :param shared_state: 共享状态。 * PUBLISHED: 发布。模板可用。 - DRAFT: 草稿。编辑态,仅拥有者可访问。 - REVIEW:审核态。不可编辑,仅拥有者/审核人员可查看。 + :type shared_state: str + :param expire_time: 共享过期时间。空表示永久不过期。 + :type expire_time: str + :param allowed_project_ids: 允许访问本资产的租户列表 + :type allowed_project_ids: list[str] + """ + + + + self._shared_type = None + self._shared_state = None + self._expire_time = None + self._allowed_project_ids = None + self.discriminator = None + + if shared_type is not None: + self.shared_type = shared_type + if shared_state is not None: + self.shared_state = shared_state + if expire_time is not None: + self.expire_time = expire_time + if allowed_project_ids is not None: + self.allowed_project_ids = allowed_project_ids + + @property + def shared_type(self): + """Gets the shared_type of this SharedConfig. + + 共享类型。 * PRIVATE: 私有,仅本租户可访问。 * PUBLIC: 公开,所有租户可访问。当前仅提供系统资产可公开访问。 * SHARED:共享,指定租户可访问。拥有者指定租户可访问。 + + :return: The shared_type of this SharedConfig. + :rtype: str + """ + return self._shared_type + + @shared_type.setter + def shared_type(self, shared_type): + """Sets the shared_type of this SharedConfig. + + 共享类型。 * PRIVATE: 私有,仅本租户可访问。 * PUBLIC: 公开,所有租户可访问。当前仅提供系统资产可公开访问。 * SHARED:共享,指定租户可访问。拥有者指定租户可访问。 + + :param shared_type: The shared_type of this SharedConfig. + :type shared_type: str + """ + self._shared_type = shared_type + + @property + def shared_state(self): + """Gets the shared_state of this SharedConfig. + + 共享状态。 * PUBLISHED: 发布。模板可用。 - DRAFT: 草稿。编辑态,仅拥有者可访问。 - REVIEW:审核态。不可编辑,仅拥有者/审核人员可查看。 + + :return: The shared_state of this SharedConfig. + :rtype: str + """ + return self._shared_state + + @shared_state.setter + def shared_state(self, shared_state): + """Sets the shared_state of this SharedConfig. + + 共享状态。 * PUBLISHED: 发布。模板可用。 - DRAFT: 草稿。编辑态,仅拥有者可访问。 - REVIEW:审核态。不可编辑,仅拥有者/审核人员可查看。 + + :param shared_state: The shared_state of this SharedConfig. + :type shared_state: str + """ + self._shared_state = shared_state + + @property + def expire_time(self): + """Gets the expire_time of this SharedConfig. + + 共享过期时间。空表示永久不过期。 + + :return: The expire_time of this SharedConfig. + :rtype: str + """ + return self._expire_time + + @expire_time.setter + def expire_time(self, expire_time): + """Sets the expire_time of this SharedConfig. + + 共享过期时间。空表示永久不过期。 + + :param expire_time: The expire_time of this SharedConfig. + :type expire_time: str + """ + self._expire_time = expire_time + + @property + def allowed_project_ids(self): + """Gets the allowed_project_ids of this SharedConfig. + + 允许访问本资产的租户列表 + + :return: The allowed_project_ids of this SharedConfig. + :rtype: list[str] + """ + return self._allowed_project_ids + + @allowed_project_ids.setter + def allowed_project_ids(self, allowed_project_ids): + """Sets the allowed_project_ids of this SharedConfig. + + 允许访问本资产的租户列表 + + :param allowed_project_ids: The allowed_project_ids of this SharedConfig. + :type allowed_project_ids: list[str] + """ + self._allowed_project_ids = allowed_project_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, SharedConfig): + return False + + return self.__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/shoot_script_detail.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_detail.py new file mode 100644 index 000000000..7dc8b6b74 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_detail.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShootScriptDetail: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_type': 'str', + 'text_config': 'TextConfig', + 'animation_config': 'list[AnimationConfig]', + 'background_config': 'list[BackgroundConfigInfo]', + 'emotion_config': 'list[EmotionConfig]', + 'layer_config': 'list[LayerConfig]', + 'thumbnail_url': 'str' + } + + attribute_map = { + 'script_type': 'script_type', + 'text_config': 'text_config', + 'animation_config': 'animation_config', + 'background_config': 'background_config', + 'emotion_config': 'emotion_config', + 'layer_config': 'layer_config', + 'thumbnail_url': 'thumbnail_url' + } + + def __init__(self, script_type=None, text_config=None, animation_config=None, background_config=None, emotion_config=None, layer_config=None, thumbnail_url=None): + """ShootScriptDetail + + The model defined in huaweicloud sdk + + :param script_type: 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + :type script_type: str + :param text_config: + :type text_config: :class:`huaweicloudsdkmetastudio.v1.TextConfig` + :param animation_config: 动作配置。 > * 推荐使用text_config中插入动作标签,不配置animation_config。 > * 使用animation_config方式配置动作,在整个讲解过程中动作循环播放。 > * 分身数字人视频制作时此参数不生效。 + :type animation_config: list[:class:`huaweicloudsdkmetastudio.v1.AnimationConfig`] + :param background_config: 背景配置。 + :type background_config: list[:class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo`] + :param emotion_config: 情感标签配置。 > * 分身数字人视频制作时此参数不生效。 > * 推荐在text_config中插入情感标签,此参数将被废弃。 + :type emotion_config: list[:class:`huaweicloudsdkmetastudio.v1.EmotionConfig`] + :param layer_config: 图层配置。 + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + :param thumbnail_url: 剧本场景缩略图url。 + :type thumbnail_url: str + """ + + + + self._script_type = None + self._text_config = None + self._animation_config = None + self._background_config = None + self._emotion_config = None + self._layer_config = None + self._thumbnail_url = None + self.discriminator = None + + if script_type is not None: + self.script_type = script_type + if text_config is not None: + self.text_config = text_config + if animation_config is not None: + self.animation_config = animation_config + if background_config is not None: + self.background_config = background_config + if emotion_config is not None: + self.emotion_config = emotion_config + if layer_config is not None: + self.layer_config = layer_config + if thumbnail_url is not None: + self.thumbnail_url = thumbnail_url + + @property + def script_type(self): + """Gets the script_type of this ShootScriptDetail. + + 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + + :return: The script_type of this ShootScriptDetail. + :rtype: str + """ + return self._script_type + + @script_type.setter + def script_type(self, script_type): + """Sets the script_type of this ShootScriptDetail. + + 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + + :param script_type: The script_type of this ShootScriptDetail. + :type script_type: str + """ + self._script_type = script_type + + @property + def text_config(self): + """Gets the text_config of this ShootScriptDetail. + + :return: The text_config of this ShootScriptDetail. + :rtype: :class:`huaweicloudsdkmetastudio.v1.TextConfig` + """ + return self._text_config + + @text_config.setter + def text_config(self, text_config): + """Sets the text_config of this ShootScriptDetail. + + :param text_config: The text_config of this ShootScriptDetail. + :type text_config: :class:`huaweicloudsdkmetastudio.v1.TextConfig` + """ + self._text_config = text_config + + @property + def animation_config(self): + """Gets the animation_config of this ShootScriptDetail. + + 动作配置。 > * 推荐使用text_config中插入动作标签,不配置animation_config。 > * 使用animation_config方式配置动作,在整个讲解过程中动作循环播放。 > * 分身数字人视频制作时此参数不生效。 + + :return: The animation_config of this ShootScriptDetail. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.AnimationConfig`] + """ + return self._animation_config + + @animation_config.setter + def animation_config(self, animation_config): + """Sets the animation_config of this ShootScriptDetail. + + 动作配置。 > * 推荐使用text_config中插入动作标签,不配置animation_config。 > * 使用animation_config方式配置动作,在整个讲解过程中动作循环播放。 > * 分身数字人视频制作时此参数不生效。 + + :param animation_config: The animation_config of this ShootScriptDetail. + :type animation_config: list[:class:`huaweicloudsdkmetastudio.v1.AnimationConfig`] + """ + self._animation_config = animation_config + + @property + def background_config(self): + """Gets the background_config of this ShootScriptDetail. + + 背景配置。 + + :return: The background_config of this ShootScriptDetail. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo`] + """ + return self._background_config + + @background_config.setter + def background_config(self, background_config): + """Sets the background_config of this ShootScriptDetail. + + 背景配置。 + + :param background_config: The background_config of this ShootScriptDetail. + :type background_config: list[:class:`huaweicloudsdkmetastudio.v1.BackgroundConfigInfo`] + """ + self._background_config = background_config + + @property + def emotion_config(self): + """Gets the emotion_config of this ShootScriptDetail. + + 情感标签配置。 > * 分身数字人视频制作时此参数不生效。 > * 推荐在text_config中插入情感标签,此参数将被废弃。 + + :return: The emotion_config of this ShootScriptDetail. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.EmotionConfig`] + """ + return self._emotion_config + + @emotion_config.setter + def emotion_config(self, emotion_config): + """Sets the emotion_config of this ShootScriptDetail. + + 情感标签配置。 > * 分身数字人视频制作时此参数不生效。 > * 推荐在text_config中插入情感标签,此参数将被废弃。 + + :param emotion_config: The emotion_config of this ShootScriptDetail. + :type emotion_config: list[:class:`huaweicloudsdkmetastudio.v1.EmotionConfig`] + """ + self._emotion_config = emotion_config + + @property + def layer_config(self): + """Gets the layer_config of this ShootScriptDetail. + + 图层配置。 + + :return: The layer_config of this ShootScriptDetail. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + return self._layer_config + + @layer_config.setter + def layer_config(self, layer_config): + """Sets the layer_config of this ShootScriptDetail. + + 图层配置。 + + :param layer_config: The layer_config of this ShootScriptDetail. + :type layer_config: list[:class:`huaweicloudsdkmetastudio.v1.LayerConfig`] + """ + self._layer_config = layer_config + + @property + def thumbnail_url(self): + """Gets the thumbnail_url of this ShootScriptDetail. + + 剧本场景缩略图url。 + + :return: The thumbnail_url of this ShootScriptDetail. + :rtype: str + """ + return self._thumbnail_url + + @thumbnail_url.setter + def thumbnail_url(self, thumbnail_url): + """Sets the thumbnail_url of this ShootScriptDetail. + + 剧本场景缩略图url。 + + :param thumbnail_url: The thumbnail_url of this ShootScriptDetail. + :type thumbnail_url: str + """ + self._thumbnail_url = thumbnail_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShootScriptDetail): + return False + + return self.__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/shoot_script_item.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_item.py index 2d144d3a2..bb7ef9ebc 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_item.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_item.py @@ -45,7 +45,8 @@ class ShootScriptItem: if sequence_no is not None: self.sequence_no = sequence_no - self.shoot_script = shoot_script + if shoot_script is not None: + self.shoot_script = shoot_script @property def sequence_no(self): diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_item_base_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_item_base_info.py new file mode 100644 index 000000000..d8cb54469 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_item_base_info.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShootScriptItemBaseInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'sequence_no': 'int' + } + + attribute_map = { + 'sequence_no': 'sequence_no' + } + + def __init__(self, sequence_no=None): + """ShootScriptItemBaseInfo + + The model defined in huaweicloud sdk + + :param sequence_no: 剧本序号。 + :type sequence_no: int + """ + + + + self._sequence_no = None + self.discriminator = None + + if sequence_no is not None: + self.sequence_no = sequence_no + + @property + def sequence_no(self): + """Gets the sequence_no of this ShootScriptItemBaseInfo. + + 剧本序号。 + + :return: The sequence_no of this ShootScriptItemBaseInfo. + :rtype: int + """ + return self._sequence_no + + @sequence_no.setter + def sequence_no(self, sequence_no): + """Sets the sequence_no of this ShootScriptItemBaseInfo. + + 剧本序号。 + + :param sequence_no: The sequence_no of this ShootScriptItemBaseInfo. + :type sequence_no: int + """ + self._sequence_no = sequence_no + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShootScriptItemBaseInfo): + return False + + return self.__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/shoot_script_show_item.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_show_item.py new file mode 100644 index 000000000..f85197519 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/shoot_script_show_item.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ShootScriptShowItem: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'sequence_no': 'int', + 'shoot_script': 'ShootScriptDetail' + } + + attribute_map = { + 'sequence_no': 'sequence_no', + 'shoot_script': 'shoot_script' + } + + def __init__(self, sequence_no=None, shoot_script=None): + """ShootScriptShowItem + + The model defined in huaweicloud sdk + + :param sequence_no: 剧本序号。 + :type sequence_no: int + :param shoot_script: + :type shoot_script: :class:`huaweicloudsdkmetastudio.v1.ShootScriptDetail` + """ + + + + self._sequence_no = None + self._shoot_script = None + self.discriminator = None + + if sequence_no is not None: + self.sequence_no = sequence_no + if shoot_script is not None: + self.shoot_script = shoot_script + + @property + def sequence_no(self): + """Gets the sequence_no of this ShootScriptShowItem. + + 剧本序号。 + + :return: The sequence_no of this ShootScriptShowItem. + :rtype: int + """ + return self._sequence_no + + @sequence_no.setter + def sequence_no(self, sequence_no): + """Sets the sequence_no of this ShootScriptShowItem. + + 剧本序号。 + + :param sequence_no: The sequence_no of this ShootScriptShowItem. + :type sequence_no: int + """ + self._sequence_no = sequence_no + + @property + def shoot_script(self): + """Gets the shoot_script of this ShootScriptShowItem. + + :return: The shoot_script of this ShootScriptShowItem. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ShootScriptDetail` + """ + return self._shoot_script + + @shoot_script.setter + def shoot_script(self, shoot_script): + """Sets the shoot_script of this ShootScriptShowItem. + + :param shoot_script: The shoot_script of this ShootScriptShowItem. + :type shoot_script: :class:`huaweicloudsdkmetastudio.v1.ShootScriptDetail` + """ + self._shoot_script = shoot_script + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ShootScriptShowItem): + return False + + return self.__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/show2_d_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_request.py index 9676100f8..b01f3a8e3 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_request.py @@ -35,7 +35,7 @@ class Show2DDigitalHumanVideoRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param show_script: 是否需要返回剧本参数配置。 :type show_script: bool @@ -80,7 +80,7 @@ class Show2DDigitalHumanVideoRequest: def x_app_user_id(self): """Gets the x_app_user_id of this Show2DDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this Show2DDigitalHumanVideoRequest. :rtype: str @@ -91,7 +91,7 @@ class Show2DDigitalHumanVideoRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this Show2DDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this Show2DDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_response.py index e1cb4f9b2..c8e74eb2f 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show2_d_digital_human_video_response.py @@ -84,9 +84,9 @@ class Show2DDigitalHumanVideoResponse(SdkResponse): :type lastupdate_time: str :param script_id: 剧本ID。 :type script_id: str - :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 + :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :type video_making_type: str - :param human_image: 人物照片,需要Base64编码。 + :param human_image: 人物照片,需要Base64编码。 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :type human_image: str :param model_asset_id: 分身数字人模型资产ID。 :type model_asset_id: str @@ -375,7 +375,7 @@ class Show2DDigitalHumanVideoResponse(SdkResponse): def video_making_type(self): """Gets the video_making_type of this Show2DDigitalHumanVideoResponse. - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 + 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :return: The video_making_type of this Show2DDigitalHumanVideoResponse. :rtype: str @@ -386,7 +386,7 @@ class Show2DDigitalHumanVideoResponse(SdkResponse): def video_making_type(self, video_making_type): """Sets the video_making_type of this Show2DDigitalHumanVideoResponse. - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 + 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :param video_making_type: The video_making_type of this Show2DDigitalHumanVideoResponse. :type video_making_type: str @@ -397,7 +397,7 @@ class Show2DDigitalHumanVideoResponse(SdkResponse): def human_image(self): """Gets the human_image of this Show2DDigitalHumanVideoResponse. - 人物照片,需要Base64编码。 + 人物照片,需要Base64编码。 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :return: The human_image of this Show2DDigitalHumanVideoResponse. :rtype: str @@ -408,7 +408,7 @@ class Show2DDigitalHumanVideoResponse(SdkResponse): def human_image(self, human_image): """Sets the human_image of this Show2DDigitalHumanVideoResponse. - 人物照片,需要Base64编码。 + 人物照片,需要Base64编码。 > * 该参数已废弃,照片数字人视频制作使用“创建照片分身数字人视频制作任务”接口。 :param human_image: The human_image of this Show2DDigitalHumanVideoResponse. :type human_image: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py index 5e43fe005..420b7684d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_request.py @@ -31,7 +31,7 @@ class ShowAssetRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -51,7 +51,7 @@ class ShowAssetRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowAssetRequest. :rtype: str @@ -62,7 +62,7 @@ class ShowAssetRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_response.py index ae130803d..6a72dd913 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_asset_response.py @@ -25,6 +25,9 @@ class ShowAssetResponse(SdkResponse): 'update_time': 'str', 'asset_type': 'str', 'asset_state': 'str', + 'fail_type': 'str', + 'reason': 'str', + 'is_need_generate_cover': 'bool', 'tags': 'list[str]', 'asset_extra_meta': 'AssetExtraMeta', 'system_properties': 'list[SystemProperty]', @@ -40,6 +43,9 @@ class ShowAssetResponse(SdkResponse): 'update_time': 'update_time', 'asset_type': 'asset_type', 'asset_state': 'asset_state', + 'fail_type': 'fail_type', + 'reason': 'reason', + 'is_need_generate_cover': 'is_need_generate_cover', 'tags': 'tags', 'asset_extra_meta': 'asset_extra_meta', 'system_properties': 'system_properties', @@ -47,7 +53,7 @@ class ShowAssetResponse(SdkResponse): 'x_request_id': 'X-Request-Id' } - def __init__(self, asset_id=None, asset_name=None, asset_description=None, create_time=None, update_time=None, asset_type=None, asset_state=None, tags=None, asset_extra_meta=None, system_properties=None, files=None, x_request_id=None): + def __init__(self, asset_id=None, asset_name=None, asset_description=None, create_time=None, update_time=None, asset_type=None, asset_state=None, fail_type=None, reason=None, is_need_generate_cover=None, tags=None, asset_extra_meta=None, system_properties=None, files=None, x_request_id=None): """ShowAssetResponse The model defined in huaweicloud sdk @@ -62,10 +68,16 @@ class ShowAssetResponse(SdkResponse): :type create_time: str :param update_time: 资产更新时间。 :type update_time: str - :param asset_type: 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + :param asset_type: 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :type asset_type: str :param asset_state: 资产状态。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK: 资产被冻结,资产不可用,不可查看文件。 :type asset_state: str + :param fail_type: 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + :type fail_type: str + :param reason: 冻结/解冻/失败 原因。 + :type reason: str + :param is_need_generate_cover: 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + :type is_need_generate_cover: bool :param tags: 标签列表。 :type tags: list[str] :param asset_extra_meta: @@ -87,6 +99,9 @@ class ShowAssetResponse(SdkResponse): self._update_time = None self._asset_type = None self._asset_state = None + self._fail_type = None + self._reason = None + self._is_need_generate_cover = None self._tags = None self._asset_extra_meta = None self._system_properties = None @@ -108,6 +123,12 @@ class ShowAssetResponse(SdkResponse): self.asset_type = asset_type if asset_state is not None: self.asset_state = asset_state + if fail_type is not None: + self.fail_type = fail_type + if reason is not None: + self.reason = reason + if is_need_generate_cover is not None: + self.is_need_generate_cover = is_need_generate_cover if tags is not None: self.tags = tags if asset_extra_meta is not None: @@ -233,7 +254,7 @@ class ShowAssetResponse(SdkResponse): def asset_type(self): """Gets the asset_type of this ShowAssetResponse. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :return: The asset_type of this ShowAssetResponse. :rtype: str @@ -244,7 +265,7 @@ class ShowAssetResponse(SdkResponse): def asset_type(self, asset_type): """Sets the asset_type of this ShowAssetResponse. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :param asset_type: The asset_type of this ShowAssetResponse. :type asset_type: str @@ -273,6 +294,72 @@ class ShowAssetResponse(SdkResponse): """ self._asset_state = asset_state + @property + def fail_type(self): + """Gets the fail_type of this ShowAssetResponse. + + 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + + :return: The fail_type of this ShowAssetResponse. + :rtype: str + """ + return self._fail_type + + @fail_type.setter + def fail_type(self, fail_type): + """Sets the fail_type of this ShowAssetResponse. + + 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + + :param fail_type: The fail_type of this ShowAssetResponse. + :type fail_type: str + """ + self._fail_type = fail_type + + @property + def reason(self): + """Gets the reason of this ShowAssetResponse. + + 冻结/解冻/失败 原因。 + + :return: The reason of this ShowAssetResponse. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this ShowAssetResponse. + + 冻结/解冻/失败 原因。 + + :param reason: The reason of this ShowAssetResponse. + :type reason: str + """ + self._reason = reason + + @property + def is_need_generate_cover(self): + """Gets the is_need_generate_cover of this ShowAssetResponse. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :return: The is_need_generate_cover of this ShowAssetResponse. + :rtype: bool + """ + return self._is_need_generate_cover + + @is_need_generate_cover.setter + def is_need_generate_cover(self, is_need_generate_cover): + """Sets the is_need_generate_cover of this ShowAssetResponse. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :param is_need_generate_cover: The is_need_generate_cover of this ShowAssetResponse. + :type is_need_generate_cover: bool + """ + self._is_need_generate_cover = is_need_generate_cover + @property def tags(self): """Gets the tags of this ShowAssetResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py index 35ccc36a1..2ab2d2ec9 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_request.py @@ -33,7 +33,7 @@ class ShowDigitalHumanBusinessCardRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class ShowDigitalHumanBusinessCardRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowDigitalHumanBusinessCardRequest. :rtype: str @@ -84,7 +84,7 @@ class ShowDigitalHumanBusinessCardRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_response.py index 700d8ab96..fad2a4672 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_digital_human_business_card_response.py @@ -22,8 +22,10 @@ class ShowDigitalHumanBusinessCardResponse(SdkResponse): 'card_templet_asset_id': 'str', 'card_text_config': 'BusinessCardTextConfig', 'card_image_url': 'BusinessCardImageUrl', + 'introduction_type': 'str', 'introduction_text': 'str', 'voice_asset_id': 'str', + 'introduction_audio_asset_id': 'str', 'gender': 'str', 'x_request_id': 'str' } @@ -33,13 +35,15 @@ class ShowDigitalHumanBusinessCardResponse(SdkResponse): 'card_templet_asset_id': 'card_templet_asset_id', 'card_text_config': 'card_text_config', 'card_image_url': 'card_image_url', + 'introduction_type': 'introduction_type', 'introduction_text': 'introduction_text', 'voice_asset_id': 'voice_asset_id', + 'introduction_audio_asset_id': 'introduction_audio_asset_id', 'gender': 'gender', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_info=None, card_templet_asset_id=None, card_text_config=None, card_image_url=None, introduction_text=None, voice_asset_id=None, gender=None, x_request_id=None): + def __init__(self, job_info=None, card_templet_asset_id=None, card_text_config=None, card_image_url=None, introduction_type=None, introduction_text=None, voice_asset_id=None, introduction_audio_asset_id=None, gender=None, x_request_id=None): """ShowDigitalHumanBusinessCardResponse The model defined in huaweicloud sdk @@ -52,10 +56,14 @@ class ShowDigitalHumanBusinessCardResponse(SdkResponse): :type card_text_config: :class:`huaweicloudsdkmetastudio.v1.BusinessCardTextConfig` :param card_image_url: :type card_image_url: :class:`huaweicloudsdkmetastudio.v1.BusinessCardImageUrl` + :param introduction_type: 自我介绍驱动方式。 * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动,需要在资产库中先上传语音资产 + :type introduction_type: str :param introduction_text: 自我介绍文本,用于驱动数字人口型。 :type introduction_text: str :param voice_asset_id: 音色资产ID。 :type voice_asset_id: str + :param introduction_audio_asset_id: 自我介绍语音资产ID,用于驱动数字人口型。 > * 介绍语音需要作为asset_type=AUDIO资产先上传至资产库。 + :type introduction_audio_asset_id: str :param gender: 性别。 * MALE:男性 * FEMALE:女性 :type gender: str :param x_request_id: @@ -68,8 +76,10 @@ class ShowDigitalHumanBusinessCardResponse(SdkResponse): self._card_templet_asset_id = None self._card_text_config = None self._card_image_url = None + self._introduction_type = None self._introduction_text = None self._voice_asset_id = None + self._introduction_audio_asset_id = None self._gender = None self._x_request_id = None self.discriminator = None @@ -82,10 +92,14 @@ class ShowDigitalHumanBusinessCardResponse(SdkResponse): self.card_text_config = card_text_config if card_image_url is not None: self.card_image_url = card_image_url + if introduction_type is not None: + self.introduction_type = introduction_type if introduction_text is not None: self.introduction_text = introduction_text if voice_asset_id is not None: self.voice_asset_id = voice_asset_id + if introduction_audio_asset_id is not None: + self.introduction_audio_asset_id = introduction_audio_asset_id if gender is not None: self.gender = gender if x_request_id is not None: @@ -167,6 +181,28 @@ class ShowDigitalHumanBusinessCardResponse(SdkResponse): """ self._card_image_url = card_image_url + @property + def introduction_type(self): + """Gets the introduction_type of this ShowDigitalHumanBusinessCardResponse. + + 自我介绍驱动方式。 * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动,需要在资产库中先上传语音资产 + + :return: The introduction_type of this ShowDigitalHumanBusinessCardResponse. + :rtype: str + """ + return self._introduction_type + + @introduction_type.setter + def introduction_type(self, introduction_type): + """Sets the introduction_type of this ShowDigitalHumanBusinessCardResponse. + + 自我介绍驱动方式。 * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动,需要在资产库中先上传语音资产 + + :param introduction_type: The introduction_type of this ShowDigitalHumanBusinessCardResponse. + :type introduction_type: str + """ + self._introduction_type = introduction_type + @property def introduction_text(self): """Gets the introduction_text of this ShowDigitalHumanBusinessCardResponse. @@ -211,6 +247,28 @@ class ShowDigitalHumanBusinessCardResponse(SdkResponse): """ self._voice_asset_id = voice_asset_id + @property + def introduction_audio_asset_id(self): + """Gets the introduction_audio_asset_id of this ShowDigitalHumanBusinessCardResponse. + + 自我介绍语音资产ID,用于驱动数字人口型。 > * 介绍语音需要作为asset_type=AUDIO资产先上传至资产库。 + + :return: The introduction_audio_asset_id of this ShowDigitalHumanBusinessCardResponse. + :rtype: str + """ + return self._introduction_audio_asset_id + + @introduction_audio_asset_id.setter + def introduction_audio_asset_id(self, introduction_audio_asset_id): + """Sets the introduction_audio_asset_id of this ShowDigitalHumanBusinessCardResponse. + + 自我介绍语音资产ID,用于驱动数字人口型。 > * 介绍语音需要作为asset_type=AUDIO资产先上传至资产库。 + + :param introduction_audio_asset_id: The introduction_audio_asset_id of this ShowDigitalHumanBusinessCardResponse. + :type introduction_audio_asset_id: str + """ + self._introduction_audio_asset_id = introduction_audio_asset_id + @property def gender(self): """Gets the gender of this ShowDigitalHumanBusinessCardResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py index 522eb85bb..28356a18b 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_detection_request.py @@ -33,7 +33,7 @@ class ShowPhotoDetectionRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class ShowPhotoDetectionRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowPhotoDetectionRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowPhotoDetectionRequest. :rtype: str @@ -84,7 +84,7 @@ class ShowPhotoDetectionRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowPhotoDetectionRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowPhotoDetectionRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py index f205998e5..4de2d65a1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_photo_digital_human_video_request.py @@ -35,7 +35,7 @@ class ShowPhotoDigitalHumanVideoRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param show_script: 是否需要返回剧本参数配置。 :type show_script: bool @@ -80,7 +80,7 @@ class ShowPhotoDigitalHumanVideoRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. :rtype: str @@ -91,7 +91,7 @@ class ShowPhotoDigitalHumanVideoRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowPhotoDigitalHumanVideoRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py index 175ddfc85..94e7d59e1 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_picture_modeling_job_request.py @@ -33,7 +33,7 @@ class ShowPictureModelingJobRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class ShowPictureModelingJobRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowPictureModelingJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowPictureModelingJobRequest. :rtype: str @@ -84,7 +84,7 @@ class ShowPictureModelingJobRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowPictureModelingJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowPictureModelingJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py index 86c3269fc..3eb4a6893 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_request.py @@ -37,7 +37,7 @@ class ShowSmartLiveRequest: :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -101,7 +101,7 @@ class ShowSmartLiveRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowSmartLiveRequest. :rtype: str @@ -112,7 +112,7 @@ class ShowSmartLiveRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowSmartLiveRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_response.py index 19ef5289b..5b5beb71c 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_response.py @@ -28,6 +28,9 @@ class ShowSmartLiveResponse(SdkResponse): 'lastupdate_time': 'str', 'rtc_room_info': 'RTCRoomInfoList', 'live_event_report_url': 'str', + 'live_event_callback_config': 'LiveEventCallBackConfig', + 'stream_duration': 'float', + 'block_reason': 'str', 'x_request_id': 'str' } @@ -42,17 +45,20 @@ class ShowSmartLiveResponse(SdkResponse): 'lastupdate_time': 'lastupdate_time', 'rtc_room_info': 'rtc_room_info', 'live_event_report_url': 'live_event_report_url', + 'live_event_callback_config': 'live_event_callback_config', + 'stream_duration': 'stream_duration', + 'block_reason': 'block_reason', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, state=None, duration=None, start_time=None, end_time=None, error_info=None, create_time=None, lastupdate_time=None, rtc_room_info=None, live_event_report_url=None, x_request_id=None): + def __init__(self, job_id=None, state=None, duration=None, start_time=None, end_time=None, error_info=None, create_time=None, lastupdate_time=None, rtc_room_info=None, live_event_report_url=None, live_event_callback_config=None, stream_duration=None, block_reason=None, x_request_id=None): """ShowSmartLiveResponse The model defined in huaweicloud sdk :param job_id: 数字人直播任务ID。 :type job_id: str - :param state: 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 + :param state: 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * BLOCKED: 封禁 :type state: str :param duration: 数字人直播时长,单位秒。 :type duration: float @@ -70,6 +76,12 @@ class ShowSmartLiveResponse(SdkResponse): :type rtc_room_info: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` :param live_event_report_url: 直播事件上报地址。用户将自行获取的直播间事件上报到此地址,用于触发智能互动,自动回复话术。 :type live_event_report_url: str + :param live_event_callback_config: + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + :param stream_duration: 数字人直播推流时长,单位秒 + :type stream_duration: float + :param block_reason: 封禁信息 + :type block_reason: str :param x_request_id: :type x_request_id: str """ @@ -86,6 +98,9 @@ class ShowSmartLiveResponse(SdkResponse): self._lastupdate_time = None self._rtc_room_info = None self._live_event_report_url = None + self._live_event_callback_config = None + self._stream_duration = None + self._block_reason = None self._x_request_id = None self.discriminator = None @@ -109,6 +124,12 @@ class ShowSmartLiveResponse(SdkResponse): self.rtc_room_info = rtc_room_info if live_event_report_url is not None: self.live_event_report_url = live_event_report_url + if live_event_callback_config is not None: + self.live_event_callback_config = live_event_callback_config + if stream_duration is not None: + self.stream_duration = stream_duration + if block_reason is not None: + self.block_reason = block_reason if x_request_id is not None: self.x_request_id = x_request_id @@ -138,7 +159,7 @@ class ShowSmartLiveResponse(SdkResponse): def state(self): """Gets the state of this ShowSmartLiveResponse. - 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 + 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * BLOCKED: 封禁 :return: The state of this ShowSmartLiveResponse. :rtype: str @@ -149,7 +170,7 @@ class ShowSmartLiveResponse(SdkResponse): def state(self, state): """Sets the state of this ShowSmartLiveResponse. - 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 + 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * BLOCKED: 封禁 :param state: The state of this ShowSmartLiveResponse. :type state: str @@ -324,6 +345,68 @@ class ShowSmartLiveResponse(SdkResponse): """ self._live_event_report_url = live_event_report_url + @property + def live_event_callback_config(self): + """Gets the live_event_callback_config of this ShowSmartLiveResponse. + + :return: The live_event_callback_config of this ShowSmartLiveResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + return self._live_event_callback_config + + @live_event_callback_config.setter + def live_event_callback_config(self, live_event_callback_config): + """Sets the live_event_callback_config of this ShowSmartLiveResponse. + + :param live_event_callback_config: The live_event_callback_config of this ShowSmartLiveResponse. + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + self._live_event_callback_config = live_event_callback_config + + @property + def stream_duration(self): + """Gets the stream_duration of this ShowSmartLiveResponse. + + 数字人直播推流时长,单位秒 + + :return: The stream_duration of this ShowSmartLiveResponse. + :rtype: float + """ + return self._stream_duration + + @stream_duration.setter + def stream_duration(self, stream_duration): + """Sets the stream_duration of this ShowSmartLiveResponse. + + 数字人直播推流时长,单位秒 + + :param stream_duration: The stream_duration of this ShowSmartLiveResponse. + :type stream_duration: float + """ + self._stream_duration = stream_duration + + @property + def block_reason(self): + """Gets the block_reason of this ShowSmartLiveResponse. + + 封禁信息 + + :return: The block_reason of this ShowSmartLiveResponse. + :rtype: str + """ + return self._block_reason + + @block_reason.setter + def block_reason(self, block_reason): + """Sets the block_reason of this ShowSmartLiveResponse. + + 封禁信息 + + :param block_reason: The block_reason of this ShowSmartLiveResponse. + :type block_reason: str + """ + self._block_reason = block_reason + @property def x_request_id(self): """Gets the x_request_id of this ShowSmartLiveResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py index a9fdb9902..f23d42e53 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_request.py @@ -33,7 +33,7 @@ class ShowSmartLiveRoomRequest: :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class ShowSmartLiveRoomRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowSmartLiveRoomRequest. :rtype: str @@ -84,7 +84,7 @@ class ShowSmartLiveRoomRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowSmartLiveRoomRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py index 6293692c0..cb5631dee 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_smart_live_room_response.py @@ -26,10 +26,17 @@ class ShowSmartLiveRoomResponse(SdkResponse): 'play_policy': 'PlayPolicy', 'video_config': 'VideoConfig', 'output_urls': 'list[str]', + 'stream_keys': 'list[str]', + 'backup_model_asset_ids': 'list[str]', + 'live_event_callback_config': 'LiveEventCallBackConfig', + 'review_config': 'ReviewConfig', + 'shared_config': 'SharedConfig', 'room_id': 'str', 'create_time': 'str', 'update_time': 'str', 'cover_url': 'str', + 'room_state': 'str', + 'error_info': 'ErrorResponse', 'x_request_id': 'str' } @@ -42,14 +49,21 @@ class ShowSmartLiveRoomResponse(SdkResponse): 'play_policy': 'play_policy', 'video_config': 'video_config', 'output_urls': 'output_urls', + 'stream_keys': 'stream_keys', + 'backup_model_asset_ids': 'backup_model_asset_ids', + 'live_event_callback_config': 'live_event_callback_config', + 'review_config': 'review_config', + 'shared_config': 'shared_config', 'room_id': 'room_id', 'create_time': 'create_time', 'update_time': 'update_time', 'cover_url': 'cover_url', + 'room_state': 'room_state', + 'error_info': 'error_info', 'x_request_id': 'X-Request-Id' } - def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, room_id=None, create_time=None, update_time=None, cover_url=None, x_request_id=None): + def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, review_config=None, shared_config=None, room_id=None, create_time=None, update_time=None, cover_url=None, room_state=None, error_info=None, x_request_id=None): """ShowSmartLiveRoomResponse The model defined in huaweicloud sdk @@ -58,7 +72,7 @@ class ShowSmartLiveRoomResponse(SdkResponse): :type room_name: str :param room_description: 直播间描述。 :type room_description: str - :param room_type: 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + :param room_type: 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :type room_type: str :param scene_scripts: 默认直播剧本列表。 :type scene_scripts: list[:class:`huaweicloudsdkmetastudio.v1.LiveVideoScriptInfo`] @@ -68,8 +82,18 @@ class ShowSmartLiveRoomResponse(SdkResponse): :type play_policy: :class:`huaweicloudsdkmetastudio.v1.PlayPolicy` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` - :param output_urls: 视频推流第三方直播平台地址。 + :param output_urls: RTMP视频推流第三方直播平台地址。 :type output_urls: list[str] + :param stream_keys: RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + :type stream_keys: list[str] + :param backup_model_asset_ids: 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + :type backup_model_asset_ids: list[str] + :param live_event_callback_config: + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shared_config: + :type shared_config: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` :param room_id: 直播间ID :type room_id: str :param create_time: 直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -78,6 +102,10 @@ class ShowSmartLiveRoomResponse(SdkResponse): :type update_time: str :param cover_url: 直播间封面图URL :type cover_url: str + :param room_state: 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + :type room_state: str + :param error_info: + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` :param x_request_id: :type x_request_id: str """ @@ -92,10 +120,17 @@ class ShowSmartLiveRoomResponse(SdkResponse): self._play_policy = None self._video_config = None self._output_urls = None + self._stream_keys = None + self._backup_model_asset_ids = None + self._live_event_callback_config = None + self._review_config = None + self._shared_config = None self._room_id = None self._create_time = None self._update_time = None self._cover_url = None + self._room_state = None + self._error_info = None self._x_request_id = None self.discriminator = None @@ -114,6 +149,16 @@ class ShowSmartLiveRoomResponse(SdkResponse): self.video_config = video_config if output_urls is not None: self.output_urls = output_urls + if stream_keys is not None: + self.stream_keys = stream_keys + if backup_model_asset_ids is not None: + self.backup_model_asset_ids = backup_model_asset_ids + if live_event_callback_config is not None: + self.live_event_callback_config = live_event_callback_config + if review_config is not None: + self.review_config = review_config + if shared_config is not None: + self.shared_config = shared_config if room_id is not None: self.room_id = room_id if create_time is not None: @@ -122,6 +167,10 @@ class ShowSmartLiveRoomResponse(SdkResponse): self.update_time = update_time if cover_url is not None: self.cover_url = cover_url + if room_state is not None: + self.room_state = room_state + if error_info is not None: + self.error_info = error_info if x_request_id is not None: self.x_request_id = x_request_id @@ -173,7 +222,7 @@ class ShowSmartLiveRoomResponse(SdkResponse): def room_type(self): """Gets the room_type of this ShowSmartLiveRoomResponse. - 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :return: The room_type of this ShowSmartLiveRoomResponse. :rtype: str @@ -184,7 +233,7 @@ class ShowSmartLiveRoomResponse(SdkResponse): def room_type(self, room_type): """Sets the room_type of this ShowSmartLiveRoomResponse. - 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :param room_type: The room_type of this ShowSmartLiveRoomResponse. :type room_type: str @@ -275,7 +324,7 @@ class ShowSmartLiveRoomResponse(SdkResponse): def output_urls(self): """Gets the output_urls of this ShowSmartLiveRoomResponse. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :return: The output_urls of this ShowSmartLiveRoomResponse. :rtype: list[str] @@ -286,13 +335,111 @@ class ShowSmartLiveRoomResponse(SdkResponse): def output_urls(self, output_urls): """Sets the output_urls of this ShowSmartLiveRoomResponse. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :param output_urls: The output_urls of this ShowSmartLiveRoomResponse. :type output_urls: list[str] """ self._output_urls = output_urls + @property + def stream_keys(self): + """Gets the stream_keys of this ShowSmartLiveRoomResponse. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :return: The stream_keys of this ShowSmartLiveRoomResponse. + :rtype: list[str] + """ + return self._stream_keys + + @stream_keys.setter + def stream_keys(self, stream_keys): + """Sets the stream_keys of this ShowSmartLiveRoomResponse. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :param stream_keys: The stream_keys of this ShowSmartLiveRoomResponse. + :type stream_keys: list[str] + """ + self._stream_keys = stream_keys + + @property + def backup_model_asset_ids(self): + """Gets the backup_model_asset_ids of this ShowSmartLiveRoomResponse. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :return: The backup_model_asset_ids of this ShowSmartLiveRoomResponse. + :rtype: list[str] + """ + return self._backup_model_asset_ids + + @backup_model_asset_ids.setter + def backup_model_asset_ids(self, backup_model_asset_ids): + """Sets the backup_model_asset_ids of this ShowSmartLiveRoomResponse. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :param backup_model_asset_ids: The backup_model_asset_ids of this ShowSmartLiveRoomResponse. + :type backup_model_asset_ids: list[str] + """ + self._backup_model_asset_ids = backup_model_asset_ids + + @property + def live_event_callback_config(self): + """Gets the live_event_callback_config of this ShowSmartLiveRoomResponse. + + :return: The live_event_callback_config of this ShowSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + return self._live_event_callback_config + + @live_event_callback_config.setter + def live_event_callback_config(self, live_event_callback_config): + """Sets the live_event_callback_config of this ShowSmartLiveRoomResponse. + + :param live_event_callback_config: The live_event_callback_config of this ShowSmartLiveRoomResponse. + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + self._live_event_callback_config = live_event_callback_config + + @property + def review_config(self): + """Gets the review_config of this ShowSmartLiveRoomResponse. + + :return: The review_config of this ShowSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this ShowSmartLiveRoomResponse. + + :param review_config: The review_config of this ShowSmartLiveRoomResponse. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shared_config(self): + """Gets the shared_config of this ShowSmartLiveRoomResponse. + + :return: The shared_config of this ShowSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` + """ + return self._shared_config + + @shared_config.setter + def shared_config(self, shared_config): + """Sets the shared_config of this ShowSmartLiveRoomResponse. + + :param shared_config: The shared_config of this ShowSmartLiveRoomResponse. + :type shared_config: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` + """ + self._shared_config = shared_config + @property def room_id(self): """Gets the room_id of this ShowSmartLiveRoomResponse. @@ -381,6 +528,46 @@ class ShowSmartLiveRoomResponse(SdkResponse): """ self._cover_url = cover_url + @property + def room_state(self): + """Gets the room_state of this ShowSmartLiveRoomResponse. + + 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + + :return: The room_state of this ShowSmartLiveRoomResponse. + :rtype: str + """ + return self._room_state + + @room_state.setter + def room_state(self, room_state): + """Sets the room_state of this ShowSmartLiveRoomResponse. + + 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + + :param room_state: The room_state of this ShowSmartLiveRoomResponse. + :type room_state: str + """ + self._room_state = room_state + + @property + def error_info(self): + """Gets the error_info of this ShowSmartLiveRoomResponse. + + :return: The error_info of this ShowSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + return self._error_info + + @error_info.setter + def error_info(self, error_info): + """Sets the error_info of this ShowSmartLiveRoomResponse. + + :param error_info: The error_info of this ShowSmartLiveRoomResponse. + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + self._error_info = error_info + @property def x_request_id(self): """Gets the x_request_id of this ShowSmartLiveRoomResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py index 1fb9fd1e4..58055b834 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_motion_capture_job_request.py @@ -33,7 +33,7 @@ class ShowVideoMotionCaptureJobRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class ShowVideoMotionCaptureJobRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowVideoMotionCaptureJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowVideoMotionCaptureJobRequest. :rtype: str @@ -84,7 +84,7 @@ class ShowVideoMotionCaptureJobRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowVideoMotionCaptureJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowVideoMotionCaptureJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py index a4f3b642e..e0a46fef8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_request.py @@ -31,7 +31,7 @@ class ShowVideoScriptRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param script_id: 剧本ID。 :type script_id: str @@ -51,7 +51,7 @@ class ShowVideoScriptRequest: def x_app_user_id(self): """Gets the x_app_user_id of this ShowVideoScriptRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this ShowVideoScriptRequest. :rtype: str @@ -62,7 +62,7 @@ class ShowVideoScriptRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this ShowVideoScriptRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this ShowVideoScriptRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_response.py index fc30ca64e..d646af783 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/show_video_script_response.py @@ -20,44 +20,44 @@ class ShowVideoScriptResponse(SdkResponse): openapi_types = { 'script_name': 'str', 'script_description': 'str', - 'video_making_type': 'str', 'model_asset_id': 'str', 'model_asset_type': 'str', - 'human_image': 'str', 'voice_config': 'VoiceConfig', 'video_config': 'VideoConfig', 'scene_asset_id': 'str', - 'shoot_scripts': 'list[ShootScriptItem]', 'priv_data': 'str', 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig', + 'shoot_scripts': 'list[ShootScriptShowItem]', 'script_id': 'str', 'create_time': 'str', 'update_time': 'str', 'audio_files': 'ShootScriptAudioFiles', + 'script_cover_url': 'str', 'x_request_id': 'str' } attribute_map = { 'script_name': 'script_name', 'script_description': 'script_description', - 'video_making_type': 'video_making_type', 'model_asset_id': 'model_asset_id', 'model_asset_type': 'model_asset_type', - 'human_image': 'human_image', 'voice_config': 'voice_config', 'video_config': 'video_config', 'scene_asset_id': 'scene_asset_id', - 'shoot_scripts': 'shoot_scripts', 'priv_data': 'priv_data', 'background_music_config': 'background_music_config', + 'review_config': 'review_config', + 'shoot_scripts': 'shoot_scripts', 'script_id': 'script_id', 'create_time': 'create_time', 'update_time': 'update_time', 'audio_files': 'audio_files', + 'script_cover_url': 'script_cover_url', 'x_request_id': 'X-Request-Id' } - def __init__(self, script_name=None, script_description=None, video_making_type=None, model_asset_id=None, model_asset_type=None, human_image=None, voice_config=None, video_config=None, scene_asset_id=None, shoot_scripts=None, priv_data=None, background_music_config=None, script_id=None, create_time=None, update_time=None, audio_files=None, x_request_id=None): + def __init__(self, script_name=None, script_description=None, model_asset_id=None, model_asset_type=None, voice_config=None, video_config=None, scene_asset_id=None, priv_data=None, background_music_config=None, review_config=None, shoot_scripts=None, script_id=None, create_time=None, update_time=None, audio_files=None, script_cover_url=None, x_request_id=None): """ShowVideoScriptResponse The model defined in huaweicloud sdk @@ -66,26 +66,24 @@ class ShowVideoScriptResponse(SdkResponse): :type script_name: str :param script_description: 剧本描述。 :type script_description: str - :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - :type video_making_type: str :param model_asset_id: 数字人模型资产ID。 :type model_asset_id: str :param model_asset_type: 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 :type model_asset_type: str - :param human_image: 人物照片下载URL。 - :type human_image: str :param voice_config: :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` :param scene_asset_id: 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 :type scene_asset_id: str - :param shoot_scripts: 拍摄脚本列表。 - :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] :param priv_data: 私有数据,用户填写,原样带回。 :type priv_data: str :param background_music_config: :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shoot_scripts: 拍摄脚本列表。 + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptShowItem`] :param script_id: 剧本ID。 :type script_id: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -94,6 +92,8 @@ class ShowVideoScriptResponse(SdkResponse): :type update_time: str :param audio_files: :type audio_files: :class:`huaweicloudsdkmetastudio.v1.ShootScriptAudioFiles` + :param script_cover_url: 剧本封面下载url。 + :type script_cover_url: str :param x_request_id: :type x_request_id: str """ @@ -102,44 +102,45 @@ class ShowVideoScriptResponse(SdkResponse): self._script_name = None self._script_description = None - self._video_making_type = None self._model_asset_id = None self._model_asset_type = None - self._human_image = None self._voice_config = None self._video_config = None self._scene_asset_id = None - self._shoot_scripts = None self._priv_data = None self._background_music_config = None + self._review_config = None + self._shoot_scripts = None self._script_id = None self._create_time = None self._update_time = None self._audio_files = None + self._script_cover_url = None self._x_request_id = None self.discriminator = None - self.script_name = script_name + if script_name is not None: + self.script_name = script_name if script_description is not None: self.script_description = script_description - if video_making_type is not None: - self.video_making_type = video_making_type if model_asset_id is not None: self.model_asset_id = model_asset_id if model_asset_type is not None: self.model_asset_type = model_asset_type - if human_image is not None: - self.human_image = human_image - self.voice_config = voice_config + if voice_config is not None: + self.voice_config = voice_config if video_config is not None: self.video_config = video_config if scene_asset_id is not None: self.scene_asset_id = scene_asset_id - self.shoot_scripts = shoot_scripts if priv_data is not None: self.priv_data = priv_data if background_music_config is not None: self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config + if shoot_scripts is not None: + self.shoot_scripts = shoot_scripts if script_id is not None: self.script_id = script_id if create_time is not None: @@ -148,6 +149,8 @@ class ShowVideoScriptResponse(SdkResponse): self.update_time = update_time if audio_files is not None: self.audio_files = audio_files + if script_cover_url is not None: + self.script_cover_url = script_cover_url if x_request_id is not None: self.x_request_id = x_request_id @@ -195,28 +198,6 @@ class ShowVideoScriptResponse(SdkResponse): """ self._script_description = script_description - @property - def video_making_type(self): - """Gets the video_making_type of this ShowVideoScriptResponse. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :return: The video_making_type of this ShowVideoScriptResponse. - :rtype: str - """ - return self._video_making_type - - @video_making_type.setter - def video_making_type(self, video_making_type): - """Sets the video_making_type of this ShowVideoScriptResponse. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :param video_making_type: The video_making_type of this ShowVideoScriptResponse. - :type video_making_type: str - """ - self._video_making_type = video_making_type - @property def model_asset_id(self): """Gets the model_asset_id of this ShowVideoScriptResponse. @@ -261,28 +242,6 @@ class ShowVideoScriptResponse(SdkResponse): """ self._model_asset_type = model_asset_type - @property - def human_image(self): - """Gets the human_image of this ShowVideoScriptResponse. - - 人物照片下载URL。 - - :return: The human_image of this ShowVideoScriptResponse. - :rtype: str - """ - return self._human_image - - @human_image.setter - def human_image(self, human_image): - """Sets the human_image of this ShowVideoScriptResponse. - - 人物照片下载URL。 - - :param human_image: The human_image of this ShowVideoScriptResponse. - :type human_image: str - """ - self._human_image = human_image - @property def voice_config(self): """Gets the voice_config of this ShowVideoScriptResponse. @@ -341,28 +300,6 @@ class ShowVideoScriptResponse(SdkResponse): """ self._scene_asset_id = scene_asset_id - @property - def shoot_scripts(self): - """Gets the shoot_scripts of this ShowVideoScriptResponse. - - 拍摄脚本列表。 - - :return: The shoot_scripts of this ShowVideoScriptResponse. - :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] - """ - return self._shoot_scripts - - @shoot_scripts.setter - def shoot_scripts(self, shoot_scripts): - """Sets the shoot_scripts of this ShowVideoScriptResponse. - - 拍摄脚本列表。 - - :param shoot_scripts: The shoot_scripts of this ShowVideoScriptResponse. - :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] - """ - self._shoot_scripts = shoot_scripts - @property def priv_data(self): """Gets the priv_data of this ShowVideoScriptResponse. @@ -403,6 +340,46 @@ class ShowVideoScriptResponse(SdkResponse): """ self._background_music_config = background_music_config + @property + def review_config(self): + """Gets the review_config of this ShowVideoScriptResponse. + + :return: The review_config of this ShowVideoScriptResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this ShowVideoScriptResponse. + + :param review_config: The review_config of this ShowVideoScriptResponse. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shoot_scripts(self): + """Gets the shoot_scripts of this ShowVideoScriptResponse. + + 拍摄脚本列表。 + + :return: The shoot_scripts of this ShowVideoScriptResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptShowItem`] + """ + return self._shoot_scripts + + @shoot_scripts.setter + def shoot_scripts(self, shoot_scripts): + """Sets the shoot_scripts of this ShowVideoScriptResponse. + + 拍摄脚本列表。 + + :param shoot_scripts: The shoot_scripts of this ShowVideoScriptResponse. + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptShowItem`] + """ + self._shoot_scripts = shoot_scripts + @property def script_id(self): """Gets the script_id of this ShowVideoScriptResponse. @@ -487,6 +464,28 @@ class ShowVideoScriptResponse(SdkResponse): """ self._audio_files = audio_files + @property + def script_cover_url(self): + """Gets the script_cover_url of this ShowVideoScriptResponse. + + 剧本封面下载url。 + + :return: The script_cover_url of this ShowVideoScriptResponse. + :rtype: str + """ + return self._script_cover_url + + @script_cover_url.setter + def script_cover_url(self, script_cover_url): + """Sets the script_cover_url of this ShowVideoScriptResponse. + + 剧本封面下载url。 + + :param script_cover_url: The script_cover_url of this ShowVideoScriptResponse. + :type script_cover_url: str + """ + self._script_cover_url = script_cover_url + @property def x_request_id(self): """Gets the x_request_id of this ShowVideoScriptResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_image_layer_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_image_layer_config.py new file mode 100644 index 000000000..ef1e831ec --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_image_layer_config.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SmartImageLayerConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'image_url': 'str', + 'display_duration': 'int' + } + + attribute_map = { + 'image_url': 'image_url', + 'display_duration': 'display_duration' + } + + def __init__(self, image_url=None, display_duration=None): + """SmartImageLayerConfig + + The model defined in huaweicloud sdk + + :param image_url: 图片文件的URL。 + :type image_url: str + :param display_duration: 图片显示时长。单位s * 0表示一直显示。 + :type display_duration: int + """ + + + + self._image_url = None + self._display_duration = None + self.discriminator = None + + self.image_url = image_url + if display_duration is not None: + self.display_duration = display_duration + + @property + def image_url(self): + """Gets the image_url of this SmartImageLayerConfig. + + 图片文件的URL。 + + :return: The image_url of this SmartImageLayerConfig. + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this SmartImageLayerConfig. + + 图片文件的URL。 + + :param image_url: The image_url of this SmartImageLayerConfig. + :type image_url: str + """ + self._image_url = image_url + + @property + def display_duration(self): + """Gets the display_duration of this SmartImageLayerConfig. + + 图片显示时长。单位s * 0表示一直显示。 + + :return: The display_duration of this SmartImageLayerConfig. + :rtype: int + """ + return self._display_duration + + @display_duration.setter + def display_duration(self, display_duration): + """Sets the display_duration of this SmartImageLayerConfig. + + 图片显示时长。单位s * 0表示一直显示。 + + :param display_duration: The display_duration of this SmartImageLayerConfig. + :type display_duration: int + """ + self._display_duration = display_duration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SmartImageLayerConfig): + return False + + return self.__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/smart_layer_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_layer_config.py new file mode 100644 index 000000000..b1e05c656 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_layer_config.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SmartLayerConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'layer_type': 'str', + 'position': 'LayerPositionConfig', + 'size': 'LayerSizeConfig', + 'image_config': 'SmartImageLayerConfig', + 'video_config': 'SmartVideoLayerConfig' + } + + attribute_map = { + 'layer_type': 'layer_type', + 'position': 'position', + 'size': 'size', + 'image_config': 'image_config', + 'video_config': 'video_config' + } + + def __init__(self, layer_type=None, position=None, size=None, image_config=None, video_config=None): + """SmartLayerConfig + + The model defined in huaweicloud sdk + + :param layer_type: 图层类型。 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + :type layer_type: str + :param position: + :type position: :class:`huaweicloudsdkmetastudio.v1.LayerPositionConfig` + :param size: + :type size: :class:`huaweicloudsdkmetastudio.v1.LayerSizeConfig` + :param image_config: + :type image_config: :class:`huaweicloudsdkmetastudio.v1.SmartImageLayerConfig` + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.SmartVideoLayerConfig` + """ + + + + self._layer_type = None + self._position = None + self._size = None + self._image_config = None + self._video_config = None + self.discriminator = None + + self.layer_type = layer_type + self.position = position + if size is not None: + self.size = size + if image_config is not None: + self.image_config = image_config + if video_config is not None: + self.video_config = video_config + + @property + def layer_type(self): + """Gets the layer_type of this SmartLayerConfig. + + 图层类型。 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + + :return: The layer_type of this SmartLayerConfig. + :rtype: str + """ + return self._layer_type + + @layer_type.setter + def layer_type(self, layer_type): + """Sets the layer_type of this SmartLayerConfig. + + 图层类型。 - IMAGE: 素材图片图层 - VIDEO: 素材视频图层 + + :param layer_type: The layer_type of this SmartLayerConfig. + :type layer_type: str + """ + self._layer_type = layer_type + + @property + def position(self): + """Gets the position of this SmartLayerConfig. + + :return: The position of this SmartLayerConfig. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LayerPositionConfig` + """ + return self._position + + @position.setter + def position(self, position): + """Sets the position of this SmartLayerConfig. + + :param position: The position of this SmartLayerConfig. + :type position: :class:`huaweicloudsdkmetastudio.v1.LayerPositionConfig` + """ + self._position = position + + @property + def size(self): + """Gets the size of this SmartLayerConfig. + + :return: The size of this SmartLayerConfig. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LayerSizeConfig` + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this SmartLayerConfig. + + :param size: The size of this SmartLayerConfig. + :type size: :class:`huaweicloudsdkmetastudio.v1.LayerSizeConfig` + """ + self._size = size + + @property + def image_config(self): + """Gets the image_config of this SmartLayerConfig. + + :return: The image_config of this SmartLayerConfig. + :rtype: :class:`huaweicloudsdkmetastudio.v1.SmartImageLayerConfig` + """ + return self._image_config + + @image_config.setter + def image_config(self, image_config): + """Sets the image_config of this SmartLayerConfig. + + :param image_config: The image_config of this SmartLayerConfig. + :type image_config: :class:`huaweicloudsdkmetastudio.v1.SmartImageLayerConfig` + """ + self._image_config = image_config + + @property + def video_config(self): + """Gets the video_config of this SmartLayerConfig. + + :return: The video_config of this SmartLayerConfig. + :rtype: :class:`huaweicloudsdkmetastudio.v1.SmartVideoLayerConfig` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this SmartLayerConfig. + + :param video_config: The video_config of this SmartLayerConfig. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.SmartVideoLayerConfig` + """ + self._video_config = video_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SmartLayerConfig): + return False + + return self.__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/smart_live_job.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_live_job.py index 1e7b42f82..7b4876646 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_live_job.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_live_job.py @@ -26,7 +26,10 @@ class SmartLiveJob: 'create_time': 'str', 'lastupdate_time': 'str', 'rtc_room_info': 'RTCRoomInfoList', - 'live_event_report_url': 'str' + 'live_event_report_url': 'str', + 'live_event_callback_config': 'LiveEventCallBackConfig', + 'stream_duration': 'float', + 'block_reason': 'str' } attribute_map = { @@ -39,17 +42,20 @@ class SmartLiveJob: 'create_time': 'create_time', 'lastupdate_time': 'lastupdate_time', 'rtc_room_info': 'rtc_room_info', - 'live_event_report_url': 'live_event_report_url' + 'live_event_report_url': 'live_event_report_url', + 'live_event_callback_config': 'live_event_callback_config', + 'stream_duration': 'stream_duration', + 'block_reason': 'block_reason' } - def __init__(self, job_id=None, state=None, duration=None, start_time=None, end_time=None, error_info=None, create_time=None, lastupdate_time=None, rtc_room_info=None, live_event_report_url=None): + def __init__(self, job_id=None, state=None, duration=None, start_time=None, end_time=None, error_info=None, create_time=None, lastupdate_time=None, rtc_room_info=None, live_event_report_url=None, live_event_callback_config=None, stream_duration=None, block_reason=None): """SmartLiveJob The model defined in huaweicloud sdk :param job_id: 数字人直播任务ID。 :type job_id: str - :param state: 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 + :param state: 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * BLOCKED: 封禁 :type state: str :param duration: 数字人直播时长,单位秒。 :type duration: float @@ -67,6 +73,12 @@ class SmartLiveJob: :type rtc_room_info: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` :param live_event_report_url: 直播事件上报地址。用户将自行获取的直播间事件上报到此地址,用于触发智能互动,自动回复话术。 :type live_event_report_url: str + :param live_event_callback_config: + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + :param stream_duration: 数字人直播推流时长,单位秒 + :type stream_duration: float + :param block_reason: 封禁信息 + :type block_reason: str """ @@ -81,6 +93,9 @@ class SmartLiveJob: self._lastupdate_time = None self._rtc_room_info = None self._live_event_report_url = None + self._live_event_callback_config = None + self._stream_duration = None + self._block_reason = None self.discriminator = None if job_id is not None: @@ -103,6 +118,12 @@ class SmartLiveJob: self.rtc_room_info = rtc_room_info if live_event_report_url is not None: self.live_event_report_url = live_event_report_url + if live_event_callback_config is not None: + self.live_event_callback_config = live_event_callback_config + if stream_duration is not None: + self.stream_duration = stream_duration + if block_reason is not None: + self.block_reason = block_reason @property def job_id(self): @@ -130,7 +151,7 @@ class SmartLiveJob: def state(self): """Gets the state of this SmartLiveJob. - 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 + 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * BLOCKED: 封禁 :return: The state of this SmartLiveJob. :rtype: str @@ -141,7 +162,7 @@ class SmartLiveJob: def state(self, state): """Sets the state of this SmartLiveJob. - 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 + 数字人直播任务的状态。 * WAITING: 等待 * PROCESSING: 处理中 * SUCCEED: 成功 * FAILED: 失败 * BLOCKED: 封禁 :param state: The state of this SmartLiveJob. :type state: str @@ -316,6 +337,68 @@ class SmartLiveJob: """ self._live_event_report_url = live_event_report_url + @property + def live_event_callback_config(self): + """Gets the live_event_callback_config of this SmartLiveJob. + + :return: The live_event_callback_config of this SmartLiveJob. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + return self._live_event_callback_config + + @live_event_callback_config.setter + def live_event_callback_config(self, live_event_callback_config): + """Sets the live_event_callback_config of this SmartLiveJob. + + :param live_event_callback_config: The live_event_callback_config of this SmartLiveJob. + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + self._live_event_callback_config = live_event_callback_config + + @property + def stream_duration(self): + """Gets the stream_duration of this SmartLiveJob. + + 数字人直播推流时长,单位秒 + + :return: The stream_duration of this SmartLiveJob. + :rtype: float + """ + return self._stream_duration + + @stream_duration.setter + def stream_duration(self, stream_duration): + """Sets the stream_duration of this SmartLiveJob. + + 数字人直播推流时长,单位秒 + + :param stream_duration: The stream_duration of this SmartLiveJob. + :type stream_duration: float + """ + self._stream_duration = stream_duration + + @property + def block_reason(self): + """Gets the block_reason of this SmartLiveJob. + + 封禁信息 + + :return: The block_reason of this SmartLiveJob. + :rtype: str + """ + return self._block_reason + + @block_reason.setter + def block_reason(self, block_reason): + """Sets the block_reason of this SmartLiveJob. + + 封禁信息 + + :param block_reason: The block_reason of this SmartLiveJob. + :type block_reason: str + """ + self._block_reason = block_reason + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_live_room_base_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_live_room_base_info.py index 9117eaee7..1078ee04a 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_live_room_base_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_live_room_base_info.py @@ -19,6 +19,9 @@ class SmartLiveRoomBaseInfo: openapi_types = { 'room_id': 'str', 'room_name': 'str', + 'room_type': 'str', + 'room_state': 'str', + 'error_info': 'ErrorResponse', 'room_description': 'str', 'cover_url': 'str', 'model_infos': 'list[ModelInfo]', @@ -32,6 +35,9 @@ class SmartLiveRoomBaseInfo: attribute_map = { 'room_id': 'room_id', 'room_name': 'room_name', + 'room_type': 'room_type', + 'room_state': 'room_state', + 'error_info': 'error_info', 'room_description': 'room_description', 'cover_url': 'cover_url', 'model_infos': 'model_infos', @@ -42,7 +48,7 @@ class SmartLiveRoomBaseInfo: 'last_job_status': 'last_job_status' } - def __init__(self, room_id=None, room_name=None, room_description=None, cover_url=None, model_infos=None, create_time=None, update_time=None, last_job_start_time=None, last_job_end_time=None, last_job_status=None): + def __init__(self, room_id=None, room_name=None, room_type=None, room_state=None, error_info=None, room_description=None, cover_url=None, model_infos=None, create_time=None, update_time=None, last_job_start_time=None, last_job_end_time=None, last_job_status=None): """SmartLiveRoomBaseInfo The model defined in huaweicloud sdk @@ -51,6 +57,12 @@ class SmartLiveRoomBaseInfo: :type room_id: str :param room_name: 直播间名称 :type room_name: str + :param room_type: 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 + :type room_type: str + :param room_state: 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + :type room_state: str + :param error_info: + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` :param room_description: 直播间描述。 :type room_description: str :param cover_url: 直播间封面图URL @@ -73,6 +85,9 @@ class SmartLiveRoomBaseInfo: self._room_id = None self._room_name = None + self._room_type = None + self._room_state = None + self._error_info = None self._room_description = None self._cover_url = None self._model_infos = None @@ -87,6 +102,12 @@ class SmartLiveRoomBaseInfo: self.room_id = room_id if room_name is not None: self.room_name = room_name + if room_type is not None: + self.room_type = room_type + if room_state is not None: + self.room_state = room_state + if error_info is not None: + self.error_info = error_info if room_description is not None: self.room_description = room_description if cover_url is not None: @@ -148,6 +169,68 @@ class SmartLiveRoomBaseInfo: """ self._room_name = room_name + @property + def room_type(self): + """Gets the room_type of this SmartLiveRoomBaseInfo. + + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 + + :return: The room_type of this SmartLiveRoomBaseInfo. + :rtype: str + """ + return self._room_type + + @room_type.setter + def room_type(self, room_type): + """Sets the room_type of this SmartLiveRoomBaseInfo. + + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 + + :param room_type: The room_type of this SmartLiveRoomBaseInfo. + :type room_type: str + """ + self._room_type = room_type + + @property + def room_state(self): + """Gets the room_state of this SmartLiveRoomBaseInfo. + + 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + + :return: The room_state of this SmartLiveRoomBaseInfo. + :rtype: str + """ + return self._room_state + + @room_state.setter + def room_state(self, room_state): + """Sets the room_state of this SmartLiveRoomBaseInfo. + + 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + + :param room_state: The room_state of this SmartLiveRoomBaseInfo. + :type room_state: str + """ + self._room_state = room_state + + @property + def error_info(self): + """Gets the error_info of this SmartLiveRoomBaseInfo. + + :return: The error_info of this SmartLiveRoomBaseInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + return self._error_info + + @error_info.setter + def error_info(self, error_info): + """Sets the error_info of this SmartLiveRoomBaseInfo. + + :param error_info: The error_info of this SmartLiveRoomBaseInfo. + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + self._error_info = error_info + @property def room_description(self): """Gets the room_description of this SmartLiveRoomBaseInfo. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_video_layer_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_video_layer_config.py new file mode 100644 index 000000000..a6d172eca --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/smart_video_layer_config.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SmartVideoLayerConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'video_url': 'str', + 'video_cover_url': 'str', + 'display_duration': 'int' + } + + attribute_map = { + 'video_url': 'video_url', + 'video_cover_url': 'video_cover_url', + 'display_duration': 'display_duration' + } + + def __init__(self, video_url=None, video_cover_url=None, display_duration=None): + """SmartVideoLayerConfig + + The model defined in huaweicloud sdk + + :param video_url: 视频文件的URL。 + :type video_url: str + :param video_cover_url: 视频封面文件的URL。 + :type video_cover_url: str + :param display_duration: 视频显示时长。单位s * 0:表示一直显示。 + :type display_duration: int + """ + + + + self._video_url = None + self._video_cover_url = None + self._display_duration = None + self.discriminator = None + + self.video_url = video_url + if video_cover_url is not None: + self.video_cover_url = video_cover_url + if display_duration is not None: + self.display_duration = display_duration + + @property + def video_url(self): + """Gets the video_url of this SmartVideoLayerConfig. + + 视频文件的URL。 + + :return: The video_url of this SmartVideoLayerConfig. + :rtype: str + """ + return self._video_url + + @video_url.setter + def video_url(self, video_url): + """Sets the video_url of this SmartVideoLayerConfig. + + 视频文件的URL。 + + :param video_url: The video_url of this SmartVideoLayerConfig. + :type video_url: str + """ + self._video_url = video_url + + @property + def video_cover_url(self): + """Gets the video_cover_url of this SmartVideoLayerConfig. + + 视频封面文件的URL。 + + :return: The video_cover_url of this SmartVideoLayerConfig. + :rtype: str + """ + return self._video_cover_url + + @video_cover_url.setter + def video_cover_url(self, video_cover_url): + """Sets the video_cover_url of this SmartVideoLayerConfig. + + 视频封面文件的URL。 + + :param video_cover_url: The video_cover_url of this SmartVideoLayerConfig. + :type video_cover_url: str + """ + self._video_cover_url = video_cover_url + + @property + def display_duration(self): + """Gets the display_duration of this SmartVideoLayerConfig. + + 视频显示时长。单位s * 0:表示一直显示。 + + :return: The display_duration of this SmartVideoLayerConfig. + :rtype: int + """ + return self._display_duration + + @display_duration.setter + def display_duration(self, display_duration): + """Sets the display_duration of this SmartVideoLayerConfig. + + 视频显示时长。单位s * 0:表示一直显示。 + + :param display_duration: The display_duration of this SmartVideoLayerConfig. + :type display_duration: int + """ + self._display_duration = display_duration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SmartVideoLayerConfig): + return False + + return self.__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_smart_live_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_req.py index 5d177b804..a4532b782 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_req.py @@ -19,16 +19,22 @@ class StartSmartLiveReq: openapi_types = { 'video_config': 'VideoConfig', 'play_policy': 'PlayPolicy', - 'output_urls': 'list[str]' + 'output_urls': 'list[str]', + 'stream_keys': 'list[str]', + 'interaction_callback_url': 'str', + 'live_event_callback_config': 'LiveEventCallBackConfig' } attribute_map = { 'video_config': 'video_config', 'play_policy': 'play_policy', - 'output_urls': 'output_urls' + 'output_urls': 'output_urls', + 'stream_keys': 'stream_keys', + 'interaction_callback_url': 'interaction_callback_url', + 'live_event_callback_config': 'live_event_callback_config' } - def __init__(self, video_config=None, play_policy=None, output_urls=None): + def __init__(self, video_config=None, play_policy=None, output_urls=None, stream_keys=None, interaction_callback_url=None, live_event_callback_config=None): """StartSmartLiveReq The model defined in huaweicloud sdk @@ -37,8 +43,14 @@ class StartSmartLiveReq: :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` :param play_policy: :type play_policy: :class:`huaweicloudsdkmetastudio.v1.PlayPolicy` - :param output_urls: 视频推流第三方直播平台地址。 + :param output_urls: RTMP视频推流第三方直播平台地址。 :type output_urls: list[str] + :param stream_keys: RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + :type stream_keys: list[str] + :param interaction_callback_url: 互动回调URL,含鉴权信息。 + :type interaction_callback_url: str + :param live_event_callback_config: + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` """ @@ -46,6 +58,9 @@ class StartSmartLiveReq: self._video_config = None self._play_policy = None self._output_urls = None + self._stream_keys = None + self._interaction_callback_url = None + self._live_event_callback_config = None self.discriminator = None if video_config is not None: @@ -54,6 +69,12 @@ class StartSmartLiveReq: self.play_policy = play_policy if output_urls is not None: self.output_urls = output_urls + if stream_keys is not None: + self.stream_keys = stream_keys + if interaction_callback_url is not None: + self.interaction_callback_url = interaction_callback_url + if live_event_callback_config is not None: + self.live_event_callback_config = live_event_callback_config @property def video_config(self): @@ -95,7 +116,7 @@ class StartSmartLiveReq: def output_urls(self): """Gets the output_urls of this StartSmartLiveReq. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :return: The output_urls of this StartSmartLiveReq. :rtype: list[str] @@ -106,13 +127,75 @@ class StartSmartLiveReq: def output_urls(self, output_urls): """Sets the output_urls of this StartSmartLiveReq. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :param output_urls: The output_urls of this StartSmartLiveReq. :type output_urls: list[str] """ self._output_urls = output_urls + @property + def stream_keys(self): + """Gets the stream_keys of this StartSmartLiveReq. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :return: The stream_keys of this StartSmartLiveReq. + :rtype: list[str] + """ + return self._stream_keys + + @stream_keys.setter + def stream_keys(self, stream_keys): + """Sets the stream_keys of this StartSmartLiveReq. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :param stream_keys: The stream_keys of this StartSmartLiveReq. + :type stream_keys: list[str] + """ + self._stream_keys = stream_keys + + @property + def interaction_callback_url(self): + """Gets the interaction_callback_url of this StartSmartLiveReq. + + 互动回调URL,含鉴权信息。 + + :return: The interaction_callback_url of this StartSmartLiveReq. + :rtype: str + """ + return self._interaction_callback_url + + @interaction_callback_url.setter + def interaction_callback_url(self, interaction_callback_url): + """Sets the interaction_callback_url of this StartSmartLiveReq. + + 互动回调URL,含鉴权信息。 + + :param interaction_callback_url: The interaction_callback_url of this StartSmartLiveReq. + :type interaction_callback_url: str + """ + self._interaction_callback_url = interaction_callback_url + + @property + def live_event_callback_config(self): + """Gets the live_event_callback_config of this StartSmartLiveReq. + + :return: The live_event_callback_config of this StartSmartLiveReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + return self._live_event_callback_config + + @live_event_callback_config.setter + def live_event_callback_config(self, live_event_callback_config): + """Sets the live_event_callback_config of this StartSmartLiveReq. + + :param live_event_callback_config: The live_event_callback_config of this StartSmartLiveReq. + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + self._live_event_callback_config = live_event_callback_config + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py index 36eb4b369..6d0ebf017 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_request.py @@ -35,7 +35,7 @@ class StartSmartLiveRequest: :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the StartSmartLiveRequest :type body: :class:`huaweicloudsdkmetastudio.v1.StartSmartLiveReq` @@ -80,7 +80,7 @@ class StartSmartLiveRequest: def x_app_user_id(self): """Gets the x_app_user_id of this StartSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this StartSmartLiveRequest. :rtype: str @@ -91,7 +91,7 @@ class StartSmartLiveRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this StartSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this StartSmartLiveRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_response.py index 9913f9a1d..6f0f56e9e 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/start_smart_live_response.py @@ -21,6 +21,8 @@ class StartSmartLiveResponse(SdkResponse): 'job_id': 'str', 'rtc_room_info': 'RTCRoomInfoList', 'live_event_report_url': 'str', + 'live_event_callback_config': 'LiveEventCallBackConfig', + 'live_warning_info': 'list[LiveWarningItem]', 'x_request_id': 'str' } @@ -28,10 +30,12 @@ class StartSmartLiveResponse(SdkResponse): 'job_id': 'job_id', 'rtc_room_info': 'rtc_room_info', 'live_event_report_url': 'live_event_report_url', + 'live_event_callback_config': 'live_event_callback_config', + 'live_warning_info': 'live_warning_info', 'x_request_id': 'X-Request-Id' } - def __init__(self, job_id=None, rtc_room_info=None, live_event_report_url=None, x_request_id=None): + def __init__(self, job_id=None, rtc_room_info=None, live_event_report_url=None, live_event_callback_config=None, live_warning_info=None, x_request_id=None): """StartSmartLiveResponse The model defined in huaweicloud sdk @@ -42,6 +46,10 @@ class StartSmartLiveResponse(SdkResponse): :type rtc_room_info: :class:`huaweicloudsdkmetastudio.v1.RTCRoomInfoList` :param live_event_report_url: 直播事件上报地址。用户将自行获取的直播间事件上报到此地址,用于触发智能互动,自动回复话术。 :type live_event_report_url: str + :param live_event_callback_config: + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + :param live_warning_info: 开播风险告警列表。 + :type live_warning_info: list[:class:`huaweicloudsdkmetastudio.v1.LiveWarningItem`] :param x_request_id: :type x_request_id: str """ @@ -51,6 +59,8 @@ class StartSmartLiveResponse(SdkResponse): self._job_id = None self._rtc_room_info = None self._live_event_report_url = None + self._live_event_callback_config = None + self._live_warning_info = None self._x_request_id = None self.discriminator = None @@ -60,6 +70,10 @@ class StartSmartLiveResponse(SdkResponse): self.rtc_room_info = rtc_room_info if live_event_report_url is not None: self.live_event_report_url = live_event_report_url + if live_event_callback_config is not None: + self.live_event_callback_config = live_event_callback_config + if live_warning_info is not None: + self.live_warning_info = live_warning_info if x_request_id is not None: self.x_request_id = x_request_id @@ -125,6 +139,46 @@ class StartSmartLiveResponse(SdkResponse): """ self._live_event_report_url = live_event_report_url + @property + def live_event_callback_config(self): + """Gets the live_event_callback_config of this StartSmartLiveResponse. + + :return: The live_event_callback_config of this StartSmartLiveResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + return self._live_event_callback_config + + @live_event_callback_config.setter + def live_event_callback_config(self, live_event_callback_config): + """Sets the live_event_callback_config of this StartSmartLiveResponse. + + :param live_event_callback_config: The live_event_callback_config of this StartSmartLiveResponse. + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + self._live_event_callback_config = live_event_callback_config + + @property + def live_warning_info(self): + """Gets the live_warning_info of this StartSmartLiveResponse. + + 开播风险告警列表。 + + :return: The live_warning_info of this StartSmartLiveResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.LiveWarningItem`] + """ + return self._live_warning_info + + @live_warning_info.setter + def live_warning_info(self, live_warning_info): + """Sets the live_warning_info of this StartSmartLiveResponse. + + 开播风险告警列表。 + + :param live_warning_info: The live_warning_info of this StartSmartLiveResponse. + :type live_warning_info: list[:class:`huaweicloudsdkmetastudio.v1.LiveWarningItem`] + """ + self._live_warning_info = live_warning_info + @property def x_request_id(self): """Gets the x_request_id of this StartSmartLiveResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py index 07313359b..684e4a045 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_smart_live_request.py @@ -37,7 +37,7 @@ class StopSmartLiveRequest: :type room_id: str :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -101,7 +101,7 @@ class StopSmartLiveRequest: def x_app_user_id(self): """Gets the x_app_user_id of this StopSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this StopSmartLiveRequest. :rtype: str @@ -112,7 +112,7 @@ class StopSmartLiveRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this StopSmartLiveRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this StopSmartLiveRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py index 0498b8e40..fb9cb62ba 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/stop_video_motion_capture_job_request.py @@ -33,7 +33,7 @@ class StopVideoMotionCaptureJobRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str """ @@ -73,7 +73,7 @@ class StopVideoMotionCaptureJobRequest: def x_app_user_id(self): """Gets the x_app_user_id of this StopVideoMotionCaptureJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this StopVideoMotionCaptureJobRequest. :rtype: str @@ -84,7 +84,7 @@ class StopVideoMotionCaptureJobRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this StopVideoMotionCaptureJobRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this StopVideoMotionCaptureJobRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/subtitle_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/subtitle_config.py new file mode 100644 index 000000000..c05f113d3 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/subtitle_config.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SubtitleConfig: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'dx': 'int', + 'dy': 'int', + 'font_name': 'str', + 'font_size': 'int', + 'h': 'int', + 'w': 'int' + } + + attribute_map = { + 'dx': 'dx', + 'dy': 'dy', + 'font_name': 'font_name', + 'font_size': 'font_size', + 'h': 'h', + 'w': 'w' + } + + def __init__(self, dx=None, dy=None, font_name=None, font_size=None, h=None, w=None): + """SubtitleConfig + + The model defined in huaweicloud sdk + + :param dx: 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + :type dx: int + :param dy: 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + :type dy: int + :param font_name: 字体。当前支持的字体: * HarmonyOS_Sans_SC_Black:鸿蒙粗体 * HarmonyOS_Sans_SC_Regular:鸿蒙常规 * HarmonyOS_Sans_SC_Thin:鸿蒙细体 + :type font_name: str + :param font_size: 字体大小。 取值范围:[4, 120] + :type font_size: int + :param h: 字幕框高度 + :type h: int + :param w: 字幕框宽度 + :type w: int + """ + + + + self._dx = None + self._dy = None + self._font_name = None + self._font_size = None + self._h = None + self._w = None + self.discriminator = None + + if dx is not None: + self.dx = dx + if dy is not None: + self.dy = dy + if font_name is not None: + self.font_name = font_name + if font_size is not None: + self.font_size = font_size + if h is not None: + self.h = h + if w is not None: + self.w = w + + @property + def dx(self): + """Gets the dx of this SubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :return: The dx of this SubtitleConfig. + :rtype: int + """ + return self._dx + + @dx.setter + def dx(self, dx): + """Sets the dx of this SubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :param dx: The dx of this SubtitleConfig. + :type dx: int + """ + self._dx = dx + + @property + def dy(self): + """Gets the dy of this SubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :return: The dy of this SubtitleConfig. + :rtype: int + """ + return self._dy + + @dy.setter + def dy(self, dy): + """Sets the dy of this SubtitleConfig. + + 字幕左上角像素点坐标。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 + + :param dy: The dy of this SubtitleConfig. + :type dy: int + """ + self._dy = dy + + @property + def font_name(self): + """Gets the font_name of this SubtitleConfig. + + 字体。当前支持的字体: * HarmonyOS_Sans_SC_Black:鸿蒙粗体 * HarmonyOS_Sans_SC_Regular:鸿蒙常规 * HarmonyOS_Sans_SC_Thin:鸿蒙细体 + + :return: The font_name of this SubtitleConfig. + :rtype: str + """ + return self._font_name + + @font_name.setter + def font_name(self, font_name): + """Sets the font_name of this SubtitleConfig. + + 字体。当前支持的字体: * HarmonyOS_Sans_SC_Black:鸿蒙粗体 * HarmonyOS_Sans_SC_Regular:鸿蒙常规 * HarmonyOS_Sans_SC_Thin:鸿蒙细体 + + :param font_name: The font_name of this SubtitleConfig. + :type font_name: str + """ + self._font_name = font_name + + @property + def font_size(self): + """Gets the font_size of this SubtitleConfig. + + 字体大小。 取值范围:[4, 120] + + :return: The font_size of this SubtitleConfig. + :rtype: int + """ + return self._font_size + + @font_size.setter + def font_size(self, font_size): + """Sets the font_size of this SubtitleConfig. + + 字体大小。 取值范围:[4, 120] + + :param font_size: The font_size of this SubtitleConfig. + :type font_size: int + """ + self._font_size = font_size + + @property + def h(self): + """Gets the h of this SubtitleConfig. + + 字幕框高度 + + :return: The h of this SubtitleConfig. + :rtype: int + """ + return self._h + + @h.setter + def h(self, h): + """Sets the h of this SubtitleConfig. + + 字幕框高度 + + :param h: The h of this SubtitleConfig. + :type h: int + """ + self._h = h + + @property + def w(self): + """Gets the w of this SubtitleConfig. + + 字幕框宽度 + + :return: The w of this SubtitleConfig. + :rtype: int + """ + return self._w + + @w.setter + def w(self, w): + """Sets the w of this SubtitleConfig. + + 字幕框宽度 + + :param w: The w of this SubtitleConfig. + :type w: int + """ + self._w = w + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SubtitleConfig): + return False + + return self.__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/system_property.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/system_property.py index cef98f2da..11d144ab3 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 @@ class SystemProperty: :param action: 操作。 - ADD:增加 - DELETE:删除 :type action: str - :param key: 系统属性。 * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_IMG:视频制作的2D背景图片。value设置成Yes。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * CREATED_BY_PLATFORM:是否平台生成 + :param key: 系统属性。 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 :type key: str :param value: 属性值。 :type value: str @@ -81,7 +81,7 @@ class SystemProperty: def key(self): """Gets the key of this SystemProperty. - 系统属性。 * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_IMG:视频制作的2D背景图片。value设置成Yes。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * CREATED_BY_PLATFORM:是否平台生成 + 系统属性。 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 :return: The key of this SystemProperty. :rtype: str @@ -92,7 +92,7 @@ class SystemProperty: def key(self, key): """Sets the key of this SystemProperty. - 系统属性。 * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_IMG:视频制作的2D背景图片。value设置成Yes。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 * CREATED_BY_PLATFORM:是否平台生成 + 系统属性。 公共资产属性: * BACKGROUND_IMG:视频制作的背景图片。value设置成Yes * CREATED_BY_PLATFORM: 是否平台生成。 分身数字人资产属性: * MATERIAL_IMG:素材图片,用作前景。value设置成Yes。 * MATERIAL_VIDEO:素材视频,用作前景。value设置成Yes。 * BUSSINESS_CARD_VIDEO:名片视频。 * TO_BE_TRANSLATED_VIDEO: 视频翻译的源视频。可取值Yes。 3D数字人资产属性: * STYLE_ID:风格Id。 * DH_ID:数字人ID(尚未启用)。 * PLATFORM_AVAILABLE:是否平台可用(尚未启用)。 * RENDER_ENGINE:引擎类型。value可选UE或MetaEngine。 * BACKGROUND_SCENE:视频制作的2D背景场景。value可选Horizontal(横屏)或者Vertical(竖屏)。 :param key: The key of this SystemProperty. :type key: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/text_layer_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/text_layer_config.py index dc9a94ef1..4acb3f9a5 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/text_layer_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/text_layer_config.py @@ -35,13 +35,13 @@ class TextLayerConfig: The model defined in huaweicloud sdk - :param text_context: 文字水印内容,内容需做Base64编码,若类型为文字水印 (type字段为Text),则此配置项不能为空 示例:若想添加文字水印“测试文字水印”,那么Content的值为:5rWL6K+V5paH5a2X5rC05Y2w + :param text_context: 文字图层的文本,内容需做Base64编码。 示例:若想添加文字水印“测试文字水印”,那么text_context的值为:5rWL6K+V5paH5a2X5rC05Y2w :type text_context: str - :param font_name: 字体,当前支持fzyouh + :param font_name: 字体。当前支持的字体: * HarmonyOS_Sans_SC_Black:鸿蒙粗体 * HarmonyOS_Sans_SC_Regular:鸿蒙常规 * HarmonyOS_Sans_SC_Thin:鸿蒙细体 * fzyouh:方正瘦体 :type font_name: str - :param font_size: 字体大小。 取值范围:[4, 120] + :param font_size: 字体大小(像素)。 取值范围:[4, 120] :type font_size: int - :param font_color: 字体颜色。 目前颜色支持 black,blue,white,green,red,yellow,brown,gold,pink,orange,purple。 + :param font_color: 字体颜色。RGB颜色值。 :type font_color: str """ @@ -66,7 +66,7 @@ class TextLayerConfig: def text_context(self): """Gets the text_context of this TextLayerConfig. - 文字水印内容,内容需做Base64编码,若类型为文字水印 (type字段为Text),则此配置项不能为空 示例:若想添加文字水印“测试文字水印”,那么Content的值为:5rWL6K+V5paH5a2X5rC05Y2w + 文字图层的文本,内容需做Base64编码。 示例:若想添加文字水印“测试文字水印”,那么text_context的值为:5rWL6K+V5paH5a2X5rC05Y2w :return: The text_context of this TextLayerConfig. :rtype: str @@ -77,7 +77,7 @@ class TextLayerConfig: def text_context(self, text_context): """Sets the text_context of this TextLayerConfig. - 文字水印内容,内容需做Base64编码,若类型为文字水印 (type字段为Text),则此配置项不能为空 示例:若想添加文字水印“测试文字水印”,那么Content的值为:5rWL6K+V5paH5a2X5rC05Y2w + 文字图层的文本,内容需做Base64编码。 示例:若想添加文字水印“测试文字水印”,那么text_context的值为:5rWL6K+V5paH5a2X5rC05Y2w :param text_context: The text_context of this TextLayerConfig. :type text_context: str @@ -88,7 +88,7 @@ class TextLayerConfig: def font_name(self): """Gets the font_name of this TextLayerConfig. - 字体,当前支持fzyouh + 字体。当前支持的字体: * HarmonyOS_Sans_SC_Black:鸿蒙粗体 * HarmonyOS_Sans_SC_Regular:鸿蒙常规 * HarmonyOS_Sans_SC_Thin:鸿蒙细体 * fzyouh:方正瘦体 :return: The font_name of this TextLayerConfig. :rtype: str @@ -99,7 +99,7 @@ class TextLayerConfig: def font_name(self, font_name): """Sets the font_name of this TextLayerConfig. - 字体,当前支持fzyouh + 字体。当前支持的字体: * HarmonyOS_Sans_SC_Black:鸿蒙粗体 * HarmonyOS_Sans_SC_Regular:鸿蒙常规 * HarmonyOS_Sans_SC_Thin:鸿蒙细体 * fzyouh:方正瘦体 :param font_name: The font_name of this TextLayerConfig. :type font_name: str @@ -110,7 +110,7 @@ class TextLayerConfig: def font_size(self): """Gets the font_size of this TextLayerConfig. - 字体大小。 取值范围:[4, 120] + 字体大小(像素)。 取值范围:[4, 120] :return: The font_size of this TextLayerConfig. :rtype: int @@ -121,7 +121,7 @@ class TextLayerConfig: def font_size(self, font_size): """Sets the font_size of this TextLayerConfig. - 字体大小。 取值范围:[4, 120] + 字体大小(像素)。 取值范围:[4, 120] :param font_size: The font_size of this TextLayerConfig. :type font_size: int @@ -132,7 +132,7 @@ class TextLayerConfig: def font_color(self): """Gets the font_color of this TextLayerConfig. - 字体颜色。 目前颜色支持 black,blue,white,green,red,yellow,brown,gold,pink,orange,purple。 + 字体颜色。RGB颜色值。 :return: The font_color of this TextLayerConfig. :rtype: str @@ -143,7 +143,7 @@ class TextLayerConfig: def font_color(self, font_color): """Sets the font_color of this TextLayerConfig. - 字体颜色。 目前颜色支持 black,blue,white,green,red,yellow,brown,gold,pink,orange,purple。 + 字体颜色。RGB颜色值。 :param font_color: The font_color of this TextLayerConfig. :type font_color: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py index 7cb8726d6..f9acd8406 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/trigger_process.py @@ -19,28 +19,36 @@ class TriggerProcess: openapi_types = { 'time_window': 'int', 'reply_mode': 'str', + 'layer_config': 'SmartLayerConfig', 'reply_texts': 'list[str]', + 'reply_audios': 'list[ReplyAudioInfo]', 'reply_order': 'str' } attribute_map = { 'time_window': 'time_window', 'reply_mode': 'reply_mode', + 'layer_config': 'layer_config', 'reply_texts': 'reply_texts', + 'reply_audios': 'reply_audios', 'reply_order': 'reply_order' } - def __init__(self, time_window=None, reply_mode=None, reply_texts=None, reply_order=None): + def __init__(self, time_window=None, reply_mode=None, layer_config=None, reply_texts=None, reply_audios=None, reply_order=None): """TriggerProcess The model defined in huaweicloud sdk - :param time_window: 处理抑制时长。单位秒。 -1 表示整场直播 0 表示无抑制,每次都触发 + :param time_window: 处理抑制时长。单位秒。 -1 表示整场直播 0 表示无抑制,每次都触发 :type time_window: int - :param reply_mode: 回复类型。 SYSTEM_REPLY:系统自动回复设置的话术 + :param reply_mode: 回复类型。 * SYSTEM_REPLY:系统自动回复设置的话术。 * CALLBACK:回调给其他服务,携带设置的话术。 * SHOW_LAYER: 显示叠加图层,不影响话术。 :type reply_mode: str + :param layer_config: + :type layer_config: :class:`huaweicloudsdkmetastudio.v1.SmartLayerConfig` :param reply_texts: 回复话术集 :type reply_texts: list[str] + :param reply_audios: 回复音频集。填写audio_url。 + :type reply_audios: list[:class:`huaweicloudsdkmetastudio.v1.ReplyAudioInfo`] :param reply_order: 回复次序 - RANDOM:随机 - ORDER:顺序循环 :type reply_order: str """ @@ -49,7 +57,9 @@ class TriggerProcess: self._time_window = None self._reply_mode = None + self._layer_config = None self._reply_texts = None + self._reply_audios = None self._reply_order = None self.discriminator = None @@ -57,8 +67,12 @@ class TriggerProcess: self.time_window = time_window if reply_mode is not None: self.reply_mode = reply_mode + if layer_config is not None: + self.layer_config = layer_config if reply_texts is not None: self.reply_texts = reply_texts + if reply_audios is not None: + self.reply_audios = reply_audios if reply_order is not None: self.reply_order = reply_order @@ -66,7 +80,7 @@ class TriggerProcess: def time_window(self): """Gets the time_window of this TriggerProcess. - 处理抑制时长。单位秒。 -1 表示整场直播 0 表示无抑制,每次都触发 + 处理抑制时长。单位秒。 -1 表示整场直播 0 表示无抑制,每次都触发 :return: The time_window of this TriggerProcess. :rtype: int @@ -77,7 +91,7 @@ class TriggerProcess: def time_window(self, time_window): """Sets the time_window of this TriggerProcess. - 处理抑制时长。单位秒。 -1 表示整场直播 0 表示无抑制,每次都触发 + 处理抑制时长。单位秒。 -1 表示整场直播 0 表示无抑制,每次都触发 :param time_window: The time_window of this TriggerProcess. :type time_window: int @@ -88,7 +102,7 @@ class TriggerProcess: def reply_mode(self): """Gets the reply_mode of this TriggerProcess. - 回复类型。 SYSTEM_REPLY:系统自动回复设置的话术 + 回复类型。 * SYSTEM_REPLY:系统自动回复设置的话术。 * CALLBACK:回调给其他服务,携带设置的话术。 * SHOW_LAYER: 显示叠加图层,不影响话术。 :return: The reply_mode of this TriggerProcess. :rtype: str @@ -99,13 +113,31 @@ class TriggerProcess: def reply_mode(self, reply_mode): """Sets the reply_mode of this TriggerProcess. - 回复类型。 SYSTEM_REPLY:系统自动回复设置的话术 + 回复类型。 * SYSTEM_REPLY:系统自动回复设置的话术。 * CALLBACK:回调给其他服务,携带设置的话术。 * SHOW_LAYER: 显示叠加图层,不影响话术。 :param reply_mode: The reply_mode of this TriggerProcess. :type reply_mode: str """ self._reply_mode = reply_mode + @property + def layer_config(self): + """Gets the layer_config of this TriggerProcess. + + :return: The layer_config of this TriggerProcess. + :rtype: :class:`huaweicloudsdkmetastudio.v1.SmartLayerConfig` + """ + return self._layer_config + + @layer_config.setter + def layer_config(self, layer_config): + """Sets the layer_config of this TriggerProcess. + + :param layer_config: The layer_config of this TriggerProcess. + :type layer_config: :class:`huaweicloudsdkmetastudio.v1.SmartLayerConfig` + """ + self._layer_config = layer_config + @property def reply_texts(self): """Gets the reply_texts of this TriggerProcess. @@ -128,6 +160,28 @@ class TriggerProcess: """ self._reply_texts = reply_texts + @property + def reply_audios(self): + """Gets the reply_audios of this TriggerProcess. + + 回复音频集。填写audio_url。 + + :return: The reply_audios of this TriggerProcess. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ReplyAudioInfo`] + """ + return self._reply_audios + + @reply_audios.setter + def reply_audios(self, reply_audios): + """Sets the reply_audios of this TriggerProcess. + + 回复音频集。填写audio_url。 + + :param reply_audios: The reply_audios of this TriggerProcess. + :type reply_audios: list[:class:`huaweicloudsdkmetastudio.v1.ReplyAudioInfo`] + """ + self._reply_audios = reply_audios + @property def reply_order(self): """Gets the reply_order of this TriggerProcess. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ttsa_job.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ttsa_job.py index 41c05457c..dc58fbb32 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ttsa_job.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ttsa_job.py @@ -21,7 +21,8 @@ class TTSAJob: 'state': 'str', 'start_time': 'str', 'end_time': 'str', - 'content_duration': 'float' + 'content_duration': 'float', + 'job_type': 'str' } attribute_map = { @@ -29,10 +30,11 @@ class TTSAJob: 'state': 'state', 'start_time': 'start_time', 'end_time': 'end_time', - 'content_duration': 'content_duration' + 'content_duration': 'content_duration', + 'job_type': 'job_type' } - def __init__(self, job_id=None, state=None, start_time=None, end_time=None, content_duration=None): + def __init__(self, job_id=None, state=None, start_time=None, end_time=None, content_duration=None, job_type=None): """TTSAJob The model defined in huaweicloud sdk @@ -47,6 +49,8 @@ class TTSAJob: :type end_time: str :param content_duration: 语音驱动内容时长。 单位:秒。 :type content_duration: float + :param job_type: 任务类型。 * REAL_JOB:实时任务。如数字人交互。 * UNREAL_JOB:非实时任务。如数字人视频制作 + :type job_type: str """ @@ -56,6 +60,7 @@ class TTSAJob: self._start_time = None self._end_time = None self._content_duration = None + self._job_type = None self.discriminator = None if job_id is not None: @@ -68,6 +73,8 @@ class TTSAJob: self.end_time = end_time if content_duration is not None: self.content_duration = content_duration + if job_type is not None: + self.job_type = job_type @property def job_id(self): @@ -179,6 +186,28 @@ class TTSAJob: """ self._content_duration = content_duration + @property + def job_type(self): + """Gets the job_type of this TTSAJob. + + 任务类型。 * REAL_JOB:实时任务。如数字人交互。 * UNREAL_JOB:非实时任务。如数字人视频制作 + + :return: The job_type of this TTSAJob. + :rtype: str + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type): + """Sets the job_type of this TTSAJob. + + 任务类型。 * REAL_JOB:实时任务。如数字人交互。 * UNREAL_JOB:非实时任务。如数字人视频制作 + + :param job_type: The job_type of this TTSAJob. + :type job_type: str + """ + self._job_type = job_type + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py index c8c5ed7a7..422f9cd87 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request.py @@ -33,7 +33,7 @@ class UpdateDigitalAssetRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param asset_id: 资产ID。 :type asset_id: str @@ -58,7 +58,7 @@ class UpdateDigitalAssetRequest: def x_app_user_id(self): """Gets the x_app_user_id of this UpdateDigitalAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this UpdateDigitalAssetRequest. :rtype: str @@ -69,7 +69,7 @@ class UpdateDigitalAssetRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateDigitalAssetRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateDigitalAssetRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request_body.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request_body.py index ef9391c8a..2576cb6c8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request_body.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_request_body.py @@ -22,6 +22,8 @@ class UpdateDigitalAssetRequestBody: 'asset_type': 'str', 'asset_state': 'str', 'asset_owner': 'str', + 'is_need_generate_cover': 'bool', + 'review_config': 'ReviewConfig', 'tags': 'list[str]', 'asset_extra_meta': 'AssetExtraMeta', 'system_properties': 'list[SystemProperty]' @@ -33,12 +35,14 @@ class UpdateDigitalAssetRequestBody: 'asset_type': 'asset_type', 'asset_state': 'asset_state', 'asset_owner': 'asset_owner', + 'is_need_generate_cover': 'is_need_generate_cover', + 'review_config': 'review_config', 'tags': 'tags', 'asset_extra_meta': 'asset_extra_meta', 'system_properties': 'system_properties' } - def __init__(self, asset_name=None, asset_description=None, asset_type=None, asset_state=None, asset_owner=None, tags=None, asset_extra_meta=None, system_properties=None): + def __init__(self, asset_name=None, asset_description=None, asset_type=None, asset_state=None, asset_owner=None, is_need_generate_cover=None, review_config=None, tags=None, asset_extra_meta=None, system_properties=None): """UpdateDigitalAssetRequestBody The model defined in huaweicloud sdk @@ -47,12 +51,16 @@ class UpdateDigitalAssetRequestBody: :type asset_name: str :param asset_description: 资产描述。 :type asset_description: str - :param asset_type: 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可更新) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + :param asset_type: 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :type asset_type: str :param asset_state: 资产状态。 * UNACTIVED:取消激活。未激活的资产不可用于其他业务 * ACTIVED:激活。激活后的资产可用于其他业务 :type asset_state: str - :param asset_owner: 项目ID。 + :param asset_owner: 项目ID。 > * 仅管理员帐号可设置此参数。 :type asset_owner: str + :param is_need_generate_cover: 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + :type is_need_generate_cover: bool + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` :param tags: 标签列表。 :type tags: list[str] :param asset_extra_meta: @@ -68,6 +76,8 @@ class UpdateDigitalAssetRequestBody: self._asset_type = None self._asset_state = None self._asset_owner = None + self._is_need_generate_cover = None + self._review_config = None self._tags = None self._asset_extra_meta = None self._system_properties = None @@ -83,6 +93,10 @@ class UpdateDigitalAssetRequestBody: self.asset_state = asset_state if asset_owner is not None: self.asset_owner = asset_owner + if is_need_generate_cover is not None: + self.is_need_generate_cover = is_need_generate_cover + if review_config is not None: + self.review_config = review_config if tags is not None: self.tags = tags if asset_extra_meta is not None: @@ -138,7 +152,7 @@ class UpdateDigitalAssetRequestBody: def asset_type(self): """Gets the asset_type of this UpdateDigitalAssetRequestBody. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可更新) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :return: The asset_type of this UpdateDigitalAssetRequestBody. :rtype: str @@ -149,7 +163,7 @@ class UpdateDigitalAssetRequestBody: def asset_type(self, asset_type): """Sets the asset_type of this UpdateDigitalAssetRequestBody. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型(仅系统管理员可更新) * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型(仅系统管理员可上传,普通租户仅可查询) * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产: * HUMAN_MODEL_2D: 分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :param asset_type: The asset_type of this UpdateDigitalAssetRequestBody. :type asset_type: str @@ -182,7 +196,7 @@ class UpdateDigitalAssetRequestBody: def asset_owner(self): """Gets the asset_owner of this UpdateDigitalAssetRequestBody. - 项目ID。 + 项目ID。 > * 仅管理员帐号可设置此参数。 :return: The asset_owner of this UpdateDigitalAssetRequestBody. :rtype: str @@ -193,13 +207,53 @@ class UpdateDigitalAssetRequestBody: def asset_owner(self, asset_owner): """Sets the asset_owner of this UpdateDigitalAssetRequestBody. - 项目ID。 + 项目ID。 > * 仅管理员帐号可设置此参数。 :param asset_owner: The asset_owner of this UpdateDigitalAssetRequestBody. :type asset_owner: str """ self._asset_owner = asset_owner + @property + def is_need_generate_cover(self): + """Gets the is_need_generate_cover of this UpdateDigitalAssetRequestBody. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :return: The is_need_generate_cover of this UpdateDigitalAssetRequestBody. + :rtype: bool + """ + return self._is_need_generate_cover + + @is_need_generate_cover.setter + def is_need_generate_cover(self, is_need_generate_cover): + """Sets the is_need_generate_cover of this UpdateDigitalAssetRequestBody. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :param is_need_generate_cover: The is_need_generate_cover of this UpdateDigitalAssetRequestBody. + :type is_need_generate_cover: bool + """ + self._is_need_generate_cover = is_need_generate_cover + + @property + def review_config(self): + """Gets the review_config of this UpdateDigitalAssetRequestBody. + + :return: The review_config of this UpdateDigitalAssetRequestBody. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this UpdateDigitalAssetRequestBody. + + :param review_config: The review_config of this UpdateDigitalAssetRequestBody. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + @property def tags(self): """Gets the tags of this UpdateDigitalAssetRequestBody. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_response.py index 2980f2ea2..463685af8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_asset_response.py @@ -25,6 +25,9 @@ class UpdateDigitalAssetResponse(SdkResponse): 'update_time': 'str', 'asset_type': 'str', 'asset_state': 'str', + 'fail_type': 'str', + 'reason': 'str', + 'is_need_generate_cover': 'bool', 'tags': 'list[str]', 'asset_extra_meta': 'AssetExtraMeta', 'system_properties': 'list[SystemProperty]', @@ -40,6 +43,9 @@ class UpdateDigitalAssetResponse(SdkResponse): 'update_time': 'update_time', 'asset_type': 'asset_type', 'asset_state': 'asset_state', + 'fail_type': 'fail_type', + 'reason': 'reason', + 'is_need_generate_cover': 'is_need_generate_cover', 'tags': 'tags', 'asset_extra_meta': 'asset_extra_meta', 'system_properties': 'system_properties', @@ -47,7 +53,7 @@ class UpdateDigitalAssetResponse(SdkResponse): 'x_request_id': 'X-Request-Id' } - def __init__(self, asset_id=None, asset_name=None, asset_description=None, create_time=None, update_time=None, asset_type=None, asset_state=None, tags=None, asset_extra_meta=None, system_properties=None, files=None, x_request_id=None): + def __init__(self, asset_id=None, asset_name=None, asset_description=None, create_time=None, update_time=None, asset_type=None, asset_state=None, fail_type=None, reason=None, is_need_generate_cover=None, tags=None, asset_extra_meta=None, system_properties=None, files=None, x_request_id=None): """UpdateDigitalAssetResponse The model defined in huaweicloud sdk @@ -62,10 +68,16 @@ class UpdateDigitalAssetResponse(SdkResponse): :type create_time: str :param update_time: 资产更新时间。 :type update_time: str - :param asset_type: 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + :param asset_type: 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :type asset_type: str :param asset_state: 资产状态。 * CREATING:资产创建中,主文件尚未上传 * FAILED:主文件上传失败 * UNACTIVED:主文件上传成功,资产未激活,资产不可用于其他业务(用户可更新状态) * ACTIVED:主文件上传成功,资产激活,资产可用于其他业务(用户可更新状态) * DELETING:资产删除中,资产不可用,资产可恢复 * DELETED:资产文件已删除,资产不可用,资产不可恢复 * BLOCK: 资产被冻结,资产不可用,不可查看文件。 :type asset_state: str + :param fail_type: 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + :type fail_type: str + :param reason: 冻结/解冻/失败 原因。 + :type reason: str + :param is_need_generate_cover: 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + :type is_need_generate_cover: bool :param tags: 标签列表。 :type tags: list[str] :param asset_extra_meta: @@ -87,6 +99,9 @@ class UpdateDigitalAssetResponse(SdkResponse): self._update_time = None self._asset_type = None self._asset_state = None + self._fail_type = None + self._reason = None + self._is_need_generate_cover = None self._tags = None self._asset_extra_meta = None self._system_properties = None @@ -108,6 +123,12 @@ class UpdateDigitalAssetResponse(SdkResponse): self.asset_type = asset_type if asset_state is not None: self.asset_state = asset_state + if fail_type is not None: + self.fail_type = fail_type + if reason is not None: + self.reason = reason + if is_need_generate_cover is not None: + self.is_need_generate_cover = is_need_generate_cover if tags is not None: self.tags = tags if asset_extra_meta is not None: @@ -233,7 +254,7 @@ class UpdateDigitalAssetResponse(SdkResponse): def asset_type(self): """Gets the asset_type of this UpdateDigitalAssetResponse. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :return: The asset_type of this UpdateDigitalAssetResponse. :rtype: str @@ -244,7 +265,7 @@ class UpdateDigitalAssetResponse(SdkResponse): def asset_type(self, asset_type): """Sets the asset_type of this UpdateDigitalAssetResponse. - 资产类型。 * HUMAN_MODEL:数字人模型 * VOICE_MODEL:音色模型 * SCENE:场景模型 * ANIMATION:动作动画 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 * COMMON_FILE:通用文件 * HUMAN_MODEL_2D:2D数字人网络模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 * MUSIC: 音乐 + 资产类型。 公共资产类型: * VOICE_MODEL:音色模型 * VIDEO:视频文件 * IMAGE:图片文件 * PPT:幻灯片文件 * MUSIC: 音乐 * AUDIO: 音频 * COMMON_FILE:通用文件 分身数字人资产类型: * HUMAN_MODEL_2D:分身数字人模型 * BUSINESS_CARD_TEMPLET: 数字人名片模板 3D数字人资产类型: * HUMAN_MODEL:3D数字人模型 * SCENE:场景模型 * ANIMATION:动作动画 * MATERIAL:风格化素材 * NORMAL_MODEL: 普通模型 :param asset_type: The asset_type of this UpdateDigitalAssetResponse. :type asset_type: str @@ -273,6 +294,72 @@ class UpdateDigitalAssetResponse(SdkResponse): """ self._asset_state = asset_state + @property + def fail_type(self): + """Gets the fail_type of this UpdateDigitalAssetResponse. + + 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + + :return: The fail_type of this UpdateDigitalAssetResponse. + :rtype: str + """ + return self._fail_type + + @fail_type.setter + def fail_type(self, fail_type): + """Sets the fail_type of this UpdateDigitalAssetResponse. + + 失败原因。 * AUTOMATIC_REVIEW_REJECT:自动审核失败 * MANUAL_REVIEW_REJECT:人工审核失败 + + :param fail_type: The fail_type of this UpdateDigitalAssetResponse. + :type fail_type: str + """ + self._fail_type = fail_type + + @property + def reason(self): + """Gets the reason of this UpdateDigitalAssetResponse. + + 冻结/解冻/失败 原因。 + + :return: The reason of this UpdateDigitalAssetResponse. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this UpdateDigitalAssetResponse. + + 冻结/解冻/失败 原因。 + + :param reason: The reason of this UpdateDigitalAssetResponse. + :type reason: str + """ + self._reason = reason + + @property + def is_need_generate_cover(self): + """Gets the is_need_generate_cover of this UpdateDigitalAssetResponse. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :return: The is_need_generate_cover of this UpdateDigitalAssetResponse. + :rtype: bool + """ + return self._is_need_generate_cover + + @is_need_generate_cover.setter + def is_need_generate_cover(self, is_need_generate_cover): + """Sets the is_need_generate_cover of this UpdateDigitalAssetResponse. + + 是否需要资产库生成封面图片。 > * 当前支持自动生成封面图片的资产类型包括VIDEO + + :param is_need_generate_cover: The is_need_generate_cover of this UpdateDigitalAssetResponse. + :type is_need_generate_cover: bool + """ + self._is_need_generate_cover = is_need_generate_cover + @property def tags(self): """Gets the tags of this UpdateDigitalAssetResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py index 166c331eb..156f259c0 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_digital_human_business_card_request.py @@ -35,7 +35,7 @@ class UpdateDigitalHumanBusinessCardRequest: :param job_id: 任务ID。 :type job_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the UpdateDigitalHumanBusinessCardRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateDigitalHumanBusinessCardReq` @@ -80,7 +80,7 @@ class UpdateDigitalHumanBusinessCardRequest: def x_app_user_id(self): """Gets the x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. :rtype: str @@ -91,7 +91,7 @@ class UpdateDigitalHumanBusinessCardRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateDigitalHumanBusinessCardRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_request.py new file mode 100644 index 000000000..d84e6beb3 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_request.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInteractionRuleGroupRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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', + 'group_id': 'str', + 'body': 'InteractionRuleGroup' + } + + attribute_map = { + 'x_app_user_id': 'X-App-UserId', + 'group_id': 'group_id', + 'body': 'body' + } + + def __init__(self, x_app_user_id=None, group_id=None, body=None): + """UpdateInteractionRuleGroupRequest + + The model defined in huaweicloud sdk + + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 + :type x_app_user_id: str + :param group_id: 互动规则库ID。 + :type group_id: str + :param body: Body of the UpdateInteractionRuleGroupRequest + :type body: :class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroup` + """ + + + + self._x_app_user_id = None + self._group_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 + self.group_id = group_id + if body is not None: + self.body = body + + @property + def x_app_user_id(self): + """Gets the x_app_user_id of this UpdateInteractionRuleGroupRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :return: The x_app_user_id of this UpdateInteractionRuleGroupRequest. + :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 UpdateInteractionRuleGroupRequest. + + 第三方用户ID。 > *不允许输入中文。 + + :param x_app_user_id: The x_app_user_id of this UpdateInteractionRuleGroupRequest. + :type x_app_user_id: str + """ + self._x_app_user_id = x_app_user_id + + @property + def group_id(self): + """Gets the group_id of this UpdateInteractionRuleGroupRequest. + + 互动规则库ID。 + + :return: The group_id of this UpdateInteractionRuleGroupRequest. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this UpdateInteractionRuleGroupRequest. + + 互动规则库ID。 + + :param group_id: The group_id of this UpdateInteractionRuleGroupRequest. + :type group_id: str + """ + self._group_id = group_id + + @property + def body(self): + """Gets the body of this UpdateInteractionRuleGroupRequest. + + :return: The body of this UpdateInteractionRuleGroupRequest. + :rtype: :class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroup` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this UpdateInteractionRuleGroupRequest. + + :param body: The body of this UpdateInteractionRuleGroupRequest. + :type body: :class:`huaweicloudsdkmetastudio.v1.InteractionRuleGroup` + """ + 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, UpdateInteractionRuleGroupRequest): + return False + + return self.__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/update_interaction_rule_group_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_response.py new file mode 100644 index 000000000..93e60657e --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_interaction_rule_group_response.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class UpdateInteractionRuleGroupResponse(SdkResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'group_id': 'str', + 'group_name': 'str', + 'interaction_rules': 'list[InteractionRuleDetailInfo]', + 'create_time': 'str', + 'update_time': 'str', + 'x_request_id': 'str' + } + + attribute_map = { + 'group_id': 'group_id', + 'group_name': 'group_name', + 'interaction_rules': 'interaction_rules', + 'create_time': 'create_time', + 'update_time': 'update_time', + 'x_request_id': 'X-Request-Id' + } + + def __init__(self, group_id=None, group_name=None, interaction_rules=None, create_time=None, update_time=None, x_request_id=None): + """UpdateInteractionRuleGroupResponse + + The model defined in huaweicloud sdk + + :param group_id: 互动规则库ID + :type group_id: str + :param group_name: 互动规则库名称 + :type group_name: str + :param interaction_rules: 互动规则列表 + :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleDetailInfo`] + :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type create_time: str + :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + :type update_time: str + :param x_request_id: + :type x_request_id: str + """ + + super(UpdateInteractionRuleGroupResponse, self).__init__() + + self._group_id = None + self._group_name = None + self._interaction_rules = None + self._create_time = None + self._update_time = None + self._x_request_id = None + self.discriminator = None + + if group_id is not None: + self.group_id = group_id + if group_name is not None: + self.group_name = group_name + if interaction_rules is not None: + self.interaction_rules = interaction_rules + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if x_request_id is not None: + self.x_request_id = x_request_id + + @property + def group_id(self): + """Gets the group_id of this UpdateInteractionRuleGroupResponse. + + 互动规则库ID + + :return: The group_id of this UpdateInteractionRuleGroupResponse. + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this UpdateInteractionRuleGroupResponse. + + 互动规则库ID + + :param group_id: The group_id of this UpdateInteractionRuleGroupResponse. + :type group_id: str + """ + self._group_id = group_id + + @property + def group_name(self): + """Gets the group_name of this UpdateInteractionRuleGroupResponse. + + 互动规则库名称 + + :return: The group_name of this UpdateInteractionRuleGroupResponse. + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this UpdateInteractionRuleGroupResponse. + + 互动规则库名称 + + :param group_name: The group_name of this UpdateInteractionRuleGroupResponse. + :type group_name: str + """ + self._group_name = group_name + + @property + def interaction_rules(self): + """Gets the interaction_rules of this UpdateInteractionRuleGroupResponse. + + 互动规则列表 + + :return: The interaction_rules of this UpdateInteractionRuleGroupResponse. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleDetailInfo`] + """ + return self._interaction_rules + + @interaction_rules.setter + def interaction_rules(self, interaction_rules): + """Sets the interaction_rules of this UpdateInteractionRuleGroupResponse. + + 互动规则列表 + + :param interaction_rules: The interaction_rules of this UpdateInteractionRuleGroupResponse. + :type interaction_rules: list[:class:`huaweicloudsdkmetastudio.v1.InteractionRuleDetailInfo`] + """ + self._interaction_rules = interaction_rules + + @property + def create_time(self): + """Gets the create_time of this UpdateInteractionRuleGroupResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The create_time of this UpdateInteractionRuleGroupResponse. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this UpdateInteractionRuleGroupResponse. + + 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param create_time: The create_time of this UpdateInteractionRuleGroupResponse. + :type create_time: str + """ + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this UpdateInteractionRuleGroupResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :return: The update_time of this UpdateInteractionRuleGroupResponse. + :rtype: str + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this UpdateInteractionRuleGroupResponse. + + 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 + + :param update_time: The update_time of this UpdateInteractionRuleGroupResponse. + :type update_time: str + """ + self._update_time = update_time + + @property + def x_request_id(self): + """Gets the x_request_id of this UpdateInteractionRuleGroupResponse. + + :return: The x_request_id of this UpdateInteractionRuleGroupResponse. + :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 UpdateInteractionRuleGroupResponse. + + :param x_request_id: The x_request_id of this UpdateInteractionRuleGroupResponse. + :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, UpdateInteractionRuleGroupResponse): + return False + + return self.__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/update_smart_live_room_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_request.py index e381eef2d..4dd206a1d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_request.py @@ -35,7 +35,7 @@ class UpdateSmartLiveRoomRequest: :param room_id: 剧本ID。 :type room_id: str - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param body: Body of the UpdateSmartLiveRoomRequest :type body: :class:`huaweicloudsdkmetastudio.v1.CreateSmartLiveRoomReq` @@ -80,7 +80,7 @@ class UpdateSmartLiveRoomRequest: def x_app_user_id(self): """Gets the x_app_user_id of this UpdateSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this UpdateSmartLiveRoomRequest. :rtype: str @@ -91,7 +91,7 @@ class UpdateSmartLiveRoomRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateSmartLiveRoomRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateSmartLiveRoomRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py index ef5c8ceea..eb7063242 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_smart_live_room_response.py @@ -26,10 +26,17 @@ class UpdateSmartLiveRoomResponse(SdkResponse): 'play_policy': 'PlayPolicy', 'video_config': 'VideoConfig', 'output_urls': 'list[str]', + 'stream_keys': 'list[str]', + 'backup_model_asset_ids': 'list[str]', + 'live_event_callback_config': 'LiveEventCallBackConfig', + 'review_config': 'ReviewConfig', + 'shared_config': 'SharedConfig', 'room_id': 'str', 'create_time': 'str', 'update_time': 'str', 'cover_url': 'str', + 'room_state': 'str', + 'error_info': 'ErrorResponse', 'x_request_id': 'str' } @@ -42,14 +49,21 @@ class UpdateSmartLiveRoomResponse(SdkResponse): 'play_policy': 'play_policy', 'video_config': 'video_config', 'output_urls': 'output_urls', + 'stream_keys': 'stream_keys', + 'backup_model_asset_ids': 'backup_model_asset_ids', + 'live_event_callback_config': 'live_event_callback_config', + 'review_config': 'review_config', + 'shared_config': 'shared_config', 'room_id': 'room_id', 'create_time': 'create_time', 'update_time': 'update_time', 'cover_url': 'cover_url', + 'room_state': 'room_state', + 'error_info': 'error_info', 'x_request_id': 'X-Request-Id' } - def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, room_id=None, create_time=None, update_time=None, cover_url=None, x_request_id=None): + def __init__(self, room_name=None, room_description=None, room_type=None, scene_scripts=None, interaction_rules=None, play_policy=None, video_config=None, output_urls=None, stream_keys=None, backup_model_asset_ids=None, live_event_callback_config=None, review_config=None, shared_config=None, room_id=None, create_time=None, update_time=None, cover_url=None, room_state=None, error_info=None, x_request_id=None): """UpdateSmartLiveRoomResponse The model defined in huaweicloud sdk @@ -58,7 +72,7 @@ class UpdateSmartLiveRoomResponse(SdkResponse): :type room_name: str :param room_description: 直播间描述。 :type room_description: str - :param room_type: 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + :param room_type: 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :type room_type: str :param scene_scripts: 默认直播剧本列表。 :type scene_scripts: list[:class:`huaweicloudsdkmetastudio.v1.LiveVideoScriptInfo`] @@ -68,8 +82,18 @@ class UpdateSmartLiveRoomResponse(SdkResponse): :type play_policy: :class:`huaweicloudsdkmetastudio.v1.PlayPolicy` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` - :param output_urls: 视频推流第三方直播平台地址。 + :param output_urls: RTMP视频推流第三方直播平台地址。 :type output_urls: list[str] + :param stream_keys: RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + :type stream_keys: list[str] + :param backup_model_asset_ids: 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + :type backup_model_asset_ids: list[str] + :param live_event_callback_config: + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shared_config: + :type shared_config: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` :param room_id: 直播间ID :type room_id: str :param create_time: 直播间创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -78,6 +102,10 @@ class UpdateSmartLiveRoomResponse(SdkResponse): :type update_time: str :param cover_url: 直播间封面图URL :type cover_url: str + :param room_state: 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + :type room_state: str + :param error_info: + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` :param x_request_id: :type x_request_id: str """ @@ -92,10 +120,17 @@ class UpdateSmartLiveRoomResponse(SdkResponse): self._play_policy = None self._video_config = None self._output_urls = None + self._stream_keys = None + self._backup_model_asset_ids = None + self._live_event_callback_config = None + self._review_config = None + self._shared_config = None self._room_id = None self._create_time = None self._update_time = None self._cover_url = None + self._room_state = None + self._error_info = None self._x_request_id = None self.discriminator = None @@ -114,6 +149,16 @@ class UpdateSmartLiveRoomResponse(SdkResponse): self.video_config = video_config if output_urls is not None: self.output_urls = output_urls + if stream_keys is not None: + self.stream_keys = stream_keys + if backup_model_asset_ids is not None: + self.backup_model_asset_ids = backup_model_asset_ids + if live_event_callback_config is not None: + self.live_event_callback_config = live_event_callback_config + if review_config is not None: + self.review_config = review_config + if shared_config is not None: + self.shared_config = shared_config if room_id is not None: self.room_id = room_id if create_time is not None: @@ -122,6 +167,10 @@ class UpdateSmartLiveRoomResponse(SdkResponse): self.update_time = update_time if cover_url is not None: self.cover_url = cover_url + if room_state is not None: + self.room_state = room_state + if error_info is not None: + self.error_info = error_info if x_request_id is not None: self.x_request_id = x_request_id @@ -173,7 +222,7 @@ class UpdateSmartLiveRoomResponse(SdkResponse): def room_type(self): """Gets the room_type of this UpdateSmartLiveRoomResponse. - 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :return: The room_type of this UpdateSmartLiveRoomResponse. :rtype: str @@ -184,7 +233,7 @@ class UpdateSmartLiveRoomResponse(SdkResponse): def room_type(self, room_type): """Sets the room_type of this UpdateSmartLiveRoomResponse. - 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 + 直播间类型。 * NORMAL: 普通直播间,直播间一直存在,可以反复开播 * TEMP: 临时直播间,直播任务结束后自动清理直播间。 * TEMPLATE: 直播间模板。 :param room_type: The room_type of this UpdateSmartLiveRoomResponse. :type room_type: str @@ -275,7 +324,7 @@ class UpdateSmartLiveRoomResponse(SdkResponse): def output_urls(self): """Gets the output_urls of this UpdateSmartLiveRoomResponse. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :return: The output_urls of this UpdateSmartLiveRoomResponse. :rtype: list[str] @@ -286,13 +335,111 @@ class UpdateSmartLiveRoomResponse(SdkResponse): def output_urls(self, output_urls): """Sets the output_urls of this UpdateSmartLiveRoomResponse. - 视频推流第三方直播平台地址。 + RTMP视频推流第三方直播平台地址。 :param output_urls: The output_urls of this UpdateSmartLiveRoomResponse. :type output_urls: list[str] """ self._output_urls = output_urls + @property + def stream_keys(self): + """Gets the stream_keys of this UpdateSmartLiveRoomResponse. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :return: The stream_keys of this UpdateSmartLiveRoomResponse. + :rtype: list[str] + """ + return self._stream_keys + + @stream_keys.setter + def stream_keys(self, stream_keys): + """Sets the stream_keys of this UpdateSmartLiveRoomResponse. + + RTMP视频推流第三方直播平台流秘钥,与推流地址对应。 + + :param stream_keys: The stream_keys of this UpdateSmartLiveRoomResponse. + :type stream_keys: list[str] + """ + self._stream_keys = stream_keys + + @property + def backup_model_asset_ids(self): + """Gets the backup_model_asset_ids of this UpdateSmartLiveRoomResponse. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :return: The backup_model_asset_ids of this UpdateSmartLiveRoomResponse. + :rtype: list[str] + """ + return self._backup_model_asset_ids + + @backup_model_asset_ids.setter + def backup_model_asset_ids(self, backup_model_asset_ids): + """Sets the backup_model_asset_ids of this UpdateSmartLiveRoomResponse. + + 主播轮换时备选主播数字人资产ID(仅形象资产,不包含音色)。 + + :param backup_model_asset_ids: The backup_model_asset_ids of this UpdateSmartLiveRoomResponse. + :type backup_model_asset_ids: list[str] + """ + self._backup_model_asset_ids = backup_model_asset_ids + + @property + def live_event_callback_config(self): + """Gets the live_event_callback_config of this UpdateSmartLiveRoomResponse. + + :return: The live_event_callback_config of this UpdateSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + return self._live_event_callback_config + + @live_event_callback_config.setter + def live_event_callback_config(self, live_event_callback_config): + """Sets the live_event_callback_config of this UpdateSmartLiveRoomResponse. + + :param live_event_callback_config: The live_event_callback_config of this UpdateSmartLiveRoomResponse. + :type live_event_callback_config: :class:`huaweicloudsdkmetastudio.v1.LiveEventCallBackConfig` + """ + self._live_event_callback_config = live_event_callback_config + + @property + def review_config(self): + """Gets the review_config of this UpdateSmartLiveRoomResponse. + + :return: The review_config of this UpdateSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this UpdateSmartLiveRoomResponse. + + :param review_config: The review_config of this UpdateSmartLiveRoomResponse. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shared_config(self): + """Gets the shared_config of this UpdateSmartLiveRoomResponse. + + :return: The shared_config of this UpdateSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` + """ + return self._shared_config + + @shared_config.setter + def shared_config(self, shared_config): + """Sets the shared_config of this UpdateSmartLiveRoomResponse. + + :param shared_config: The shared_config of this UpdateSmartLiveRoomResponse. + :type shared_config: :class:`huaweicloudsdkmetastudio.v1.SharedConfig` + """ + self._shared_config = shared_config + @property def room_id(self): """Gets the room_id of this UpdateSmartLiveRoomResponse. @@ -381,6 +528,46 @@ class UpdateSmartLiveRoomResponse(SdkResponse): """ self._cover_url = cover_url + @property + def room_state(self): + """Gets the room_state of this UpdateSmartLiveRoomResponse. + + 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + + :return: The room_state of this UpdateSmartLiveRoomResponse. + :rtype: str + """ + return self._room_state + + @room_state.setter + def room_state(self, room_state): + """Sets the room_state of this UpdateSmartLiveRoomResponse. + + 直播间配置状态。 - ENABLE: 直播间正常可用。 - DISABLE: 直播间不可用。不可用原因在error_info中说明。 - BLOCKED:直播间被冻结。冻结原因在error_info中说明。 + + :param room_state: The room_state of this UpdateSmartLiveRoomResponse. + :type room_state: str + """ + self._room_state = room_state + + @property + def error_info(self): + """Gets the error_info of this UpdateSmartLiveRoomResponse. + + :return: The error_info of this UpdateSmartLiveRoomResponse. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + return self._error_info + + @error_info.setter + def error_info(self, error_info): + """Sets the error_info of this UpdateSmartLiveRoomResponse. + + :param error_info: The error_info of this UpdateSmartLiveRoomResponse. + :type error_info: :class:`huaweicloudsdkmetastudio.v1.ErrorResponse` + """ + self._error_info = error_info + @property def x_request_id(self): """Gets the x_request_id of this UpdateSmartLiveRoomResponse. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py index 9b856f1f2..9f97100e6 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_script_request.py @@ -33,7 +33,7 @@ class UpdateVideoScriptRequest: The model defined in huaweicloud sdk - :param x_app_user_id: 开发者应用作为资产权属的可选字段。 + :param x_app_user_id: 第三方用户ID。 > *不允许输入中文。 :type x_app_user_id: str :param script_id: 剧本ID。 :type script_id: str @@ -58,7 +58,7 @@ class UpdateVideoScriptRequest: def x_app_user_id(self): """Gets the x_app_user_id of this UpdateVideoScriptRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :return: The x_app_user_id of this UpdateVideoScriptRequest. :rtype: str @@ -69,7 +69,7 @@ class UpdateVideoScriptRequest: def x_app_user_id(self, x_app_user_id): """Sets the x_app_user_id of this UpdateVideoScriptRequest. - 开发者应用作为资产权属的可选字段。 + 第三方用户ID。 > *不允许输入中文。 :param x_app_user_id: The x_app_user_id of this UpdateVideoScriptRequest. :type x_app_user_id: str diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_scripts_req.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_scripts_req.py index 3624aa268..5e5605a4d 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_scripts_req.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/update_video_scripts_req.py @@ -19,110 +19,103 @@ class UpdateVideoScriptsReq: openapi_types = { 'script_name': 'str', 'script_description': 'str', - 'video_making_type': 'str', - 'human_image': 'str', 'model_asset_id': 'str', 'model_asset_type': 'str', - 'scene_asset_id': 'str', 'voice_config': 'VoiceConfig', 'video_config': 'VideoConfig', - 'shoot_scripts': 'list[ShootScriptItem]', + 'scene_asset_id': 'str', 'priv_data': 'str', - 'background_music_config': 'BackgroundMusicConfig' + 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig', + 'shoot_scripts': 'list[ShootScriptItem]' } attribute_map = { 'script_name': 'script_name', 'script_description': 'script_description', - 'video_making_type': 'video_making_type', - 'human_image': 'human_image', 'model_asset_id': 'model_asset_id', 'model_asset_type': 'model_asset_type', - 'scene_asset_id': 'scene_asset_id', 'voice_config': 'voice_config', 'video_config': 'video_config', - 'shoot_scripts': 'shoot_scripts', + 'scene_asset_id': 'scene_asset_id', 'priv_data': 'priv_data', - 'background_music_config': 'background_music_config' + 'background_music_config': 'background_music_config', + 'review_config': 'review_config', + 'shoot_scripts': 'shoot_scripts' } - def __init__(self, script_name=None, script_description=None, video_making_type=None, human_image=None, model_asset_id=None, model_asset_type=None, scene_asset_id=None, voice_config=None, video_config=None, shoot_scripts=None, priv_data=None, background_music_config=None): + def __init__(self, script_name=None, script_description=None, model_asset_id=None, model_asset_type=None, voice_config=None, video_config=None, scene_asset_id=None, priv_data=None, background_music_config=None, review_config=None, shoot_scripts=None): """UpdateVideoScriptsReq The model defined in huaweicloud sdk - :param script_name: 剧本名称。 + :param script_name: 剧本名称 :type script_name: str :param script_description: 剧本描述。 :type script_description: str - :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - :type video_making_type: str - :param human_image: 人物照片,需要Base64编码。 - :type human_image: str - :param model_asset_id: 数字人资产ID。 + :param model_asset_id: 数字人模型资产ID。 :type model_asset_id: str :param model_asset_type: 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 :type model_asset_type: str - :param scene_asset_id: 场景资产ID。 - :type scene_asset_id: str :param voice_config: :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` :param video_config: :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` - :param shoot_scripts: 剧本参数。 - :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + :param scene_asset_id: 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + :type scene_asset_id: str :param priv_data: 私有数据,用户填写,原样带回。 :type priv_data: str :param background_music_config: :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shoot_scripts: 拍摄脚本列表。 + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] """ self._script_name = None self._script_description = None - self._video_making_type = None - self._human_image = None self._model_asset_id = None self._model_asset_type = None - self._scene_asset_id = None self._voice_config = None self._video_config = None - self._shoot_scripts = None + self._scene_asset_id = None self._priv_data = None self._background_music_config = None + self._review_config = None + self._shoot_scripts = None self.discriminator = None if script_name is not None: self.script_name = script_name if script_description is not None: self.script_description = script_description - if video_making_type is not None: - self.video_making_type = video_making_type - if human_image is not None: - self.human_image = human_image if model_asset_id is not None: self.model_asset_id = model_asset_id if model_asset_type is not None: self.model_asset_type = model_asset_type - if scene_asset_id is not None: - self.scene_asset_id = scene_asset_id if voice_config is not None: self.voice_config = voice_config if video_config is not None: self.video_config = video_config - if shoot_scripts is not None: - self.shoot_scripts = shoot_scripts + if scene_asset_id is not None: + self.scene_asset_id = scene_asset_id if priv_data is not None: self.priv_data = priv_data if background_music_config is not None: self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config + if shoot_scripts is not None: + self.shoot_scripts = shoot_scripts @property def script_name(self): """Gets the script_name of this UpdateVideoScriptsReq. - 剧本名称。 + 剧本名称 :return: The script_name of this UpdateVideoScriptsReq. :rtype: str @@ -133,7 +126,7 @@ class UpdateVideoScriptsReq: def script_name(self, script_name): """Sets the script_name of this UpdateVideoScriptsReq. - 剧本名称。 + 剧本名称 :param script_name: The script_name of this UpdateVideoScriptsReq. :type script_name: str @@ -162,55 +155,11 @@ class UpdateVideoScriptsReq: """ self._script_description = script_description - @property - def video_making_type(self): - """Gets the video_making_type of this UpdateVideoScriptsReq. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :return: The video_making_type of this UpdateVideoScriptsReq. - :rtype: str - """ - return self._video_making_type - - @video_making_type.setter - def video_making_type(self, video_making_type): - """Sets the video_making_type of this UpdateVideoScriptsReq. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :param video_making_type: The video_making_type of this UpdateVideoScriptsReq. - :type video_making_type: str - """ - self._video_making_type = video_making_type - - @property - def human_image(self): - """Gets the human_image of this UpdateVideoScriptsReq. - - 人物照片,需要Base64编码。 - - :return: The human_image of this UpdateVideoScriptsReq. - :rtype: str - """ - return self._human_image - - @human_image.setter - def human_image(self, human_image): - """Sets the human_image of this UpdateVideoScriptsReq. - - 人物照片,需要Base64编码。 - - :param human_image: The human_image of this UpdateVideoScriptsReq. - :type human_image: str - """ - self._human_image = human_image - @property def model_asset_id(self): """Gets the model_asset_id of this UpdateVideoScriptsReq. - 数字人资产ID。 + 数字人模型资产ID。 :return: The model_asset_id of this UpdateVideoScriptsReq. :rtype: str @@ -221,7 +170,7 @@ class UpdateVideoScriptsReq: def model_asset_id(self, model_asset_id): """Sets the model_asset_id of this UpdateVideoScriptsReq. - 数字人资产ID。 + 数字人模型资产ID。 :param model_asset_id: The model_asset_id of this UpdateVideoScriptsReq. :type model_asset_id: str @@ -250,28 +199,6 @@ class UpdateVideoScriptsReq: """ self._model_asset_type = model_asset_type - @property - def scene_asset_id(self): - """Gets the scene_asset_id of this UpdateVideoScriptsReq. - - 场景资产ID。 - - :return: The scene_asset_id of this UpdateVideoScriptsReq. - :rtype: str - """ - return self._scene_asset_id - - @scene_asset_id.setter - def scene_asset_id(self, scene_asset_id): - """Sets the scene_asset_id of this UpdateVideoScriptsReq. - - 场景资产ID。 - - :param scene_asset_id: The scene_asset_id of this UpdateVideoScriptsReq. - :type scene_asset_id: str - """ - self._scene_asset_id = scene_asset_id - @property def voice_config(self): """Gets the voice_config of this UpdateVideoScriptsReq. @@ -309,26 +236,26 @@ class UpdateVideoScriptsReq: self._video_config = video_config @property - def shoot_scripts(self): - """Gets the shoot_scripts of this UpdateVideoScriptsReq. + def scene_asset_id(self): + """Gets the scene_asset_id of this UpdateVideoScriptsReq. - 剧本参数。 + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 - :return: The shoot_scripts of this UpdateVideoScriptsReq. - :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + :return: The scene_asset_id of this UpdateVideoScriptsReq. + :rtype: str """ - return self._shoot_scripts + return self._scene_asset_id - @shoot_scripts.setter - def shoot_scripts(self, shoot_scripts): - """Sets the shoot_scripts of this UpdateVideoScriptsReq. + @scene_asset_id.setter + def scene_asset_id(self, scene_asset_id): + """Sets the scene_asset_id of this UpdateVideoScriptsReq. - 剧本参数。 + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 - :param shoot_scripts: The shoot_scripts of this UpdateVideoScriptsReq. - :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + :param scene_asset_id: The scene_asset_id of this UpdateVideoScriptsReq. + :type scene_asset_id: str """ - self._shoot_scripts = shoot_scripts + self._scene_asset_id = scene_asset_id @property def priv_data(self): @@ -370,6 +297,46 @@ class UpdateVideoScriptsReq: """ self._background_music_config = background_music_config + @property + def review_config(self): + """Gets the review_config of this UpdateVideoScriptsReq. + + :return: The review_config of this UpdateVideoScriptsReq. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this UpdateVideoScriptsReq. + + :param review_config: The review_config of this UpdateVideoScriptsReq. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shoot_scripts(self): + """Gets the shoot_scripts of this UpdateVideoScriptsReq. + + 拍摄脚本列表。 + + :return: The shoot_scripts of this UpdateVideoScriptsReq. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + """ + return self._shoot_scripts + + @shoot_scripts.setter + def shoot_scripts(self, shoot_scripts): + """Sets the shoot_scripts of this UpdateVideoScriptsReq. + + 拍摄脚本列表。 + + :param shoot_scripts: The shoot_scripts of this UpdateVideoScriptsReq. + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + """ + self._shoot_scripts = shoot_scripts + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py index 544efa631..c0712f0c8 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_config.py @@ -24,6 +24,7 @@ class VideoConfig: 'height': 'int', 'frame_rate': 'str', 'is_subtitle_enable': 'bool', + 'subtitle_config': 'SubtitleConfig', 'dx': 'int', 'dy': 'int' } @@ -36,29 +37,32 @@ class VideoConfig: 'height': 'height', 'frame_rate': 'frame_rate', 'is_subtitle_enable': 'is_subtitle_enable', + 'subtitle_config': 'subtitle_config', 'dx': 'dx', 'dy': 'dy' } - def __init__(self, clip_mode=None, codec=None, bitrate=None, width=None, height=None, frame_rate=None, is_subtitle_enable=None, dx=None, dy=None): + def __init__(self, clip_mode=None, codec=None, bitrate=None, width=None, height=None, frame_rate=None, is_subtitle_enable=None, subtitle_config=None, dx=None, dy=None): """VideoConfig The model defined in huaweicloud sdk - :param clip_mode: 输出视频的剪辑方式。 * RESIZE:视频缩放。 * CROP:视频裁剪。 + :param clip_mode: 输出视频的剪辑方式。默认值RESIZE。 * RESIZE:视频缩放。 * CROP:视频裁剪。 :type clip_mode: str :param codec: 视频编码格式及视频文件格式。 * H264: h264编码,输出mp4文件 * VP8:vp8编码,输出webm文件 :type codec: str :param bitrate: 输出平均码率。 单位:kbps。 最小值40,最大值30000。 > * 分身数字人视频制作采用质量优先,可能会超过设置的码率。 > * 分身数字人直播码率范围[1000, 8000]。 :type bitrate: int - :param width: 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280四种分辨率。 > * clip_mode=CROP,视频保留中间width宽度,裁掉左右两边。 > * 分身数字人直播目前只支持1080x1920。 + :param width: 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 :type width: int - :param height: 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280四种分辨率。 > * clip_mode=CROP,视频保留底部height高度,裁掉顶部。 > * 分身数字人直播目前只支持1080x1920。 + :param height: 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 :type height: int - :param frame_rate: 帧率。 单位:FPS。 > * 分身数字人帧率目前只支持25。 + :param frame_rate: 帧率。 单位:FPS。 > * 分身数字人视频固定25FPS。 :type frame_rate: str - :param is_subtitle_enable: 输出的视频是否带字幕。 > true: 打开字幕 > false: 关闭字幕 + :param is_subtitle_enable: 输出的视频是否带字幕。默认false。 > true: 打开字幕 > false: 关闭字幕 :type is_subtitle_enable: bool + :param subtitle_config: + :type subtitle_config: :class:`huaweicloudsdkmetastudio.v1.SubtitleConfig` :param dx: 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 :type dx: int :param dy: 裁剪视频左上角像素点坐标。 clip_mode= CROP时生效。 > *横屏(16:9)视频像素为1920x1080;竖屏(9:16)视频像素为1080x1920。 @@ -74,6 +78,7 @@ class VideoConfig: self._height = None self._frame_rate = None self._is_subtitle_enable = None + self._subtitle_config = None self._dx = None self._dy = None self.discriminator = None @@ -88,6 +93,8 @@ class VideoConfig: self.frame_rate = frame_rate if is_subtitle_enable is not None: self.is_subtitle_enable = is_subtitle_enable + if subtitle_config is not None: + self.subtitle_config = subtitle_config if dx is not None: self.dx = dx if dy is not None: @@ -97,7 +104,7 @@ class VideoConfig: def clip_mode(self): """Gets the clip_mode of this VideoConfig. - 输出视频的剪辑方式。 * RESIZE:视频缩放。 * CROP:视频裁剪。 + 输出视频的剪辑方式。默认值RESIZE。 * RESIZE:视频缩放。 * CROP:视频裁剪。 :return: The clip_mode of this VideoConfig. :rtype: str @@ -108,7 +115,7 @@ class VideoConfig: def clip_mode(self, clip_mode): """Sets the clip_mode of this VideoConfig. - 输出视频的剪辑方式。 * RESIZE:视频缩放。 * CROP:视频裁剪。 + 输出视频的剪辑方式。默认值RESIZE。 * RESIZE:视频缩放。 * CROP:视频裁剪。 :param clip_mode: The clip_mode of this VideoConfig. :type clip_mode: str @@ -163,7 +170,7 @@ class VideoConfig: def width(self): """Gets the width of this VideoConfig. - 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280四种分辨率。 > * clip_mode=CROP,视频保留中间width宽度,裁掉左右两边。 > * 分身数字人直播目前只支持1080x1920。 + 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 :return: The width of this VideoConfig. :rtype: int @@ -174,7 +181,7 @@ class VideoConfig: def width(self, width): """Sets the width of this VideoConfig. - 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280四种分辨率。 > * clip_mode=CROP,视频保留中间width宽度,裁掉左右两边。 > * 分身数字人直播目前只支持1080x1920。 + 视频宽度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率。4K分辨率视频需要分身数字人模型支持4K的情况下才能使用。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像宽度为width。 > * 分身数字人直播目前只支持1080x1920。 :param width: The width of this VideoConfig. :type width: int @@ -185,7 +192,7 @@ class VideoConfig: def height(self): """Gets the height of this VideoConfig. - 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280四种分辨率。 > * clip_mode=CROP,视频保留底部height高度,裁掉顶部。 > * 分身数字人直播目前只支持1080x1920。 + 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 :return: The height of this VideoConfig. :rtype: int @@ -196,7 +203,7 @@ class VideoConfig: def height(self, height): """Sets the height of this VideoConfig. - 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280四种分辨率。 > * clip_mode=CROP,视频保留底部height高度,裁掉顶部。 > * 分身数字人直播目前只支持1080x1920。 + 视频高度。 单位:像素。 最小值320,最大值2560。 > * clip_mode=RESIZE时,当前支持1920x1080、1080x1920、1280x720、720x1280、3840x2160、2160x3840六种分辨率分辨率。 > * clip_mode=CROP,裁剪后视频,(dx,dy)为原点,保留视频像高度为height。 > * 分身数字人直播目前只支持1080x1920。 :param height: The height of this VideoConfig. :type height: int @@ -207,7 +214,7 @@ class VideoConfig: def frame_rate(self): """Gets the frame_rate of this VideoConfig. - 帧率。 单位:FPS。 > * 分身数字人帧率目前只支持25。 + 帧率。 单位:FPS。 > * 分身数字人视频固定25FPS。 :return: The frame_rate of this VideoConfig. :rtype: str @@ -218,7 +225,7 @@ class VideoConfig: def frame_rate(self, frame_rate): """Sets the frame_rate of this VideoConfig. - 帧率。 单位:FPS。 > * 分身数字人帧率目前只支持25。 + 帧率。 单位:FPS。 > * 分身数字人视频固定25FPS。 :param frame_rate: The frame_rate of this VideoConfig. :type frame_rate: str @@ -229,7 +236,7 @@ class VideoConfig: def is_subtitle_enable(self): """Gets the is_subtitle_enable of this VideoConfig. - 输出的视频是否带字幕。 > true: 打开字幕 > false: 关闭字幕 + 输出的视频是否带字幕。默认false。 > true: 打开字幕 > false: 关闭字幕 :return: The is_subtitle_enable of this VideoConfig. :rtype: bool @@ -240,13 +247,31 @@ class VideoConfig: def is_subtitle_enable(self, is_subtitle_enable): """Sets the is_subtitle_enable of this VideoConfig. - 输出的视频是否带字幕。 > true: 打开字幕 > false: 关闭字幕 + 输出的视频是否带字幕。默认false。 > true: 打开字幕 > false: 关闭字幕 :param is_subtitle_enable: The is_subtitle_enable of this VideoConfig. :type is_subtitle_enable: bool """ self._is_subtitle_enable = is_subtitle_enable + @property + def subtitle_config(self): + """Gets the subtitle_config of this VideoConfig. + + :return: The subtitle_config of this VideoConfig. + :rtype: :class:`huaweicloudsdkmetastudio.v1.SubtitleConfig` + """ + return self._subtitle_config + + @subtitle_config.setter + def subtitle_config(self, subtitle_config): + """Sets the subtitle_config of this VideoConfig. + + :param subtitle_config: The subtitle_config of this VideoConfig. + :type subtitle_config: :class:`huaweicloudsdkmetastudio.v1.SubtitleConfig` + """ + self._subtitle_config = subtitle_config + @property def dx(self): """Gets the dx of this VideoConfig. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_script_base_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_script_base_info.py index 53124fdfd..112116d29 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_script_base_info.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_script_base_info.py @@ -20,10 +20,11 @@ class VideoScriptBaseInfo: 'script_id': 'str', 'script_name': 'str', 'script_description': 'str', - 'video_making_type': 'str', - 'human_image': 'str', 'model_asset_id': 'str', 'model_asset_type': 'str', + 'script_cover_url': 'str', + 'script_type': 'str', + 'text': 'str', 'create_time': 'str', 'update_time': 'str' } @@ -32,15 +33,16 @@ class VideoScriptBaseInfo: 'script_id': 'script_id', 'script_name': 'script_name', 'script_description': 'script_description', - 'video_making_type': 'video_making_type', - 'human_image': 'human_image', 'model_asset_id': 'model_asset_id', 'model_asset_type': 'model_asset_type', + 'script_cover_url': 'script_cover_url', + 'script_type': 'script_type', + 'text': 'text', 'create_time': 'create_time', 'update_time': 'update_time' } - def __init__(self, script_id=None, script_name=None, script_description=None, video_making_type=None, human_image=None, model_asset_id=None, model_asset_type=None, create_time=None, update_time=None): + def __init__(self, script_id=None, script_name=None, script_description=None, model_asset_id=None, model_asset_type=None, script_cover_url=None, script_type=None, text=None, create_time=None, update_time=None): """VideoScriptBaseInfo The model defined in huaweicloud sdk @@ -51,14 +53,16 @@ class VideoScriptBaseInfo: :type script_name: str :param script_description: 剧本描述。 :type script_description: str - :param video_making_type: 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - :type video_making_type: str - :param human_image: 人物照片,需要Base64编码。 - :type human_image: str :param model_asset_id: 数字人模型资产ID。 :type model_asset_id: str :param model_asset_type: 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 :type model_asset_type: str + :param script_cover_url: 剧本封面下载url。 + :type script_cover_url: str + :param script_type: 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + :type script_type: str + :param text: 台词脚本。 + :type text: str :param create_time: 创建时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 :type create_time: str :param update_time: 更新时间,格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\"。 @@ -70,10 +74,11 @@ class VideoScriptBaseInfo: self._script_id = None self._script_name = None self._script_description = None - self._video_making_type = None - self._human_image = None self._model_asset_id = None self._model_asset_type = None + self._script_cover_url = None + self._script_type = None + self._text = None self._create_time = None self._update_time = None self.discriminator = None @@ -82,14 +87,16 @@ class VideoScriptBaseInfo: self.script_name = script_name if script_description is not None: self.script_description = script_description - if video_making_type is not None: - self.video_making_type = video_making_type - if human_image is not None: - self.human_image = human_image if model_asset_id is not None: self.model_asset_id = model_asset_id if model_asset_type is not None: self.model_asset_type = model_asset_type + if script_cover_url is not None: + self.script_cover_url = script_cover_url + if script_type is not None: + self.script_type = script_type + if text is not None: + self.text = text if create_time is not None: self.create_time = create_time if update_time is not None: @@ -161,50 +168,6 @@ class VideoScriptBaseInfo: """ self._script_description = script_description - @property - def video_making_type(self): - """Gets the video_making_type of this VideoScriptBaseInfo. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :return: The video_making_type of this VideoScriptBaseInfo. - :rtype: str - """ - return self._video_making_type - - @video_making_type.setter - def video_making_type(self, video_making_type): - """Sets the video_making_type of this VideoScriptBaseInfo. - - 视频生成类型。该参数取值是MODEL时,model_asset_id必填;取值是PICTURE时,human_image必填。 * MODEL:通过分数数字人模型生成视频 * PICTURE: 通过单张照片生成视频 - - :param video_making_type: The video_making_type of this VideoScriptBaseInfo. - :type video_making_type: str - """ - self._video_making_type = video_making_type - - @property - def human_image(self): - """Gets the human_image of this VideoScriptBaseInfo. - - 人物照片,需要Base64编码。 - - :return: The human_image of this VideoScriptBaseInfo. - :rtype: str - """ - return self._human_image - - @human_image.setter - def human_image(self, human_image): - """Sets the human_image of this VideoScriptBaseInfo. - - 人物照片,需要Base64编码。 - - :param human_image: The human_image of this VideoScriptBaseInfo. - :type human_image: str - """ - self._human_image = human_image - @property def model_asset_id(self): """Gets the model_asset_id of this VideoScriptBaseInfo. @@ -249,6 +212,72 @@ class VideoScriptBaseInfo: """ self._model_asset_type = model_asset_type + @property + def script_cover_url(self): + """Gets the script_cover_url of this VideoScriptBaseInfo. + + 剧本封面下载url。 + + :return: The script_cover_url of this VideoScriptBaseInfo. + :rtype: str + """ + return self._script_cover_url + + @script_cover_url.setter + def script_cover_url(self, script_cover_url): + """Sets the script_cover_url of this VideoScriptBaseInfo. + + 剧本封面下载url。 + + :param script_cover_url: The script_cover_url of this VideoScriptBaseInfo. + :type script_cover_url: str + """ + self._script_cover_url = script_cover_url + + @property + def script_type(self): + """Gets the script_type of this VideoScriptBaseInfo. + + 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + + :return: The script_type of this VideoScriptBaseInfo. + :rtype: str + """ + return self._script_type + + @script_type.setter + def script_type(self, script_type): + """Sets the script_type of this VideoScriptBaseInfo. + + 脚本类型,即视频制作的驱动方式。默认TEXT * TEXT: 文本驱动,即通过TTS合成语音 * AUDIO: 语音驱动 + + :param script_type: The script_type of this VideoScriptBaseInfo. + :type script_type: str + """ + self._script_type = script_type + + @property + def text(self): + """Gets the text of this VideoScriptBaseInfo. + + 台词脚本。 + + :return: The text of this VideoScriptBaseInfo. + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this VideoScriptBaseInfo. + + 台词脚本。 + + :param text: The text of this VideoScriptBaseInfo. + :type text: str + """ + self._text = text + @property def create_time(self): """Gets the create_time of this VideoScriptBaseInfo. diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_scripts_create_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_scripts_create_info.py new file mode 100644 index 000000000..6bc173e13 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_scripts_create_info.py @@ -0,0 +1,389 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VideoScriptsCreateInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_name': 'str', + 'script_description': 'str', + 'model_asset_id': 'str', + 'model_asset_type': 'str', + 'voice_config': 'VoiceConfig', + 'video_config': 'VideoConfig', + 'scene_asset_id': 'str', + 'priv_data': 'str', + 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig', + 'shoot_scripts': 'list[ShootScriptItem]' + } + + attribute_map = { + 'script_name': 'script_name', + 'script_description': 'script_description', + 'model_asset_id': 'model_asset_id', + 'model_asset_type': 'model_asset_type', + 'voice_config': 'voice_config', + 'video_config': 'video_config', + 'scene_asset_id': 'scene_asset_id', + 'priv_data': 'priv_data', + 'background_music_config': 'background_music_config', + 'review_config': 'review_config', + 'shoot_scripts': 'shoot_scripts' + } + + def __init__(self, script_name=None, script_description=None, model_asset_id=None, model_asset_type=None, voice_config=None, video_config=None, scene_asset_id=None, priv_data=None, background_music_config=None, review_config=None, shoot_scripts=None): + """VideoScriptsCreateInfo + + The model defined in huaweicloud sdk + + :param script_name: 剧本名称 + :type script_name: str + :param script_description: 剧本描述。 + :type script_description: str + :param model_asset_id: 数字人模型资产ID。 + :type model_asset_id: str + :param model_asset_type: 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + :type model_asset_type: str + :param voice_config: + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + :param scene_asset_id: 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + :type scene_asset_id: str + :param priv_data: 私有数据,用户填写,原样带回。 + :type priv_data: str + :param background_music_config: + :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shoot_scripts: 拍摄脚本列表。 + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + """ + + + + self._script_name = None + self._script_description = None + self._model_asset_id = None + self._model_asset_type = None + self._voice_config = None + self._video_config = None + self._scene_asset_id = None + self._priv_data = None + self._background_music_config = None + self._review_config = None + self._shoot_scripts = None + self.discriminator = None + + if script_name is not None: + self.script_name = script_name + if script_description is not None: + self.script_description = script_description + if model_asset_id is not None: + self.model_asset_id = model_asset_id + if model_asset_type is not None: + self.model_asset_type = model_asset_type + if voice_config is not None: + self.voice_config = voice_config + if video_config is not None: + self.video_config = video_config + if scene_asset_id is not None: + self.scene_asset_id = scene_asset_id + if priv_data is not None: + self.priv_data = priv_data + if background_music_config is not None: + self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config + if shoot_scripts is not None: + self.shoot_scripts = shoot_scripts + + @property + def script_name(self): + """Gets the script_name of this VideoScriptsCreateInfo. + + 剧本名称 + + :return: The script_name of this VideoScriptsCreateInfo. + :rtype: str + """ + return self._script_name + + @script_name.setter + def script_name(self, script_name): + """Sets the script_name of this VideoScriptsCreateInfo. + + 剧本名称 + + :param script_name: The script_name of this VideoScriptsCreateInfo. + :type script_name: str + """ + self._script_name = script_name + + @property + def script_description(self): + """Gets the script_description of this VideoScriptsCreateInfo. + + 剧本描述。 + + :return: The script_description of this VideoScriptsCreateInfo. + :rtype: str + """ + return self._script_description + + @script_description.setter + def script_description(self, script_description): + """Sets the script_description of this VideoScriptsCreateInfo. + + 剧本描述。 + + :param script_description: The script_description of this VideoScriptsCreateInfo. + :type script_description: str + """ + self._script_description = script_description + + @property + def model_asset_id(self): + """Gets the model_asset_id of this VideoScriptsCreateInfo. + + 数字人模型资产ID。 + + :return: The model_asset_id of this VideoScriptsCreateInfo. + :rtype: str + """ + return self._model_asset_id + + @model_asset_id.setter + def model_asset_id(self, model_asset_id): + """Sets the model_asset_id of this VideoScriptsCreateInfo. + + 数字人模型资产ID。 + + :param model_asset_id: The model_asset_id of this VideoScriptsCreateInfo. + :type model_asset_id: str + """ + self._model_asset_id = model_asset_id + + @property + def model_asset_type(self): + """Gets the model_asset_type of this VideoScriptsCreateInfo. + + 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + + :return: The model_asset_type of this VideoScriptsCreateInfo. + :rtype: str + """ + return self._model_asset_type + + @model_asset_type.setter + def model_asset_type(self, model_asset_type): + """Sets the model_asset_type of this VideoScriptsCreateInfo. + + 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + + :param model_asset_type: The model_asset_type of this VideoScriptsCreateInfo. + :type model_asset_type: str + """ + self._model_asset_type = model_asset_type + + @property + def voice_config(self): + """Gets the voice_config of this VideoScriptsCreateInfo. + + :return: The voice_config of this VideoScriptsCreateInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + return self._voice_config + + @voice_config.setter + def voice_config(self, voice_config): + """Sets the voice_config of this VideoScriptsCreateInfo. + + :param voice_config: The voice_config of this VideoScriptsCreateInfo. + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + self._voice_config = voice_config + + @property + def video_config(self): + """Gets the video_config of this VideoScriptsCreateInfo. + + :return: The video_config of this VideoScriptsCreateInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this VideoScriptsCreateInfo. + + :param video_config: The video_config of this VideoScriptsCreateInfo. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + self._video_config = video_config + + @property + def scene_asset_id(self): + """Gets the scene_asset_id of this VideoScriptsCreateInfo. + + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + + :return: The scene_asset_id of this VideoScriptsCreateInfo. + :rtype: str + """ + return self._scene_asset_id + + @scene_asset_id.setter + def scene_asset_id(self, scene_asset_id): + """Sets the scene_asset_id of this VideoScriptsCreateInfo. + + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + + :param scene_asset_id: The scene_asset_id of this VideoScriptsCreateInfo. + :type scene_asset_id: str + """ + self._scene_asset_id = scene_asset_id + + @property + def priv_data(self): + """Gets the priv_data of this VideoScriptsCreateInfo. + + 私有数据,用户填写,原样带回。 + + :return: The priv_data of this VideoScriptsCreateInfo. + :rtype: str + """ + return self._priv_data + + @priv_data.setter + def priv_data(self, priv_data): + """Sets the priv_data of this VideoScriptsCreateInfo. + + 私有数据,用户填写,原样带回。 + + :param priv_data: The priv_data of this VideoScriptsCreateInfo. + :type priv_data: str + """ + self._priv_data = priv_data + + @property + def background_music_config(self): + """Gets the background_music_config of this VideoScriptsCreateInfo. + + :return: The background_music_config of this VideoScriptsCreateInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + """ + return self._background_music_config + + @background_music_config.setter + def background_music_config(self, background_music_config): + """Sets the background_music_config of this VideoScriptsCreateInfo. + + :param background_music_config: The background_music_config of this VideoScriptsCreateInfo. + :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + """ + self._background_music_config = background_music_config + + @property + def review_config(self): + """Gets the review_config of this VideoScriptsCreateInfo. + + :return: The review_config of this VideoScriptsCreateInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this VideoScriptsCreateInfo. + + :param review_config: The review_config of this VideoScriptsCreateInfo. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shoot_scripts(self): + """Gets the shoot_scripts of this VideoScriptsCreateInfo. + + 拍摄脚本列表。 + + :return: The shoot_scripts of this VideoScriptsCreateInfo. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + """ + return self._shoot_scripts + + @shoot_scripts.setter + def shoot_scripts(self, shoot_scripts): + """Sets the shoot_scripts of this VideoScriptsCreateInfo. + + 拍摄脚本列表。 + + :param shoot_scripts: The shoot_scripts of this VideoScriptsCreateInfo. + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptItem`] + """ + self._shoot_scripts = shoot_scripts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VideoScriptsCreateInfo): + return False + + return self.__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/video_scripts_show_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_scripts_show_info.py new file mode 100644 index 000000000..b3409d2c1 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_scripts_show_info.py @@ -0,0 +1,389 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VideoScriptsShowInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_name': 'str', + 'script_description': 'str', + 'model_asset_id': 'str', + 'model_asset_type': 'str', + 'voice_config': 'VoiceConfig', + 'video_config': 'VideoConfig', + 'scene_asset_id': 'str', + 'priv_data': 'str', + 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig', + 'shoot_scripts': 'list[ShootScriptShowItem]' + } + + attribute_map = { + 'script_name': 'script_name', + 'script_description': 'script_description', + 'model_asset_id': 'model_asset_id', + 'model_asset_type': 'model_asset_type', + 'voice_config': 'voice_config', + 'video_config': 'video_config', + 'scene_asset_id': 'scene_asset_id', + 'priv_data': 'priv_data', + 'background_music_config': 'background_music_config', + 'review_config': 'review_config', + 'shoot_scripts': 'shoot_scripts' + } + + def __init__(self, script_name=None, script_description=None, model_asset_id=None, model_asset_type=None, voice_config=None, video_config=None, scene_asset_id=None, priv_data=None, background_music_config=None, review_config=None, shoot_scripts=None): + """VideoScriptsShowInfo + + The model defined in huaweicloud sdk + + :param script_name: 剧本名称 + :type script_name: str + :param script_description: 剧本描述。 + :type script_description: str + :param model_asset_id: 数字人模型资产ID。 + :type model_asset_id: str + :param model_asset_type: 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + :type model_asset_type: str + :param voice_config: + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + :param scene_asset_id: 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + :type scene_asset_id: str + :param priv_data: 私有数据,用户填写,原样带回。 + :type priv_data: str + :param background_music_config: + :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + :param shoot_scripts: 拍摄脚本列表。 + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptShowItem`] + """ + + + + self._script_name = None + self._script_description = None + self._model_asset_id = None + self._model_asset_type = None + self._voice_config = None + self._video_config = None + self._scene_asset_id = None + self._priv_data = None + self._background_music_config = None + self._review_config = None + self._shoot_scripts = None + self.discriminator = None + + if script_name is not None: + self.script_name = script_name + if script_description is not None: + self.script_description = script_description + if model_asset_id is not None: + self.model_asset_id = model_asset_id + if model_asset_type is not None: + self.model_asset_type = model_asset_type + if voice_config is not None: + self.voice_config = voice_config + if video_config is not None: + self.video_config = video_config + if scene_asset_id is not None: + self.scene_asset_id = scene_asset_id + if priv_data is not None: + self.priv_data = priv_data + if background_music_config is not None: + self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config + if shoot_scripts is not None: + self.shoot_scripts = shoot_scripts + + @property + def script_name(self): + """Gets the script_name of this VideoScriptsShowInfo. + + 剧本名称 + + :return: The script_name of this VideoScriptsShowInfo. + :rtype: str + """ + return self._script_name + + @script_name.setter + def script_name(self, script_name): + """Sets the script_name of this VideoScriptsShowInfo. + + 剧本名称 + + :param script_name: The script_name of this VideoScriptsShowInfo. + :type script_name: str + """ + self._script_name = script_name + + @property + def script_description(self): + """Gets the script_description of this VideoScriptsShowInfo. + + 剧本描述。 + + :return: The script_description of this VideoScriptsShowInfo. + :rtype: str + """ + return self._script_description + + @script_description.setter + def script_description(self, script_description): + """Sets the script_description of this VideoScriptsShowInfo. + + 剧本描述。 + + :param script_description: The script_description of this VideoScriptsShowInfo. + :type script_description: str + """ + self._script_description = script_description + + @property + def model_asset_id(self): + """Gets the model_asset_id of this VideoScriptsShowInfo. + + 数字人模型资产ID。 + + :return: The model_asset_id of this VideoScriptsShowInfo. + :rtype: str + """ + return self._model_asset_id + + @model_asset_id.setter + def model_asset_id(self, model_asset_id): + """Sets the model_asset_id of this VideoScriptsShowInfo. + + 数字人模型资产ID。 + + :param model_asset_id: The model_asset_id of this VideoScriptsShowInfo. + :type model_asset_id: str + """ + self._model_asset_id = model_asset_id + + @property + def model_asset_type(self): + """Gets the model_asset_type of this VideoScriptsShowInfo. + + 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + + :return: The model_asset_type of this VideoScriptsShowInfo. + :rtype: str + """ + return self._model_asset_type + + @model_asset_type.setter + def model_asset_type(self, model_asset_type): + """Sets the model_asset_type of this VideoScriptsShowInfo. + + 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + + :param model_asset_type: The model_asset_type of this VideoScriptsShowInfo. + :type model_asset_type: str + """ + self._model_asset_type = model_asset_type + + @property + def voice_config(self): + """Gets the voice_config of this VideoScriptsShowInfo. + + :return: The voice_config of this VideoScriptsShowInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + return self._voice_config + + @voice_config.setter + def voice_config(self, voice_config): + """Sets the voice_config of this VideoScriptsShowInfo. + + :param voice_config: The voice_config of this VideoScriptsShowInfo. + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + self._voice_config = voice_config + + @property + def video_config(self): + """Gets the video_config of this VideoScriptsShowInfo. + + :return: The video_config of this VideoScriptsShowInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this VideoScriptsShowInfo. + + :param video_config: The video_config of this VideoScriptsShowInfo. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + self._video_config = video_config + + @property + def scene_asset_id(self): + """Gets the scene_asset_id of this VideoScriptsShowInfo. + + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + + :return: The scene_asset_id of this VideoScriptsShowInfo. + :rtype: str + """ + return self._scene_asset_id + + @scene_asset_id.setter + def scene_asset_id(self, scene_asset_id): + """Sets the scene_asset_id of this VideoScriptsShowInfo. + + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + + :param scene_asset_id: The scene_asset_id of this VideoScriptsShowInfo. + :type scene_asset_id: str + """ + self._scene_asset_id = scene_asset_id + + @property + def priv_data(self): + """Gets the priv_data of this VideoScriptsShowInfo. + + 私有数据,用户填写,原样带回。 + + :return: The priv_data of this VideoScriptsShowInfo. + :rtype: str + """ + return self._priv_data + + @priv_data.setter + def priv_data(self, priv_data): + """Sets the priv_data of this VideoScriptsShowInfo. + + 私有数据,用户填写,原样带回。 + + :param priv_data: The priv_data of this VideoScriptsShowInfo. + :type priv_data: str + """ + self._priv_data = priv_data + + @property + def background_music_config(self): + """Gets the background_music_config of this VideoScriptsShowInfo. + + :return: The background_music_config of this VideoScriptsShowInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + """ + return self._background_music_config + + @background_music_config.setter + def background_music_config(self, background_music_config): + """Sets the background_music_config of this VideoScriptsShowInfo. + + :param background_music_config: The background_music_config of this VideoScriptsShowInfo. + :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + """ + self._background_music_config = background_music_config + + @property + def review_config(self): + """Gets the review_config of this VideoScriptsShowInfo. + + :return: The review_config of this VideoScriptsShowInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this VideoScriptsShowInfo. + + :param review_config: The review_config of this VideoScriptsShowInfo. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + @property + def shoot_scripts(self): + """Gets the shoot_scripts of this VideoScriptsShowInfo. + + 拍摄脚本列表。 + + :return: The shoot_scripts of this VideoScriptsShowInfo. + :rtype: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptShowItem`] + """ + return self._shoot_scripts + + @shoot_scripts.setter + def shoot_scripts(self, shoot_scripts): + """Sets the shoot_scripts of this VideoScriptsShowInfo. + + 拍摄脚本列表。 + + :param shoot_scripts: The shoot_scripts of this VideoScriptsShowInfo. + :type shoot_scripts: list[:class:`huaweicloudsdkmetastudio.v1.ShootScriptShowItem`] + """ + self._shoot_scripts = shoot_scripts + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VideoScriptsShowInfo): + return False + + return self.__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/video_scripts_simple_info.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_scripts_simple_info.py new file mode 100644 index 000000000..795620b66 --- /dev/null +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/video_scripts_simple_info.py @@ -0,0 +1,360 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class VideoScriptsSimpleInfo: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'script_name': 'str', + 'script_description': 'str', + 'model_asset_id': 'str', + 'model_asset_type': 'str', + 'voice_config': 'VoiceConfig', + 'video_config': 'VideoConfig', + 'scene_asset_id': 'str', + 'priv_data': 'str', + 'background_music_config': 'BackgroundMusicConfig', + 'review_config': 'ReviewConfig' + } + + attribute_map = { + 'script_name': 'script_name', + 'script_description': 'script_description', + 'model_asset_id': 'model_asset_id', + 'model_asset_type': 'model_asset_type', + 'voice_config': 'voice_config', + 'video_config': 'video_config', + 'scene_asset_id': 'scene_asset_id', + 'priv_data': 'priv_data', + 'background_music_config': 'background_music_config', + 'review_config': 'review_config' + } + + def __init__(self, script_name=None, script_description=None, model_asset_id=None, model_asset_type=None, voice_config=None, video_config=None, scene_asset_id=None, priv_data=None, background_music_config=None, review_config=None): + """VideoScriptsSimpleInfo + + The model defined in huaweicloud sdk + + :param script_name: 剧本名称 + :type script_name: str + :param script_description: 剧本描述。 + :type script_description: str + :param model_asset_id: 数字人模型资产ID。 + :type model_asset_id: str + :param model_asset_type: 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + :type model_asset_type: str + :param voice_config: + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + :param video_config: + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + :param scene_asset_id: 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + :type scene_asset_id: str + :param priv_data: 私有数据,用户填写,原样带回。 + :type priv_data: str + :param background_music_config: + :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + :param review_config: + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + + + + self._script_name = None + self._script_description = None + self._model_asset_id = None + self._model_asset_type = None + self._voice_config = None + self._video_config = None + self._scene_asset_id = None + self._priv_data = None + self._background_music_config = None + self._review_config = None + self.discriminator = None + + if script_name is not None: + self.script_name = script_name + if script_description is not None: + self.script_description = script_description + if model_asset_id is not None: + self.model_asset_id = model_asset_id + if model_asset_type is not None: + self.model_asset_type = model_asset_type + if voice_config is not None: + self.voice_config = voice_config + if video_config is not None: + self.video_config = video_config + if scene_asset_id is not None: + self.scene_asset_id = scene_asset_id + if priv_data is not None: + self.priv_data = priv_data + if background_music_config is not None: + self.background_music_config = background_music_config + if review_config is not None: + self.review_config = review_config + + @property + def script_name(self): + """Gets the script_name of this VideoScriptsSimpleInfo. + + 剧本名称 + + :return: The script_name of this VideoScriptsSimpleInfo. + :rtype: str + """ + return self._script_name + + @script_name.setter + def script_name(self, script_name): + """Sets the script_name of this VideoScriptsSimpleInfo. + + 剧本名称 + + :param script_name: The script_name of this VideoScriptsSimpleInfo. + :type script_name: str + """ + self._script_name = script_name + + @property + def script_description(self): + """Gets the script_description of this VideoScriptsSimpleInfo. + + 剧本描述。 + + :return: The script_description of this VideoScriptsSimpleInfo. + :rtype: str + """ + return self._script_description + + @script_description.setter + def script_description(self, script_description): + """Sets the script_description of this VideoScriptsSimpleInfo. + + 剧本描述。 + + :param script_description: The script_description of this VideoScriptsSimpleInfo. + :type script_description: str + """ + self._script_description = script_description + + @property + def model_asset_id(self): + """Gets the model_asset_id of this VideoScriptsSimpleInfo. + + 数字人模型资产ID。 + + :return: The model_asset_id of this VideoScriptsSimpleInfo. + :rtype: str + """ + return self._model_asset_id + + @model_asset_id.setter + def model_asset_id(self, model_asset_id): + """Sets the model_asset_id of this VideoScriptsSimpleInfo. + + 数字人模型资产ID。 + + :param model_asset_id: The model_asset_id of this VideoScriptsSimpleInfo. + :type model_asset_id: str + """ + self._model_asset_id = model_asset_id + + @property + def model_asset_type(self): + """Gets the model_asset_type of this VideoScriptsSimpleInfo. + + 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + + :return: The model_asset_type of this VideoScriptsSimpleInfo. + :rtype: str + """ + return self._model_asset_type + + @model_asset_type.setter + def model_asset_type(self, model_asset_type): + """Sets the model_asset_type of this VideoScriptsSimpleInfo. + + 数字人模型类型。 * HUMAN_MODEL_2D:分身数字人 * HUMAN_MODEL_3D:3D数字人 + + :param model_asset_type: The model_asset_type of this VideoScriptsSimpleInfo. + :type model_asset_type: str + """ + self._model_asset_type = model_asset_type + + @property + def voice_config(self): + """Gets the voice_config of this VideoScriptsSimpleInfo. + + :return: The voice_config of this VideoScriptsSimpleInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + return self._voice_config + + @voice_config.setter + def voice_config(self, voice_config): + """Sets the voice_config of this VideoScriptsSimpleInfo. + + :param voice_config: The voice_config of this VideoScriptsSimpleInfo. + :type voice_config: :class:`huaweicloudsdkmetastudio.v1.VoiceConfig` + """ + self._voice_config = voice_config + + @property + def video_config(self): + """Gets the video_config of this VideoScriptsSimpleInfo. + + :return: The video_config of this VideoScriptsSimpleInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + return self._video_config + + @video_config.setter + def video_config(self, video_config): + """Sets the video_config of this VideoScriptsSimpleInfo. + + :param video_config: The video_config of this VideoScriptsSimpleInfo. + :type video_config: :class:`huaweicloudsdkmetastudio.v1.VideoConfig` + """ + self._video_config = video_config + + @property + def scene_asset_id(self): + """Gets the scene_asset_id of this VideoScriptsSimpleInfo. + + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + + :return: The scene_asset_id of this VideoScriptsSimpleInfo. + :rtype: str + """ + return self._scene_asset_id + + @scene_asset_id.setter + def scene_asset_id(self, scene_asset_id): + """Sets the scene_asset_id of this VideoScriptsSimpleInfo. + + 场景资产ID。 > * 分身数字人视频制作不需要填写该参数。 + + :param scene_asset_id: The scene_asset_id of this VideoScriptsSimpleInfo. + :type scene_asset_id: str + """ + self._scene_asset_id = scene_asset_id + + @property + def priv_data(self): + """Gets the priv_data of this VideoScriptsSimpleInfo. + + 私有数据,用户填写,原样带回。 + + :return: The priv_data of this VideoScriptsSimpleInfo. + :rtype: str + """ + return self._priv_data + + @priv_data.setter + def priv_data(self, priv_data): + """Sets the priv_data of this VideoScriptsSimpleInfo. + + 私有数据,用户填写,原样带回。 + + :param priv_data: The priv_data of this VideoScriptsSimpleInfo. + :type priv_data: str + """ + self._priv_data = priv_data + + @property + def background_music_config(self): + """Gets the background_music_config of this VideoScriptsSimpleInfo. + + :return: The background_music_config of this VideoScriptsSimpleInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + """ + return self._background_music_config + + @background_music_config.setter + def background_music_config(self, background_music_config): + """Sets the background_music_config of this VideoScriptsSimpleInfo. + + :param background_music_config: The background_music_config of this VideoScriptsSimpleInfo. + :type background_music_config: :class:`huaweicloudsdkmetastudio.v1.BackgroundMusicConfig` + """ + self._background_music_config = background_music_config + + @property + def review_config(self): + """Gets the review_config of this VideoScriptsSimpleInfo. + + :return: The review_config of this VideoScriptsSimpleInfo. + :rtype: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + return self._review_config + + @review_config.setter + def review_config(self, review_config): + """Sets the review_config of this VideoScriptsSimpleInfo. + + :param review_config: The review_config of this VideoScriptsSimpleInfo. + :type review_config: :class:`huaweicloudsdkmetastudio.v1.ReviewConfig` + """ + self._review_config = review_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VideoScriptsSimpleInfo): + return False + + return self.__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/voice_model_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_model_asset_meta.py index da4efa56e..4db96f588 100644 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_model_asset_meta.py +++ b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/voice_model_asset_meta.py @@ -20,17 +20,19 @@ class VoiceModelAssetMeta: 'model_type': 'str', 'sex': 'str', 'language': 'str', - 'external_voice_meta': 'ExternalVoiceAssetMeta' + 'speed_ratio': 'float', + 'volume_ratio': 'float' } attribute_map = { 'model_type': 'model_type', 'sex': 'sex', 'language': 'language', - 'external_voice_meta': 'external_voice_meta' + 'speed_ratio': 'speed_ratio', + 'volume_ratio': 'volume_ratio' } - def __init__(self, model_type=None, sex=None, language=None, external_voice_meta=None): + def __init__(self, model_type=None, sex=None, language=None, speed_ratio=None, volume_ratio=None): """VoiceModelAssetMeta The model defined in huaweicloud sdk @@ -39,10 +41,12 @@ class VoiceModelAssetMeta: :type model_type: str :param sex: 音色性别。 * UNKNOW:中性音色 * MALE:男性音色 * FEMALE:女性音色 默认UNKNOW。 :type sex: str - :param language: 音色语言。 * UNKNOW:未知 * CN:中文 * EN:英文 默认UNKNOW。 + :param language: 音色语言。 * UNKNOW:未知 * CN:中文 * EN:英文 * GER:德语 * fr:法语 * Kr:韩语 * por:葡萄牙语 * JPN:日语 * Ita:意大利语 * ESP:西班牙语 * DBH:东北话 * GT:港台 * GXH:广西话 * HBH:湖北话 * SXH:陕西话 * SCH:四川话 * YY:粤语 * Russian: 俄罗斯语 * Filipino: 菲律宾语 * Dutch: 荷兰语 * Indonesian: 印尼语 * Vietnamese: 越南语 * Arabic: 阿拉伯语 * Turkish: 土耳其语 * Malay: 马来语 * Thai: 泰语 * Finnish: 芬兰语 默认UNKNOW。 :type language: str - :param external_voice_meta: - :type external_voice_meta: :class:`huaweicloudsdkmetastudio.v1.ExternalVoiceAssetMeta` + :param speed_ratio: 语速缩放比例 + :type speed_ratio: float + :param volume_ratio: 音量缩放比例 + :type volume_ratio: float """ @@ -50,7 +54,8 @@ class VoiceModelAssetMeta: self._model_type = None self._sex = None self._language = None - self._external_voice_meta = None + self._speed_ratio = None + self._volume_ratio = None self.discriminator = None if model_type is not None: @@ -59,8 +64,10 @@ class VoiceModelAssetMeta: self.sex = sex if language is not None: self.language = language - if external_voice_meta is not None: - self.external_voice_meta = external_voice_meta + if speed_ratio is not None: + self.speed_ratio = speed_ratio + if volume_ratio is not None: + self.volume_ratio = volume_ratio @property def model_type(self): @@ -110,7 +117,7 @@ class VoiceModelAssetMeta: def language(self): """Gets the language of this VoiceModelAssetMeta. - 音色语言。 * UNKNOW:未知 * CN:中文 * EN:英文 默认UNKNOW。 + 音色语言。 * UNKNOW:未知 * CN:中文 * EN:英文 * GER:德语 * fr:法语 * Kr:韩语 * por:葡萄牙语 * JPN:日语 * Ita:意大利语 * ESP:西班牙语 * DBH:东北话 * GT:港台 * GXH:广西话 * HBH:湖北话 * SXH:陕西话 * SCH:四川话 * YY:粤语 * Russian: 俄罗斯语 * Filipino: 菲律宾语 * Dutch: 荷兰语 * Indonesian: 印尼语 * Vietnamese: 越南语 * Arabic: 阿拉伯语 * Turkish: 土耳其语 * Malay: 马来语 * Thai: 泰语 * Finnish: 芬兰语 默认UNKNOW。 :return: The language of this VoiceModelAssetMeta. :rtype: str @@ -121,7 +128,7 @@ class VoiceModelAssetMeta: def language(self, language): """Sets the language of this VoiceModelAssetMeta. - 音色语言。 * UNKNOW:未知 * CN:中文 * EN:英文 默认UNKNOW。 + 音色语言。 * UNKNOW:未知 * CN:中文 * EN:英文 * GER:德语 * fr:法语 * Kr:韩语 * por:葡萄牙语 * JPN:日语 * Ita:意大利语 * ESP:西班牙语 * DBH:东北话 * GT:港台 * GXH:广西话 * HBH:湖北话 * SXH:陕西话 * SCH:四川话 * YY:粤语 * Russian: 俄罗斯语 * Filipino: 菲律宾语 * Dutch: 荷兰语 * Indonesian: 印尼语 * Vietnamese: 越南语 * Arabic: 阿拉伯语 * Turkish: 土耳其语 * Malay: 马来语 * Thai: 泰语 * Finnish: 芬兰语 默认UNKNOW。 :param language: The language of this VoiceModelAssetMeta. :type language: str @@ -129,22 +136,48 @@ class VoiceModelAssetMeta: self._language = language @property - def external_voice_meta(self): - """Gets the external_voice_meta of this VoiceModelAssetMeta. + def speed_ratio(self): + """Gets the speed_ratio of this VoiceModelAssetMeta. - :return: The external_voice_meta of this VoiceModelAssetMeta. - :rtype: :class:`huaweicloudsdkmetastudio.v1.ExternalVoiceAssetMeta` + 语速缩放比例 + + :return: The speed_ratio of this VoiceModelAssetMeta. + :rtype: float """ - return self._external_voice_meta + return self._speed_ratio - @external_voice_meta.setter - def external_voice_meta(self, external_voice_meta): - """Sets the external_voice_meta of this VoiceModelAssetMeta. + @speed_ratio.setter + def speed_ratio(self, speed_ratio): + """Sets the speed_ratio of this VoiceModelAssetMeta. - :param external_voice_meta: The external_voice_meta of this VoiceModelAssetMeta. - :type external_voice_meta: :class:`huaweicloudsdkmetastudio.v1.ExternalVoiceAssetMeta` + 语速缩放比例 + + :param speed_ratio: The speed_ratio of this VoiceModelAssetMeta. + :type speed_ratio: float """ - self._external_voice_meta = external_voice_meta + self._speed_ratio = speed_ratio + + @property + def volume_ratio(self): + """Gets the volume_ratio of this VoiceModelAssetMeta. + + 音量缩放比例 + + :return: The volume_ratio of this VoiceModelAssetMeta. + :rtype: float + """ + return self._volume_ratio + + @volume_ratio.setter + def volume_ratio(self, volume_ratio): + """Sets the volume_ratio of this VoiceModelAssetMeta. + + 音量缩放比例 + + :param volume_ratio: The volume_ratio of this VoiceModelAssetMeta. + :type volume_ratio: float + """ + self._volume_ratio = volume_ratio def to_dict(self): """Returns the model properties as a dict""" diff --git a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ximalaya_voice_asset_meta.py b/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ximalaya_voice_asset_meta.py deleted file mode 100644 index b419e888b..000000000 --- a/huaweicloud-sdk-metastudio/huaweicloudsdkmetastudio/v1/model/ximalaya_voice_asset_meta.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -import six - -from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization - - -class XimalayaVoiceAssetMeta: - - """ - Attributes: - openapi_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - sensitive_list = [] - - openapi_types = { - 'domain': 'str', - 'speaker_name': 'str', - 'speaker_variant': 'str' - } - - attribute_map = { - 'domain': 'domain', - 'speaker_name': 'speaker_name', - 'speaker_variant': 'speaker_variant' - } - - def __init__(self, domain=None, speaker_name=None, speaker_variant=None): - """XimalayaVoiceAssetMeta - - The model defined in huaweicloud sdk - - :param domain: 音色适用领域。 - :type domain: str - :param speaker_name: 音色名称。 - :type speaker_name: str - :param speaker_variant: 音色变声。 - :type speaker_variant: str - """ - - - - self._domain = None - self._speaker_name = None - self._speaker_variant = None - self.discriminator = None - - self.domain = domain - self.speaker_name = speaker_name - self.speaker_variant = speaker_variant - - @property - def domain(self): - """Gets the domain of this XimalayaVoiceAssetMeta. - - 音色适用领域。 - - :return: The domain of this XimalayaVoiceAssetMeta. - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this XimalayaVoiceAssetMeta. - - 音色适用领域。 - - :param domain: The domain of this XimalayaVoiceAssetMeta. - :type domain: str - """ - self._domain = domain - - @property - def speaker_name(self): - """Gets the speaker_name of this XimalayaVoiceAssetMeta. - - 音色名称。 - - :return: The speaker_name of this XimalayaVoiceAssetMeta. - :rtype: str - """ - return self._speaker_name - - @speaker_name.setter - def speaker_name(self, speaker_name): - """Sets the speaker_name of this XimalayaVoiceAssetMeta. - - 音色名称。 - - :param speaker_name: The speaker_name of this XimalayaVoiceAssetMeta. - :type speaker_name: str - """ - self._speaker_name = speaker_name - - @property - def speaker_variant(self): - """Gets the speaker_variant of this XimalayaVoiceAssetMeta. - - 音色变声。 - - :return: The speaker_variant of this XimalayaVoiceAssetMeta. - :rtype: str - """ - return self._speaker_variant - - @speaker_variant.setter - def speaker_variant(self, speaker_variant): - """Sets the speaker_variant of this XimalayaVoiceAssetMeta. - - 音色变声。 - - :param speaker_variant: The speaker_variant of this XimalayaVoiceAssetMeta. - :type speaker_variant: str - """ - self._speaker_variant = speaker_variant - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.openapi_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - if attr in self.sensitive_list: - result[attr] = "****" - else: - result[attr] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - import simplejson as json - if six.PY2: - import sys - reload(sys) - sys.setdefaultencoding("utf-8") - return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) - - def __repr__(self): - """For `print`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, XimalayaVoiceAssetMeta): - return False - - return self.__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/requirements.txt b/huaweicloud-sdk-metastudio/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-metastudio/requirements.txt +++ b/huaweicloud-sdk-metastudio/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-metastudio/setup.py b/huaweicloud-sdk-metastudio/setup.py index b7fd534f8..4b989b8f6 100644 --- a/huaweicloud-sdk-metastudio/setup.py +++ b/huaweicloud-sdk-metastudio/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmetastudio" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-moderation/requirements.txt b/huaweicloud-sdk-moderation/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-moderation/requirements.txt +++ b/huaweicloud-sdk-moderation/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-moderation/setup.py b/huaweicloud-sdk-moderation/setup.py index 5386fdc3e..93d82b4cd 100644 --- a/huaweicloud-sdk-moderation/setup.py +++ b/huaweicloud-sdk-moderation/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmoderation" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mpc/requirements.txt b/huaweicloud-sdk-mpc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-mpc/requirements.txt +++ b/huaweicloud-sdk-mpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-mpc/setup.py b/huaweicloud-sdk-mpc/setup.py index 9987951e5..057a0f20b 100644 --- a/huaweicloud-sdk-mpc/setup.py +++ b/huaweicloud-sdk-mpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmpc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mrs/requirements.txt b/huaweicloud-sdk-mrs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-mrs/requirements.txt +++ b/huaweicloud-sdk-mrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-mrs/setup.py b/huaweicloud-sdk-mrs/setup.py index dff10a152..674b5562b 100644 --- a/huaweicloud-sdk-mrs/setup.py +++ b/huaweicloud-sdk-mrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmrs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-msgsms/requirements.txt b/huaweicloud-sdk-msgsms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-msgsms/requirements.txt +++ b/huaweicloud-sdk-msgsms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-msgsms/setup.py b/huaweicloud-sdk-msgsms/setup.py index d46a7f96b..46ae071e4 100644 --- a/huaweicloud-sdk-msgsms/setup.py +++ b/huaweicloud-sdk-msgsms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmsgsms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-mssi/requirements.txt b/huaweicloud-sdk-mssi/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-mssi/requirements.txt +++ b/huaweicloud-sdk-mssi/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-mssi/setup.py b/huaweicloud-sdk-mssi/setup.py index 7e39e44a1..cf4f4538b 100644 --- a/huaweicloud-sdk-mssi/setup.py +++ b/huaweicloud-sdk-mssi/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkmssi" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nat/requirements.txt b/huaweicloud-sdk-nat/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-nat/requirements.txt +++ b/huaweicloud-sdk-nat/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-nat/setup.py b/huaweicloud-sdk-nat/setup.py index 9ae427a4a..287a1e7a6 100644 --- a/huaweicloud-sdk-nat/setup.py +++ b/huaweicloud-sdk-nat/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknat" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-nlp/requirements.txt b/huaweicloud-sdk-nlp/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-nlp/requirements.txt +++ b/huaweicloud-sdk-nlp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-nlp/setup.py b/huaweicloud-sdk-nlp/setup.py index 07b4c26bf..38c0b488c 100644 --- a/huaweicloud-sdk-nlp/setup.py +++ b/huaweicloud-sdk-nlp/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdknlp" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-obs/LICENSE b/huaweicloud-sdk-obs/LICENSE new file mode 100644 index 000000000..808e3296c --- /dev/null +++ b/huaweicloud-sdk-obs/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/huaweicloud-sdk-obs/README_PYPI.md b/huaweicloud-sdk-obs/README_PYPI.md new file mode 100644 index 000000000..9711543c7 --- /dev/null +++ b/huaweicloud-sdk-obs/README_PYPI.md @@ -0,0 +1 @@ +See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3). \ No newline at end of file diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/__init__.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/__init__.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/__init__.py new file mode 100644 index 000000000..fb01e66aa --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/__init__.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +from __future__ import absolute_import + +from huaweicloudsdkobs.v1.obs_client import ObsClient +from huaweicloudsdkobs.v1.obs_async_client import ObsAsyncClient + +from huaweicloudsdkobs.v1.model.access_control_list import AccessControlList +from huaweicloudsdkobs.v1.model.bucket import Bucket +from huaweicloudsdkobs.v1.model.buckets import Buckets +from huaweicloudsdkobs.v1.model.contents import Contents +from huaweicloudsdkobs.v1.model.copy_object_request import CopyObjectRequest +from huaweicloudsdkobs.v1.model.copy_object_response import CopyObjectResponse +from huaweicloudsdkobs.v1.model.create_bucket_request import CreateBucketRequest +from huaweicloudsdkobs.v1.model.create_bucket_request_body import CreateBucketRequestBody +from huaweicloudsdkobs.v1.model.create_bucket_response import CreateBucketResponse +from huaweicloudsdkobs.v1.model.delete_bucket_customdomain_request import DeleteBucketCustomdomainRequest +from huaweicloudsdkobs.v1.model.delete_bucket_customdomain_response import DeleteBucketCustomdomainResponse +from huaweicloudsdkobs.v1.model.delete_bucket_request import DeleteBucketRequest +from huaweicloudsdkobs.v1.model.delete_bucket_response import DeleteBucketResponse +from huaweicloudsdkobs.v1.model.delete_object import DeleteObject +from huaweicloudsdkobs.v1.model.delete_object_request import DeleteObjectRequest +from huaweicloudsdkobs.v1.model.delete_object_response import DeleteObjectResponse +from huaweicloudsdkobs.v1.model.delete_objects_request import DeleteObjectsRequest +from huaweicloudsdkobs.v1.model.delete_objects_request_body import DeleteObjectsRequestBody +from huaweicloudsdkobs.v1.model.delete_objects_response import DeleteObjectsResponse +from huaweicloudsdkobs.v1.model.delete_result_deleted import DeleteResultDeleted +from huaweicloudsdkobs.v1.model.delete_result_error import DeleteResultError +from huaweicloudsdkobs.v1.model.domains import Domains +from huaweicloudsdkobs.v1.model.filter_object import FilterObject +from huaweicloudsdkobs.v1.model.filter_rule import FilterRule +from huaweicloudsdkobs.v1.model.function_stage_configuration import FunctionStageConfiguration +from huaweicloudsdkobs.v1.model.get_bucket_acl_request import GetBucketAclRequest +from huaweicloudsdkobs.v1.model.get_bucket_acl_response import GetBucketAclResponse +from huaweicloudsdkobs.v1.model.get_bucket_customdomain_request import GetBucketCustomdomainRequest +from huaweicloudsdkobs.v1.model.get_bucket_customdomain_response import GetBucketCustomdomainResponse +from huaweicloudsdkobs.v1.model.get_bucket_metadata_request import GetBucketMetadataRequest +from huaweicloudsdkobs.v1.model.get_bucket_metadata_response import GetBucketMetadataResponse +from huaweicloudsdkobs.v1.model.get_bucket_notification_request import GetBucketNotificationRequest +from huaweicloudsdkobs.v1.model.get_bucket_notification_response import GetBucketNotificationResponse +from huaweicloudsdkobs.v1.model.get_object_metadata_request import GetObjectMetadataRequest +from huaweicloudsdkobs.v1.model.get_object_metadata_response import GetObjectMetadataResponse +from huaweicloudsdkobs.v1.model.get_object_request import GetObjectRequest +from huaweicloudsdkobs.v1.model.get_object_response import GetObjectResponse +from huaweicloudsdkobs.v1.model.grant import Grant +from huaweicloudsdkobs.v1.model.grantee import Grantee +from huaweicloudsdkobs.v1.model.list_buckets_request import ListBucketsRequest +from huaweicloudsdkobs.v1.model.list_buckets_response import ListBucketsResponse +from huaweicloudsdkobs.v1.model.list_objects_request import ListObjectsRequest +from huaweicloudsdkobs.v1.model.list_objects_response import ListObjectsResponse +from huaweicloudsdkobs.v1.model.owner import Owner +from huaweicloudsdkobs.v1.model.put_object_request import PutObjectRequest +from huaweicloudsdkobs.v1.model.put_object_response import PutObjectResponse +from huaweicloudsdkobs.v1.model.set_bucket_acl_request import SetBucketAclRequest +from huaweicloudsdkobs.v1.model.set_bucket_acl_request_body import SetBucketAclRequestBody +from huaweicloudsdkobs.v1.model.set_bucket_acl_response import SetBucketAclResponse +from huaweicloudsdkobs.v1.model.set_bucket_custom_domain_body import SetBucketCustomDomainBody +from huaweicloudsdkobs.v1.model.set_bucket_customedomain_request import SetBucketCustomedomainRequest +from huaweicloudsdkobs.v1.model.set_bucket_customedomain_response import SetBucketCustomedomainResponse +from huaweicloudsdkobs.v1.model.set_bucket_notification_request import SetBucketNotificationRequest +from huaweicloudsdkobs.v1.model.set_bucket_notification_request_body import SetBucketNotificationRequestBody +from huaweicloudsdkobs.v1.model.set_bucket_notification_response import SetBucketNotificationResponse +from huaweicloudsdkobs.v1.model.topic_configuration import TopicConfiguration +from huaweicloudsdkobs.v1.model.topic_configuration_filter import TopicConfigurationFilter + diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/__init__.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/__init__.py new file mode 100644 index 000000000..2c2d0deb3 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/__init__.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +from __future__ import absolute_import + +# import models into model package +from huaweicloudsdkobs.v1.model.access_control_list import AccessControlList +from huaweicloudsdkobs.v1.model.bucket import Bucket +from huaweicloudsdkobs.v1.model.buckets import Buckets +from huaweicloudsdkobs.v1.model.contents import Contents +from huaweicloudsdkobs.v1.model.copy_object_request import CopyObjectRequest +from huaweicloudsdkobs.v1.model.copy_object_response import CopyObjectResponse +from huaweicloudsdkobs.v1.model.create_bucket_request import CreateBucketRequest +from huaweicloudsdkobs.v1.model.create_bucket_request_body import CreateBucketRequestBody +from huaweicloudsdkobs.v1.model.create_bucket_response import CreateBucketResponse +from huaweicloudsdkobs.v1.model.delete_bucket_customdomain_request import DeleteBucketCustomdomainRequest +from huaweicloudsdkobs.v1.model.delete_bucket_customdomain_response import DeleteBucketCustomdomainResponse +from huaweicloudsdkobs.v1.model.delete_bucket_request import DeleteBucketRequest +from huaweicloudsdkobs.v1.model.delete_bucket_response import DeleteBucketResponse +from huaweicloudsdkobs.v1.model.delete_object import DeleteObject +from huaweicloudsdkobs.v1.model.delete_object_request import DeleteObjectRequest +from huaweicloudsdkobs.v1.model.delete_object_response import DeleteObjectResponse +from huaweicloudsdkobs.v1.model.delete_objects_request import DeleteObjectsRequest +from huaweicloudsdkobs.v1.model.delete_objects_request_body import DeleteObjectsRequestBody +from huaweicloudsdkobs.v1.model.delete_objects_response import DeleteObjectsResponse +from huaweicloudsdkobs.v1.model.delete_result_deleted import DeleteResultDeleted +from huaweicloudsdkobs.v1.model.delete_result_error import DeleteResultError +from huaweicloudsdkobs.v1.model.domains import Domains +from huaweicloudsdkobs.v1.model.filter_object import FilterObject +from huaweicloudsdkobs.v1.model.filter_rule import FilterRule +from huaweicloudsdkobs.v1.model.function_stage_configuration import FunctionStageConfiguration +from huaweicloudsdkobs.v1.model.get_bucket_acl_request import GetBucketAclRequest +from huaweicloudsdkobs.v1.model.get_bucket_acl_response import GetBucketAclResponse +from huaweicloudsdkobs.v1.model.get_bucket_customdomain_request import GetBucketCustomdomainRequest +from huaweicloudsdkobs.v1.model.get_bucket_customdomain_response import GetBucketCustomdomainResponse +from huaweicloudsdkobs.v1.model.get_bucket_metadata_request import GetBucketMetadataRequest +from huaweicloudsdkobs.v1.model.get_bucket_metadata_response import GetBucketMetadataResponse +from huaweicloudsdkobs.v1.model.get_bucket_notification_request import GetBucketNotificationRequest +from huaweicloudsdkobs.v1.model.get_bucket_notification_response import GetBucketNotificationResponse +from huaweicloudsdkobs.v1.model.get_object_metadata_request import GetObjectMetadataRequest +from huaweicloudsdkobs.v1.model.get_object_metadata_response import GetObjectMetadataResponse +from huaweicloudsdkobs.v1.model.get_object_request import GetObjectRequest +from huaweicloudsdkobs.v1.model.get_object_response import GetObjectResponse +from huaweicloudsdkobs.v1.model.grant import Grant +from huaweicloudsdkobs.v1.model.grantee import Grantee +from huaweicloudsdkobs.v1.model.list_buckets_request import ListBucketsRequest +from huaweicloudsdkobs.v1.model.list_buckets_response import ListBucketsResponse +from huaweicloudsdkobs.v1.model.list_objects_request import ListObjectsRequest +from huaweicloudsdkobs.v1.model.list_objects_response import ListObjectsResponse +from huaweicloudsdkobs.v1.model.owner import Owner +from huaweicloudsdkobs.v1.model.put_object_request import PutObjectRequest +from huaweicloudsdkobs.v1.model.put_object_response import PutObjectResponse +from huaweicloudsdkobs.v1.model.set_bucket_acl_request import SetBucketAclRequest +from huaweicloudsdkobs.v1.model.set_bucket_acl_request_body import SetBucketAclRequestBody +from huaweicloudsdkobs.v1.model.set_bucket_acl_response import SetBucketAclResponse +from huaweicloudsdkobs.v1.model.set_bucket_custom_domain_body import SetBucketCustomDomainBody +from huaweicloudsdkobs.v1.model.set_bucket_customedomain_request import SetBucketCustomedomainRequest +from huaweicloudsdkobs.v1.model.set_bucket_customedomain_response import SetBucketCustomedomainResponse +from huaweicloudsdkobs.v1.model.set_bucket_notification_request import SetBucketNotificationRequest +from huaweicloudsdkobs.v1.model.set_bucket_notification_request_body import SetBucketNotificationRequestBody +from huaweicloudsdkobs.v1.model.set_bucket_notification_response import SetBucketNotificationResponse +from huaweicloudsdkobs.v1.model.topic_configuration import TopicConfiguration +from huaweicloudsdkobs.v1.model.topic_configuration_filter import TopicConfigurationFilter diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/access_control_list.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/access_control_list.py new file mode 100644 index 000000000..1ef6cf46b --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/access_control_list.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class AccessControlList: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "AccessControlList" + + sensitive_list = [] + + openapi_types = { + 'grant': 'list[Grant]' + } + + attribute_map = { + 'grant': 'Grant' + } + + def __init__(self, grant=None): + """AccessControlList + + The model defined in huaweicloud sdk + + :param grant: + :type grant: list[:class:`huaweicloudsdkobs.v1.Grant`] + """ + + + + self._grant = None + self.discriminator = None + + if grant is not None: + self.grant = grant + + @property + def grant(self): + """Gets the grant of this AccessControlList. + + :return: The grant of this AccessControlList. + :rtype: list[:class:`huaweicloudsdkobs.v1.Grant`] + """ + return self._grant + + @grant.setter + def grant(self, grant): + """Sets the grant of this AccessControlList. + + :param grant: The grant of this AccessControlList. + :type grant: list[:class:`huaweicloudsdkobs.v1.Grant`] + """ + self._grant = grant + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AccessControlList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/bucket.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/bucket.py new file mode 100644 index 000000000..f3678d485 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/bucket.py @@ -0,0 +1,233 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Bucket: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Bucket" + + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'creation_date': 'str', + 'location': 'str', + 'cluster_type': 'str', + 'ies_location': 'str' + } + + attribute_map = { + 'name': 'Name', + 'creation_date': 'CreationDate', + 'location': 'Location', + 'cluster_type': 'ClusterType', + 'ies_location': 'IESLocation' + } + + def __init__(self, name=None, creation_date=None, location=None, cluster_type=None, ies_location=None): + """Bucket + + The model defined in huaweicloud sdk + + :param name: 桶名称。 + :type name: str + :param creation_date: 桶的创建时间。 + :type creation_date: str + :param location: 桶的位置信息。 + :type location: str + :param cluster_type: 桶所在的集群类型,当桶创建在专属集群上时,会返回此字段。其他场景不返回。 + :type cluster_type: str + :param ies_location: 如果桶创建在IES站点集群中,返回IES站点ID。如果桶创建在IES站点集群中,返回IES站点ID。其他场景下不返回此头域。 + :type ies_location: str + """ + + + + self._name = None + self._creation_date = None + self._location = None + self._cluster_type = None + self._ies_location = None + self.discriminator = None + + if name is not None: + self.name = name + if creation_date is not None: + self.creation_date = creation_date + if location is not None: + self.location = location + if cluster_type is not None: + self.cluster_type = cluster_type + if ies_location is not None: + self.ies_location = ies_location + + @property + def name(self): + """Gets the name of this Bucket. + + 桶名称。 + + :return: The name of this Bucket. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Bucket. + + 桶名称。 + + :param name: The name of this Bucket. + :type name: str + """ + self._name = name + + @property + def creation_date(self): + """Gets the creation_date of this Bucket. + + 桶的创建时间。 + + :return: The creation_date of this Bucket. + :rtype: str + """ + return self._creation_date + + @creation_date.setter + def creation_date(self, creation_date): + """Sets the creation_date of this Bucket. + + 桶的创建时间。 + + :param creation_date: The creation_date of this Bucket. + :type creation_date: str + """ + self._creation_date = creation_date + + @property + def location(self): + """Gets the location of this Bucket. + + 桶的位置信息。 + + :return: The location of this Bucket. + :rtype: str + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this Bucket. + + 桶的位置信息。 + + :param location: The location of this Bucket. + :type location: str + """ + self._location = location + + @property + def cluster_type(self): + """Gets the cluster_type of this Bucket. + + 桶所在的集群类型,当桶创建在专属集群上时,会返回此字段。其他场景不返回。 + + :return: The cluster_type of this Bucket. + :rtype: str + """ + return self._cluster_type + + @cluster_type.setter + def cluster_type(self, cluster_type): + """Sets the cluster_type of this Bucket. + + 桶所在的集群类型,当桶创建在专属集群上时,会返回此字段。其他场景不返回。 + + :param cluster_type: The cluster_type of this Bucket. + :type cluster_type: str + """ + self._cluster_type = cluster_type + + @property + def ies_location(self): + """Gets the ies_location of this Bucket. + + 如果桶创建在IES站点集群中,返回IES站点ID。如果桶创建在IES站点集群中,返回IES站点ID。其他场景下不返回此头域。 + + :return: The ies_location of this Bucket. + :rtype: str + """ + return self._ies_location + + @ies_location.setter + def ies_location(self, ies_location): + """Sets the ies_location of this Bucket. + + 如果桶创建在IES站点集群中,返回IES站点ID。如果桶创建在IES站点集群中,返回IES站点ID。其他场景下不返回此头域。 + + :param ies_location: The ies_location of this Bucket. + :type ies_location: str + """ + self._ies_location = ies_location + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Bucket): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/buckets.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/buckets.py new file mode 100644 index 000000000..ebed77499 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/buckets.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Buckets: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Buckets" + + sensitive_list = [] + + openapi_types = { + 'bucket': 'list[Bucket]' + } + + attribute_map = { + 'bucket': 'Bucket' + } + + def __init__(self, bucket=None): + """Buckets + + The model defined in huaweicloud sdk + + :param bucket: 用户所拥有的桶列表。 + :type bucket: list[:class:`huaweicloudsdkobs.v1.Bucket`] + """ + + + + self._bucket = None + self.discriminator = None + + if bucket is not None: + self.bucket = bucket + + @property + def bucket(self): + """Gets the bucket of this Buckets. + + 用户所拥有的桶列表。 + + :return: The bucket of this Buckets. + :rtype: list[:class:`huaweicloudsdkobs.v1.Bucket`] + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this Buckets. + + 用户所拥有的桶列表。 + + :param bucket: The bucket of this Buckets. + :type bucket: list[:class:`huaweicloudsdkobs.v1.Bucket`] + """ + 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, Buckets): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/contents.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/contents.py new file mode 100644 index 000000000..4b8542918 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/contents.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Contents: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Contents" + + sensitive_list = [] + + openapi_types = { + 'owner': 'Owner', + 'e_tag': 'str', + 'type': 'str', + 'key': 'str', + 'last_modified': 'str', + 'size': 'str', + 'storage_class': 'str' + } + + attribute_map = { + 'owner': 'Owner', + 'e_tag': 'ETag', + 'type': 'Type', + 'key': 'Key', + 'last_modified': 'LastModified', + 'size': 'Size', + 'storage_class': 'StorageClass' + } + + def __init__(self, owner=None, e_tag=None, type=None, key=None, last_modified=None, size=None, storage_class=None): + """Contents + + The model defined in huaweicloud sdk + + :param owner: + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + :param e_tag: 对象的base64编码的128位MD5摘要。ETag是对象内容的唯一标识,可以通过该值识别对象内容是否有变化。比如上传对象时ETag为A,下载对象时ETag为B,则说明对象内容发生了变化。实际的ETag是对象的哈希值。ETag只反映变化的内容,而不是其元数据。上传的对象或拷贝操作创建的对象,通过MD5加密后都有唯一的ETag。(当对象是服务端加密的对象时,ETag值不是对象的MD5值,而是通过服务端加密计算出的唯一标识。) + :type e_tag: str + :param type: 对象类型,非Normal对象时返回。 + :type type: str + :param key: 对象名。 + :type key: str + :param last_modified: 对象最近一次被修改的时间(UTC时间)。 + :type last_modified: str + :param size: 对象的字节数。 + :type size: str + :param storage_class: 对象的存储类型。 + :type storage_class: str + """ + + + + self._owner = None + self._e_tag = None + self._type = None + self._key = None + self._last_modified = None + self._size = None + self._storage_class = None + self.discriminator = None + + if owner is not None: + self.owner = owner + if e_tag is not None: + self.e_tag = e_tag + if type is not None: + self.type = type + if key is not None: + self.key = key + if last_modified is not None: + self.last_modified = last_modified + if size is not None: + self.size = size + if storage_class is not None: + self.storage_class = storage_class + + @property + def owner(self): + """Gets the owner of this Contents. + + :return: The owner of this Contents. + :rtype: :class:`huaweicloudsdkobs.v1.Owner` + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this Contents. + + :param owner: The owner of this Contents. + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + """ + self._owner = owner + + @property + def e_tag(self): + """Gets the e_tag of this Contents. + + 对象的base64编码的128位MD5摘要。ETag是对象内容的唯一标识,可以通过该值识别对象内容是否有变化。比如上传对象时ETag为A,下载对象时ETag为B,则说明对象内容发生了变化。实际的ETag是对象的哈希值。ETag只反映变化的内容,而不是其元数据。上传的对象或拷贝操作创建的对象,通过MD5加密后都有唯一的ETag。(当对象是服务端加密的对象时,ETag值不是对象的MD5值,而是通过服务端加密计算出的唯一标识。) + + :return: The e_tag of this Contents. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this Contents. + + 对象的base64编码的128位MD5摘要。ETag是对象内容的唯一标识,可以通过该值识别对象内容是否有变化。比如上传对象时ETag为A,下载对象时ETag为B,则说明对象内容发生了变化。实际的ETag是对象的哈希值。ETag只反映变化的内容,而不是其元数据。上传的对象或拷贝操作创建的对象,通过MD5加密后都有唯一的ETag。(当对象是服务端加密的对象时,ETag值不是对象的MD5值,而是通过服务端加密计算出的唯一标识。) + + :param e_tag: The e_tag of this Contents. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def type(self): + """Gets the type of this Contents. + + 对象类型,非Normal对象时返回。 + + :return: The type of this Contents. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Contents. + + 对象类型,非Normal对象时返回。 + + :param type: The type of this Contents. + :type type: str + """ + self._type = type + + @property + def key(self): + """Gets the key of this Contents. + + 对象名。 + + :return: The key of this Contents. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this Contents. + + 对象名。 + + :param key: The key of this Contents. + :type key: str + """ + self._key = key + + @property + def last_modified(self): + """Gets the last_modified of this Contents. + + 对象最近一次被修改的时间(UTC时间)。 + + :return: The last_modified of this Contents. + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """Sets the last_modified of this Contents. + + 对象最近一次被修改的时间(UTC时间)。 + + :param last_modified: The last_modified of this Contents. + :type last_modified: str + """ + self._last_modified = last_modified + + @property + def size(self): + """Gets the size of this Contents. + + 对象的字节数。 + + :return: The size of this Contents. + :rtype: str + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this Contents. + + 对象的字节数。 + + :param size: The size of this Contents. + :type size: str + """ + self._size = size + + @property + def storage_class(self): + """Gets the storage_class of this Contents. + + 对象的存储类型。 + + :return: The storage_class of this Contents. + :rtype: str + """ + return self._storage_class + + @storage_class.setter + def storage_class(self, storage_class): + """Sets the storage_class of this Contents. + + 对象的存储类型。 + + :param storage_class: The storage_class of this Contents. + :type storage_class: str + """ + self._storage_class = storage_class + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Contents): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/copy_object_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/copy_object_request.py new file mode 100644 index 000000000..0adef8cc7 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/copy_object_request.py @@ -0,0 +1,839 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CopyObjectRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "CopyObjectRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'object_key': 'str', + 'x_obs_acl': 'str', + 'x_obs_grant_read': 'str', + 'x_obs_grant_read_acp': 'str', + 'x_obs_grant_write_acp': 'str', + 'x_obs_grant_full_control': 'str', + 'x_obs_copy_source': 'str', + 'x_obs_metadata_directive': 'str', + 'x_obs_copy_source_if_match': 'str', + 'x_obs_copy_source_if_none_match': 'str', + 'x_obs_copy_source_if_unmodified_since': 'str', + 'x_obs_copy_source_if_modified_since': 'str', + 'x_obs_storage_class': 'str', + 'x_obs_persistent_headers': 'str', + 'x_obs_website_redirect_location': 'str', + 'x_obs_server_side_encryption': 'str', + 'x_obs_server_side_encryption_kms_key_id': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_server_side_encryption_customer_key': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str', + 'x_obs_copy_source_server_side_encryption_customer_algorithm': 'str', + 'x_obs_copy_source_server_side_encryption_customer_key': 'str', + 'x_obs_copy_source_server_side_encryption_customer_key_md5': 'str', + 'success_action_redirect': 'str' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'object_key': 'object_key', + 'x_obs_acl': 'x-obs-acl', + 'x_obs_grant_read': 'x-obs-grant-read', + 'x_obs_grant_read_acp': 'x-obs-grant-read-acp', + 'x_obs_grant_write_acp': 'x-obs-grant-write-acp', + 'x_obs_grant_full_control': 'x-obs-grant-full-control', + 'x_obs_copy_source': 'x-obs-copy-source', + 'x_obs_metadata_directive': 'x-obs-metadata-directive', + 'x_obs_copy_source_if_match': 'x-obs-copy-source-if-match', + 'x_obs_copy_source_if_none_match': 'x-obs-copy-source-if-none-match', + 'x_obs_copy_source_if_unmodified_since': 'x-obs-copy-source-if-unmodified-since', + 'x_obs_copy_source_if_modified_since': 'x-obs-copy-source-if-modified-since', + 'x_obs_storage_class': 'x-obs-storage-class', + 'x_obs_persistent_headers': 'x-obs-persistent-headers', + 'x_obs_website_redirect_location': 'x-obs-website-redirect-location', + 'x_obs_server_side_encryption': 'x-obs-server-side-encryption', + 'x_obs_server_side_encryption_kms_key_id': 'x-obs-server-side-encryption-kms-key-id', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_server_side_encryption_customer_key': 'x-obs-server-side-encryption-customer-key', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5', + 'x_obs_copy_source_server_side_encryption_customer_algorithm': 'x-obs-copy-source-server-side-encryption-customer-algorithm', + 'x_obs_copy_source_server_side_encryption_customer_key': 'x-obs-copy-source-server-side-encryption-customer-key', + 'x_obs_copy_source_server_side_encryption_customer_key_md5': 'x-obs-copy-source-server-side-encryption-customer-key-MD5', + 'success_action_redirect': 'success_action_redirect' + } + + def __init__(self, date=None, bucket_name=None, object_key=None, x_obs_acl=None, x_obs_grant_read=None, x_obs_grant_read_acp=None, x_obs_grant_write_acp=None, x_obs_grant_full_control=None, x_obs_copy_source=None, x_obs_metadata_directive=None, x_obs_copy_source_if_match=None, x_obs_copy_source_if_none_match=None, x_obs_copy_source_if_unmodified_since=None, x_obs_copy_source_if_modified_since=None, x_obs_storage_class=None, x_obs_persistent_headers=None, x_obs_website_redirect_location=None, x_obs_server_side_encryption=None, x_obs_server_side_encryption_kms_key_id=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_server_side_encryption_customer_key=None, x_obs_server_side_encryption_customer_key_md5=None, x_obs_copy_source_server_side_encryption_customer_algorithm=None, x_obs_copy_source_server_side_encryption_customer_key=None, x_obs_copy_source_server_side_encryption_customer_key_md5=None, success_action_redirect=None): + """CopyObjectRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param object_key: 目标对象名称。 + :type object_key: str + :param x_obs_acl: 复制对象时,可以加上此消息头设置对象的权限控制策略,使用的策略为预定义的常用策略,包括:private;public-read;public-read-write(各策略详细说明见ACL章节的“使用头域设置ACL”)。 示例:x-obs-acl: acl + :type x_obs_acl: str + :param x_obs_grant_read: 创建对象时,使用此头域授权domain下所有用户有读对象和获取对象元数据的权限 + :type x_obs_grant_read: str + :param x_obs_grant_read_acp: 创建对象时,使用此头域授权domain下所有用户有获取对象ACL的权限。 + :type x_obs_grant_read_acp: str + :param x_obs_grant_write_acp: 创建对象时,使用此头域授权domain下所有用户有写对象ACL的权限。 + :type x_obs_grant_write_acp: str + :param x_obs_grant_full_control: 创建对象时,使用此头域授权domain下所有用户有读对象、获取对象元数据、获取对象ACL、写对象ACL的权限。 + :type x_obs_grant_full_control: str + :param x_obs_copy_source: 用来指定复制对象操作的源桶名以及源对象名。当源对象存在多个版本时,通过versionId参数指定版本源对象。 约束:中文字符,需要进行URLEncode 示例:x-obs-copy-source: /source_bucket/sourceObject + :type x_obs_copy_source: str + :param x_obs_metadata_directive: 此参数用来指定新对象的元数据是从源对象中复制,还是用请求中的元数据替换。 有效取值:COPY或REPLACE。 默认值:COPY。 示例:x-obs-metadata-directive: metadata_directive 约束条件:如果此参数的值不是COPY或REPLACE,则OBS立即返回400错误;如果用户进行修改元数据操作(源对象与目标对象相同),则此参数只能为REPLACE,否则此请求作为无效请求,服务端响应400。此参数不支持将加密的对象更改成非加密对象(源对象与目标对象相同)。如果用户使用此参数更改加密的对象,系统将返回400。 + :type x_obs_metadata_directive: str + :param x_obs_copy_source_if_match: 只有当源对象的Etag与此参数指定的值相等时才进行复制对象操作,否则返回412(前置条件不满足)。 示例:x-obs-copy-source-if-match: etag 约束条件:此参数可与x-obs-copy-source-if-unmodified-since一起使用,但不能与其它条件复制参数一起使用。 + :type x_obs_copy_source_if_match: str + :param x_obs_copy_source_if_none_match: 只有当源对象的Etag与此参数指定的值不相等时才进行复制对象操作,否则返回412(前置条件不满足)。 示例:x-obs-copy-source-if-none-match: etag 约束条件:此参数可与x-obs-copy-source-if-modified-since一起使用,但不能与其它条件复制参数一起使用。 + :type x_obs_copy_source_if_none_match: str + :param x_obs_copy_source_if_unmodified_since: 只有当源对象在此参数指定的时间之后没有修改过才进行复制对象操作,否则返回412(前置条件不满足),此参数可与x-obs-copy-source-if-match一起使用,但不能与其它条件复制参数一起使用。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 示例:x-obs-copy-source-if-unmodified -since: time-sta + :type x_obs_copy_source_if_unmodified_since: str + :param x_obs_copy_source_if_modified_since: 只有当源对象在此参数指定的时间之后修改过才进行复制对象操作,否则返回412(前置条件不满足),此参数可与x-obs-copy-source-if-none-match一起使用,但不能与其它条件复制参数一起使用。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 示例:x-obs-copy-source-if-modified-since: time-sta + :type x_obs_copy_source_if_modified_since: str + :param x_obs_storage_class: 复制对象时,可以加上此头域设置目的对象的存储类型。如果未设置此头域,则以目的对象所在桶的默认存储类型作为对象的存储类型。 类型:字符串 说明:存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。因此这里可配置的值有:STANDARD、WARM和COLD,注意大小写敏感。 示例:x-obs-storage-class: STANDARD + :type x_obs_storage_class: str + :param x_obs_persistent_headers: 复制对象时,可以在HTTP请求中加入“x-obs-persistent-headers”消息头,用来加入一个或多个自定义的响应头,当用户获取目标对象或查询目标对象元数据时,加入的自定义响应头将会在返回消息的头域中出现。 类型:字符串。 格式:x-obs-persistent-headers: key1:base64_encode(value1),key2:base64_encode(value2).... 说明:其中key1/key2等为自定义header,若含有非ASCII码或不可识别字符,可以采用URL编码或者Base64编码,服务端只会作为字符串处理,不会做解码。value1/value2等为对应自定义header的值,base64_encode指做base64编码,即将自定义header和对应值的base64编码作为一个key-value对用“:”连接,然后用“,”将所有的key-value对连接起来,放在x-obs-persistent-headers这个header中即可,服务端会对上传的value做解码处理。 示例:x-obs-persistent-headers: key1:dmFsdWUx,key2:dmFsdWUy 在下载目标对象或获取目标对象元数据时:返回两个头域为“key1:value1”与“key2:value2” 约束: 1. 通过该方式指定的自定义响应头不能以“x-obs-”为前缀,比如可以指定“key1”,但是不能指定“x-obs-key1” 2. 不能指定http标准头,例如host/content-md5/origin/range/Content-Disposition等 3. 此头域和自定义元数据总长度不能超过8KB 4. 如果传入相同key,将value以“,”拼接后放入同一个key中返回 5. 如果源对象中已经存在自定义响应头,复制的时候不会拷贝到目标对象中 + :type x_obs_persistent_headers: str + :param x_obs_website_redirect_location: 当桶设置了Website配置,可以将获取这个对象的请求重定向到桶内另一个对象或一个外部的URL,OBS将这个值从头域中取出,保存在对象的元数据中。 类型:字符串 默认值:无 约束:必须以“/”、“http://”或“https://”开头,长度不超过2K。 + :type x_obs_website_redirect_location: str + :param x_obs_server_side_encryption: 使用该头域表示服务端加密是SSE-KMS方式。目标对象使用SSE-KMS方式加密。 类型:字符串 示例:x-obs-server-side-encryption: kms 当使用SSE-KMS方式时,必选。 + :type x_obs_server_side_encryption: str + :param x_obs_server_side_encryption_kms_key_id: SSE-KMS方式下使用该头域,该头域表示加密目标对象使用的主密钥,如果用户没有提供该头域,那么默认的主密钥将会被使用。 类型:字符串 支持两种格式的描述方式: 1. regionID:domainID(租户ID):key/key_id 或者 2.key_id 其中regionID是使用密钥所属region的ID;domainID是使用密钥所属租户的租户ID;key_id是从数据加密服务创建的密钥ID。 示例: 1. x-obs-server-side-encryption-kms-key-id: cn-north-4:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0 或者 2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0 + :type x_obs_server_side_encryption_kms_key_id: str + :param x_obs_server_side_encryption_customer_algorithm: SSE-C方式下使用该头域,该头域表示加密目标对象使用的算法。 类型:字符串 示例:x-obs-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 当使用SSE-C方式时,必选。 + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_server_side_encryption_customer_key: SSE-C方式下使用该头域,该头域表示加密目标对象使用的密钥。 类型:字符串 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 当使用SSE-C方式时,必选。 + :type x_obs_server_side_encryption_customer_key: str + :param x_obs_server_side_encryption_customer_key_md5: SSE-C方式下使用该头域,该头域表示加密目标对象使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 类型:字符串 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 当使用SSE-C方式时,必选。 + :type x_obs_server_side_encryption_customer_key_md5: str + :param x_obs_copy_source_server_side_encryption_customer_algorithm: SSE-C方式下使用该头域,该头域表示解密源对象使用的算法。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-copy-source-server-side-encryption-customer-key,x-obs-copy-source-server-side-encryption-customer-key-MD5一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + :type x_obs_copy_source_server_side_encryption_customer_algorithm: str + :param x_obs_copy_source_server_side_encryption_customer_key: SSE-C方式下使用该头域,该头域表示解密源对象使用的密钥。用于解密源对象。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-key: K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-copy-source-server-side-encryption-customer-algorithm,x-obs-copy-source-server-side-encryption-customer-key-MD5一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + :type x_obs_copy_source_server_side_encryption_customer_key: str + :param x_obs_copy_source_server_side_encryption_customer_key_md5: SSE-C方式下使用该头域,该头域表示解密源对象使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-copy-source-server-side-encryption-customer-algorithm,x-obs-copy-source-server-side-encryption-customer-key一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + :type x_obs_copy_source_server_side_encryption_customer_key_md5: str + :param success_action_redirect: 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 类型:字符串。 + :type success_action_redirect: str + """ + + + + self._date = None + self._bucket_name = None + self._object_key = None + self._x_obs_acl = None + self._x_obs_grant_read = None + self._x_obs_grant_read_acp = None + self._x_obs_grant_write_acp = None + self._x_obs_grant_full_control = None + self._x_obs_copy_source = None + self._x_obs_metadata_directive = None + self._x_obs_copy_source_if_match = None + self._x_obs_copy_source_if_none_match = None + self._x_obs_copy_source_if_unmodified_since = None + self._x_obs_copy_source_if_modified_since = None + self._x_obs_storage_class = None + self._x_obs_persistent_headers = None + self._x_obs_website_redirect_location = None + self._x_obs_server_side_encryption = None + self._x_obs_server_side_encryption_kms_key_id = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_server_side_encryption_customer_key = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self._x_obs_copy_source_server_side_encryption_customer_algorithm = None + self._x_obs_copy_source_server_side_encryption_customer_key = None + self._x_obs_copy_source_server_side_encryption_customer_key_md5 = None + self._success_action_redirect = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.object_key = object_key + if x_obs_acl is not None: + self.x_obs_acl = x_obs_acl + if x_obs_grant_read is not None: + self.x_obs_grant_read = x_obs_grant_read + if x_obs_grant_read_acp is not None: + self.x_obs_grant_read_acp = x_obs_grant_read_acp + if x_obs_grant_write_acp is not None: + self.x_obs_grant_write_acp = x_obs_grant_write_acp + if x_obs_grant_full_control is not None: + self.x_obs_grant_full_control = x_obs_grant_full_control + self.x_obs_copy_source = x_obs_copy_source + if x_obs_metadata_directive is not None: + self.x_obs_metadata_directive = x_obs_metadata_directive + if x_obs_copy_source_if_match is not None: + self.x_obs_copy_source_if_match = x_obs_copy_source_if_match + if x_obs_copy_source_if_none_match is not None: + self.x_obs_copy_source_if_none_match = x_obs_copy_source_if_none_match + if x_obs_copy_source_if_unmodified_since is not None: + self.x_obs_copy_source_if_unmodified_since = x_obs_copy_source_if_unmodified_since + if x_obs_copy_source_if_modified_since is not None: + self.x_obs_copy_source_if_modified_since = x_obs_copy_source_if_modified_since + if x_obs_storage_class is not None: + self.x_obs_storage_class = x_obs_storage_class + if x_obs_persistent_headers is not None: + self.x_obs_persistent_headers = x_obs_persistent_headers + if x_obs_website_redirect_location is not None: + self.x_obs_website_redirect_location = x_obs_website_redirect_location + if x_obs_server_side_encryption is not None: + self.x_obs_server_side_encryption = x_obs_server_side_encryption + if x_obs_server_side_encryption_kms_key_id is not None: + self.x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_server_side_encryption_customer_key is not None: + self.x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + if x_obs_copy_source_server_side_encryption_customer_algorithm is not None: + self.x_obs_copy_source_server_side_encryption_customer_algorithm = x_obs_copy_source_server_side_encryption_customer_algorithm + if x_obs_copy_source_server_side_encryption_customer_key is not None: + self.x_obs_copy_source_server_side_encryption_customer_key = x_obs_copy_source_server_side_encryption_customer_key + if x_obs_copy_source_server_side_encryption_customer_key_md5 is not None: + self.x_obs_copy_source_server_side_encryption_customer_key_md5 = x_obs_copy_source_server_side_encryption_customer_key_md5 + if success_action_redirect is not None: + self.success_action_redirect = success_action_redirect + + @property + def date(self): + """Gets the date of this CopyObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this CopyObjectRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this CopyObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this CopyObjectRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this CopyObjectRequest. + + 请求的桶名称。 + + :return: The bucket_name of this CopyObjectRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this CopyObjectRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this CopyObjectRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def object_key(self): + """Gets the object_key of this CopyObjectRequest. + + 目标对象名称。 + + :return: The object_key of this CopyObjectRequest. + :rtype: str + """ + return self._object_key + + @object_key.setter + def object_key(self, object_key): + """Sets the object_key of this CopyObjectRequest. + + 目标对象名称。 + + :param object_key: The object_key of this CopyObjectRequest. + :type object_key: str + """ + self._object_key = object_key + + @property + def x_obs_acl(self): + """Gets the x_obs_acl of this CopyObjectRequest. + + 复制对象时,可以加上此消息头设置对象的权限控制策略,使用的策略为预定义的常用策略,包括:private;public-read;public-read-write(各策略详细说明见ACL章节的“使用头域设置ACL”)。 示例:x-obs-acl: acl + + :return: The x_obs_acl of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_acl + + @x_obs_acl.setter + def x_obs_acl(self, x_obs_acl): + """Sets the x_obs_acl of this CopyObjectRequest. + + 复制对象时,可以加上此消息头设置对象的权限控制策略,使用的策略为预定义的常用策略,包括:private;public-read;public-read-write(各策略详细说明见ACL章节的“使用头域设置ACL”)。 示例:x-obs-acl: acl + + :param x_obs_acl: The x_obs_acl of this CopyObjectRequest. + :type x_obs_acl: str + """ + self._x_obs_acl = x_obs_acl + + @property + def x_obs_grant_read(self): + """Gets the x_obs_grant_read of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有读对象和获取对象元数据的权限 + + :return: The x_obs_grant_read of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_grant_read + + @x_obs_grant_read.setter + def x_obs_grant_read(self, x_obs_grant_read): + """Sets the x_obs_grant_read of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有读对象和获取对象元数据的权限 + + :param x_obs_grant_read: The x_obs_grant_read of this CopyObjectRequest. + :type x_obs_grant_read: str + """ + self._x_obs_grant_read = x_obs_grant_read + + @property + def x_obs_grant_read_acp(self): + """Gets the x_obs_grant_read_acp of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有获取对象ACL的权限。 + + :return: The x_obs_grant_read_acp of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_grant_read_acp + + @x_obs_grant_read_acp.setter + def x_obs_grant_read_acp(self, x_obs_grant_read_acp): + """Sets the x_obs_grant_read_acp of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有获取对象ACL的权限。 + + :param x_obs_grant_read_acp: The x_obs_grant_read_acp of this CopyObjectRequest. + :type x_obs_grant_read_acp: str + """ + self._x_obs_grant_read_acp = x_obs_grant_read_acp + + @property + def x_obs_grant_write_acp(self): + """Gets the x_obs_grant_write_acp of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有写对象ACL的权限。 + + :return: The x_obs_grant_write_acp of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_grant_write_acp + + @x_obs_grant_write_acp.setter + def x_obs_grant_write_acp(self, x_obs_grant_write_acp): + """Sets the x_obs_grant_write_acp of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有写对象ACL的权限。 + + :param x_obs_grant_write_acp: The x_obs_grant_write_acp of this CopyObjectRequest. + :type x_obs_grant_write_acp: str + """ + self._x_obs_grant_write_acp = x_obs_grant_write_acp + + @property + def x_obs_grant_full_control(self): + """Gets the x_obs_grant_full_control of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有读对象、获取对象元数据、获取对象ACL、写对象ACL的权限。 + + :return: The x_obs_grant_full_control of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_grant_full_control + + @x_obs_grant_full_control.setter + def x_obs_grant_full_control(self, x_obs_grant_full_control): + """Sets the x_obs_grant_full_control of this CopyObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有读对象、获取对象元数据、获取对象ACL、写对象ACL的权限。 + + :param x_obs_grant_full_control: The x_obs_grant_full_control of this CopyObjectRequest. + :type x_obs_grant_full_control: str + """ + self._x_obs_grant_full_control = x_obs_grant_full_control + + @property + def x_obs_copy_source(self): + """Gets the x_obs_copy_source of this CopyObjectRequest. + + 用来指定复制对象操作的源桶名以及源对象名。当源对象存在多个版本时,通过versionId参数指定版本源对象。 约束:中文字符,需要进行URLEncode 示例:x-obs-copy-source: /source_bucket/sourceObject + + :return: The x_obs_copy_source of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source + + @x_obs_copy_source.setter + def x_obs_copy_source(self, x_obs_copy_source): + """Sets the x_obs_copy_source of this CopyObjectRequest. + + 用来指定复制对象操作的源桶名以及源对象名。当源对象存在多个版本时,通过versionId参数指定版本源对象。 约束:中文字符,需要进行URLEncode 示例:x-obs-copy-source: /source_bucket/sourceObject + + :param x_obs_copy_source: The x_obs_copy_source of this CopyObjectRequest. + :type x_obs_copy_source: str + """ + self._x_obs_copy_source = x_obs_copy_source + + @property + def x_obs_metadata_directive(self): + """Gets the x_obs_metadata_directive of this CopyObjectRequest. + + 此参数用来指定新对象的元数据是从源对象中复制,还是用请求中的元数据替换。 有效取值:COPY或REPLACE。 默认值:COPY。 示例:x-obs-metadata-directive: metadata_directive 约束条件:如果此参数的值不是COPY或REPLACE,则OBS立即返回400错误;如果用户进行修改元数据操作(源对象与目标对象相同),则此参数只能为REPLACE,否则此请求作为无效请求,服务端响应400。此参数不支持将加密的对象更改成非加密对象(源对象与目标对象相同)。如果用户使用此参数更改加密的对象,系统将返回400。 + + :return: The x_obs_metadata_directive of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_metadata_directive + + @x_obs_metadata_directive.setter + def x_obs_metadata_directive(self, x_obs_metadata_directive): + """Sets the x_obs_metadata_directive of this CopyObjectRequest. + + 此参数用来指定新对象的元数据是从源对象中复制,还是用请求中的元数据替换。 有效取值:COPY或REPLACE。 默认值:COPY。 示例:x-obs-metadata-directive: metadata_directive 约束条件:如果此参数的值不是COPY或REPLACE,则OBS立即返回400错误;如果用户进行修改元数据操作(源对象与目标对象相同),则此参数只能为REPLACE,否则此请求作为无效请求,服务端响应400。此参数不支持将加密的对象更改成非加密对象(源对象与目标对象相同)。如果用户使用此参数更改加密的对象,系统将返回400。 + + :param x_obs_metadata_directive: The x_obs_metadata_directive of this CopyObjectRequest. + :type x_obs_metadata_directive: str + """ + self._x_obs_metadata_directive = x_obs_metadata_directive + + @property + def x_obs_copy_source_if_match(self): + """Gets the x_obs_copy_source_if_match of this CopyObjectRequest. + + 只有当源对象的Etag与此参数指定的值相等时才进行复制对象操作,否则返回412(前置条件不满足)。 示例:x-obs-copy-source-if-match: etag 约束条件:此参数可与x-obs-copy-source-if-unmodified-since一起使用,但不能与其它条件复制参数一起使用。 + + :return: The x_obs_copy_source_if_match of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source_if_match + + @x_obs_copy_source_if_match.setter + def x_obs_copy_source_if_match(self, x_obs_copy_source_if_match): + """Sets the x_obs_copy_source_if_match of this CopyObjectRequest. + + 只有当源对象的Etag与此参数指定的值相等时才进行复制对象操作,否则返回412(前置条件不满足)。 示例:x-obs-copy-source-if-match: etag 约束条件:此参数可与x-obs-copy-source-if-unmodified-since一起使用,但不能与其它条件复制参数一起使用。 + + :param x_obs_copy_source_if_match: The x_obs_copy_source_if_match of this CopyObjectRequest. + :type x_obs_copy_source_if_match: str + """ + self._x_obs_copy_source_if_match = x_obs_copy_source_if_match + + @property + def x_obs_copy_source_if_none_match(self): + """Gets the x_obs_copy_source_if_none_match of this CopyObjectRequest. + + 只有当源对象的Etag与此参数指定的值不相等时才进行复制对象操作,否则返回412(前置条件不满足)。 示例:x-obs-copy-source-if-none-match: etag 约束条件:此参数可与x-obs-copy-source-if-modified-since一起使用,但不能与其它条件复制参数一起使用。 + + :return: The x_obs_copy_source_if_none_match of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source_if_none_match + + @x_obs_copy_source_if_none_match.setter + def x_obs_copy_source_if_none_match(self, x_obs_copy_source_if_none_match): + """Sets the x_obs_copy_source_if_none_match of this CopyObjectRequest. + + 只有当源对象的Etag与此参数指定的值不相等时才进行复制对象操作,否则返回412(前置条件不满足)。 示例:x-obs-copy-source-if-none-match: etag 约束条件:此参数可与x-obs-copy-source-if-modified-since一起使用,但不能与其它条件复制参数一起使用。 + + :param x_obs_copy_source_if_none_match: The x_obs_copy_source_if_none_match of this CopyObjectRequest. + :type x_obs_copy_source_if_none_match: str + """ + self._x_obs_copy_source_if_none_match = x_obs_copy_source_if_none_match + + @property + def x_obs_copy_source_if_unmodified_since(self): + """Gets the x_obs_copy_source_if_unmodified_since of this CopyObjectRequest. + + 只有当源对象在此参数指定的时间之后没有修改过才进行复制对象操作,否则返回412(前置条件不满足),此参数可与x-obs-copy-source-if-match一起使用,但不能与其它条件复制参数一起使用。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 示例:x-obs-copy-source-if-unmodified -since: time-sta + + :return: The x_obs_copy_source_if_unmodified_since of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source_if_unmodified_since + + @x_obs_copy_source_if_unmodified_since.setter + def x_obs_copy_source_if_unmodified_since(self, x_obs_copy_source_if_unmodified_since): + """Sets the x_obs_copy_source_if_unmodified_since of this CopyObjectRequest. + + 只有当源对象在此参数指定的时间之后没有修改过才进行复制对象操作,否则返回412(前置条件不满足),此参数可与x-obs-copy-source-if-match一起使用,但不能与其它条件复制参数一起使用。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 示例:x-obs-copy-source-if-unmodified -since: time-sta + + :param x_obs_copy_source_if_unmodified_since: The x_obs_copy_source_if_unmodified_since of this CopyObjectRequest. + :type x_obs_copy_source_if_unmodified_since: str + """ + self._x_obs_copy_source_if_unmodified_since = x_obs_copy_source_if_unmodified_since + + @property + def x_obs_copy_source_if_modified_since(self): + """Gets the x_obs_copy_source_if_modified_since of this CopyObjectRequest. + + 只有当源对象在此参数指定的时间之后修改过才进行复制对象操作,否则返回412(前置条件不满足),此参数可与x-obs-copy-source-if-none-match一起使用,但不能与其它条件复制参数一起使用。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 示例:x-obs-copy-source-if-modified-since: time-sta + + :return: The x_obs_copy_source_if_modified_since of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source_if_modified_since + + @x_obs_copy_source_if_modified_since.setter + def x_obs_copy_source_if_modified_since(self, x_obs_copy_source_if_modified_since): + """Sets the x_obs_copy_source_if_modified_since of this CopyObjectRequest. + + 只有当源对象在此参数指定的时间之后修改过才进行复制对象操作,否则返回412(前置条件不满足),此参数可与x-obs-copy-source-if-none-match一起使用,但不能与其它条件复制参数一起使用。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 示例:x-obs-copy-source-if-modified-since: time-sta + + :param x_obs_copy_source_if_modified_since: The x_obs_copy_source_if_modified_since of this CopyObjectRequest. + :type x_obs_copy_source_if_modified_since: str + """ + self._x_obs_copy_source_if_modified_since = x_obs_copy_source_if_modified_since + + @property + def x_obs_storage_class(self): + """Gets the x_obs_storage_class of this CopyObjectRequest. + + 复制对象时,可以加上此头域设置目的对象的存储类型。如果未设置此头域,则以目的对象所在桶的默认存储类型作为对象的存储类型。 类型:字符串 说明:存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。因此这里可配置的值有:STANDARD、WARM和COLD,注意大小写敏感。 示例:x-obs-storage-class: STANDARD + + :return: The x_obs_storage_class of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_storage_class + + @x_obs_storage_class.setter + def x_obs_storage_class(self, x_obs_storage_class): + """Sets the x_obs_storage_class of this CopyObjectRequest. + + 复制对象时,可以加上此头域设置目的对象的存储类型。如果未设置此头域,则以目的对象所在桶的默认存储类型作为对象的存储类型。 类型:字符串 说明:存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。因此这里可配置的值有:STANDARD、WARM和COLD,注意大小写敏感。 示例:x-obs-storage-class: STANDARD + + :param x_obs_storage_class: The x_obs_storage_class of this CopyObjectRequest. + :type x_obs_storage_class: str + """ + self._x_obs_storage_class = x_obs_storage_class + + @property + def x_obs_persistent_headers(self): + """Gets the x_obs_persistent_headers of this CopyObjectRequest. + + 复制对象时,可以在HTTP请求中加入“x-obs-persistent-headers”消息头,用来加入一个或多个自定义的响应头,当用户获取目标对象或查询目标对象元数据时,加入的自定义响应头将会在返回消息的头域中出现。 类型:字符串。 格式:x-obs-persistent-headers: key1:base64_encode(value1),key2:base64_encode(value2).... 说明:其中key1/key2等为自定义header,若含有非ASCII码或不可识别字符,可以采用URL编码或者Base64编码,服务端只会作为字符串处理,不会做解码。value1/value2等为对应自定义header的值,base64_encode指做base64编码,即将自定义header和对应值的base64编码作为一个key-value对用“:”连接,然后用“,”将所有的key-value对连接起来,放在x-obs-persistent-headers这个header中即可,服务端会对上传的value做解码处理。 示例:x-obs-persistent-headers: key1:dmFsdWUx,key2:dmFsdWUy 在下载目标对象或获取目标对象元数据时:返回两个头域为“key1:value1”与“key2:value2” 约束: 1. 通过该方式指定的自定义响应头不能以“x-obs-”为前缀,比如可以指定“key1”,但是不能指定“x-obs-key1” 2. 不能指定http标准头,例如host/content-md5/origin/range/Content-Disposition等 3. 此头域和自定义元数据总长度不能超过8KB 4. 如果传入相同key,将value以“,”拼接后放入同一个key中返回 5. 如果源对象中已经存在自定义响应头,复制的时候不会拷贝到目标对象中 + + :return: The x_obs_persistent_headers of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_persistent_headers + + @x_obs_persistent_headers.setter + def x_obs_persistent_headers(self, x_obs_persistent_headers): + """Sets the x_obs_persistent_headers of this CopyObjectRequest. + + 复制对象时,可以在HTTP请求中加入“x-obs-persistent-headers”消息头,用来加入一个或多个自定义的响应头,当用户获取目标对象或查询目标对象元数据时,加入的自定义响应头将会在返回消息的头域中出现。 类型:字符串。 格式:x-obs-persistent-headers: key1:base64_encode(value1),key2:base64_encode(value2).... 说明:其中key1/key2等为自定义header,若含有非ASCII码或不可识别字符,可以采用URL编码或者Base64编码,服务端只会作为字符串处理,不会做解码。value1/value2等为对应自定义header的值,base64_encode指做base64编码,即将自定义header和对应值的base64编码作为一个key-value对用“:”连接,然后用“,”将所有的key-value对连接起来,放在x-obs-persistent-headers这个header中即可,服务端会对上传的value做解码处理。 示例:x-obs-persistent-headers: key1:dmFsdWUx,key2:dmFsdWUy 在下载目标对象或获取目标对象元数据时:返回两个头域为“key1:value1”与“key2:value2” 约束: 1. 通过该方式指定的自定义响应头不能以“x-obs-”为前缀,比如可以指定“key1”,但是不能指定“x-obs-key1” 2. 不能指定http标准头,例如host/content-md5/origin/range/Content-Disposition等 3. 此头域和自定义元数据总长度不能超过8KB 4. 如果传入相同key,将value以“,”拼接后放入同一个key中返回 5. 如果源对象中已经存在自定义响应头,复制的时候不会拷贝到目标对象中 + + :param x_obs_persistent_headers: The x_obs_persistent_headers of this CopyObjectRequest. + :type x_obs_persistent_headers: str + """ + self._x_obs_persistent_headers = x_obs_persistent_headers + + @property + def x_obs_website_redirect_location(self): + """Gets the x_obs_website_redirect_location of this CopyObjectRequest. + + 当桶设置了Website配置,可以将获取这个对象的请求重定向到桶内另一个对象或一个外部的URL,OBS将这个值从头域中取出,保存在对象的元数据中。 类型:字符串 默认值:无 约束:必须以“/”、“http://”或“https://”开头,长度不超过2K。 + + :return: The x_obs_website_redirect_location of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_website_redirect_location + + @x_obs_website_redirect_location.setter + def x_obs_website_redirect_location(self, x_obs_website_redirect_location): + """Sets the x_obs_website_redirect_location of this CopyObjectRequest. + + 当桶设置了Website配置,可以将获取这个对象的请求重定向到桶内另一个对象或一个外部的URL,OBS将这个值从头域中取出,保存在对象的元数据中。 类型:字符串 默认值:无 约束:必须以“/”、“http://”或“https://”开头,长度不超过2K。 + + :param x_obs_website_redirect_location: The x_obs_website_redirect_location of this CopyObjectRequest. + :type x_obs_website_redirect_location: str + """ + self._x_obs_website_redirect_location = x_obs_website_redirect_location + + @property + def x_obs_server_side_encryption(self): + """Gets the x_obs_server_side_encryption of this CopyObjectRequest. + + 使用该头域表示服务端加密是SSE-KMS方式。目标对象使用SSE-KMS方式加密。 类型:字符串 示例:x-obs-server-side-encryption: kms 当使用SSE-KMS方式时,必选。 + + :return: The x_obs_server_side_encryption of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption + + @x_obs_server_side_encryption.setter + def x_obs_server_side_encryption(self, x_obs_server_side_encryption): + """Sets the x_obs_server_side_encryption of this CopyObjectRequest. + + 使用该头域表示服务端加密是SSE-KMS方式。目标对象使用SSE-KMS方式加密。 类型:字符串 示例:x-obs-server-side-encryption: kms 当使用SSE-KMS方式时,必选。 + + :param x_obs_server_side_encryption: The x_obs_server_side_encryption of this CopyObjectRequest. + :type x_obs_server_side_encryption: str + """ + self._x_obs_server_side_encryption = x_obs_server_side_encryption + + @property + def x_obs_server_side_encryption_kms_key_id(self): + """Gets the x_obs_server_side_encryption_kms_key_id of this CopyObjectRequest. + + SSE-KMS方式下使用该头域,该头域表示加密目标对象使用的主密钥,如果用户没有提供该头域,那么默认的主密钥将会被使用。 类型:字符串 支持两种格式的描述方式: 1. regionID:domainID(租户ID):key/key_id 或者 2.key_id 其中regionID是使用密钥所属region的ID;domainID是使用密钥所属租户的租户ID;key_id是从数据加密服务创建的密钥ID。 示例: 1. x-obs-server-side-encryption-kms-key-id: cn-north-4:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0 或者 2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0 + + :return: The x_obs_server_side_encryption_kms_key_id of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_kms_key_id + + @x_obs_server_side_encryption_kms_key_id.setter + def x_obs_server_side_encryption_kms_key_id(self, x_obs_server_side_encryption_kms_key_id): + """Sets the x_obs_server_side_encryption_kms_key_id of this CopyObjectRequest. + + SSE-KMS方式下使用该头域,该头域表示加密目标对象使用的主密钥,如果用户没有提供该头域,那么默认的主密钥将会被使用。 类型:字符串 支持两种格式的描述方式: 1. regionID:domainID(租户ID):key/key_id 或者 2.key_id 其中regionID是使用密钥所属region的ID;domainID是使用密钥所属租户的租户ID;key_id是从数据加密服务创建的密钥ID。 示例: 1. x-obs-server-side-encryption-kms-key-id: cn-north-4:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0 或者 2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0 + + :param x_obs_server_side_encryption_kms_key_id: The x_obs_server_side_encryption_kms_key_id of this CopyObjectRequest. + :type x_obs_server_side_encryption_kms_key_id: str + """ + self._x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密目标对象使用的算法。 类型:字符串 示例:x-obs-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 当使用SSE-C方式时,必选。 + + :return: The x_obs_server_side_encryption_customer_algorithm of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密目标对象使用的算法。 类型:字符串 示例:x-obs-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 当使用SSE-C方式时,必选。 + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this CopyObjectRequest. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_server_side_encryption_customer_key(self): + """Gets the x_obs_server_side_encryption_customer_key of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密目标对象使用的密钥。 类型:字符串 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 当使用SSE-C方式时,必选。 + + :return: The x_obs_server_side_encryption_customer_key of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key + + @x_obs_server_side_encryption_customer_key.setter + def x_obs_server_side_encryption_customer_key(self, x_obs_server_side_encryption_customer_key): + """Sets the x_obs_server_side_encryption_customer_key of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密目标对象使用的密钥。 类型:字符串 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 当使用SSE-C方式时,必选。 + + :param x_obs_server_side_encryption_customer_key: The x_obs_server_side_encryption_customer_key of this CopyObjectRequest. + :type x_obs_server_side_encryption_customer_key: str + """ + self._x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密目标对象使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 类型:字符串 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 当使用SSE-C方式时,必选。 + + :return: The x_obs_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密目标对象使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 类型:字符串 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 当使用SSE-C方式时,必选。 + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def x_obs_copy_source_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_copy_source_server_side_encryption_customer_algorithm of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示解密源对象使用的算法。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-copy-source-server-side-encryption-customer-key,x-obs-copy-source-server-side-encryption-customer-key-MD5一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + + :return: The x_obs_copy_source_server_side_encryption_customer_algorithm of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source_server_side_encryption_customer_algorithm + + @x_obs_copy_source_server_side_encryption_customer_algorithm.setter + def x_obs_copy_source_server_side_encryption_customer_algorithm(self, x_obs_copy_source_server_side_encryption_customer_algorithm): + """Sets the x_obs_copy_source_server_side_encryption_customer_algorithm of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示解密源对象使用的算法。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-copy-source-server-side-encryption-customer-key,x-obs-copy-source-server-side-encryption-customer-key-MD5一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + + :param x_obs_copy_source_server_side_encryption_customer_algorithm: The x_obs_copy_source_server_side_encryption_customer_algorithm of this CopyObjectRequest. + :type x_obs_copy_source_server_side_encryption_customer_algorithm: str + """ + self._x_obs_copy_source_server_side_encryption_customer_algorithm = x_obs_copy_source_server_side_encryption_customer_algorithm + + @property + def x_obs_copy_source_server_side_encryption_customer_key(self): + """Gets the x_obs_copy_source_server_side_encryption_customer_key of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示解密源对象使用的密钥。用于解密源对象。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-key: K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-copy-source-server-side-encryption-customer-algorithm,x-obs-copy-source-server-side-encryption-customer-key-MD5一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + + :return: The x_obs_copy_source_server_side_encryption_customer_key of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source_server_side_encryption_customer_key + + @x_obs_copy_source_server_side_encryption_customer_key.setter + def x_obs_copy_source_server_side_encryption_customer_key(self, x_obs_copy_source_server_side_encryption_customer_key): + """Sets the x_obs_copy_source_server_side_encryption_customer_key of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示解密源对象使用的密钥。用于解密源对象。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-key: K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-copy-source-server-side-encryption-customer-algorithm,x-obs-copy-source-server-side-encryption-customer-key-MD5一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + + :param x_obs_copy_source_server_side_encryption_customer_key: The x_obs_copy_source_server_side_encryption_customer_key of this CopyObjectRequest. + :type x_obs_copy_source_server_side_encryption_customer_key: str + """ + self._x_obs_copy_source_server_side_encryption_customer_key = x_obs_copy_source_server_side_encryption_customer_key + + @property + def x_obs_copy_source_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_copy_source_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示解密源对象使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-copy-source-server-side-encryption-customer-algorithm,x-obs-copy-source-server-side-encryption-customer-key一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + + :return: The x_obs_copy_source_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + :rtype: str + """ + return self._x_obs_copy_source_server_side_encryption_customer_key_md5 + + @x_obs_copy_source_server_side_encryption_customer_key_md5.setter + def x_obs_copy_source_server_side_encryption_customer_key_md5(self, x_obs_copy_source_server_side_encryption_customer_key_md5): + """Sets the x_obs_copy_source_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + + SSE-C方式下使用该头域,该头域表示解密源对象使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 类型:字符串 示例:x-obs-copy-source-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-copy-source-server-side-encryption-customer-algorithm,x-obs-copy-source-server-side-encryption-customer-key一起使用。 当拷贝源对象使用SSE-C方式时,必选。 + + :param x_obs_copy_source_server_side_encryption_customer_key_md5: The x_obs_copy_source_server_side_encryption_customer_key_md5 of this CopyObjectRequest. + :type x_obs_copy_source_server_side_encryption_customer_key_md5: str + """ + self._x_obs_copy_source_server_side_encryption_customer_key_md5 = x_obs_copy_source_server_side_encryption_customer_key_md5 + + @property + def success_action_redirect(self): + """Gets the success_action_redirect of this CopyObjectRequest. + + 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 类型:字符串。 + + :return: The success_action_redirect of this CopyObjectRequest. + :rtype: str + """ + return self._success_action_redirect + + @success_action_redirect.setter + def success_action_redirect(self, success_action_redirect): + """Sets the success_action_redirect of this CopyObjectRequest. + + 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 类型:字符串。 + + :param success_action_redirect: The success_action_redirect of this CopyObjectRequest. + :type success_action_redirect: str + """ + self._success_action_redirect = success_action_redirect + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CopyObjectRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/copy_object_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/copy_object_response.py new file mode 100644 index 000000000..21c99f926 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/copy_object_response.py @@ -0,0 +1,443 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CopyObjectResponse(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. + """ + xml_name = "CopyObjectResponse" + + sensitive_list = [] + + openapi_types = { + 'last_modified': 'str', + 'e_tag': 'str', + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'x_obs_server_side_encryption': 'str', + 'connection': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str', + 'date': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_copy_source_version_id': 'str', + 'x_obs_storage_class': 'str', + 'x_obs_server_side_encryption_kms_key_id': 'str', + 'content_length': 'str', + 'x_obs_version_id': 'str' + } + + attribute_map = { + 'last_modified': 'LastModified', + 'e_tag': 'ETag', + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'x_obs_server_side_encryption': 'x-obs-server-side-encryption', + 'connection': 'Connection', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5', + 'date': 'Date', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_copy_source_version_id': 'x-obs-copy-source-version-id', + 'x_obs_storage_class': 'x-obs-storage-class', + 'x_obs_server_side_encryption_kms_key_id': 'x-obs-server-side-encryption-kms-key-id', + 'content_length': 'Content-Length', + 'x_obs_version_id': 'x-obs-version-id' + } + + def __init__(self, last_modified=None, e_tag=None, x_obs_id_2=None, x_obs_request_id=None, x_obs_server_side_encryption=None, connection=None, x_obs_server_side_encryption_customer_key_md5=None, date=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_copy_source_version_id=None, x_obs_storage_class=None, x_obs_server_side_encryption_kms_key_id=None, content_length=None, x_obs_version_id=None): + """CopyObjectResponse + + The model defined in huaweicloud sdk + + :param last_modified: 对象上次修改的时间。 + :type last_modified: str + :param e_tag: + :type e_tag: str + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param x_obs_server_side_encryption: + :type x_obs_server_side_encryption: str + :param connection: + :type connection: str + :param x_obs_server_side_encryption_customer_key_md5: + :type x_obs_server_side_encryption_customer_key_md5: str + :param date: + :type date: str + :param x_obs_server_side_encryption_customer_algorithm: + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_copy_source_version_id: + :type x_obs_copy_source_version_id: str + :param x_obs_storage_class: + :type x_obs_storage_class: str + :param x_obs_server_side_encryption_kms_key_id: + :type x_obs_server_side_encryption_kms_key_id: str + :param content_length: + :type content_length: str + :param x_obs_version_id: + :type x_obs_version_id: str + """ + + super(CopyObjectResponse, self).__init__() + + self._last_modified = None + self._e_tag = None + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._x_obs_server_side_encryption = None + self._connection = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self._date = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_copy_source_version_id = None + self._x_obs_storage_class = None + self._x_obs_server_side_encryption_kms_key_id = None + self._content_length = None + self._x_obs_version_id = None + self.discriminator = None + + if last_modified is not None: + self.last_modified = last_modified + if e_tag is not None: + self.e_tag = e_tag + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if x_obs_server_side_encryption is not None: + self.x_obs_server_side_encryption = x_obs_server_side_encryption + if connection is not None: + self.connection = connection + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + if date is not None: + self.date = date + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_copy_source_version_id is not None: + self.x_obs_copy_source_version_id = x_obs_copy_source_version_id + if x_obs_storage_class is not None: + self.x_obs_storage_class = x_obs_storage_class + if x_obs_server_side_encryption_kms_key_id is not None: + self.x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + if content_length is not None: + self.content_length = content_length + if x_obs_version_id is not None: + self.x_obs_version_id = x_obs_version_id + + @property + def last_modified(self): + """Gets the last_modified of this CopyObjectResponse. + + 对象上次修改的时间。 + + :return: The last_modified of this CopyObjectResponse. + :rtype: str + """ + return self._last_modified + + @last_modified.setter + def last_modified(self, last_modified): + """Sets the last_modified of this CopyObjectResponse. + + 对象上次修改的时间。 + + :param last_modified: The last_modified of this CopyObjectResponse. + :type last_modified: str + """ + self._last_modified = last_modified + + @property + def e_tag(self): + """Gets the e_tag of this CopyObjectResponse. + + :return: The e_tag of this CopyObjectResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this CopyObjectResponse. + + :param e_tag: The e_tag of this CopyObjectResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this CopyObjectResponse. + + :return: The x_obs_id_2 of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this CopyObjectResponse. + + :param x_obs_id_2: The x_obs_id_2 of this CopyObjectResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this CopyObjectResponse. + + :return: The x_obs_request_id of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this CopyObjectResponse. + + :param x_obs_request_id: The x_obs_request_id of this CopyObjectResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def x_obs_server_side_encryption(self): + """Gets the x_obs_server_side_encryption of this CopyObjectResponse. + + :return: The x_obs_server_side_encryption of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption + + @x_obs_server_side_encryption.setter + def x_obs_server_side_encryption(self, x_obs_server_side_encryption): + """Sets the x_obs_server_side_encryption of this CopyObjectResponse. + + :param x_obs_server_side_encryption: The x_obs_server_side_encryption of this CopyObjectResponse. + :type x_obs_server_side_encryption: str + """ + self._x_obs_server_side_encryption = x_obs_server_side_encryption + + @property + def connection(self): + """Gets the connection of this CopyObjectResponse. + + :return: The connection of this CopyObjectResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this CopyObjectResponse. + + :param connection: The connection of this CopyObjectResponse. + :type connection: str + """ + self._connection = connection + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this CopyObjectResponse. + + :return: The x_obs_server_side_encryption_customer_key_md5 of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this CopyObjectResponse. + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this CopyObjectResponse. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def date(self): + """Gets the date of this CopyObjectResponse. + + :return: The date of this CopyObjectResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this CopyObjectResponse. + + :param date: The date of this CopyObjectResponse. + :type date: str + """ + self._date = date + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this CopyObjectResponse. + + :return: The x_obs_server_side_encryption_customer_algorithm of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this CopyObjectResponse. + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this CopyObjectResponse. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_copy_source_version_id(self): + """Gets the x_obs_copy_source_version_id of this CopyObjectResponse. + + :return: The x_obs_copy_source_version_id of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_copy_source_version_id + + @x_obs_copy_source_version_id.setter + def x_obs_copy_source_version_id(self, x_obs_copy_source_version_id): + """Sets the x_obs_copy_source_version_id of this CopyObjectResponse. + + :param x_obs_copy_source_version_id: The x_obs_copy_source_version_id of this CopyObjectResponse. + :type x_obs_copy_source_version_id: str + """ + self._x_obs_copy_source_version_id = x_obs_copy_source_version_id + + @property + def x_obs_storage_class(self): + """Gets the x_obs_storage_class of this CopyObjectResponse. + + :return: The x_obs_storage_class of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_storage_class + + @x_obs_storage_class.setter + def x_obs_storage_class(self, x_obs_storage_class): + """Sets the x_obs_storage_class of this CopyObjectResponse. + + :param x_obs_storage_class: The x_obs_storage_class of this CopyObjectResponse. + :type x_obs_storage_class: str + """ + self._x_obs_storage_class = x_obs_storage_class + + @property + def x_obs_server_side_encryption_kms_key_id(self): + """Gets the x_obs_server_side_encryption_kms_key_id of this CopyObjectResponse. + + :return: The x_obs_server_side_encryption_kms_key_id of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_kms_key_id + + @x_obs_server_side_encryption_kms_key_id.setter + def x_obs_server_side_encryption_kms_key_id(self, x_obs_server_side_encryption_kms_key_id): + """Sets the x_obs_server_side_encryption_kms_key_id of this CopyObjectResponse. + + :param x_obs_server_side_encryption_kms_key_id: The x_obs_server_side_encryption_kms_key_id of this CopyObjectResponse. + :type x_obs_server_side_encryption_kms_key_id: str + """ + self._x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + + @property + def content_length(self): + """Gets the content_length of this CopyObjectResponse. + + :return: The content_length of this CopyObjectResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this CopyObjectResponse. + + :param content_length: The content_length of this CopyObjectResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def x_obs_version_id(self): + """Gets the x_obs_version_id of this CopyObjectResponse. + + :return: The x_obs_version_id of this CopyObjectResponse. + :rtype: str + """ + return self._x_obs_version_id + + @x_obs_version_id.setter + def x_obs_version_id(self, x_obs_version_id): + """Sets the x_obs_version_id of this CopyObjectResponse. + + :param x_obs_version_id: The x_obs_version_id of this CopyObjectResponse. + :type x_obs_version_id: str + """ + self._x_obs_version_id = x_obs_version_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, CopyObjectResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_request.py new file mode 100644 index 000000000..c95dda283 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_request.py @@ -0,0 +1,605 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBucketRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "CreateBucketRequest" + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'date': 'str', + 'x_obs_acl': 'str', + 'x_obs_storage_class': 'str', + 'x_obs_grant_read': 'str', + 'x_obs_grant_write': 'str', + 'x_obs_grant_read_acp': 'str', + 'x_obs_grant_write_acp': 'str', + 'x_obs_grant_full_control': 'str', + 'x_obs_grant_read_delivered': 'str', + 'x_obs_grant_full_control_delivered': 'str', + 'x_obs_az_redundancy': 'str', + 'x_obs_fs_file_interface': 'str', + 'x_obs_epid': 'str', + 'x_obs_cluster_type': 'str', + 'x_obs_location_clustergroup_id': 'str', + 'x_obs_ies_location': 'str', + 'body': 'CreateBucketRequestBody' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'date': 'Date', + 'x_obs_acl': 'x-obs-acl', + 'x_obs_storage_class': 'x-obs-storage-class', + 'x_obs_grant_read': 'x-obs-grant-read', + 'x_obs_grant_write': 'x-obs-grant-write', + 'x_obs_grant_read_acp': 'x-obs-grant-read-acp', + 'x_obs_grant_write_acp': 'x-obs-grant-write-acp', + 'x_obs_grant_full_control': 'x-obs-grant-full-control', + 'x_obs_grant_read_delivered': 'x-obs-grant-read-delivered', + 'x_obs_grant_full_control_delivered': 'x-obs-grant-full-control-delivered', + 'x_obs_az_redundancy': 'x-obs-az-redundancy', + 'x_obs_fs_file_interface': 'x-obs-fs-file-interface', + 'x_obs_epid': 'x-obs-epid', + 'x_obs_cluster_type': 'x-obs-cluster-type', + 'x_obs_location_clustergroup_id': 'x-obs-location-clustergroup-id', + 'x_obs_ies_location': 'x-obs-ies-location', + 'body': 'body' + } + + def __init__(self, bucket_name=None, date=None, x_obs_acl=None, x_obs_storage_class=None, x_obs_grant_read=None, x_obs_grant_write=None, x_obs_grant_read_acp=None, x_obs_grant_write_acp=None, x_obs_grant_full_control=None, x_obs_grant_read_delivered=None, x_obs_grant_full_control_delivered=None, x_obs_az_redundancy=None, x_obs_fs_file_interface=None, x_obs_epid=None, x_obs_cluster_type=None, x_obs_location_clustergroup_id=None, x_obs_ies_location=None, body=None): + """CreateBucketRequest + + The model defined in huaweicloud sdk + + :param bucket_name: 考虑到桶名会作为访问域名的一部分,需要参与域名解析,因此桶名需要满足DNS域名规范。OBS系统在接受创桶请求时,会对桶名进行严格的检查,具体规则如下: 需全局唯一,不能与已有的任何桶名称重复,包括其他用户创建的桶。用户删除桶后,立即创建同名桶或并行文件系统会创建失败,需要等待30分钟才能创建。 长度范围为3到63个字符,支持小写字母、数字、中划线(-)、英文句号(.)。 禁止两个英文句号(.)相邻,禁止英文句号(.)和中划线(-)相邻,禁止以英文句号(.)和中划线(-)开头或结尾。 禁止使用IP地址。 须知: 当使用HTTPS协议访问OBS系统时,由于SSL的通配符证书仅匹配不包含\".\"的桶。这将导致桶名包含\".\"的桶在访问OBS系统时,客户端会提示证书校验存在风险,比如浏览器安全提示会呈现红色告警。因此如非必要,请尽量不要在桶名中包含\".\"。 + :type bucket_name: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param x_obs_acl: 创建桶时,可以加上此消息头设置桶的权限控制策略,使用的策略为预定义的常用策略,包括:private、public-read、public-read-write、public-read-delivered、public-read-write-delivered、bucket-owner-full-control(各策略详细说明见ACL章节的“使用头域设置ACL”)。 + :type x_obs_acl: str + :param x_obs_storage_class: 创建桶时,可以加上此消息头设置桶的默认存储类型,默认存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)、HIGH_PERFORMANCE(高性能存储,只有并行文件系统支持)。如果没有指定此头域,则创建的桶为标准存储类型。 + :type x_obs_storage_class: str + :param x_obs_grant_read: 授权给指定domain下的所有用户有READ权限。允许列举桶内对象、列举桶中多段任务、列举桶中多版本对象、获取桶元数据。 + :type x_obs_grant_read: str + :param x_obs_grant_write: 授权给指定domain下的所有用户有WRITE权限。允许创建、删除、覆盖桶内所有对象,允许初始化段、上传段、拷贝段、合并段、取消多段上传任务。 + :type x_obs_grant_write: str + :param x_obs_grant_read_acp: 授权给指定domain下的所有用户有READ_ACP权限。允许读桶的ACL信息。 + :type x_obs_grant_read_acp: str + :param x_obs_grant_write_acp: 授权给指定domain下的所有用户有WRITE_ACP权限,允许修改桶的ACL信息。 + :type x_obs_grant_write_acp: str + :param x_obs_grant_full_control: 授权给指定domain下的所有用户有FULL_CONTROL权限。 + :type x_obs_grant_full_control: str + :param x_obs_grant_read_delivered: 授权给指定domain下的所有用户有READ权限,并且在默认情况下,该READ权限将传递给桶内所有对象。 + :type x_obs_grant_read_delivered: str + :param x_obs_grant_full_control_delivered: 授权给指定domain下的所有用户有FULL_CONTROL权限,并且在默认情况下,该FULL_CONTROL权限将传递给桶内所有对象。 + :type x_obs_grant_full_control_delivered: str + :param x_obs_az_redundancy: 创建桶时带上此消息头设置桶的存储类型为多AZ。不携带时默认为单AZ。用户携带该头域指定新创的桶的存储类型为多AZ,存在一种情况是当该区域如果不支持多AZ存储,则该桶的存储类型仍为单AZ。 + :type x_obs_az_redundancy: str + :param x_obs_fs_file_interface: 创建桶时可以带上此消息头以创建并行文件系统。 + :type x_obs_fs_file_interface: str + :param x_obs_epid: 企业项目id,开通企业项目的用户可以从企业项目服务获取,格式为uuid,默认项目传“0”或者不带该头域,未开通企业项目的用户可以不带该头域。 + :type x_obs_epid: str + :param x_obs_cluster_type: 指定桶是创建在公共集群还是专属集群。 + :type x_obs_cluster_type: str + :param x_obs_location_clustergroup_id: 集群显性化创桶时,指定的集群组ID + :type x_obs_location_clustergroup_id: str + :param x_obs_ies_location: 如果是要创建在IES站点上,则指定IES站点的AZ ID。此参数和x-obs-cluster-type不可共存。 + :type x_obs_ies_location: str + :param body: Body of the CreateBucketRequest + :type body: :class:`huaweicloudsdkobs.v1.CreateBucketRequestBody` + """ + + + + self._bucket_name = None + self._date = None + self._x_obs_acl = None + self._x_obs_storage_class = None + self._x_obs_grant_read = None + self._x_obs_grant_write = None + self._x_obs_grant_read_acp = None + self._x_obs_grant_write_acp = None + self._x_obs_grant_full_control = None + self._x_obs_grant_read_delivered = None + self._x_obs_grant_full_control_delivered = None + self._x_obs_az_redundancy = None + self._x_obs_fs_file_interface = None + self._x_obs_epid = None + self._x_obs_cluster_type = None + self._x_obs_location_clustergroup_id = None + self._x_obs_ies_location = None + self._body = None + self.discriminator = None + + self.bucket_name = bucket_name + if date is not None: + self.date = date + if x_obs_acl is not None: + self.x_obs_acl = x_obs_acl + if x_obs_storage_class is not None: + self.x_obs_storage_class = x_obs_storage_class + if x_obs_grant_read is not None: + self.x_obs_grant_read = x_obs_grant_read + if x_obs_grant_write is not None: + self.x_obs_grant_write = x_obs_grant_write + if x_obs_grant_read_acp is not None: + self.x_obs_grant_read_acp = x_obs_grant_read_acp + if x_obs_grant_write_acp is not None: + self.x_obs_grant_write_acp = x_obs_grant_write_acp + if x_obs_grant_full_control is not None: + self.x_obs_grant_full_control = x_obs_grant_full_control + if x_obs_grant_read_delivered is not None: + self.x_obs_grant_read_delivered = x_obs_grant_read_delivered + if x_obs_grant_full_control_delivered is not None: + self.x_obs_grant_full_control_delivered = x_obs_grant_full_control_delivered + if x_obs_az_redundancy is not None: + self.x_obs_az_redundancy = x_obs_az_redundancy + if x_obs_fs_file_interface is not None: + self.x_obs_fs_file_interface = x_obs_fs_file_interface + if x_obs_epid is not None: + self.x_obs_epid = x_obs_epid + if x_obs_cluster_type is not None: + self.x_obs_cluster_type = x_obs_cluster_type + if x_obs_location_clustergroup_id is not None: + self.x_obs_location_clustergroup_id = x_obs_location_clustergroup_id + if x_obs_ies_location is not None: + self.x_obs_ies_location = x_obs_ies_location + if body is not None: + self.body = body + + @property + def bucket_name(self): + """Gets the bucket_name of this CreateBucketRequest. + + 考虑到桶名会作为访问域名的一部分,需要参与域名解析,因此桶名需要满足DNS域名规范。OBS系统在接受创桶请求时,会对桶名进行严格的检查,具体规则如下: 需全局唯一,不能与已有的任何桶名称重复,包括其他用户创建的桶。用户删除桶后,立即创建同名桶或并行文件系统会创建失败,需要等待30分钟才能创建。 长度范围为3到63个字符,支持小写字母、数字、中划线(-)、英文句号(.)。 禁止两个英文句号(.)相邻,禁止英文句号(.)和中划线(-)相邻,禁止以英文句号(.)和中划线(-)开头或结尾。 禁止使用IP地址。 须知: 当使用HTTPS协议访问OBS系统时,由于SSL的通配符证书仅匹配不包含\".\"的桶。这将导致桶名包含\".\"的桶在访问OBS系统时,客户端会提示证书校验存在风险,比如浏览器安全提示会呈现红色告警。因此如非必要,请尽量不要在桶名中包含\".\"。 + + :return: The bucket_name of this CreateBucketRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this CreateBucketRequest. + + 考虑到桶名会作为访问域名的一部分,需要参与域名解析,因此桶名需要满足DNS域名规范。OBS系统在接受创桶请求时,会对桶名进行严格的检查,具体规则如下: 需全局唯一,不能与已有的任何桶名称重复,包括其他用户创建的桶。用户删除桶后,立即创建同名桶或并行文件系统会创建失败,需要等待30分钟才能创建。 长度范围为3到63个字符,支持小写字母、数字、中划线(-)、英文句号(.)。 禁止两个英文句号(.)相邻,禁止英文句号(.)和中划线(-)相邻,禁止以英文句号(.)和中划线(-)开头或结尾。 禁止使用IP地址。 须知: 当使用HTTPS协议访问OBS系统时,由于SSL的通配符证书仅匹配不包含\".\"的桶。这将导致桶名包含\".\"的桶在访问OBS系统时,客户端会提示证书校验存在风险,比如浏览器安全提示会呈现红色告警。因此如非必要,请尽量不要在桶名中包含\".\"。 + + :param bucket_name: The bucket_name of this CreateBucketRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def date(self): + """Gets the date of this CreateBucketRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this CreateBucketRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this CreateBucketRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this CreateBucketRequest. + :type date: str + """ + self._date = date + + @property + def x_obs_acl(self): + """Gets the x_obs_acl of this CreateBucketRequest. + + 创建桶时,可以加上此消息头设置桶的权限控制策略,使用的策略为预定义的常用策略,包括:private、public-read、public-read-write、public-read-delivered、public-read-write-delivered、bucket-owner-full-control(各策略详细说明见ACL章节的“使用头域设置ACL”)。 + + :return: The x_obs_acl of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_acl + + @x_obs_acl.setter + def x_obs_acl(self, x_obs_acl): + """Sets the x_obs_acl of this CreateBucketRequest. + + 创建桶时,可以加上此消息头设置桶的权限控制策略,使用的策略为预定义的常用策略,包括:private、public-read、public-read-write、public-read-delivered、public-read-write-delivered、bucket-owner-full-control(各策略详细说明见ACL章节的“使用头域设置ACL”)。 + + :param x_obs_acl: The x_obs_acl of this CreateBucketRequest. + :type x_obs_acl: str + """ + self._x_obs_acl = x_obs_acl + + @property + def x_obs_storage_class(self): + """Gets the x_obs_storage_class of this CreateBucketRequest. + + 创建桶时,可以加上此消息头设置桶的默认存储类型,默认存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)、HIGH_PERFORMANCE(高性能存储,只有并行文件系统支持)。如果没有指定此头域,则创建的桶为标准存储类型。 + + :return: The x_obs_storage_class of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_storage_class + + @x_obs_storage_class.setter + def x_obs_storage_class(self, x_obs_storage_class): + """Sets the x_obs_storage_class of this CreateBucketRequest. + + 创建桶时,可以加上此消息头设置桶的默认存储类型,默认存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)、HIGH_PERFORMANCE(高性能存储,只有并行文件系统支持)。如果没有指定此头域,则创建的桶为标准存储类型。 + + :param x_obs_storage_class: The x_obs_storage_class of this CreateBucketRequest. + :type x_obs_storage_class: str + """ + self._x_obs_storage_class = x_obs_storage_class + + @property + def x_obs_grant_read(self): + """Gets the x_obs_grant_read of this CreateBucketRequest. + + 授权给指定domain下的所有用户有READ权限。允许列举桶内对象、列举桶中多段任务、列举桶中多版本对象、获取桶元数据。 + + :return: The x_obs_grant_read of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_grant_read + + @x_obs_grant_read.setter + def x_obs_grant_read(self, x_obs_grant_read): + """Sets the x_obs_grant_read of this CreateBucketRequest. + + 授权给指定domain下的所有用户有READ权限。允许列举桶内对象、列举桶中多段任务、列举桶中多版本对象、获取桶元数据。 + + :param x_obs_grant_read: The x_obs_grant_read of this CreateBucketRequest. + :type x_obs_grant_read: str + """ + self._x_obs_grant_read = x_obs_grant_read + + @property + def x_obs_grant_write(self): + """Gets the x_obs_grant_write of this CreateBucketRequest. + + 授权给指定domain下的所有用户有WRITE权限。允许创建、删除、覆盖桶内所有对象,允许初始化段、上传段、拷贝段、合并段、取消多段上传任务。 + + :return: The x_obs_grant_write of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_grant_write + + @x_obs_grant_write.setter + def x_obs_grant_write(self, x_obs_grant_write): + """Sets the x_obs_grant_write of this CreateBucketRequest. + + 授权给指定domain下的所有用户有WRITE权限。允许创建、删除、覆盖桶内所有对象,允许初始化段、上传段、拷贝段、合并段、取消多段上传任务。 + + :param x_obs_grant_write: The x_obs_grant_write of this CreateBucketRequest. + :type x_obs_grant_write: str + """ + self._x_obs_grant_write = x_obs_grant_write + + @property + def x_obs_grant_read_acp(self): + """Gets the x_obs_grant_read_acp of this CreateBucketRequest. + + 授权给指定domain下的所有用户有READ_ACP权限。允许读桶的ACL信息。 + + :return: The x_obs_grant_read_acp of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_grant_read_acp + + @x_obs_grant_read_acp.setter + def x_obs_grant_read_acp(self, x_obs_grant_read_acp): + """Sets the x_obs_grant_read_acp of this CreateBucketRequest. + + 授权给指定domain下的所有用户有READ_ACP权限。允许读桶的ACL信息。 + + :param x_obs_grant_read_acp: The x_obs_grant_read_acp of this CreateBucketRequest. + :type x_obs_grant_read_acp: str + """ + self._x_obs_grant_read_acp = x_obs_grant_read_acp + + @property + def x_obs_grant_write_acp(self): + """Gets the x_obs_grant_write_acp of this CreateBucketRequest. + + 授权给指定domain下的所有用户有WRITE_ACP权限,允许修改桶的ACL信息。 + + :return: The x_obs_grant_write_acp of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_grant_write_acp + + @x_obs_grant_write_acp.setter + def x_obs_grant_write_acp(self, x_obs_grant_write_acp): + """Sets the x_obs_grant_write_acp of this CreateBucketRequest. + + 授权给指定domain下的所有用户有WRITE_ACP权限,允许修改桶的ACL信息。 + + :param x_obs_grant_write_acp: The x_obs_grant_write_acp of this CreateBucketRequest. + :type x_obs_grant_write_acp: str + """ + self._x_obs_grant_write_acp = x_obs_grant_write_acp + + @property + def x_obs_grant_full_control(self): + """Gets the x_obs_grant_full_control of this CreateBucketRequest. + + 授权给指定domain下的所有用户有FULL_CONTROL权限。 + + :return: The x_obs_grant_full_control of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_grant_full_control + + @x_obs_grant_full_control.setter + def x_obs_grant_full_control(self, x_obs_grant_full_control): + """Sets the x_obs_grant_full_control of this CreateBucketRequest. + + 授权给指定domain下的所有用户有FULL_CONTROL权限。 + + :param x_obs_grant_full_control: The x_obs_grant_full_control of this CreateBucketRequest. + :type x_obs_grant_full_control: str + """ + self._x_obs_grant_full_control = x_obs_grant_full_control + + @property + def x_obs_grant_read_delivered(self): + """Gets the x_obs_grant_read_delivered of this CreateBucketRequest. + + 授权给指定domain下的所有用户有READ权限,并且在默认情况下,该READ权限将传递给桶内所有对象。 + + :return: The x_obs_grant_read_delivered of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_grant_read_delivered + + @x_obs_grant_read_delivered.setter + def x_obs_grant_read_delivered(self, x_obs_grant_read_delivered): + """Sets the x_obs_grant_read_delivered of this CreateBucketRequest. + + 授权给指定domain下的所有用户有READ权限,并且在默认情况下,该READ权限将传递给桶内所有对象。 + + :param x_obs_grant_read_delivered: The x_obs_grant_read_delivered of this CreateBucketRequest. + :type x_obs_grant_read_delivered: str + """ + self._x_obs_grant_read_delivered = x_obs_grant_read_delivered + + @property + def x_obs_grant_full_control_delivered(self): + """Gets the x_obs_grant_full_control_delivered of this CreateBucketRequest. + + 授权给指定domain下的所有用户有FULL_CONTROL权限,并且在默认情况下,该FULL_CONTROL权限将传递给桶内所有对象。 + + :return: The x_obs_grant_full_control_delivered of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_grant_full_control_delivered + + @x_obs_grant_full_control_delivered.setter + def x_obs_grant_full_control_delivered(self, x_obs_grant_full_control_delivered): + """Sets the x_obs_grant_full_control_delivered of this CreateBucketRequest. + + 授权给指定domain下的所有用户有FULL_CONTROL权限,并且在默认情况下,该FULL_CONTROL权限将传递给桶内所有对象。 + + :param x_obs_grant_full_control_delivered: The x_obs_grant_full_control_delivered of this CreateBucketRequest. + :type x_obs_grant_full_control_delivered: str + """ + self._x_obs_grant_full_control_delivered = x_obs_grant_full_control_delivered + + @property + def x_obs_az_redundancy(self): + """Gets the x_obs_az_redundancy of this CreateBucketRequest. + + 创建桶时带上此消息头设置桶的存储类型为多AZ。不携带时默认为单AZ。用户携带该头域指定新创的桶的存储类型为多AZ,存在一种情况是当该区域如果不支持多AZ存储,则该桶的存储类型仍为单AZ。 + + :return: The x_obs_az_redundancy of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_az_redundancy + + @x_obs_az_redundancy.setter + def x_obs_az_redundancy(self, x_obs_az_redundancy): + """Sets the x_obs_az_redundancy of this CreateBucketRequest. + + 创建桶时带上此消息头设置桶的存储类型为多AZ。不携带时默认为单AZ。用户携带该头域指定新创的桶的存储类型为多AZ,存在一种情况是当该区域如果不支持多AZ存储,则该桶的存储类型仍为单AZ。 + + :param x_obs_az_redundancy: The x_obs_az_redundancy of this CreateBucketRequest. + :type x_obs_az_redundancy: str + """ + self._x_obs_az_redundancy = x_obs_az_redundancy + + @property + def x_obs_fs_file_interface(self): + """Gets the x_obs_fs_file_interface of this CreateBucketRequest. + + 创建桶时可以带上此消息头以创建并行文件系统。 + + :return: The x_obs_fs_file_interface of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_fs_file_interface + + @x_obs_fs_file_interface.setter + def x_obs_fs_file_interface(self, x_obs_fs_file_interface): + """Sets the x_obs_fs_file_interface of this CreateBucketRequest. + + 创建桶时可以带上此消息头以创建并行文件系统。 + + :param x_obs_fs_file_interface: The x_obs_fs_file_interface of this CreateBucketRequest. + :type x_obs_fs_file_interface: str + """ + self._x_obs_fs_file_interface = x_obs_fs_file_interface + + @property + def x_obs_epid(self): + """Gets the x_obs_epid of this CreateBucketRequest. + + 企业项目id,开通企业项目的用户可以从企业项目服务获取,格式为uuid,默认项目传“0”或者不带该头域,未开通企业项目的用户可以不带该头域。 + + :return: The x_obs_epid of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_epid + + @x_obs_epid.setter + def x_obs_epid(self, x_obs_epid): + """Sets the x_obs_epid of this CreateBucketRequest. + + 企业项目id,开通企业项目的用户可以从企业项目服务获取,格式为uuid,默认项目传“0”或者不带该头域,未开通企业项目的用户可以不带该头域。 + + :param x_obs_epid: The x_obs_epid of this CreateBucketRequest. + :type x_obs_epid: str + """ + self._x_obs_epid = x_obs_epid + + @property + def x_obs_cluster_type(self): + """Gets the x_obs_cluster_type of this CreateBucketRequest. + + 指定桶是创建在公共集群还是专属集群。 + + :return: The x_obs_cluster_type of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_cluster_type + + @x_obs_cluster_type.setter + def x_obs_cluster_type(self, x_obs_cluster_type): + """Sets the x_obs_cluster_type of this CreateBucketRequest. + + 指定桶是创建在公共集群还是专属集群。 + + :param x_obs_cluster_type: The x_obs_cluster_type of this CreateBucketRequest. + :type x_obs_cluster_type: str + """ + self._x_obs_cluster_type = x_obs_cluster_type + + @property + def x_obs_location_clustergroup_id(self): + """Gets the x_obs_location_clustergroup_id of this CreateBucketRequest. + + 集群显性化创桶时,指定的集群组ID + + :return: The x_obs_location_clustergroup_id of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_location_clustergroup_id + + @x_obs_location_clustergroup_id.setter + def x_obs_location_clustergroup_id(self, x_obs_location_clustergroup_id): + """Sets the x_obs_location_clustergroup_id of this CreateBucketRequest. + + 集群显性化创桶时,指定的集群组ID + + :param x_obs_location_clustergroup_id: The x_obs_location_clustergroup_id of this CreateBucketRequest. + :type x_obs_location_clustergroup_id: str + """ + self._x_obs_location_clustergroup_id = x_obs_location_clustergroup_id + + @property + def x_obs_ies_location(self): + """Gets the x_obs_ies_location of this CreateBucketRequest. + + 如果是要创建在IES站点上,则指定IES站点的AZ ID。此参数和x-obs-cluster-type不可共存。 + + :return: The x_obs_ies_location of this CreateBucketRequest. + :rtype: str + """ + return self._x_obs_ies_location + + @x_obs_ies_location.setter + def x_obs_ies_location(self, x_obs_ies_location): + """Sets the x_obs_ies_location of this CreateBucketRequest. + + 如果是要创建在IES站点上,则指定IES站点的AZ ID。此参数和x-obs-cluster-type不可共存。 + + :param x_obs_ies_location: The x_obs_ies_location of this CreateBucketRequest. + :type x_obs_ies_location: str + """ + self._x_obs_ies_location = x_obs_ies_location + + @property + def body(self): + """Gets the body of this CreateBucketRequest. + + :return: The body of this CreateBucketRequest. + :rtype: :class:`huaweicloudsdkobs.v1.CreateBucketRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this CreateBucketRequest. + + :param body: The body of this CreateBucketRequest. + :type body: :class:`huaweicloudsdkobs.v1.CreateBucketRequestBody` + """ + 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, CreateBucketRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_request_body.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_request_body.py new file mode 100644 index 000000000..6b8a81e02 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_request_body.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBucketRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "CreateBucketConfiguration" + + sensitive_list = [] + + openapi_types = { + 'location': 'str' + } + + attribute_map = { + 'location': 'Location' + } + + def __init__(self, location=None): + """CreateBucketRequestBody + + The model defined in huaweicloud sdk + + :param location: 指定Bucket在哪个区域被创建。 使用华北-北京一的终端节点创桶时 不携带Location,桶将默认创建在华北-北京一(cn-north-1) 在Location中指定其它区域,例如华北-北京四(cn-north-4),桶将创建在指定区域 使用华北-北京一以外其它区域的终端节点创桶时,必须携带Location,并且Location只能指定为该终端节点对应的区域。 例如使用obs.cn-north-4.myhuaweicloud.com终端节点创桶时,必须指定Location为cn-north-4。 有关OBS区域和终端节点的更多信息,请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint?OBS)。 + :type location: str + """ + + + + self._location = None + self.discriminator = None + + if location is not None: + self.location = location + + @property + def location(self): + """Gets the location of this CreateBucketRequestBody. + + 指定Bucket在哪个区域被创建。 使用华北-北京一的终端节点创桶时 不携带Location,桶将默认创建在华北-北京一(cn-north-1) 在Location中指定其它区域,例如华北-北京四(cn-north-4),桶将创建在指定区域 使用华北-北京一以外其它区域的终端节点创桶时,必须携带Location,并且Location只能指定为该终端节点对应的区域。 例如使用obs.cn-north-4.myhuaweicloud.com终端节点创桶时,必须指定Location为cn-north-4。 有关OBS区域和终端节点的更多信息,请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint?OBS)。 + + :return: The location of this CreateBucketRequestBody. + :rtype: str + """ + return self._location + + @location.setter + def location(self, location): + """Sets the location of this CreateBucketRequestBody. + + 指定Bucket在哪个区域被创建。 使用华北-北京一的终端节点创桶时 不携带Location,桶将默认创建在华北-北京一(cn-north-1) 在Location中指定其它区域,例如华北-北京四(cn-north-4),桶将创建在指定区域 使用华北-北京一以外其它区域的终端节点创桶时,必须携带Location,并且Location只能指定为该终端节点对应的区域。 例如使用obs.cn-north-4.myhuaweicloud.com终端节点创桶时,必须指定Location为cn-north-4。 有关OBS区域和终端节点的更多信息,请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint?OBS)。 + + :param location: The location of this CreateBucketRequestBody. + :type location: str + """ + self._location = location + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateBucketRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_response.py new file mode 100644 index 000000000..819c40a93 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/create_bucket_response.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class CreateBucketResponse(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. + """ + xml_name = "CreateBucketResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """CreateBucketResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(CreateBucketResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this CreateBucketResponse. + + :return: The x_obs_id_2 of this CreateBucketResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this CreateBucketResponse. + + :param x_obs_id_2: The x_obs_id_2 of this CreateBucketResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this CreateBucketResponse. + + :return: The x_obs_request_id of this CreateBucketResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this CreateBucketResponse. + + :param x_obs_request_id: The x_obs_request_id of this CreateBucketResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this CreateBucketResponse. + + :return: The e_tag of this CreateBucketResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this CreateBucketResponse. + + :param e_tag: The e_tag of this CreateBucketResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this CreateBucketResponse. + + :return: The connection of this CreateBucketResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this CreateBucketResponse. + + :param connection: The connection of this CreateBucketResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this CreateBucketResponse. + + :return: The content_length of this CreateBucketResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this CreateBucketResponse. + + :param content_length: The content_length of this CreateBucketResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this CreateBucketResponse. + + :return: The date of this CreateBucketResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this CreateBucketResponse. + + :param date: The date of this CreateBucketResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateBucketResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py new file mode 100644 index 000000000..c6795ad9c --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_customdomain_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteBucketCustomdomainRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "DeleteBucketCustomdomainRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'customdomain': 'str' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'customdomain': 'customdomain' + } + + def __init__(self, date=None, bucket_name=None, customdomain=None): + """DeleteBucketCustomdomainRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param customdomain: 需要删除的自定义域名。 类型:字符串,必须满足域名规则。 + :type customdomain: str + """ + + + + self._date = None + self._bucket_name = None + self._customdomain = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.customdomain = customdomain + + @property + def date(self): + """Gets the date of this DeleteBucketCustomdomainRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this DeleteBucketCustomdomainRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteBucketCustomdomainRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this DeleteBucketCustomdomainRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this DeleteBucketCustomdomainRequest. + + 请求的桶名称。 + + :return: The bucket_name of this DeleteBucketCustomdomainRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this DeleteBucketCustomdomainRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this DeleteBucketCustomdomainRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def customdomain(self): + """Gets the customdomain of this DeleteBucketCustomdomainRequest. + + 需要删除的自定义域名。 类型:字符串,必须满足域名规则。 + + :return: The customdomain of this DeleteBucketCustomdomainRequest. + :rtype: str + """ + return self._customdomain + + @customdomain.setter + def customdomain(self, customdomain): + """Sets the customdomain of this DeleteBucketCustomdomainRequest. + + 需要删除的自定义域名。 类型:字符串,必须满足域名规则。 + + :param customdomain: The customdomain of this DeleteBucketCustomdomainRequest. + :type customdomain: str + """ + self._customdomain = customdomain + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteBucketCustomdomainRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py new file mode 100644 index 000000000..0921aa427 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_customdomain_response.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteBucketCustomdomainResponse(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. + """ + xml_name = "DeleteBucketCustomdomainResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """DeleteBucketCustomdomainResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(DeleteBucketCustomdomainResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this DeleteBucketCustomdomainResponse. + + :return: The x_obs_id_2 of this DeleteBucketCustomdomainResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this DeleteBucketCustomdomainResponse. + + :param x_obs_id_2: The x_obs_id_2 of this DeleteBucketCustomdomainResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this DeleteBucketCustomdomainResponse. + + :return: The x_obs_request_id of this DeleteBucketCustomdomainResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this DeleteBucketCustomdomainResponse. + + :param x_obs_request_id: The x_obs_request_id of this DeleteBucketCustomdomainResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this DeleteBucketCustomdomainResponse. + + :return: The e_tag of this DeleteBucketCustomdomainResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this DeleteBucketCustomdomainResponse. + + :param e_tag: The e_tag of this DeleteBucketCustomdomainResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this DeleteBucketCustomdomainResponse. + + :return: The connection of this DeleteBucketCustomdomainResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this DeleteBucketCustomdomainResponse. + + :param connection: The connection of this DeleteBucketCustomdomainResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this DeleteBucketCustomdomainResponse. + + :return: The content_length of this DeleteBucketCustomdomainResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this DeleteBucketCustomdomainResponse. + + :param content_length: The content_length of this DeleteBucketCustomdomainResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this DeleteBucketCustomdomainResponse. + + :return: The date of this DeleteBucketCustomdomainResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteBucketCustomdomainResponse. + + :param date: The date of this DeleteBucketCustomdomainResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteBucketCustomdomainResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_request.py new file mode 100644 index 000000000..538d442dc --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_request.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteBucketRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "DeleteBucketRequest" + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'date': 'str' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'date': 'Date' + } + + def __init__(self, bucket_name=None, date=None): + """DeleteBucketRequest + + The model defined in huaweicloud sdk + + :param bucket_name: 桶名称 + :type bucket_name: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + """ + + + + self._bucket_name = None + self._date = None + self.discriminator = None + + self.bucket_name = bucket_name + if date is not None: + self.date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this DeleteBucketRequest. + + 桶名称 + + :return: The bucket_name of this DeleteBucketRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this DeleteBucketRequest. + + 桶名称 + + :param bucket_name: The bucket_name of this DeleteBucketRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def date(self): + """Gets the date of this DeleteBucketRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this DeleteBucketRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteBucketRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this DeleteBucketRequest. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteBucketRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_response.py new file mode 100644 index 000000000..d24dc67a2 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_bucket_response.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteBucketResponse(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. + """ + xml_name = "DeleteBucketResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """DeleteBucketResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(DeleteBucketResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this DeleteBucketResponse. + + :return: The x_obs_id_2 of this DeleteBucketResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this DeleteBucketResponse. + + :param x_obs_id_2: The x_obs_id_2 of this DeleteBucketResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this DeleteBucketResponse. + + :return: The x_obs_request_id of this DeleteBucketResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this DeleteBucketResponse. + + :param x_obs_request_id: The x_obs_request_id of this DeleteBucketResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this DeleteBucketResponse. + + :return: The e_tag of this DeleteBucketResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this DeleteBucketResponse. + + :param e_tag: The e_tag of this DeleteBucketResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this DeleteBucketResponse. + + :return: The connection of this DeleteBucketResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this DeleteBucketResponse. + + :param connection: The connection of this DeleteBucketResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this DeleteBucketResponse. + + :return: The content_length of this DeleteBucketResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this DeleteBucketResponse. + + :param content_length: The content_length of this DeleteBucketResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this DeleteBucketResponse. + + :return: The date of this DeleteBucketResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteBucketResponse. + + :param date: The date of this DeleteBucketResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteBucketResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object.py new file mode 100644 index 000000000..e002f10f4 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteObject: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "DeleteObject" + + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'version_id': 'str' + } + + attribute_map = { + 'key': 'Key', + 'version_id': 'VersionId' + } + + def __init__(self, key=None, version_id=None): + """DeleteObject + + The model defined in huaweicloud sdk + + :param key: 待删除的对象Key。如果设置了EncodingType元素,对象Key需要按照对应的编码类型进行编码。 + :type key: str + :param version_id: 待删除的对象版本号。 + :type version_id: str + """ + + + + self._key = None + self._version_id = None + self.discriminator = None + + if key is not None: + self.key = key + if version_id is not None: + self.version_id = version_id + + @property + def key(self): + """Gets the key of this DeleteObject. + + 待删除的对象Key。如果设置了EncodingType元素,对象Key需要按照对应的编码类型进行编码。 + + :return: The key of this DeleteObject. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this DeleteObject. + + 待删除的对象Key。如果设置了EncodingType元素,对象Key需要按照对应的编码类型进行编码。 + + :param key: The key of this DeleteObject. + :type key: str + """ + self._key = key + + @property + def version_id(self): + """Gets the version_id of this DeleteObject. + + 待删除的对象版本号。 + + :return: The version_id of this DeleteObject. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this DeleteObject. + + 待删除的对象版本号。 + + :param version_id: The version_id of this DeleteObject. + :type version_id: str + """ + self._version_id = version_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, DeleteObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object_request.py new file mode 100644 index 000000000..f73e239cd --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object_request.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteObjectRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "DeleteObjectRequest" + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'object_key': 'str', + 'date': 'str', + 'version_id': 'str' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'object_key': 'object_key', + 'date': 'Date', + 'version_id': 'versionId' + } + + def __init__(self, bucket_name=None, object_key=None, date=None, version_id=None): + """DeleteObjectRequest + + The model defined in huaweicloud sdk + + :param bucket_name: 桶名称 + :type bucket_name: str + :param object_key: 通过此请求删除的对象名称。 + :type object_key: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param version_id: 待删除对象的版本号。 + :type version_id: str + """ + + + + self._bucket_name = None + self._object_key = None + self._date = None + self._version_id = None + self.discriminator = None + + self.bucket_name = bucket_name + self.object_key = object_key + if date is not None: + self.date = date + if version_id is not None: + self.version_id = version_id + + @property + def bucket_name(self): + """Gets the bucket_name of this DeleteObjectRequest. + + 桶名称 + + :return: The bucket_name of this DeleteObjectRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this DeleteObjectRequest. + + 桶名称 + + :param bucket_name: The bucket_name of this DeleteObjectRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def object_key(self): + """Gets the object_key of this DeleteObjectRequest. + + 通过此请求删除的对象名称。 + + :return: The object_key of this DeleteObjectRequest. + :rtype: str + """ + return self._object_key + + @object_key.setter + def object_key(self, object_key): + """Sets the object_key of this DeleteObjectRequest. + + 通过此请求删除的对象名称。 + + :param object_key: The object_key of this DeleteObjectRequest. + :type object_key: str + """ + self._object_key = object_key + + @property + def date(self): + """Gets the date of this DeleteObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this DeleteObjectRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this DeleteObjectRequest. + :type date: str + """ + self._date = date + + @property + def version_id(self): + """Gets the version_id of this DeleteObjectRequest. + + 待删除对象的版本号。 + + :return: The version_id of this DeleteObjectRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this DeleteObjectRequest. + + 待删除对象的版本号。 + + :param version_id: The version_id of this DeleteObjectRequest. + :type version_id: str + """ + self._version_id = version_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, DeleteObjectRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object_response.py new file mode 100644 index 000000000..f2ac2d15c --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_object_response.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteObjectResponse(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. + """ + xml_name = "DeleteObjectResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str', + 'x_obs_delete_marker': 'str', + 'x_obs_version_id': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date', + 'x_obs_delete_marker': 'x-obs-delete-marker', + 'x_obs_version_id': 'x-obs-version-id' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None, x_obs_delete_marker=None, x_obs_version_id=None): + """DeleteObjectResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + :param x_obs_delete_marker: + :type x_obs_delete_marker: str + :param x_obs_version_id: + :type x_obs_version_id: str + """ + + super(DeleteObjectResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self._x_obs_delete_marker = None + self._x_obs_version_id = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + if x_obs_delete_marker is not None: + self.x_obs_delete_marker = x_obs_delete_marker + if x_obs_version_id is not None: + self.x_obs_version_id = x_obs_version_id + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this DeleteObjectResponse. + + :return: The x_obs_id_2 of this DeleteObjectResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this DeleteObjectResponse. + + :param x_obs_id_2: The x_obs_id_2 of this DeleteObjectResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this DeleteObjectResponse. + + :return: The x_obs_request_id of this DeleteObjectResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this DeleteObjectResponse. + + :param x_obs_request_id: The x_obs_request_id of this DeleteObjectResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this DeleteObjectResponse. + + :return: The e_tag of this DeleteObjectResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this DeleteObjectResponse. + + :param e_tag: The e_tag of this DeleteObjectResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this DeleteObjectResponse. + + :return: The connection of this DeleteObjectResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this DeleteObjectResponse. + + :param connection: The connection of this DeleteObjectResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this DeleteObjectResponse. + + :return: The content_length of this DeleteObjectResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this DeleteObjectResponse. + + :param content_length: The content_length of this DeleteObjectResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this DeleteObjectResponse. + + :return: The date of this DeleteObjectResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteObjectResponse. + + :param date: The date of this DeleteObjectResponse. + :type date: str + """ + self._date = date + + @property + def x_obs_delete_marker(self): + """Gets the x_obs_delete_marker of this DeleteObjectResponse. + + :return: The x_obs_delete_marker of this DeleteObjectResponse. + :rtype: str + """ + return self._x_obs_delete_marker + + @x_obs_delete_marker.setter + def x_obs_delete_marker(self, x_obs_delete_marker): + """Sets the x_obs_delete_marker of this DeleteObjectResponse. + + :param x_obs_delete_marker: The x_obs_delete_marker of this DeleteObjectResponse. + :type x_obs_delete_marker: str + """ + self._x_obs_delete_marker = x_obs_delete_marker + + @property + def x_obs_version_id(self): + """Gets the x_obs_version_id of this DeleteObjectResponse. + + :return: The x_obs_version_id of this DeleteObjectResponse. + :rtype: str + """ + return self._x_obs_version_id + + @x_obs_version_id.setter + def x_obs_version_id(self, x_obs_version_id): + """Sets the x_obs_version_id of this DeleteObjectResponse. + + :param x_obs_version_id: The x_obs_version_id of this DeleteObjectResponse. + :type x_obs_version_id: str + """ + self._x_obs_version_id = x_obs_version_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, DeleteObjectResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_request.py new file mode 100644 index 000000000..8422abf31 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_request.py @@ -0,0 +1,226 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteObjectsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "DeleteObjectsRequest" + + sensitive_list = [] + + openapi_types = { + 'content_md5': 'str', + 'date': 'str', + 'bucket_name': 'str', + 'delete': 'str', + 'body': 'DeleteObjectsRequestBody' + } + + attribute_map = { + 'content_md5': 'Content-MD5', + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'delete': 'delete', + 'body': 'body' + } + + def __init__(self, content_md5=None, date=None, bucket_name=None, delete=None, body=None): + """DeleteObjectsRequest + + The model defined in huaweicloud sdk + + :param content_md5: 按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 + :type content_md5: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param delete: delete表示请求批量删除对象API。 + :type delete: str + :param body: Body of the DeleteObjectsRequest + :type body: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequestBody` + """ + + + + self._content_md5 = None + self._date = None + self._bucket_name = None + self._delete = None + self._body = None + self.discriminator = None + + self.content_md5 = content_md5 + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.delete = delete + if body is not None: + self.body = body + + @property + def content_md5(self): + """Gets the content_md5 of this DeleteObjectsRequest. + + 按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 + + :return: The content_md5 of this DeleteObjectsRequest. + :rtype: str + """ + return self._content_md5 + + @content_md5.setter + def content_md5(self, content_md5): + """Sets the content_md5 of this DeleteObjectsRequest. + + 按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串。 + + :param content_md5: The content_md5 of this DeleteObjectsRequest. + :type content_md5: str + """ + self._content_md5 = content_md5 + + @property + def date(self): + """Gets the date of this DeleteObjectsRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this DeleteObjectsRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteObjectsRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this DeleteObjectsRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this DeleteObjectsRequest. + + 请求的桶名称。 + + :return: The bucket_name of this DeleteObjectsRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this DeleteObjectsRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this DeleteObjectsRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def delete(self): + """Gets the delete of this DeleteObjectsRequest. + + delete表示请求批量删除对象API。 + + :return: The delete of this DeleteObjectsRequest. + :rtype: str + """ + return self._delete + + @delete.setter + def delete(self, delete): + """Sets the delete of this DeleteObjectsRequest. + + delete表示请求批量删除对象API。 + + :param delete: The delete of this DeleteObjectsRequest. + :type delete: str + """ + self._delete = delete + + @property + def body(self): + """Gets the body of this DeleteObjectsRequest. + + :return: The body of this DeleteObjectsRequest. + :rtype: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this DeleteObjectsRequest. + + :param body: The body of this DeleteObjectsRequest. + :type body: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequestBody` + """ + 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, DeleteObjectsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_request_body.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_request_body.py new file mode 100644 index 000000000..9410c2e81 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_request_body.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteObjectsRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Delete" + + sensitive_list = [] + + openapi_types = { + 'quiet': 'bool', + 'encoding_type': 'str', + 'object': 'list[DeleteObject]' + } + + attribute_map = { + 'quiet': 'Quiet', + 'encoding_type': 'EncodingType', + 'object': 'Object' + } + + def __init__(self, quiet=None, encoding_type=None, object=None): + """DeleteObjectsRequestBody + + The model defined in huaweicloud sdk + + :param quiet: 用于指定使用quiet模式,只返回删除失败的对象结果;如果有此字段,则必被置为True,如果为False则被系统忽略掉。 + :type quiet: bool + :param encoding_type: 用于指定待删除的对象Key和响应中的对象Key的编码类型。如果Key包含xml 1.0标准不支持的控制字符,可通过设置该元素指定对象Key的编码类型。 + :type encoding_type: str + :param object: + :type object: list[:class:`huaweicloudsdkobs.v1.DeleteObject`] + """ + + + + self._quiet = None + self._encoding_type = None + self._object = None + self.discriminator = None + + if quiet is not None: + self.quiet = quiet + if encoding_type is not None: + self.encoding_type = encoding_type + if object is not None: + self.object = object + + @property + def quiet(self): + """Gets the quiet of this DeleteObjectsRequestBody. + + 用于指定使用quiet模式,只返回删除失败的对象结果;如果有此字段,则必被置为True,如果为False则被系统忽略掉。 + + :return: The quiet of this DeleteObjectsRequestBody. + :rtype: bool + """ + return self._quiet + + @quiet.setter + def quiet(self, quiet): + """Sets the quiet of this DeleteObjectsRequestBody. + + 用于指定使用quiet模式,只返回删除失败的对象结果;如果有此字段,则必被置为True,如果为False则被系统忽略掉。 + + :param quiet: The quiet of this DeleteObjectsRequestBody. + :type quiet: bool + """ + self._quiet = quiet + + @property + def encoding_type(self): + """Gets the encoding_type of this DeleteObjectsRequestBody. + + 用于指定待删除的对象Key和响应中的对象Key的编码类型。如果Key包含xml 1.0标准不支持的控制字符,可通过设置该元素指定对象Key的编码类型。 + + :return: The encoding_type of this DeleteObjectsRequestBody. + :rtype: str + """ + return self._encoding_type + + @encoding_type.setter + def encoding_type(self, encoding_type): + """Sets the encoding_type of this DeleteObjectsRequestBody. + + 用于指定待删除的对象Key和响应中的对象Key的编码类型。如果Key包含xml 1.0标准不支持的控制字符,可通过设置该元素指定对象Key的编码类型。 + + :param encoding_type: The encoding_type of this DeleteObjectsRequestBody. + :type encoding_type: str + """ + self._encoding_type = encoding_type + + @property + def object(self): + """Gets the object of this DeleteObjectsRequestBody. + + :return: The object of this DeleteObjectsRequestBody. + :rtype: list[:class:`huaweicloudsdkobs.v1.DeleteObject`] + """ + return self._object + + @object.setter + def object(self, object): + """Sets the object of this DeleteObjectsRequestBody. + + :param object: The object of this DeleteObjectsRequestBody. + :type object: list[:class:`huaweicloudsdkobs.v1.DeleteObject`] + """ + self._object = object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteObjectsRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_response.py new file mode 100644 index 000000000..4dae5d538 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_objects_response.py @@ -0,0 +1,318 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteObjectsResponse(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. + """ + xml_name = "DeleteObjectsResponse" + + sensitive_list = [] + + openapi_types = { + 'encoding_type': 'str', + 'deleted': 'list[DeleteResultDeleted]', + 'error': 'list[DeleteResultError]', + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'encoding_type': 'EncodingType', + 'deleted': 'Deleted', + 'error': 'Error', + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, encoding_type=None, deleted=None, error=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """DeleteObjectsResponse + + The model defined in huaweicloud sdk + + :param encoding_type: 对响应中的Key进行指定类型的编码。如果请求消息中设置了EncodingType,那响应中的Key会被编码。 + :type encoding_type: str + :param deleted: + :type deleted: list[:class:`huaweicloudsdkobs.v1.DeleteResultDeleted`] + :param error: + :type error: list[:class:`huaweicloudsdkobs.v1.DeleteResultError`] + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(DeleteObjectsResponse, self).__init__() + + self._encoding_type = None + self._deleted = None + self._error = None + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if encoding_type is not None: + self.encoding_type = encoding_type + if deleted is not None: + self.deleted = deleted + if error is not None: + self.error = error + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def encoding_type(self): + """Gets the encoding_type of this DeleteObjectsResponse. + + 对响应中的Key进行指定类型的编码。如果请求消息中设置了EncodingType,那响应中的Key会被编码。 + + :return: The encoding_type of this DeleteObjectsResponse. + :rtype: str + """ + return self._encoding_type + + @encoding_type.setter + def encoding_type(self, encoding_type): + """Sets the encoding_type of this DeleteObjectsResponse. + + 对响应中的Key进行指定类型的编码。如果请求消息中设置了EncodingType,那响应中的Key会被编码。 + + :param encoding_type: The encoding_type of this DeleteObjectsResponse. + :type encoding_type: str + """ + self._encoding_type = encoding_type + + @property + def deleted(self): + """Gets the deleted of this DeleteObjectsResponse. + + :return: The deleted of this DeleteObjectsResponse. + :rtype: list[:class:`huaweicloudsdkobs.v1.DeleteResultDeleted`] + """ + return self._deleted + + @deleted.setter + def deleted(self, deleted): + """Sets the deleted of this DeleteObjectsResponse. + + :param deleted: The deleted of this DeleteObjectsResponse. + :type deleted: list[:class:`huaweicloudsdkobs.v1.DeleteResultDeleted`] + """ + self._deleted = deleted + + @property + def error(self): + """Gets the error of this DeleteObjectsResponse. + + :return: The error of this DeleteObjectsResponse. + :rtype: list[:class:`huaweicloudsdkobs.v1.DeleteResultError`] + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this DeleteObjectsResponse. + + :param error: The error of this DeleteObjectsResponse. + :type error: list[:class:`huaweicloudsdkobs.v1.DeleteResultError`] + """ + self._error = error + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this DeleteObjectsResponse. + + :return: The x_obs_id_2 of this DeleteObjectsResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this DeleteObjectsResponse. + + :param x_obs_id_2: The x_obs_id_2 of this DeleteObjectsResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this DeleteObjectsResponse. + + :return: The x_obs_request_id of this DeleteObjectsResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this DeleteObjectsResponse. + + :param x_obs_request_id: The x_obs_request_id of this DeleteObjectsResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this DeleteObjectsResponse. + + :return: The e_tag of this DeleteObjectsResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this DeleteObjectsResponse. + + :param e_tag: The e_tag of this DeleteObjectsResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this DeleteObjectsResponse. + + :return: The connection of this DeleteObjectsResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this DeleteObjectsResponse. + + :param connection: The connection of this DeleteObjectsResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this DeleteObjectsResponse. + + :return: The content_length of this DeleteObjectsResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this DeleteObjectsResponse. + + :param content_length: The content_length of this DeleteObjectsResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this DeleteObjectsResponse. + + :return: The date of this DeleteObjectsResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this DeleteObjectsResponse. + + :param date: The date of this DeleteObjectsResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeleteObjectsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_result_deleted.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_result_deleted.py new file mode 100644 index 000000000..dc676f6a8 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_result_deleted.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteResultDeleted: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "DeleteResultDeleted" + + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'version_id': 'str', + 'delete_marker': 'bool', + 'delete_marker_version_id': 'bool' + } + + attribute_map = { + 'key': 'Key', + 'version_id': 'VersionId', + 'delete_marker': 'DeleteMarker', + 'delete_marker_version_id': 'DeleteMarkerVersionId' + } + + def __init__(self, key=None, version_id=None, delete_marker=None, delete_marker_version_id=None): + """DeleteResultDeleted + + The model defined in huaweicloud sdk + + :param key: 每个删除结果的对象名。 + :type key: str + :param version_id: 删除对象的版本号 + :type version_id: str + :param delete_marker: 当批量删除请求访问的桶是多版本桶时,如果创建或删除一个删除标记,返回消息中该元素的值为true。 + :type delete_marker: bool + :param delete_marker_version_id: 请求创建或删除的删除标记版本号。 当批量删除请求访问的桶是多版本桶时,如果创建或删除一个删除标记,响应消息会返回该元素。该元素在以下两种情况中会出现: 用户发送不带版本删除请求,即请求只有对象名,无版本号。这种情况下,系统会创建一个删除标记,并在响应中返回该删除标记的版本号。 用户发送带版本删除请求,即请求同时包含对象名以及版本号,但是该版本号标识一个删除标记。这种情况下,系统会删除此删除标记,并在响应中返回该删除标记的版本号。 + :type delete_marker_version_id: bool + """ + + + + self._key = None + self._version_id = None + self._delete_marker = None + self._delete_marker_version_id = None + self.discriminator = None + + if key is not None: + self.key = key + if version_id is not None: + self.version_id = version_id + if delete_marker is not None: + self.delete_marker = delete_marker + if delete_marker_version_id is not None: + self.delete_marker_version_id = delete_marker_version_id + + @property + def key(self): + """Gets the key of this DeleteResultDeleted. + + 每个删除结果的对象名。 + + :return: The key of this DeleteResultDeleted. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this DeleteResultDeleted. + + 每个删除结果的对象名。 + + :param key: The key of this DeleteResultDeleted. + :type key: str + """ + self._key = key + + @property + def version_id(self): + """Gets the version_id of this DeleteResultDeleted. + + 删除对象的版本号 + + :return: The version_id of this DeleteResultDeleted. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this DeleteResultDeleted. + + 删除对象的版本号 + + :param version_id: The version_id of this DeleteResultDeleted. + :type version_id: str + """ + self._version_id = version_id + + @property + def delete_marker(self): + """Gets the delete_marker of this DeleteResultDeleted. + + 当批量删除请求访问的桶是多版本桶时,如果创建或删除一个删除标记,返回消息中该元素的值为true。 + + :return: The delete_marker of this DeleteResultDeleted. + :rtype: bool + """ + return self._delete_marker + + @delete_marker.setter + def delete_marker(self, delete_marker): + """Sets the delete_marker of this DeleteResultDeleted. + + 当批量删除请求访问的桶是多版本桶时,如果创建或删除一个删除标记,返回消息中该元素的值为true。 + + :param delete_marker: The delete_marker of this DeleteResultDeleted. + :type delete_marker: bool + """ + self._delete_marker = delete_marker + + @property + def delete_marker_version_id(self): + """Gets the delete_marker_version_id of this DeleteResultDeleted. + + 请求创建或删除的删除标记版本号。 当批量删除请求访问的桶是多版本桶时,如果创建或删除一个删除标记,响应消息会返回该元素。该元素在以下两种情况中会出现: 用户发送不带版本删除请求,即请求只有对象名,无版本号。这种情况下,系统会创建一个删除标记,并在响应中返回该删除标记的版本号。 用户发送带版本删除请求,即请求同时包含对象名以及版本号,但是该版本号标识一个删除标记。这种情况下,系统会删除此删除标记,并在响应中返回该删除标记的版本号。 + + :return: The delete_marker_version_id of this DeleteResultDeleted. + :rtype: bool + """ + return self._delete_marker_version_id + + @delete_marker_version_id.setter + def delete_marker_version_id(self, delete_marker_version_id): + """Sets the delete_marker_version_id of this DeleteResultDeleted. + + 请求创建或删除的删除标记版本号。 当批量删除请求访问的桶是多版本桶时,如果创建或删除一个删除标记,响应消息会返回该元素。该元素在以下两种情况中会出现: 用户发送不带版本删除请求,即请求只有对象名,无版本号。这种情况下,系统会创建一个删除标记,并在响应中返回该删除标记的版本号。 用户发送带版本删除请求,即请求同时包含对象名以及版本号,但是该版本号标识一个删除标记。这种情况下,系统会删除此删除标记,并在响应中返回该删除标记的版本号。 + + :param delete_marker_version_id: The delete_marker_version_id of this DeleteResultDeleted. + :type delete_marker_version_id: bool + """ + self._delete_marker_version_id = delete_marker_version_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, DeleteResultDeleted): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_result_error.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_result_error.py new file mode 100644 index 000000000..58a88b128 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/delete_result_error.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class DeleteResultError: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "DeleteResultError" + + sensitive_list = [] + + openapi_types = { + 'key': 'str', + 'code': 'str', + 'message': 'str' + } + + attribute_map = { + 'key': 'Key', + 'code': 'Code', + 'message': 'Message' + } + + def __init__(self, key=None, code=None, message=None): + """DeleteResultError + + The model defined in huaweicloud sdk + + :param key: 每个删除结果的对象名。 + :type key: str + :param code: 删除失败结果的错误码。 + :type code: str + :param message: 删除失败结果的错误消息。 + :type message: str + """ + + + + self._key = None + self._code = None + self._message = None + self.discriminator = None + + if key is not None: + self.key = key + if code is not None: + self.code = code + if message is not None: + self.message = message + + @property + def key(self): + """Gets the key of this DeleteResultError. + + 每个删除结果的对象名。 + + :return: The key of this DeleteResultError. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this DeleteResultError. + + 每个删除结果的对象名。 + + :param key: The key of this DeleteResultError. + :type key: str + """ + self._key = key + + @property + def code(self): + """Gets the code of this DeleteResultError. + + 删除失败结果的错误码。 + + :return: The code of this DeleteResultError. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this DeleteResultError. + + 删除失败结果的错误码。 + + :param code: The code of this DeleteResultError. + :type code: str + """ + self._code = code + + @property + def message(self): + """Gets the message of this DeleteResultError. + + 删除失败结果的错误消息。 + + :return: The message of this DeleteResultError. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this DeleteResultError. + + 删除失败结果的错误消息。 + + :param message: The message of this DeleteResultError. + :type message: str + """ + self._message = 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, DeleteResultError): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/domains.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/domains.py new file mode 100644 index 000000000..773ccafdb --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/domains.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Domains: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Domains" + + sensitive_list = [] + + openapi_types = { + 'domain_name': 'str', + 'create_time': 'str', + 'certificate_id': 'str' + } + + attribute_map = { + 'domain_name': 'DomainName', + 'create_time': 'CreateTime', + 'certificate_id': 'CertificateId' + } + + def __init__(self, domain_name=None, create_time=None, certificate_id=None): + """Domains + + The model defined in huaweicloud sdk + + :param domain_name: 自定义域名。 + :type domain_name: str + :param create_time: 自定义域名创建时间。 + :type create_time: str + :param certificate_id: 自定义域名证书ID。 + :type certificate_id: str + """ + + + + self._domain_name = None + self._create_time = None + self._certificate_id = None + self.discriminator = None + + self.domain_name = domain_name + self.create_time = create_time + if certificate_id is not None: + self.certificate_id = certificate_id + + @property + def domain_name(self): + """Gets the domain_name of this Domains. + + 自定义域名。 + + :return: The domain_name of this Domains. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """Sets the domain_name of this Domains. + + 自定义域名。 + + :param domain_name: The domain_name of this Domains. + :type domain_name: str + """ + self._domain_name = domain_name + + @property + def create_time(self): + """Gets the create_time of this Domains. + + 自定义域名创建时间。 + + :return: The create_time of this Domains. + :rtype: str + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this Domains. + + 自定义域名创建时间。 + + :param create_time: The create_time of this Domains. + :type create_time: str + """ + self._create_time = create_time + + @property + def certificate_id(self): + """Gets the certificate_id of this Domains. + + 自定义域名证书ID。 + + :return: The certificate_id of this Domains. + :rtype: str + """ + return self._certificate_id + + @certificate_id.setter + def certificate_id(self, certificate_id): + """Sets the certificate_id of this Domains. + + 自定义域名证书ID。 + + :param certificate_id: The certificate_id of this Domains. + :type certificate_id: str + """ + self._certificate_id = certificate_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Domains): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/filter_object.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/filter_object.py new file mode 100644 index 000000000..09ff8f590 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/filter_object.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FilterObject: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "FilterObject" + + sensitive_list = [] + + openapi_types = { + 'filter_rule': 'list[FilterRule]' + } + + attribute_map = { + 'filter_rule': 'FilterRule' + } + + def __init__(self, filter_rule=None): + """FilterObject + + The model defined in huaweicloud sdk + + :param filter_rule: + :type filter_rule: list[:class:`huaweicloudsdkobs.v1.FilterRule`] + """ + + + + self._filter_rule = None + self.discriminator = None + + if filter_rule is not None: + self.filter_rule = filter_rule + + @property + def filter_rule(self): + """Gets the filter_rule of this FilterObject. + + :return: The filter_rule of this FilterObject. + :rtype: list[:class:`huaweicloudsdkobs.v1.FilterRule`] + """ + return self._filter_rule + + @filter_rule.setter + def filter_rule(self, filter_rule): + """Sets the filter_rule of this FilterObject. + + :param filter_rule: The filter_rule of this FilterObject. + :type filter_rule: list[:class:`huaweicloudsdkobs.v1.FilterRule`] + """ + self._filter_rule = filter_rule + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FilterObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/filter_rule.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/filter_rule.py new file mode 100644 index 000000000..dcd85303a --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/filter_rule.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FilterRule: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "FilterRule" + + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'Name', + 'value': 'Value' + } + + def __init__(self, name=None, value=None): + """FilterRule + + The model defined in huaweicloud sdk + + :param name: 指定规则按对象名前缀或后缀进行过滤。 + :type name: str + :param value: 指定的对象名关键字,根据Name元素定义的前缀或后缀,输入需要过滤的对象的关键字信息,字符越长匹配精度越高,最大可支持1024个字符。 + :type value: str + """ + + + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this FilterRule. + + 指定规则按对象名前缀或后缀进行过滤。 + + :return: The name of this FilterRule. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this FilterRule. + + 指定规则按对象名前缀或后缀进行过滤。 + + :param name: The name of this FilterRule. + :type name: str + """ + self._name = name + + @property + def value(self): + """Gets the value of this FilterRule. + + 指定的对象名关键字,根据Name元素定义的前缀或后缀,输入需要过滤的对象的关键字信息,字符越长匹配精度越高,最大可支持1024个字符。 + + :return: The value of this FilterRule. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this FilterRule. + + 指定的对象名关键字,根据Name元素定义的前缀或后缀,输入需要过滤的对象的关键字信息,字符越长匹配精度越高,最大可支持1024个字符。 + + :param value: The value of this FilterRule. + :type value: str + """ + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FilterRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/function_stage_configuration.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/function_stage_configuration.py new file mode 100644 index 000000000..c33c46c93 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/function_stage_configuration.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class FunctionStageConfiguration: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "FunctionStageConfiguration" + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'filter': 'TopicConfigurationFilter', + 'topic': 'str', + 'event': 'str', + 'function_stage': 'str' + } + + attribute_map = { + 'id': 'Id', + 'filter': 'Filter', + 'topic': 'Topic', + 'event': 'Event', + 'function_stage': 'FunctionStage' + } + + def __init__(self, id=None, filter=None, topic=None, event=None, function_stage=None): + """FunctionStageConfiguration + + The model defined in huaweicloud sdk + + :param id: 每项事件通知配置的唯一标识,若是用户未指定ID,系统将自动分配一个ID。 + :type id: str + :param filter: + :type filter: :class:`huaweicloudsdkobs.v1.TopicConfigurationFilter` + :param topic: 事件通知主题的URN,当OBS检测到桶中发生特定的事件后,将会发布通知消息至该主题,可以在[消息通知服务主题](https://console.huaweicloud.com/smn/?region=cn-north-4#/topics/list)部分找到具体值。 模板:<Topic>urn:smn:region:project_id:smn_topic</Topic> + :type topic: str + :param event: 需要发布通知消息的事件类型。 说明:在一个TopicConfiguration、FunctionStageConfiguration配置项中可以添加多个事件类型。 合法值: 上传对象操作可以取以下值: ObjectCreated:Put ObjectCreated:Post ObjectCreated:Copy ObjectCreated:CompleteMultipartUpload 或者使用通配符支持所有上传操作 ObjectCreated:* 删除对象操作可以取以下值: ObjectRemoved:Delete ObjectRemoved:DeleteMarkerCreated 或者使用通配符支持所有删除操作 ObjectRemoved:* + :type event: str + :param function_stage: 函数服务中函数的URN,当OBS检测到桶中发生特定的事件后,将会发送消息至函数服务调用执行该函数。 若添加父元素FunctionStageConfiguration,本元素是必选项。 + :type function_stage: str + """ + + + + self._id = None + self._filter = None + self._topic = None + self._event = None + self._function_stage = None + self.discriminator = None + + if id is not None: + self.id = id + if filter is not None: + self.filter = filter + if topic is not None: + self.topic = topic + if event is not None: + self.event = event + if function_stage is not None: + self.function_stage = function_stage + + @property + def id(self): + """Gets the id of this FunctionStageConfiguration. + + 每项事件通知配置的唯一标识,若是用户未指定ID,系统将自动分配一个ID。 + + :return: The id of this FunctionStageConfiguration. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FunctionStageConfiguration. + + 每项事件通知配置的唯一标识,若是用户未指定ID,系统将自动分配一个ID。 + + :param id: The id of this FunctionStageConfiguration. + :type id: str + """ + self._id = id + + @property + def filter(self): + """Gets the filter of this FunctionStageConfiguration. + + :return: The filter of this FunctionStageConfiguration. + :rtype: :class:`huaweicloudsdkobs.v1.TopicConfigurationFilter` + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this FunctionStageConfiguration. + + :param filter: The filter of this FunctionStageConfiguration. + :type filter: :class:`huaweicloudsdkobs.v1.TopicConfigurationFilter` + """ + self._filter = filter + + @property + def topic(self): + """Gets the topic of this FunctionStageConfiguration. + + 事件通知主题的URN,当OBS检测到桶中发生特定的事件后,将会发布通知消息至该主题,可以在[消息通知服务主题](https://console.huaweicloud.com/smn/?region=cn-north-4#/topics/list)部分找到具体值。 模板:urn:smn:region:project_id:smn_topic + + :return: The topic of this FunctionStageConfiguration. + :rtype: str + """ + return self._topic + + @topic.setter + def topic(self, topic): + """Sets the topic of this FunctionStageConfiguration. + + 事件通知主题的URN,当OBS检测到桶中发生特定的事件后,将会发布通知消息至该主题,可以在[消息通知服务主题](https://console.huaweicloud.com/smn/?region=cn-north-4#/topics/list)部分找到具体值。 模板:urn:smn:region:project_id:smn_topic + + :param topic: The topic of this FunctionStageConfiguration. + :type topic: str + """ + self._topic = topic + + @property + def event(self): + """Gets the event of this FunctionStageConfiguration. + + 需要发布通知消息的事件类型。 说明:在一个TopicConfiguration、FunctionStageConfiguration配置项中可以添加多个事件类型。 合法值: 上传对象操作可以取以下值: ObjectCreated:Put ObjectCreated:Post ObjectCreated:Copy ObjectCreated:CompleteMultipartUpload 或者使用通配符支持所有上传操作 ObjectCreated:* 删除对象操作可以取以下值: ObjectRemoved:Delete ObjectRemoved:DeleteMarkerCreated 或者使用通配符支持所有删除操作 ObjectRemoved:* + + :return: The event of this FunctionStageConfiguration. + :rtype: str + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this FunctionStageConfiguration. + + 需要发布通知消息的事件类型。 说明:在一个TopicConfiguration、FunctionStageConfiguration配置项中可以添加多个事件类型。 合法值: 上传对象操作可以取以下值: ObjectCreated:Put ObjectCreated:Post ObjectCreated:Copy ObjectCreated:CompleteMultipartUpload 或者使用通配符支持所有上传操作 ObjectCreated:* 删除对象操作可以取以下值: ObjectRemoved:Delete ObjectRemoved:DeleteMarkerCreated 或者使用通配符支持所有删除操作 ObjectRemoved:* + + :param event: The event of this FunctionStageConfiguration. + :type event: str + """ + self._event = event + + @property + def function_stage(self): + """Gets the function_stage of this FunctionStageConfiguration. + + 函数服务中函数的URN,当OBS检测到桶中发生特定的事件后,将会发送消息至函数服务调用执行该函数。 若添加父元素FunctionStageConfiguration,本元素是必选项。 + + :return: The function_stage of this FunctionStageConfiguration. + :rtype: str + """ + return self._function_stage + + @function_stage.setter + def function_stage(self, function_stage): + """Sets the function_stage of this FunctionStageConfiguration. + + 函数服务中函数的URN,当OBS检测到桶中发生特定的事件后,将会发送消息至函数服务调用执行该函数。 若添加父元素FunctionStageConfiguration,本元素是必选项。 + + :param function_stage: The function_stage of this FunctionStageConfiguration. + :type function_stage: str + """ + self._function_stage = function_stage + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FunctionStageConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_acl_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_acl_request.py new file mode 100644 index 000000000..87a20ee61 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_acl_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketAclRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "GetBucketAclRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'acl': 'str' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'acl': 'acl' + } + + def __init__(self, date=None, bucket_name=None, acl=None): + """GetBucketAclRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param acl: acl表示请求访问控制列表API。 + :type acl: str + """ + + + + self._date = None + self._bucket_name = None + self._acl = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.acl = acl + + @property + def date(self): + """Gets the date of this GetBucketAclRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this GetBucketAclRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketAclRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this GetBucketAclRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this GetBucketAclRequest. + + 请求的桶名称。 + + :return: The bucket_name of this GetBucketAclRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this GetBucketAclRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this GetBucketAclRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def acl(self): + """Gets the acl of this GetBucketAclRequest. + + acl表示请求访问控制列表API。 + + :return: The acl of this GetBucketAclRequest. + :rtype: str + """ + return self._acl + + @acl.setter + def acl(self, acl): + """Sets the acl of this GetBucketAclRequest. + + acl表示请求访问控制列表API。 + + :param acl: The acl of this GetBucketAclRequest. + :type acl: str + """ + self._acl = acl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketAclRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_acl_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_acl_response.py new file mode 100644 index 000000000..4fc7ae294 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_acl_response.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketAclResponse(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. + """ + xml_name = "GetBucketAclResponse" + + sensitive_list = [] + + openapi_types = { + 'owner': 'Owner', + 'access_control_list': 'AccessControlList', + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'owner': 'Owner', + 'access_control_list': 'AccessControlList', + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, owner=None, access_control_list=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """GetBucketAclResponse + + The model defined in huaweicloud sdk + + :param owner: + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + :param access_control_list: + :type access_control_list: :class:`huaweicloudsdkobs.v1.AccessControlList` + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(GetBucketAclResponse, self).__init__() + + self._owner = None + self._access_control_list = None + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if owner is not None: + self.owner = owner + if access_control_list is not None: + self.access_control_list = access_control_list + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def owner(self): + """Gets the owner of this GetBucketAclResponse. + + :return: The owner of this GetBucketAclResponse. + :rtype: :class:`huaweicloudsdkobs.v1.Owner` + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this GetBucketAclResponse. + + :param owner: The owner of this GetBucketAclResponse. + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + """ + self._owner = owner + + @property + def access_control_list(self): + """Gets the access_control_list of this GetBucketAclResponse. + + :return: The access_control_list of this GetBucketAclResponse. + :rtype: :class:`huaweicloudsdkobs.v1.AccessControlList` + """ + return self._access_control_list + + @access_control_list.setter + def access_control_list(self, access_control_list): + """Sets the access_control_list of this GetBucketAclResponse. + + :param access_control_list: The access_control_list of this GetBucketAclResponse. + :type access_control_list: :class:`huaweicloudsdkobs.v1.AccessControlList` + """ + self._access_control_list = access_control_list + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this GetBucketAclResponse. + + :return: The x_obs_id_2 of this GetBucketAclResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this GetBucketAclResponse. + + :param x_obs_id_2: The x_obs_id_2 of this GetBucketAclResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this GetBucketAclResponse. + + :return: The x_obs_request_id of this GetBucketAclResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this GetBucketAclResponse. + + :param x_obs_request_id: The x_obs_request_id of this GetBucketAclResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this GetBucketAclResponse. + + :return: The e_tag of this GetBucketAclResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this GetBucketAclResponse. + + :param e_tag: The e_tag of this GetBucketAclResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this GetBucketAclResponse. + + :return: The connection of this GetBucketAclResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this GetBucketAclResponse. + + :param connection: The connection of this GetBucketAclResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this GetBucketAclResponse. + + :return: The content_length of this GetBucketAclResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this GetBucketAclResponse. + + :param content_length: The content_length of this GetBucketAclResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this GetBucketAclResponse. + + :return: The date of this GetBucketAclResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketAclResponse. + + :param date: The date of this GetBucketAclResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketAclResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py new file mode 100644 index 000000000..e54956b1c --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_customdomain_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketCustomdomainRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "GetBucketCustomdomainRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'customdomain': 'str' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'customdomain': 'customdomain' + } + + def __init__(self, date=None, bucket_name=None, customdomain=None): + """GetBucketCustomdomainRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param customdomain: customdomain表示请求桶的自定义域名API。 + :type customdomain: str + """ + + + + self._date = None + self._bucket_name = None + self._customdomain = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.customdomain = customdomain + + @property + def date(self): + """Gets the date of this GetBucketCustomdomainRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this GetBucketCustomdomainRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketCustomdomainRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this GetBucketCustomdomainRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this GetBucketCustomdomainRequest. + + 请求的桶名称。 + + :return: The bucket_name of this GetBucketCustomdomainRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this GetBucketCustomdomainRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this GetBucketCustomdomainRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def customdomain(self): + """Gets the customdomain of this GetBucketCustomdomainRequest. + + customdomain表示请求桶的自定义域名API。 + + :return: The customdomain of this GetBucketCustomdomainRequest. + :rtype: str + """ + return self._customdomain + + @customdomain.setter + def customdomain(self, customdomain): + """Sets the customdomain of this GetBucketCustomdomainRequest. + + customdomain表示请求桶的自定义域名API。 + + :param customdomain: The customdomain of this GetBucketCustomdomainRequest. + :type customdomain: str + """ + self._customdomain = customdomain + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketCustomdomainRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py new file mode 100644 index 000000000..a7a934f6d --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_customdomain_response.py @@ -0,0 +1,268 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketCustomdomainResponse(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. + """ + xml_name = "GetBucketCustomdomainResponse" + + sensitive_list = [] + + openapi_types = { + 'domains': 'list[Domains]', + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'domains': 'Domains', + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, domains=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """GetBucketCustomdomainResponse + + The model defined in huaweicloud sdk + + :param domains: 自定义域名元素。 + :type domains: list[:class:`huaweicloudsdkobs.v1.Domains`] + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(GetBucketCustomdomainResponse, self).__init__() + + self._domains = None + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if domains is not None: + self.domains = domains + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def domains(self): + """Gets the domains of this GetBucketCustomdomainResponse. + + 自定义域名元素。 + + :return: The domains of this GetBucketCustomdomainResponse. + :rtype: list[:class:`huaweicloudsdkobs.v1.Domains`] + """ + return self._domains + + @domains.setter + def domains(self, domains): + """Sets the domains of this GetBucketCustomdomainResponse. + + 自定义域名元素。 + + :param domains: The domains of this GetBucketCustomdomainResponse. + :type domains: list[:class:`huaweicloudsdkobs.v1.Domains`] + """ + self._domains = domains + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this GetBucketCustomdomainResponse. + + :return: The x_obs_id_2 of this GetBucketCustomdomainResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this GetBucketCustomdomainResponse. + + :param x_obs_id_2: The x_obs_id_2 of this GetBucketCustomdomainResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this GetBucketCustomdomainResponse. + + :return: The x_obs_request_id of this GetBucketCustomdomainResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this GetBucketCustomdomainResponse. + + :param x_obs_request_id: The x_obs_request_id of this GetBucketCustomdomainResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this GetBucketCustomdomainResponse. + + :return: The e_tag of this GetBucketCustomdomainResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this GetBucketCustomdomainResponse. + + :param e_tag: The e_tag of this GetBucketCustomdomainResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this GetBucketCustomdomainResponse. + + :return: The connection of this GetBucketCustomdomainResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this GetBucketCustomdomainResponse. + + :param connection: The connection of this GetBucketCustomdomainResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this GetBucketCustomdomainResponse. + + :return: The content_length of this GetBucketCustomdomainResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this GetBucketCustomdomainResponse. + + :param content_length: The content_length of this GetBucketCustomdomainResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this GetBucketCustomdomainResponse. + + :return: The date of this GetBucketCustomdomainResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketCustomdomainResponse. + + :param date: The date of this GetBucketCustomdomainResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketCustomdomainResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py new file mode 100644 index 000000000..550067666 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_metadata_request.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketMetadataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "GetBucketMetadataRequest" + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'date': 'str', + 'origin': 'str', + 'access_control_request_headers': 'str' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'date': 'Date', + 'origin': 'Origin', + 'access_control_request_headers': 'Access-Control-Request-Headers' + } + + def __init__(self, bucket_name=None, date=None, origin=None, access_control_request_headers=None): + """GetBucketMetadataRequest + + The model defined in huaweicloud sdk + + :param bucket_name: 桶名称。 + :type bucket_name: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param origin: 预请求指定的跨域请求Origin(通常为域名)。 如果想要获取CORS配置信息,必添加该消息头。 + :type origin: str + :param access_control_request_headers: 实际请求可以带的HTTP头域,可以带多个头域。 如果想要获取CORS配置信息,可选添加该消息头。 + :type access_control_request_headers: str + """ + + + + self._bucket_name = None + self._date = None + self._origin = None + self._access_control_request_headers = None + self.discriminator = None + + self.bucket_name = bucket_name + if date is not None: + self.date = date + if origin is not None: + self.origin = origin + if access_control_request_headers is not None: + self.access_control_request_headers = access_control_request_headers + + @property + def bucket_name(self): + """Gets the bucket_name of this GetBucketMetadataRequest. + + 桶名称。 + + :return: The bucket_name of this GetBucketMetadataRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this GetBucketMetadataRequest. + + 桶名称。 + + :param bucket_name: The bucket_name of this GetBucketMetadataRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def date(self): + """Gets the date of this GetBucketMetadataRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this GetBucketMetadataRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketMetadataRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this GetBucketMetadataRequest. + :type date: str + """ + self._date = date + + @property + def origin(self): + """Gets the origin of this GetBucketMetadataRequest. + + 预请求指定的跨域请求Origin(通常为域名)。 如果想要获取CORS配置信息,必添加该消息头。 + + :return: The origin of this GetBucketMetadataRequest. + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this GetBucketMetadataRequest. + + 预请求指定的跨域请求Origin(通常为域名)。 如果想要获取CORS配置信息,必添加该消息头。 + + :param origin: The origin of this GetBucketMetadataRequest. + :type origin: str + """ + self._origin = origin + + @property + def access_control_request_headers(self): + """Gets the access_control_request_headers of this GetBucketMetadataRequest. + + 实际请求可以带的HTTP头域,可以带多个头域。 如果想要获取CORS配置信息,可选添加该消息头。 + + :return: The access_control_request_headers of this GetBucketMetadataRequest. + :rtype: str + """ + return self._access_control_request_headers + + @access_control_request_headers.setter + def access_control_request_headers(self, access_control_request_headers): + """Sets the access_control_request_headers of this GetBucketMetadataRequest. + + 实际请求可以带的HTTP头域,可以带多个头域。 如果想要获取CORS配置信息,可选添加该消息头。 + + :param access_control_request_headers: The access_control_request_headers of this GetBucketMetadataRequest. + :type access_control_request_headers: str + """ + self._access_control_request_headers = access_control_request_headers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketMetadataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py new file mode 100644 index 000000000..aa65949a4 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_metadata_response.py @@ -0,0 +1,539 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketMetadataResponse(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. + """ + xml_name = "GetBucketMetadataResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'x_obs_fs_file_interface': 'str', + 'x_obs_version': 'str', + 'access_control_allow_origin': 'str', + 'access_control_allow_methods': 'str', + 'x_obs_bucket_location': 'str', + 'connection': 'str', + 'x_obs_epid': 'str', + 'date': 'str', + 'access_control_allow_headers': 'str', + 'access_control_expose_headers': 'str', + 'e_tag': 'str', + 'x_obs_storage_class': 'str', + 'x_obs_az_redundancy': 'str', + 'content_length': 'str', + 'access_control_max_age': 'int', + 'x_obs_ies_location': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'x_obs_fs_file_interface': 'x-obs-fs-file-interface', + 'x_obs_version': 'x-obs-version', + 'access_control_allow_origin': 'Access-Control-Allow-Origin', + 'access_control_allow_methods': 'Access-Control-Allow-Methods', + 'x_obs_bucket_location': 'x-obs-bucket-location', + 'connection': 'Connection', + 'x_obs_epid': 'x-obs-epid', + 'date': 'Date', + 'access_control_allow_headers': 'Access-Control-Allow-Headers', + 'access_control_expose_headers': 'Access-Control-Expose-Headers', + 'e_tag': 'ETag', + 'x_obs_storage_class': 'x-obs-storage-class', + 'x_obs_az_redundancy': 'x-obs-az-redundancy', + 'content_length': 'Content-Length', + 'access_control_max_age': 'Access-Control-Max-Age', + 'x_obs_ies_location': 'x-obs-ies-location' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, x_obs_fs_file_interface=None, x_obs_version=None, access_control_allow_origin=None, access_control_allow_methods=None, x_obs_bucket_location=None, connection=None, x_obs_epid=None, date=None, access_control_allow_headers=None, access_control_expose_headers=None, e_tag=None, x_obs_storage_class=None, x_obs_az_redundancy=None, content_length=None, access_control_max_age=None, x_obs_ies_location=None): + """GetBucketMetadataResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param x_obs_fs_file_interface: + :type x_obs_fs_file_interface: str + :param x_obs_version: + :type x_obs_version: str + :param access_control_allow_origin: + :type access_control_allow_origin: str + :param access_control_allow_methods: + :type access_control_allow_methods: str + :param x_obs_bucket_location: + :type x_obs_bucket_location: str + :param connection: + :type connection: str + :param x_obs_epid: + :type x_obs_epid: str + :param date: + :type date: str + :param access_control_allow_headers: + :type access_control_allow_headers: str + :param access_control_expose_headers: + :type access_control_expose_headers: str + :param e_tag: + :type e_tag: str + :param x_obs_storage_class: + :type x_obs_storage_class: str + :param x_obs_az_redundancy: + :type x_obs_az_redundancy: str + :param content_length: + :type content_length: str + :param access_control_max_age: + :type access_control_max_age: int + :param x_obs_ies_location: + :type x_obs_ies_location: str + """ + + super(GetBucketMetadataResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._x_obs_fs_file_interface = None + self._x_obs_version = None + self._access_control_allow_origin = None + self._access_control_allow_methods = None + self._x_obs_bucket_location = None + self._connection = None + self._x_obs_epid = None + self._date = None + self._access_control_allow_headers = None + self._access_control_expose_headers = None + self._e_tag = None + self._x_obs_storage_class = None + self._x_obs_az_redundancy = None + self._content_length = None + self._access_control_max_age = None + self._x_obs_ies_location = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if x_obs_fs_file_interface is not None: + self.x_obs_fs_file_interface = x_obs_fs_file_interface + if x_obs_version is not None: + self.x_obs_version = x_obs_version + if access_control_allow_origin is not None: + self.access_control_allow_origin = access_control_allow_origin + if access_control_allow_methods is not None: + self.access_control_allow_methods = access_control_allow_methods + if x_obs_bucket_location is not None: + self.x_obs_bucket_location = x_obs_bucket_location + if connection is not None: + self.connection = connection + if x_obs_epid is not None: + self.x_obs_epid = x_obs_epid + if date is not None: + self.date = date + if access_control_allow_headers is not None: + self.access_control_allow_headers = access_control_allow_headers + if access_control_expose_headers is not None: + self.access_control_expose_headers = access_control_expose_headers + if e_tag is not None: + self.e_tag = e_tag + if x_obs_storage_class is not None: + self.x_obs_storage_class = x_obs_storage_class + if x_obs_az_redundancy is not None: + self.x_obs_az_redundancy = x_obs_az_redundancy + if content_length is not None: + self.content_length = content_length + if access_control_max_age is not None: + self.access_control_max_age = access_control_max_age + if x_obs_ies_location is not None: + self.x_obs_ies_location = x_obs_ies_location + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this GetBucketMetadataResponse. + + :return: The x_obs_id_2 of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this GetBucketMetadataResponse. + + :param x_obs_id_2: The x_obs_id_2 of this GetBucketMetadataResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this GetBucketMetadataResponse. + + :return: The x_obs_request_id of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this GetBucketMetadataResponse. + + :param x_obs_request_id: The x_obs_request_id of this GetBucketMetadataResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def x_obs_fs_file_interface(self): + """Gets the x_obs_fs_file_interface of this GetBucketMetadataResponse. + + :return: The x_obs_fs_file_interface of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_fs_file_interface + + @x_obs_fs_file_interface.setter + def x_obs_fs_file_interface(self, x_obs_fs_file_interface): + """Sets the x_obs_fs_file_interface of this GetBucketMetadataResponse. + + :param x_obs_fs_file_interface: The x_obs_fs_file_interface of this GetBucketMetadataResponse. + :type x_obs_fs_file_interface: str + """ + self._x_obs_fs_file_interface = x_obs_fs_file_interface + + @property + def x_obs_version(self): + """Gets the x_obs_version of this GetBucketMetadataResponse. + + :return: The x_obs_version of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_version + + @x_obs_version.setter + def x_obs_version(self, x_obs_version): + """Sets the x_obs_version of this GetBucketMetadataResponse. + + :param x_obs_version: The x_obs_version of this GetBucketMetadataResponse. + :type x_obs_version: str + """ + self._x_obs_version = x_obs_version + + @property + def access_control_allow_origin(self): + """Gets the access_control_allow_origin of this GetBucketMetadataResponse. + + :return: The access_control_allow_origin of this GetBucketMetadataResponse. + :rtype: str + """ + return self._access_control_allow_origin + + @access_control_allow_origin.setter + def access_control_allow_origin(self, access_control_allow_origin): + """Sets the access_control_allow_origin of this GetBucketMetadataResponse. + + :param access_control_allow_origin: The access_control_allow_origin of this GetBucketMetadataResponse. + :type access_control_allow_origin: str + """ + self._access_control_allow_origin = access_control_allow_origin + + @property + def access_control_allow_methods(self): + """Gets the access_control_allow_methods of this GetBucketMetadataResponse. + + :return: The access_control_allow_methods of this GetBucketMetadataResponse. + :rtype: str + """ + return self._access_control_allow_methods + + @access_control_allow_methods.setter + def access_control_allow_methods(self, access_control_allow_methods): + """Sets the access_control_allow_methods of this GetBucketMetadataResponse. + + :param access_control_allow_methods: The access_control_allow_methods of this GetBucketMetadataResponse. + :type access_control_allow_methods: str + """ + self._access_control_allow_methods = access_control_allow_methods + + @property + def x_obs_bucket_location(self): + """Gets the x_obs_bucket_location of this GetBucketMetadataResponse. + + :return: The x_obs_bucket_location of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_bucket_location + + @x_obs_bucket_location.setter + def x_obs_bucket_location(self, x_obs_bucket_location): + """Sets the x_obs_bucket_location of this GetBucketMetadataResponse. + + :param x_obs_bucket_location: The x_obs_bucket_location of this GetBucketMetadataResponse. + :type x_obs_bucket_location: str + """ + self._x_obs_bucket_location = x_obs_bucket_location + + @property + def connection(self): + """Gets the connection of this GetBucketMetadataResponse. + + :return: The connection of this GetBucketMetadataResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this GetBucketMetadataResponse. + + :param connection: The connection of this GetBucketMetadataResponse. + :type connection: str + """ + self._connection = connection + + @property + def x_obs_epid(self): + """Gets the x_obs_epid of this GetBucketMetadataResponse. + + :return: The x_obs_epid of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_epid + + @x_obs_epid.setter + def x_obs_epid(self, x_obs_epid): + """Sets the x_obs_epid of this GetBucketMetadataResponse. + + :param x_obs_epid: The x_obs_epid of this GetBucketMetadataResponse. + :type x_obs_epid: str + """ + self._x_obs_epid = x_obs_epid + + @property + def date(self): + """Gets the date of this GetBucketMetadataResponse. + + :return: The date of this GetBucketMetadataResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketMetadataResponse. + + :param date: The date of this GetBucketMetadataResponse. + :type date: str + """ + self._date = date + + @property + def access_control_allow_headers(self): + """Gets the access_control_allow_headers of this GetBucketMetadataResponse. + + :return: The access_control_allow_headers of this GetBucketMetadataResponse. + :rtype: str + """ + return self._access_control_allow_headers + + @access_control_allow_headers.setter + def access_control_allow_headers(self, access_control_allow_headers): + """Sets the access_control_allow_headers of this GetBucketMetadataResponse. + + :param access_control_allow_headers: The access_control_allow_headers of this GetBucketMetadataResponse. + :type access_control_allow_headers: str + """ + self._access_control_allow_headers = access_control_allow_headers + + @property + def access_control_expose_headers(self): + """Gets the access_control_expose_headers of this GetBucketMetadataResponse. + + :return: The access_control_expose_headers of this GetBucketMetadataResponse. + :rtype: str + """ + return self._access_control_expose_headers + + @access_control_expose_headers.setter + def access_control_expose_headers(self, access_control_expose_headers): + """Sets the access_control_expose_headers of this GetBucketMetadataResponse. + + :param access_control_expose_headers: The access_control_expose_headers of this GetBucketMetadataResponse. + :type access_control_expose_headers: str + """ + self._access_control_expose_headers = access_control_expose_headers + + @property + def e_tag(self): + """Gets the e_tag of this GetBucketMetadataResponse. + + :return: The e_tag of this GetBucketMetadataResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this GetBucketMetadataResponse. + + :param e_tag: The e_tag of this GetBucketMetadataResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def x_obs_storage_class(self): + """Gets the x_obs_storage_class of this GetBucketMetadataResponse. + + :return: The x_obs_storage_class of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_storage_class + + @x_obs_storage_class.setter + def x_obs_storage_class(self, x_obs_storage_class): + """Sets the x_obs_storage_class of this GetBucketMetadataResponse. + + :param x_obs_storage_class: The x_obs_storage_class of this GetBucketMetadataResponse. + :type x_obs_storage_class: str + """ + self._x_obs_storage_class = x_obs_storage_class + + @property + def x_obs_az_redundancy(self): + """Gets the x_obs_az_redundancy of this GetBucketMetadataResponse. + + :return: The x_obs_az_redundancy of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_az_redundancy + + @x_obs_az_redundancy.setter + def x_obs_az_redundancy(self, x_obs_az_redundancy): + """Sets the x_obs_az_redundancy of this GetBucketMetadataResponse. + + :param x_obs_az_redundancy: The x_obs_az_redundancy of this GetBucketMetadataResponse. + :type x_obs_az_redundancy: str + """ + self._x_obs_az_redundancy = x_obs_az_redundancy + + @property + def content_length(self): + """Gets the content_length of this GetBucketMetadataResponse. + + :return: The content_length of this GetBucketMetadataResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this GetBucketMetadataResponse. + + :param content_length: The content_length of this GetBucketMetadataResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def access_control_max_age(self): + """Gets the access_control_max_age of this GetBucketMetadataResponse. + + :return: The access_control_max_age of this GetBucketMetadataResponse. + :rtype: int + """ + return self._access_control_max_age + + @access_control_max_age.setter + def access_control_max_age(self, access_control_max_age): + """Sets the access_control_max_age of this GetBucketMetadataResponse. + + :param access_control_max_age: The access_control_max_age of this GetBucketMetadataResponse. + :type access_control_max_age: int + """ + self._access_control_max_age = access_control_max_age + + @property + def x_obs_ies_location(self): + """Gets the x_obs_ies_location of this GetBucketMetadataResponse. + + :return: The x_obs_ies_location of this GetBucketMetadataResponse. + :rtype: str + """ + return self._x_obs_ies_location + + @x_obs_ies_location.setter + def x_obs_ies_location(self, x_obs_ies_location): + """Sets the x_obs_ies_location of this GetBucketMetadataResponse. + + :param x_obs_ies_location: The x_obs_ies_location of this GetBucketMetadataResponse. + :type x_obs_ies_location: str + """ + self._x_obs_ies_location = x_obs_ies_location + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketMetadataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_notification_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_notification_request.py new file mode 100644 index 000000000..04f7af106 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_notification_request.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketNotificationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "GetBucketNotificationRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'notification': 'str' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'notification': 'notification' + } + + def __init__(self, date=None, bucket_name=None, notification=None): + """GetBucketNotificationRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param notification: notification表示请求桶的消息通知配置API。 + :type notification: str + """ + + + + self._date = None + self._bucket_name = None + self._notification = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.notification = notification + + @property + def date(self): + """Gets the date of this GetBucketNotificationRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this GetBucketNotificationRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketNotificationRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this GetBucketNotificationRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this GetBucketNotificationRequest. + + 请求的桶名称。 + + :return: The bucket_name of this GetBucketNotificationRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this GetBucketNotificationRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this GetBucketNotificationRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def notification(self): + """Gets the notification of this GetBucketNotificationRequest. + + notification表示请求桶的消息通知配置API。 + + :return: The notification of this GetBucketNotificationRequest. + :rtype: str + """ + return self._notification + + @notification.setter + def notification(self, notification): + """Sets the notification of this GetBucketNotificationRequest. + + notification表示请求桶的消息通知配置API。 + + :param notification: The notification of this GetBucketNotificationRequest. + :type notification: str + """ + self._notification = notification + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketNotificationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_notification_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_notification_response.py new file mode 100644 index 000000000..c981a6582 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_bucket_notification_response.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetBucketNotificationResponse(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. + """ + xml_name = "GetBucketNotificationResponse" + + sensitive_list = [] + + openapi_types = { + 'notification_configuration': 'SetBucketNotificationRequestBody', + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'notification_configuration': 'NotificationConfiguration', + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, notification_configuration=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """GetBucketNotificationResponse + + The model defined in huaweicloud sdk + + :param notification_configuration: + :type notification_configuration: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody` + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(GetBucketNotificationResponse, self).__init__() + + self._notification_configuration = None + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if notification_configuration is not None: + self.notification_configuration = notification_configuration + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def notification_configuration(self): + """Gets the notification_configuration of this GetBucketNotificationResponse. + + :return: The notification_configuration of this GetBucketNotificationResponse. + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody` + """ + return self._notification_configuration + + @notification_configuration.setter + def notification_configuration(self, notification_configuration): + """Sets the notification_configuration of this GetBucketNotificationResponse. + + :param notification_configuration: The notification_configuration of this GetBucketNotificationResponse. + :type notification_configuration: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody` + """ + self._notification_configuration = notification_configuration + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this GetBucketNotificationResponse. + + :return: The x_obs_id_2 of this GetBucketNotificationResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this GetBucketNotificationResponse. + + :param x_obs_id_2: The x_obs_id_2 of this GetBucketNotificationResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this GetBucketNotificationResponse. + + :return: The x_obs_request_id of this GetBucketNotificationResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this GetBucketNotificationResponse. + + :param x_obs_request_id: The x_obs_request_id of this GetBucketNotificationResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this GetBucketNotificationResponse. + + :return: The e_tag of this GetBucketNotificationResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this GetBucketNotificationResponse. + + :param e_tag: The e_tag of this GetBucketNotificationResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this GetBucketNotificationResponse. + + :return: The connection of this GetBucketNotificationResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this GetBucketNotificationResponse. + + :param connection: The connection of this GetBucketNotificationResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this GetBucketNotificationResponse. + + :return: The content_length of this GetBucketNotificationResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this GetBucketNotificationResponse. + + :param content_length: The content_length of this GetBucketNotificationResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this GetBucketNotificationResponse. + + :return: The date of this GetBucketNotificationResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetBucketNotificationResponse. + + :param date: The date of this GetBucketNotificationResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetBucketNotificationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_metadata_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_metadata_request.py new file mode 100644 index 000000000..4e9c519f6 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_metadata_request.py @@ -0,0 +1,404 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetObjectMetadataRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "GetObjectMetadataRequest" + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'object_key': 'str', + 'date': 'str', + 'version_id': 'str', + 'origin': 'str', + 'access_control_request_headers': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_server_side_encryption_customer_key': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str', + 'success_action_redirect': 'str', + 'x_obs_expires': 'int' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'object_key': 'object_key', + 'date': 'Date', + 'version_id': 'versionId', + 'origin': 'Origin', + 'access_control_request_headers': 'Access-Control-Request-Headers', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_server_side_encryption_customer_key': 'x-obs-server-side-encryption-customer-key', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5', + 'success_action_redirect': 'success-action-redirect', + 'x_obs_expires': 'x-obs-expires' + } + + def __init__(self, bucket_name=None, object_key=None, date=None, version_id=None, origin=None, access_control_request_headers=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_server_side_encryption_customer_key=None, x_obs_server_side_encryption_customer_key_md5=None, success_action_redirect=None, x_obs_expires=None): + """GetObjectMetadataRequest + + The model defined in huaweicloud sdk + + :param bucket_name: 桶名称 + :type bucket_name: str + :param object_key: 通过此请求获取元数据的对象名称。 + :type object_key: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param version_id: 对象的版本号。 + :type version_id: str + :param origin: 预请求指定的跨域请求Origin(通常为域名)。 + :type origin: str + :param access_control_request_headers: 实际请求可以带的HTTP头域,可以带多个头域。 + :type access_control_request_headers: str + :param x_obs_server_side_encryption_customer_algorithm: SSE-C方式下使用该头域,该头域表示解密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm:AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_server_side_encryption_customer_key: SSE-C方式下使用该头域,该头域表示解密使用的密钥。 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + :type x_obs_server_side_encryption_customer_key: str + :param x_obs_server_side_encryption_customer_key_md5: SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束: 该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + :type x_obs_server_side_encryption_customer_key_md5: str + :param success_action_redirect: 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 + :type success_action_redirect: str + :param x_obs_expires: 表示对象的过期时间,单位是天。过期之后对象会被自动删除。(从对象最后修改时间开始计算) 此字段对于每个对象仅支持上传时配置,不支持后期通过修改元数据接口修改。 示例:x-obs-expires:3 + :type x_obs_expires: int + """ + + + + self._bucket_name = None + self._object_key = None + self._date = None + self._version_id = None + self._origin = None + self._access_control_request_headers = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_server_side_encryption_customer_key = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self._success_action_redirect = None + self._x_obs_expires = None + self.discriminator = None + + self.bucket_name = bucket_name + self.object_key = object_key + if date is not None: + self.date = date + if version_id is not None: + self.version_id = version_id + self.origin = origin + if access_control_request_headers is not None: + self.access_control_request_headers = access_control_request_headers + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_server_side_encryption_customer_key is not None: + self.x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + if success_action_redirect is not None: + self.success_action_redirect = success_action_redirect + if x_obs_expires is not None: + self.x_obs_expires = x_obs_expires + + @property + def bucket_name(self): + """Gets the bucket_name of this GetObjectMetadataRequest. + + 桶名称 + + :return: The bucket_name of this GetObjectMetadataRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this GetObjectMetadataRequest. + + 桶名称 + + :param bucket_name: The bucket_name of this GetObjectMetadataRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def object_key(self): + """Gets the object_key of this GetObjectMetadataRequest. + + 通过此请求获取元数据的对象名称。 + + :return: The object_key of this GetObjectMetadataRequest. + :rtype: str + """ + return self._object_key + + @object_key.setter + def object_key(self, object_key): + """Sets the object_key of this GetObjectMetadataRequest. + + 通过此请求获取元数据的对象名称。 + + :param object_key: The object_key of this GetObjectMetadataRequest. + :type object_key: str + """ + self._object_key = object_key + + @property + def date(self): + """Gets the date of this GetObjectMetadataRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this GetObjectMetadataRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetObjectMetadataRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this GetObjectMetadataRequest. + :type date: str + """ + self._date = date + + @property + def version_id(self): + """Gets the version_id of this GetObjectMetadataRequest. + + 对象的版本号。 + + :return: The version_id of this GetObjectMetadataRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this GetObjectMetadataRequest. + + 对象的版本号。 + + :param version_id: The version_id of this GetObjectMetadataRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def origin(self): + """Gets the origin of this GetObjectMetadataRequest. + + 预请求指定的跨域请求Origin(通常为域名)。 + + :return: The origin of this GetObjectMetadataRequest. + :rtype: str + """ + return self._origin + + @origin.setter + def origin(self, origin): + """Sets the origin of this GetObjectMetadataRequest. + + 预请求指定的跨域请求Origin(通常为域名)。 + + :param origin: The origin of this GetObjectMetadataRequest. + :type origin: str + """ + self._origin = origin + + @property + def access_control_request_headers(self): + """Gets the access_control_request_headers of this GetObjectMetadataRequest. + + 实际请求可以带的HTTP头域,可以带多个头域。 + + :return: The access_control_request_headers of this GetObjectMetadataRequest. + :rtype: str + """ + return self._access_control_request_headers + + @access_control_request_headers.setter + def access_control_request_headers(self, access_control_request_headers): + """Sets the access_control_request_headers of this GetObjectMetadataRequest. + + 实际请求可以带的HTTP头域,可以带多个头域。 + + :param access_control_request_headers: The access_control_request_headers of this GetObjectMetadataRequest. + :type access_control_request_headers: str + """ + self._access_control_request_headers = access_control_request_headers + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest. + + SSE-C方式下使用该头域,该头域表示解密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm:AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :return: The x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest. + + SSE-C方式下使用该头域,该头域表示解密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm:AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataRequest. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_server_side_encryption_customer_key(self): + """Gets the x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest. + + SSE-C方式下使用该头域,该头域表示解密使用的密钥。 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :return: The x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key + + @x_obs_server_side_encryption_customer_key.setter + def x_obs_server_side_encryption_customer_key(self, x_obs_server_side_encryption_customer_key): + """Sets the x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest. + + SSE-C方式下使用该头域,该头域表示解密使用的密钥。 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :param x_obs_server_side_encryption_customer_key: The x_obs_server_side_encryption_customer_key of this GetObjectMetadataRequest. + :type x_obs_server_side_encryption_customer_key: str + """ + self._x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束: 该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + + :return: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束: 该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataRequest. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def success_action_redirect(self): + """Gets the success_action_redirect of this GetObjectMetadataRequest. + + 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 + + :return: The success_action_redirect of this GetObjectMetadataRequest. + :rtype: str + """ + return self._success_action_redirect + + @success_action_redirect.setter + def success_action_redirect(self, success_action_redirect): + """Sets the success_action_redirect of this GetObjectMetadataRequest. + + 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 + + :param success_action_redirect: The success_action_redirect of this GetObjectMetadataRequest. + :type success_action_redirect: str + """ + self._success_action_redirect = success_action_redirect + + @property + def x_obs_expires(self): + """Gets the x_obs_expires of this GetObjectMetadataRequest. + + 表示对象的过期时间,单位是天。过期之后对象会被自动删除。(从对象最后修改时间开始计算) 此字段对于每个对象仅支持上传时配置,不支持后期通过修改元数据接口修改。 示例:x-obs-expires:3 + + :return: The x_obs_expires of this GetObjectMetadataRequest. + :rtype: int + """ + return self._x_obs_expires + + @x_obs_expires.setter + def x_obs_expires(self, x_obs_expires): + """Sets the x_obs_expires of this GetObjectMetadataRequest. + + 表示对象的过期时间,单位是天。过期之后对象会被自动删除。(从对象最后修改时间开始计算) 此字段对于每个对象仅支持上传时配置,不支持后期通过修改元数据接口修改。 示例:x-obs-expires:3 + + :param x_obs_expires: The x_obs_expires of this GetObjectMetadataRequest. + :type x_obs_expires: int + """ + self._x_obs_expires = x_obs_expires + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetObjectMetadataRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_metadata_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_metadata_response.py new file mode 100644 index 000000000..136e27e64 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_metadata_response.py @@ -0,0 +1,689 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetObjectMetadataResponse(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. + """ + xml_name = "GetObjectMetadataResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'x_obs_hash_crc64ecma': 'str', + 'access_control_allow_origin': 'str', + 'x_obs_server_side_encryption': 'str', + 'x_obs_restore': 'str', + 'x_obs_object_type': 'str', + 'x_obs_next_append_position': 'int', + 'access_control_allow_methods': 'str', + 'connection': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str', + 'x_obs_expiration': 'str', + 'date': 'str', + 'access_control_allow_headers': 'str', + 'x_obs_upload_id': 'str', + 'access_control_expose_headers': 'str', + 'e_tag': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_storage_class': 'str', + 'x_obs_server_side_encryption_kms_key_id': 'str', + 'content_length': 'str', + 'access_control_max_age': 'int', + 'x_obs_website_redirect_location': 'str', + 'x_obs_version_id': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'x_obs_hash_crc64ecma': 'x-obs-hash-crc64ecma', + 'access_control_allow_origin': 'Access-Control-Allow-Origin', + 'x_obs_server_side_encryption': 'x-obs-server-side-encryption', + 'x_obs_restore': 'x-obs-restore', + 'x_obs_object_type': 'x-obs-object-type', + 'x_obs_next_append_position': 'x-obs-next-append-position', + 'access_control_allow_methods': 'Access-Control-Allow-Methods', + 'connection': 'Connection', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5', + 'x_obs_expiration': 'x-obs-expiration', + 'date': 'Date', + 'access_control_allow_headers': 'Access-Control-Allow-Headers', + 'x_obs_upload_id': 'x-obs-uploadId', + 'access_control_expose_headers': 'Access-Control-Expose-Headers', + 'e_tag': 'ETag', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_storage_class': 'x-obs-storage-class', + 'x_obs_server_side_encryption_kms_key_id': 'x-obs-server-side-encryption-kms-key-id', + 'content_length': 'Content-Length', + 'access_control_max_age': 'Access-Control-Max-Age', + 'x_obs_website_redirect_location': 'x-obs-website-redirect-location', + 'x_obs_version_id': 'x-obs-version-id' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, x_obs_hash_crc64ecma=None, access_control_allow_origin=None, x_obs_server_side_encryption=None, x_obs_restore=None, x_obs_object_type=None, x_obs_next_append_position=None, access_control_allow_methods=None, connection=None, x_obs_server_side_encryption_customer_key_md5=None, x_obs_expiration=None, date=None, access_control_allow_headers=None, x_obs_upload_id=None, access_control_expose_headers=None, e_tag=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_storage_class=None, x_obs_server_side_encryption_kms_key_id=None, content_length=None, access_control_max_age=None, x_obs_website_redirect_location=None, x_obs_version_id=None): + """GetObjectMetadataResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param x_obs_hash_crc64ecma: + :type x_obs_hash_crc64ecma: str + :param access_control_allow_origin: + :type access_control_allow_origin: str + :param x_obs_server_side_encryption: + :type x_obs_server_side_encryption: str + :param x_obs_restore: + :type x_obs_restore: str + :param x_obs_object_type: + :type x_obs_object_type: str + :param x_obs_next_append_position: + :type x_obs_next_append_position: int + :param access_control_allow_methods: + :type access_control_allow_methods: str + :param connection: + :type connection: str + :param x_obs_server_side_encryption_customer_key_md5: + :type x_obs_server_side_encryption_customer_key_md5: str + :param x_obs_expiration: + :type x_obs_expiration: str + :param date: + :type date: str + :param access_control_allow_headers: + :type access_control_allow_headers: str + :param x_obs_upload_id: + :type x_obs_upload_id: str + :param access_control_expose_headers: + :type access_control_expose_headers: str + :param e_tag: + :type e_tag: str + :param x_obs_server_side_encryption_customer_algorithm: + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_storage_class: + :type x_obs_storage_class: str + :param x_obs_server_side_encryption_kms_key_id: + :type x_obs_server_side_encryption_kms_key_id: str + :param content_length: + :type content_length: str + :param access_control_max_age: + :type access_control_max_age: int + :param x_obs_website_redirect_location: + :type x_obs_website_redirect_location: str + :param x_obs_version_id: + :type x_obs_version_id: str + """ + + super(GetObjectMetadataResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._x_obs_hash_crc64ecma = None + self._access_control_allow_origin = None + self._x_obs_server_side_encryption = None + self._x_obs_restore = None + self._x_obs_object_type = None + self._x_obs_next_append_position = None + self._access_control_allow_methods = None + self._connection = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self._x_obs_expiration = None + self._date = None + self._access_control_allow_headers = None + self._x_obs_upload_id = None + self._access_control_expose_headers = None + self._e_tag = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_storage_class = None + self._x_obs_server_side_encryption_kms_key_id = None + self._content_length = None + self._access_control_max_age = None + self._x_obs_website_redirect_location = None + self._x_obs_version_id = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if x_obs_hash_crc64ecma is not None: + self.x_obs_hash_crc64ecma = x_obs_hash_crc64ecma + if access_control_allow_origin is not None: + self.access_control_allow_origin = access_control_allow_origin + if x_obs_server_side_encryption is not None: + self.x_obs_server_side_encryption = x_obs_server_side_encryption + if x_obs_restore is not None: + self.x_obs_restore = x_obs_restore + if x_obs_object_type is not None: + self.x_obs_object_type = x_obs_object_type + if x_obs_next_append_position is not None: + self.x_obs_next_append_position = x_obs_next_append_position + if access_control_allow_methods is not None: + self.access_control_allow_methods = access_control_allow_methods + if connection is not None: + self.connection = connection + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + if x_obs_expiration is not None: + self.x_obs_expiration = x_obs_expiration + if date is not None: + self.date = date + if access_control_allow_headers is not None: + self.access_control_allow_headers = access_control_allow_headers + if x_obs_upload_id is not None: + self.x_obs_upload_id = x_obs_upload_id + if access_control_expose_headers is not None: + self.access_control_expose_headers = access_control_expose_headers + if e_tag is not None: + self.e_tag = e_tag + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_storage_class is not None: + self.x_obs_storage_class = x_obs_storage_class + if x_obs_server_side_encryption_kms_key_id is not None: + self.x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + if content_length is not None: + self.content_length = content_length + if access_control_max_age is not None: + self.access_control_max_age = access_control_max_age + if x_obs_website_redirect_location is not None: + self.x_obs_website_redirect_location = x_obs_website_redirect_location + if x_obs_version_id is not None: + self.x_obs_version_id = x_obs_version_id + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this GetObjectMetadataResponse. + + :return: The x_obs_id_2 of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this GetObjectMetadataResponse. + + :param x_obs_id_2: The x_obs_id_2 of this GetObjectMetadataResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this GetObjectMetadataResponse. + + :return: The x_obs_request_id of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this GetObjectMetadataResponse. + + :param x_obs_request_id: The x_obs_request_id of this GetObjectMetadataResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def x_obs_hash_crc64ecma(self): + """Gets the x_obs_hash_crc64ecma of this GetObjectMetadataResponse. + + :return: The x_obs_hash_crc64ecma of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_hash_crc64ecma + + @x_obs_hash_crc64ecma.setter + def x_obs_hash_crc64ecma(self, x_obs_hash_crc64ecma): + """Sets the x_obs_hash_crc64ecma of this GetObjectMetadataResponse. + + :param x_obs_hash_crc64ecma: The x_obs_hash_crc64ecma of this GetObjectMetadataResponse. + :type x_obs_hash_crc64ecma: str + """ + self._x_obs_hash_crc64ecma = x_obs_hash_crc64ecma + + @property + def access_control_allow_origin(self): + """Gets the access_control_allow_origin of this GetObjectMetadataResponse. + + :return: The access_control_allow_origin of this GetObjectMetadataResponse. + :rtype: str + """ + return self._access_control_allow_origin + + @access_control_allow_origin.setter + def access_control_allow_origin(self, access_control_allow_origin): + """Sets the access_control_allow_origin of this GetObjectMetadataResponse. + + :param access_control_allow_origin: The access_control_allow_origin of this GetObjectMetadataResponse. + :type access_control_allow_origin: str + """ + self._access_control_allow_origin = access_control_allow_origin + + @property + def x_obs_server_side_encryption(self): + """Gets the x_obs_server_side_encryption of this GetObjectMetadataResponse. + + :return: The x_obs_server_side_encryption of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption + + @x_obs_server_side_encryption.setter + def x_obs_server_side_encryption(self, x_obs_server_side_encryption): + """Sets the x_obs_server_side_encryption of this GetObjectMetadataResponse. + + :param x_obs_server_side_encryption: The x_obs_server_side_encryption of this GetObjectMetadataResponse. + :type x_obs_server_side_encryption: str + """ + self._x_obs_server_side_encryption = x_obs_server_side_encryption + + @property + def x_obs_restore(self): + """Gets the x_obs_restore of this GetObjectMetadataResponse. + + :return: The x_obs_restore of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_restore + + @x_obs_restore.setter + def x_obs_restore(self, x_obs_restore): + """Sets the x_obs_restore of this GetObjectMetadataResponse. + + :param x_obs_restore: The x_obs_restore of this GetObjectMetadataResponse. + :type x_obs_restore: str + """ + self._x_obs_restore = x_obs_restore + + @property + def x_obs_object_type(self): + """Gets the x_obs_object_type of this GetObjectMetadataResponse. + + :return: The x_obs_object_type of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_object_type + + @x_obs_object_type.setter + def x_obs_object_type(self, x_obs_object_type): + """Sets the x_obs_object_type of this GetObjectMetadataResponse. + + :param x_obs_object_type: The x_obs_object_type of this GetObjectMetadataResponse. + :type x_obs_object_type: str + """ + self._x_obs_object_type = x_obs_object_type + + @property + def x_obs_next_append_position(self): + """Gets the x_obs_next_append_position of this GetObjectMetadataResponse. + + :return: The x_obs_next_append_position of this GetObjectMetadataResponse. + :rtype: int + """ + return self._x_obs_next_append_position + + @x_obs_next_append_position.setter + def x_obs_next_append_position(self, x_obs_next_append_position): + """Sets the x_obs_next_append_position of this GetObjectMetadataResponse. + + :param x_obs_next_append_position: The x_obs_next_append_position of this GetObjectMetadataResponse. + :type x_obs_next_append_position: int + """ + self._x_obs_next_append_position = x_obs_next_append_position + + @property + def access_control_allow_methods(self): + """Gets the access_control_allow_methods of this GetObjectMetadataResponse. + + :return: The access_control_allow_methods of this GetObjectMetadataResponse. + :rtype: str + """ + return self._access_control_allow_methods + + @access_control_allow_methods.setter + def access_control_allow_methods(self, access_control_allow_methods): + """Sets the access_control_allow_methods of this GetObjectMetadataResponse. + + :param access_control_allow_methods: The access_control_allow_methods of this GetObjectMetadataResponse. + :type access_control_allow_methods: str + """ + self._access_control_allow_methods = access_control_allow_methods + + @property + def connection(self): + """Gets the connection of this GetObjectMetadataResponse. + + :return: The connection of this GetObjectMetadataResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this GetObjectMetadataResponse. + + :param connection: The connection of this GetObjectMetadataResponse. + :type connection: str + """ + self._connection = connection + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataResponse. + + :return: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataResponse. + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectMetadataResponse. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def x_obs_expiration(self): + """Gets the x_obs_expiration of this GetObjectMetadataResponse. + + :return: The x_obs_expiration of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_expiration + + @x_obs_expiration.setter + def x_obs_expiration(self, x_obs_expiration): + """Sets the x_obs_expiration of this GetObjectMetadataResponse. + + :param x_obs_expiration: The x_obs_expiration of this GetObjectMetadataResponse. + :type x_obs_expiration: str + """ + self._x_obs_expiration = x_obs_expiration + + @property + def date(self): + """Gets the date of this GetObjectMetadataResponse. + + :return: The date of this GetObjectMetadataResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetObjectMetadataResponse. + + :param date: The date of this GetObjectMetadataResponse. + :type date: str + """ + self._date = date + + @property + def access_control_allow_headers(self): + """Gets the access_control_allow_headers of this GetObjectMetadataResponse. + + :return: The access_control_allow_headers of this GetObjectMetadataResponse. + :rtype: str + """ + return self._access_control_allow_headers + + @access_control_allow_headers.setter + def access_control_allow_headers(self, access_control_allow_headers): + """Sets the access_control_allow_headers of this GetObjectMetadataResponse. + + :param access_control_allow_headers: The access_control_allow_headers of this GetObjectMetadataResponse. + :type access_control_allow_headers: str + """ + self._access_control_allow_headers = access_control_allow_headers + + @property + def x_obs_upload_id(self): + """Gets the x_obs_upload_id of this GetObjectMetadataResponse. + + :return: The x_obs_upload_id of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_upload_id + + @x_obs_upload_id.setter + def x_obs_upload_id(self, x_obs_upload_id): + """Sets the x_obs_upload_id of this GetObjectMetadataResponse. + + :param x_obs_upload_id: The x_obs_upload_id of this GetObjectMetadataResponse. + :type x_obs_upload_id: str + """ + self._x_obs_upload_id = x_obs_upload_id + + @property + def access_control_expose_headers(self): + """Gets the access_control_expose_headers of this GetObjectMetadataResponse. + + :return: The access_control_expose_headers of this GetObjectMetadataResponse. + :rtype: str + """ + return self._access_control_expose_headers + + @access_control_expose_headers.setter + def access_control_expose_headers(self, access_control_expose_headers): + """Sets the access_control_expose_headers of this GetObjectMetadataResponse. + + :param access_control_expose_headers: The access_control_expose_headers of this GetObjectMetadataResponse. + :type access_control_expose_headers: str + """ + self._access_control_expose_headers = access_control_expose_headers + + @property + def e_tag(self): + """Gets the e_tag of this GetObjectMetadataResponse. + + :return: The e_tag of this GetObjectMetadataResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this GetObjectMetadataResponse. + + :param e_tag: The e_tag of this GetObjectMetadataResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataResponse. + + :return: The x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataResponse. + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this GetObjectMetadataResponse. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_storage_class(self): + """Gets the x_obs_storage_class of this GetObjectMetadataResponse. + + :return: The x_obs_storage_class of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_storage_class + + @x_obs_storage_class.setter + def x_obs_storage_class(self, x_obs_storage_class): + """Sets the x_obs_storage_class of this GetObjectMetadataResponse. + + :param x_obs_storage_class: The x_obs_storage_class of this GetObjectMetadataResponse. + :type x_obs_storage_class: str + """ + self._x_obs_storage_class = x_obs_storage_class + + @property + def x_obs_server_side_encryption_kms_key_id(self): + """Gets the x_obs_server_side_encryption_kms_key_id of this GetObjectMetadataResponse. + + :return: The x_obs_server_side_encryption_kms_key_id of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_kms_key_id + + @x_obs_server_side_encryption_kms_key_id.setter + def x_obs_server_side_encryption_kms_key_id(self, x_obs_server_side_encryption_kms_key_id): + """Sets the x_obs_server_side_encryption_kms_key_id of this GetObjectMetadataResponse. + + :param x_obs_server_side_encryption_kms_key_id: The x_obs_server_side_encryption_kms_key_id of this GetObjectMetadataResponse. + :type x_obs_server_side_encryption_kms_key_id: str + """ + self._x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + + @property + def content_length(self): + """Gets the content_length of this GetObjectMetadataResponse. + + :return: The content_length of this GetObjectMetadataResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this GetObjectMetadataResponse. + + :param content_length: The content_length of this GetObjectMetadataResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def access_control_max_age(self): + """Gets the access_control_max_age of this GetObjectMetadataResponse. + + :return: The access_control_max_age of this GetObjectMetadataResponse. + :rtype: int + """ + return self._access_control_max_age + + @access_control_max_age.setter + def access_control_max_age(self, access_control_max_age): + """Sets the access_control_max_age of this GetObjectMetadataResponse. + + :param access_control_max_age: The access_control_max_age of this GetObjectMetadataResponse. + :type access_control_max_age: int + """ + self._access_control_max_age = access_control_max_age + + @property + def x_obs_website_redirect_location(self): + """Gets the x_obs_website_redirect_location of this GetObjectMetadataResponse. + + :return: The x_obs_website_redirect_location of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_website_redirect_location + + @x_obs_website_redirect_location.setter + def x_obs_website_redirect_location(self, x_obs_website_redirect_location): + """Sets the x_obs_website_redirect_location of this GetObjectMetadataResponse. + + :param x_obs_website_redirect_location: The x_obs_website_redirect_location of this GetObjectMetadataResponse. + :type x_obs_website_redirect_location: str + """ + self._x_obs_website_redirect_location = x_obs_website_redirect_location + + @property + def x_obs_version_id(self): + """Gets the x_obs_version_id of this GetObjectMetadataResponse. + + :return: The x_obs_version_id of this GetObjectMetadataResponse. + :rtype: str + """ + return self._x_obs_version_id + + @x_obs_version_id.setter + def x_obs_version_id(self, x_obs_version_id): + """Sets the x_obs_version_id of this GetObjectMetadataResponse. + + :param x_obs_version_id: The x_obs_version_id of this GetObjectMetadataResponse. + :type x_obs_version_id: str + """ + self._x_obs_version_id = x_obs_version_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, GetObjectMetadataResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_request.py new file mode 100644 index 000000000..6ae6c9d44 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_request.py @@ -0,0 +1,666 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetObjectRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "GetObjectRequest" + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'object_key': 'str', + 'date': 'str', + 'response_content_type': 'str', + 'response_content_language': 'str', + 'response_expires': 'str', + 'response_cache_control': 'str', + 'response_content_disposition': 'str', + 'response_content_encoding': 'str', + 'version_id': 'str', + 'x_image_process': 'str', + 'attname': 'str', + 'range': 'str', + 'if_modified_since': 'str', + 'if_unmodified_since': 'str', + 'if_match': 'str', + 'if_none_match': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_server_side_encryption_customer_key': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'object_key': 'object_key', + 'date': 'Date', + 'response_content_type': 'response-content-type', + 'response_content_language': 'response-content-language', + 'response_expires': 'response-expires', + 'response_cache_control': 'response-cache-control', + 'response_content_disposition': 'response-content-disposition', + 'response_content_encoding': 'response-content-encoding', + 'version_id': 'versionId', + 'x_image_process': 'x-image-process', + 'attname': 'attname', + 'range': 'Range', + 'if_modified_since': 'If-Modified-Since', + 'if_unmodified_since': 'If-Unmodified-Since', + 'if_match': 'If-Match', + 'if_none_match': 'If-None-Match', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_server_side_encryption_customer_key': 'x-obs-server-side-encryption-customer-key', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5' + } + + def __init__(self, bucket_name=None, object_key=None, date=None, response_content_type=None, response_content_language=None, response_expires=None, response_cache_control=None, response_content_disposition=None, response_content_encoding=None, version_id=None, x_image_process=None, attname=None, range=None, if_modified_since=None, if_unmodified_since=None, if_match=None, if_none_match=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_server_side_encryption_customer_key=None, x_obs_server_side_encryption_customer_key_md5=None): + """GetObjectRequest + + The model defined in huaweicloud sdk + + :param bucket_name: 桶名称 + :type bucket_name: str + :param object_key: 通过此请求下载的对象名称。 + :type object_key: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param response_content_type: 重写响应中的Content-Type头。 + :type response_content_type: str + :param response_content_language: 重写响应中的Content-Language头。 + :type response_content_language: str + :param response_expires: 重写响应中的Expires头。 + :type response_expires: str + :param response_cache_control: 重写响应中的Cache-Control头。 + :type response_cache_control: str + :param response_content_disposition: 重写响应中的Content-Disposition头。 示例:response-content-disposition=attachment; filename*=utf-8''name1 下载对象重命名为“name1”,如果name1中存在中文,需要将中文进行URL编码。 + :type response_content_disposition: str + :param response_content_encoding: 重写响应中的Content-Encoding头。 + :type response_content_encoding: str + :param version_id: 指定获取对象的版本号。 + :type version_id: str + :param x_image_process: 图片处理服务。 示例: 命令方式:x-image-process=image/commands 样式方式:x-image-process=style/stylename 详见[《图片处理特性指南》](https://support.huaweicloud.com/fg-obs/obs_01_0001.html)。 + :type x_image_process: str + :param attname: 重写响应中的Content-Disposition头。 示例:attname=name1 下载对象重命名为“name1”。 + :type attname: str + :param range: 获取对象时,获取在Range范围内的对象内容。如果Range不合法则忽略此字段获取整个对象。 Range是一个范围,它的起始值最小为0,最大为对象长度减1。Range范围的起始值为必填项,如果Range只包含起始值,表示获取起始值到对象长度减1这个区间的对象内容。 携带Range头域后,响应消息的ETag仍是对象的ETag,而不是Range范围内对象的ETag。 bytes=byte_range 示例1:bytes=0-4 示例2:bytes=1024 示例3:bytes=10-20,30-40(表示多个区间) + :type range: str + :param if_modified_since: 如果对象在请求中指定的时间之后有修改,则返回对象内容;否则的话返回304(not modified)。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 + :type if_modified_since: str + :param if_unmodified_since: 如果对象在请求中指定的时间之后没有修改,则返回对象内容;否则的话返回412(precondition failed)。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 + :type if_unmodified_since: str + :param if_match: 如果对象的ETag和请求中指定的ETag相同,则返回对象内容,否则的话返回412(precondition failed)。 (ETag值,例:0f64741bf7cb1089e988e4585d0d3434。) + :type if_match: str + :param if_none_match: 如果对象的ETag和请求中指定的ETag不相同,则返回对象内容,否则的话返回304(not modified)。 (ETag值,例:0f64741bf7cb1089e988e4585d0d3434。) + :type if_none_match: str + :param x_obs_server_side_encryption_customer_algorithm: SSE-C方式下使用该头域,该头域表示加密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm:AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_server_side_encryption_customer_key: SSE-C方式下使用该头域,该头域表示加密使用的密钥。该密钥用于解密对象。 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + :type x_obs_server_side_encryption_customer_key: str + :param x_obs_server_side_encryption_customer_key_md5: SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + :type x_obs_server_side_encryption_customer_key_md5: str + """ + + + + self._bucket_name = None + self._object_key = None + self._date = None + self._response_content_type = None + self._response_content_language = None + self._response_expires = None + self._response_cache_control = None + self._response_content_disposition = None + self._response_content_encoding = None + self._version_id = None + self._x_image_process = None + self._attname = None + self._range = None + self._if_modified_since = None + self._if_unmodified_since = None + self._if_match = None + self._if_none_match = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_server_side_encryption_customer_key = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self.discriminator = None + + self.bucket_name = bucket_name + self.object_key = object_key + if date is not None: + self.date = date + if response_content_type is not None: + self.response_content_type = response_content_type + if response_content_language is not None: + self.response_content_language = response_content_language + if response_expires is not None: + self.response_expires = response_expires + if response_cache_control is not None: + self.response_cache_control = response_cache_control + if response_content_disposition is not None: + self.response_content_disposition = response_content_disposition + if response_content_encoding is not None: + self.response_content_encoding = response_content_encoding + if version_id is not None: + self.version_id = version_id + if x_image_process is not None: + self.x_image_process = x_image_process + if attname is not None: + self.attname = attname + if range is not None: + self.range = range + if if_modified_since is not None: + self.if_modified_since = if_modified_since + if if_unmodified_since is not None: + self.if_unmodified_since = if_unmodified_since + if if_match is not None: + self.if_match = if_match + if if_none_match is not None: + self.if_none_match = if_none_match + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_server_side_encryption_customer_key is not None: + self.x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def bucket_name(self): + """Gets the bucket_name of this GetObjectRequest. + + 桶名称 + + :return: The bucket_name of this GetObjectRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this GetObjectRequest. + + 桶名称 + + :param bucket_name: The bucket_name of this GetObjectRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def object_key(self): + """Gets the object_key of this GetObjectRequest. + + 通过此请求下载的对象名称。 + + :return: The object_key of this GetObjectRequest. + :rtype: str + """ + return self._object_key + + @object_key.setter + def object_key(self, object_key): + """Sets the object_key of this GetObjectRequest. + + 通过此请求下载的对象名称。 + + :param object_key: The object_key of this GetObjectRequest. + :type object_key: str + """ + self._object_key = object_key + + @property + def date(self): + """Gets the date of this GetObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this GetObjectRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this GetObjectRequest. + :type date: str + """ + self._date = date + + @property + def response_content_type(self): + """Gets the response_content_type of this GetObjectRequest. + + 重写响应中的Content-Type头。 + + :return: The response_content_type of this GetObjectRequest. + :rtype: str + """ + return self._response_content_type + + @response_content_type.setter + def response_content_type(self, response_content_type): + """Sets the response_content_type of this GetObjectRequest. + + 重写响应中的Content-Type头。 + + :param response_content_type: The response_content_type of this GetObjectRequest. + :type response_content_type: str + """ + self._response_content_type = response_content_type + + @property + def response_content_language(self): + """Gets the response_content_language of this GetObjectRequest. + + 重写响应中的Content-Language头。 + + :return: The response_content_language of this GetObjectRequest. + :rtype: str + """ + return self._response_content_language + + @response_content_language.setter + def response_content_language(self, response_content_language): + """Sets the response_content_language of this GetObjectRequest. + + 重写响应中的Content-Language头。 + + :param response_content_language: The response_content_language of this GetObjectRequest. + :type response_content_language: str + """ + self._response_content_language = response_content_language + + @property + def response_expires(self): + """Gets the response_expires of this GetObjectRequest. + + 重写响应中的Expires头。 + + :return: The response_expires of this GetObjectRequest. + :rtype: str + """ + return self._response_expires + + @response_expires.setter + def response_expires(self, response_expires): + """Sets the response_expires of this GetObjectRequest. + + 重写响应中的Expires头。 + + :param response_expires: The response_expires of this GetObjectRequest. + :type response_expires: str + """ + self._response_expires = response_expires + + @property + def response_cache_control(self): + """Gets the response_cache_control of this GetObjectRequest. + + 重写响应中的Cache-Control头。 + + :return: The response_cache_control of this GetObjectRequest. + :rtype: str + """ + return self._response_cache_control + + @response_cache_control.setter + def response_cache_control(self, response_cache_control): + """Sets the response_cache_control of this GetObjectRequest. + + 重写响应中的Cache-Control头。 + + :param response_cache_control: The response_cache_control of this GetObjectRequest. + :type response_cache_control: str + """ + self._response_cache_control = response_cache_control + + @property + def response_content_disposition(self): + """Gets the response_content_disposition of this GetObjectRequest. + + 重写响应中的Content-Disposition头。 示例:response-content-disposition=attachment; filename*=utf-8''name1 下载对象重命名为“name1”,如果name1中存在中文,需要将中文进行URL编码。 + + :return: The response_content_disposition of this GetObjectRequest. + :rtype: str + """ + return self._response_content_disposition + + @response_content_disposition.setter + def response_content_disposition(self, response_content_disposition): + """Sets the response_content_disposition of this GetObjectRequest. + + 重写响应中的Content-Disposition头。 示例:response-content-disposition=attachment; filename*=utf-8''name1 下载对象重命名为“name1”,如果name1中存在中文,需要将中文进行URL编码。 + + :param response_content_disposition: The response_content_disposition of this GetObjectRequest. + :type response_content_disposition: str + """ + self._response_content_disposition = response_content_disposition + + @property + def response_content_encoding(self): + """Gets the response_content_encoding of this GetObjectRequest. + + 重写响应中的Content-Encoding头。 + + :return: The response_content_encoding of this GetObjectRequest. + :rtype: str + """ + return self._response_content_encoding + + @response_content_encoding.setter + def response_content_encoding(self, response_content_encoding): + """Sets the response_content_encoding of this GetObjectRequest. + + 重写响应中的Content-Encoding头。 + + :param response_content_encoding: The response_content_encoding of this GetObjectRequest. + :type response_content_encoding: str + """ + self._response_content_encoding = response_content_encoding + + @property + def version_id(self): + """Gets the version_id of this GetObjectRequest. + + 指定获取对象的版本号。 + + :return: The version_id of this GetObjectRequest. + :rtype: str + """ + return self._version_id + + @version_id.setter + def version_id(self, version_id): + """Sets the version_id of this GetObjectRequest. + + 指定获取对象的版本号。 + + :param version_id: The version_id of this GetObjectRequest. + :type version_id: str + """ + self._version_id = version_id + + @property + def x_image_process(self): + """Gets the x_image_process of this GetObjectRequest. + + 图片处理服务。 示例: 命令方式:x-image-process=image/commands 样式方式:x-image-process=style/stylename 详见[《图片处理特性指南》](https://support.huaweicloud.com/fg-obs/obs_01_0001.html)。 + + :return: The x_image_process of this GetObjectRequest. + :rtype: str + """ + return self._x_image_process + + @x_image_process.setter + def x_image_process(self, x_image_process): + """Sets the x_image_process of this GetObjectRequest. + + 图片处理服务。 示例: 命令方式:x-image-process=image/commands 样式方式:x-image-process=style/stylename 详见[《图片处理特性指南》](https://support.huaweicloud.com/fg-obs/obs_01_0001.html)。 + + :param x_image_process: The x_image_process of this GetObjectRequest. + :type x_image_process: str + """ + self._x_image_process = x_image_process + + @property + def attname(self): + """Gets the attname of this GetObjectRequest. + + 重写响应中的Content-Disposition头。 示例:attname=name1 下载对象重命名为“name1”。 + + :return: The attname of this GetObjectRequest. + :rtype: str + """ + return self._attname + + @attname.setter + def attname(self, attname): + """Sets the attname of this GetObjectRequest. + + 重写响应中的Content-Disposition头。 示例:attname=name1 下载对象重命名为“name1”。 + + :param attname: The attname of this GetObjectRequest. + :type attname: str + """ + self._attname = attname + + @property + def range(self): + """Gets the range of this GetObjectRequest. + + 获取对象时,获取在Range范围内的对象内容。如果Range不合法则忽略此字段获取整个对象。 Range是一个范围,它的起始值最小为0,最大为对象长度减1。Range范围的起始值为必填项,如果Range只包含起始值,表示获取起始值到对象长度减1这个区间的对象内容。 携带Range头域后,响应消息的ETag仍是对象的ETag,而不是Range范围内对象的ETag。 bytes=byte_range 示例1:bytes=0-4 示例2:bytes=1024 示例3:bytes=10-20,30-40(表示多个区间) + + :return: The range of this GetObjectRequest. + :rtype: str + """ + return self._range + + @range.setter + def range(self, range): + """Sets the range of this GetObjectRequest. + + 获取对象时,获取在Range范围内的对象内容。如果Range不合法则忽略此字段获取整个对象。 Range是一个范围,它的起始值最小为0,最大为对象长度减1。Range范围的起始值为必填项,如果Range只包含起始值,表示获取起始值到对象长度减1这个区间的对象内容。 携带Range头域后,响应消息的ETag仍是对象的ETag,而不是Range范围内对象的ETag。 bytes=byte_range 示例1:bytes=0-4 示例2:bytes=1024 示例3:bytes=10-20,30-40(表示多个区间) + + :param range: The range of this GetObjectRequest. + :type range: str + """ + self._range = range + + @property + def if_modified_since(self): + """Gets the if_modified_since of this GetObjectRequest. + + 如果对象在请求中指定的时间之后有修改,则返回对象内容;否则的话返回304(not modified)。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 + + :return: The if_modified_since of this GetObjectRequest. + :rtype: str + """ + return self._if_modified_since + + @if_modified_since.setter + def if_modified_since(self, if_modified_since): + """Sets the if_modified_since of this GetObjectRequest. + + 如果对象在请求中指定的时间之后有修改,则返回对象内容;否则的话返回304(not modified)。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 + + :param if_modified_since: The if_modified_since of this GetObjectRequest. + :type if_modified_since: str + """ + self._if_modified_since = if_modified_since + + @property + def if_unmodified_since(self): + """Gets the if_unmodified_since of this GetObjectRequest. + + 如果对象在请求中指定的时间之后没有修改,则返回对象内容;否则的话返回412(precondition failed)。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 + + :return: The if_unmodified_since of this GetObjectRequest. + :rtype: str + """ + return self._if_unmodified_since + + @if_unmodified_since.setter + def if_unmodified_since(self, if_unmodified_since): + """Sets the if_unmodified_since of this GetObjectRequest. + + 如果对象在请求中指定的时间之后没有修改,则返回对象内容;否则的话返回412(precondition failed)。 类型:符合http://www.ietf.org/rfc/rfc2616.txt规定格式的HTTP时间字符串。 + + :param if_unmodified_since: The if_unmodified_since of this GetObjectRequest. + :type if_unmodified_since: str + """ + self._if_unmodified_since = if_unmodified_since + + @property + def if_match(self): + """Gets the if_match of this GetObjectRequest. + + 如果对象的ETag和请求中指定的ETag相同,则返回对象内容,否则的话返回412(precondition failed)。 (ETag值,例:0f64741bf7cb1089e988e4585d0d3434。) + + :return: The if_match of this GetObjectRequest. + :rtype: str + """ + return self._if_match + + @if_match.setter + def if_match(self, if_match): + """Sets the if_match of this GetObjectRequest. + + 如果对象的ETag和请求中指定的ETag相同,则返回对象内容,否则的话返回412(precondition failed)。 (ETag值,例:0f64741bf7cb1089e988e4585d0d3434。) + + :param if_match: The if_match of this GetObjectRequest. + :type if_match: str + """ + self._if_match = if_match + + @property + def if_none_match(self): + """Gets the if_none_match of this GetObjectRequest. + + 如果对象的ETag和请求中指定的ETag不相同,则返回对象内容,否则的话返回304(not modified)。 (ETag值,例:0f64741bf7cb1089e988e4585d0d3434。) + + :return: The if_none_match of this GetObjectRequest. + :rtype: str + """ + return self._if_none_match + + @if_none_match.setter + def if_none_match(self, if_none_match): + """Sets the if_none_match of this GetObjectRequest. + + 如果对象的ETag和请求中指定的ETag不相同,则返回对象内容,否则的话返回304(not modified)。 (ETag值,例:0f64741bf7cb1089e988e4585d0d3434。) + + :param if_none_match: The if_none_match of this GetObjectRequest. + :type if_none_match: str + """ + self._if_none_match = if_none_match + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm:AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :return: The x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm:AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this GetObjectRequest. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_server_side_encryption_customer_key(self): + """Gets the x_obs_server_side_encryption_customer_key of this GetObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥。该密钥用于解密对象。 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :return: The x_obs_server_side_encryption_customer_key of this GetObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key + + @x_obs_server_side_encryption_customer_key.setter + def x_obs_server_side_encryption_customer_key(self, x_obs_server_side_encryption_customer_key): + """Sets the x_obs_server_side_encryption_customer_key of this GetObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥。该密钥用于解密对象。 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :param x_obs_server_side_encryption_customer_key: The x_obs_server_side_encryption_customer_key of this GetObjectRequest. + :type x_obs_server_side_encryption_customer_key: str + """ + self._x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + + :return: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束:该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectRequest. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetObjectRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_response.py new file mode 100644 index 000000000..e39504c87 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/get_object_response.py @@ -0,0 +1,489 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_stream_response import SdkStreamResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class GetObjectResponse(SdkStreamResponse): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "GetObjectResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'x_obs_server_side_encryption': 'str', + 'x_obs_object_type': 'str', + 'x_obs_next_append_position': 'int', + 'connection': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str', + 'x_obs_expiration': 'str', + 'date': 'str', + 'e_tag': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_server_side_encryption_kms_key_id': 'str', + 'content_length': 'str', + 'x_obs_website_redirect_location': 'str', + 'x_obs_delete_marker': 'bool', + 'x_obs_version_id': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'x_obs_server_side_encryption': 'x-obs-server-side-encryption', + 'x_obs_object_type': 'x-obs-object-type', + 'x_obs_next_append_position': 'x-obs-next-append-position', + 'connection': 'Connection', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5', + 'x_obs_expiration': 'x-obs-expiration', + 'date': 'Date', + 'e_tag': 'ETag', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_server_side_encryption_kms_key_id': 'x-obs-server-side-encryption-kms-key-id', + 'content_length': 'Content-Length', + 'x_obs_website_redirect_location': 'x-obs-website-redirect-location', + 'x_obs_delete_marker': 'x-obs-delete-marker', + 'x_obs_version_id': 'x-obs-version-id' + } + + def __init__(self, response, x_obs_id_2=None, x_obs_request_id=None, x_obs_server_side_encryption=None, x_obs_object_type=None, x_obs_next_append_position=None, connection=None, x_obs_server_side_encryption_customer_key_md5=None, x_obs_expiration=None, date=None, e_tag=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_server_side_encryption_kms_key_id=None, content_length=None, x_obs_website_redirect_location=None, x_obs_delete_marker=None, x_obs_version_id=None): + """GetObjectResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param x_obs_server_side_encryption: + :type x_obs_server_side_encryption: str + :param x_obs_object_type: + :type x_obs_object_type: str + :param x_obs_next_append_position: + :type x_obs_next_append_position: int + :param connection: + :type connection: str + :param x_obs_server_side_encryption_customer_key_md5: + :type x_obs_server_side_encryption_customer_key_md5: str + :param x_obs_expiration: + :type x_obs_expiration: str + :param date: + :type date: str + :param e_tag: + :type e_tag: str + :param x_obs_server_side_encryption_customer_algorithm: + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_server_side_encryption_kms_key_id: + :type x_obs_server_side_encryption_kms_key_id: str + :param content_length: + :type content_length: str + :param x_obs_website_redirect_location: + :type x_obs_website_redirect_location: str + :param x_obs_delete_marker: + :type x_obs_delete_marker: bool + :param x_obs_version_id: + :type x_obs_version_id: str + """ + + super(GetObjectResponse, self).__init__(response) + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._x_obs_server_side_encryption = None + self._x_obs_object_type = None + self._x_obs_next_append_position = None + self._connection = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self._x_obs_expiration = None + self._date = None + self._e_tag = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_server_side_encryption_kms_key_id = None + self._content_length = None + self._x_obs_website_redirect_location = None + self._x_obs_delete_marker = None + self._x_obs_version_id = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if x_obs_server_side_encryption is not None: + self.x_obs_server_side_encryption = x_obs_server_side_encryption + if x_obs_object_type is not None: + self.x_obs_object_type = x_obs_object_type + if x_obs_next_append_position is not None: + self.x_obs_next_append_position = x_obs_next_append_position + if connection is not None: + self.connection = connection + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + if x_obs_expiration is not None: + self.x_obs_expiration = x_obs_expiration + if date is not None: + self.date = date + if e_tag is not None: + self.e_tag = e_tag + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_server_side_encryption_kms_key_id is not None: + self.x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + if content_length is not None: + self.content_length = content_length + if x_obs_website_redirect_location is not None: + self.x_obs_website_redirect_location = x_obs_website_redirect_location + if x_obs_delete_marker is not None: + self.x_obs_delete_marker = x_obs_delete_marker + if x_obs_version_id is not None: + self.x_obs_version_id = x_obs_version_id + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this GetObjectResponse. + + :return: The x_obs_id_2 of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this GetObjectResponse. + + :param x_obs_id_2: The x_obs_id_2 of this GetObjectResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this GetObjectResponse. + + :return: The x_obs_request_id of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this GetObjectResponse. + + :param x_obs_request_id: The x_obs_request_id of this GetObjectResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def x_obs_server_side_encryption(self): + """Gets the x_obs_server_side_encryption of this GetObjectResponse. + + :return: The x_obs_server_side_encryption of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption + + @x_obs_server_side_encryption.setter + def x_obs_server_side_encryption(self, x_obs_server_side_encryption): + """Sets the x_obs_server_side_encryption of this GetObjectResponse. + + :param x_obs_server_side_encryption: The x_obs_server_side_encryption of this GetObjectResponse. + :type x_obs_server_side_encryption: str + """ + self._x_obs_server_side_encryption = x_obs_server_side_encryption + + @property + def x_obs_object_type(self): + """Gets the x_obs_object_type of this GetObjectResponse. + + :return: The x_obs_object_type of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_object_type + + @x_obs_object_type.setter + def x_obs_object_type(self, x_obs_object_type): + """Sets the x_obs_object_type of this GetObjectResponse. + + :param x_obs_object_type: The x_obs_object_type of this GetObjectResponse. + :type x_obs_object_type: str + """ + self._x_obs_object_type = x_obs_object_type + + @property + def x_obs_next_append_position(self): + """Gets the x_obs_next_append_position of this GetObjectResponse. + + :return: The x_obs_next_append_position of this GetObjectResponse. + :rtype: int + """ + return self._x_obs_next_append_position + + @x_obs_next_append_position.setter + def x_obs_next_append_position(self, x_obs_next_append_position): + """Sets the x_obs_next_append_position of this GetObjectResponse. + + :param x_obs_next_append_position: The x_obs_next_append_position of this GetObjectResponse. + :type x_obs_next_append_position: int + """ + self._x_obs_next_append_position = x_obs_next_append_position + + @property + def connection(self): + """Gets the connection of this GetObjectResponse. + + :return: The connection of this GetObjectResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this GetObjectResponse. + + :param connection: The connection of this GetObjectResponse. + :type connection: str + """ + self._connection = connection + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse. + + :return: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse. + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this GetObjectResponse. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def x_obs_expiration(self): + """Gets the x_obs_expiration of this GetObjectResponse. + + :return: The x_obs_expiration of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_expiration + + @x_obs_expiration.setter + def x_obs_expiration(self, x_obs_expiration): + """Sets the x_obs_expiration of this GetObjectResponse. + + :param x_obs_expiration: The x_obs_expiration of this GetObjectResponse. + :type x_obs_expiration: str + """ + self._x_obs_expiration = x_obs_expiration + + @property + def date(self): + """Gets the date of this GetObjectResponse. + + :return: The date of this GetObjectResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this GetObjectResponse. + + :param date: The date of this GetObjectResponse. + :type date: str + """ + self._date = date + + @property + def e_tag(self): + """Gets the e_tag of this GetObjectResponse. + + :return: The e_tag of this GetObjectResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this GetObjectResponse. + + :param e_tag: The e_tag of this GetObjectResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse. + + :return: The x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse. + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this GetObjectResponse. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_server_side_encryption_kms_key_id(self): + """Gets the x_obs_server_side_encryption_kms_key_id of this GetObjectResponse. + + :return: The x_obs_server_side_encryption_kms_key_id of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_kms_key_id + + @x_obs_server_side_encryption_kms_key_id.setter + def x_obs_server_side_encryption_kms_key_id(self, x_obs_server_side_encryption_kms_key_id): + """Sets the x_obs_server_side_encryption_kms_key_id of this GetObjectResponse. + + :param x_obs_server_side_encryption_kms_key_id: The x_obs_server_side_encryption_kms_key_id of this GetObjectResponse. + :type x_obs_server_side_encryption_kms_key_id: str + """ + self._x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + + @property + def content_length(self): + """Gets the content_length of this GetObjectResponse. + + :return: The content_length of this GetObjectResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this GetObjectResponse. + + :param content_length: The content_length of this GetObjectResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def x_obs_website_redirect_location(self): + """Gets the x_obs_website_redirect_location of this GetObjectResponse. + + :return: The x_obs_website_redirect_location of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_website_redirect_location + + @x_obs_website_redirect_location.setter + def x_obs_website_redirect_location(self, x_obs_website_redirect_location): + """Sets the x_obs_website_redirect_location of this GetObjectResponse. + + :param x_obs_website_redirect_location: The x_obs_website_redirect_location of this GetObjectResponse. + :type x_obs_website_redirect_location: str + """ + self._x_obs_website_redirect_location = x_obs_website_redirect_location + + @property + def x_obs_delete_marker(self): + """Gets the x_obs_delete_marker of this GetObjectResponse. + + :return: The x_obs_delete_marker of this GetObjectResponse. + :rtype: bool + """ + return self._x_obs_delete_marker + + @x_obs_delete_marker.setter + def x_obs_delete_marker(self, x_obs_delete_marker): + """Sets the x_obs_delete_marker of this GetObjectResponse. + + :param x_obs_delete_marker: The x_obs_delete_marker of this GetObjectResponse. + :type x_obs_delete_marker: bool + """ + self._x_obs_delete_marker = x_obs_delete_marker + + @property + def x_obs_version_id(self): + """Gets the x_obs_version_id of this GetObjectResponse. + + :return: The x_obs_version_id of this GetObjectResponse. + :rtype: str + """ + return self._x_obs_version_id + + @x_obs_version_id.setter + def x_obs_version_id(self, x_obs_version_id): + """Sets the x_obs_version_id of this GetObjectResponse. + + :param x_obs_version_id: The x_obs_version_id of this GetObjectResponse. + :type x_obs_version_id: str + """ + self._x_obs_version_id = x_obs_version_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, GetObjectResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/grant.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/grant.py new file mode 100644 index 000000000..b6e8b07c9 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/grant.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Grant: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Grant" + + sensitive_list = [] + + openapi_types = { + 'grantee': 'Grantee', + 'permission': 'str', + 'delivered': 'bool' + } + + attribute_map = { + 'grantee': 'Grantee', + 'permission': 'Permission', + 'delivered': 'Delivered' + } + + def __init__(self, grantee=None, permission=None, delivered=None): + """Grant + + The model defined in huaweicloud sdk + + :param grantee: + :type grantee: :class:`huaweicloudsdkobs.v1.Grantee` + :param permission: 授予的权限 + :type permission: str + :param delivered: 桶的ACL是否向桶内对象传递 + :type delivered: bool + """ + + + + self._grantee = None + self._permission = None + self._delivered = None + self.discriminator = None + + if grantee is not None: + self.grantee = grantee + if permission is not None: + self.permission = permission + if delivered is not None: + self.delivered = delivered + + @property + def grantee(self): + """Gets the grantee of this Grant. + + :return: The grantee of this Grant. + :rtype: :class:`huaweicloudsdkobs.v1.Grantee` + """ + return self._grantee + + @grantee.setter + def grantee(self, grantee): + """Sets the grantee of this Grant. + + :param grantee: The grantee of this Grant. + :type grantee: :class:`huaweicloudsdkobs.v1.Grantee` + """ + self._grantee = grantee + + @property + def permission(self): + """Gets the permission of this Grant. + + 授予的权限 + + :return: The permission of this Grant. + :rtype: str + """ + return self._permission + + @permission.setter + def permission(self, permission): + """Sets the permission of this Grant. + + 授予的权限 + + :param permission: The permission of this Grant. + :type permission: str + """ + self._permission = permission + + @property + def delivered(self): + """Gets the delivered of this Grant. + + 桶的ACL是否向桶内对象传递 + + :return: The delivered of this Grant. + :rtype: bool + """ + return self._delivered + + @delivered.setter + def delivered(self, delivered): + """Sets the delivered of this Grant. + + 桶的ACL是否向桶内对象传递 + + :param delivered: The delivered of this Grant. + :type delivered: bool + """ + self._delivered = delivered + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Grant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/grantee.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/grantee.py new file mode 100644 index 000000000..9deda7ed4 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/grantee.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Grantee: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Grantee" + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'canned': 'str' + } + + attribute_map = { + 'id': 'ID', + 'canned': 'Canned' + } + + def __init__(self, id=None, canned=None): + """Grantee + + The model defined in huaweicloud sdk + + :param id: 被授权用户的租户Id + :type id: str + :param canned: 向所有人授予权限。 + :type canned: str + """ + + + + self._id = None + self._canned = None + self.discriminator = None + + if id is not None: + self.id = id + if canned is not None: + self.canned = canned + + @property + def id(self): + """Gets the id of this Grantee. + + 被授权用户的租户Id + + :return: The id of this Grantee. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Grantee. + + 被授权用户的租户Id + + :param id: The id of this Grantee. + :type id: str + """ + self._id = id + + @property + def canned(self): + """Gets the canned of this Grantee. + + 向所有人授予权限。 + + :return: The canned of this Grantee. + :rtype: str + """ + return self._canned + + @canned.setter + def canned(self, canned): + """Sets the canned of this Grantee. + + 向所有人授予权限。 + + :param canned: The canned of this Grantee. + :type canned: str + """ + self._canned = canned + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Grantee): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_buckets_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_buckets_request.py new file mode 100644 index 000000000..2d543386e --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_buckets_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBucketsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "ListBucketsRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'x_obs_bucket_type': 'str' + } + + attribute_map = { + 'date': 'Date', + 'x_obs_bucket_type': 'x-obs-bucket-type' + } + + def __init__(self, date=None, x_obs_bucket_type=None): + """ListBucketsRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param x_obs_bucket_type: 通过此消息头明确获取的列表内容。 取值: OBJECT:获取所有桶列表。 POSIX:获取所有并行文件系统列表。 不带此消息头则获取所有桶和并行文件系统列表。 + :type x_obs_bucket_type: str + """ + + + + self._date = None + self._x_obs_bucket_type = None + self.discriminator = None + + if date is not None: + self.date = date + if x_obs_bucket_type is not None: + self.x_obs_bucket_type = x_obs_bucket_type + + @property + def date(self): + """Gets the date of this ListBucketsRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this ListBucketsRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this ListBucketsRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this ListBucketsRequest. + :type date: str + """ + self._date = date + + @property + def x_obs_bucket_type(self): + """Gets the x_obs_bucket_type of this ListBucketsRequest. + + 通过此消息头明确获取的列表内容。 取值: OBJECT:获取所有桶列表。 POSIX:获取所有并行文件系统列表。 不带此消息头则获取所有桶和并行文件系统列表。 + + :return: The x_obs_bucket_type of this ListBucketsRequest. + :rtype: str + """ + return self._x_obs_bucket_type + + @x_obs_bucket_type.setter + def x_obs_bucket_type(self, x_obs_bucket_type): + """Sets the x_obs_bucket_type of this ListBucketsRequest. + + 通过此消息头明确获取的列表内容。 取值: OBJECT:获取所有桶列表。 POSIX:获取所有并行文件系统列表。 不带此消息头则获取所有桶和并行文件系统列表。 + + :param x_obs_bucket_type: The x_obs_bucket_type of this ListBucketsRequest. + :type x_obs_bucket_type: str + """ + self._x_obs_bucket_type = x_obs_bucket_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBucketsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_buckets_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_buckets_response.py new file mode 100644 index 000000000..6e510608d --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_buckets_response.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListBucketsResponse(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. + """ + xml_name = "ListBucketsResponse" + + sensitive_list = [] + + openapi_types = { + 'owner': 'Owner', + 'buckets': 'Buckets', + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'x_obs_bucket_type': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'owner': 'Owner', + 'buckets': 'Buckets', + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'x_obs_bucket_type': 'x-obs-bucket-type', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, owner=None, buckets=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, x_obs_bucket_type=None, connection=None, content_length=None, date=None): + """ListBucketsResponse + + The model defined in huaweicloud sdk + + :param owner: + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + :param buckets: + :type buckets: :class:`huaweicloudsdkobs.v1.Buckets` + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param x_obs_bucket_type: + :type x_obs_bucket_type: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(ListBucketsResponse, self).__init__() + + self._owner = None + self._buckets = None + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._x_obs_bucket_type = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if owner is not None: + self.owner = owner + if buckets is not None: + self.buckets = buckets + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if x_obs_bucket_type is not None: + self.x_obs_bucket_type = x_obs_bucket_type + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def owner(self): + """Gets the owner of this ListBucketsResponse. + + :return: The owner of this ListBucketsResponse. + :rtype: :class:`huaweicloudsdkobs.v1.Owner` + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this ListBucketsResponse. + + :param owner: The owner of this ListBucketsResponse. + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + """ + self._owner = owner + + @property + def buckets(self): + """Gets the buckets of this ListBucketsResponse. + + :return: The buckets of this ListBucketsResponse. + :rtype: :class:`huaweicloudsdkobs.v1.Buckets` + """ + return self._buckets + + @buckets.setter + def buckets(self, buckets): + """Sets the buckets of this ListBucketsResponse. + + :param buckets: The buckets of this ListBucketsResponse. + :type buckets: :class:`huaweicloudsdkobs.v1.Buckets` + """ + self._buckets = buckets + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this ListBucketsResponse. + + :return: The x_obs_id_2 of this ListBucketsResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this ListBucketsResponse. + + :param x_obs_id_2: The x_obs_id_2 of this ListBucketsResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this ListBucketsResponse. + + :return: The x_obs_request_id of this ListBucketsResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this ListBucketsResponse. + + :param x_obs_request_id: The x_obs_request_id of this ListBucketsResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this ListBucketsResponse. + + :return: The e_tag of this ListBucketsResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this ListBucketsResponse. + + :param e_tag: The e_tag of this ListBucketsResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def x_obs_bucket_type(self): + """Gets the x_obs_bucket_type of this ListBucketsResponse. + + :return: The x_obs_bucket_type of this ListBucketsResponse. + :rtype: str + """ + return self._x_obs_bucket_type + + @x_obs_bucket_type.setter + def x_obs_bucket_type(self, x_obs_bucket_type): + """Sets the x_obs_bucket_type of this ListBucketsResponse. + + :param x_obs_bucket_type: The x_obs_bucket_type of this ListBucketsResponse. + :type x_obs_bucket_type: str + """ + self._x_obs_bucket_type = x_obs_bucket_type + + @property + def connection(self): + """Gets the connection of this ListBucketsResponse. + + :return: The connection of this ListBucketsResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this ListBucketsResponse. + + :param connection: The connection of this ListBucketsResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this ListBucketsResponse. + + :return: The content_length of this ListBucketsResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this ListBucketsResponse. + + :param content_length: The content_length of this ListBucketsResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this ListBucketsResponse. + + :return: The date of this ListBucketsResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this ListBucketsResponse. + + :param date: The date of this ListBucketsResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListBucketsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_objects_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_objects_request.py new file mode 100644 index 000000000..f913fd7bb --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_objects_request.py @@ -0,0 +1,348 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListObjectsRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "ListObjectsRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'prefix': 'str', + 'marker': 'str', + 'max_keys': 'int', + 'delimiter': 'str', + 'key_marker': 'str', + 'version_id_marker': 'str', + 'encoding_type': 'str' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'prefix': 'prefix', + 'marker': 'marker', + 'max_keys': 'max-keys', + 'delimiter': 'delimiter', + 'key_marker': 'key-marker', + 'version_id_marker': 'version-id-marker', + 'encoding_type': 'encoding-type' + } + + def __init__(self, date=None, bucket_name=None, prefix=None, marker=None, max_keys=None, delimiter=None, key_marker=None, version_id_marker=None, encoding_type=None): + """ListObjectsRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param prefix: 列举以指定的字符串prefix开头的对象。 + :type prefix: str + :param marker: 列举桶内对象列表时,指定一个标识符,从该标识符以后按字典顺序返回对象列表。 + :type marker: str + :param max_keys: 指定返回的最大对象数,返回的对象列表将是按照字典顺序的最多前max-keys个对象,范围是[1,1000],超出范围时,按照默认的1000进行处理。 + :type max_keys: int + :param delimiter: 将对象名进行分组的分隔符。如果指定了prefix,从prefix到第一次出现delimiter间具有相同字符串的对象名会被分成一组,形成一条CommonPrefixes;如果没有指定prefix,从对象名的首字符到第一次出现delimiter间具有相同字符串的对象名会被分成一组,形成一条CommonPrefixes。 例如,桶中有3个对象,分别为abcd、abcde、bbcde。如果指定delimiter为d,prefix为a,abcd、abcde会被分成一组,形成一条前缀为abcd的CommonPrefixes;如果只指定delimiter为d,abcd、abcde会被分成一组,形成一条前缀为abcd的CommonPrefixes,而bbcde会被单独分成一组,形成一条前缀为bbcd的CommonPrefixes。 + :type delimiter: str + :param key_marker: 列举对象时的起始位置。 有效值:上次请求返回体的NextKeyMarker值 + :type key_marker: str + :param version_id_marker: 本参数只适用于多版本例举场景 与请求中的key-marker配合使用,返回的对象列表将是按照字典顺序排序后在该标识符以后的对象(单次返回最大为1000个)。如果version-id-marker不是key-marker对应的一个版本号,则该参数无效。 有效值:对象的版本号,即上次请求返回体的NextVersionIdMarker值 + :type version_id_marker: str + :param encoding_type: 对响应中的部分元素进行指定类型的编码。如果Delimiter、Marker(或KeyMarker)、Prefix、NextMarker(或NextKeyMarker)和Key包含xml 1.0标准不支持的控制字符,可通过设置encoding-type对响应中的Delimiter、Marker(或KeyMarker)、Prefix(包括CommonPrefixes中的Prefix)、NextMarker(或NextKeyMarker)和Key进行编码。 可选值:url + :type encoding_type: str + """ + + + + self._date = None + self._bucket_name = None + self._prefix = None + self._marker = None + self._max_keys = None + self._delimiter = None + self._key_marker = None + self._version_id_marker = None + self._encoding_type = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + if prefix is not None: + self.prefix = prefix + if marker is not None: + self.marker = marker + if max_keys is not None: + self.max_keys = max_keys + if delimiter is not None: + self.delimiter = delimiter + if key_marker is not None: + self.key_marker = key_marker + if version_id_marker is not None: + self.version_id_marker = version_id_marker + if encoding_type is not None: + self.encoding_type = encoding_type + + @property + def date(self): + """Gets the date of this ListObjectsRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this ListObjectsRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this ListObjectsRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this ListObjectsRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this ListObjectsRequest. + + 请求的桶名称。 + + :return: The bucket_name of this ListObjectsRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this ListObjectsRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this ListObjectsRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def prefix(self): + """Gets the prefix of this ListObjectsRequest. + + 列举以指定的字符串prefix开头的对象。 + + :return: The prefix of this ListObjectsRequest. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this ListObjectsRequest. + + 列举以指定的字符串prefix开头的对象。 + + :param prefix: The prefix of this ListObjectsRequest. + :type prefix: str + """ + self._prefix = prefix + + @property + def marker(self): + """Gets the marker of this ListObjectsRequest. + + 列举桶内对象列表时,指定一个标识符,从该标识符以后按字典顺序返回对象列表。 + + :return: The marker of this ListObjectsRequest. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListObjectsRequest. + + 列举桶内对象列表时,指定一个标识符,从该标识符以后按字典顺序返回对象列表。 + + :param marker: The marker of this ListObjectsRequest. + :type marker: str + """ + self._marker = marker + + @property + def max_keys(self): + """Gets the max_keys of this ListObjectsRequest. + + 指定返回的最大对象数,返回的对象列表将是按照字典顺序的最多前max-keys个对象,范围是[1,1000],超出范围时,按照默认的1000进行处理。 + + :return: The max_keys of this ListObjectsRequest. + :rtype: int + """ + return self._max_keys + + @max_keys.setter + def max_keys(self, max_keys): + """Sets the max_keys of this ListObjectsRequest. + + 指定返回的最大对象数,返回的对象列表将是按照字典顺序的最多前max-keys个对象,范围是[1,1000],超出范围时,按照默认的1000进行处理。 + + :param max_keys: The max_keys of this ListObjectsRequest. + :type max_keys: int + """ + self._max_keys = max_keys + + @property + def delimiter(self): + """Gets the delimiter of this ListObjectsRequest. + + 将对象名进行分组的分隔符。如果指定了prefix,从prefix到第一次出现delimiter间具有相同字符串的对象名会被分成一组,形成一条CommonPrefixes;如果没有指定prefix,从对象名的首字符到第一次出现delimiter间具有相同字符串的对象名会被分成一组,形成一条CommonPrefixes。 例如,桶中有3个对象,分别为abcd、abcde、bbcde。如果指定delimiter为d,prefix为a,abcd、abcde会被分成一组,形成一条前缀为abcd的CommonPrefixes;如果只指定delimiter为d,abcd、abcde会被分成一组,形成一条前缀为abcd的CommonPrefixes,而bbcde会被单独分成一组,形成一条前缀为bbcd的CommonPrefixes。 + + :return: The delimiter of this ListObjectsRequest. + :rtype: str + """ + return self._delimiter + + @delimiter.setter + def delimiter(self, delimiter): + """Sets the delimiter of this ListObjectsRequest. + + 将对象名进行分组的分隔符。如果指定了prefix,从prefix到第一次出现delimiter间具有相同字符串的对象名会被分成一组,形成一条CommonPrefixes;如果没有指定prefix,从对象名的首字符到第一次出现delimiter间具有相同字符串的对象名会被分成一组,形成一条CommonPrefixes。 例如,桶中有3个对象,分别为abcd、abcde、bbcde。如果指定delimiter为d,prefix为a,abcd、abcde会被分成一组,形成一条前缀为abcd的CommonPrefixes;如果只指定delimiter为d,abcd、abcde会被分成一组,形成一条前缀为abcd的CommonPrefixes,而bbcde会被单独分成一组,形成一条前缀为bbcd的CommonPrefixes。 + + :param delimiter: The delimiter of this ListObjectsRequest. + :type delimiter: str + """ + self._delimiter = delimiter + + @property + def key_marker(self): + """Gets the key_marker of this ListObjectsRequest. + + 列举对象时的起始位置。 有效值:上次请求返回体的NextKeyMarker值 + + :return: The key_marker of this ListObjectsRequest. + :rtype: str + """ + return self._key_marker + + @key_marker.setter + def key_marker(self, key_marker): + """Sets the key_marker of this ListObjectsRequest. + + 列举对象时的起始位置。 有效值:上次请求返回体的NextKeyMarker值 + + :param key_marker: The key_marker of this ListObjectsRequest. + :type key_marker: str + """ + self._key_marker = key_marker + + @property + def version_id_marker(self): + """Gets the version_id_marker of this ListObjectsRequest. + + 本参数只适用于多版本例举场景 与请求中的key-marker配合使用,返回的对象列表将是按照字典顺序排序后在该标识符以后的对象(单次返回最大为1000个)。如果version-id-marker不是key-marker对应的一个版本号,则该参数无效。 有效值:对象的版本号,即上次请求返回体的NextVersionIdMarker值 + + :return: The version_id_marker of this ListObjectsRequest. + :rtype: str + """ + return self._version_id_marker + + @version_id_marker.setter + def version_id_marker(self, version_id_marker): + """Sets the version_id_marker of this ListObjectsRequest. + + 本参数只适用于多版本例举场景 与请求中的key-marker配合使用,返回的对象列表将是按照字典顺序排序后在该标识符以后的对象(单次返回最大为1000个)。如果version-id-marker不是key-marker对应的一个版本号,则该参数无效。 有效值:对象的版本号,即上次请求返回体的NextVersionIdMarker值 + + :param version_id_marker: The version_id_marker of this ListObjectsRequest. + :type version_id_marker: str + """ + self._version_id_marker = version_id_marker + + @property + def encoding_type(self): + """Gets the encoding_type of this ListObjectsRequest. + + 对响应中的部分元素进行指定类型的编码。如果Delimiter、Marker(或KeyMarker)、Prefix、NextMarker(或NextKeyMarker)和Key包含xml 1.0标准不支持的控制字符,可通过设置encoding-type对响应中的Delimiter、Marker(或KeyMarker)、Prefix(包括CommonPrefixes中的Prefix)、NextMarker(或NextKeyMarker)和Key进行编码。 可选值:url + + :return: The encoding_type of this ListObjectsRequest. + :rtype: str + """ + return self._encoding_type + + @encoding_type.setter + def encoding_type(self, encoding_type): + """Sets the encoding_type of this ListObjectsRequest. + + 对响应中的部分元素进行指定类型的编码。如果Delimiter、Marker(或KeyMarker)、Prefix、NextMarker(或NextKeyMarker)和Key包含xml 1.0标准不支持的控制字符,可通过设置encoding-type对响应中的Delimiter、Marker(或KeyMarker)、Prefix(包括CommonPrefixes中的Prefix)、NextMarker(或NextKeyMarker)和Key进行编码。 可选值:url + + :param encoding_type: The encoding_type of this ListObjectsRequest. + :type encoding_type: str + """ + self._encoding_type = encoding_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListObjectsRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_objects_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_objects_response.py new file mode 100644 index 000000000..6bd6c19af --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/list_objects_response.py @@ -0,0 +1,550 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class ListObjectsResponse(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. + """ + xml_name = "ListObjectsResponse" + + sensitive_list = [] + + openapi_types = { + 'contents': 'list[Contents]', + 'common_prefix': 'str', + 'delimiter': 'str', + 'encoding_type': 'str', + 'is_truncated': 'bool', + 'marker': 'str', + 'next_marker': 'str', + 'max_keys': 'str', + 'name': 'str', + 'prefix': 'str', + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'x_obs_bucket_type': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'contents': 'Contents', + 'common_prefix': 'CommonPrefix', + 'delimiter': 'Delimiter', + 'encoding_type': 'EncodingType', + 'is_truncated': 'IsTruncated', + 'marker': 'Marker', + 'next_marker': 'NextMarker', + 'max_keys': 'MaxKeys', + 'name': 'Name', + 'prefix': 'Prefix', + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'x_obs_bucket_type': 'x-obs-bucket-type', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, contents=None, common_prefix=None, delimiter=None, encoding_type=None, is_truncated=None, marker=None, next_marker=None, max_keys=None, name=None, prefix=None, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, x_obs_bucket_type=None, connection=None, content_length=None, date=None): + """ListObjectsResponse + + The model defined in huaweicloud sdk + + :param contents: + :type contents: list[:class:`huaweicloudsdkobs.v1.Contents`] + :param common_prefix: 请求中带delimiter参数时,返回消息带CommonPrefixes分组信息。 + :type common_prefix: str + :param delimiter: 请求中携带的delimiter参数。 + :type delimiter: str + :param encoding_type: 对响应中的部分元素进行指定类型的编码。如果请求中设置了encoding-type,那响应中的Delimiter、Marker、Prefix(包括CommonPrefixes中的Prefix)、NextMarker和Key会被编码。 + :type encoding_type: str + :param is_truncated: 表明是否本次返回的ListBucketResult结果列表被截断。“true”表示本次没有返回全部结果;“false”表示本次已经返回了全部结果。 + :type is_truncated: bool + :param marker: 列举对象时的起始位置标识符。 + :type marker: str + :param next_marker: 如果本次没有返回全部结果,响应请求中将包含此字段,用于标明本次请求列举到的最后一个对象。后续请求可以指定Marker等于该值来列举剩余的对象。 + :type next_marker: str + :param max_keys: 列举时最多返回的对象个数。 + :type max_keys: str + :param name: 本次请求的桶名。 + :type name: str + :param prefix: 对象名的前缀,表示本次请求只列举对象名能匹配该前缀的所有对象。 + :type prefix: str + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param x_obs_bucket_type: + :type x_obs_bucket_type: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(ListObjectsResponse, self).__init__() + + self._contents = None + self._common_prefix = None + self._delimiter = None + self._encoding_type = None + self._is_truncated = None + self._marker = None + self._next_marker = None + self._max_keys = None + self._name = None + self._prefix = None + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._x_obs_bucket_type = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if contents is not None: + self.contents = contents + if common_prefix is not None: + self.common_prefix = common_prefix + if delimiter is not None: + self.delimiter = delimiter + if encoding_type is not None: + self.encoding_type = encoding_type + if is_truncated is not None: + self.is_truncated = is_truncated + if marker is not None: + self.marker = marker + if next_marker is not None: + self.next_marker = next_marker + if max_keys is not None: + self.max_keys = max_keys + if name is not None: + self.name = name + if prefix is not None: + self.prefix = prefix + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if x_obs_bucket_type is not None: + self.x_obs_bucket_type = x_obs_bucket_type + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def contents(self): + """Gets the contents of this ListObjectsResponse. + + :return: The contents of this ListObjectsResponse. + :rtype: list[:class:`huaweicloudsdkobs.v1.Contents`] + """ + return self._contents + + @contents.setter + def contents(self, contents): + """Sets the contents of this ListObjectsResponse. + + :param contents: The contents of this ListObjectsResponse. + :type contents: list[:class:`huaweicloudsdkobs.v1.Contents`] + """ + self._contents = contents + + @property + def common_prefix(self): + """Gets the common_prefix of this ListObjectsResponse. + + 请求中带delimiter参数时,返回消息带CommonPrefixes分组信息。 + + :return: The common_prefix of this ListObjectsResponse. + :rtype: str + """ + return self._common_prefix + + @common_prefix.setter + def common_prefix(self, common_prefix): + """Sets the common_prefix of this ListObjectsResponse. + + 请求中带delimiter参数时,返回消息带CommonPrefixes分组信息。 + + :param common_prefix: The common_prefix of this ListObjectsResponse. + :type common_prefix: str + """ + self._common_prefix = common_prefix + + @property + def delimiter(self): + """Gets the delimiter of this ListObjectsResponse. + + 请求中携带的delimiter参数。 + + :return: The delimiter of this ListObjectsResponse. + :rtype: str + """ + return self._delimiter + + @delimiter.setter + def delimiter(self, delimiter): + """Sets the delimiter of this ListObjectsResponse. + + 请求中携带的delimiter参数。 + + :param delimiter: The delimiter of this ListObjectsResponse. + :type delimiter: str + """ + self._delimiter = delimiter + + @property + def encoding_type(self): + """Gets the encoding_type of this ListObjectsResponse. + + 对响应中的部分元素进行指定类型的编码。如果请求中设置了encoding-type,那响应中的Delimiter、Marker、Prefix(包括CommonPrefixes中的Prefix)、NextMarker和Key会被编码。 + + :return: The encoding_type of this ListObjectsResponse. + :rtype: str + """ + return self._encoding_type + + @encoding_type.setter + def encoding_type(self, encoding_type): + """Sets the encoding_type of this ListObjectsResponse. + + 对响应中的部分元素进行指定类型的编码。如果请求中设置了encoding-type,那响应中的Delimiter、Marker、Prefix(包括CommonPrefixes中的Prefix)、NextMarker和Key会被编码。 + + :param encoding_type: The encoding_type of this ListObjectsResponse. + :type encoding_type: str + """ + self._encoding_type = encoding_type + + @property + def is_truncated(self): + """Gets the is_truncated of this ListObjectsResponse. + + 表明是否本次返回的ListBucketResult结果列表被截断。“true”表示本次没有返回全部结果;“false”表示本次已经返回了全部结果。 + + :return: The is_truncated of this ListObjectsResponse. + :rtype: bool + """ + return self._is_truncated + + @is_truncated.setter + def is_truncated(self, is_truncated): + """Sets the is_truncated of this ListObjectsResponse. + + 表明是否本次返回的ListBucketResult结果列表被截断。“true”表示本次没有返回全部结果;“false”表示本次已经返回了全部结果。 + + :param is_truncated: The is_truncated of this ListObjectsResponse. + :type is_truncated: bool + """ + self._is_truncated = is_truncated + + @property + def marker(self): + """Gets the marker of this ListObjectsResponse. + + 列举对象时的起始位置标识符。 + + :return: The marker of this ListObjectsResponse. + :rtype: str + """ + return self._marker + + @marker.setter + def marker(self, marker): + """Sets the marker of this ListObjectsResponse. + + 列举对象时的起始位置标识符。 + + :param marker: The marker of this ListObjectsResponse. + :type marker: str + """ + self._marker = marker + + @property + def next_marker(self): + """Gets the next_marker of this ListObjectsResponse. + + 如果本次没有返回全部结果,响应请求中将包含此字段,用于标明本次请求列举到的最后一个对象。后续请求可以指定Marker等于该值来列举剩余的对象。 + + :return: The next_marker of this ListObjectsResponse. + :rtype: str + """ + return self._next_marker + + @next_marker.setter + def next_marker(self, next_marker): + """Sets the next_marker of this ListObjectsResponse. + + 如果本次没有返回全部结果,响应请求中将包含此字段,用于标明本次请求列举到的最后一个对象。后续请求可以指定Marker等于该值来列举剩余的对象。 + + :param next_marker: The next_marker of this ListObjectsResponse. + :type next_marker: str + """ + self._next_marker = next_marker + + @property + def max_keys(self): + """Gets the max_keys of this ListObjectsResponse. + + 列举时最多返回的对象个数。 + + :return: The max_keys of this ListObjectsResponse. + :rtype: str + """ + return self._max_keys + + @max_keys.setter + def max_keys(self, max_keys): + """Sets the max_keys of this ListObjectsResponse. + + 列举时最多返回的对象个数。 + + :param max_keys: The max_keys of this ListObjectsResponse. + :type max_keys: str + """ + self._max_keys = max_keys + + @property + def name(self): + """Gets the name of this ListObjectsResponse. + + 本次请求的桶名。 + + :return: The name of this ListObjectsResponse. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ListObjectsResponse. + + 本次请求的桶名。 + + :param name: The name of this ListObjectsResponse. + :type name: str + """ + self._name = name + + @property + def prefix(self): + """Gets the prefix of this ListObjectsResponse. + + 对象名的前缀,表示本次请求只列举对象名能匹配该前缀的所有对象。 + + :return: The prefix of this ListObjectsResponse. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this ListObjectsResponse. + + 对象名的前缀,表示本次请求只列举对象名能匹配该前缀的所有对象。 + + :param prefix: The prefix of this ListObjectsResponse. + :type prefix: str + """ + self._prefix = prefix + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this ListObjectsResponse. + + :return: The x_obs_id_2 of this ListObjectsResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this ListObjectsResponse. + + :param x_obs_id_2: The x_obs_id_2 of this ListObjectsResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this ListObjectsResponse. + + :return: The x_obs_request_id of this ListObjectsResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this ListObjectsResponse. + + :param x_obs_request_id: The x_obs_request_id of this ListObjectsResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this ListObjectsResponse. + + :return: The e_tag of this ListObjectsResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this ListObjectsResponse. + + :param e_tag: The e_tag of this ListObjectsResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def x_obs_bucket_type(self): + """Gets the x_obs_bucket_type of this ListObjectsResponse. + + :return: The x_obs_bucket_type of this ListObjectsResponse. + :rtype: str + """ + return self._x_obs_bucket_type + + @x_obs_bucket_type.setter + def x_obs_bucket_type(self, x_obs_bucket_type): + """Sets the x_obs_bucket_type of this ListObjectsResponse. + + :param x_obs_bucket_type: The x_obs_bucket_type of this ListObjectsResponse. + :type x_obs_bucket_type: str + """ + self._x_obs_bucket_type = x_obs_bucket_type + + @property + def connection(self): + """Gets the connection of this ListObjectsResponse. + + :return: The connection of this ListObjectsResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this ListObjectsResponse. + + :param connection: The connection of this ListObjectsResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this ListObjectsResponse. + + :return: The content_length of this ListObjectsResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this ListObjectsResponse. + + :param content_length: The content_length of this ListObjectsResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this ListObjectsResponse. + + :return: The date of this ListObjectsResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this ListObjectsResponse. + + :param date: The date of this ListObjectsResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ListObjectsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/owner.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/owner.py new file mode 100644 index 000000000..975948a7e --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/owner.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class Owner: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "Owner" + + sensitive_list = [] + + openapi_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'ID' + } + + def __init__(self, id=None): + """Owner + + The model defined in huaweicloud sdk + + :param id: 用户的DomainID(帐号ID)。 + :type id: str + """ + + + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this Owner. + + 用户的DomainID(帐号ID)。 + + :return: The id of this Owner. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Owner. + + 用户的DomainID(帐号ID)。 + + :param id: The id of this Owner. + :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, Owner): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/put_object_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/put_object_request.py new file mode 100644 index 000000000..f312c06d9 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/put_object_request.py @@ -0,0 +1,667 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PutObjectRequest(SdkStreamRequest): + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "PutObjectRequest" + + sensitive_list = [] + + openapi_types = { + 'bucket_name': 'str', + 'object_key': 'str', + 'date': 'str', + 'content_md5': 'str', + 'x_obs_acl': 'str', + 'x_obs_grant_read': 'str', + 'x_obs_grant_read_acp': 'str', + 'x_obs_grant_write_acp': 'str', + 'x_obs_grant_full_control': 'str', + 'x_obs_storage_class': 'str', + 'x_obs_meta_xxx': 'str', + 'x_obs_persistent_headers': 'str', + 'x_obs_website_redirect_location': 'str', + 'x_obs_server_side_encryption': 'str', + 'x_obs_server_side_encryption_kms_key_id': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_server_side_encryption_customer_key': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str', + 'success_action_redirect': 'str', + 'x_obs_expires': 'int' + } + + attribute_map = { + 'bucket_name': 'bucket_name', + 'object_key': 'object_key', + 'date': 'Date', + 'content_md5': 'Content-MD5', + 'x_obs_acl': 'x-obs-acl', + 'x_obs_grant_read': 'x-obs-grant-read', + 'x_obs_grant_read_acp': 'x-obs-grant-read-acp', + 'x_obs_grant_write_acp': 'x-obs-grant-write-acp', + 'x_obs_grant_full_control': 'x-obs-grant-full-control', + 'x_obs_storage_class': 'x-obs-storage-class', + 'x_obs_meta_xxx': 'x-obs-meta-xxx', + 'x_obs_persistent_headers': 'x-obs-persistent-headers', + 'x_obs_website_redirect_location': 'x-obs-website-redirect-location', + 'x_obs_server_side_encryption': 'x-obs-server-side-encryption', + 'x_obs_server_side_encryption_kms_key_id': 'x-obs-server-side-encryption-kms-key-id', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_server_side_encryption_customer_key': 'x-obs-server-side-encryption-customer-key', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5', + 'success_action_redirect': 'success-action-redirect', + 'x_obs_expires': 'x-obs-expires' + } + + def __init__(self, stream=None, bucket_name=None, object_key=None, date=None, content_md5=None, x_obs_acl=None, x_obs_grant_read=None, x_obs_grant_read_acp=None, x_obs_grant_write_acp=None, x_obs_grant_full_control=None, x_obs_storage_class=None, x_obs_meta_xxx=None, x_obs_persistent_headers=None, x_obs_website_redirect_location=None, x_obs_server_side_encryption=None, x_obs_server_side_encryption_kms_key_id=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_server_side_encryption_customer_key=None, x_obs_server_side_encryption_customer_key_md5=None, success_action_redirect=None, x_obs_expires=None): + """PutObjectRequest + + The model defined in huaweicloud sdk + + :param bucket_name: 桶名称 + :type bucket_name: str + :param object_key: 通过此请求创建的对象名称。 + :type object_key: str + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param content_md5: 按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串 示例:n58IG6hfM7vqI4K0vnWpog==。 + :type content_md5: str + :param x_obs_acl: 创建对象时,可以加上此消息头设置对象的权限控制策略,使用的策略为预定义的常用策 示例:x-obs-acl: public-read。 + :type x_obs_acl: str + :param x_obs_grant_read: 创建对象时,使用此头域授权租户下所有用户有读对象和获取对象元数据的权限 示例:x-obs-grant-read: id=domainID。如果授权给多个租户,需要通过','分割。 + :type x_obs_grant_read: str + :param x_obs_grant_read_acp: 创建对象时,使用此头域授权租户下所有用户有获取对象ACL的权限 示例:x-obs-grant-read-acp: id=domainID。如果授权给多个租户,需要通过','分割。 + :type x_obs_grant_read_acp: str + :param x_obs_grant_write_acp: 创建对象时,使用此头域授权租户下所有用户有写对象ACL的权 示例:x-obs-grant-write-acp: id=domainID。如果授权给多个租户,需要通过','分割。 + :type x_obs_grant_write_acp: str + :param x_obs_grant_full_control: 创建对象时,使用此头域授权domain下所有用户有读对象、获取对象元数据、获取对象ACL、写对象ACL的权限 示例:x-obs-grant-full-control: id=domainID。如果授权给多个租户,需要通过','分割。 + :type x_obs_grant_full_control: str + :param x_obs_storage_class: 创建对象时,可以加上此头域设置对象的存储类型。如果未设置此头域,则以桶的默认存储类型作为对象的存储类型 说明:存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。因此这里可配置的值有:STANDARD、WARM和COLD,注意大小写敏感。 示例:x-obs-storage-class: STANDARD + :type x_obs_storage_class: str + :param x_obs_meta_xxx: 用户自定义元数据 示例:x-obs-meta-test: test metadata + :type x_obs_meta_xxx: str + :param x_obs_persistent_headers: 创建对象时,可以在HTTP请求中加入“x-obs-persistent-headers”消息头,用来加入一个或多个自定义的响应头,当用户获取此对象或查询此对象元数据时,加入的自定义响应头将会在返回消息的头域中出现。 格式:x-obs-persistent-headers: key1:base64_encode(value1),key2:base64_encode(value2).... 说明:其中key1/key2等为自定义header,若含有非ASCII码或不可识别字符,可以采用URL编码或者Base64编码,服务端只会作为字符串处理,不会做解码。value1/value2等为对应自定义header的值,base64_encode指做base64编码,即将自定义header和对应值的base64编码作为一个key-value对用“:”连接,然后用“,”将所有的key-value对连接起来,放在x-obs-persistent-headers这个header中即可,服务端会对上传的value做解码处理。 示例: x-obs-persistent-headers: key1:dmFsdWUx,key2:dmFsdWUy 下载此对象或获取此对象元数据时:返回两个头域分别为“key1:value1”与“key2:value2” 约束: 1. 通过该方式指定的自定义响应头不能以“x-obs-”为前缀,比如可以指定“key1”,但是不能指定“x-obs-key1” 2. 不能指定http标准头,例如host/content-md5/origin/range/Content-Disposition等 3. 此头域和自定义元数据总长度不能超过8KB 4. 如果传入相同key,将value以“,”拼接后放入同一个key中返回 + :type x_obs_persistent_headers: str + :param x_obs_website_redirect_location: 当桶设置了Website配置,可以将获取这个对象的请求重定向到桶内另一个对象或一个外部的URL,OBS将这个值从头域中取出,保存在对象的元数据中。 例如,重定向请求到桶内另一对象: x-obs-website-redirect-location:/anotherPage.html 或重定向请求到一个外部URL: x-obs-website-redirect-location:http://www.example.com/ 默认值:无 约束:必须以“/”、“http://”或“https://”开头,长度不超过2KB。 + :type x_obs_website_redirect_location: str + :param x_obs_server_side_encryption: 使用该头域表示服务端加密是SSE-KMS方式。 示例:x-obs-server-side-encryption: kms + :type x_obs_server_side_encryption: str + :param x_obs_server_side_encryption_kms_key_id: SSE-KMS方式下使用该头域,该头域表示主密钥,如果用户没有提供该头域,那么默认的主密钥将会被使用。 支持两种格式的描述方式: 1. regionID:domainID(租户ID):key/key_id 或者 2.key_id 其中regionID是使用密钥所属region的ID;domainID是使用密钥所属租户的租户ID;key_id是从数据加密服务创建的密钥ID。 示例: 1. x-obs-server-side-encryption-kms-key-id: cn-north-4:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0 或者 2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0 + :type x_obs_server_side_encryption_kms_key_id: str + :param x_obs_server_side_encryption_customer_algorithm: SSE-C方式下使用该头域,该头域表示加密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_server_side_encryption_customer_key: SSE-C方式下使用该头域,该头域表示加密使用的密钥。该密钥用于加密对象 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + :type x_obs_server_side_encryption_customer_key: str + :param x_obs_server_side_encryption_customer_key_md5: SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束: 该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + :type x_obs_server_side_encryption_customer_key_md5: str + :param success_action_redirect: 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 + :type success_action_redirect: str + :param x_obs_expires: 表示对象的过期时间,单位是天。过期之后对象会被自动删除。(从对象最后修改时间开始计算) 此字段对于每个对象仅支持上传时配置,不支持后期通过修改元数据接口修改。 示例:x-obs-expires:3 + :type x_obs_expires: int + """ + super(PutObjectRequest, self).__init__(stream) + + + self._bucket_name = None + self._object_key = None + self._date = None + self._content_md5 = None + self._x_obs_acl = None + self._x_obs_grant_read = None + self._x_obs_grant_read_acp = None + self._x_obs_grant_write_acp = None + self._x_obs_grant_full_control = None + self._x_obs_storage_class = None + self._x_obs_meta_xxx = None + self._x_obs_persistent_headers = None + self._x_obs_website_redirect_location = None + self._x_obs_server_side_encryption = None + self._x_obs_server_side_encryption_kms_key_id = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_server_side_encryption_customer_key = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self._success_action_redirect = None + self._x_obs_expires = None + self.discriminator = None + + self.bucket_name = bucket_name + self.object_key = object_key + if date is not None: + self.date = date + if content_md5 is not None: + self.content_md5 = content_md5 + if x_obs_acl is not None: + self.x_obs_acl = x_obs_acl + if x_obs_grant_read is not None: + self.x_obs_grant_read = x_obs_grant_read + if x_obs_grant_read_acp is not None: + self.x_obs_grant_read_acp = x_obs_grant_read_acp + if x_obs_grant_write_acp is not None: + self.x_obs_grant_write_acp = x_obs_grant_write_acp + if x_obs_grant_full_control is not None: + self.x_obs_grant_full_control = x_obs_grant_full_control + if x_obs_storage_class is not None: + self.x_obs_storage_class = x_obs_storage_class + if x_obs_meta_xxx is not None: + self.x_obs_meta_xxx = x_obs_meta_xxx + if x_obs_persistent_headers is not None: + self.x_obs_persistent_headers = x_obs_persistent_headers + if x_obs_website_redirect_location is not None: + self.x_obs_website_redirect_location = x_obs_website_redirect_location + if x_obs_server_side_encryption is not None: + self.x_obs_server_side_encryption = x_obs_server_side_encryption + if x_obs_server_side_encryption_kms_key_id is not None: + self.x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_server_side_encryption_customer_key is not None: + self.x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + if success_action_redirect is not None: + self.success_action_redirect = success_action_redirect + if x_obs_expires is not None: + self.x_obs_expires = x_obs_expires + + @property + def bucket_name(self): + """Gets the bucket_name of this PutObjectRequest. + + 桶名称 + + :return: The bucket_name of this PutObjectRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this PutObjectRequest. + + 桶名称 + + :param bucket_name: The bucket_name of this PutObjectRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def object_key(self): + """Gets the object_key of this PutObjectRequest. + + 通过此请求创建的对象名称。 + + :return: The object_key of this PutObjectRequest. + :rtype: str + """ + return self._object_key + + @object_key.setter + def object_key(self, object_key): + """Sets the object_key of this PutObjectRequest. + + 通过此请求创建的对象名称。 + + :param object_key: The object_key of this PutObjectRequest. + :type object_key: str + """ + self._object_key = object_key + + @property + def date(self): + """Gets the date of this PutObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this PutObjectRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this PutObjectRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this PutObjectRequest. + :type date: str + """ + self._date = date + + @property + def content_md5(self): + """Gets the content_md5 of this PutObjectRequest. + + 按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串 示例:n58IG6hfM7vqI4K0vnWpog==。 + + :return: The content_md5 of this PutObjectRequest. + :rtype: str + """ + return self._content_md5 + + @content_md5.setter + def content_md5(self, content_md5): + """Sets the content_md5 of this PutObjectRequest. + + 按照RFC 1864标准计算出消息体的MD5摘要字符串,即消息体128-bit MD5值经过base64编码后得到的字符串 示例:n58IG6hfM7vqI4K0vnWpog==。 + + :param content_md5: The content_md5 of this PutObjectRequest. + :type content_md5: str + """ + self._content_md5 = content_md5 + + @property + def x_obs_acl(self): + """Gets the x_obs_acl of this PutObjectRequest. + + 创建对象时,可以加上此消息头设置对象的权限控制策略,使用的策略为预定义的常用策 示例:x-obs-acl: public-read。 + + :return: The x_obs_acl of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_acl + + @x_obs_acl.setter + def x_obs_acl(self, x_obs_acl): + """Sets the x_obs_acl of this PutObjectRequest. + + 创建对象时,可以加上此消息头设置对象的权限控制策略,使用的策略为预定义的常用策 示例:x-obs-acl: public-read。 + + :param x_obs_acl: The x_obs_acl of this PutObjectRequest. + :type x_obs_acl: str + """ + self._x_obs_acl = x_obs_acl + + @property + def x_obs_grant_read(self): + """Gets the x_obs_grant_read of this PutObjectRequest. + + 创建对象时,使用此头域授权租户下所有用户有读对象和获取对象元数据的权限 示例:x-obs-grant-read: id=domainID。如果授权给多个租户,需要通过','分割。 + + :return: The x_obs_grant_read of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_grant_read + + @x_obs_grant_read.setter + def x_obs_grant_read(self, x_obs_grant_read): + """Sets the x_obs_grant_read of this PutObjectRequest. + + 创建对象时,使用此头域授权租户下所有用户有读对象和获取对象元数据的权限 示例:x-obs-grant-read: id=domainID。如果授权给多个租户,需要通过','分割。 + + :param x_obs_grant_read: The x_obs_grant_read of this PutObjectRequest. + :type x_obs_grant_read: str + """ + self._x_obs_grant_read = x_obs_grant_read + + @property + def x_obs_grant_read_acp(self): + """Gets the x_obs_grant_read_acp of this PutObjectRequest. + + 创建对象时,使用此头域授权租户下所有用户有获取对象ACL的权限 示例:x-obs-grant-read-acp: id=domainID。如果授权给多个租户,需要通过','分割。 + + :return: The x_obs_grant_read_acp of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_grant_read_acp + + @x_obs_grant_read_acp.setter + def x_obs_grant_read_acp(self, x_obs_grant_read_acp): + """Sets the x_obs_grant_read_acp of this PutObjectRequest. + + 创建对象时,使用此头域授权租户下所有用户有获取对象ACL的权限 示例:x-obs-grant-read-acp: id=domainID。如果授权给多个租户,需要通过','分割。 + + :param x_obs_grant_read_acp: The x_obs_grant_read_acp of this PutObjectRequest. + :type x_obs_grant_read_acp: str + """ + self._x_obs_grant_read_acp = x_obs_grant_read_acp + + @property + def x_obs_grant_write_acp(self): + """Gets the x_obs_grant_write_acp of this PutObjectRequest. + + 创建对象时,使用此头域授权租户下所有用户有写对象ACL的权 示例:x-obs-grant-write-acp: id=domainID。如果授权给多个租户,需要通过','分割。 + + :return: The x_obs_grant_write_acp of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_grant_write_acp + + @x_obs_grant_write_acp.setter + def x_obs_grant_write_acp(self, x_obs_grant_write_acp): + """Sets the x_obs_grant_write_acp of this PutObjectRequest. + + 创建对象时,使用此头域授权租户下所有用户有写对象ACL的权 示例:x-obs-grant-write-acp: id=domainID。如果授权给多个租户,需要通过','分割。 + + :param x_obs_grant_write_acp: The x_obs_grant_write_acp of this PutObjectRequest. + :type x_obs_grant_write_acp: str + """ + self._x_obs_grant_write_acp = x_obs_grant_write_acp + + @property + def x_obs_grant_full_control(self): + """Gets the x_obs_grant_full_control of this PutObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有读对象、获取对象元数据、获取对象ACL、写对象ACL的权限 示例:x-obs-grant-full-control: id=domainID。如果授权给多个租户,需要通过','分割。 + + :return: The x_obs_grant_full_control of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_grant_full_control + + @x_obs_grant_full_control.setter + def x_obs_grant_full_control(self, x_obs_grant_full_control): + """Sets the x_obs_grant_full_control of this PutObjectRequest. + + 创建对象时,使用此头域授权domain下所有用户有读对象、获取对象元数据、获取对象ACL、写对象ACL的权限 示例:x-obs-grant-full-control: id=domainID。如果授权给多个租户,需要通过','分割。 + + :param x_obs_grant_full_control: The x_obs_grant_full_control of this PutObjectRequest. + :type x_obs_grant_full_control: str + """ + self._x_obs_grant_full_control = x_obs_grant_full_control + + @property + def x_obs_storage_class(self): + """Gets the x_obs_storage_class of this PutObjectRequest. + + 创建对象时,可以加上此头域设置对象的存储类型。如果未设置此头域,则以桶的默认存储类型作为对象的存储类型 说明:存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。因此这里可配置的值有:STANDARD、WARM和COLD,注意大小写敏感。 示例:x-obs-storage-class: STANDARD + + :return: The x_obs_storage_class of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_storage_class + + @x_obs_storage_class.setter + def x_obs_storage_class(self, x_obs_storage_class): + """Sets the x_obs_storage_class of this PutObjectRequest. + + 创建对象时,可以加上此头域设置对象的存储类型。如果未设置此头域,则以桶的默认存储类型作为对象的存储类型 说明:存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。因此这里可配置的值有:STANDARD、WARM和COLD,注意大小写敏感。 示例:x-obs-storage-class: STANDARD + + :param x_obs_storage_class: The x_obs_storage_class of this PutObjectRequest. + :type x_obs_storage_class: str + """ + self._x_obs_storage_class = x_obs_storage_class + + @property + def x_obs_meta_xxx(self): + """Gets the x_obs_meta_xxx of this PutObjectRequest. + + 用户自定义元数据 示例:x-obs-meta-test: test metadata + + :return: The x_obs_meta_xxx of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_meta_xxx + + @x_obs_meta_xxx.setter + def x_obs_meta_xxx(self, x_obs_meta_xxx): + """Sets the x_obs_meta_xxx of this PutObjectRequest. + + 用户自定义元数据 示例:x-obs-meta-test: test metadata + + :param x_obs_meta_xxx: The x_obs_meta_xxx of this PutObjectRequest. + :type x_obs_meta_xxx: str + """ + self._x_obs_meta_xxx = x_obs_meta_xxx + + @property + def x_obs_persistent_headers(self): + """Gets the x_obs_persistent_headers of this PutObjectRequest. + + 创建对象时,可以在HTTP请求中加入“x-obs-persistent-headers”消息头,用来加入一个或多个自定义的响应头,当用户获取此对象或查询此对象元数据时,加入的自定义响应头将会在返回消息的头域中出现。 格式:x-obs-persistent-headers: key1:base64_encode(value1),key2:base64_encode(value2).... 说明:其中key1/key2等为自定义header,若含有非ASCII码或不可识别字符,可以采用URL编码或者Base64编码,服务端只会作为字符串处理,不会做解码。value1/value2等为对应自定义header的值,base64_encode指做base64编码,即将自定义header和对应值的base64编码作为一个key-value对用“:”连接,然后用“,”将所有的key-value对连接起来,放在x-obs-persistent-headers这个header中即可,服务端会对上传的value做解码处理。 示例: x-obs-persistent-headers: key1:dmFsdWUx,key2:dmFsdWUy 下载此对象或获取此对象元数据时:返回两个头域分别为“key1:value1”与“key2:value2” 约束: 1. 通过该方式指定的自定义响应头不能以“x-obs-”为前缀,比如可以指定“key1”,但是不能指定“x-obs-key1” 2. 不能指定http标准头,例如host/content-md5/origin/range/Content-Disposition等 3. 此头域和自定义元数据总长度不能超过8KB 4. 如果传入相同key,将value以“,”拼接后放入同一个key中返回 + + :return: The x_obs_persistent_headers of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_persistent_headers + + @x_obs_persistent_headers.setter + def x_obs_persistent_headers(self, x_obs_persistent_headers): + """Sets the x_obs_persistent_headers of this PutObjectRequest. + + 创建对象时,可以在HTTP请求中加入“x-obs-persistent-headers”消息头,用来加入一个或多个自定义的响应头,当用户获取此对象或查询此对象元数据时,加入的自定义响应头将会在返回消息的头域中出现。 格式:x-obs-persistent-headers: key1:base64_encode(value1),key2:base64_encode(value2).... 说明:其中key1/key2等为自定义header,若含有非ASCII码或不可识别字符,可以采用URL编码或者Base64编码,服务端只会作为字符串处理,不会做解码。value1/value2等为对应自定义header的值,base64_encode指做base64编码,即将自定义header和对应值的base64编码作为一个key-value对用“:”连接,然后用“,”将所有的key-value对连接起来,放在x-obs-persistent-headers这个header中即可,服务端会对上传的value做解码处理。 示例: x-obs-persistent-headers: key1:dmFsdWUx,key2:dmFsdWUy 下载此对象或获取此对象元数据时:返回两个头域分别为“key1:value1”与“key2:value2” 约束: 1. 通过该方式指定的自定义响应头不能以“x-obs-”为前缀,比如可以指定“key1”,但是不能指定“x-obs-key1” 2. 不能指定http标准头,例如host/content-md5/origin/range/Content-Disposition等 3. 此头域和自定义元数据总长度不能超过8KB 4. 如果传入相同key,将value以“,”拼接后放入同一个key中返回 + + :param x_obs_persistent_headers: The x_obs_persistent_headers of this PutObjectRequest. + :type x_obs_persistent_headers: str + """ + self._x_obs_persistent_headers = x_obs_persistent_headers + + @property + def x_obs_website_redirect_location(self): + """Gets the x_obs_website_redirect_location of this PutObjectRequest. + + 当桶设置了Website配置,可以将获取这个对象的请求重定向到桶内另一个对象或一个外部的URL,OBS将这个值从头域中取出,保存在对象的元数据中。 例如,重定向请求到桶内另一对象: x-obs-website-redirect-location:/anotherPage.html 或重定向请求到一个外部URL: x-obs-website-redirect-location:http://www.example.com/ 默认值:无 约束:必须以“/”、“http://”或“https://”开头,长度不超过2KB。 + + :return: The x_obs_website_redirect_location of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_website_redirect_location + + @x_obs_website_redirect_location.setter + def x_obs_website_redirect_location(self, x_obs_website_redirect_location): + """Sets the x_obs_website_redirect_location of this PutObjectRequest. + + 当桶设置了Website配置,可以将获取这个对象的请求重定向到桶内另一个对象或一个外部的URL,OBS将这个值从头域中取出,保存在对象的元数据中。 例如,重定向请求到桶内另一对象: x-obs-website-redirect-location:/anotherPage.html 或重定向请求到一个外部URL: x-obs-website-redirect-location:http://www.example.com/ 默认值:无 约束:必须以“/”、“http://”或“https://”开头,长度不超过2KB。 + + :param x_obs_website_redirect_location: The x_obs_website_redirect_location of this PutObjectRequest. + :type x_obs_website_redirect_location: str + """ + self._x_obs_website_redirect_location = x_obs_website_redirect_location + + @property + def x_obs_server_side_encryption(self): + """Gets the x_obs_server_side_encryption of this PutObjectRequest. + + 使用该头域表示服务端加密是SSE-KMS方式。 示例:x-obs-server-side-encryption: kms + + :return: The x_obs_server_side_encryption of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption + + @x_obs_server_side_encryption.setter + def x_obs_server_side_encryption(self, x_obs_server_side_encryption): + """Sets the x_obs_server_side_encryption of this PutObjectRequest. + + 使用该头域表示服务端加密是SSE-KMS方式。 示例:x-obs-server-side-encryption: kms + + :param x_obs_server_side_encryption: The x_obs_server_side_encryption of this PutObjectRequest. + :type x_obs_server_side_encryption: str + """ + self._x_obs_server_side_encryption = x_obs_server_side_encryption + + @property + def x_obs_server_side_encryption_kms_key_id(self): + """Gets the x_obs_server_side_encryption_kms_key_id of this PutObjectRequest. + + SSE-KMS方式下使用该头域,该头域表示主密钥,如果用户没有提供该头域,那么默认的主密钥将会被使用。 支持两种格式的描述方式: 1. regionID:domainID(租户ID):key/key_id 或者 2.key_id 其中regionID是使用密钥所属region的ID;domainID是使用密钥所属租户的租户ID;key_id是从数据加密服务创建的密钥ID。 示例: 1. x-obs-server-side-encryption-kms-key-id: cn-north-4:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0 或者 2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0 + + :return: The x_obs_server_side_encryption_kms_key_id of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_kms_key_id + + @x_obs_server_side_encryption_kms_key_id.setter + def x_obs_server_side_encryption_kms_key_id(self, x_obs_server_side_encryption_kms_key_id): + """Sets the x_obs_server_side_encryption_kms_key_id of this PutObjectRequest. + + SSE-KMS方式下使用该头域,该头域表示主密钥,如果用户没有提供该头域,那么默认的主密钥将会被使用。 支持两种格式的描述方式: 1. regionID:domainID(租户ID):key/key_id 或者 2.key_id 其中regionID是使用密钥所属region的ID;domainID是使用密钥所属租户的租户ID;key_id是从数据加密服务创建的密钥ID。 示例: 1. x-obs-server-side-encryption-kms-key-id: cn-north-4:domainiddomainiddomainiddoma0001:key/4f1cd4de-ab64-4807-920a-47fc42e7f0d0 或者 2. x-obs-server-side-encryption-kms-key-id: 4f1cd4de-ab64-4807-920a-47fc42e7f0d0 + + :param x_obs_server_side_encryption_kms_key_id: The x_obs_server_side_encryption_kms_key_id of this PutObjectRequest. + :type x_obs_server_side_encryption_kms_key_id: str + """ + self._x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this PutObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :return: The x_obs_server_side_encryption_customer_algorithm of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this PutObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的算法。 示例:x-obs-server-side-encryption-customer-algorithm: AES256 约束:需要和x-obs-server-side-encryption-customer-key, x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this PutObjectRequest. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_server_side_encryption_customer_key(self): + """Gets the x_obs_server_side_encryption_customer_key of this PutObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥。该密钥用于加密对象 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :return: The x_obs_server_side_encryption_customer_key of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key + + @x_obs_server_side_encryption_customer_key.setter + def x_obs_server_side_encryption_customer_key(self, x_obs_server_side_encryption_customer_key): + """Sets the x_obs_server_side_encryption_customer_key of this PutObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥。该密钥用于加密对象 示例:x-obs-server-side-encryption-customer-key:K7QkYpBkM5+hca27fsNkUnNVaobncnLht/rCB2o/9Cw= 约束:该头域由256-bit的密钥经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key-MD5一起使用。 + + :param x_obs_server_side_encryption_customer_key: The x_obs_server_side_encryption_customer_key of this PutObjectRequest. + :type x_obs_server_side_encryption_customer_key: str + """ + self._x_obs_server_side_encryption_customer_key = x_obs_server_side_encryption_customer_key + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this PutObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束: 该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + + :return: The x_obs_server_side_encryption_customer_key_md5 of this PutObjectRequest. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this PutObjectRequest. + + SSE-C方式下使用该头域,该头域表示加密使用的密钥的MD5值。MD5值用于验证密钥传输过程中没有出错。 示例:x-obs-server-side-encryption-customer-key-MD5:4XvB3tbNTN+tIEVa0/fGaQ== 约束: 该头域由密钥的128-bit MD5值经过base64-encoded得到,需要和x-obs-server-side-encryption-customer-algorithm,x-obs-server-side-encryption-customer-key一起使用。 + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this PutObjectRequest. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def success_action_redirect(self): + """Gets the success_action_redirect of this PutObjectRequest. + + 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 + + :return: The success_action_redirect of this PutObjectRequest. + :rtype: str + """ + return self._success_action_redirect + + @success_action_redirect.setter + def success_action_redirect(self, success_action_redirect): + """Sets the success_action_redirect of this PutObjectRequest. + + 此参数的值是一个URL,用于指定当此次请求操作成功响应后的重定向的地址。 如果此参数值有效且操作成功,响应码为303,Location头域由此参数以及桶名、对象名、对象的ETag组成。 如果此参数值无效,则OBS忽略此参数的作用,响应码为204,Location头域为对象地址。 + + :param success_action_redirect: The success_action_redirect of this PutObjectRequest. + :type success_action_redirect: str + """ + self._success_action_redirect = success_action_redirect + + @property + def x_obs_expires(self): + """Gets the x_obs_expires of this PutObjectRequest. + + 表示对象的过期时间,单位是天。过期之后对象会被自动删除。(从对象最后修改时间开始计算) 此字段对于每个对象仅支持上传时配置,不支持后期通过修改元数据接口修改。 示例:x-obs-expires:3 + + :return: The x_obs_expires of this PutObjectRequest. + :rtype: int + """ + return self._x_obs_expires + + @x_obs_expires.setter + def x_obs_expires(self, x_obs_expires): + """Sets the x_obs_expires of this PutObjectRequest. + + 表示对象的过期时间,单位是天。过期之后对象会被自动删除。(从对象最后修改时间开始计算) 此字段对于每个对象仅支持上传时配置,不支持后期通过修改元数据接口修改。 示例:x-obs-expires:3 + + :param x_obs_expires: The x_obs_expires of this PutObjectRequest. + :type x_obs_expires: int + """ + self._x_obs_expires = x_obs_expires + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PutObjectRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/put_object_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/put_object_response.py new file mode 100644 index 000000000..06e3858b8 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/put_object_response.py @@ -0,0 +1,389 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class PutObjectResponse(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. + """ + xml_name = "PutObjectResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'x_obs_server_side_encryption': 'str', + 'x_obs_server_side_encryption_customer_algorithm': 'str', + 'x_obs_storage_class': 'str', + 'connection': 'str', + 'x_obs_server_side_encryption_customer_key_md5': 'str', + 'x_obs_server_side_encryption_kms_key_id': 'str', + 'content_length': 'str', + 'date': 'str', + 'x_obs_version_id': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'x_obs_server_side_encryption': 'x-obs-server-side-encryption', + 'x_obs_server_side_encryption_customer_algorithm': 'x-obs-server-side-encryption-customer-algorithm', + 'x_obs_storage_class': 'x-obs-storage-class', + 'connection': 'Connection', + 'x_obs_server_side_encryption_customer_key_md5': 'x-obs-server-side-encryption-customer-key-MD5', + 'x_obs_server_side_encryption_kms_key_id': 'x-obs-server-side-encryption-kms-key-id', + 'content_length': 'Content-Length', + 'date': 'Date', + 'x_obs_version_id': 'x-obs-version-id' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, x_obs_server_side_encryption=None, x_obs_server_side_encryption_customer_algorithm=None, x_obs_storage_class=None, connection=None, x_obs_server_side_encryption_customer_key_md5=None, x_obs_server_side_encryption_kms_key_id=None, content_length=None, date=None, x_obs_version_id=None): + """PutObjectResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param x_obs_server_side_encryption: + :type x_obs_server_side_encryption: str + :param x_obs_server_side_encryption_customer_algorithm: + :type x_obs_server_side_encryption_customer_algorithm: str + :param x_obs_storage_class: + :type x_obs_storage_class: str + :param connection: + :type connection: str + :param x_obs_server_side_encryption_customer_key_md5: + :type x_obs_server_side_encryption_customer_key_md5: str + :param x_obs_server_side_encryption_kms_key_id: + :type x_obs_server_side_encryption_kms_key_id: str + :param content_length: + :type content_length: str + :param date: + :type date: str + :param x_obs_version_id: + :type x_obs_version_id: str + """ + + super(PutObjectResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._x_obs_server_side_encryption = None + self._x_obs_server_side_encryption_customer_algorithm = None + self._x_obs_storage_class = None + self._connection = None + self._x_obs_server_side_encryption_customer_key_md5 = None + self._x_obs_server_side_encryption_kms_key_id = None + self._content_length = None + self._date = None + self._x_obs_version_id = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if x_obs_server_side_encryption is not None: + self.x_obs_server_side_encryption = x_obs_server_side_encryption + if x_obs_server_side_encryption_customer_algorithm is not None: + self.x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + if x_obs_storage_class is not None: + self.x_obs_storage_class = x_obs_storage_class + if connection is not None: + self.connection = connection + if x_obs_server_side_encryption_customer_key_md5 is not None: + self.x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + if x_obs_server_side_encryption_kms_key_id is not None: + self.x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + if x_obs_version_id is not None: + self.x_obs_version_id = x_obs_version_id + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this PutObjectResponse. + + :return: The x_obs_id_2 of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this PutObjectResponse. + + :param x_obs_id_2: The x_obs_id_2 of this PutObjectResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this PutObjectResponse. + + :return: The x_obs_request_id of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this PutObjectResponse. + + :param x_obs_request_id: The x_obs_request_id of this PutObjectResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this PutObjectResponse. + + :return: The e_tag of this PutObjectResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this PutObjectResponse. + + :param e_tag: The e_tag of this PutObjectResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def x_obs_server_side_encryption(self): + """Gets the x_obs_server_side_encryption of this PutObjectResponse. + + :return: The x_obs_server_side_encryption of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption + + @x_obs_server_side_encryption.setter + def x_obs_server_side_encryption(self, x_obs_server_side_encryption): + """Sets the x_obs_server_side_encryption of this PutObjectResponse. + + :param x_obs_server_side_encryption: The x_obs_server_side_encryption of this PutObjectResponse. + :type x_obs_server_side_encryption: str + """ + self._x_obs_server_side_encryption = x_obs_server_side_encryption + + @property + def x_obs_server_side_encryption_customer_algorithm(self): + """Gets the x_obs_server_side_encryption_customer_algorithm of this PutObjectResponse. + + :return: The x_obs_server_side_encryption_customer_algorithm of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_algorithm + + @x_obs_server_side_encryption_customer_algorithm.setter + def x_obs_server_side_encryption_customer_algorithm(self, x_obs_server_side_encryption_customer_algorithm): + """Sets the x_obs_server_side_encryption_customer_algorithm of this PutObjectResponse. + + :param x_obs_server_side_encryption_customer_algorithm: The x_obs_server_side_encryption_customer_algorithm of this PutObjectResponse. + :type x_obs_server_side_encryption_customer_algorithm: str + """ + self._x_obs_server_side_encryption_customer_algorithm = x_obs_server_side_encryption_customer_algorithm + + @property + def x_obs_storage_class(self): + """Gets the x_obs_storage_class of this PutObjectResponse. + + :return: The x_obs_storage_class of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_storage_class + + @x_obs_storage_class.setter + def x_obs_storage_class(self, x_obs_storage_class): + """Sets the x_obs_storage_class of this PutObjectResponse. + + :param x_obs_storage_class: The x_obs_storage_class of this PutObjectResponse. + :type x_obs_storage_class: str + """ + self._x_obs_storage_class = x_obs_storage_class + + @property + def connection(self): + """Gets the connection of this PutObjectResponse. + + :return: The connection of this PutObjectResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this PutObjectResponse. + + :param connection: The connection of this PutObjectResponse. + :type connection: str + """ + self._connection = connection + + @property + def x_obs_server_side_encryption_customer_key_md5(self): + """Gets the x_obs_server_side_encryption_customer_key_md5 of this PutObjectResponse. + + :return: The x_obs_server_side_encryption_customer_key_md5 of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_customer_key_md5 + + @x_obs_server_side_encryption_customer_key_md5.setter + def x_obs_server_side_encryption_customer_key_md5(self, x_obs_server_side_encryption_customer_key_md5): + """Sets the x_obs_server_side_encryption_customer_key_md5 of this PutObjectResponse. + + :param x_obs_server_side_encryption_customer_key_md5: The x_obs_server_side_encryption_customer_key_md5 of this PutObjectResponse. + :type x_obs_server_side_encryption_customer_key_md5: str + """ + self._x_obs_server_side_encryption_customer_key_md5 = x_obs_server_side_encryption_customer_key_md5 + + @property + def x_obs_server_side_encryption_kms_key_id(self): + """Gets the x_obs_server_side_encryption_kms_key_id of this PutObjectResponse. + + :return: The x_obs_server_side_encryption_kms_key_id of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_server_side_encryption_kms_key_id + + @x_obs_server_side_encryption_kms_key_id.setter + def x_obs_server_side_encryption_kms_key_id(self, x_obs_server_side_encryption_kms_key_id): + """Sets the x_obs_server_side_encryption_kms_key_id of this PutObjectResponse. + + :param x_obs_server_side_encryption_kms_key_id: The x_obs_server_side_encryption_kms_key_id of this PutObjectResponse. + :type x_obs_server_side_encryption_kms_key_id: str + """ + self._x_obs_server_side_encryption_kms_key_id = x_obs_server_side_encryption_kms_key_id + + @property + def content_length(self): + """Gets the content_length of this PutObjectResponse. + + :return: The content_length of this PutObjectResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this PutObjectResponse. + + :param content_length: The content_length of this PutObjectResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this PutObjectResponse. + + :return: The date of this PutObjectResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this PutObjectResponse. + + :param date: The date of this PutObjectResponse. + :type date: str + """ + self._date = date + + @property + def x_obs_version_id(self): + """Gets the x_obs_version_id of this PutObjectResponse. + + :return: The x_obs_version_id of this PutObjectResponse. + :rtype: str + """ + return self._x_obs_version_id + + @x_obs_version_id.setter + def x_obs_version_id(self, x_obs_version_id): + """Sets the x_obs_version_id of this PutObjectResponse. + + :param x_obs_version_id: The x_obs_version_id of this PutObjectResponse. + :type x_obs_version_id: str + """ + self._x_obs_version_id = x_obs_version_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, PutObjectResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_request.py new file mode 100644 index 000000000..40e3309e2 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_request.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketAclRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "SetBucketAclRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'acl': 'str', + 'x_obs_acl': 'str', + 'body': 'SetBucketAclRequestBody' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'acl': 'acl', + 'x_obs_acl': 'x-obs-acl', + 'body': 'body' + } + + def __init__(self, date=None, bucket_name=None, acl=None, x_obs_acl=None, body=None): + """SetBucketAclRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param acl: acl表示请求访问控制列表API。 + :type acl: str + :param x_obs_acl: 通过cannedACL的方式来设置桶的ACL。 取值范围:private | public-read | public-read-write | public-read-delivered | public-read-write-delivered + :type x_obs_acl: str + :param body: Body of the SetBucketAclRequest + :type body: :class:`huaweicloudsdkobs.v1.SetBucketAclRequestBody` + """ + + + + self._date = None + self._bucket_name = None + self._acl = None + self._x_obs_acl = None + self._body = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.acl = acl + if x_obs_acl is not None: + self.x_obs_acl = x_obs_acl + if body is not None: + self.body = body + + @property + def date(self): + """Gets the date of this SetBucketAclRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this SetBucketAclRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this SetBucketAclRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this SetBucketAclRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this SetBucketAclRequest. + + 请求的桶名称。 + + :return: The bucket_name of this SetBucketAclRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this SetBucketAclRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this SetBucketAclRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def acl(self): + """Gets the acl of this SetBucketAclRequest. + + acl表示请求访问控制列表API。 + + :return: The acl of this SetBucketAclRequest. + :rtype: str + """ + return self._acl + + @acl.setter + def acl(self, acl): + """Sets the acl of this SetBucketAclRequest. + + acl表示请求访问控制列表API。 + + :param acl: The acl of this SetBucketAclRequest. + :type acl: str + """ + self._acl = acl + + @property + def x_obs_acl(self): + """Gets the x_obs_acl of this SetBucketAclRequest. + + 通过cannedACL的方式来设置桶的ACL。 取值范围:private | public-read | public-read-write | public-read-delivered | public-read-write-delivered + + :return: The x_obs_acl of this SetBucketAclRequest. + :rtype: str + """ + return self._x_obs_acl + + @x_obs_acl.setter + def x_obs_acl(self, x_obs_acl): + """Sets the x_obs_acl of this SetBucketAclRequest. + + 通过cannedACL的方式来设置桶的ACL。 取值范围:private | public-read | public-read-write | public-read-delivered | public-read-write-delivered + + :param x_obs_acl: The x_obs_acl of this SetBucketAclRequest. + :type x_obs_acl: str + """ + self._x_obs_acl = x_obs_acl + + @property + def body(self): + """Gets the body of this SetBucketAclRequest. + + :return: The body of this SetBucketAclRequest. + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketAclRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetBucketAclRequest. + + :param body: The body of this SetBucketAclRequest. + :type body: :class:`huaweicloudsdkobs.v1.SetBucketAclRequestBody` + """ + 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, SetBucketAclRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py new file mode 100644 index 000000000..a8c67abeb --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_request_body.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketAclRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "AccessControlPolicy" + + sensitive_list = [] + + openapi_types = { + 'owner': 'Owner', + 'access_control_list': 'AccessControlList' + } + + attribute_map = { + 'owner': 'Owner', + 'access_control_list': 'AccessControlList' + } + + def __init__(self, owner=None, access_control_list=None): + """SetBucketAclRequestBody + + The model defined in huaweicloud sdk + + :param owner: + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + :param access_control_list: + :type access_control_list: :class:`huaweicloudsdkobs.v1.AccessControlList` + """ + + + + self._owner = None + self._access_control_list = None + self.discriminator = None + + if owner is not None: + self.owner = owner + if access_control_list is not None: + self.access_control_list = access_control_list + + @property + def owner(self): + """Gets the owner of this SetBucketAclRequestBody. + + :return: The owner of this SetBucketAclRequestBody. + :rtype: :class:`huaweicloudsdkobs.v1.Owner` + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this SetBucketAclRequestBody. + + :param owner: The owner of this SetBucketAclRequestBody. + :type owner: :class:`huaweicloudsdkobs.v1.Owner` + """ + self._owner = owner + + @property + def access_control_list(self): + """Gets the access_control_list of this SetBucketAclRequestBody. + + :return: The access_control_list of this SetBucketAclRequestBody. + :rtype: :class:`huaweicloudsdkobs.v1.AccessControlList` + """ + return self._access_control_list + + @access_control_list.setter + def access_control_list(self, access_control_list): + """Sets the access_control_list of this SetBucketAclRequestBody. + + :param access_control_list: The access_control_list of this SetBucketAclRequestBody. + :type access_control_list: :class:`huaweicloudsdkobs.v1.AccessControlList` + """ + self._access_control_list = access_control_list + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetBucketAclRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_response.py new file mode 100644 index 000000000..43f0a4c39 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_acl_response.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketAclResponse(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. + """ + xml_name = "SetBucketAclResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """SetBucketAclResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(SetBucketAclResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this SetBucketAclResponse. + + :return: The x_obs_id_2 of this SetBucketAclResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this SetBucketAclResponse. + + :param x_obs_id_2: The x_obs_id_2 of this SetBucketAclResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this SetBucketAclResponse. + + :return: The x_obs_request_id of this SetBucketAclResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this SetBucketAclResponse. + + :param x_obs_request_id: The x_obs_request_id of this SetBucketAclResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this SetBucketAclResponse. + + :return: The e_tag of this SetBucketAclResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this SetBucketAclResponse. + + :param e_tag: The e_tag of this SetBucketAclResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this SetBucketAclResponse. + + :return: The connection of this SetBucketAclResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this SetBucketAclResponse. + + :param connection: The connection of this SetBucketAclResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this SetBucketAclResponse. + + :return: The content_length of this SetBucketAclResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this SetBucketAclResponse. + + :param content_length: The content_length of this SetBucketAclResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this SetBucketAclResponse. + + :return: The date of this SetBucketAclResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this SetBucketAclResponse. + + :param date: The date of this SetBucketAclResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetBucketAclResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py new file mode 100644 index 000000000..430b7463c --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_custom_domain_body.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketCustomDomainBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "CustomDomainConfiguration" + + sensitive_list = [] + + openapi_types = { + 'name': 'str', + 'certificate_id': 'str', + 'certificate': 'str', + 'certificate_chain': 'str', + 'private_key': 'str' + } + + attribute_map = { + 'name': 'Name', + 'certificate_id': 'CertificateId', + 'certificate': 'Certificate', + 'certificate_chain': 'CertificateChain', + 'private_key': 'PrivateKey' + } + + def __init__(self, name=None, certificate_id=None, certificate=None, certificate_chain=None, private_key=None): + """SetBucketCustomDomainBody + + The model defined in huaweicloud sdk + + :param name: 证书名称。字符长度为3~63位。 + :type name: str + :param certificate_id: 自定义域名证书ID。 + :type certificate_id: str + :param certificate: 证书内容,可包含中间证书及根证书。若certificate_chain字段传入证书链,则该字段只取证书本身。回车换行需要使用转义字符\\n或者\\r\\n替换。 + :type certificate: str + :param certificate_chain: 证书内容,可包含中间证书及根证书。若certificate_chain字段传入证书链,则该字段只取证书本身。回车换行需要使用转义字符\\n或者\\r\\n替换。 + :type certificate_chain: str + :param private_key: 证书私钥。 不能上传带有口令保护的私钥,回车换行需要使用转义字符\\n或者\\r\\n替换。 + :type private_key: str + """ + + + + self._name = None + self._certificate_id = None + self._certificate = None + self._certificate_chain = None + self._private_key = None + self.discriminator = None + + self.name = name + if certificate_id is not None: + self.certificate_id = certificate_id + self.certificate = certificate + if certificate_chain is not None: + self.certificate_chain = certificate_chain + self.private_key = private_key + + @property + def name(self): + """Gets the name of this SetBucketCustomDomainBody. + + 证书名称。字符长度为3~63位。 + + :return: The name of this SetBucketCustomDomainBody. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SetBucketCustomDomainBody. + + 证书名称。字符长度为3~63位。 + + :param name: The name of this SetBucketCustomDomainBody. + :type name: str + """ + self._name = name + + @property + def certificate_id(self): + """Gets the certificate_id of this SetBucketCustomDomainBody. + + 自定义域名证书ID。 + + :return: The certificate_id of this SetBucketCustomDomainBody. + :rtype: str + """ + return self._certificate_id + + @certificate_id.setter + def certificate_id(self, certificate_id): + """Sets the certificate_id of this SetBucketCustomDomainBody. + + 自定义域名证书ID。 + + :param certificate_id: The certificate_id of this SetBucketCustomDomainBody. + :type certificate_id: str + """ + self._certificate_id = certificate_id + + @property + def certificate(self): + """Gets the certificate of this SetBucketCustomDomainBody. + + 证书内容,可包含中间证书及根证书。若certificate_chain字段传入证书链,则该字段只取证书本身。回车换行需要使用转义字符\\n或者\\r\\n替换。 + + :return: The certificate of this SetBucketCustomDomainBody. + :rtype: str + """ + return self._certificate + + @certificate.setter + def certificate(self, certificate): + """Sets the certificate of this SetBucketCustomDomainBody. + + 证书内容,可包含中间证书及根证书。若certificate_chain字段传入证书链,则该字段只取证书本身。回车换行需要使用转义字符\\n或者\\r\\n替换。 + + :param certificate: The certificate of this SetBucketCustomDomainBody. + :type certificate: str + """ + self._certificate = certificate + + @property + def certificate_chain(self): + """Gets the certificate_chain of this SetBucketCustomDomainBody. + + 证书内容,可包含中间证书及根证书。若certificate_chain字段传入证书链,则该字段只取证书本身。回车换行需要使用转义字符\\n或者\\r\\n替换。 + + :return: The certificate_chain of this SetBucketCustomDomainBody. + :rtype: str + """ + return self._certificate_chain + + @certificate_chain.setter + def certificate_chain(self, certificate_chain): + """Sets the certificate_chain of this SetBucketCustomDomainBody. + + 证书内容,可包含中间证书及根证书。若certificate_chain字段传入证书链,则该字段只取证书本身。回车换行需要使用转义字符\\n或者\\r\\n替换。 + + :param certificate_chain: The certificate_chain of this SetBucketCustomDomainBody. + :type certificate_chain: str + """ + self._certificate_chain = certificate_chain + + @property + def private_key(self): + """Gets the private_key of this SetBucketCustomDomainBody. + + 证书私钥。 不能上传带有口令保护的私钥,回车换行需要使用转义字符\\n或者\\r\\n替换。 + + :return: The private_key of this SetBucketCustomDomainBody. + :rtype: str + """ + return self._private_key + + @private_key.setter + def private_key(self, private_key): + """Sets the private_key of this SetBucketCustomDomainBody. + + 证书私钥。 不能上传带有口令保护的私钥,回车换行需要使用转义字符\\n或者\\r\\n替换。 + + :param private_key: The private_key of this SetBucketCustomDomainBody. + :type private_key: str + """ + self._private_key = private_key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetBucketCustomDomainBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py new file mode 100644 index 000000000..947aaa7bd --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_customedomain_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketCustomedomainRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "SetBucketCustomedomainRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'customdomain': 'str', + 'body': 'SetBucketCustomDomainBody' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'customdomain': 'customdomain', + 'body': 'body' + } + + def __init__(self, date=None, bucket_name=None, customdomain=None, body=None): + """SetBucketCustomedomainRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param customdomain: 桶的自定义域名。 类型:字符串,必须满足域名规则。 规格:最长256字节。 默认值:无。 约束:一个桶最多可以设置30个自定义域名,一个自定义域名只能被一个桶使用。 + :type customdomain: str + :param body: Body of the SetBucketCustomedomainRequest + :type body: :class:`huaweicloudsdkobs.v1.SetBucketCustomDomainBody` + """ + + + + self._date = None + self._bucket_name = None + self._customdomain = None + self._body = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.customdomain = customdomain + if body is not None: + self.body = body + + @property + def date(self): + """Gets the date of this SetBucketCustomedomainRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this SetBucketCustomedomainRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this SetBucketCustomedomainRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this SetBucketCustomedomainRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this SetBucketCustomedomainRequest. + + 请求的桶名称。 + + :return: The bucket_name of this SetBucketCustomedomainRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this SetBucketCustomedomainRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this SetBucketCustomedomainRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def customdomain(self): + """Gets the customdomain of this SetBucketCustomedomainRequest. + + 桶的自定义域名。 类型:字符串,必须满足域名规则。 规格:最长256字节。 默认值:无。 约束:一个桶最多可以设置30个自定义域名,一个自定义域名只能被一个桶使用。 + + :return: The customdomain of this SetBucketCustomedomainRequest. + :rtype: str + """ + return self._customdomain + + @customdomain.setter + def customdomain(self, customdomain): + """Sets the customdomain of this SetBucketCustomedomainRequest. + + 桶的自定义域名。 类型:字符串,必须满足域名规则。 规格:最长256字节。 默认值:无。 约束:一个桶最多可以设置30个自定义域名,一个自定义域名只能被一个桶使用。 + + :param customdomain: The customdomain of this SetBucketCustomedomainRequest. + :type customdomain: str + """ + self._customdomain = customdomain + + @property + def body(self): + """Gets the body of this SetBucketCustomedomainRequest. + + :return: The body of this SetBucketCustomedomainRequest. + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketCustomDomainBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetBucketCustomedomainRequest. + + :param body: The body of this SetBucketCustomedomainRequest. + :type body: :class:`huaweicloudsdkobs.v1.SetBucketCustomDomainBody` + """ + 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, SetBucketCustomedomainRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py new file mode 100644 index 000000000..b16d9130e --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_customedomain_response.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketCustomedomainResponse(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. + """ + xml_name = "SetBucketCustomedomainResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """SetBucketCustomedomainResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(SetBucketCustomedomainResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this SetBucketCustomedomainResponse. + + :return: The x_obs_id_2 of this SetBucketCustomedomainResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this SetBucketCustomedomainResponse. + + :param x_obs_id_2: The x_obs_id_2 of this SetBucketCustomedomainResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this SetBucketCustomedomainResponse. + + :return: The x_obs_request_id of this SetBucketCustomedomainResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this SetBucketCustomedomainResponse. + + :param x_obs_request_id: The x_obs_request_id of this SetBucketCustomedomainResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this SetBucketCustomedomainResponse. + + :return: The e_tag of this SetBucketCustomedomainResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this SetBucketCustomedomainResponse. + + :param e_tag: The e_tag of this SetBucketCustomedomainResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this SetBucketCustomedomainResponse. + + :return: The connection of this SetBucketCustomedomainResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this SetBucketCustomedomainResponse. + + :param connection: The connection of this SetBucketCustomedomainResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this SetBucketCustomedomainResponse. + + :return: The content_length of this SetBucketCustomedomainResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this SetBucketCustomedomainResponse. + + :param content_length: The content_length of this SetBucketCustomedomainResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this SetBucketCustomedomainResponse. + + :return: The date of this SetBucketCustomedomainResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this SetBucketCustomedomainResponse. + + :param date: The date of this SetBucketCustomedomainResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetBucketCustomedomainResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_request.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_request.py new file mode 100644 index 000000000..0ef9f15d8 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_request.py @@ -0,0 +1,198 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketNotificationRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "SetBucketNotificationRequest" + + sensitive_list = [] + + openapi_types = { + 'date': 'str', + 'bucket_name': 'str', + 'notification': 'str', + 'body': 'SetBucketNotificationRequestBody' + } + + attribute_map = { + 'date': 'Date', + 'bucket_name': 'bucket_name', + 'notification': 'notification', + 'body': 'body' + } + + def __init__(self, date=None, bucket_name=None, notification=None, body=None): + """SetBucketNotificationRequest + + The model defined in huaweicloud sdk + + :param date: 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + :type date: str + :param bucket_name: 请求的桶名称。 + :type bucket_name: str + :param notification: notification表示请求桶的消息通知配置API。 + :type notification: str + :param body: Body of the SetBucketNotificationRequest + :type body: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody` + """ + + + + self._date = None + self._bucket_name = None + self._notification = None + self._body = None + self.discriminator = None + + if date is not None: + self.date = date + self.bucket_name = bucket_name + self.notification = notification + if body is not None: + self.body = body + + @property + def date(self): + """Gets the date of this SetBucketNotificationRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :return: The date of this SetBucketNotificationRequest. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this SetBucketNotificationRequest. + + 请求发起端的日期和时间,例如:Wed, 27 Jun 2018 13:39:15 +0000。 默认值:无。 条件:如果消息头中带了x-obs-date字段,则可以不带该字段,其他情况下必选。 + + :param date: The date of this SetBucketNotificationRequest. + :type date: str + """ + self._date = date + + @property + def bucket_name(self): + """Gets the bucket_name of this SetBucketNotificationRequest. + + 请求的桶名称。 + + :return: The bucket_name of this SetBucketNotificationRequest. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """Sets the bucket_name of this SetBucketNotificationRequest. + + 请求的桶名称。 + + :param bucket_name: The bucket_name of this SetBucketNotificationRequest. + :type bucket_name: str + """ + self._bucket_name = bucket_name + + @property + def notification(self): + """Gets the notification of this SetBucketNotificationRequest. + + notification表示请求桶的消息通知配置API。 + + :return: The notification of this SetBucketNotificationRequest. + :rtype: str + """ + return self._notification + + @notification.setter + def notification(self, notification): + """Sets the notification of this SetBucketNotificationRequest. + + notification表示请求桶的消息通知配置API。 + + :param notification: The notification of this SetBucketNotificationRequest. + :type notification: str + """ + self._notification = notification + + @property + def body(self): + """Gets the body of this SetBucketNotificationRequest. + + :return: The body of this SetBucketNotificationRequest. + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetBucketNotificationRequest. + + :param body: The body of this SetBucketNotificationRequest. + :type body: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequestBody` + """ + 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, SetBucketNotificationRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py new file mode 100644 index 000000000..ad4abe366 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_request_body.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketNotificationRequestBody: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "NotificationConfiguration" + + sensitive_list = [] + + openapi_types = { + 'topic_configuration': 'list[TopicConfiguration]', + 'function_stage_configuration': 'list[FunctionStageConfiguration]' + } + + attribute_map = { + 'topic_configuration': 'TopicConfiguration', + 'function_stage_configuration': 'FunctionStageConfiguration' + } + + def __init__(self, topic_configuration=None, function_stage_configuration=None): + """SetBucketNotificationRequestBody + + The model defined in huaweicloud sdk + + :param topic_configuration: + :type topic_configuration: list[:class:`huaweicloudsdkobs.v1.TopicConfiguration`] + :param function_stage_configuration: + :type function_stage_configuration: list[:class:`huaweicloudsdkobs.v1.FunctionStageConfiguration`] + """ + + + + self._topic_configuration = None + self._function_stage_configuration = None + self.discriminator = None + + if topic_configuration is not None: + self.topic_configuration = topic_configuration + if function_stage_configuration is not None: + self.function_stage_configuration = function_stage_configuration + + @property + def topic_configuration(self): + """Gets the topic_configuration of this SetBucketNotificationRequestBody. + + :return: The topic_configuration of this SetBucketNotificationRequestBody. + :rtype: list[:class:`huaweicloudsdkobs.v1.TopicConfiguration`] + """ + return self._topic_configuration + + @topic_configuration.setter + def topic_configuration(self, topic_configuration): + """Sets the topic_configuration of this SetBucketNotificationRequestBody. + + :param topic_configuration: The topic_configuration of this SetBucketNotificationRequestBody. + :type topic_configuration: list[:class:`huaweicloudsdkobs.v1.TopicConfiguration`] + """ + self._topic_configuration = topic_configuration + + @property + def function_stage_configuration(self): + """Gets the function_stage_configuration of this SetBucketNotificationRequestBody. + + :return: The function_stage_configuration of this SetBucketNotificationRequestBody. + :rtype: list[:class:`huaweicloudsdkobs.v1.FunctionStageConfiguration`] + """ + return self._function_stage_configuration + + @function_stage_configuration.setter + def function_stage_configuration(self, function_stage_configuration): + """Sets the function_stage_configuration of this SetBucketNotificationRequestBody. + + :param function_stage_configuration: The function_stage_configuration of this SetBucketNotificationRequestBody. + :type function_stage_configuration: list[:class:`huaweicloudsdkobs.v1.FunctionStageConfiguration`] + """ + self._function_stage_configuration = function_stage_configuration + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetBucketNotificationRequestBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_response.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_response.py new file mode 100644 index 000000000..2e308a870 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/set_bucket_notification_response.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.sdk_response import SdkResponse +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetBucketNotificationResponse(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. + """ + xml_name = "SetBucketNotificationResponse" + + sensitive_list = [] + + openapi_types = { + 'x_obs_id_2': 'str', + 'x_obs_request_id': 'str', + 'e_tag': 'str', + 'connection': 'str', + 'content_length': 'str', + 'date': 'str' + } + + attribute_map = { + 'x_obs_id_2': 'x-obs-id-2', + 'x_obs_request_id': 'x-obs-request-id', + 'e_tag': 'ETag', + 'connection': 'Connection', + 'content_length': 'Content-Length', + 'date': 'Date' + } + + def __init__(self, x_obs_id_2=None, x_obs_request_id=None, e_tag=None, connection=None, content_length=None, date=None): + """SetBucketNotificationResponse + + The model defined in huaweicloud sdk + + :param x_obs_id_2: + :type x_obs_id_2: str + :param x_obs_request_id: + :type x_obs_request_id: str + :param e_tag: + :type e_tag: str + :param connection: + :type connection: str + :param content_length: + :type content_length: str + :param date: + :type date: str + """ + + super(SetBucketNotificationResponse, self).__init__() + + self._x_obs_id_2 = None + self._x_obs_request_id = None + self._e_tag = None + self._connection = None + self._content_length = None + self._date = None + self.discriminator = None + + if x_obs_id_2 is not None: + self.x_obs_id_2 = x_obs_id_2 + if x_obs_request_id is not None: + self.x_obs_request_id = x_obs_request_id + if e_tag is not None: + self.e_tag = e_tag + if connection is not None: + self.connection = connection + if content_length is not None: + self.content_length = content_length + if date is not None: + self.date = date + + @property + def x_obs_id_2(self): + """Gets the x_obs_id_2 of this SetBucketNotificationResponse. + + :return: The x_obs_id_2 of this SetBucketNotificationResponse. + :rtype: str + """ + return self._x_obs_id_2 + + @x_obs_id_2.setter + def x_obs_id_2(self, x_obs_id_2): + """Sets the x_obs_id_2 of this SetBucketNotificationResponse. + + :param x_obs_id_2: The x_obs_id_2 of this SetBucketNotificationResponse. + :type x_obs_id_2: str + """ + self._x_obs_id_2 = x_obs_id_2 + + @property + def x_obs_request_id(self): + """Gets the x_obs_request_id of this SetBucketNotificationResponse. + + :return: The x_obs_request_id of this SetBucketNotificationResponse. + :rtype: str + """ + return self._x_obs_request_id + + @x_obs_request_id.setter + def x_obs_request_id(self, x_obs_request_id): + """Sets the x_obs_request_id of this SetBucketNotificationResponse. + + :param x_obs_request_id: The x_obs_request_id of this SetBucketNotificationResponse. + :type x_obs_request_id: str + """ + self._x_obs_request_id = x_obs_request_id + + @property + def e_tag(self): + """Gets the e_tag of this SetBucketNotificationResponse. + + :return: The e_tag of this SetBucketNotificationResponse. + :rtype: str + """ + return self._e_tag + + @e_tag.setter + def e_tag(self, e_tag): + """Sets the e_tag of this SetBucketNotificationResponse. + + :param e_tag: The e_tag of this SetBucketNotificationResponse. + :type e_tag: str + """ + self._e_tag = e_tag + + @property + def connection(self): + """Gets the connection of this SetBucketNotificationResponse. + + :return: The connection of this SetBucketNotificationResponse. + :rtype: str + """ + return self._connection + + @connection.setter + def connection(self, connection): + """Sets the connection of this SetBucketNotificationResponse. + + :param connection: The connection of this SetBucketNotificationResponse. + :type connection: str + """ + self._connection = connection + + @property + def content_length(self): + """Gets the content_length of this SetBucketNotificationResponse. + + :return: The content_length of this SetBucketNotificationResponse. + :rtype: str + """ + return self._content_length + + @content_length.setter + def content_length(self, content_length): + """Sets the content_length of this SetBucketNotificationResponse. + + :param content_length: The content_length of this SetBucketNotificationResponse. + :type content_length: str + """ + self._content_length = content_length + + @property + def date(self): + """Gets the date of this SetBucketNotificationResponse. + + :return: The date of this SetBucketNotificationResponse. + :rtype: str + """ + return self._date + + @date.setter + def date(self, date): + """Sets the date of this SetBucketNotificationResponse. + + :param date: The date of this SetBucketNotificationResponse. + :type date: str + """ + self._date = date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetBucketNotificationResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/topic_configuration.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/topic_configuration.py new file mode 100644 index 000000000..41b9bdecb --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/topic_configuration.py @@ -0,0 +1,200 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TopicConfiguration: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "TopicConfiguration" + + sensitive_list = [] + + openapi_types = { + 'id': 'str', + 'filter': 'TopicConfigurationFilter', + 'topic': 'str', + 'event': 'str' + } + + attribute_map = { + 'id': 'Id', + 'filter': 'Filter', + 'topic': 'Topic', + 'event': 'Event' + } + + def __init__(self, id=None, filter=None, topic=None, event=None): + """TopicConfiguration + + The model defined in huaweicloud sdk + + :param id: 每项事件通知配置的唯一标识,若是用户未指定ID,系统将自动分配一个ID。 + :type id: str + :param filter: + :type filter: :class:`huaweicloudsdkobs.v1.TopicConfigurationFilter` + :param topic: 事件通知主题的URN,当OBS检测到桶中发生特定的事件后,将会发布通知消息至该主题,可以在[消息通知服务主题](https://console.huaweicloud.com/smn/?region=cn-north-4#/topics/list)部分找到具体值。 模板:<Topic>urn:smn:region:project_id:smn_topic</Topic> + :type topic: str + :param event: 需要发布通知消息的事件类型。 说明:在一个TopicConfiguration、FunctionStageConfiguration配置项中可以添加多个事件类型。 合法值: 上传对象操作可以取以下值: ObjectCreated:Put ObjectCreated:Post ObjectCreated:Copy ObjectCreated:CompleteMultipartUpload 或者使用通配符支持所有上传操作 ObjectCreated:* 删除对象操作可以取以下值: ObjectRemoved:Delete ObjectRemoved:DeleteMarkerCreated 或者使用通配符支持所有删除操作 ObjectRemoved:* + :type event: str + """ + + + + self._id = None + self._filter = None + self._topic = None + self._event = None + self.discriminator = None + + if id is not None: + self.id = id + if filter is not None: + self.filter = filter + if topic is not None: + self.topic = topic + if event is not None: + self.event = event + + @property + def id(self): + """Gets the id of this TopicConfiguration. + + 每项事件通知配置的唯一标识,若是用户未指定ID,系统将自动分配一个ID。 + + :return: The id of this TopicConfiguration. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TopicConfiguration. + + 每项事件通知配置的唯一标识,若是用户未指定ID,系统将自动分配一个ID。 + + :param id: The id of this TopicConfiguration. + :type id: str + """ + self._id = id + + @property + def filter(self): + """Gets the filter of this TopicConfiguration. + + :return: The filter of this TopicConfiguration. + :rtype: :class:`huaweicloudsdkobs.v1.TopicConfigurationFilter` + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this TopicConfiguration. + + :param filter: The filter of this TopicConfiguration. + :type filter: :class:`huaweicloudsdkobs.v1.TopicConfigurationFilter` + """ + self._filter = filter + + @property + def topic(self): + """Gets the topic of this TopicConfiguration. + + 事件通知主题的URN,当OBS检测到桶中发生特定的事件后,将会发布通知消息至该主题,可以在[消息通知服务主题](https://console.huaweicloud.com/smn/?region=cn-north-4#/topics/list)部分找到具体值。 模板:urn:smn:region:project_id:smn_topic + + :return: The topic of this TopicConfiguration. + :rtype: str + """ + return self._topic + + @topic.setter + def topic(self, topic): + """Sets the topic of this TopicConfiguration. + + 事件通知主题的URN,当OBS检测到桶中发生特定的事件后,将会发布通知消息至该主题,可以在[消息通知服务主题](https://console.huaweicloud.com/smn/?region=cn-north-4#/topics/list)部分找到具体值。 模板:urn:smn:region:project_id:smn_topic + + :param topic: The topic of this TopicConfiguration. + :type topic: str + """ + self._topic = topic + + @property + def event(self): + """Gets the event of this TopicConfiguration. + + 需要发布通知消息的事件类型。 说明:在一个TopicConfiguration、FunctionStageConfiguration配置项中可以添加多个事件类型。 合法值: 上传对象操作可以取以下值: ObjectCreated:Put ObjectCreated:Post ObjectCreated:Copy ObjectCreated:CompleteMultipartUpload 或者使用通配符支持所有上传操作 ObjectCreated:* 删除对象操作可以取以下值: ObjectRemoved:Delete ObjectRemoved:DeleteMarkerCreated 或者使用通配符支持所有删除操作 ObjectRemoved:* + + :return: The event of this TopicConfiguration. + :rtype: str + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this TopicConfiguration. + + 需要发布通知消息的事件类型。 说明:在一个TopicConfiguration、FunctionStageConfiguration配置项中可以添加多个事件类型。 合法值: 上传对象操作可以取以下值: ObjectCreated:Put ObjectCreated:Post ObjectCreated:Copy ObjectCreated:CompleteMultipartUpload 或者使用通配符支持所有上传操作 ObjectCreated:* 删除对象操作可以取以下值: ObjectRemoved:Delete ObjectRemoved:DeleteMarkerCreated 或者使用通配符支持所有删除操作 ObjectRemoved:* + + :param event: The event of this TopicConfiguration. + :type event: str + """ + self._event = event + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TopicConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/topic_configuration_filter.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/topic_configuration_filter.py new file mode 100644 index 000000000..0b88285d7 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/model/topic_configuration_filter.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class TopicConfigurationFilter: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + xml_name = "TopicConfigurationFilter" + + sensitive_list = [] + + openapi_types = { + 'object': 'FilterObject' + } + + attribute_map = { + 'object': 'Object' + } + + def __init__(self, object=None): + """TopicConfigurationFilter + + The model defined in huaweicloud sdk + + :param object: + :type object: :class:`huaweicloudsdkobs.v1.FilterObject` + """ + + + + self._object = None + self.discriminator = None + + if object is not None: + self.object = object + + @property + def object(self): + """Gets the object of this TopicConfigurationFilter. + + :return: The object of this TopicConfigurationFilter. + :rtype: :class:`huaweicloudsdkobs.v1.FilterObject` + """ + return self._object + + @object.setter + def object(self, object): + """Sets the object of this TopicConfigurationFilter. + + :param object: The object of this TopicConfigurationFilter. + :type object: :class:`huaweicloudsdkobs.v1.FilterObject` + """ + self._object = object + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TopicConfigurationFilter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_async_client.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_async_client.py new file mode 100644 index 000000000..67b4704c3 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_async_client.py @@ -0,0 +1,1609 @@ +# 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 'huaweicloudsdkobs'") + + +class ObsAsyncClient(Client): + def __init__(self): + super(ObsAsyncClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkobs.v1.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls, "ObsCredentials") + else: + if clazz.__name__ != "ObsAsyncClient": + raise TypeError("client type error, support client type is ObsAsyncClient") + client_builder = ClientBuilder(clazz, "ObsCredentials") + + + + return client_builder + + def copy_object_async(self, request): + """复制对象 + + 复制对象(Copy Object)特性用来为OBS上已经存在的对象创建一个副本。 + + 当进行复制对象操作时,目标对象默认复制源对象的元数据;用户也可以将目标对象的元数据替换为本次请求中所带的元数据。新建的目标对象不会复制源对象的ACL信息,默认的新建对象的ACL是private,用户可以使用设置ACL的操作接口来重新设定新对象的ACL。 + + 复制对象操作的请求需要通过头域携带拷贝的原桶和对象信息,不能携带消息实体。 + + 该操作支持服务端加密功能。 + + 目标对象大小范围是[0, 5GB],如果源对象大小超过5GB,只能使用Range拷贝部分对象。 + + #### 多版本 #### + 默认情况下,x-obs-copy-source标识复制源对象的最新版本。如果源对象的最新版本是删除标记,则认为该对象已删除。要复制指定版本的对象,可以在x-obs-copy-source请求消息头中携带versionId参数。 + + 如果目标对象的桶的多版本状态是开启的,系统为目标对象生成唯一的版本号(此版本号与源对象的版本号不同),并且会在响应报头x-obs-version-id返回该版本号。如果目标对象的桶的多版本状态是暂停的,则目标对象的版本号为null。 + + 须知: + 在桶没有开启多版本的情况下,将源对象object_A复制为目标对象object_B,如果在复制操作之前对象object_B已经存在,复制操作执行之后老对象object_B则会被新复制对象object_B覆盖,复制成功后,只能下载到新的对象object_B,老对象object_B将会被删除。因此在使用copy接口时请确保目标对象不存在或者已无价值,避免因copy导致数据误删除。复制过程中源对象object_A无任何变化。 + + 复制对象的结果不能仅根据HTTP返回头域中的status_code来判断请求是否成功,头域中status_code返回200时表示服务端已经收到请求,且开始处理复制对象请求。复制是否成功会在响应消息的body中,只有body体中有ETag标签才表示成功,否则表示复制失败。 + + #### 归档存储对象 #### + 如果源对象是归档存储对象,需要判断源对象的取回状态,只有当源对象处于已取回状态时,才能复制成功。源对象未取回或者正在取回时,会复制失败,返回错误403 Forbidden。异常描述为: + + ErrorCode: InvalidObjectState + + ErrorMessage: Operation is not valid for the source object's storage class + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CopyObject + :type request: :class:`huaweicloudsdkobs.v1.CopyObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.CopyObjectResponse` + """ + http_info = self._copy_object_http_info(request) + return self._call_api(**http_info) + + def copy_object_async_invoker(self, request): + http_info = self._copy_object_http_info(request) + return AsyncInvoker(self, http_info) + + def _copy_object_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "CopyObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + if 'x_obs_grant_read' in local_var_params: + header_params['x-obs-grant-read'] = local_var_params['x_obs_grant_read'] + if 'x_obs_grant_read_acp' in local_var_params: + header_params['x-obs-grant-read-acp'] = local_var_params['x_obs_grant_read_acp'] + if 'x_obs_grant_write_acp' in local_var_params: + header_params['x-obs-grant-write-acp'] = local_var_params['x_obs_grant_write_acp'] + if 'x_obs_grant_full_control' in local_var_params: + header_params['x-obs-grant-full-control'] = local_var_params['x_obs_grant_full_control'] + if 'x_obs_copy_source' in local_var_params: + header_params['x-obs-copy-source'] = local_var_params['x_obs_copy_source'] + if 'x_obs_metadata_directive' in local_var_params: + header_params['x-obs-metadata-directive'] = local_var_params['x_obs_metadata_directive'] + if 'x_obs_copy_source_if_match' in local_var_params: + header_params['x-obs-copy-source-if-match'] = local_var_params['x_obs_copy_source_if_match'] + if 'x_obs_copy_source_if_none_match' in local_var_params: + header_params['x-obs-copy-source-if-none-match'] = local_var_params['x_obs_copy_source_if_none_match'] + if 'x_obs_copy_source_if_unmodified_since' in local_var_params: + header_params['x-obs-copy-source-if-unmodified-since'] = local_var_params['x_obs_copy_source_if_unmodified_since'] + if 'x_obs_copy_source_if_modified_since' in local_var_params: + header_params['x-obs-copy-source-if-modified-since'] = local_var_params['x_obs_copy_source_if_modified_since'] + if 'x_obs_storage_class' in local_var_params: + header_params['x-obs-storage-class'] = local_var_params['x_obs_storage_class'] + if 'x_obs_persistent_headers' in local_var_params: + header_params['x-obs-persistent-headers'] = local_var_params['x_obs_persistent_headers'] + if 'x_obs_website_redirect_location' in local_var_params: + header_params['x-obs-website-redirect-location'] = local_var_params['x_obs_website_redirect_location'] + if 'x_obs_server_side_encryption' in local_var_params: + header_params['x-obs-server-side-encryption'] = local_var_params['x_obs_server_side_encryption'] + if 'x_obs_server_side_encryption_kms_key_id' in local_var_params: + header_params['x-obs-server-side-encryption-kms-key-id'] = local_var_params['x_obs_server_side_encryption_kms_key_id'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + if 'x_obs_copy_source_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-copy-source-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_copy_source_server_side_encryption_customer_algorithm'] + if 'x_obs_copy_source_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-copy-source-server-side-encryption-customer-key'] = local_var_params['x_obs_copy_source_server_side_encryption_customer_key'] + if 'x_obs_copy_source_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-copy-source-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_copy_source_server_side_encryption_customer_key_md5'] + if 'success_action_redirect' in local_var_params: + header_params['success_action_redirect'] = local_var_params['success_action_redirect'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-server-side-encryption", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "Date", "ETag", "x-obs-server-side-encryption-customer-algorithm", "x-obs-copy-source-version-id", "x-obs-storage-class", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "x-obs-version-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_bucket_async(self, request): + """创建桶 + + 创建桶是指按照用户指定的桶名创建一个新桶的操作。 + + 说明: + 默认情况下,一个用户可以拥有的桶的数量不能超过100个。 + 用户删除桶后,需要等待30分钟才能创建同名桶和并行文件系统。 + OBS支持在创建桶时指定桶的AZ类型,您可以开启或关闭多AZ。关闭多AZ时,桶内数据默认存储在单个AZ内;开启多AZ时,桶内数据冗余存储在多个AZ内,可靠性更高。旧桶AZ类型默认为单AZ。 + 新创建桶的桶名在OBS中必须是唯一的。如果是同一个用户重复创建同一区域的同名桶时返回成功。除此以外的其他场景重复创建同名桶返回桶已存在。用户可以在请求消息头中加入x-obs-acl等参数,设置要创建桶的权限控制策略。 + + #### 存储类型 #### + 允许用户创建不同默认存储类型的桶。发送创桶请求时携带头域“x-obs-storage-class”来指定桶的默认存储类型。桶内对象的存储类型与桶默认存储类型保持一致。存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。如果没有携带此头域 ,则创建的桶为标准存储类型。 + + 当往桶内上传对象时,如果没有指定对象的存储类别(参考PUT上传),则该对象的存储类型取桶的默认存储类型。 + + OBS标准存储拥有低访问时延和较高的吞吐量,因而适用于有大量热点文件需要频繁访问数据的业务场景,例如:大数据、移动应用、热点视频、社交图片等场景。 + OBS低频访问存储适用于不频繁访问(少于每月一次访问)但在需要时也要求快速访问数据的业务场景,例如:文件同步/共享、企业备份等场景。与标准存储相比,低频访问存储有相同的数据持久性、吞吐量以及访问时延,且成本较低,但是可用性略低于标准存储。 + OBS归档存储适用于很少访问(平均一年访问一次)数据的业务场景,例如:数据归档、长期备份等场景。归档存储安全、持久且成本极低,可以用来替代磁带库。为了保持成本低廉,数据取回时间可能长达数分钟到数小时不等。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for CreateBucket + :type request: :class:`huaweicloudsdkobs.v1.CreateBucketRequest` + :rtype: :class:`huaweicloudsdkobs.v1.CreateBucketResponse` + """ + http_info = self._create_bucket_http_info(request) + return self._call_api(**http_info) + + def create_bucket_async_invoker(self, request): + http_info = self._create_bucket_http_info(request) + return AsyncInvoker(self, http_info) + + def _create_bucket_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "CreateBucketResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + if 'x_obs_storage_class' in local_var_params: + header_params['x-obs-storage-class'] = local_var_params['x_obs_storage_class'] + if 'x_obs_grant_read' in local_var_params: + header_params['x-obs-grant-read'] = local_var_params['x_obs_grant_read'] + if 'x_obs_grant_write' in local_var_params: + header_params['x-obs-grant-write'] = local_var_params['x_obs_grant_write'] + if 'x_obs_grant_read_acp' in local_var_params: + header_params['x-obs-grant-read-acp'] = local_var_params['x_obs_grant_read_acp'] + if 'x_obs_grant_write_acp' in local_var_params: + header_params['x-obs-grant-write-acp'] = local_var_params['x_obs_grant_write_acp'] + if 'x_obs_grant_full_control' in local_var_params: + header_params['x-obs-grant-full-control'] = local_var_params['x_obs_grant_full_control'] + if 'x_obs_grant_read_delivered' in local_var_params: + header_params['x-obs-grant-read-delivered'] = local_var_params['x_obs_grant_read_delivered'] + if 'x_obs_grant_full_control_delivered' in local_var_params: + header_params['x-obs-grant-full-control-delivered'] = local_var_params['x_obs_grant_full_control_delivered'] + if 'x_obs_az_redundancy' in local_var_params: + header_params['x-obs-az-redundancy'] = local_var_params['x_obs_az_redundancy'] + if 'x_obs_fs_file_interface' in local_var_params: + header_params['x-obs-fs-file-interface'] = local_var_params['x_obs_fs_file_interface'] + if 'x_obs_epid' in local_var_params: + header_params['x-obs-epid'] = local_var_params['x_obs_epid'] + if 'x_obs_cluster_type' in local_var_params: + header_params['x-obs-cluster-type'] = local_var_params['x_obs_cluster_type'] + if 'x_obs_location_clustergroup_id' in local_var_params: + header_params['x-obs-location-clustergroup-id'] = local_var_params['x_obs_location_clustergroup_id'] + if 'x_obs_ies_location' in local_var_params: + header_params['x-obs-ies-location'] = local_var_params['x_obs_ies_location'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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_bucket_async(self, request): + """删除桶 + + 删除桶操作用于删除用户指定的桶。只有桶的所有者或者拥有桶的删桶policy权限的用户可以执行删除桶的操作,要删除的桶必须是空桶。如果桶中有对象或者有多段任务则认为桶不为空,可以使用列举桶内对象和列举出多段上传任务接口来确认桶是否为空。 + 注: + 如果删除桶时,服务端返回5XX错误或超时,系统需要时间进行桶信息一致性处理,在此期间桶的信息会不准确,过一段时间再查看桶是否删除成功,查询到桶,需要再次发送删除桶消息。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteBucket + :type request: :class:`huaweicloudsdkobs.v1.DeleteBucketRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteBucketResponse` + """ + http_info = self._delete_bucket_http_info(request) + return self._call_api(**http_info) + + def delete_bucket_async_invoker(self, request): + http_info = self._delete_bucket_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_bucket_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "DeleteBucketResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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_bucket_customdomain_async(self, request): + """删除桶的自定义域名 + + OBS使用DELETE操作来删除指定桶的标签。 + + 要正确执行此操作,需要确保执行者有PutBucketcustomdomain权限。缺省情况下只有桶的所有者可以执行此操作,也可以通过设置桶策略或用户策略授权给其他用户。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteBucketCustomdomain + :type request: :class:`huaweicloudsdkobs.v1.DeleteBucketCustomdomainRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteBucketCustomdomainResponse` + """ + http_info = self._delete_bucket_customdomain_http_info(request) + return self._call_api(**http_info) + + def delete_bucket_customdomain_async_invoker(self, request): + http_info = self._delete_bucket_customdomain_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_bucket_customdomain_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "DeleteBucketCustomdomainResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'customdomain' in local_var_params: + query_params.append(('customdomain', local_var_params['customdomain'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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_object_async(self, request): + """删除对象 + + 删除对象的操作。如果要删除的对象不存在,则仍然返回成功信息。 + + #### 多版本 #### + 当桶的多版本状态是开启时,不指定版本删除对象将产生一个带唯一版本号的删除标记,并不删除对象;当桶的多版本状态是Suspended时,不指定版本删除将删除版本号为null的对象,并将产生一个版本号为null的删除标记。 + + 如果要删除指定版本的对象,请求可携带versionId消息参数。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteObject + :type request: :class:`huaweicloudsdkobs.v1.DeleteObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteObjectResponse` + """ + http_info = self._delete_object_http_info(request) + return self._call_api(**http_info) + + def delete_object_async_invoker(self, request): + http_info = self._delete_object_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_object_http_info(self, request): + http_info = { + "method": "DELETE", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "DeleteObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'version_id' in local_var_params: + query_params.append(('versionId', local_var_params['version_id'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", "x-obs-delete-marker", "x-obs-version-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_objects_async(self, request): + """批量删除对象 + + 批量删除对象特性用于将一个桶内的部分对象一次性删除,删除后不可恢复。批量删除对象要求返回结果里包含每个对象的删除结果。OBS的批量删除对象使用同步删除对象的方式,每个对象的删除结果返回给请求用户。 + + 批量删除对象支持两种响应方式:verbose和quiet。Verbose是指在返回响应时,不管对象是否删除成功都将删除结果包含在XML响应里;quiet是指在返回响应时,只返回删除失败的对象结果,没有返回的认为删除成功。OBS默认使用verbose模式,如果用户在请求消息体中指定quiet模式的话, 使用quiet模式。 + + 批量删除的请求消息头中必须包含Content-MD5以及Content-Length,用以保证请求的消息体在服务端检测到网络传输如果有错,则可以检测出来。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for DeleteObjects + :type request: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteObjectsResponse` + """ + http_info = self._delete_objects_http_info(request) + return self._call_api(**http_info) + + def delete_objects_async_invoker(self, request): + http_info = self._delete_objects_http_info(request) + return AsyncInvoker(self, http_info) + + def _delete_objects_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "DeleteObjectsResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'delete' in local_var_params: + query_params.append(('delete', local_var_params['delete'])) + + header_params = {} + if 'content_md5' in local_var_params: + header_params['Content-MD5'] = local_var_params['content_md5'] + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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 get_bucket_acl_async(self, request): + """获取桶ACL + + 用户执行获取桶ACL的操作,返回信息包含指定桶的权限控制列表信息。用户必须拥有对指定桶READ_ACP的权限或FULL_CONTROL权限,才能执行获取桶ACL的操作。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetBucketAcl + :type request: :class:`huaweicloudsdkobs.v1.GetBucketAclRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketAclResponse` + """ + http_info = self._get_bucket_acl_http_info(request) + return self._call_api(**http_info) + + def get_bucket_acl_async_invoker(self, request): + http_info = self._get_bucket_acl_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_bucket_acl_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketAclResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'acl' in local_var_params: + query_params.append(('acl', local_var_params['acl'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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 get_bucket_customdomain_async(self, request): + """获取桶的自定义域名 + + OBS使用GET操作来获取桶的自定义域名。 + + 要正确执行此操作,需要确保执行者有GetBucketcustomdomainConfiguration权限。桶拥有者默认具有此权限,并且可以将此权限授予其他人。 + + 有关权限控制的更多信息请参考《对象存储服务权限配置指南》的[OBS权限控制概述](https://support.huaweicloud.com/perms-cfg-obs/obs_40_0001.html)章节。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetBucketCustomdomain + :type request: :class:`huaweicloudsdkobs.v1.GetBucketCustomdomainRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketCustomdomainResponse` + """ + http_info = self._get_bucket_customdomain_http_info(request) + return self._call_api(**http_info) + + def get_bucket_customdomain_async_invoker(self, request): + http_info = self._get_bucket_customdomain_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_bucket_customdomain_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketCustomdomainResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'customdomain' in local_var_params: + query_params.append(('customdomain', local_var_params['customdomain'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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 get_bucket_metadata_async(self, request): + """获取桶元数据 + + 对桶拥有读权限的用户可以执行查询桶元数据是否存在的操作。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetBucketMetadata + :type request: :class:`huaweicloudsdkobs.v1.GetBucketMetadataRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketMetadataResponse` + """ + http_info = self._get_bucket_metadata_http_info(request) + return self._call_api(**http_info) + + def get_bucket_metadata_async_invoker(self, request): + http_info = self._get_bucket_metadata_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_bucket_metadata_http_info(self, request): + http_info = { + "method": "HEAD", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketMetadataResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'origin' in local_var_params: + header_params['Origin'] = local_var_params['origin'] + if 'access_control_request_headers' in local_var_params: + header_params['Access-Control-Request-Headers'] = local_var_params['access_control_request_headers'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-fs-file-interface", "x-obs-version", "Access-Control-Allow-Origin", "Access-Control-Allow-Methods", "x-obs-bucket-location", "Connection", "x-obs-epid", "Date", "Access-Control-Allow-Headers", "Access-Control-Expose-Headers", "ETag", "x-obs-storage-class", "x-obs-az-redundancy", "Content-Length", "Access-Control-Max-Age", "x-obs-ies-location", ] + + 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 get_bucket_notification_async(self, request): + """获取桶的消息通知配置 + + 获取指定桶的消息通知配置信息。 + + 为了能成功执行此配置操作,需要确保执行者拥有GetBucketNotification权限。默认情况下只有桶的所有者拥有该权限,但可以通过设置桶策略或用户策略授权给其他用户。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetBucketNotification + :type request: :class:`huaweicloudsdkobs.v1.GetBucketNotificationRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketNotificationResponse` + """ + http_info = self._get_bucket_notification_http_info(request) + return self._call_api(**http_info) + + def get_bucket_notification_async_invoker(self, request): + http_info = self._get_bucket_notification_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_bucket_notification_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketNotificationResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'notification' in local_var_params: + query_params.append(('notification', local_var_params['notification'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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 get_object_async(self, request): + """获取对象内容 + + GET操作从对象存储下载对象。使用GET接口前,请确认必须拥有对象的READ权限。如果对象Owner向匿名用户授予READ访问权限,则可以在不使用鉴权头域的情况下访问该对象。 + + #### 服务端加密 #### + 如果客户端的对象上传时,使用了客户提供的加密密钥进行服务端加密,当下载对象时,同样也必须在消息中提供密钥。 + + #### 多版本 #### + 默认情况下,获取的是最新版本的对象。如果最新版本的对象是删除标记,则返回对象不存在。如果要获取指定版本的对象,请求可携带versionId消息参数。 + + #### 归档存储对象 #### + 如果要下载的对象是归档存储类对象,由于对象存储在存档设备中,您必须先使用对象取回,然后才能下载该归档存储对象。对象处于不同的取回状态时,给出不同响应:如果对象已取回,下载对象成功时需要返回x-obs-restore头域指示取回失效时间。对未取回或正在取回的归档存储对象发送下载请求时,会返回错误403 Forbidden。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetObject + :type request: :class:`huaweicloudsdkobs.v1.GetObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetObjectResponse` + """ + http_info = self._get_object_http_info(request) + return self._call_api(**http_info) + + def get_object_async_invoker(self, request): + http_info = self._get_object_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_object_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "GetObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'response_content_type' in local_var_params: + query_params.append(('response-content-type', local_var_params['response_content_type'])) + if 'response_content_language' in local_var_params: + query_params.append(('response-content-language', local_var_params['response_content_language'])) + if 'response_expires' in local_var_params: + query_params.append(('response-expires', local_var_params['response_expires'])) + if 'response_cache_control' in local_var_params: + query_params.append(('response-cache-control', local_var_params['response_cache_control'])) + if 'response_content_disposition' in local_var_params: + query_params.append(('response-content-disposition', local_var_params['response_content_disposition'])) + if 'response_content_encoding' in local_var_params: + query_params.append(('response-content-encoding', local_var_params['response_content_encoding'])) + if 'version_id' in local_var_params: + query_params.append(('versionId', local_var_params['version_id'])) + if 'x_image_process' in local_var_params: + query_params.append(('x-image-process', local_var_params['x_image_process'])) + if 'attname' in local_var_params: + query_params.append(('attname', local_var_params['attname'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'range' in local_var_params: + header_params['Range'] = local_var_params['range'] + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-server-side-encryption", "x-obs-object-type", "x-obs-next-append-position", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "x-obs-expiration", "Date", "ETag", "x-obs-server-side-encryption-customer-algorithm", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "x-obs-website-redirect-location", "x-obs-delete-marker", "x-obs-version-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 get_object_metadata_async(self, request): + """获取对象元数据 + + 拥有对象读权限的用户可以执行HEAD操作命令获取对象元数据,返回信息包含对象的元数据信息。 + 该操作支持服务端加密功能。 + + #### 多版本 #### + 默认情况下,获取的是最新版本的对象元数据。如果最新版本的对象是删除标记,则返回404。如果要获取指定版本的对象元数据,请求可携带versionId消息参数。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for GetObjectMetadata + :type request: :class:`huaweicloudsdkobs.v1.GetObjectMetadataRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetObjectMetadataResponse` + """ + http_info = self._get_object_metadata_http_info(request) + return self._call_api(**http_info) + + def get_object_metadata_async_invoker(self, request): + http_info = self._get_object_metadata_http_info(request) + return AsyncInvoker(self, http_info) + + def _get_object_metadata_http_info(self, request): + http_info = { + "method": "HEAD", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "GetObjectMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'version_id' in local_var_params: + query_params.append(('versionId', local_var_params['version_id'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'origin' in local_var_params: + header_params['Origin'] = local_var_params['origin'] + if 'access_control_request_headers' in local_var_params: + header_params['Access-Control-Request-Headers'] = local_var_params['access_control_request_headers'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + if 'success_action_redirect' in local_var_params: + header_params['success-action-redirect'] = local_var_params['success_action_redirect'] + if 'x_obs_expires' in local_var_params: + header_params['x-obs-expires'] = local_var_params['x_obs_expires'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-hash-crc64ecma", "Access-Control-Allow-Origin", "x-obs-server-side-encryption", "x-obs-restore", "x-obs-object-type", "x-obs-next-append-position", "Access-Control-Allow-Methods", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "x-obs-expiration", "Date", "Access-Control-Allow-Headers", "x-obs-uploadId", "Access-Control-Expose-Headers", "ETag", "x-obs-server-side-encryption-customer-algorithm", "x-obs-storage-class", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "Access-Control-Max-Age", "x-obs-website-redirect-location", "x-obs-version-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_buckets_async(self, request): + """获取桶列表 + + OBS用户可以通过请求查询自己创建的桶列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListBuckets + :type request: :class:`huaweicloudsdkobs.v1.ListBucketsRequest` + :rtype: :class:`huaweicloudsdkobs.v1.ListBucketsResponse` + """ + http_info = self._list_buckets_http_info(request) + return self._call_api(**http_info) + + def list_buckets_async_invoker(self, request): + http_info = self._list_buckets_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_buckets_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "ListBucketsResponse" + } + + 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 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_bucket_type' in local_var_params: + header_params['x-obs-bucket-type'] = local_var_params['x_obs_bucket_type'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "x-obs-bucket-type", "Connection", "Content-Length", "Date", ] + + 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_objects_async(self, request): + """列举桶内对象 + + 对桶拥有读权限的用户可以执行获取桶内对象列表的操作。 + + 如果用户在请求的URI里只指定了桶名,即GET /BucketName,则返回信息中会包含桶内部分或所有对象的描述信息(一次最多返回1000个对象信息);如果用户还指定了prefix、marker、max-keys、delimiter参数中的一个或多个,则返回的对象列表将按照如表1所示规定的语义返回指定的对象。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for ListObjects + :type request: :class:`huaweicloudsdkobs.v1.ListObjectsRequest` + :rtype: :class:`huaweicloudsdkobs.v1.ListObjectsResponse` + """ + http_info = self._list_objects_http_info(request) + return self._call_api(**http_info) + + def list_objects_async_invoker(self, request): + http_info = self._list_objects_http_info(request) + return AsyncInvoker(self, http_info) + + def _list_objects_http_info(self, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "ListObjectsResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'prefix' in local_var_params: + query_params.append(('prefix', local_var_params['prefix'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'max_keys' in local_var_params: + query_params.append(('max-keys', local_var_params['max_keys'])) + if 'delimiter' in local_var_params: + query_params.append(('delimiter', local_var_params['delimiter'])) + if 'key_marker' in local_var_params: + query_params.append(('key-marker', local_var_params['key_marker'])) + if 'version_id_marker' in local_var_params: + query_params.append(('version-id-marker', local_var_params['version_id_marker'])) + if 'encoding_type' in local_var_params: + query_params.append(('encoding-type', local_var_params['encoding_type'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "x-obs-bucket-type", "Connection", "Content-Length", "Date", ] + + 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 put_object_async(self, request): + """PUT上传对象 + + 用户在OBS系统中创建了桶之后,可以采用PUT操作的方式将对象上传到桶中。上传对象操作是指在指定的桶内增加一个对象,执行该操作需要用户拥有桶的写权限。 + 说明: 同一个桶中存储的对象名是唯一的。 + 在桶未开启多版本的情况下,如果在指定的桶内已经有相同的对象键值的对象,用户上传的新对象会覆盖原来的对象;为了确保数据在传输过程中没有遭到破坏,用户可以在请求消息头中加入Content-MD5参数。在这种情况下,OBS收到上传的对象后,会对对象进行MD5校验,如果不一致则返回出错信息。 + 用户还可以在上传对象时指定x-obs-acl参数,设置对象的权限控制策略。如果匿名用户在上传对象时未指定x-obs-acl参数,则该对象默认可以被所有OBS用户访问。 + 该操作支持服务端加密功能。 + 单次上传对象大小范围是[0, 5GB],如果需要上传超过5GB的大文件,需要通过多段操作来分段上传。 + OBS没有文件夹的概念。为了使用户更方便进行管理数据,OBS提供了一种方式模拟文件夹:通过在对象的名称中增加“/”,例如“test/123.jpg”。此时,“test”就被模拟成了一个文件夹,“123.jpg”则模拟成“test”文件夹下的文件名了,而实际上,对象名称(Key)仍然是“test/123.jpg”。此类命名方式的对象,在控制台上会以文件夹的形式展示。 + #### 与POST上传的区别 #### PUT上传中参数通过请求头域传递;POST上传则作为消息体中的表单域传递。 + PUT上传需在URL中指定对象名;POST上传提交的URL为桶域名,无需指定对象名。两者的请求行分别为: + PUT /ObjectName HTTP/1.1 + POST / HTTP/1.1 + 关于POST上传的更多详细信息,请参考POST上传。 + #### 多版本 #### 如果桶的多版本状态是开启的,系统会自动为对象生成一个唯一的版本号,并且会在响应报头x-obs-version-id返回该版本号。如果桶的多版本状态是暂停的,则对象的版本号为null。关于桶的多版本状态,参见设置桶的多版本状态。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for PutObject + :type request: :class:`huaweicloudsdkobs.v1.PutObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.PutObjectResponse` + """ + http_info = self._put_object_http_info(request) + return self._call_api(**http_info) + + def put_object_async_invoker(self, request): + http_info = self._put_object_http_info(request) + return AsyncInvoker(self, http_info) + + def _put_object_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "PutObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'content_md5' in local_var_params: + header_params['Content-MD5'] = local_var_params['content_md5'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + if 'x_obs_grant_read' in local_var_params: + header_params['x-obs-grant-read'] = local_var_params['x_obs_grant_read'] + if 'x_obs_grant_read_acp' in local_var_params: + header_params['x-obs-grant-read-acp'] = local_var_params['x_obs_grant_read_acp'] + if 'x_obs_grant_write_acp' in local_var_params: + header_params['x-obs-grant-write-acp'] = local_var_params['x_obs_grant_write_acp'] + if 'x_obs_grant_full_control' in local_var_params: + header_params['x-obs-grant-full-control'] = local_var_params['x_obs_grant_full_control'] + if 'x_obs_storage_class' in local_var_params: + header_params['x-obs-storage-class'] = local_var_params['x_obs_storage_class'] + if 'x_obs_meta_xxx' in local_var_params: + header_params['x-obs-meta-xxx'] = local_var_params['x_obs_meta_xxx'] + if 'x_obs_persistent_headers' in local_var_params: + header_params['x-obs-persistent-headers'] = local_var_params['x_obs_persistent_headers'] + if 'x_obs_website_redirect_location' in local_var_params: + header_params['x-obs-website-redirect-location'] = local_var_params['x_obs_website_redirect_location'] + if 'x_obs_server_side_encryption' in local_var_params: + header_params['x-obs-server-side-encryption'] = local_var_params['x_obs_server_side_encryption'] + if 'x_obs_server_side_encryption_kms_key_id' in local_var_params: + header_params['x-obs-server-side-encryption-kms-key-id'] = local_var_params['x_obs_server_side_encryption_kms_key_id'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + if 'success_action_redirect' in local_var_params: + header_params['success-action-redirect'] = local_var_params['success_action_redirect'] + if 'x_obs_expires' in local_var_params: + header_params['x-obs-expires'] = local_var_params['x_obs_expires'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "x-obs-server-side-encryption", "x-obs-server-side-encryption-customer-algorithm", "x-obs-storage-class", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "Date", "x-obs-version-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/octet-stream']) + + 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_bucket_acl_async(self, request): + """设置桶ACL + + OBS支持对桶操作进行权限控制。默认情况下,只有桶的创建者才有该桶的读写权限。用户也可以设置其他的访问策略,比如对一个桶可以设置公共访问策略,允许所有人对其都有读权限。 + + OBS用户在创建桶时可以设置权限控制策略,也可以通过ACL操作API接口对已存在的桶更改或者获取ACL(access control list) 。一个桶的ACL最多支持100条Grant授权。PUT接口为幂等的覆盖写语意,新设置的桶ACL将覆盖原有的桶ACL,如果需要修改或者删除某条ACL重新PUT一个新的桶ACL即可。 + + 使用桶ACL进行权限控制请参考[《对象存储服务权限配置指南》的OBS权限控制概述章节](https://support.huaweicloud.com/perms-cfg-obs/obs_40_0001.html)。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetBucketAcl + :type request: :class:`huaweicloudsdkobs.v1.SetBucketAclRequest` + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketAclResponse` + """ + http_info = self._set_bucket_acl_http_info(request) + return self._call_api(**http_info) + + def set_bucket_acl_async_invoker(self, request): + http_info = self._set_bucket_acl_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_bucket_acl_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "SetBucketAclResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'acl' in local_var_params: + query_params.append(('acl', local_var_params['acl'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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_bucket_customedomain_async(self, request): + """设置桶的自定义域名 + + OBS使用PUT操作为桶设置自定义域名,设置成功之后,用户访问桶的自定义域名就能访问到桶。 + + 必须保证此自定义域名通过DNS能够正确解析到OBS服务。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetBucketCustomedomain + :type request: :class:`huaweicloudsdkobs.v1.SetBucketCustomedomainRequest` + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketCustomedomainResponse` + """ + http_info = self._set_bucket_customedomain_http_info(request) + return self._call_api(**http_info) + + def set_bucket_customedomain_async_invoker(self, request): + http_info = self._set_bucket_customedomain_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_bucket_customedomain_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "SetBucketCustomedomainResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'customdomain' in local_var_params: + query_params.append(('customdomain', local_var_params['customdomain'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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_bucket_notification_async(self, request): + """设置桶的消息通知配置 + + OBS消息通知功能能够帮助您对桶的重要的操作及时通知到您,确保您安全、及时知道发生在桶上的关键事件。 + + 默认情况下,您的桶没有配置事件通知。这个时候桶的通知配置将是一个空NotificationConfiguration。对已配置有事件通知的桶,可以通过添加空NotificationConfiguration元素禁用消息通知功能。 + + <NotificationConfiguration> + </NotificationConfiguration> + + 目前对象存储服务(OBS)支持包括简单通知服务(SMN)、函数工作流服务(FunctionGraph)在内的两种桶通知服务配置。以SMN为例,当OBS接收到配置消息通知的请求后,会验证指定的消息通知服务(SMN)主题是否存在及主题策略是否授权给了对象存储服务,验证通过后会向该主题订阅者发送一个测试消息通知。 + + 为了能成功执行此配置操作,需要确保执行者拥有PutBucketNotification权限。默认情况下只有桶的所有者拥有该权限,但可以通过设置桶策略授权给其他用户。 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetBucketNotification + :type request: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequest` + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketNotificationResponse` + """ + http_info = self._set_bucket_notification_http_info(request) + return self._call_api(**http_info) + + def set_bucket_notification_async_invoker(self, request): + http_info = self._set_bucket_notification_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_bucket_notification_http_info(self, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "SetBucketNotificationResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'notification' in local_var_params: + query_params.append(('notification', local_var_params['notification'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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-obs/huaweicloudsdkobs/v1/obs_client.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_client.py new file mode 100644 index 000000000..1164e333f --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_client.py @@ -0,0 +1,1606 @@ +# 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 'huaweicloudsdkobs'") + + +class ObsClient(Client): + def __init__(self): + super(ObsClient, self).__init__() + self.model_package = importlib.import_module("huaweicloudsdkobs.v1.model") + + @classmethod + def new_builder(cls, clazz=None): + if not clazz: + client_builder = ClientBuilder(cls, "ObsCredentials") + else: + if clazz.__name__ != "ObsClient": + raise TypeError("client type error, support client type is ObsClient") + client_builder = ClientBuilder(clazz, "ObsCredentials") + + + + return client_builder + + def copy_object(self, request): + """复制对象 + + 复制对象(Copy Object)特性用来为OBS上已经存在的对象创建一个副本。 + + 当进行复制对象操作时,目标对象默认复制源对象的元数据;用户也可以将目标对象的元数据替换为本次请求中所带的元数据。新建的目标对象不会复制源对象的ACL信息,默认的新建对象的ACL是private,用户可以使用设置ACL的操作接口来重新设定新对象的ACL。 + + 复制对象操作的请求需要通过头域携带拷贝的原桶和对象信息,不能携带消息实体。 + + 该操作支持服务端加密功能。 + + 目标对象大小范围是[0, 5GB],如果源对象大小超过5GB,只能使用Range拷贝部分对象。 + + #### 多版本 #### + 默认情况下,x-obs-copy-source标识复制源对象的最新版本。如果源对象的最新版本是删除标记,则认为该对象已删除。要复制指定版本的对象,可以在x-obs-copy-source请求消息头中携带versionId参数。 + + 如果目标对象的桶的多版本状态是开启的,系统为目标对象生成唯一的版本号(此版本号与源对象的版本号不同),并且会在响应报头x-obs-version-id返回该版本号。如果目标对象的桶的多版本状态是暂停的,则目标对象的版本号为null。 + + 须知: + 在桶没有开启多版本的情况下,将源对象object_A复制为目标对象object_B,如果在复制操作之前对象object_B已经存在,复制操作执行之后老对象object_B则会被新复制对象object_B覆盖,复制成功后,只能下载到新的对象object_B,老对象object_B将会被删除。因此在使用copy接口时请确保目标对象不存在或者已无价值,避免因copy导致数据误删除。复制过程中源对象object_A无任何变化。 + + 复制对象的结果不能仅根据HTTP返回头域中的status_code来判断请求是否成功,头域中status_code返回200时表示服务端已经收到请求,且开始处理复制对象请求。复制是否成功会在响应消息的body中,只有body体中有ETag标签才表示成功,否则表示复制失败。 + + #### 归档存储对象 #### + 如果源对象是归档存储对象,需要判断源对象的取回状态,只有当源对象处于已取回状态时,才能复制成功。源对象未取回或者正在取回时,会复制失败,返回错误403 Forbidden。异常描述为: + + ErrorCode: InvalidObjectState + + ErrorMessage: Operation is not valid for the source object's storage class + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CopyObject + :type request: :class:`huaweicloudsdkobs.v1.CopyObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.CopyObjectResponse` + """ + http_info = self._copy_object_http_info(request) + return self._call_api(**http_info) + + def copy_object_invoker(self, request): + http_info = self._copy_object_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _copy_object_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "CopyObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + if 'x_obs_grant_read' in local_var_params: + header_params['x-obs-grant-read'] = local_var_params['x_obs_grant_read'] + if 'x_obs_grant_read_acp' in local_var_params: + header_params['x-obs-grant-read-acp'] = local_var_params['x_obs_grant_read_acp'] + if 'x_obs_grant_write_acp' in local_var_params: + header_params['x-obs-grant-write-acp'] = local_var_params['x_obs_grant_write_acp'] + if 'x_obs_grant_full_control' in local_var_params: + header_params['x-obs-grant-full-control'] = local_var_params['x_obs_grant_full_control'] + if 'x_obs_copy_source' in local_var_params: + header_params['x-obs-copy-source'] = local_var_params['x_obs_copy_source'] + if 'x_obs_metadata_directive' in local_var_params: + header_params['x-obs-metadata-directive'] = local_var_params['x_obs_metadata_directive'] + if 'x_obs_copy_source_if_match' in local_var_params: + header_params['x-obs-copy-source-if-match'] = local_var_params['x_obs_copy_source_if_match'] + if 'x_obs_copy_source_if_none_match' in local_var_params: + header_params['x-obs-copy-source-if-none-match'] = local_var_params['x_obs_copy_source_if_none_match'] + if 'x_obs_copy_source_if_unmodified_since' in local_var_params: + header_params['x-obs-copy-source-if-unmodified-since'] = local_var_params['x_obs_copy_source_if_unmodified_since'] + if 'x_obs_copy_source_if_modified_since' in local_var_params: + header_params['x-obs-copy-source-if-modified-since'] = local_var_params['x_obs_copy_source_if_modified_since'] + if 'x_obs_storage_class' in local_var_params: + header_params['x-obs-storage-class'] = local_var_params['x_obs_storage_class'] + if 'x_obs_persistent_headers' in local_var_params: + header_params['x-obs-persistent-headers'] = local_var_params['x_obs_persistent_headers'] + if 'x_obs_website_redirect_location' in local_var_params: + header_params['x-obs-website-redirect-location'] = local_var_params['x_obs_website_redirect_location'] + if 'x_obs_server_side_encryption' in local_var_params: + header_params['x-obs-server-side-encryption'] = local_var_params['x_obs_server_side_encryption'] + if 'x_obs_server_side_encryption_kms_key_id' in local_var_params: + header_params['x-obs-server-side-encryption-kms-key-id'] = local_var_params['x_obs_server_side_encryption_kms_key_id'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + if 'x_obs_copy_source_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-copy-source-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_copy_source_server_side_encryption_customer_algorithm'] + if 'x_obs_copy_source_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-copy-source-server-side-encryption-customer-key'] = local_var_params['x_obs_copy_source_server_side_encryption_customer_key'] + if 'x_obs_copy_source_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-copy-source-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_copy_source_server_side_encryption_customer_key_md5'] + if 'success_action_redirect' in local_var_params: + header_params['success_action_redirect'] = local_var_params['success_action_redirect'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-server-side-encryption", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "Date", "ETag", "x-obs-server-side-encryption-customer-algorithm", "x-obs-copy-source-version-id", "x-obs-storage-class", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "x-obs-version-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_bucket(self, request): + """创建桶 + + 创建桶是指按照用户指定的桶名创建一个新桶的操作。 + + 说明: + 默认情况下,一个用户可以拥有的桶的数量不能超过100个。 + 用户删除桶后,需要等待30分钟才能创建同名桶和并行文件系统。 + OBS支持在创建桶时指定桶的AZ类型,您可以开启或关闭多AZ。关闭多AZ时,桶内数据默认存储在单个AZ内;开启多AZ时,桶内数据冗余存储在多个AZ内,可靠性更高。旧桶AZ类型默认为单AZ。 + 新创建桶的桶名在OBS中必须是唯一的。如果是同一个用户重复创建同一区域的同名桶时返回成功。除此以外的其他场景重复创建同名桶返回桶已存在。用户可以在请求消息头中加入x-obs-acl等参数,设置要创建桶的权限控制策略。 + + #### 存储类型 #### + 允许用户创建不同默认存储类型的桶。发送创桶请求时携带头域“x-obs-storage-class”来指定桶的默认存储类型。桶内对象的存储类型与桶默认存储类型保持一致。存储类型有3种:STANDARD(标准存储)、WARM(低频访问存储)、COLD(归档存储)。如果没有携带此头域 ,则创建的桶为标准存储类型。 + + 当往桶内上传对象时,如果没有指定对象的存储类别(参考PUT上传),则该对象的存储类型取桶的默认存储类型。 + + OBS标准存储拥有低访问时延和较高的吞吐量,因而适用于有大量热点文件需要频繁访问数据的业务场景,例如:大数据、移动应用、热点视频、社交图片等场景。 + OBS低频访问存储适用于不频繁访问(少于每月一次访问)但在需要时也要求快速访问数据的业务场景,例如:文件同步/共享、企业备份等场景。与标准存储相比,低频访问存储有相同的数据持久性、吞吐量以及访问时延,且成本较低,但是可用性略低于标准存储。 + OBS归档存储适用于很少访问(平均一年访问一次)数据的业务场景,例如:数据归档、长期备份等场景。归档存储安全、持久且成本极低,可以用来替代磁带库。为了保持成本低廉,数据取回时间可能长达数分钟到数小时不等。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for CreateBucket + :type request: :class:`huaweicloudsdkobs.v1.CreateBucketRequest` + :rtype: :class:`huaweicloudsdkobs.v1.CreateBucketResponse` + """ + http_info = self._create_bucket_http_info(request) + return self._call_api(**http_info) + + def create_bucket_invoker(self, request): + http_info = self._create_bucket_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _create_bucket_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "CreateBucketResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + if 'x_obs_storage_class' in local_var_params: + header_params['x-obs-storage-class'] = local_var_params['x_obs_storage_class'] + if 'x_obs_grant_read' in local_var_params: + header_params['x-obs-grant-read'] = local_var_params['x_obs_grant_read'] + if 'x_obs_grant_write' in local_var_params: + header_params['x-obs-grant-write'] = local_var_params['x_obs_grant_write'] + if 'x_obs_grant_read_acp' in local_var_params: + header_params['x-obs-grant-read-acp'] = local_var_params['x_obs_grant_read_acp'] + if 'x_obs_grant_write_acp' in local_var_params: + header_params['x-obs-grant-write-acp'] = local_var_params['x_obs_grant_write_acp'] + if 'x_obs_grant_full_control' in local_var_params: + header_params['x-obs-grant-full-control'] = local_var_params['x_obs_grant_full_control'] + if 'x_obs_grant_read_delivered' in local_var_params: + header_params['x-obs-grant-read-delivered'] = local_var_params['x_obs_grant_read_delivered'] + if 'x_obs_grant_full_control_delivered' in local_var_params: + header_params['x-obs-grant-full-control-delivered'] = local_var_params['x_obs_grant_full_control_delivered'] + if 'x_obs_az_redundancy' in local_var_params: + header_params['x-obs-az-redundancy'] = local_var_params['x_obs_az_redundancy'] + if 'x_obs_fs_file_interface' in local_var_params: + header_params['x-obs-fs-file-interface'] = local_var_params['x_obs_fs_file_interface'] + if 'x_obs_epid' in local_var_params: + header_params['x-obs-epid'] = local_var_params['x_obs_epid'] + if 'x_obs_cluster_type' in local_var_params: + header_params['x-obs-cluster-type'] = local_var_params['x_obs_cluster_type'] + if 'x_obs_location_clustergroup_id' in local_var_params: + header_params['x-obs-location-clustergroup-id'] = local_var_params['x_obs_location_clustergroup_id'] + if 'x_obs_ies_location' in local_var_params: + header_params['x-obs-ies-location'] = local_var_params['x_obs_ies_location'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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_bucket(self, request): + """删除桶 + + 删除桶操作用于删除用户指定的桶。只有桶的所有者或者拥有桶的删桶policy权限的用户可以执行删除桶的操作,要删除的桶必须是空桶。如果桶中有对象或者有多段任务则认为桶不为空,可以使用列举桶内对象和列举出多段上传任务接口来确认桶是否为空。 + 注: + 如果删除桶时,服务端返回5XX错误或超时,系统需要时间进行桶信息一致性处理,在此期间桶的信息会不准确,过一段时间再查看桶是否删除成功,查询到桶,需要再次发送删除桶消息。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteBucket + :type request: :class:`huaweicloudsdkobs.v1.DeleteBucketRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteBucketResponse` + """ + http_info = self._delete_bucket_http_info(request) + return self._call_api(**http_info) + + def delete_bucket_invoker(self, request): + http_info = self._delete_bucket_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_bucket_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "DeleteBucketResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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_bucket_customdomain(self, request): + """删除桶的自定义域名 + + OBS使用DELETE操作来删除指定桶的标签。 + + 要正确执行此操作,需要确保执行者有PutBucketcustomdomain权限。缺省情况下只有桶的所有者可以执行此操作,也可以通过设置桶策略或用户策略授权给其他用户。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteBucketCustomdomain + :type request: :class:`huaweicloudsdkobs.v1.DeleteBucketCustomdomainRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteBucketCustomdomainResponse` + """ + http_info = self._delete_bucket_customdomain_http_info(request) + return self._call_api(**http_info) + + def delete_bucket_customdomain_invoker(self, request): + http_info = self._delete_bucket_customdomain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_bucket_customdomain_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "DeleteBucketCustomdomainResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'customdomain' in local_var_params: + query_params.append(('customdomain', local_var_params['customdomain'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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_object(self, request): + """删除对象 + + 删除对象的操作。如果要删除的对象不存在,则仍然返回成功信息。 + + #### 多版本 #### + 当桶的多版本状态是开启时,不指定版本删除对象将产生一个带唯一版本号的删除标记,并不删除对象;当桶的多版本状态是Suspended时,不指定版本删除将删除版本号为null的对象,并将产生一个版本号为null的删除标记。 + + 如果要删除指定版本的对象,请求可携带versionId消息参数。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteObject + :type request: :class:`huaweicloudsdkobs.v1.DeleteObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteObjectResponse` + """ + http_info = self._delete_object_http_info(request) + return self._call_api(**http_info) + + def delete_object_invoker(self, request): + http_info = self._delete_object_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_object_http_info(cls, request): + http_info = { + "method": "DELETE", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "DeleteObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'version_id' in local_var_params: + query_params.append(('versionId', local_var_params['version_id'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", "x-obs-delete-marker", "x-obs-version-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_objects(self, request): + """批量删除对象 + + 批量删除对象特性用于将一个桶内的部分对象一次性删除,删除后不可恢复。批量删除对象要求返回结果里包含每个对象的删除结果。OBS的批量删除对象使用同步删除对象的方式,每个对象的删除结果返回给请求用户。 + + 批量删除对象支持两种响应方式:verbose和quiet。Verbose是指在返回响应时,不管对象是否删除成功都将删除结果包含在XML响应里;quiet是指在返回响应时,只返回删除失败的对象结果,没有返回的认为删除成功。OBS默认使用verbose模式,如果用户在请求消息体中指定quiet模式的话, 使用quiet模式。 + + 批量删除的请求消息头中必须包含Content-MD5以及Content-Length,用以保证请求的消息体在服务端检测到网络传输如果有错,则可以检测出来。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for DeleteObjects + :type request: :class:`huaweicloudsdkobs.v1.DeleteObjectsRequest` + :rtype: :class:`huaweicloudsdkobs.v1.DeleteObjectsResponse` + """ + http_info = self._delete_objects_http_info(request) + return self._call_api(**http_info) + + def delete_objects_invoker(self, request): + http_info = self._delete_objects_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _delete_objects_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "DeleteObjectsResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'delete' in local_var_params: + query_params.append(('delete', local_var_params['delete'])) + + header_params = {} + if 'content_md5' in local_var_params: + header_params['Content-MD5'] = local_var_params['content_md5'] + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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 get_bucket_acl(self, request): + """获取桶ACL + + 用户执行获取桶ACL的操作,返回信息包含指定桶的权限控制列表信息。用户必须拥有对指定桶READ_ACP的权限或FULL_CONTROL权限,才能执行获取桶ACL的操作。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetBucketAcl + :type request: :class:`huaweicloudsdkobs.v1.GetBucketAclRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketAclResponse` + """ + http_info = self._get_bucket_acl_http_info(request) + return self._call_api(**http_info) + + def get_bucket_acl_invoker(self, request): + http_info = self._get_bucket_acl_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_bucket_acl_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketAclResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'acl' in local_var_params: + query_params.append(('acl', local_var_params['acl'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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 get_bucket_customdomain(self, request): + """获取桶的自定义域名 + + OBS使用GET操作来获取桶的自定义域名。 + + 要正确执行此操作,需要确保执行者有GetBucketcustomdomainConfiguration权限。桶拥有者默认具有此权限,并且可以将此权限授予其他人。 + + 有关权限控制的更多信息请参考《对象存储服务权限配置指南》的[OBS权限控制概述](https://support.huaweicloud.com/perms-cfg-obs/obs_40_0001.html)章节。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetBucketCustomdomain + :type request: :class:`huaweicloudsdkobs.v1.GetBucketCustomdomainRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketCustomdomainResponse` + """ + http_info = self._get_bucket_customdomain_http_info(request) + return self._call_api(**http_info) + + def get_bucket_customdomain_invoker(self, request): + http_info = self._get_bucket_customdomain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_bucket_customdomain_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketCustomdomainResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'customdomain' in local_var_params: + query_params.append(('customdomain', local_var_params['customdomain'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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 get_bucket_metadata(self, request): + """获取桶元数据 + + 对桶拥有读权限的用户可以执行查询桶元数据是否存在的操作。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetBucketMetadata + :type request: :class:`huaweicloudsdkobs.v1.GetBucketMetadataRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketMetadataResponse` + """ + http_info = self._get_bucket_metadata_http_info(request) + return self._call_api(**http_info) + + def get_bucket_metadata_invoker(self, request): + http_info = self._get_bucket_metadata_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_bucket_metadata_http_info(cls, request): + http_info = { + "method": "HEAD", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketMetadataResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'origin' in local_var_params: + header_params['Origin'] = local_var_params['origin'] + if 'access_control_request_headers' in local_var_params: + header_params['Access-Control-Request-Headers'] = local_var_params['access_control_request_headers'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-fs-file-interface", "x-obs-version", "Access-Control-Allow-Origin", "Access-Control-Allow-Methods", "x-obs-bucket-location", "Connection", "x-obs-epid", "Date", "Access-Control-Allow-Headers", "Access-Control-Expose-Headers", "ETag", "x-obs-storage-class", "x-obs-az-redundancy", "Content-Length", "Access-Control-Max-Age", "x-obs-ies-location", ] + + 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 get_bucket_notification(self, request): + """获取桶的消息通知配置 + + 获取指定桶的消息通知配置信息。 + + 为了能成功执行此配置操作,需要确保执行者拥有GetBucketNotification权限。默认情况下只有桶的所有者拥有该权限,但可以通过设置桶策略或用户策略授权给其他用户。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetBucketNotification + :type request: :class:`huaweicloudsdkobs.v1.GetBucketNotificationRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetBucketNotificationResponse` + """ + http_info = self._get_bucket_notification_http_info(request) + return self._call_api(**http_info) + + def get_bucket_notification_invoker(self, request): + http_info = self._get_bucket_notification_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_bucket_notification_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "GetBucketNotificationResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'notification' in local_var_params: + query_params.append(('notification', local_var_params['notification'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + 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 get_object(self, request): + """获取对象内容 + + GET操作从对象存储下载对象。使用GET接口前,请确认必须拥有对象的READ权限。如果对象Owner向匿名用户授予READ访问权限,则可以在不使用鉴权头域的情况下访问该对象。 + + #### 服务端加密 #### + 如果客户端的对象上传时,使用了客户提供的加密密钥进行服务端加密,当下载对象时,同样也必须在消息中提供密钥。 + + #### 多版本 #### + 默认情况下,获取的是最新版本的对象。如果最新版本的对象是删除标记,则返回对象不存在。如果要获取指定版本的对象,请求可携带versionId消息参数。 + + #### 归档存储对象 #### + 如果要下载的对象是归档存储类对象,由于对象存储在存档设备中,您必须先使用对象取回,然后才能下载该归档存储对象。对象处于不同的取回状态时,给出不同响应:如果对象已取回,下载对象成功时需要返回x-obs-restore头域指示取回失效时间。对未取回或正在取回的归档存储对象发送下载请求时,会返回错误403 Forbidden。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetObject + :type request: :class:`huaweicloudsdkobs.v1.GetObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetObjectResponse` + """ + http_info = self._get_object_http_info(request) + return self._call_api(**http_info) + + def get_object_invoker(self, request): + http_info = self._get_object_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_object_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "GetObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'response_content_type' in local_var_params: + query_params.append(('response-content-type', local_var_params['response_content_type'])) + if 'response_content_language' in local_var_params: + query_params.append(('response-content-language', local_var_params['response_content_language'])) + if 'response_expires' in local_var_params: + query_params.append(('response-expires', local_var_params['response_expires'])) + if 'response_cache_control' in local_var_params: + query_params.append(('response-cache-control', local_var_params['response_cache_control'])) + if 'response_content_disposition' in local_var_params: + query_params.append(('response-content-disposition', local_var_params['response_content_disposition'])) + if 'response_content_encoding' in local_var_params: + query_params.append(('response-content-encoding', local_var_params['response_content_encoding'])) + if 'version_id' in local_var_params: + query_params.append(('versionId', local_var_params['version_id'])) + if 'x_image_process' in local_var_params: + query_params.append(('x-image-process', local_var_params['x_image_process'])) + if 'attname' in local_var_params: + query_params.append(('attname', local_var_params['attname'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'range' in local_var_params: + header_params['Range'] = local_var_params['range'] + if 'if_modified_since' in local_var_params: + header_params['If-Modified-Since'] = local_var_params['if_modified_since'] + if 'if_unmodified_since' in local_var_params: + header_params['If-Unmodified-Since'] = local_var_params['if_unmodified_since'] + if 'if_match' in local_var_params: + header_params['If-Match'] = local_var_params['if_match'] + if 'if_none_match' in local_var_params: + header_params['If-None-Match'] = local_var_params['if_none_match'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-server-side-encryption", "x-obs-object-type", "x-obs-next-append-position", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "x-obs-expiration", "Date", "ETag", "x-obs-server-side-encryption-customer-algorithm", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "x-obs-website-redirect-location", "x-obs-delete-marker", "x-obs-version-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 get_object_metadata(self, request): + """获取对象元数据 + + 拥有对象读权限的用户可以执行HEAD操作命令获取对象元数据,返回信息包含对象的元数据信息。 + 该操作支持服务端加密功能。 + + #### 多版本 #### + 默认情况下,获取的是最新版本的对象元数据。如果最新版本的对象是删除标记,则返回404。如果要获取指定版本的对象元数据,请求可携带versionId消息参数。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for GetObjectMetadata + :type request: :class:`huaweicloudsdkobs.v1.GetObjectMetadataRequest` + :rtype: :class:`huaweicloudsdkobs.v1.GetObjectMetadataResponse` + """ + http_info = self._get_object_metadata_http_info(request) + return self._call_api(**http_info) + + def get_object_metadata_invoker(self, request): + http_info = self._get_object_metadata_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _get_object_metadata_http_info(cls, request): + http_info = { + "method": "HEAD", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "GetObjectMetadataResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'version_id' in local_var_params: + query_params.append(('versionId', local_var_params['version_id'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'origin' in local_var_params: + header_params['Origin'] = local_var_params['origin'] + if 'access_control_request_headers' in local_var_params: + header_params['Access-Control-Request-Headers'] = local_var_params['access_control_request_headers'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + if 'success_action_redirect' in local_var_params: + header_params['success-action-redirect'] = local_var_params['success_action_redirect'] + if 'x_obs_expires' in local_var_params: + header_params['x-obs-expires'] = local_var_params['x_obs_expires'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "x-obs-hash-crc64ecma", "Access-Control-Allow-Origin", "x-obs-server-side-encryption", "x-obs-restore", "x-obs-object-type", "x-obs-next-append-position", "Access-Control-Allow-Methods", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "x-obs-expiration", "Date", "Access-Control-Allow-Headers", "x-obs-uploadId", "Access-Control-Expose-Headers", "ETag", "x-obs-server-side-encryption-customer-algorithm", "x-obs-storage-class", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "Access-Control-Max-Age", "x-obs-website-redirect-location", "x-obs-version-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_buckets(self, request): + """获取桶列表 + + OBS用户可以通过请求查询自己创建的桶列表。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListBuckets + :type request: :class:`huaweicloudsdkobs.v1.ListBucketsRequest` + :rtype: :class:`huaweicloudsdkobs.v1.ListBucketsResponse` + """ + http_info = self._list_buckets_http_info(request) + return self._call_api(**http_info) + + def list_buckets_invoker(self, request): + http_info = self._list_buckets_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_buckets_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "ListBucketsResponse" + } + + 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 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_bucket_type' in local_var_params: + header_params['x-obs-bucket-type'] = local_var_params['x_obs_bucket_type'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "x-obs-bucket-type", "Connection", "Content-Length", "Date", ] + + 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_objects(self, request): + """列举桶内对象 + + 对桶拥有读权限的用户可以执行获取桶内对象列表的操作。 + + 如果用户在请求的URI里只指定了桶名,即GET /BucketName,则返回信息中会包含桶内部分或所有对象的描述信息(一次最多返回1000个对象信息);如果用户还指定了prefix、marker、max-keys、delimiter参数中的一个或多个,则返回的对象列表将按照如表1所示规定的语义返回指定的对象。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for ListObjects + :type request: :class:`huaweicloudsdkobs.v1.ListObjectsRequest` + :rtype: :class:`huaweicloudsdkobs.v1.ListObjectsResponse` + """ + http_info = self._list_objects_http_info(request) + return self._call_api(**http_info) + + def list_objects_invoker(self, request): + http_info = self._list_objects_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _list_objects_http_info(cls, request): + http_info = { + "method": "GET", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "ListObjectsResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'prefix' in local_var_params: + query_params.append(('prefix', local_var_params['prefix'])) + if 'marker' in local_var_params: + query_params.append(('marker', local_var_params['marker'])) + if 'max_keys' in local_var_params: + query_params.append(('max-keys', local_var_params['max_keys'])) + if 'delimiter' in local_var_params: + query_params.append(('delimiter', local_var_params['delimiter'])) + if 'key_marker' in local_var_params: + query_params.append(('key-marker', local_var_params['key_marker'])) + if 'version_id_marker' in local_var_params: + query_params.append(('version-id-marker', local_var_params['version_id_marker'])) + if 'encoding_type' in local_var_params: + query_params.append(('encoding-type', local_var_params['encoding_type'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "x-obs-bucket-type", "Connection", "Content-Length", "Date", ] + + 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 put_object(self, request): + """PUT上传对象 + + 用户在OBS系统中创建了桶之后,可以采用PUT操作的方式将对象上传到桶中。上传对象操作是指在指定的桶内增加一个对象,执行该操作需要用户拥有桶的写权限。 + 说明: 同一个桶中存储的对象名是唯一的。 + 在桶未开启多版本的情况下,如果在指定的桶内已经有相同的对象键值的对象,用户上传的新对象会覆盖原来的对象;为了确保数据在传输过程中没有遭到破坏,用户可以在请求消息头中加入Content-MD5参数。在这种情况下,OBS收到上传的对象后,会对对象进行MD5校验,如果不一致则返回出错信息。 + 用户还可以在上传对象时指定x-obs-acl参数,设置对象的权限控制策略。如果匿名用户在上传对象时未指定x-obs-acl参数,则该对象默认可以被所有OBS用户访问。 + 该操作支持服务端加密功能。 + 单次上传对象大小范围是[0, 5GB],如果需要上传超过5GB的大文件,需要通过多段操作来分段上传。 + OBS没有文件夹的概念。为了使用户更方便进行管理数据,OBS提供了一种方式模拟文件夹:通过在对象的名称中增加“/”,例如“test/123.jpg”。此时,“test”就被模拟成了一个文件夹,“123.jpg”则模拟成“test”文件夹下的文件名了,而实际上,对象名称(Key)仍然是“test/123.jpg”。此类命名方式的对象,在控制台上会以文件夹的形式展示。 + #### 与POST上传的区别 #### PUT上传中参数通过请求头域传递;POST上传则作为消息体中的表单域传递。 + PUT上传需在URL中指定对象名;POST上传提交的URL为桶域名,无需指定对象名。两者的请求行分别为: + PUT /ObjectName HTTP/1.1 + POST / HTTP/1.1 + 关于POST上传的更多详细信息,请参考POST上传。 + #### 多版本 #### 如果桶的多版本状态是开启的,系统会自动为对象生成一个唯一的版本号,并且会在响应报头x-obs-version-id返回该版本号。如果桶的多版本状态是暂停的,则对象的版本号为null。关于桶的多版本状态,参见设置桶的多版本状态。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for PutObject + :type request: :class:`huaweicloudsdkobs.v1.PutObjectRequest` + :rtype: :class:`huaweicloudsdkobs.v1.PutObjectResponse` + """ + http_info = self._put_object_http_info(request) + return self._call_api(**http_info) + + def put_object_invoker(self, request): + http_info = self._put_object_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _put_object_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/{object_key}", + "request_type": request.__class__.__name__, + "response_type": "PutObjectResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'object_key' in local_var_params: + path_params['object_key'] = local_var_params['object_key'] + + query_params = [] + if 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'content_md5' in local_var_params: + header_params['Content-MD5'] = local_var_params['content_md5'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + if 'x_obs_grant_read' in local_var_params: + header_params['x-obs-grant-read'] = local_var_params['x_obs_grant_read'] + if 'x_obs_grant_read_acp' in local_var_params: + header_params['x-obs-grant-read-acp'] = local_var_params['x_obs_grant_read_acp'] + if 'x_obs_grant_write_acp' in local_var_params: + header_params['x-obs-grant-write-acp'] = local_var_params['x_obs_grant_write_acp'] + if 'x_obs_grant_full_control' in local_var_params: + header_params['x-obs-grant-full-control'] = local_var_params['x_obs_grant_full_control'] + if 'x_obs_storage_class' in local_var_params: + header_params['x-obs-storage-class'] = local_var_params['x_obs_storage_class'] + if 'x_obs_meta_xxx' in local_var_params: + header_params['x-obs-meta-xxx'] = local_var_params['x_obs_meta_xxx'] + if 'x_obs_persistent_headers' in local_var_params: + header_params['x-obs-persistent-headers'] = local_var_params['x_obs_persistent_headers'] + if 'x_obs_website_redirect_location' in local_var_params: + header_params['x-obs-website-redirect-location'] = local_var_params['x_obs_website_redirect_location'] + if 'x_obs_server_side_encryption' in local_var_params: + header_params['x-obs-server-side-encryption'] = local_var_params['x_obs_server_side_encryption'] + if 'x_obs_server_side_encryption_kms_key_id' in local_var_params: + header_params['x-obs-server-side-encryption-kms-key-id'] = local_var_params['x_obs_server_side_encryption_kms_key_id'] + if 'x_obs_server_side_encryption_customer_algorithm' in local_var_params: + header_params['x-obs-server-side-encryption-customer-algorithm'] = local_var_params['x_obs_server_side_encryption_customer_algorithm'] + if 'x_obs_server_side_encryption_customer_key' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key'] = local_var_params['x_obs_server_side_encryption_customer_key'] + if 'x_obs_server_side_encryption_customer_key_md5' in local_var_params: + header_params['x-obs-server-side-encryption-customer-key-MD5'] = local_var_params['x_obs_server_side_encryption_customer_key_md5'] + if 'success_action_redirect' in local_var_params: + header_params['success-action-redirect'] = local_var_params['success_action_redirect'] + if 'x_obs_expires' in local_var_params: + header_params['x-obs-expires'] = local_var_params['x_obs_expires'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = ["x-obs-id-2", "x-obs-request-id", "ETag", "x-obs-server-side-encryption", "x-obs-server-side-encryption-customer-algorithm", "x-obs-storage-class", "Connection", "x-obs-server-side-encryption-customer-key-MD5", "x-obs-server-side-encryption-kms-key-id", "Content-Length", "Date", "x-obs-version-id", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/octet-stream']) + + 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_bucket_acl(self, request): + """设置桶ACL + + OBS支持对桶操作进行权限控制。默认情况下,只有桶的创建者才有该桶的读写权限。用户也可以设置其他的访问策略,比如对一个桶可以设置公共访问策略,允许所有人对其都有读权限。 + + OBS用户在创建桶时可以设置权限控制策略,也可以通过ACL操作API接口对已存在的桶更改或者获取ACL(access control list) 。一个桶的ACL最多支持100条Grant授权。PUT接口为幂等的覆盖写语意,新设置的桶ACL将覆盖原有的桶ACL,如果需要修改或者删除某条ACL重新PUT一个新的桶ACL即可。 + + 使用桶ACL进行权限控制请参考[《对象存储服务权限配置指南》的OBS权限控制概述章节](https://support.huaweicloud.com/perms-cfg-obs/obs_40_0001.html)。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetBucketAcl + :type request: :class:`huaweicloudsdkobs.v1.SetBucketAclRequest` + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketAclResponse` + """ + http_info = self._set_bucket_acl_http_info(request) + return self._call_api(**http_info) + + def set_bucket_acl_invoker(self, request): + http_info = self._set_bucket_acl_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_bucket_acl_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "SetBucketAclResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'acl' in local_var_params: + query_params.append(('acl', local_var_params['acl'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + if 'x_obs_acl' in local_var_params: + header_params['x-obs-acl'] = local_var_params['x_obs_acl'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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_bucket_customedomain(self, request): + """设置桶的自定义域名 + + OBS使用PUT操作为桶设置自定义域名,设置成功之后,用户访问桶的自定义域名就能访问到桶。 + + 必须保证此自定义域名通过DNS能够正确解析到OBS服务。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetBucketCustomedomain + :type request: :class:`huaweicloudsdkobs.v1.SetBucketCustomedomainRequest` + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketCustomedomainResponse` + """ + http_info = self._set_bucket_customedomain_http_info(request) + return self._call_api(**http_info) + + def set_bucket_customedomain_invoker(self, request): + http_info = self._set_bucket_customedomain_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_bucket_customedomain_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "SetBucketCustomedomainResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'customdomain' in local_var_params: + query_params.append(('customdomain', local_var_params['customdomain'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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_bucket_notification(self, request): + """设置桶的消息通知配置 + + OBS消息通知功能能够帮助您对桶的重要的操作及时通知到您,确保您安全、及时知道发生在桶上的关键事件。 + + 默认情况下,您的桶没有配置事件通知。这个时候桶的通知配置将是一个空NotificationConfiguration。对已配置有事件通知的桶,可以通过添加空NotificationConfiguration元素禁用消息通知功能。 + + <NotificationConfiguration> + </NotificationConfiguration> + + 目前对象存储服务(OBS)支持包括简单通知服务(SMN)、函数工作流服务(FunctionGraph)在内的两种桶通知服务配置。以SMN为例,当OBS接收到配置消息通知的请求后,会验证指定的消息通知服务(SMN)主题是否存在及主题策略是否授权给了对象存储服务,验证通过后会向该主题订阅者发送一个测试消息通知。 + + 为了能成功执行此配置操作,需要确保执行者拥有PutBucketNotification权限。默认情况下只有桶的所有者拥有该权限,但可以通过设置桶策略授权给其他用户。 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetBucketNotification + :type request: :class:`huaweicloudsdkobs.v1.SetBucketNotificationRequest` + :rtype: :class:`huaweicloudsdkobs.v1.SetBucketNotificationResponse` + """ + http_info = self._set_bucket_notification_http_info(request) + return self._call_api(**http_info) + + def set_bucket_notification_invoker(self, request): + http_info = self._set_bucket_notification_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_bucket_notification_http_info(cls, request): + http_info = { + "method": "PUT", + "resource_path": "/", + "request_type": request.__class__.__name__, + "response_type": "SetBucketNotificationResponse" + } + + 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 'bucket_name' in local_var_params: + cname = local_var_params['bucket_name'] + if 'notification' in local_var_params: + query_params.append(('notification', local_var_params['notification'])) + + header_params = {} + if 'date' in local_var_params: + header_params['Date'] = local_var_params['date'] + + 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-obs-id-2", "x-obs-request-id", "ETag", "Connection", "Content-Length", "Date", ] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/xml']) + + 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-obs/huaweicloudsdkobs/v1/obs_credentials.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_credentials.py new file mode 100644 index 000000000..f733df8cb --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_credentials.py @@ -0,0 +1,56 @@ +# coding: utf-8 +""" + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache LICENSE, Version 2.0 (the + "LICENSE"); you may not use this file except in compliance + with the LICENSE. You may obtain a copy of the LICENSE at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the LICENSE is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the LICENSE for the + specific language governing permissions and limitations + under the LICENSE. +""" + +from huaweicloudsdkobs.v1.obs_signer import OBSSigner +from huaweicloudsdkcore.auth.credentials import Credentials +import datetime + +_AUTHORIZATION_HEADER = 'Authorization' + + +class ObsCredentials(Credentials): + def __init__(self, ak, sk, securityToken=None): + self.ak = ak + self.sk = sk + self.security_token = securityToken + + def get_update_path_params(self): + return {} + + def process_auth_params(self, http_client, region_id): + return self + + def process_auth_request(self, request, http_client): + if request.host.split('.')[0] == 'obs': + bucketName = None + else: + bucketName = request.host.split('.')[0] + objectKey = request.resource_path.split('/')[1] + pathArgs = request.query_params + gmt_format = '%a %b %d %Y %H:%M:%S GMT' + request.header_params['Date'] = datetime.datetime.utcnow().strftime(gmt_format) + ret = OBSSigner.doAuth(self, request.method, bucketName, objectKey, pathArgs, request.header_params) + + request.header_params[_AUTHORIZATION_HEADER] = ret[_AUTHORIZATION_HEADER] + + OBSSigner.process_request_uri(request) + return http_client.executor.submit(lambda: request) + + diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_signer.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_signer.py new file mode 100644 index 000000000..7d7ca101a --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/obs_signer.py @@ -0,0 +1,296 @@ +# coding: utf-8 +""" + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache LICENSE, Version 2.0 (the + "LICENSE"); you may not use this file except in compliance + with the LICENSE. You may obtain a copy of the LICENSE at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the LICENSE is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the LICENSE for the + specific language governing permissions and limitations + under the LICENSE. +""" + +import hashlib +import hmac +import six +import binascii +from huaweicloudsdkcore.sdk_request import SdkRequest +if six.PY3: + from urllib.parse import quote +else: + from urllib import quote + +_OBS_HEADER_PREFIX = 'x-obs-' +_AUTHORIZATION_HEADER = 'Authorization' +_OBS_META_HEADER_PREFIX = 'x-obs-meta-' +_CANONICAL_STRING = 'CanonicalString' + +_CONTENT_TYPE_HEADER = 'Content-Type' +_CONTENT_MD5_HEADER = 'Content-MD5' +_X_OBS_SECURITY_TOKEN = "x-obs-security-token" +_DATE_HEADER = 'Date' + +_FILE = "file" + +_CONTENT_LIST = [_CONTENT_TYPE_HEADER.lower(), _CONTENT_MD5_HEADER.lower(), _DATE_HEADER.lower()] + +_ALLOWED_RESOURCE_PARAMTER_NAMES = ( + 'acl', + 'backtosource', + 'policy', + 'torrent', + 'logging', + 'location', + 'storageinfo', + 'quota', + 'storageclass', + 'storagepolicy', + 'requestpayment', + 'versions', + 'versioning', + 'versionid', + 'uploads', + 'uploadid', + 'partnumber', + 'website', + 'notification', + 'lifecycle', + 'deletebucket', + 'delete', + 'cors', + 'restore', + 'tagging', + 'replication', + 'metadata', + 'encryption', + + # File System API + 'append', + 'position', + 'truncate', + 'modify', + 'rename', + 'length', + 'name', + 'fileinterface', + + 'response-content-type', + 'response-content-language', + 'response-expires', + 'response-cache-control', + 'response-content-disposition', + 'response-content-encoding', + 'x-image-save-bucket', + 'x-image-save-object', + 'x-image-process', + 'x-oss-process', + + # workflow api + 'x-workflow-prefix', + 'x-workflow-start', + 'x-workflow-limit', + 'x-workflow-template-name', + 'x-workflow-graph-name', + 'x-workflow-execution-state', + 'x-workflow-execution-type', + 'x-workflow-next-marker', + 'obsworkflowtriggerpolicy', + + # virtual bucket api + 'obsbucketalias', + 'obsalias' +) +_IS_PYTHON2 = six.PY2 + + +class OBSSigner(object): + + def __init__(self, credentials): + self._ak = credentials.ak + self._sk = credentials.sk + + @classmethod + def auth_prefix(self): + return 'OBS' + + @classmethod + def _get_header_prefix(self): + return _OBS_HEADER_PREFIX + + @classmethod + def date_header(self): + return self._get_header_prefix() + 'date' + + @classmethod + def _get_meta_header_prefix(self): + return _OBS_META_HEADER_PREFIX + + @classmethod + def to_string(self, item): + try: + return str(item) if item is not None else '' + except Exception: + return '' + + @classmethod + def encode_object_key(self, key): + return self.encode_item(key, '/~') + + @classmethod + def encode_item(self, item, safe='/'): + return quote(self.to_string(item), safe) + + @classmethod + def doAuth(self, credentials, method, bucket, key, path_args, headers, expires=None): + if credentials.security_token is not None: + headers[_X_OBS_SECURITY_TOKEN] = credentials.security_token + ret = self.getSignature(credentials, method, bucket, key, path_args, headers, expires) + return { + _AUTHORIZATION_HEADER: '%s %s:%s' % (self.auth_prefix(), credentials.ak, ret['Signature']), + _CANONICAL_STRING: ret[_CANONICAL_STRING] + } + + @classmethod + def getSignature(self, credentials, method, bucket, key, path_args, headers, expires=None): + canonical_string = self.__make_canonical_string(method, bucket, key, path_args, headers, expires) + return { + 'Signature': self.hmacSha128(credentials, canonical_string), + _CANONICAL_STRING: canonical_string + } + + @classmethod + def hmacSha128(self, credentials, canonical_string): + if _IS_PYTHON2: + hashed = hmac.new(credentials.sk, canonical_string, hashlib.sha1) + encode_canonical = binascii.b2a_base64(hashed.digest())[:-1] + else: + hashed = hmac.new(credentials.sk.encode('UTF-8'), canonical_string.encode('UTF-8'), hashlib.sha1) + encode_canonical = binascii.b2a_base64(hashed.digest())[:-1].decode('UTF-8') + + return encode_canonical + + @classmethod + def __make_canonical_string(self, method, bucket_name, key, path_args, headers, expires=None): + interesting_headers = self.__make_canonicalstring_interesting_headers(headers, expires) + key_list = sorted(interesting_headers.keys()) + str_list = self.__make_canonicalstring_str_list(key_list, method, interesting_headers) + URI = '' + _bucket_name = bucket_name + if _bucket_name: + URI += '/' + URI += _bucket_name + URI += '/' + + if key: + if not URI.endswith('/'): + URI += '/' + URI += self.encode_object_key(key) + + if URI: + str_list.append(URI) + else: + str_list.append('/') + + if path_args: + e = '?' + cannoList = sorted(path_args, key=lambda d: d[0]) + for path_key, path_value in cannoList: + if path_key.lower() in _ALLOWED_RESOURCE_PARAMTER_NAMES or path_key.lower().startswith( + self._get_header_prefix()): + path_key = self.encode_item(path_key, '/') + if path_value == ' ' or not path_value: + e += path_key + '&' + continue + e += path_key + '=' + self.to_string(path_value) + '&' + + e = e[:-1] + str_list.append(e) + return ''.join(str_list) + + @classmethod + def __make_canonicalstring_interesting_headers(self, headers, expires): + interesting_headers = {} + if isinstance(headers, dict): + for hash_key in headers.keys(): + lk = hash_key.lower() + if lk in _CONTENT_LIST or lk.startswith(self._get_header_prefix()): + s = headers.get(hash_key) + interesting_headers[lk] = ''.join(s) + + key_list = interesting_headers.keys() + + if self.date_header() in key_list: + interesting_headers[_DATE_HEADER.lower()] = '' + + if expires: + interesting_headers[_DATE_HEADER.lower()] = expires + + if _CONTENT_TYPE_HEADER.lower() not in key_list: + interesting_headers[_CONTENT_TYPE_HEADER.lower()] = '' + + if _CONTENT_MD5_HEADER.lower() not in key_list: + interesting_headers[_CONTENT_MD5_HEADER.lower()] = '' + + return interesting_headers + + @classmethod + def __make_canonicalstring_str_list(self, keylist, method, interesting_headers): + str_list = [method + '\n'] + for k in keylist: + header_key = self.to_string(k) + val = '' if interesting_headers[header_key] is None else interesting_headers[header_key] + if header_key.startswith(self._get_meta_header_prefix()): + str_list.append(header_key + ':' + self.to_string(val).strip()) + elif header_key.startswith(self._get_header_prefix()): + str_list.append(header_key + ':' + val) + else: + str_list.append(val) + str_list.append('\n') + return str_list + + @classmethod + def process_request_uri(cls, request): + # type: (SdkRequest) -> None + canonical_query_string = cls._process_canonical_query_string(request) + request.uri = "%s?%s" % (request.resource_path, canonical_query_string) \ + if canonical_query_string != "" else request.resource_path + + @classmethod + def _url_encode(cls, s): + # type: (str) -> str + return quote(s, safe='~') + + @classmethod + def _process_canonical_query_string(cls, request): + # type: (SdkRequest) -> str + params = [] + for param in request.query_params: + params.append(param) + params.sort() + + canonical_query_param = [] + for (key, value) in params: + k = cls._url_encode(key) + if value == ' ' or not value: + canonical_query_param.append(k) + elif isinstance(value, list): + value.sort() + for v in value: + kv = "%s=%s" % (k, cls._url_encode(str(v))) + canonical_query_param.append(kv) + elif isinstance(value, bool): + kv = "%s=%s" % (k, cls._url_encode(str(value).lower())) + canonical_query_param.append(kv) + else: + kv = "%s=%s" % (k, cls._url_encode(str(value))) + canonical_query_param.append(kv) + + return '&'.join(canonical_query_param) diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/__init__.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/obs_region.py b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/obs_region.py new file mode 100644 index 000000000..64dab5603 --- /dev/null +++ b/huaweicloud-sdk-obs/huaweicloudsdkobs/v1/region/obs_region.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +import types +import six + +from huaweicloudsdkcore.region.region import Region +from huaweicloudsdkcore.region.provider import RegionProviderChain + +class ObsRegion: + _PROVIDER = RegionProviderChain.get_default_region_provider_chain("OBS") + + AF_SOUTH_1 = Region("af-south-1", + "https://obs.af-south-1.myhuaweicloud.com") + CN_NORTH_4 = Region("cn-north-4", + "https://obs.cn-north-4.myhuaweicloud.com") + CN_NORTH_1 = Region("cn-north-1", + "https://obs.cn-north-1.myhuaweicloud.com") + CN_NORTH_9 = Region("cn-north-9", + "https://obs.cn-north-9.myhuaweicloud.com") + CN_EAST_2 = Region("cn-east-2", + "https://obs.cn-east-2.myhuaweicloud.com") + CN_EAST_3 = Region("cn-east-3", + "https://obs.cn-east-3.myhuaweicloud.com") + CN_SOUTH_1 = Region("cn-south-1", + "https://obs.cn-south-1.myhuaweicloud.com") + CN_SOUTH_4 = Region("cn-south-4", + "https://obs.cn-south-4.myhuaweicloud.com") + CN_SOUTH_2 = Region("cn-south-2", + "https://obs.cn-south-2.myhuaweicloud.com") + LA_NORTH_2 = Region("la-north-2", + "https://obs.la-north-2.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://obs.na-mexico-1.myhuaweicloud.com") + SA_BRAZIL_1 = Region("sa-brazil-1", + "https://obs.sa-brazil-1.myhuaweicloud.com") + LA_SOUTH_2 = Region("la-south-2", + "https://obs.la-south-2.myhuaweicloud.com") + CN_SOUTHWEST_2 = Region("cn-southwest-2", + "https://obs.cn-southwest-2.myhuaweicloud.com") + AP_SOUTHEAST_2 = Region("ap-southeast-2", + "https://obs.ap-southeast-2.myhuaweicloud.com") + AP_SOUTHEAST_3 = Region("ap-southeast-3", + "https://obs.ap-southeast-3.myhuaweicloud.com") + AP_SOUTHEAST_4 = Region("ap-southeast-4", + "https://obs.ap-southeast-4.myhuaweicloud.com") + AP_SOUTHEAST_1 = Region("ap-southeast-1", + "https://obs.ap-southeast-1.myhuaweicloud.com") + TR_WEST_1 = Region("tr-west-1", + "https://obs.tr-west-1.myhuaweicloud.com") + EU_WEST_101 = Region("eu-west-101", + "https://obs.eu-west-101.myhuaweicloud.eu") + + static_fields = { + "af-south-1": AF_SOUTH_1, + "cn-north-4": CN_NORTH_4, + "cn-north-1": CN_NORTH_1, + "cn-north-9": CN_NORTH_9, + "cn-east-2": CN_EAST_2, + "cn-east-3": CN_EAST_3, + "cn-south-1": CN_SOUTH_1, + "cn-south-4": CN_SOUTH_4, + "cn-south-2": CN_SOUTH_2, + "la-north-2": LA_NORTH_2, + "na-mexico-1": NA_MEXICO_1, + "sa-brazil-1": SA_BRAZIL_1, + "la-south-2": LA_SOUTH_2, + "cn-southwest-2": CN_SOUTHWEST_2, + "ap-southeast-2": AP_SOUTHEAST_2, + "ap-southeast-3": AP_SOUTHEAST_3, + "ap-southeast-4": AP_SOUTHEAST_4, + "ap-southeast-1": AP_SOUTHEAST_1, + "tr-west-1": TR_WEST_1, + "eu-west-101": EU_WEST_101, + } + + @classmethod + def value_of(cls, region_id, static_fields=None): + if not region_id: + raise KeyError("Unexpected empty parameter: region_id.") + + fields = static_fields if static_fields else 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("Unexpected region_id: " + region_id) + + diff --git a/huaweicloud-sdk-obs/requirements.txt b/huaweicloud-sdk-obs/requirements.txt new file mode 100644 index 000000000..24c9612ba --- /dev/null +++ b/huaweicloud-sdk-obs/requirements.txt @@ -0,0 +1 @@ +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-obs/setup.py b/huaweicloud-sdk-obs/setup.py new file mode 100644 index 000000000..556475c06 --- /dev/null +++ b/huaweicloud-sdk-obs/setup.py @@ -0,0 +1,55 @@ +# coding: utf-8 +from os import path + +from setuptools import setup, find_packages + +NAME = "huaweicloudsdkobs" +VERSION = "3.1.75" +AUTHOR = "HuaweiCloud SDK" +AUTHOR_EMAIL = "hwcloudsdk@huawei.com" +URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" + +DESCRIPTION = "OBS" +this_directory = path.abspath(path.dirname(__file__)) +with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: + LONG_DESCRIPTION = f.read() + +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] + +OPTIONS = { + 'bdist_wheel': { + 'universal': True + } +} + +setup( + name=NAME, + version=VERSION, + options=OPTIONS, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + long_description_content_type='text/markdown', + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache LICENSE 2.0", + url=URL, + keywords=["huaweicloud", "sdk", "OBS"], + packages=find_packages(exclude=["tests*"]), + install_requires=REQUIRES, + python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", + include_package_data=True, + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Topic :: Software Development' + ] +) diff --git a/huaweicloud-sdk-ocr/requirements.txt b/huaweicloud-sdk-ocr/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ocr/requirements.txt +++ b/huaweicloud-sdk-ocr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ocr/setup.py b/huaweicloud-sdk-ocr/setup.py index b20fc68a4..e40a388ea 100644 --- a/huaweicloud-sdk-ocr/setup.py +++ b/huaweicloud-sdk-ocr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkocr" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-octopus/requirements.txt b/huaweicloud-sdk-octopus/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-octopus/requirements.txt +++ b/huaweicloud-sdk-octopus/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-octopus/setup.py b/huaweicloud-sdk-octopus/setup.py index b04ea71a5..4272b72a1 100644 --- a/huaweicloud-sdk-octopus/setup.py +++ b/huaweicloud-sdk-octopus/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoctopus" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oms/requirements.txt b/huaweicloud-sdk-oms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-oms/requirements.txt +++ b/huaweicloud-sdk-oms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-oms/setup.py b/huaweicloud-sdk-oms/setup.py index 390a51d8c..d8d88db2d 100644 --- a/huaweicloud-sdk-oms/setup.py +++ b/huaweicloud-sdk-oms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-optverse/requirements.txt b/huaweicloud-sdk-optverse/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-optverse/requirements.txt +++ b/huaweicloud-sdk-optverse/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-optverse/setup.py b/huaweicloud-sdk-optverse/setup.py index 3db506c30..5ce85f2d1 100644 --- a/huaweicloud-sdk-optverse/setup.py +++ b/huaweicloud-sdk-optverse/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoptverse" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-organizations/requirements.txt b/huaweicloud-sdk-organizations/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-organizations/requirements.txt +++ b/huaweicloud-sdk-organizations/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-organizations/setup.py b/huaweicloud-sdk-organizations/setup.py index 6a5084381..10baa6235 100644 --- a/huaweicloud-sdk-organizations/setup.py +++ b/huaweicloud-sdk-organizations/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkorganizations" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-oroas/requirements.txt b/huaweicloud-sdk-oroas/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-oroas/requirements.txt +++ b/huaweicloud-sdk-oroas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-oroas/setup.py b/huaweicloud-sdk-oroas/setup.py index b436879d5..460dcae01 100644 --- a/huaweicloud-sdk-oroas/setup.py +++ b/huaweicloud-sdk-oroas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoroas" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-osm/requirements.txt b/huaweicloud-sdk-osm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-osm/requirements.txt +++ b/huaweicloud-sdk-osm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-osm/setup.py b/huaweicloud-sdk-osm/setup.py index 771777c5b..a3bf52895 100644 --- a/huaweicloud-sdk-osm/setup.py +++ b/huaweicloud-sdk-osm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkosm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-pangulargemodels/requirements.txt b/huaweicloud-sdk-pangulargemodels/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-pangulargemodels/requirements.txt +++ b/huaweicloud-sdk-pangulargemodels/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-pangulargemodels/setup.py b/huaweicloud-sdk-pangulargemodels/setup.py index b77186145..01a77e44f 100644 --- a/huaweicloud-sdk-pangulargemodels/setup.py +++ b/huaweicloud-sdk-pangulargemodels/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkpangulargemodels" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-projectman/requirements.txt b/huaweicloud-sdk-projectman/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-projectman/requirements.txt +++ b/huaweicloud-sdk-projectman/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-projectman/setup.py b/huaweicloud-sdk-projectman/setup.py index a8ddf4018..610511e57 100644 --- a/huaweicloud-sdk-projectman/setup.py +++ b/huaweicloud-sdk-projectman/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkprojectman" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py b/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py index 8e8a6cbc7..82bf68094 100644 --- a/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py +++ b/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/region/rabbitmq_region.py @@ -55,6 +55,8 @@ class RabbitMQRegion: "https://dms.ae-ad-1.myhuaweicloud.com") EU_WEST_0 = Region("eu-west-0", "https://dms.eu-west-0.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://dms.me-east-1.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -80,6 +82,7 @@ class RabbitMQRegion: "tr-west-1": TR_WEST_1, "ae-ad-1": AE_AD_1, "eu-west-0": EU_WEST_0, + "me-east-1": ME_EAST_1, } @classmethod diff --git a/huaweicloud-sdk-rabbitmq/requirements.txt b/huaweicloud-sdk-rabbitmq/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-rabbitmq/requirements.txt +++ b/huaweicloud-sdk-rabbitmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-rabbitmq/setup.py b/huaweicloud-sdk-rabbitmq/setup.py index 514ba772d..b1a360c03 100644 --- a/huaweicloud-sdk-rabbitmq/setup.py +++ b/huaweicloud-sdk-rabbitmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrabbitmq" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ram/requirements.txt b/huaweicloud-sdk-ram/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ram/requirements.txt +++ b/huaweicloud-sdk-ram/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ram/setup.py b/huaweicloud-sdk-ram/setup.py index deee5316f..8d77fa429 100644 --- a/huaweicloud-sdk-ram/setup.py +++ b/huaweicloud-sdk-ram/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkram" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py index d0b85960a..0419c347f 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/__init__.py @@ -429,6 +429,8 @@ from huaweicloudsdkrds.v3.model.set_db_user_pwd_request import SetDbUserPwdReque from huaweicloudsdkrds.v3.model.set_db_user_pwd_response import SetDbUserPwdResponse from huaweicloudsdkrds.v3.model.set_instances_db_shrink_request import SetInstancesDbShrinkRequest from huaweicloudsdkrds.v3.model.set_instances_db_shrink_response import SetInstancesDbShrinkResponse +from huaweicloudsdkrds.v3.model.set_instances_new_db_shrink_request import SetInstancesNewDbShrinkRequest +from huaweicloudsdkrds.v3.model.set_instances_new_db_shrink_response import SetInstancesNewDbShrinkResponse from huaweicloudsdkrds.v3.model.set_log_lts_configs_request import SetLogLtsConfigsRequest from huaweicloudsdkrds.v3.model.set_log_lts_configs_response import SetLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_request import SetOffSiteBackupPolicyRequest @@ -523,6 +525,8 @@ from huaweicloudsdkrds.v3.model.start_resize_flavor_action_request import StartR from huaweicloudsdkrds.v3.model.start_resize_flavor_action_response import StartResizeFlavorActionResponse from huaweicloudsdkrds.v3.model.startup_instance_request import StartupInstanceRequest from huaweicloudsdkrds.v3.model.startup_instance_response import StartupInstanceResponse +from huaweicloudsdkrds.v3.model.stop_backup_request import StopBackupRequest +from huaweicloudsdkrds.v3.model.stop_backup_response import StopBackupResponse from huaweicloudsdkrds.v3.model.stop_database_proxy_request import StopDatabaseProxyRequest from huaweicloudsdkrds.v3.model.stop_database_proxy_response import StopDatabaseProxyResponse from huaweicloudsdkrds.v3.model.stop_instance_request import StopInstanceRequest diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py index 7fd5c7108..7981b4f4a 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/__init__.py @@ -427,6 +427,8 @@ from huaweicloudsdkrds.v3.model.set_db_user_pwd_request import SetDbUserPwdReque from huaweicloudsdkrds.v3.model.set_db_user_pwd_response import SetDbUserPwdResponse from huaweicloudsdkrds.v3.model.set_instances_db_shrink_request import SetInstancesDbShrinkRequest from huaweicloudsdkrds.v3.model.set_instances_db_shrink_response import SetInstancesDbShrinkResponse +from huaweicloudsdkrds.v3.model.set_instances_new_db_shrink_request import SetInstancesNewDbShrinkRequest +from huaweicloudsdkrds.v3.model.set_instances_new_db_shrink_response import SetInstancesNewDbShrinkResponse from huaweicloudsdkrds.v3.model.set_log_lts_configs_request import SetLogLtsConfigsRequest from huaweicloudsdkrds.v3.model.set_log_lts_configs_response import SetLogLtsConfigsResponse from huaweicloudsdkrds.v3.model.set_off_site_backup_policy_request import SetOffSiteBackupPolicyRequest @@ -521,6 +523,8 @@ from huaweicloudsdkrds.v3.model.start_resize_flavor_action_request import StartR from huaweicloudsdkrds.v3.model.start_resize_flavor_action_response import StartResizeFlavorActionResponse from huaweicloudsdkrds.v3.model.startup_instance_request import StartupInstanceRequest from huaweicloudsdkrds.v3.model.startup_instance_response import StartupInstanceResponse +from huaweicloudsdkrds.v3.model.stop_backup_request import StopBackupRequest +from huaweicloudsdkrds.v3.model.stop_backup_response import StopBackupResponse from huaweicloudsdkrds.v3.model.stop_database_proxy_request import StopDatabaseProxyRequest from huaweicloudsdkrds.v3.model.stop_database_proxy_response import StopDatabaseProxyResponse from huaweicloudsdkrds.v3.model.stop_instance_request import StopInstanceRequest diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_instances_new_db_shrink_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_instances_new_db_shrink_request.py new file mode 100644 index 000000000..f16b023b2 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_instances_new_db_shrink_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class SetInstancesNewDbShrinkRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the 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': 'UpdateDBShrinkRequestBody' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'body': 'body' + } + + def __init__(self, instance_id=None, body=None): + """SetInstancesNewDbShrinkRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例ID + :type instance_id: str + :param body: Body of the SetInstancesNewDbShrinkRequest + :type body: :class:`huaweicloudsdkrds.v3.UpdateDBShrinkRequestBody` + """ + + + + 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 SetInstancesNewDbShrinkRequest. + + 实例ID + + :return: The instance_id of this SetInstancesNewDbShrinkRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this SetInstancesNewDbShrinkRequest. + + 实例ID + + :param instance_id: The instance_id of this SetInstancesNewDbShrinkRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def body(self): + """Gets the body of this SetInstancesNewDbShrinkRequest. + + :return: The body of this SetInstancesNewDbShrinkRequest. + :rtype: :class:`huaweicloudsdkrds.v3.UpdateDBShrinkRequestBody` + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this SetInstancesNewDbShrinkRequest. + + :param body: The body of this SetInstancesNewDbShrinkRequest. + :type body: :class:`huaweicloudsdkrds.v3.UpdateDBShrinkRequestBody` + """ + 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, SetInstancesNewDbShrinkRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_instances_new_db_shrink_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_instances_new_db_shrink_response.py new file mode 100644 index 000000000..bfe9e7eed --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_instances_new_db_shrink_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 SetInstancesNewDbShrinkResponse(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 = { + 'resp': 'str' + } + + attribute_map = { + 'resp': 'resp' + } + + def __init__(self, resp=None): + """SetInstancesNewDbShrinkResponse + + The model defined in huaweicloud sdk + + :param resp: 收缩结果。successful:成功 failed:失败 + :type resp: str + """ + + super(SetInstancesNewDbShrinkResponse, self).__init__() + + self._resp = None + self.discriminator = None + + if resp is not None: + self.resp = resp + + @property + def resp(self): + """Gets the resp of this SetInstancesNewDbShrinkResponse. + + 收缩结果。successful:成功 failed:失败 + + :return: The resp of this SetInstancesNewDbShrinkResponse. + :rtype: str + """ + return self._resp + + @resp.setter + def resp(self, resp): + """Sets the resp of this SetInstancesNewDbShrinkResponse. + + 收缩结果。successful:成功 failed:失败 + + :param resp: The resp of this SetInstancesNewDbShrinkResponse. + :type resp: str + """ + self._resp = resp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SetInstancesNewDbShrinkResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/stop_backup_request.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/stop_backup_request.py new file mode 100644 index 000000000..9a2b438ab --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/stop_backup_request.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +import six + +from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization + + +class StopBackupRequest: + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + sensitive_list = [] + + openapi_types = { + 'instance_id': 'str', + 'x_language': 'str' + } + + attribute_map = { + 'instance_id': 'instance_id', + 'x_language': 'X-Language' + } + + def __init__(self, instance_id=None, x_language=None): + """StopBackupRequest + + The model defined in huaweicloud sdk + + :param instance_id: 实例id + :type instance_id: str + :param x_language: 语言 + :type x_language: str + """ + + + + self._instance_id = None + self._x_language = None + self.discriminator = None + + self.instance_id = instance_id + if x_language is not None: + self.x_language = x_language + + @property + def instance_id(self): + """Gets the instance_id of this StopBackupRequest. + + 实例id + + :return: The instance_id of this StopBackupRequest. + :rtype: str + """ + return self._instance_id + + @instance_id.setter + def instance_id(self, instance_id): + """Sets the instance_id of this StopBackupRequest. + + 实例id + + :param instance_id: The instance_id of this StopBackupRequest. + :type instance_id: str + """ + self._instance_id = instance_id + + @property + def x_language(self): + """Gets the x_language of this StopBackupRequest. + + 语言 + + :return: The x_language of this StopBackupRequest. + :rtype: str + """ + return self._x_language + + @x_language.setter + def x_language(self, x_language): + """Sets the x_language of this StopBackupRequest. + + 语言 + + :param x_language: The x_language of this StopBackupRequest. + :type x_language: str + """ + self._x_language = x_language + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + if attr in self.sensitive_list: + result[attr] = "****" + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + import simplejson as json + if six.PY2: + import sys + reload(sys) + sys.setdefaultencoding("utf-8") + return json.dumps(sanitize_for_serialization(self), ensure_ascii=False) + + def __repr__(self): + """For `print`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StopBackupRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/stop_backup_response.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/stop_backup_response.py new file mode 100644 index 000000000..69058ac76 --- /dev/null +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/stop_backup_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 StopBackupResponse(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): + """StopBackupResponse + + The model defined in huaweicloud sdk + + :param job_id: 任务id + :type job_id: str + """ + + super(StopBackupResponse, 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 StopBackupResponse. + + 任务id + + :return: The job_id of this StopBackupResponse. + :rtype: str + """ + return self._job_id + + @job_id.setter + def job_id(self, job_id): + """Sets the job_id of this StopBackupResponse. + + 任务id + + :param job_id: The job_id of this StopBackupResponse. + :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, StopBackupResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py index 13b4a7c36..3f50f33ee 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_async_client.py @@ -7651,6 +7651,73 @@ class RdsAsyncClient(Client): return http_info + def stop_backup_async(self, request): + """停止备份 + + 停止创建备份 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for StopBackup + :type request: :class:`huaweicloudsdkrds.v3.StopBackupRequest` + :rtype: :class:`huaweicloudsdkrds.v3.StopBackupResponse` + """ + http_info = self._stop_backup_http_info(request) + return self._call_api(**http_info) + + def stop_backup_async_invoker(self, request): + http_info = self._stop_backup_http_info(request) + return AsyncInvoker(self, http_info) + + def _stop_backup_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/stop", + "request_type": request.__class__.__name__, + "response_type": "StopBackupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def stop_instance_async(self, request): """停止实例 @@ -12840,6 +12907,73 @@ class RdsAsyncClient(Client): return http_info + def set_instances_new_db_shrink_async(self, request): + """收缩数据库日志 + + 收缩数据库日志 + + Please refer to HUAWEI cloud API Explorer for details. + + + :param request: Request instance for SetInstancesNewDbShrink + :type request: :class:`huaweicloudsdkrds.v3.SetInstancesNewDbShrinkRequest` + :rtype: :class:`huaweicloudsdkrds.v3.SetInstancesNewDbShrinkResponse` + """ + http_info = self._set_instances_new_db_shrink_http_info(request) + return self._call_api(**http_info) + + def set_instances_new_db_shrink_async_invoker(self, request): + http_info = self._set_instances_new_db_shrink_http_info(request) + return AsyncInvoker(self, http_info) + + def _set_instances_new_db_shrink_http_info(self, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-shrink", + "request_type": request.__class__.__name__, + "response_type": "SetInstancesNewDbShrinkResponse" + } + + 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 _call_api(self, **kwargs): try: kwargs["async_request"] = True diff --git a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py index 89a85fb2f..e87f1b265 100644 --- a/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py +++ b/huaweicloud-sdk-rds/huaweicloudsdkrds/v3/rds_client.py @@ -7651,6 +7651,73 @@ class RdsClient(Client): return http_info + def stop_backup(self, request): + """停止备份 + + 停止创建备份 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for StopBackup + :type request: :class:`huaweicloudsdkrds.v3.StopBackupRequest` + :rtype: :class:`huaweicloudsdkrds.v3.StopBackupResponse` + """ + http_info = self._stop_backup_http_info(request) + return self._call_api(**http_info) + + def stop_backup_invoker(self, request): + http_info = self._stop_backup_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _stop_backup_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3/{project_id}/instances/{instance_id}/backups/stop", + "request_type": request.__class__.__name__, + "response_type": "StopBackupResponse" + } + + local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)} + + cname = None + + collection_formats = {} + + path_params = {} + if 'instance_id' in local_var_params: + path_params['instance_id'] = local_var_params['instance_id'] + + query_params = [] + + header_params = {} + if 'x_language' in local_var_params: + header_params['X-Language'] = local_var_params['x_language'] + + form_params = {} + + body = None + if isinstance(request, SdkStreamRequest): + body = request.get_file_stream() + + response_headers = [] + + header_params['Content-Type'] = http_utils.select_header_content_type( + ['application/json']) + + auth_settings = [] + + http_info["cname"] = cname + http_info["collection_formats"] = collection_formats + http_info["path_params"] = path_params + http_info["query_params"] = query_params + http_info["header_params"] = header_params + http_info["post_params"] = form_params + http_info["body"] = body + http_info["response_headers"] = response_headers + + return http_info + def stop_instance(self, request): """停止实例 @@ -12840,6 +12907,73 @@ class RdsClient(Client): return http_info + def set_instances_new_db_shrink(self, request): + """收缩数据库日志 + + 收缩数据库日志 + + Please refer to HUAWEI cloud API Explorer for details. + + :param request: Request instance for SetInstancesNewDbShrink + :type request: :class:`huaweicloudsdkrds.v3.SetInstancesNewDbShrinkRequest` + :rtype: :class:`huaweicloudsdkrds.v3.SetInstancesNewDbShrinkResponse` + """ + http_info = self._set_instances_new_db_shrink_http_info(request) + return self._call_api(**http_info) + + def set_instances_new_db_shrink_invoker(self, request): + http_info = self._set_instances_new_db_shrink_http_info(request) + return SyncInvoker(self, http_info) + + @classmethod + def _set_instances_new_db_shrink_http_info(cls, request): + http_info = { + "method": "POST", + "resource_path": "/v3.1/{project_id}/instances/{instance_id}/db-shrink", + "request_type": request.__class__.__name__, + "response_type": "SetInstancesNewDbShrinkResponse" + } + + 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 _call_api(self, **kwargs): try: return self.do_http_request(**kwargs) diff --git a/huaweicloud-sdk-rds/requirements.txt b/huaweicloud-sdk-rds/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-rds/requirements.txt +++ b/huaweicloud-sdk-rds/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-rds/setup.py b/huaweicloud-sdk-rds/setup.py index b6ab9b247..41157b862 100644 --- a/huaweicloud-sdk-rds/setup.py +++ b/huaweicloud-sdk-rds/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrds" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-res/requirements.txt b/huaweicloud-sdk-res/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-res/requirements.txt +++ b/huaweicloud-sdk-res/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-res/setup.py b/huaweicloud-sdk-res/setup.py index 64c1fa0d8..24d76175a 100644 --- a/huaweicloud-sdk-res/setup.py +++ b/huaweicloud-sdk-res/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkres" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rgc/requirements.txt b/huaweicloud-sdk-rgc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-rgc/requirements.txt +++ b/huaweicloud-sdk-rgc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-rgc/setup.py b/huaweicloud-sdk-rgc/setup.py index 12c166653..436e79bbe 100644 --- a/huaweicloud-sdk-rgc/setup.py +++ b/huaweicloud-sdk-rgc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrgc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rms/requirements.txt b/huaweicloud-sdk-rms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-rms/requirements.txt +++ b/huaweicloud-sdk-rms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-rms/setup.py b/huaweicloud-sdk-rms/setup.py index 335c113be..c51545767 100644 --- a/huaweicloud-sdk-rms/setup.py +++ b/huaweicloud-sdk-rms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/reset_consume_offset_req.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/reset_consume_offset_req.py index 119db4868..a5812e375 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/reset_consume_offset_req.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/model/reset_consume_offset_req.py @@ -43,10 +43,8 @@ class ResetConsumeOffsetReq: self._timestamp = None self.discriminator = None - if topic is not None: - self.topic = topic - if timestamp is not None: - self.timestamp = timestamp + self.topic = topic + self.timestamp = timestamp @property def topic(self): diff --git a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py index bf21f7ad2..937233f35 100644 --- a/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +++ b/huaweicloud-sdk-rocketmq/huaweicloudsdkrocketmq/v2/region/rocketmq_region.py @@ -51,6 +51,10 @@ class RocketMQRegion: "https://dms.ae-ad-1.myhuaweicloud.com") EU_WEST_0 = Region("eu-west-0", "https://dms.eu-west-0.myhuaweicloud.com") + ME_EAST_1 = Region("me-east-1", + "https://dms.me-east-1.myhuaweicloud.com") + NA_MEXICO_1 = Region("na-mexico-1", + "https://dms.na-mexico-1.myhuaweicloud.com") static_fields = { "eu-west-101": EU_WEST_101, @@ -74,6 +78,8 @@ class RocketMQRegion: "tr-west-1": TR_WEST_1, "ae-ad-1": AE_AD_1, "eu-west-0": EU_WEST_0, + "me-east-1": ME_EAST_1, + "na-mexico-1": NA_MEXICO_1, } @classmethod diff --git a/huaweicloud-sdk-rocketmq/requirements.txt b/huaweicloud-sdk-rocketmq/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-rocketmq/requirements.txt +++ b/huaweicloud-sdk-rocketmq/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-rocketmq/setup.py b/huaweicloud-sdk-rocketmq/setup.py index 81613bc51..62625adb4 100644 --- a/huaweicloud-sdk-rocketmq/setup.py +++ b/huaweicloud-sdk-rocketmq/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkrocketmq" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-roma/requirements.txt b/huaweicloud-sdk-roma/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-roma/requirements.txt +++ b/huaweicloud-sdk-roma/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-roma/setup.py b/huaweicloud-sdk-roma/setup.py index 06ca9a9c1..3866d7891 100644 --- a/huaweicloud-sdk-roma/setup.py +++ b/huaweicloud-sdk-roma/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkroma" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sa/requirements.txt b/huaweicloud-sdk-sa/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-sa/requirements.txt +++ b/huaweicloud-sdk-sa/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-sa/setup.py b/huaweicloud-sdk-sa/setup.py index d7df98dcd..97cc6af57 100644 --- a/huaweicloud-sdk-sa/setup.py +++ b/huaweicloud-sdk-sa/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksa" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-scm/requirements.txt b/huaweicloud-sdk-scm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-scm/requirements.txt +++ b/huaweicloud-sdk-scm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-scm/setup.py b/huaweicloud-sdk-scm/setup.py index a8571b20c..708c90761 100644 --- a/huaweicloud-sdk-scm/setup.py +++ b/huaweicloud-sdk-scm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkscm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sdrs/requirements.txt b/huaweicloud-sdk-sdrs/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-sdrs/requirements.txt +++ b/huaweicloud-sdk-sdrs/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-sdrs/setup.py b/huaweicloud-sdk-sdrs/setup.py index dc2370b3a..d1f0182d3 100644 --- a/huaweicloud-sdk-sdrs/setup.py +++ b/huaweicloud-sdk-sdrs/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksdrs" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-secmaster/requirements.txt b/huaweicloud-sdk-secmaster/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-secmaster/requirements.txt +++ b/huaweicloud-sdk-secmaster/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-secmaster/setup.py b/huaweicloud-sdk-secmaster/setup.py index 4a14a07d8..cf4c56a63 100644 --- a/huaweicloud-sdk-secmaster/setup.py +++ b/huaweicloud-sdk-secmaster/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksecmaster" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-servicestage/requirements.txt b/huaweicloud-sdk-servicestage/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-servicestage/requirements.txt +++ b/huaweicloud-sdk-servicestage/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-servicestage/setup.py b/huaweicloud-sdk-servicestage/setup.py index cb4e405ca..8d1e630d3 100644 --- a/huaweicloud-sdk-servicestage/setup.py +++ b/huaweicloud-sdk-servicestage/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkservicestage" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sfsturbo/requirements.txt b/huaweicloud-sdk-sfsturbo/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-sfsturbo/requirements.txt +++ b/huaweicloud-sdk-sfsturbo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-sfsturbo/setup.py b/huaweicloud-sdk-sfsturbo/setup.py index d68a2f42e..4758f4ce5 100644 --- a/huaweicloud-sdk-sfsturbo/setup.py +++ b/huaweicloud-sdk-sfsturbo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksfsturbo" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sis/requirements.txt b/huaweicloud-sdk-sis/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-sis/requirements.txt +++ b/huaweicloud-sdk-sis/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-sis/setup.py b/huaweicloud-sdk-sis/setup.py index 9bdf50ec3..e4c24580f 100644 --- a/huaweicloud-sdk-sis/setup.py +++ b/huaweicloud-sdk-sis/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksis" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-smn/requirements.txt b/huaweicloud-sdk-smn/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-smn/requirements.txt +++ b/huaweicloud-sdk-smn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-smn/setup.py b/huaweicloud-sdk-smn/setup.py index b86801f99..a20fbf42a 100644 --- a/huaweicloud-sdk-smn/setup.py +++ b/huaweicloud-sdk-smn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksmn" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-sms/requirements.txt b/huaweicloud-sdk-sms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-sms/requirements.txt +++ b/huaweicloud-sdk-sms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-sms/setup.py b/huaweicloud-sdk-sms/setup.py index 8d03756fb..cafc0c927 100644 --- a/huaweicloud-sdk-sms/setup.py +++ b/huaweicloud-sdk-sms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdksms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-swr/requirements.txt b/huaweicloud-sdk-swr/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-swr/requirements.txt +++ b/huaweicloud-sdk-swr/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-swr/setup.py b/huaweicloud-sdk-swr/setup.py index 721b63571..715bdb09e 100644 --- a/huaweicloud-sdk-swr/setup.py +++ b/huaweicloud-sdk-swr/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkswr" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tics/requirements.txt b/huaweicloud-sdk-tics/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-tics/requirements.txt +++ b/huaweicloud-sdk-tics/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-tics/setup.py b/huaweicloud-sdk-tics/setup.py index fe7775f49..86a68277c 100644 --- a/huaweicloud-sdk-tics/setup.py +++ b/huaweicloud-sdk-tics/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktics" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-tms/requirements.txt b/huaweicloud-sdk-tms/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-tms/requirements.txt +++ b/huaweicloud-sdk-tms/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-tms/setup.py b/huaweicloud-sdk-tms/setup.py index f57708a0a..9a9991bca 100644 --- a/huaweicloud-sdk-tms/setup.py +++ b/huaweicloud-sdk-tms/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdktms" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-ugo/requirements.txt b/huaweicloud-sdk-ugo/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-ugo/requirements.txt +++ b/huaweicloud-sdk-ugo/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-ugo/setup.py b/huaweicloud-sdk-ugo/setup.py index af4c04c91..6c8f8a802 100644 --- a/huaweicloud-sdk-ugo/setup.py +++ b/huaweicloud-sdk-ugo/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkugo" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vas/requirements.txt b/huaweicloud-sdk-vas/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-vas/requirements.txt +++ b/huaweicloud-sdk-vas/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-vas/setup.py b/huaweicloud-sdk-vas/setup.py index 761e1375a..ae4588850 100644 --- a/huaweicloud-sdk-vas/setup.py +++ b/huaweicloud-sdk-vas/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvas" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vcm/requirements.txt b/huaweicloud-sdk-vcm/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-vcm/requirements.txt +++ b/huaweicloud-sdk-vcm/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-vcm/setup.py b/huaweicloud-sdk-vcm/setup.py index c387f02dc..0b88b49b9 100644 --- a/huaweicloud-sdk-vcm/setup.py +++ b/huaweicloud-sdk-vcm/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvcm" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vod/requirements.txt b/huaweicloud-sdk-vod/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-vod/requirements.txt +++ b/huaweicloud-sdk-vod/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-vod/setup.py b/huaweicloud-sdk-vod/setup.py index f3c08f901..61b55119f 100644 --- a/huaweicloud-sdk-vod/setup.py +++ b/huaweicloud-sdk-vod/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvod" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpc/requirements.txt b/huaweicloud-sdk-vpc/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-vpc/requirements.txt +++ b/huaweicloud-sdk-vpc/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-vpc/setup.py b/huaweicloud-sdk-vpc/setup.py index 585ee1861..261a818d4 100644 --- a/huaweicloud-sdk-vpc/setup.py +++ b/huaweicloud-sdk-vpc/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpc" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpcep/requirements.txt b/huaweicloud-sdk-vpcep/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-vpcep/requirements.txt +++ b/huaweicloud-sdk-vpcep/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-vpcep/setup.py b/huaweicloud-sdk-vpcep/setup.py index 3925e6d09..fdadfc3ca 100644 --- a/huaweicloud-sdk-vpcep/setup.py +++ b/huaweicloud-sdk-vpcep/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpcep" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-vpn/requirements.txt b/huaweicloud-sdk-vpn/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-vpn/requirements.txt +++ b/huaweicloud-sdk-vpn/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-vpn/setup.py b/huaweicloud-sdk-vpn/setup.py index c95258210..dfb404d99 100644 --- a/huaweicloud-sdk-vpn/setup.py +++ b/huaweicloud-sdk-vpn/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkvpn" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-waf/requirements.txt b/huaweicloud-sdk-waf/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-waf/requirements.txt +++ b/huaweicloud-sdk-waf/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-waf/setup.py b/huaweicloud-sdk-waf/setup.py index 0183024ed..d371898de 100644 --- a/huaweicloud-sdk-waf/setup.py +++ b/huaweicloud-sdk-waf/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkwaf" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspace/requirements.txt b/huaweicloud-sdk-workspace/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-workspace/requirements.txt +++ b/huaweicloud-sdk-workspace/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-workspace/setup.py b/huaweicloud-sdk-workspace/setup.py index e8edf6853..095d74734 100644 --- a/huaweicloud-sdk-workspace/setup.py +++ b/huaweicloud-sdk-workspace/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspace" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': { diff --git a/huaweicloud-sdk-workspaceapp/requirements.txt b/huaweicloud-sdk-workspaceapp/requirements.txt index 9aec88cd8..24c9612ba 100644 --- a/huaweicloud-sdk-workspaceapp/requirements.txt +++ b/huaweicloud-sdk-workspaceapp/requirements.txt @@ -1 +1 @@ -huaweicloudsdkcore >= 3.1.74 \ No newline at end of file +huaweicloudsdkcore >= 3.1.75 \ No newline at end of file diff --git a/huaweicloud-sdk-workspaceapp/setup.py b/huaweicloud-sdk-workspaceapp/setup.py index 686fd57c3..639606951 100644 --- a/huaweicloud-sdk-workspaceapp/setup.py +++ b/huaweicloud-sdk-workspaceapp/setup.py @@ -4,7 +4,7 @@ from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkworkspaceapp" -VERSION = "3.1.74" +VERSION = "3.1.75" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" @@ -14,7 +14,7 @@ this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README_PYPI.md'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -REQUIRES = ["huaweicloudsdkcore>=3.1.74"] +REQUIRES = ["huaweicloudsdkcore>=3.1.75"] OPTIONS = { 'bdist_wheel': {