diff --git a/CHANGELOG.md b/CHANGELOG.md index 75f436656c..a2bfa7ad67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,401 @@ +# 3.1.109 2024-08-08 + +### HuaweiCloud SDK Config + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListRemediationExceptions** + - changes of request param + - `- resource_name` + +### HuaweiCloud SDK DGC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateJob** + - changes of request param + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **UpdateJob** + - changes of request param + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **CreateSupplementdata** + - changes of request param + - `+ dependJobs.cleanOverdueDays` + - `+ dependJobs.cleanWaitingJob` + - `+ dependJobs.emptyRunningJob` + +### HuaweiCloud SDK eiHealth + +- _Features_ + - Support the following APIs: + - `CreateCpiJob` + - `ShowCpiJob` + - `CreateTargetOptJob` + - `ShowTargetOptJob` + - `CreateGenJob` + - `ShowGenJob` + - `RunFastaPreprocess` + - `ListBaseModel` +- _Bug Fix_ + - None +- _Change_ + - **CreateAdmetJob** + - changes of request param + - `+ base_model_id` + - `+ save_fingerprint` + - **ShowAdmetJob** + - changes of response param + - `+ base_model` + - `+ save_fingerprint` + - **CreatePocketMolDesignJob** + - changes of request param + - `+ ligands.name` + - **ShowPocketMolDesignJob** + - changes of response param + - `+ ligands.name` + - **CreateDrugLigandInteraction2dSvg** + - changes of request param + - `+ name` + - **CreateDrugLigandPreviewTask** + - changes of request param + - `+ generate_3d` + - **CreateOptmJob** + - changes of request param + - `+ base_model_id` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **ShowOptmJob** + - changes of response param + - `+ base_model` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **CreateDockingJob** + - changes of request param + - `+ engine` + - **ShowDockingJob** + - changes of response param + - `+ engine` + - **CreateDrugModel** + - changes of request param + - `+ base_model_id` + - **ListDrugModel** + - changes of request param + - `+ base_model_list` + - changes of response param + - `+ models.base_model_id` + - `+ models.base_model_name` + +### HuaweiCloud SDK HSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListImageLocal** + - changes of response param + - `+ data_list.severity_level` + - `+ data_list.host_name` + - `+ data_list.host_id` + - `+ data_list.agent_id` + +### HuaweiCloud SDK KVS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **PutKv** + - changes of request param + - `+ condition_expression.multi_field_expression` + - `+ condition_expression.composed_expression` + - **UpdateKv** + - changes of request param + - `+ condition_expression.multi_field_expression` + - `+ condition_expression.composed_expression` + - **DeleteKv** + - changes of request param + - `+ condition_expression.multi_field_expression` + - `+ condition_expression.composed_expression` + - **ScanKv** + - changes of request param + - `+ filter_expression.multi_field_expression` + - `+ filter_expression.composed_expression` + - **ScanSkeyKv** + - changes of request param + - `+ filter_expression.multi_field_expression` + - `+ filter_expression.composed_expression` + +### HuaweiCloud SDK OCR + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **RecognizeSmartDocumentRecognizer** + - changes of request param + - `+ single_orientation_mode` + +### HuaweiCloud SDK VPC + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListSubNetworkInterfaces** + - changes of response param + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **CreateSubNetworkInterface** + - changes of request param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - changes of response param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **BatchCreateSubNetworkInterface** + - changes of request param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - changes of response param + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **ShowSubNetworkInterface** + - changes of response param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **UpdateSubNetworkInterface** + - changes of request param + - `+ sub_network_interface.allowed_address_pairs` + - changes of response param + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **MigrateSubNetworkInterface** + - changes of response param + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **UpdateTrafficMirrorSession** + - changes of request param + - `- traffic_mirror_session.type` + +### HuaweiCloud SDK WAF + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreatePremiumHost** + - changes of request param + - `+ mode` + - `+ loadbalancer_id` + - `+ listener_id` + - `+ protocol_port` + +### HuaweiCloud SDK WorkspaceApp + +- _Features_ + - Support the following APIs: + - `AuthorizeObs` + - `UploadWarehouseAppIcon` + - `ListWarehouseApps` + - `CreateWarehouseApp` + - `UpdateWarehouseApp` + - `BatchDeleteWarehouseApp` + - `ListSessions` + - `ShowServerVnc` + - `ListServerMetricData` + - `ShowImageJob` + - `ListImageServers` + - `CreateImageServer` + - `UpdateImageServer` + - `BatchDeleteImageServer` + - `AttachImageServerApp` + - `ListLatestAttachedServerApp` + - `RecreateServerImage` +- _Bug Fix_ + - None +- _Change_ + - **UpdateServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchStartServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchRejoinDomain** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchMigrateHostsServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchUpdateTsvi** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **UpdateAppGroup** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **UpdateApp** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchRebootServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **BatchStopServer** + - changes of request param + - `* X-Auth-Token: required -> optional` + - **UpdateServerGroup** + - changes of request param + - `* X-Auth-Token: required -> optional` + - `+ server_group_status` + - **ListProduct** + - changes of request param + - `+ flavor_id` + - changes of response param + - `+ products.series_type` + - **CreateAppServers** + - changes of request param + - `+ flavor_id` + - **CheckQuota** + - changes of request param + - `+ flavor_id` + - **ListServers** + - changes of response param + - `+ items.enterprise_project_id` + - `+ items.tags` + - `+ items.job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - `+ items.product_info.series_type` + - `+ items.vm_status: enum value [BUILD_SNAPSHOT,RESTORE_SNAPSHOT]` + - `+ items.task_status: enum value [build_snapshot,restore_snapshot]` + - **CreateServerGroup** + - changes of request param + - `+ flavor_id` + - `+ tags` + - `+ enterprise_project_id` + - `+ primary_server_group_id` + - `+ server_group_status` + - changes of response param + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ product_info.series_type` + - **ListServerGroups** + - changes of request param + - `+ tags` + - `+ enterprise_project_id` + - `+ is_secondary_server_group` + - changes of response param + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ items.enterprise_project_id` + - `+ items.primary_server_group_ids` + - `+ items.secondary_server_group_ids` + - `+ items.server_group_status` + - `+ items.site_type` + - `+ items.site_id` + - `+ items.tags` + - `+ items.product_info.series_type` + - **ShowJobDetail** + - changes of response param + - `+ job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - **ShowOriginalPolicyInfo** + - changes of response param + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyGroup** + - changes of response param + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyGroup** + - changes of request param + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyGroup** + - changes of request param + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyTemplate** + - changes of response param + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyTemplate** + - changes of request param + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyTemplate** + - changes of request param + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + # 3.1.108 2024-08-01 ### HuaweiCloud SDK BSSINTL diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index c45668426b..bc17e92fa4 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,401 @@ +# 3.1.109 2024-08-08 + +### HuaweiCloud SDK Config + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListRemediationExceptions** + - 请求参数变更 + - `- resource_name` + +### HuaweiCloud SDK DGC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateJob** + - 请求参数变更 + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **UpdateJob** + - 请求参数变更 + - `+ cleanOverdueDays` + - `+ cleanWaitingJob` + - `+ emptyRunningJob` + - **CreateSupplementdata** + - 请求参数变更 + - `+ dependJobs.cleanOverdueDays` + - `+ dependJobs.cleanWaitingJob` + - `+ dependJobs.emptyRunningJob` + +### HuaweiCloud SDK eiHealth + +- _新增特性_ + - 支持以下接口: + - `CreateCpiJob` + - `ShowCpiJob` + - `CreateTargetOptJob` + - `ShowTargetOptJob` + - `CreateGenJob` + - `ShowGenJob` + - `RunFastaPreprocess` + - `ListBaseModel` +- _解决问题_ + - 无 +- _特性变更_ + - **CreateAdmetJob** + - 请求参数变更 + - `+ base_model_id` + - `+ save_fingerprint` + - **ShowAdmetJob** + - 响应参数变更 + - `+ base_model` + - `+ save_fingerprint` + - **CreatePocketMolDesignJob** + - 请求参数变更 + - `+ ligands.name` + - **ShowPocketMolDesignJob** + - 响应参数变更 + - `+ ligands.name` + - **CreateDrugLigandInteraction2dSvg** + - 请求参数变更 + - `+ name` + - **CreateDrugLigandPreviewTask** + - 请求参数变更 + - `+ generate_3d` + - **CreateOptmJob** + - 请求参数变更 + - `+ base_model_id` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **ShowOptmJob** + - 响应参数变更 + - `+ base_model` + - `+ strong_constraints.interaction` + - `+ strong_constraints.type: enum value [interaction]` + - `+ weak_constraints.interaction` + - `+ weak_constraints.type: enum value [interaction]` + - **CreateDockingJob** + - 请求参数变更 + - `+ engine` + - **ShowDockingJob** + - 响应参数变更 + - `+ engine` + - **CreateDrugModel** + - 请求参数变更 + - `+ base_model_id` + - **ListDrugModel** + - 请求参数变更 + - `+ base_model_list` + - 响应参数变更 + - `+ models.base_model_id` + - `+ models.base_model_name` + +### HuaweiCloud SDK HSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListImageLocal** + - 响应参数变更 + - `+ data_list.severity_level` + - `+ data_list.host_name` + - `+ data_list.host_id` + - `+ data_list.agent_id` + +### HuaweiCloud SDK KVS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **PutKv** + - 请求参数变更 + - `+ condition_expression.multi_field_expression` + - `+ condition_expression.composed_expression` + - **UpdateKv** + - 请求参数变更 + - `+ condition_expression.multi_field_expression` + - `+ condition_expression.composed_expression` + - **DeleteKv** + - 请求参数变更 + - `+ condition_expression.multi_field_expression` + - `+ condition_expression.composed_expression` + - **ScanKv** + - 请求参数变更 + - `+ filter_expression.multi_field_expression` + - `+ filter_expression.composed_expression` + - **ScanSkeyKv** + - 请求参数变更 + - `+ filter_expression.multi_field_expression` + - `+ filter_expression.composed_expression` + +### HuaweiCloud SDK OCR + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **RecognizeSmartDocumentRecognizer** + - 请求参数变更 + - `+ single_orientation_mode` + +### HuaweiCloud SDK VPC + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListSubNetworkInterfaces** + - 响应参数变更 + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **CreateSubNetworkInterface** + - 请求参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - 响应参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **BatchCreateSubNetworkInterface** + - 请求参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.tags` + - 响应参数变更 + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **ShowSubNetworkInterface** + - 响应参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **UpdateSubNetworkInterface** + - 请求参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - 响应参数变更 + - `+ sub_network_interface.allowed_address_pairs` + - `+ sub_network_interface.state` + - `+ sub_network_interface.instance_id` + - `+ sub_network_interface.instance_type` + - `+ sub_network_interface.scope` + - `* sub_network_interface.tags: list -> list` + - **MigrateSubNetworkInterface** + - 响应参数变更 + - `+ sub_network_interfaces.allowed_address_pairs` + - `+ sub_network_interfaces.state` + - `+ sub_network_interfaces.instance_id` + - `+ sub_network_interfaces.instance_type` + - `+ sub_network_interfaces.scope` + - `* sub_network_interfaces.tags: list -> list` + - **UpdateTrafficMirrorSession** + - 请求参数变更 + - `- traffic_mirror_session.type` + +### HuaweiCloud SDK WAF + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreatePremiumHost** + - 请求参数变更 + - `+ mode` + - `+ loadbalancer_id` + - `+ listener_id` + - `+ protocol_port` + +### HuaweiCloud SDK WorkspaceApp + +- _新增特性_ + - 支持以下接口: + - `AuthorizeObs` + - `UploadWarehouseAppIcon` + - `ListWarehouseApps` + - `CreateWarehouseApp` + - `UpdateWarehouseApp` + - `BatchDeleteWarehouseApp` + - `ListSessions` + - `ShowServerVnc` + - `ListServerMetricData` + - `ShowImageJob` + - `ListImageServers` + - `CreateImageServer` + - `UpdateImageServer` + - `BatchDeleteImageServer` + - `AttachImageServerApp` + - `ListLatestAttachedServerApp` + - `RecreateServerImage` +- _解决问题_ + - 无 +- _特性变更_ + - **UpdateServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchStartServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchRejoinDomain** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchMigrateHostsServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchUpdateTsvi** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **UpdateAppGroup** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **UpdateApp** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchRebootServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **BatchStopServer** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - **UpdateServerGroup** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - `+ server_group_status` + - **ListProduct** + - 请求参数变更 + - `+ flavor_id` + - 响应参数变更 + - `+ products.series_type` + - **CreateAppServers** + - 请求参数变更 + - `+ flavor_id` + - **CheckQuota** + - 请求参数变更 + - `+ flavor_id` + - **ListServers** + - 响应参数变更 + - `+ items.enterprise_project_id` + - `+ items.tags` + - `+ items.job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - `+ items.product_info.series_type` + - `+ items.vm_status: enum value [BUILD_SNAPSHOT,RESTORE_SNAPSHOT]` + - `+ items.task_status: enum value [build_snapshot,restore_snapshot]` + - **CreateServerGroup** + - 请求参数变更 + - `+ flavor_id` + - `+ tags` + - `+ enterprise_project_id` + - `+ primary_server_group_id` + - `+ server_group_status` + - 响应参数变更 + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ product_info.series_type` + - **ListServerGroups** + - 请求参数变更 + - `+ tags` + - `+ enterprise_project_id` + - `+ is_secondary_server_group` + - 响应参数变更 + - `+ site_type` + - `+ secondary_server_group_ids` + - `+ primary_server_group_ids` + - `+ tags` + - `+ server_group_status` + - `+ enterprise_project_id` + - `+ site_id` + - `+ items.enterprise_project_id` + - `+ items.primary_server_group_ids` + - `+ items.secondary_server_group_ids` + - `+ items.server_group_status` + - `+ items.site_type` + - `+ items.site_id` + - `+ items.tags` + - `+ items.product_info.series_type` + - **ShowJobDetail** + - 响应参数变更 + - `+ job_type: enum value [CREATE_SERVER_SNAPSHOT,DELETE_SERVER_SNAPSHOT,RESTORE_SERVER_SNAPSHOT]` + - **ShowOriginalPolicyInfo** + - 响应参数变更 + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyGroup** + - 响应参数变更 + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyGroup** + - 请求参数变更 + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyGroup** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **ListPolicyTemplate** + - 响应参数变更 + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ items.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **CreatePolicyTemplate** + - 请求参数变更 + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + - **UpdatePolicyTemplate** + - 请求参数变更 + - `* X-Auth-Token: required -> optional` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_cts` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc_enable` + - `+ policy_group.policies.file_and_clipboard.clipboard_redirection_options.clipboard_length_limit_stc` + # 3.1.108 2024-08-01 ### HuaweiCloud SDK BSSINTL diff --git a/VERSION b/VERSION index d904254e61..8dd544f29c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.108 +3.1.109 diff --git a/all/pom.xml b/all/pom.xml index 3663948e52..326ec521b8 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -8,13 +8,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.108 + 3.1.109 Huawei Cloud SDK for Java Huawei Cloud SDK for Java provides all services https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -23,866 +23,871 @@ com.huaweicloud.sdk huaweicloud-sdk-mssi - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.108 + 3.1.109 + + + com.huaweicloud.sdk + huaweicloud-sdk-iotdm + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codeartsgovernance - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-vias - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.108 + 3.1.109 - ${project.artifactId}-3.1.108 + ${project.artifactId}-3.1.109 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index cefcdcd60b..c1047f38a7 100644 --- a/bundle/pom.xml +++ b/bundle/pom.xml @@ -8,13 +8,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.108 + 3.1.109 jar Huawei Cloud SDK for Java Bundle A single bundled dependency that includes all service and dependent JARs for Huawei Cloud Java SDK @@ -24,7 +24,7 @@ com.huaweicloud.sdk huaweicloud-sdk-all - 3.1.108 + 3.1.109 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index dad15db900..9e143ca067 100644 --- a/core-bson/pom.xml +++ b/core-bson/pom.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.108 + 3.1.109 Huawei Cloud SDK for Java Core Bson Core Bson library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -25,7 +25,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index 1f9caefc06..65a47e5d7a 100644 --- a/core-xml/pom.xml +++ b/core-xml/pom.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.108 + 3.1.109 Huawei Cloud SDK for Java Core XML Core XML library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -25,7 +25,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index fdffc7e010..5cf8afd148 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.108 + 3.1.109 Huawei Cloud SDK for Java Core Core library for Huawei Cloud Java SDK https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/pom.xml b/pom.xml index 0362784fd0..e376f6a344 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.108 + 3.1.109 Huawei Cloud SDK for Java Parent Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 diff --git a/services/aad/pom.xml b/services/aad/pom.xml index c3be74f6b8..053887bd60 100644 --- a/services/aad/pom.xml +++ b/services/aad/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.108 + 3.1.109 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index d595868ce1..89e1eadb0a 100644 --- a/services/antiddos/pom.xml +++ b/services/antiddos/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos - 3.1.108 + 3.1.109 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/aom/pom.xml b/services/aom/pom.xml index ff82a9a31a..3bfc5f3a24 100644 --- a/services/aom/pom.xml +++ b/services/aom/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.108 + 3.1.109 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/aos/pom.xml b/services/aos/pom.xml index d6dd11647d..d07208dc82 100644 --- a/services/aos/pom.xml +++ b/services/aos/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.108 + 3.1.109 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosAsyncClient.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosAsyncClient.java index b68b5eb517..f1a9e21599 100644 --- a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosAsyncClient.java +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosAsyncClient.java @@ -8,6 +8,10 @@ import com.huaweicloud.sdk.aos.v1.model.ContinueRollbackStackResponse; import com.huaweicloud.sdk.aos.v1.model.CreateExecutionPlanRequest; import com.huaweicloud.sdk.aos.v1.model.CreateExecutionPlanResponse; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookRequest; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookResponse; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookVersionRequest; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookVersionResponse; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderRequest; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderResponse; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderVersionRequest; @@ -20,6 +24,10 @@ import com.huaweicloud.sdk.aos.v1.model.CreateStackSetResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteExecutionPlanRequest; import com.huaweicloud.sdk.aos.v1.model.DeleteExecutionPlanResponse; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookRequest; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookResponse; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookVersionRequest; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookVersionResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteStackEnhancedRequest; import com.huaweicloud.sdk.aos.v1.model.DeleteStackEnhancedResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteStackInstanceDeprecatedRequest; @@ -70,6 +78,10 @@ import com.huaweicloud.sdk.aos.v1.model.ListTemplatesResponse; import com.huaweicloud.sdk.aos.v1.model.ParseTemplateVariablesRequest; import com.huaweicloud.sdk.aos.v1.model.ParseTemplateVariablesResponse; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookMetadataResponse; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookVersionMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookVersionMetadataResponse; import com.huaweicloud.sdk.aos.v1.model.ShowStackInstanceRequest; import com.huaweicloud.sdk.aos.v1.model.ShowStackInstanceResponse; import com.huaweicloud.sdk.aos.v1.model.ShowStackSetMetadataRequest; @@ -84,6 +96,8 @@ import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionContentResponse; import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionMetadataRequest; import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionMetadataResponse; +import com.huaweicloud.sdk.aos.v1.model.UpdatePrivateHookMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.UpdatePrivateHookMetadataResponse; import com.huaweicloud.sdk.aos.v1.model.UpdateStackInstancesRequest; import com.huaweicloud.sdk.aos.v1.model.UpdateStackInstancesResponse; import com.huaweicloud.sdk.aos.v1.model.UpdateStackRequest; @@ -778,6 +792,358 @@ public AsyncInvoker listE return new AsyncInvoker<>(request, AosMeta.listExecutionPlans, hcClient); } + /** + * 创建私有hook + * + * 创建私有hook(CreatePrivateHook) + * + * 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + * 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * * 支持hook策略模板检验的资源栈服务API: + * DeployStack + * DeleteStack + * * 创建私有hook时指定的版本为初始默认版本。 + * * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 + * * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 + * * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: + * ``` + * hook_result := { + * \"is_passed\": Bool, + * \"err_msg\": String, + * } + * ``` + * 其中is_passed必选,err_msg可选。RFS通过查询policy.hook_result[is_passed]判断是否通过策略校验。 + * * 如果policy.hook_result[is_passed]的结果是true,则表示通过策略校验,资源编排服务会继续部署资源。 + * * 如果policy.hook_result[is_passed]的结果是false,则表示没有通过策略校验,资源编排服务会停止部署资源。并记录资源栈事件信息,信息的内容为policy.hook_result[err_msg]。如果没有设置err_msg,则资源栈事件信息内容为默认错误信息(校验私有hook失败)。 + * * 如果没有使用policy.hook_result,则该策略不会生效,资源编排服务会继续部署资源。 + * * 策略模板中不支持调用其他服务API等方式获取数据、不支持任何形式的网络访问、不支持以任何形式的自定义函数或者方法等、不支持读取本地文件以及系统操作。 + * + * 私有hook的策略模板语法如下: + * ``` + * package policy + * + * import rego.v1 + * + * hook_result := { + * \"is_passed\": input.message == \"world\", + * \"err_msg\": \"The error msg when private hook is not passed the validation\", + * } + * ``` + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createPrivateHookAsync(CreatePrivateHookRequest request) { + return hcClient.asyncInvokeHttp(request, AosMeta.createPrivateHook); + } + + /** + * 创建私有hook + * + * 创建私有hook(CreatePrivateHook) + * + * 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + * 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * * 支持hook策略模板检验的资源栈服务API: + * DeployStack + * DeleteStack + * * 创建私有hook时指定的版本为初始默认版本。 + * * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 + * * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 + * * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: + * ``` + * hook_result := { + * \"is_passed\": Bool, + * \"err_msg\": String, + * } + * ``` + * 其中is_passed必选,err_msg可选。RFS通过查询policy.hook_result[is_passed]判断是否通过策略校验。 + * * 如果policy.hook_result[is_passed]的结果是true,则表示通过策略校验,资源编排服务会继续部署资源。 + * * 如果policy.hook_result[is_passed]的结果是false,则表示没有通过策略校验,资源编排服务会停止部署资源。并记录资源栈事件信息,信息的内容为policy.hook_result[err_msg]。如果没有设置err_msg,则资源栈事件信息内容为默认错误信息(校验私有hook失败)。 + * * 如果没有使用policy.hook_result,则该策略不会生效,资源编排服务会继续部署资源。 + * * 策略模板中不支持调用其他服务API等方式获取数据、不支持任何形式的网络访问、不支持以任何形式的自定义函数或者方法等、不支持读取本地文件以及系统操作。 + * + * 私有hook的策略模板语法如下: + * ``` + * package policy + * + * import rego.v1 + * + * hook_result := { + * \"is_passed\": input.message == \"world\", + * \"err_msg\": \"The error msg when private hook is not passed the validation\", + * } + * ``` + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createPrivateHookAsyncInvoker( + CreatePrivateHookRequest request) { + return new AsyncInvoker<>(request, AosMeta.createPrivateHook, hcClient); + } + + /** + * 创建私有hook版本 + * + * 创建私有hook版本(CreatePrivateHookVersion) + * + * 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookVersionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createPrivateHookVersionAsync( + CreatePrivateHookVersionRequest request) { + return hcClient.asyncInvokeHttp(request, AosMeta.createPrivateHookVersion); + } + + /** + * 创建私有hook版本 + * + * 创建私有hook版本(CreatePrivateHookVersion) + * + * 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookVersionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createPrivateHookVersionAsyncInvoker( + CreatePrivateHookVersionRequest request) { + return new AsyncInvoker<>(request, AosMeta.createPrivateHookVersion, hcClient); + } + + /** + * 删除私有hook + * + * 删除私有hook(DeletePrivateHook) + * + * 删除某个私有hook以及私有hook下的全部hook版本 + * * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作,删除私有hook将会删除该私有hook和该私有hook下的所有私有hook版本。** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deletePrivateHookAsync(DeletePrivateHookRequest request) { + return hcClient.asyncInvokeHttp(request, AosMeta.deletePrivateHook); + } + + /** + * 删除私有hook + * + * 删除私有hook(DeletePrivateHook) + * + * 删除某个私有hook以及私有hook下的全部hook版本 + * * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作,删除私有hook将会删除该私有hook和该私有hook下的所有私有hook版本。** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deletePrivateHookAsyncInvoker( + DeletePrivateHookRequest request) { + return new AsyncInvoker<>(request, AosMeta.deletePrivateHook, hcClient); + } + + /** + * 删除私有hook版本 + * + * 删除私有hook版本(DeletePrivateHookVersion) + * + * 删除某个私有hook版本 + * * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookVersionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deletePrivateHookVersionAsync( + DeletePrivateHookVersionRequest request) { + return hcClient.asyncInvokeHttp(request, AosMeta.deletePrivateHookVersion); + } + + /** + * 删除私有hook版本 + * + * 删除私有hook版本(DeletePrivateHookVersion) + * + * 删除某个私有hook版本 + * * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookVersionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deletePrivateHookVersionAsyncInvoker( + DeletePrivateHookVersionRequest request) { + return new AsyncInvoker<>(request, AosMeta.deletePrivateHookVersion, hcClient); + } + + /** + * 获取私有hook元数据 + * + * 获取私有hook元数据(ShowPrivateHookMetadata) + * + * 获取某个私有hook的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookMetadataResponseBody,若想查看私有hook下全部版本,请调用ListPrivateHookVersions。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查两个是否匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookMetadataRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showPrivateHookMetadataAsync( + ShowPrivateHookMetadataRequest request) { + return hcClient.asyncInvokeHttp(request, AosMeta.showPrivateHookMetadata); + } + + /** + * 获取私有hook元数据 + * + * 获取私有hook元数据(ShowPrivateHookMetadata) + * + * 获取某个私有hook的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookMetadataResponseBody,若想查看私有hook下全部版本,请调用ListPrivateHookVersions。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查两个是否匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookMetadataRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showPrivateHookMetadataAsyncInvoker( + ShowPrivateHookMetadataRequest request) { + return new AsyncInvoker<>(request, AosMeta.showPrivateHookMetadata, hcClient); + } + + /** + * 获取私有hook版本元数据 + * + * 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + * + * 获取当前私有hook对应的版本的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 + * * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookVersionMetadataRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showPrivateHookVersionMetadataAsync( + ShowPrivateHookVersionMetadataRequest request) { + return hcClient.asyncInvokeHttp(request, AosMeta.showPrivateHookVersionMetadata); + } + + /** + * 获取私有hook版本元数据 + * + * 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + * + * 获取当前私有hook对应的版本的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 + * * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookVersionMetadataRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showPrivateHookVersionMetadataAsyncInvoker( + ShowPrivateHookVersionMetadataRequest request) { + return new AsyncInvoker<>(request, AosMeta.showPrivateHookVersionMetadata, hcClient); + } + + /** + * 更新私有hook元数据 + * + * 更新私有hook元数据(UpdatePrivateHookMetadata) + * + * 更新当前私有hook的元数据信息 + * + * * 目前支持更新私有hook的描述、默认版本、配置。 + * * 如果需要创建新的版本,请调用CreatePrivateHookVersion。 + * * 更新为增量更新,即如果某个参数不提供,则保持原始值。 + * * 如果请求中没有需要被更新的参数(如请求中没有任何内容,或仅有hook_id),则返回400。注意:即使更新原始值和目标值一致也被认为是有效更新 + * * 更新后私有hook的更新时间(update_time)也会被更新 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePrivateHookMetadataRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updatePrivateHookMetadataAsync( + UpdatePrivateHookMetadataRequest request) { + return hcClient.asyncInvokeHttp(request, AosMeta.updatePrivateHookMetadata); + } + + /** + * 更新私有hook元数据 + * + * 更新私有hook元数据(UpdatePrivateHookMetadata) + * + * 更新当前私有hook的元数据信息 + * + * * 目前支持更新私有hook的描述、默认版本、配置。 + * * 如果需要创建新的版本,请调用CreatePrivateHookVersion。 + * * 更新为增量更新,即如果某个参数不提供,则保持原始值。 + * * 如果请求中没有需要被更新的参数(如请求中没有任何内容,或仅有hook_id),则返回400。注意:即使更新原始值和目标值一致也被认为是有效更新 + * * 更新后私有hook的更新时间(update_time)也会被更新 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePrivateHookMetadataRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updatePrivateHookMetadataAsyncInvoker( + UpdatePrivateHookMetadataRequest request) { + return new AsyncInvoker<>(request, AosMeta.updatePrivateHookMetadata, hcClient); + } + /** * 继续部署资源栈 * diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosClient.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosClient.java index 92c1dd20a9..bfd66298a8 100644 --- a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosClient.java +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosClient.java @@ -8,6 +8,10 @@ import com.huaweicloud.sdk.aos.v1.model.ContinueRollbackStackResponse; import com.huaweicloud.sdk.aos.v1.model.CreateExecutionPlanRequest; import com.huaweicloud.sdk.aos.v1.model.CreateExecutionPlanResponse; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookRequest; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookResponse; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookVersionRequest; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookVersionResponse; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderRequest; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderResponse; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderVersionRequest; @@ -20,6 +24,10 @@ import com.huaweicloud.sdk.aos.v1.model.CreateStackSetResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteExecutionPlanRequest; import com.huaweicloud.sdk.aos.v1.model.DeleteExecutionPlanResponse; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookRequest; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookResponse; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookVersionRequest; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookVersionResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteStackEnhancedRequest; import com.huaweicloud.sdk.aos.v1.model.DeleteStackEnhancedResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteStackInstanceDeprecatedRequest; @@ -70,6 +78,10 @@ import com.huaweicloud.sdk.aos.v1.model.ListTemplatesResponse; import com.huaweicloud.sdk.aos.v1.model.ParseTemplateVariablesRequest; import com.huaweicloud.sdk.aos.v1.model.ParseTemplateVariablesResponse; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookMetadataResponse; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookVersionMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookVersionMetadataResponse; import com.huaweicloud.sdk.aos.v1.model.ShowStackInstanceRequest; import com.huaweicloud.sdk.aos.v1.model.ShowStackInstanceResponse; import com.huaweicloud.sdk.aos.v1.model.ShowStackSetMetadataRequest; @@ -84,6 +96,8 @@ import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionContentResponse; import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionMetadataRequest; import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionMetadataResponse; +import com.huaweicloud.sdk.aos.v1.model.UpdatePrivateHookMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.UpdatePrivateHookMetadataResponse; import com.huaweicloud.sdk.aos.v1.model.UpdateStackInstancesRequest; import com.huaweicloud.sdk.aos.v1.model.UpdateStackInstancesResponse; import com.huaweicloud.sdk.aos.v1.model.UpdateStackRequest; @@ -773,6 +787,354 @@ public SyncInvoker listEx return new SyncInvoker<>(request, AosMeta.listExecutionPlans, hcClient); } + /** + * 创建私有hook + * + * 创建私有hook(CreatePrivateHook) + * + * 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + * 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * * 支持hook策略模板检验的资源栈服务API: + * DeployStack + * DeleteStack + * * 创建私有hook时指定的版本为初始默认版本。 + * * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 + * * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 + * * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: + * ``` + * hook_result := { + * \"is_passed\": Bool, + * \"err_msg\": String, + * } + * ``` + * 其中is_passed必选,err_msg可选。RFS通过查询policy.hook_result[is_passed]判断是否通过策略校验。 + * * 如果policy.hook_result[is_passed]的结果是true,则表示通过策略校验,资源编排服务会继续部署资源。 + * * 如果policy.hook_result[is_passed]的结果是false,则表示没有通过策略校验,资源编排服务会停止部署资源。并记录资源栈事件信息,信息的内容为policy.hook_result[err_msg]。如果没有设置err_msg,则资源栈事件信息内容为默认错误信息(校验私有hook失败)。 + * * 如果没有使用policy.hook_result,则该策略不会生效,资源编排服务会继续部署资源。 + * * 策略模板中不支持调用其他服务API等方式获取数据、不支持任何形式的网络访问、不支持以任何形式的自定义函数或者方法等、不支持读取本地文件以及系统操作。 + * + * 私有hook的策略模板语法如下: + * ``` + * package policy + * + * import rego.v1 + * + * hook_result := { + * \"is_passed\": input.message == \"world\", + * \"err_msg\": \"The error msg when private hook is not passed the validation\", + * } + * ``` + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookRequest 请求对象 + * @return CreatePrivateHookResponse + */ + public CreatePrivateHookResponse createPrivateHook(CreatePrivateHookRequest request) { + return hcClient.syncInvokeHttp(request, AosMeta.createPrivateHook); + } + + /** + * 创建私有hook + * + * 创建私有hook(CreatePrivateHook) + * + * 创建一个带有初始默认版本的私有hook,创建私有hook的时候需要同时创建一个初始化默认版本,不允许空私有hook的创建。 + * 设置配置(Configuration)后的私有hook才会在触发资源栈部署时生效,资源栈使用私有hook的默认版本。若创建私有hook时未指定配置项,则该私有hook在资源栈部署时不生效,后续可通过UpdatePrivateHook API更新配置。 + * * 支持hook策略模板检验的资源栈服务API: + * DeployStack + * DeleteStack + * * 创建私有hook时指定的版本为初始默认版本。 + * * 如果同名的私有hook在当前domain_id+region下已经存在,则会返回409。 + * * 私有hook版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * * 当前仅支持部署资源前的检测,不支持部署资源过程中的检测。如果通过了部署资源前的检测,资源栈则会继续部署资源。反之会停止部署资源,并记录资源栈事件(stack events)。 + * * 仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板(用户可以通过policy_uri或policy_body给与策略文件内容)。 + * * 策略模板中的决策结果使用object类型的hook_result,hook_result所在包的包名必须使用policy。hook_result格式如下: + * ``` + * hook_result := { + * \"is_passed\": Bool, + * \"err_msg\": String, + * } + * ``` + * 其中is_passed必选,err_msg可选。RFS通过查询policy.hook_result[is_passed]判断是否通过策略校验。 + * * 如果policy.hook_result[is_passed]的结果是true,则表示通过策略校验,资源编排服务会继续部署资源。 + * * 如果policy.hook_result[is_passed]的结果是false,则表示没有通过策略校验,资源编排服务会停止部署资源。并记录资源栈事件信息,信息的内容为policy.hook_result[err_msg]。如果没有设置err_msg,则资源栈事件信息内容为默认错误信息(校验私有hook失败)。 + * * 如果没有使用policy.hook_result,则该策略不会生效,资源编排服务会继续部署资源。 + * * 策略模板中不支持调用其他服务API等方式获取数据、不支持任何形式的网络访问、不支持以任何形式的自定义函数或者方法等、不支持读取本地文件以及系统操作。 + * + * 私有hook的策略模板语法如下: + * ``` + * package policy + * + * import rego.v1 + * + * hook_result := { + * \"is_passed\": input.message == \"world\", + * \"err_msg\": \"The error msg when private hook is not passed the validation\", + * } + * ``` + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createPrivateHookInvoker( + CreatePrivateHookRequest request) { + return new SyncInvoker<>(request, AosMeta.createPrivateHook, hcClient); + } + + /** + * 创建私有hook版本 + * + * 创建私有hook版本(CreatePrivateHookVersion) + * + * 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookVersionRequest 请求对象 + * @return CreatePrivateHookVersionResponse + */ + public CreatePrivateHookVersionResponse createPrivateHookVersion(CreatePrivateHookVersionRequest request) { + return hcClient.syncInvokeHttp(request, AosMeta.createPrivateHookVersion); + } + + /** + * 创建私有hook版本 + * + * 创建私有hook版本(CreatePrivateHookVersion) + * + * 创建私有hook版本,创建私有hook版本后需要调用UpdatePrivateHook API设置为默认版本才能生效。 + * * 版本号遵循语义化版本号(Semantic Version),为用户自定义。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * * 资源编排服务只会对私有hook进行浅校验,如文件大小。不进行策略文件语法类校验。若语法类存在错误,则会在hook策略校验生效时报错。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreatePrivateHookVersionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createPrivateHookVersionInvoker( + CreatePrivateHookVersionRequest request) { + return new SyncInvoker<>(request, AosMeta.createPrivateHookVersion, hcClient); + } + + /** + * 删除私有hook + * + * 删除私有hook(DeletePrivateHook) + * + * 删除某个私有hook以及私有hook下的全部hook版本 + * * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作,删除私有hook将会删除该私有hook和该私有hook下的所有私有hook版本。** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookRequest 请求对象 + * @return DeletePrivateHookResponse + */ + public DeletePrivateHookResponse deletePrivateHook(DeletePrivateHookRequest request) { + return hcClient.syncInvokeHttp(request, AosMeta.deletePrivateHook); + } + + /** + * 删除私有hook + * + * 删除私有hook(DeletePrivateHook) + * + * 删除某个私有hook以及私有hook下的全部hook版本 + * * 默认版本只能调用本API删除,除默认版本外的其它版本可以调用DeletePrivateHookVersion API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作,删除私有hook将会删除该私有hook和该私有hook下的所有私有hook版本。** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deletePrivateHookInvoker( + DeletePrivateHookRequest request) { + return new SyncInvoker<>(request, AosMeta.deletePrivateHook, hcClient); + } + + /** + * 删除私有hook版本 + * + * 删除私有hook版本(DeletePrivateHookVersion) + * + * 删除某个私有hook版本 + * * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookVersionRequest 请求对象 + * @return DeletePrivateHookVersionResponse + */ + public DeletePrivateHookVersionResponse deletePrivateHookVersion(DeletePrivateHookVersionRequest request) { + return hcClient.syncInvokeHttp(request, AosMeta.deletePrivateHookVersion); + } + + /** + * 删除私有hook版本 + * + * 删除私有hook版本(DeletePrivateHookVersion) + * + * 删除某个私有hook版本 + * * 默认版本只能调用DeletePrivateHook API删除,除默认版本外的其它版本都可以调用本API删除。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * **请谨慎操作** + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeletePrivateHookVersionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deletePrivateHookVersionInvoker( + DeletePrivateHookVersionRequest request) { + return new SyncInvoker<>(request, AosMeta.deletePrivateHookVersion, hcClient); + } + + /** + * 获取私有hook元数据 + * + * 获取私有hook元数据(ShowPrivateHookMetadata) + * + * 获取某个私有hook的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookMetadataResponseBody,若想查看私有hook下全部版本,请调用ListPrivateHookVersions。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查两个是否匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookMetadataRequest 请求对象 + * @return ShowPrivateHookMetadataResponse + */ + public ShowPrivateHookMetadataResponse showPrivateHookMetadata(ShowPrivateHookMetadataRequest request) { + return hcClient.syncInvokeHttp(request, AosMeta.showPrivateHookMetadata); + } + + /** + * 获取私有hook元数据 + * + * 获取私有hook元数据(ShowPrivateHookMetadata) + * + * 获取某个私有hook的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookMetadataResponseBody,若想查看私有hook下全部版本,请调用ListPrivateHookVersions。 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查两个是否匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookMetadataRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showPrivateHookMetadataInvoker( + ShowPrivateHookMetadataRequest request) { + return new SyncInvoker<>(request, AosMeta.showPrivateHookMetadata, hcClient); + } + + /** + * 获取私有hook版本元数据 + * + * 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + * + * 获取当前私有hook对应的版本的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 + * * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookVersionMetadataRequest 请求对象 + * @return ShowPrivateHookVersionMetadataResponse + */ + public ShowPrivateHookVersionMetadataResponse showPrivateHookVersionMetadata( + ShowPrivateHookVersionMetadataRequest request) { + return hcClient.syncInvokeHttp(request, AosMeta.showPrivateHookVersionMetadata); + } + + /** + * 获取私有hook版本元数据 + * + * 获取私有hook版本元数据(ShowPrivateHookVersionMetadata) + * + * 获取当前私有hook对应的版本的元数据信息 + * + * * 具体返回的信息见ShowPrivateHookVersionMetadataResponseBody。 + * * 如果hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowPrivateHookVersionMetadataRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showPrivateHookVersionMetadataInvoker( + ShowPrivateHookVersionMetadataRequest request) { + return new SyncInvoker<>(request, AosMeta.showPrivateHookVersionMetadata, hcClient); + } + + /** + * 更新私有hook元数据 + * + * 更新私有hook元数据(UpdatePrivateHookMetadata) + * + * 更新当前私有hook的元数据信息 + * + * * 目前支持更新私有hook的描述、默认版本、配置。 + * * 如果需要创建新的版本,请调用CreatePrivateHookVersion。 + * * 更新为增量更新,即如果某个参数不提供,则保持原始值。 + * * 如果请求中没有需要被更新的参数(如请求中没有任何内容,或仅有hook_id),则返回400。注意:即使更新原始值和目标值一致也被认为是有效更新 + * * 更新后私有hook的更新时间(update_time)也会被更新 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePrivateHookMetadataRequest 请求对象 + * @return UpdatePrivateHookMetadataResponse + */ + public UpdatePrivateHookMetadataResponse updatePrivateHookMetadata(UpdatePrivateHookMetadataRequest request) { + return hcClient.syncInvokeHttp(request, AosMeta.updatePrivateHookMetadata); + } + + /** + * 更新私有hook元数据 + * + * 更新私有hook元数据(UpdatePrivateHookMetadata) + * + * 更新当前私有hook的元数据信息 + * + * * 目前支持更新私有hook的描述、默认版本、配置。 + * * 如果需要创建新的版本,请调用CreatePrivateHookVersion。 + * * 更新为增量更新,即如果某个参数不提供,则保持原始值。 + * * 如果请求中没有需要被更新的参数(如请求中没有任何内容,或仅有hook_id),则返回400。注意:即使更新原始值和目标值一致也被认为是有效更新 + * * 更新后私有hook的更新时间(update_time)也会被更新 + * * 若hook_name和hook_id同时存在,则资源编排服务会检查是否两个匹配,如果不匹配则会返回400。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdatePrivateHookMetadataRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updatePrivateHookMetadataInvoker( + UpdatePrivateHookMetadataRequest request) { + return new SyncInvoker<>(request, AosMeta.updatePrivateHookMetadata, hcClient); + } + /** * 继续部署资源栈 * diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosMeta.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosMeta.java index eb4b02ff23..bec500133e 100644 --- a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosMeta.java +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/AosMeta.java @@ -12,6 +12,12 @@ import com.huaweicloud.sdk.aos.v1.model.CreateExecutionPlanRequest; import com.huaweicloud.sdk.aos.v1.model.CreateExecutionPlanRequestBody; import com.huaweicloud.sdk.aos.v1.model.CreateExecutionPlanResponse; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookRequest; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookRequestBody; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookResponse; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookVersionRequest; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookVersionRequestBody; +import com.huaweicloud.sdk.aos.v1.model.CreatePrivateHookVersionResponse; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderRequest; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderRequestBody; import com.huaweicloud.sdk.aos.v1.model.CreatePrivateProviderResponse; @@ -29,6 +35,10 @@ import com.huaweicloud.sdk.aos.v1.model.CreateStackSetResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteExecutionPlanRequest; import com.huaweicloud.sdk.aos.v1.model.DeleteExecutionPlanResponse; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookRequest; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookResponse; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookVersionRequest; +import com.huaweicloud.sdk.aos.v1.model.DeletePrivateHookVersionResponse; import com.huaweicloud.sdk.aos.v1.model.DeleteStackEnhancedRequest; import com.huaweicloud.sdk.aos.v1.model.DeleteStackEnhancedRequestBody; import com.huaweicloud.sdk.aos.v1.model.DeleteStackEnhancedResponse; @@ -84,6 +94,10 @@ import com.huaweicloud.sdk.aos.v1.model.ParseTemplateVariablesRequest; import com.huaweicloud.sdk.aos.v1.model.ParseTemplateVariablesRequestBody; import com.huaweicloud.sdk.aos.v1.model.ParseTemplateVariablesResponse; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookMetadataResponse; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookVersionMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.ShowPrivateHookVersionMetadataResponse; import com.huaweicloud.sdk.aos.v1.model.ShowStackInstanceRequest; import com.huaweicloud.sdk.aos.v1.model.ShowStackInstanceResponse; import com.huaweicloud.sdk.aos.v1.model.ShowStackSetMetadataRequest; @@ -98,6 +112,9 @@ import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionContentResponse; import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionMetadataRequest; import com.huaweicloud.sdk.aos.v1.model.ShowTemplateVersionMetadataResponse; +import com.huaweicloud.sdk.aos.v1.model.UpdatePrivateHookMetadataRequest; +import com.huaweicloud.sdk.aos.v1.model.UpdatePrivateHookMetadataRequestBody; +import com.huaweicloud.sdk.aos.v1.model.UpdatePrivateHookMetadataResponse; import com.huaweicloud.sdk.aos.v1.model.UpdateStackInstancesRequest; import com.huaweicloud.sdk.aos.v1.model.UpdateStackInstancesRequestBody; import com.huaweicloud.sdk.aos.v1.model.UpdateStackInstancesResponse; @@ -489,6 +506,270 @@ private static HttpRequestDef createPrivateHook = + genForCreatePrivateHook(); + + private static HttpRequestDef genForCreatePrivateHook() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreatePrivateHookRequest.class, CreatePrivateHookResponse.class) + .withName("CreatePrivateHook") + .withUri("/v1/private-hooks") + .withContentType("application/json"); + + // requests + builder.withRequestField("Client-Request-Id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreatePrivateHookRequest::getClientRequestId, + CreatePrivateHookRequest::setClientRequestId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreatePrivateHookRequestBody.class), + f -> f.withMarshaller(CreatePrivateHookRequest::getBody, CreatePrivateHookRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createPrivateHookVersion = + genForCreatePrivateHookVersion(); + + private static HttpRequestDef genForCreatePrivateHookVersion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, CreatePrivateHookVersionRequest.class, CreatePrivateHookVersionResponse.class) + .withName("CreatePrivateHookVersion") + .withUri("/v1/private-hooks/{hook_name}/versions") + .withContentType("application/json"); + + // requests + builder.withRequestField("hook_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreatePrivateHookVersionRequest::getHookName, + CreatePrivateHookVersionRequest::setHookName)); + builder.withRequestField("Client-Request-Id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreatePrivateHookVersionRequest::getClientRequestId, + CreatePrivateHookVersionRequest::setClientRequestId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreatePrivateHookVersionRequestBody.class), + f -> f.withMarshaller(CreatePrivateHookVersionRequest::getBody, CreatePrivateHookVersionRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deletePrivateHook = + genForDeletePrivateHook(); + + private static HttpRequestDef genForDeletePrivateHook() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeletePrivateHookRequest.class, DeletePrivateHookResponse.class) + .withName("DeletePrivateHook") + .withUri("/v1/private-hooks/{hook_name}") + .withContentType("application/json"); + + // requests + builder.withRequestField("hook_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePrivateHookRequest::getHookName, DeletePrivateHookRequest::setHookName)); + builder.withRequestField("hook_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePrivateHookRequest::getHookId, DeletePrivateHookRequest::setHookId)); + builder.withRequestField("Client-Request-Id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePrivateHookRequest::getClientRequestId, + DeletePrivateHookRequest::setClientRequestId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deletePrivateHookVersion = + genForDeletePrivateHookVersion(); + + private static HttpRequestDef genForDeletePrivateHookVersion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeletePrivateHookVersionRequest.class, + DeletePrivateHookVersionResponse.class) + .withName("DeletePrivateHookVersion") + .withUri("/v1/private-hooks/{hook_name}/versions/{hook_version}") + .withContentType("application/json"); + + // requests + builder.withRequestField("hook_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePrivateHookVersionRequest::getHookName, + DeletePrivateHookVersionRequest::setHookName)); + builder.withRequestField("hook_version", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePrivateHookVersionRequest::getHookVersion, + DeletePrivateHookVersionRequest::setHookVersion)); + builder.withRequestField("hook_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePrivateHookVersionRequest::getHookId, + DeletePrivateHookVersionRequest::setHookId)); + builder.withRequestField("Client-Request-Id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeletePrivateHookVersionRequest::getClientRequestId, + DeletePrivateHookVersionRequest::setClientRequestId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showPrivateHookMetadata = + genForShowPrivateHookMetadata(); + + private static HttpRequestDef genForShowPrivateHookMetadata() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowPrivateHookMetadataRequest.class, ShowPrivateHookMetadataResponse.class) + .withName("ShowPrivateHookMetadata") + .withUri("/v1/private-hooks/{hook_name}/metadata") + .withContentType("application/json"); + + // requests + builder.withRequestField("hook_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowPrivateHookMetadataRequest::getHookName, + ShowPrivateHookMetadataRequest::setHookName)); + builder.withRequestField("hook_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowPrivateHookMetadataRequest::getHookId, + ShowPrivateHookMetadataRequest::setHookId)); + builder.withRequestField("Client-Request-Id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowPrivateHookMetadataRequest::getClientRequestId, + ShowPrivateHookMetadataRequest::setClientRequestId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showPrivateHookVersionMetadata = + genForShowPrivateHookVersionMetadata(); + + private static HttpRequestDef genForShowPrivateHookVersionMetadata() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ShowPrivateHookVersionMetadataRequest.class, + ShowPrivateHookVersionMetadataResponse.class) + .withName("ShowPrivateHookVersionMetadata") + .withUri("/v1/private-hooks/{hook_name}/versions/{hook_version}/metadata") + .withContentType("application/json"); + + // requests + builder.withRequestField("hook_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowPrivateHookVersionMetadataRequest::getHookName, + ShowPrivateHookVersionMetadataRequest::setHookName)); + builder.withRequestField("hook_version", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowPrivateHookVersionMetadataRequest::getHookVersion, + ShowPrivateHookVersionMetadataRequest::setHookVersion)); + builder.withRequestField("hook_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowPrivateHookVersionMetadataRequest::getHookId, + ShowPrivateHookVersionMetadataRequest::setHookId)); + builder.withRequestField("Client-Request-Id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowPrivateHookVersionMetadataRequest::getClientRequestId, + ShowPrivateHookVersionMetadataRequest::setClientRequestId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updatePrivateHookMetadata = + genForUpdatePrivateHookMetadata(); + + private static HttpRequestDef genForUpdatePrivateHookMetadata() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.PATCH, + UpdatePrivateHookMetadataRequest.class, + UpdatePrivateHookMetadataResponse.class) + .withName("UpdatePrivateHookMetadata") + .withUri("/v1/private-hooks/{hook_name}/metadata") + .withContentType("application/json"); + + // requests + builder.withRequestField("hook_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdatePrivateHookMetadataRequest::getHookName, + UpdatePrivateHookMetadataRequest::setHookName)); + builder.withRequestField("Client-Request-Id", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdatePrivateHookMetadataRequest::getClientRequestId, + UpdatePrivateHookMetadataRequest::setClientRequestId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdatePrivateHookMetadataRequestBody.class), + f -> f.withMarshaller(UpdatePrivateHookMetadataRequest::getBody, + UpdatePrivateHookMetadataRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef continueDeployStack = genForContinueDeployStack(); diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ConfigurationPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ConfigurationPrimitiveTypeHolder.java new file mode 100644 index 0000000000..1645111648 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ConfigurationPrimitiveTypeHolder.java @@ -0,0 +1,84 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ConfigurationPrimitiveTypeHolder + */ +public class ConfigurationPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration") + + private ConfigurationPrimitiveTypeHolderConfiguration _configuration; + + public ConfigurationPrimitiveTypeHolder withConfiguration( + ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + return this; + } + + public ConfigurationPrimitiveTypeHolder withConfiguration( + Consumer _configurationSetter) { + if (this._configuration == null) { + this._configuration = new ConfigurationPrimitiveTypeHolderConfiguration(); + _configurationSetter.accept(this._configuration); + } + + return this; + } + + /** + * Get _configuration + * @return _configuration + */ + public ConfigurationPrimitiveTypeHolderConfiguration getConfiguration() { + return _configuration; + } + + public void setConfiguration(ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConfigurationPrimitiveTypeHolder that = (ConfigurationPrimitiveTypeHolder) obj; + return Objects.equals(this._configuration, that._configuration); + } + + @Override + public int hashCode() { + return Objects.hash(_configuration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigurationPrimitiveTypeHolder {\n"); + sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ConfigurationPrimitiveTypeHolderConfiguration.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ConfigurationPrimitiveTypeHolderConfiguration.java new file mode 100644 index 0000000000..65960081ad --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ConfigurationPrimitiveTypeHolderConfiguration.java @@ -0,0 +1,241 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 私有hook配置项,可以指定私有hook生效的目标资源栈以及私有hook校验失败后资源栈的行为。可通过UpdatePrivateHook API更新私有hook配置项。 + */ +public class ConfigurationPrimitiveTypeHolderConfiguration { + + /** + * 指定私有hook生效的目标资源栈,有效值为NONE或ALL。 NONE:指定此私有hook不会作用于任何资源栈 ALL:指定此私有hook将会应用于账号下的所有资源栈 + */ + public static final class TargetStacksEnum { + + /** + * Enum NONE for value: "NONE" + */ + public static final TargetStacksEnum NONE = new TargetStacksEnum("NONE"); + + /** + * Enum ALL for value: "ALL" + */ + public static final TargetStacksEnum ALL = new TargetStacksEnum("ALL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("NONE", NONE); + map.put("ALL", ALL); + return Collections.unmodifiableMap(map); + } + + private String value; + + TargetStacksEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TargetStacksEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TargetStacksEnum(value)); + } + + public static TargetStacksEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof TargetStacksEnum) { + return this.value.equals(((TargetStacksEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_stacks") + + private TargetStacksEnum targetStacks; + + /** + * 指定私有hook校验失败后的行为,有效值为FAIL或WARN。 FAIL:指定此私有hook校验失败后资源栈将停止部署,资源栈状态将更新为DEPLOYMENT_FAILED。 WARN:指定此私有hook校验失败后仅通过资源栈事件展示警告消息,但不影响资源栈部署。 + */ + public static final class FailureModeEnum { + + /** + * Enum WARN for value: "WARN" + */ + public static final FailureModeEnum WARN = new FailureModeEnum("WARN"); + + /** + * Enum FAIL for value: "FAIL" + */ + public static final FailureModeEnum FAIL = new FailureModeEnum("FAIL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("WARN", WARN); + map.put("FAIL", FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + FailureModeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FailureModeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new FailureModeEnum(value)); + } + + public static FailureModeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof FailureModeEnum) { + return this.value.equals(((FailureModeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "failure_mode") + + private FailureModeEnum failureMode; + + public ConfigurationPrimitiveTypeHolderConfiguration withTargetStacks(TargetStacksEnum targetStacks) { + this.targetStacks = targetStacks; + return this; + } + + /** + * 指定私有hook生效的目标资源栈,有效值为NONE或ALL。 NONE:指定此私有hook不会作用于任何资源栈 ALL:指定此私有hook将会应用于账号下的所有资源栈 + * @return targetStacks + */ + public TargetStacksEnum getTargetStacks() { + return targetStacks; + } + + public void setTargetStacks(TargetStacksEnum targetStacks) { + this.targetStacks = targetStacks; + } + + public ConfigurationPrimitiveTypeHolderConfiguration withFailureMode(FailureModeEnum failureMode) { + this.failureMode = failureMode; + return this; + } + + /** + * 指定私有hook校验失败后的行为,有效值为FAIL或WARN。 FAIL:指定此私有hook校验失败后资源栈将停止部署,资源栈状态将更新为DEPLOYMENT_FAILED。 WARN:指定此私有hook校验失败后仅通过资源栈事件展示警告消息,但不影响资源栈部署。 + * @return failureMode + */ + public FailureModeEnum getFailureMode() { + return failureMode; + } + + public void setFailureMode(FailureModeEnum failureMode) { + this.failureMode = failureMode; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConfigurationPrimitiveTypeHolderConfiguration that = (ConfigurationPrimitiveTypeHolderConfiguration) obj; + return Objects.equals(this.targetStacks, that.targetStacks) + && Objects.equals(this.failureMode, that.failureMode); + } + + @Override + public int hashCode() { + return Objects.hash(targetStacks, failureMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfigurationPrimitiveTypeHolderConfiguration {\n"); + sb.append(" targetStacks: ").append(toIndentedString(targetStacks)).append("\n"); + sb.append(" failureMode: ").append(toIndentedString(failureMode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookRequest.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookRequest.java new file mode 100644 index 0000000000..e9a44abc79 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreatePrivateHookRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Client-Request-Id") + + private String clientRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreatePrivateHookRequestBody body; + + public CreatePrivateHookRequest withClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + * @return clientRequestId + */ + public String getClientRequestId() { + return clientRequestId; + } + + public void setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + } + + public CreatePrivateHookRequest withBody(CreatePrivateHookRequestBody body) { + this.body = body; + return this; + } + + public CreatePrivateHookRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreatePrivateHookRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreatePrivateHookRequestBody getBody() { + return body; + } + + public void setBody(CreatePrivateHookRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreatePrivateHookRequest that = (CreatePrivateHookRequest) obj; + return Objects.equals(this.clientRequestId, that.clientRequestId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(clientRequestId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateHookRequest {\n"); + sb.append(" clientRequestId: ").append(toIndentedString(clientRequestId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookRequestBody.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookRequestBody.java new file mode 100644 index 0000000000..d66c0acbd7 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookRequestBody.java @@ -0,0 +1,232 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * CreatePrivateHookRequestBody + */ +public class CreatePrivateHookRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version") + + private String hookVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_description") + + private String hookDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version_description") + + private String hookVersionDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration") + + private ConfigurationPrimitiveTypeHolderConfiguration _configuration; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_uri") + + private String policyUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_body") + + private String policyBody; + + public CreatePrivateHookRequestBody withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public CreatePrivateHookRequestBody withHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + return this; + } + + /** + * 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return hookVersion + */ + public String getHookVersion() { + return hookVersion; + } + + public void setHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + } + + public CreatePrivateHookRequestBody withHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + return this; + } + + /** + * 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + * @return hookDescription + */ + public String getHookDescription() { + return hookDescription; + } + + public void setHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + } + + public CreatePrivateHookRequestBody withHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + return this; + } + + /** + * 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + * @return hookVersionDescription + */ + public String getHookVersionDescription() { + return hookVersionDescription; + } + + public void setHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + } + + public CreatePrivateHookRequestBody withConfiguration( + ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + return this; + } + + public CreatePrivateHookRequestBody withConfiguration( + Consumer _configurationSetter) { + if (this._configuration == null) { + this._configuration = new ConfigurationPrimitiveTypeHolderConfiguration(); + _configurationSetter.accept(this._configuration); + } + + return this; + } + + /** + * Get _configuration + * @return _configuration + */ + public ConfigurationPrimitiveTypeHolderConfiguration getConfiguration() { + return _configuration; + } + + public void setConfiguration(ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + } + + public CreatePrivateHookRequestBody withPolicyUri(String policyUri) { + this.policyUri = policyUri; + return this; + } + + /** + * 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + * @return policyUri + */ + public String getPolicyUri() { + return policyUri; + } + + public void setPolicyUri(String policyUri) { + this.policyUri = policyUri; + } + + public CreatePrivateHookRequestBody withPolicyBody(String policyBody) { + this.policyBody = policyBody; + return this; + } + + /** + * 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + * @return policyBody + */ + public String getPolicyBody() { + return policyBody; + } + + public void setPolicyBody(String policyBody) { + this.policyBody = policyBody; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreatePrivateHookRequestBody that = (CreatePrivateHookRequestBody) obj; + return Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookVersion, that.hookVersion) + && Objects.equals(this.hookDescription, that.hookDescription) + && Objects.equals(this.hookVersionDescription, that.hookVersionDescription) + && Objects.equals(this._configuration, that._configuration) + && Objects.equals(this.policyUri, that.policyUri) && Objects.equals(this.policyBody, that.policyBody); + } + + @Override + public int hashCode() { + return Objects.hash(hookName, + hookVersion, + hookDescription, + hookVersionDescription, + _configuration, + policyUri, + policyBody); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateHookRequestBody {\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookVersion: ").append(toIndentedString(hookVersion)).append("\n"); + sb.append(" hookDescription: ").append(toIndentedString(hookDescription)).append("\n"); + sb.append(" hookVersionDescription: ").append(toIndentedString(hookVersionDescription)).append("\n"); + sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); + sb.append(" policyUri: ").append(toIndentedString(policyUri)).append("\n"); + sb.append(" policyBody: ").append(toIndentedString(policyBody)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookResponse.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookResponse.java new file mode 100644 index 0000000000..436be0d163 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreatePrivateHookResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + public CreatePrivateHookResponse withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreatePrivateHookResponse that = (CreatePrivateHookResponse) obj; + return Objects.equals(this.hookId, that.hookId); + } + + @Override + public int hashCode() { + return Objects.hash(hookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateHookResponse {\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionRequest.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionRequest.java new file mode 100644 index 0000000000..e2f0142322 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreatePrivateHookVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Client-Request-Id") + + private String clientRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreatePrivateHookVersionRequestBody body; + + public CreatePrivateHookVersionRequest withClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + * @return clientRequestId + */ + public String getClientRequestId() { + return clientRequestId; + } + + public void setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + } + + public CreatePrivateHookVersionRequest withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public CreatePrivateHookVersionRequest withBody(CreatePrivateHookVersionRequestBody body) { + this.body = body; + return this; + } + + public CreatePrivateHookVersionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreatePrivateHookVersionRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreatePrivateHookVersionRequestBody getBody() { + return body; + } + + public void setBody(CreatePrivateHookVersionRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreatePrivateHookVersionRequest that = (CreatePrivateHookVersionRequest) obj; + return Objects.equals(this.clientRequestId, that.clientRequestId) + && Objects.equals(this.hookName, that.hookName) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(clientRequestId, hookName, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateHookVersionRequest {\n"); + sb.append(" clientRequestId: ").append(toIndentedString(clientRequestId)).append("\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionRequestBody.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionRequestBody.java new file mode 100644 index 0000000000..1942883338 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionRequestBody.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * CreatePrivateHookVersionRequestBody + */ +public class CreatePrivateHookVersionRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version") + + private String hookVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version_description") + + private String hookVersionDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_uri") + + private String policyUri; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_body") + + private String policyBody; + + public CreatePrivateHookVersionRequestBody withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + public CreatePrivateHookVersionRequestBody withHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + return this; + } + + /** + * 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return hookVersion + */ + public String getHookVersion() { + return hookVersion; + } + + public void setHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + } + + public CreatePrivateHookVersionRequestBody withHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + return this; + } + + /** + * 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + * @return hookVersionDescription + */ + public String getHookVersionDescription() { + return hookVersionDescription; + } + + public void setHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + } + + public CreatePrivateHookVersionRequestBody withPolicyUri(String policyUri) { + this.policyUri = policyUri; + return this; + } + + /** + * 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + * @return policyUri + */ + public String getPolicyUri() { + return policyUri; + } + + public void setPolicyUri(String policyUri) { + this.policyUri = policyUri; + } + + public CreatePrivateHookVersionRequestBody withPolicyBody(String policyBody) { + this.policyBody = policyBody; + return this; + } + + /** + * 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + * @return policyBody + */ + public String getPolicyBody() { + return policyBody; + } + + public void setPolicyBody(String policyBody) { + this.policyBody = policyBody; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreatePrivateHookVersionRequestBody that = (CreatePrivateHookVersionRequestBody) obj; + return Objects.equals(this.hookId, that.hookId) && Objects.equals(this.hookVersion, that.hookVersion) + && Objects.equals(this.hookVersionDescription, that.hookVersionDescription) + && Objects.equals(this.policyUri, that.policyUri) && Objects.equals(this.policyBody, that.policyBody); + } + + @Override + public int hashCode() { + return Objects.hash(hookId, hookVersion, hookVersionDescription, policyUri, policyBody); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateHookVersionRequestBody {\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append(" hookVersion: ").append(toIndentedString(hookVersion)).append("\n"); + sb.append(" hookVersionDescription: ").append(toIndentedString(hookVersionDescription)).append("\n"); + sb.append(" policyUri: ").append(toIndentedString(policyUri)).append("\n"); + sb.append(" policyBody: ").append(toIndentedString(policyBody)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionResponse.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionResponse.java new file mode 100644 index 0000000000..8d524d9b61 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/CreatePrivateHookVersionResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreatePrivateHookVersionResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateHookVersionResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookRequest.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookRequest.java new file mode 100644 index 0000000000..28fc81da86 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeletePrivateHookRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Client-Request-Id") + + private String clientRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + public DeletePrivateHookRequest withClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + * @return clientRequestId + */ + public String getClientRequestId() { + return clientRequestId; + } + + public void setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + } + + public DeletePrivateHookRequest withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public DeletePrivateHookRequest withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeletePrivateHookRequest that = (DeletePrivateHookRequest) obj; + return Objects.equals(this.clientRequestId, that.clientRequestId) + && Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookId, that.hookId); + } + + @Override + public int hashCode() { + return Objects.hash(clientRequestId, hookName, hookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeletePrivateHookRequest {\n"); + sb.append(" clientRequestId: ").append(toIndentedString(clientRequestId)).append("\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookResponse.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookResponse.java new file mode 100644 index 0000000000..99d1b7944e --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeletePrivateHookResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeletePrivateHookResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookVersionRequest.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookVersionRequest.java new file mode 100644 index 0000000000..95c208a0bd --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookVersionRequest.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeletePrivateHookVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Client-Request-Id") + + private String clientRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version") + + private String hookVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + public DeletePrivateHookVersionRequest withClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + * @return clientRequestId + */ + public String getClientRequestId() { + return clientRequestId; + } + + public void setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + } + + public DeletePrivateHookVersionRequest withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public DeletePrivateHookVersionRequest withHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + return this; + } + + /** + * 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return hookVersion + */ + public String getHookVersion() { + return hookVersion; + } + + public void setHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + } + + public DeletePrivateHookVersionRequest withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeletePrivateHookVersionRequest that = (DeletePrivateHookVersionRequest) obj; + return Objects.equals(this.clientRequestId, that.clientRequestId) + && Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookVersion, that.hookVersion) + && Objects.equals(this.hookId, that.hookId); + } + + @Override + public int hashCode() { + return Objects.hash(clientRequestId, hookName, hookVersion, hookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeletePrivateHookVersionRequest {\n"); + sb.append(" clientRequestId: ").append(toIndentedString(clientRequestId)).append("\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookVersion: ").append(toIndentedString(hookVersion)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookVersionResponse.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookVersionResponse.java new file mode 100644 index 0000000000..5ce92848c3 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/DeletePrivateHookVersionResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeletePrivateHookVersionResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeletePrivateHookVersionResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookCreateTimePrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookCreateTimePrimitiveTypeHolder.java new file mode 100644 index 0000000000..889f8a6e3a --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookCreateTimePrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookCreateTimePrimitiveTypeHolder + */ +public class PrivateHookCreateTimePrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + public PrivateHookCreateTimePrimitiveTypeHolder withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookCreateTimePrimitiveTypeHolder that = (PrivateHookCreateTimePrimitiveTypeHolder) obj; + return Objects.equals(this.createTime, that.createTime); + } + + @Override + public int hashCode() { + return Objects.hash(createTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookCreateTimePrimitiveTypeHolder {\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookDefaultVersionPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookDefaultVersionPrimitiveTypeHolder.java new file mode 100644 index 0000000000..ec3f86ec33 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookDefaultVersionPrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookDefaultVersionPrimitiveTypeHolder + */ +public class PrivateHookDefaultVersionPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "default_version") + + private String defaultVersion; + + public PrivateHookDefaultVersionPrimitiveTypeHolder withDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + return this; + } + + /** + * 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return defaultVersion + */ + public String getDefaultVersion() { + return defaultVersion; + } + + public void setDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookDefaultVersionPrimitiveTypeHolder that = (PrivateHookDefaultVersionPrimitiveTypeHolder) obj; + return Objects.equals(this.defaultVersion, that.defaultVersion); + } + + @Override + public int hashCode() { + return Objects.hash(defaultVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookDefaultVersionPrimitiveTypeHolder {\n"); + sb.append(" defaultVersion: ").append(toIndentedString(defaultVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookDescriptionPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookDescriptionPrimitiveTypeHolder.java new file mode 100644 index 0000000000..7689386819 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookDescriptionPrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookDescriptionPrimitiveTypeHolder + */ +public class PrivateHookDescriptionPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_description") + + private String hookDescription; + + public PrivateHookDescriptionPrimitiveTypeHolder withHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + return this; + } + + /** + * 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + * @return hookDescription + */ + public String getHookDescription() { + return hookDescription; + } + + public void setHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookDescriptionPrimitiveTypeHolder that = (PrivateHookDescriptionPrimitiveTypeHolder) obj; + return Objects.equals(this.hookDescription, that.hookDescription); + } + + @Override + public int hashCode() { + return Objects.hash(hookDescription); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookDescriptionPrimitiveTypeHolder {\n"); + sb.append(" hookDescription: ").append(toIndentedString(hookDescription)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookIdPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookIdPrimitiveTypeHolder.java new file mode 100644 index 0000000000..f941ac0142 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookIdPrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookIdPrimitiveTypeHolder + */ +public class PrivateHookIdPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + public PrivateHookIdPrimitiveTypeHolder withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookIdPrimitiveTypeHolder that = (PrivateHookIdPrimitiveTypeHolder) obj; + return Objects.equals(this.hookId, that.hookId); + } + + @Override + public int hashCode() { + return Objects.hash(hookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookIdPrimitiveTypeHolder {\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookNamePrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookNamePrimitiveTypeHolder.java new file mode 100644 index 0000000000..ba5326c06b --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookNamePrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookNamePrimitiveTypeHolder + */ +public class PrivateHookNamePrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + public PrivateHookNamePrimitiveTypeHolder withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookNamePrimitiveTypeHolder that = (PrivateHookNamePrimitiveTypeHolder) obj; + return Objects.equals(this.hookName, that.hookName); + } + + @Override + public int hashCode() { + return Objects.hash(hookName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookNamePrimitiveTypeHolder {\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookSummary.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookSummary.java new file mode 100644 index 0000000000..72a0c93e44 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookSummary.java @@ -0,0 +1,225 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * PrivateHookSummary + */ +public class PrivateHookSummary { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_description") + + private String hookDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "default_version") + + private String defaultVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration") + + private ConfigurationPrimitiveTypeHolderConfiguration _configuration; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public PrivateHookSummary withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public PrivateHookSummary withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + public PrivateHookSummary withHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + return this; + } + + /** + * 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + * @return hookDescription + */ + public String getHookDescription() { + return hookDescription; + } + + public void setHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + } + + public PrivateHookSummary withDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + return this; + } + + /** + * 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return defaultVersion + */ + public String getDefaultVersion() { + return defaultVersion; + } + + public void setDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + } + + public PrivateHookSummary withConfiguration(ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + return this; + } + + public PrivateHookSummary withConfiguration( + Consumer _configurationSetter) { + if (this._configuration == null) { + this._configuration = new ConfigurationPrimitiveTypeHolderConfiguration(); + _configurationSetter.accept(this._configuration); + } + + return this; + } + + /** + * Get _configuration + * @return _configuration + */ + public ConfigurationPrimitiveTypeHolderConfiguration getConfiguration() { + return _configuration; + } + + public void setConfiguration(ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + } + + public PrivateHookSummary withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public PrivateHookSummary withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookSummary that = (PrivateHookSummary) obj; + return Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookId, that.hookId) + && Objects.equals(this.hookDescription, that.hookDescription) + && Objects.equals(this.defaultVersion, that.defaultVersion) + && Objects.equals(this._configuration, that._configuration) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(hookName, hookId, hookDescription, defaultVersion, _configuration, createTime, updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookSummary {\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append(" hookDescription: ").append(toIndentedString(hookDescription)).append("\n"); + sb.append(" defaultVersion: ").append(toIndentedString(defaultVersion)).append("\n"); + sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookUpdateTimePrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookUpdateTimePrimitiveTypeHolder.java new file mode 100644 index 0000000000..2d7aeaf227 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookUpdateTimePrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookUpdateTimePrimitiveTypeHolder + */ +public class PrivateHookUpdateTimePrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public PrivateHookUpdateTimePrimitiveTypeHolder withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookUpdateTimePrimitiveTypeHolder that = (PrivateHookUpdateTimePrimitiveTypeHolder) obj; + return Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookUpdateTimePrimitiveTypeHolder {\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionCreateTimePrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionCreateTimePrimitiveTypeHolder.java new file mode 100644 index 0000000000..72a433e87c --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionCreateTimePrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookVersionCreateTimePrimitiveTypeHolder + */ +public class PrivateHookVersionCreateTimePrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + public PrivateHookVersionCreateTimePrimitiveTypeHolder withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookVersionCreateTimePrimitiveTypeHolder that = (PrivateHookVersionCreateTimePrimitiveTypeHolder) obj; + return Objects.equals(this.createTime, that.createTime); + } + + @Override + public int hashCode() { + return Objects.hash(createTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookVersionCreateTimePrimitiveTypeHolder {\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionDescriptionPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionDescriptionPrimitiveTypeHolder.java new file mode 100644 index 0000000000..7b38cf9b38 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionDescriptionPrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookVersionDescriptionPrimitiveTypeHolder + */ +public class PrivateHookVersionDescriptionPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version_description") + + private String hookVersionDescription; + + public PrivateHookVersionDescriptionPrimitiveTypeHolder withHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + return this; + } + + /** + * 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + * @return hookVersionDescription + */ + public String getHookVersionDescription() { + return hookVersionDescription; + } + + public void setHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookVersionDescriptionPrimitiveTypeHolder that = (PrivateHookVersionDescriptionPrimitiveTypeHolder) obj; + return Objects.equals(this.hookVersionDescription, that.hookVersionDescription); + } + + @Override + public int hashCode() { + return Objects.hash(hookVersionDescription); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookVersionDescriptionPrimitiveTypeHolder {\n"); + sb.append(" hookVersionDescription: ").append(toIndentedString(hookVersionDescription)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionPrimitiveTypeHolder.java new file mode 100644 index 0000000000..c02fcd0d9f --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionPrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookVersionPrimitiveTypeHolder + */ +public class PrivateHookVersionPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version") + + private String hookVersion; + + public PrivateHookVersionPrimitiveTypeHolder withHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + return this; + } + + /** + * 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return hookVersion + */ + public String getHookVersion() { + return hookVersion; + } + + public void setHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookVersionPrimitiveTypeHolder that = (PrivateHookVersionPrimitiveTypeHolder) obj; + return Objects.equals(this.hookVersion, that.hookVersion); + } + + @Override + public int hashCode() { + return Objects.hash(hookVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookVersionPrimitiveTypeHolder {\n"); + sb.append(" hookVersion: ").append(toIndentedString(hookVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionSummary.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionSummary.java new file mode 100644 index 0000000000..91506644b2 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivateHookVersionSummary.java @@ -0,0 +1,167 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivateHookVersionSummary + */ +public class PrivateHookVersionSummary { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version") + + private String hookVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version_description") + + private String hookVersionDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + public PrivateHookVersionSummary withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public PrivateHookVersionSummary withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + public PrivateHookVersionSummary withHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + return this; + } + + /** + * 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return hookVersion + */ + public String getHookVersion() { + return hookVersion; + } + + public void setHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + } + + public PrivateHookVersionSummary withHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + return this; + } + + /** + * 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + * @return hookVersionDescription + */ + public String getHookVersionDescription() { + return hookVersionDescription; + } + + public void setHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + } + + public PrivateHookVersionSummary withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivateHookVersionSummary that = (PrivateHookVersionSummary) obj; + return Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookId, that.hookId) + && Objects.equals(this.hookVersion, that.hookVersion) + && Objects.equals(this.hookVersionDescription, that.hookVersionDescription) + && Objects.equals(this.createTime, that.createTime); + } + + @Override + public int hashCode() { + return Objects.hash(hookName, hookId, hookVersion, hookVersionDescription, createTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivateHookVersionSummary {\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append(" hookVersion: ").append(toIndentedString(hookVersion)).append("\n"); + sb.append(" hookVersionDescription: ").append(toIndentedString(hookVersionDescription)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivatePolicyBodyPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivatePolicyBodyPrimitiveTypeHolder.java new file mode 100644 index 0000000000..fd993a8872 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivatePolicyBodyPrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivatePolicyBodyPrimitiveTypeHolder + */ +public class PrivatePolicyBodyPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_body") + + private String policyBody; + + public PrivatePolicyBodyPrimitiveTypeHolder withPolicyBody(String policyBody) { + this.policyBody = policyBody; + return this; + } + + /** + * 策略内容。仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 policy_body和policy_uri 必须有且只有一个存在 + * @return policyBody + */ + public String getPolicyBody() { + return policyBody; + } + + public void setPolicyBody(String policyBody) { + this.policyBody = policyBody; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivatePolicyBodyPrimitiveTypeHolder that = (PrivatePolicyBodyPrimitiveTypeHolder) obj; + return Objects.equals(this.policyBody, that.policyBody); + } + + @Override + public int hashCode() { + return Objects.hash(policyBody); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivatePolicyBodyPrimitiveTypeHolder {\n"); + sb.append(" policyBody: ").append(toIndentedString(policyBody)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivatePolicyURIPrimitiveTypeHolder.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivatePolicyURIPrimitiveTypeHolder.java new file mode 100644 index 0000000000..2bf5822a95 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/PrivatePolicyURIPrimitiveTypeHolder.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * PrivatePolicyURIPrimitiveTypeHolder + */ +public class PrivatePolicyURIPrimitiveTypeHolder { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_uri") + + private String policyUri; + + public PrivatePolicyURIPrimitiveTypeHolder withPolicyUri(String policyUri) { + this.policyUri = policyUri; + return this; + } + + /** + * 策略文件的OBS地址。内容仅支持OPA开源引擎识别的,以rego(https://www.openpolicyagent.org/docs/latest/policy-language/)语言编写的策略模板。 OBS地址支持同类型Region之间进行互相访问(Region分为通用Region和专属Region,通用Region指面向公共租户提供通用云服务的Region;专属Region指只承载同一类业务或只面向特定租户提供业务服务的专用Region) 策略文件当前支持单文件或zip压缩包,单文件需要以\".rego\"结尾,压缩包当前只支持zip格式,文件需要以`.zip`结尾。 关于策略文件的校验要求如下: * 文件必须是UTF8编码 * 创建时不负责校验内容的正确性 * 策略文件必须是UTF-8编码 * 单文件或压缩包解压前后的大小应控制在1MB以内 * 压缩包内的文件数量不能超过100个 * 压缩包内的文件路径最长为2048 * 策略文件名最长为255个字节 policy_uri和policy_body必须有且只有一个存在 + * @return policyUri + */ + public String getPolicyUri() { + return policyUri; + } + + public void setPolicyUri(String policyUri) { + this.policyUri = policyUri; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + PrivatePolicyURIPrimitiveTypeHolder that = (PrivatePolicyURIPrimitiveTypeHolder) obj; + return Objects.equals(this.policyUri, that.policyUri); + } + + @Override + public int hashCode() { + return Objects.hash(policyUri); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivatePolicyURIPrimitiveTypeHolder {\n"); + sb.append(" policyUri: ").append(toIndentedString(policyUri)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookMetadataRequest.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookMetadataRequest.java new file mode 100644 index 0000000000..d673625e2c --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookMetadataRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowPrivateHookMetadataRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Client-Request-Id") + + private String clientRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + public ShowPrivateHookMetadataRequest withClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + * @return clientRequestId + */ + public String getClientRequestId() { + return clientRequestId; + } + + public void setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + } + + public ShowPrivateHookMetadataRequest withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public ShowPrivateHookMetadataRequest withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowPrivateHookMetadataRequest that = (ShowPrivateHookMetadataRequest) obj; + return Objects.equals(this.clientRequestId, that.clientRequestId) + && Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookId, that.hookId); + } + + @Override + public int hashCode() { + return Objects.hash(clientRequestId, hookName, hookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowPrivateHookMetadataRequest {\n"); + sb.append(" clientRequestId: ").append(toIndentedString(clientRequestId)).append("\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookMetadataResponse.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookMetadataResponse.java new file mode 100644 index 0000000000..5753236392 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookMetadataResponse.java @@ -0,0 +1,227 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowPrivateHookMetadataResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_description") + + private String hookDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "default_version") + + private String defaultVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration") + + private ConfigurationPrimitiveTypeHolderConfiguration _configuration; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + public ShowPrivateHookMetadataResponse withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public ShowPrivateHookMetadataResponse withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + public ShowPrivateHookMetadataResponse withHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + return this; + } + + /** + * 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + * @return hookDescription + */ + public String getHookDescription() { + return hookDescription; + } + + public void setHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + } + + public ShowPrivateHookMetadataResponse withDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + return this; + } + + /** + * 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return defaultVersion + */ + public String getDefaultVersion() { + return defaultVersion; + } + + public void setDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + } + + public ShowPrivateHookMetadataResponse withConfiguration( + ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + return this; + } + + public ShowPrivateHookMetadataResponse withConfiguration( + Consumer _configurationSetter) { + if (this._configuration == null) { + this._configuration = new ConfigurationPrimitiveTypeHolderConfiguration(); + _configurationSetter.accept(this._configuration); + } + + return this; + } + + /** + * Get _configuration + * @return _configuration + */ + public ConfigurationPrimitiveTypeHolderConfiguration getConfiguration() { + return _configuration; + } + + public void setConfiguration(ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + } + + public ShowPrivateHookMetadataResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 私有Hook(private-hook)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowPrivateHookMetadataResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 私有Hook(private-hook)的更新时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowPrivateHookMetadataResponse that = (ShowPrivateHookMetadataResponse) obj; + return Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookId, that.hookId) + && Objects.equals(this.hookDescription, that.hookDescription) + && Objects.equals(this.defaultVersion, that.defaultVersion) + && Objects.equals(this._configuration, that._configuration) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(hookName, hookId, hookDescription, defaultVersion, _configuration, createTime, updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowPrivateHookMetadataResponse {\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append(" hookDescription: ").append(toIndentedString(hookDescription)).append("\n"); + sb.append(" defaultVersion: ").append(toIndentedString(defaultVersion)).append("\n"); + sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookVersionMetadataRequest.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookVersionMetadataRequest.java new file mode 100644 index 0000000000..d8eaf2884a --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookVersionMetadataRequest.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowPrivateHookVersionMetadataRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Client-Request-Id") + + private String clientRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version") + + private String hookVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + public ShowPrivateHookVersionMetadataRequest withClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + * @return clientRequestId + */ + public String getClientRequestId() { + return clientRequestId; + } + + public void setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + } + + public ShowPrivateHookVersionMetadataRequest withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public ShowPrivateHookVersionMetadataRequest withHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + return this; + } + + /** + * 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return hookVersion + */ + public String getHookVersion() { + return hookVersion; + } + + public void setHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + } + + public ShowPrivateHookVersionMetadataRequest withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowPrivateHookVersionMetadataRequest that = (ShowPrivateHookVersionMetadataRequest) obj; + return Objects.equals(this.clientRequestId, that.clientRequestId) + && Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookVersion, that.hookVersion) + && Objects.equals(this.hookId, that.hookId); + } + + @Override + public int hashCode() { + return Objects.hash(clientRequestId, hookName, hookVersion, hookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowPrivateHookVersionMetadataRequest {\n"); + sb.append(" clientRequestId: ").append(toIndentedString(clientRequestId)).append("\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookVersion: ").append(toIndentedString(hookVersion)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookVersionMetadataResponse.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookVersionMetadataResponse.java new file mode 100644 index 0000000000..1d8c9cc3ad --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/ShowPrivateHookVersionMetadataResponse.java @@ -0,0 +1,168 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowPrivateHookVersionMetadataResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version") + + private String hookVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_version_description") + + private String hookVersionDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + public ShowPrivateHookVersionMetadataResponse withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public ShowPrivateHookVersionMetadataResponse withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + public ShowPrivateHookVersionMetadataResponse withHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + return this; + } + + /** + * 私有hook的版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return hookVersion + */ + public String getHookVersion() { + return hookVersion; + } + + public void setHookVersion(String hookVersion) { + this.hookVersion = hookVersion; + } + + public ShowPrivateHookVersionMetadataResponse withHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + return this; + } + + /** + * 私有hook版本的描述。可用于客户识别创建私有hook的版本。注意:hook版本为不可更新(immutable),所以该字段不可更新,如果需要更新,请删除后重建。 + * @return hookVersionDescription + */ + public String getHookVersionDescription() { + return hookVersionDescription; + } + + public void setHookVersionDescription(String hookVersionDescription) { + this.hookVersionDescription = hookVersionDescription; + } + + public ShowPrivateHookVersionMetadataResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 私有Hook Version(private-hook-version)的生成时间,格式为YYYY-MM-DDTHH:mm:ss.SSSZ,精确到毫秒,UTC时区,即,如1970-01-01T00:00:00.000Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowPrivateHookVersionMetadataResponse that = (ShowPrivateHookVersionMetadataResponse) obj; + return Objects.equals(this.hookName, that.hookName) && Objects.equals(this.hookId, that.hookId) + && Objects.equals(this.hookVersion, that.hookVersion) + && Objects.equals(this.hookVersionDescription, that.hookVersionDescription) + && Objects.equals(this.createTime, that.createTime); + } + + @Override + public int hashCode() { + return Objects.hash(hookName, hookId, hookVersion, hookVersionDescription, createTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowPrivateHookVersionMetadataResponse {\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append(" hookVersion: ").append(toIndentedString(hookVersion)).append("\n"); + sb.append(" hookVersionDescription: ").append(toIndentedString(hookVersionDescription)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataRequest.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataRequest.java new file mode 100644 index 0000000000..e889fcc0da --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdatePrivateHookMetadataRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Client-Request-Id") + + private String clientRequestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_name") + + private String hookName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdatePrivateHookMetadataRequestBody body; + + public UpdatePrivateHookMetadataRequest withClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * 用户指定的,对于此请求的唯一Id,用于定位某个请求,推荐使用UUID + * @return clientRequestId + */ + public String getClientRequestId() { + return clientRequestId; + } + + public void setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + } + + public UpdatePrivateHookMetadataRequest withHookName(String hookName) { + this.hookName = hookName; + return this; + } + + /** + * 私有hook的名字。此名字在domain_id+region下应唯一,可以使用中文、大小写英文、数字、下划线、中划线。首字符需为中文或者英文,区分大小写。 推荐用户使用三段命名空间:{自定义hook名称}-{hook应用场景}-hook。 + * @return hookName + */ + public String getHookName() { + return hookName; + } + + public void setHookName(String hookName) { + this.hookName = hookName; + } + + public UpdatePrivateHookMetadataRequest withBody(UpdatePrivateHookMetadataRequestBody body) { + this.body = body; + return this; + } + + public UpdatePrivateHookMetadataRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdatePrivateHookMetadataRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdatePrivateHookMetadataRequestBody getBody() { + return body; + } + + public void setBody(UpdatePrivateHookMetadataRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdatePrivateHookMetadataRequest that = (UpdatePrivateHookMetadataRequest) obj; + return Objects.equals(this.clientRequestId, that.clientRequestId) + && Objects.equals(this.hookName, that.hookName) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(clientRequestId, hookName, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePrivateHookMetadataRequest {\n"); + sb.append(" clientRequestId: ").append(toIndentedString(clientRequestId)).append("\n"); + sb.append(" hookName: ").append(toIndentedString(hookName)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataRequestBody.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataRequestBody.java new file mode 100644 index 0000000000..7d8f4e0b63 --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataRequestBody.java @@ -0,0 +1,155 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * UpdatePrivateHookMetadataRequestBody + */ +public class UpdatePrivateHookMetadataRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_description") + + private String hookDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hook_id") + + private String hookId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "default_version") + + private String defaultVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configuration") + + private ConfigurationPrimitiveTypeHolderConfiguration _configuration; + + public UpdatePrivateHookMetadataRequestBody withHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + return this; + } + + /** + * 私有hook的描述。可用于客户识别创建的私有hook。可通过UpdatePrivateHook API更新私有hook的描述。 + * @return hookDescription + */ + public String getHookDescription() { + return hookDescription; + } + + public void setHookDescription(String hookDescription) { + this.hookDescription = hookDescription; + } + + public UpdatePrivateHookMetadataRequestBody withHookId(String hookId) { + this.hookId = hookId; + return this; + } + + /** + * 私有hook(private-hook)的唯一Id。 此Id由资源编排服务在生成私有hook的时候生成,为UUID。 由于私有hook名称仅仅在同一时间下唯一,即用户允许先生成一个叫HelloWorld的私有hook,删除,再重新创建一个同名私有hook。 对于团队并行开发,用户可能希望确保,当前我操作的私有hook就是我认为的那个,而不是其他队友删除后创建的同名私有hook。因此,使用Id就可以做到强匹配。 资源编排服务保证每次创建的私有hook所对应的Id都不相同,更新不会影响Id。如果给与的hook_id和当前hook的Id不一致,则返回400。 + * @return hookId + */ + public String getHookId() { + return hookId; + } + + public void setHookId(String hookId) { + this.hookId = hookId; + } + + public UpdatePrivateHookMetadataRequestBody withDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + return this; + } + + /** + * 私有hook的默认版本号。版本号必须遵循语义化版本号(Semantic Version),为用户自定义。 + * @return defaultVersion + */ + public String getDefaultVersion() { + return defaultVersion; + } + + public void setDefaultVersion(String defaultVersion) { + this.defaultVersion = defaultVersion; + } + + public UpdatePrivateHookMetadataRequestBody withConfiguration( + ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + return this; + } + + public UpdatePrivateHookMetadataRequestBody withConfiguration( + Consumer _configurationSetter) { + if (this._configuration == null) { + this._configuration = new ConfigurationPrimitiveTypeHolderConfiguration(); + _configurationSetter.accept(this._configuration); + } + + return this; + } + + /** + * Get _configuration + * @return _configuration + */ + public ConfigurationPrimitiveTypeHolderConfiguration getConfiguration() { + return _configuration; + } + + public void setConfiguration(ConfigurationPrimitiveTypeHolderConfiguration _configuration) { + this._configuration = _configuration; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdatePrivateHookMetadataRequestBody that = (UpdatePrivateHookMetadataRequestBody) obj; + return Objects.equals(this.hookDescription, that.hookDescription) && Objects.equals(this.hookId, that.hookId) + && Objects.equals(this.defaultVersion, that.defaultVersion) + && Objects.equals(this._configuration, that._configuration); + } + + @Override + public int hashCode() { + return Objects.hash(hookDescription, hookId, defaultVersion, _configuration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePrivateHookMetadataRequestBody {\n"); + sb.append(" hookDescription: ").append(toIndentedString(hookDescription)).append("\n"); + sb.append(" hookId: ").append(toIndentedString(hookId)).append("\n"); + sb.append(" defaultVersion: ").append(toIndentedString(defaultVersion)).append("\n"); + sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataResponse.java b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataResponse.java new file mode 100644 index 0000000000..b69c11915c --- /dev/null +++ b/services/aos/src/main/java/com/huaweicloud/sdk/aos/v1/model/UpdatePrivateHookMetadataResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.aos.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdatePrivateHookMetadataResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePrivateHookMetadataResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/apig/pom.xml b/services/apig/pom.xml index 4817607ec7..76d98b3e51 100644 --- a/services/apig/pom.xml +++ b/services/apig/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.108 + 3.1.109 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index 896c6eb8d5..255cd5d8be 100644 --- a/services/apm/pom.xml +++ b/services/apm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.108 + 3.1.109 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/as/pom.xml b/services/as/pom.xml index cb991da29d..35335f81b4 100644 --- a/services/as/pom.xml +++ b/services/as/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.108 + 3.1.109 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/asm/pom.xml b/services/asm/pom.xml index 5d92f0b66b..fe8b4b6f80 100644 --- a/services/asm/pom.xml +++ b/services/asm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.108 + 3.1.109 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index c9168c592d..9f533d80de 100644 --- a/services/bcs/pom.xml +++ b/services/bcs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.108 + 3.1.109 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index 7801fe2efe..975494a56d 100644 --- a/services/bms/pom.xml +++ b/services/bms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.108 + 3.1.109 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index 3f118ebc7b..8a4a859b9b 100644 --- a/services/bss/pom.xml +++ b/services/bss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.108 + 3.1.109 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index 892a60b1d6..1cf1d2ff99 100644 --- a/services/bssintl/pom.xml +++ b/services/bssintl/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.108 + 3.1.109 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cae/pom.xml b/services/cae/pom.xml index f7bd60ac91..fbd1d9126d 100644 --- a/services/cae/pom.xml +++ b/services/cae/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.108 + 3.1.109 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/campusgo/pom.xml b/services/campusgo/pom.xml index 255dd27268..4a4fb3c1a8 100644 --- a/services/campusgo/pom.xml +++ b/services/campusgo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.108 + 3.1.109 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index 84302770fc..0336001536 100644 --- a/services/cbh/pom.xml +++ b/services/cbh/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.108 + 3.1.109 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index 652800a21f..3a05b63dcb 100644 --- a/services/cbr/pom.xml +++ b/services/cbr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.108 + 3.1.109 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index 306e9176db..2ebc3a7ff1 100644 --- a/services/cbs/pom.xml +++ b/services/cbs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.108 + 3.1.109 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index 2eb068c6b1..e492115a60 100644 --- a/services/cc/pom.xml +++ b/services/cc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.108 + 3.1.109 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index 16213a8642..302c958274 100644 --- a/services/cce/pom.xml +++ b/services/cce/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.108 + 3.1.109 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java index 78db806e00..0ed01c0d79 100644 --- a/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java +++ b/services/cce/src/main/java/com/huaweicloud/sdk/cce/v3/region/CceRegion.java @@ -79,6 +79,8 @@ public class CceRegion { public static final Region CN_EAST_4 = new Region("cn-east-4", "https://cce.cn-east-4.myhuaweicloud.com"); + public static final Region AF_NORTH_1 = new Region("af-north-1", "https://cce.af-north-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("CCE"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -114,6 +116,7 @@ private static Map createStaticFields() { map.put("ru-moscow-1", RU_MOSCOW_1); map.put("me-east-1", ME_EAST_1); map.put("cn-east-4", CN_EAST_4); + map.put("af-north-1", AF_NORTH_1); return Collections.unmodifiableMap(map); } diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index 910cecbb01..56ee39be6f 100644 --- a/services/ccm/pom.xml +++ b/services/ccm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.108 + 3.1.109 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index a33a827a8f..4e18c7d37a 100644 --- a/services/cdm/pom.xml +++ b/services/cdm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.108 + 3.1.109 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index eaa7099840..76c7c39646 100644 --- a/services/cdn/pom.xml +++ b/services/cdn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.108 + 3.1.109 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ces/pom.xml b/services/ces/pom.xml index 9806477648..eab1af62e3 100644 --- a/services/ces/pom.xml +++ b/services/ces/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.108 + 3.1.109 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index 556dd59df0..98f255e4c4 100644 --- a/services/cfw/pom.xml +++ b/services/cfw/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.108 + 3.1.109 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index cb69582c9f..e2e702a3c9 100644 --- a/services/cgs/pom.xml +++ b/services/cgs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.108 + 3.1.109 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index 6ff406071b..0228c2b002 100644 --- a/services/classroom/pom.xml +++ b/services/classroom/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.108 + 3.1.109 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index 28fc134e92..d8bad65bc8 100644 --- a/services/cloudide/pom.xml +++ b/services/cloudide/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.108 + 3.1.109 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index 9c9640e0f6..2049da5fcd 100644 --- a/services/cloudpond/pom.xml +++ b/services/cloudpond/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.108 + 3.1.109 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index 4afbe53fb6..572b7acf8f 100644 --- a/services/cloudrtc/pom.xml +++ b/services/cloudrtc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.108 + 3.1.109 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index 924b26826e..a8aafe6d7f 100644 --- a/services/cloudtable/pom.xml +++ b/services/cloudtable/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.108 + 3.1.109 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index 83c386d45b..dde39e3c76 100644 --- a/services/cloudtest/pom.xml +++ b/services/cloudtest/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.108 + 3.1.109 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cms/pom.xml b/services/cms/pom.xml index d0f72eb901..1a21f32657 100644 --- a/services/cms/pom.xml +++ b/services/cms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.108 + 3.1.109 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index f132dcf680..7c4e286cb5 100644 --- a/services/codeartsartifact/pom.xml +++ b/services/codeartsartifact/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index 0ea5b40e1d..afc6712d43 100644 --- a/services/codeartsbuild/pom.xml +++ b/services/codeartsbuild/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index da196ee44d..ca7f11675d 100644 --- a/services/codeartscheck/pom.xml +++ b/services/codeartscheck/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index aab783e550..fb73681949 100644 --- a/services/codeartsdeploy/pom.xml +++ b/services/codeartsdeploy/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codeartsgovernance/pom.xml b/services/codeartsgovernance/pom.xml index ba162002ab..2f9d473990 100644 --- a/services/codeartsgovernance/pom.xml +++ b/services/codeartsgovernance/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsgovernance - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEARTSGOVERNANCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index 8f737b89b1..a0618e7068 100644 --- a/services/codeartsinspector/pom.xml +++ b/services/codeartsinspector/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index df052a3b89..0f43576153 100644 --- a/services/codeartspipeline/pom.xml +++ b/services/codeartspipeline/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index 59d0e4b59f..32da2a1adf 100644 --- a/services/codecraft/pom.xml +++ b/services/codecraft/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index 62db49971b..f1aa56e62b 100644 --- a/services/codehub/pom.xml +++ b/services/codehub/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.108 + 3.1.109 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/config/pom.xml b/services/config/pom.xml index c8630e1fd4..e5f3a5b3de 100644 --- a/services/config/pom.xml +++ b/services/config/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.108 + 3.1.109 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java index 2e3af1ed36..94acaef7ed 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/ConfigMeta.java @@ -2202,12 +2202,6 @@ private static HttpRequestDef f.withMarshaller(ListRemediationExceptionsRequest::getResourceId, ListRemediationExceptionsRequest::setResourceId)); - builder.withRequestField("resource_name", - LocationType.Query, - FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListRemediationExceptionsRequest::getResourceName, - ListRemediationExceptionsRequest::setResourceName)); // response diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java index 43a260b7cb..03ea59f594 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/CreateOrUpdateRemediationConfigurationResponse.java @@ -195,7 +195,7 @@ public CreateOrUpdateRemediationConfigurationResponse withMaximumAttempts(Intege } /** - * 指定时间内自动修正的最大尝试次数。 + * 指定时间内修正的最大尝试次数。 * minimum: 1 * maximum: 25 * @return maximumAttempts diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java index 081ce1663a..b975b3d719 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ListRemediationExceptionsRequest.java @@ -30,11 +30,6 @@ public class ListRemediationExceptionsRequest { private String resourceId; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "resource_name") - - private String resourceName; - public ListRemediationExceptionsRequest withPolicyAssignmentId(String policyAssignmentId) { this.policyAssignmentId = policyAssignmentId; return this; @@ -105,23 +100,6 @@ public void setResourceId(String resourceId) { this.resourceId = resourceId; } - public ListRemediationExceptionsRequest withResourceName(String resourceName) { - this.resourceName = resourceName; - return this; - } - - /** - * 资源名称 - * @return resourceName - */ - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -133,12 +111,12 @@ public boolean equals(java.lang.Object obj) { ListRemediationExceptionsRequest that = (ListRemediationExceptionsRequest) obj; return Objects.equals(this.policyAssignmentId, that.policyAssignmentId) && Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker) - && Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.resourceName, that.resourceName); + && Objects.equals(this.resourceId, that.resourceId); } @Override public int hashCode() { - return Objects.hash(policyAssignmentId, limit, marker, resourceId, resourceName); + return Objects.hash(policyAssignmentId, limit, marker, resourceId); } @Override @@ -149,7 +127,6 @@ public String toString() { sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); - sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java index fb52867157..49fba4c8a1 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/RemediationConfigurationRequestBody.java @@ -321,7 +321,7 @@ public RemediationConfigurationRequestBody withMaximumAttempts(Integer maximumAt } /** - * 指定时间内自动修正的最大尝试次数。 + * 指定时间内修正的最大尝试次数。 * minimum: 1 * maximum: 25 * @return maximumAttempts diff --git a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java index 2fdd3cb5ea..12b8dd919e 100644 --- a/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java +++ b/services/config/src/main/java/com/huaweicloud/sdk/config/v1/model/ShowRemediationConfigurationResponse.java @@ -192,7 +192,7 @@ public ShowRemediationConfigurationResponse withMaximumAttempts(Integer maximumA } /** - * 指定时间内自动修正的最大尝试次数。 + * 指定时间内修正的最大尝试次数。 * minimum: 1 * maximum: 25 * @return maximumAttempts diff --git a/services/cph/pom.xml b/services/cph/pom.xml index 9d03e8a529..68e9a9ed12 100644 --- a/services/cph/pom.xml +++ b/services/cph/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.108 + 3.1.109 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index c522b548c8..5714dc00a7 100644 --- a/services/cpts/pom.xml +++ b/services/cpts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.108 + 3.1.109 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index 04299ee36a..c011a340b3 100644 --- a/services/cse/pom.xml +++ b/services/cse/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.108 + 3.1.109 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/csms/pom.xml b/services/csms/pom.xml index 6149879d4c..3173249797 100644 --- a/services/csms/pom.xml +++ b/services/csms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.108 + 3.1.109 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/css/pom.xml b/services/css/pom.xml index 26c57a38cf..dd131e1538 100644 --- a/services/css/pom.xml +++ b/services/css/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.108 + 3.1.109 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index c68a2b61b5..161d44ad38 100644 --- a/services/cts/pom.xml +++ b/services/cts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.108 + 3.1.109 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/das/pom.xml b/services/das/pom.xml index ed80dbb374..643624fa4b 100644 --- a/services/das/pom.xml +++ b/services/das/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.108 + 3.1.109 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index 31dfb68ab9..ec8fab4dde 100644 --- a/services/dataartsinsight/pom.xml +++ b/services/dataartsinsight/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.108 + 3.1.109 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index cddaa4b980..743162e25a 100644 --- a/services/dataartsstudio/pom.xml +++ b/services/dataartsstudio/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.108 + 3.1.109 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dbss/pom.xml b/services/dbss/pom.xml index 16d0f0f715..72a17d7c2e 100644 --- a/services/dbss/pom.xml +++ b/services/dbss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.108 + 3.1.109 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index 7efb15660f..ad15ce809e 100644 --- a/services/dc/pom.xml +++ b/services/dc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.108 + 3.1.109 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index 79f75cf17c..5353f012f5 100644 --- a/services/dcs/pom.xml +++ b/services/dcs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.108 + 3.1.109 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index 8bd676874d..f5a82d210a 100644 --- a/services/ddm/pom.xml +++ b/services/ddm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.108 + 3.1.109 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index ea263170f1..e9735c43fd 100644 --- a/services/dds/pom.xml +++ b/services/dds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.108 + 3.1.109 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/deh/pom.xml b/services/deh/pom.xml index 2b1baa0aa8..1252b006b5 100644 --- a/services/deh/pom.xml +++ b/services/deh/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.108 + 3.1.109 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index 214cf3b84f..e0aec1d538 100644 --- a/services/devstar/pom.xml +++ b/services/devstar/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.108 + 3.1.109 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index c0731ced97..5279c87ca0 100644 --- a/services/dgc/pom.xml +++ b/services/dgc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.108 + 3.1.109 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/JobInfo.java b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/JobInfo.java index 7049ed7a99..5fee9aa64e 100644 --- a/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/JobInfo.java +++ b/services/dgc/src/main/java/com/huaweicloud/sdk/dgc/v1/model/JobInfo.java @@ -43,6 +43,21 @@ public class JobInfo { private String directory; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cleanOverdueDays") + + private Integer cleanOverdueDays; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cleanWaitingJob") + + private String cleanWaitingJob; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "emptyRunningJob") + + private String emptyRunningJob; + /** * 作业类型,REAL_TIME: 实时处理,BATCH:批处理 */ @@ -503,6 +518,57 @@ public void setDirectory(String directory) { this.directory = directory; } + public JobInfo withCleanOverdueDays(Integer cleanOverdueDays) { + this.cleanOverdueDays = cleanOverdueDays; + return this; + } + + /** + * 设置作业的最大超时时间。 + * @return cleanOverdueDays + */ + public Integer getCleanOverdueDays() { + return cleanOverdueDays; + } + + public void setCleanOverdueDays(Integer cleanOverdueDays) { + this.cleanOverdueDays = cleanOverdueDays; + } + + public JobInfo withCleanWaitingJob(String cleanWaitingJob) { + this.cleanWaitingJob = cleanWaitingJob; + return this; + } + + /** + * 清除等待的作业。 + * @return cleanWaitingJob + */ + public String getCleanWaitingJob() { + return cleanWaitingJob; + } + + public void setCleanWaitingJob(String cleanWaitingJob) { + this.cleanWaitingJob = cleanWaitingJob; + } + + public JobInfo withEmptyRunningJob(String emptyRunningJob) { + this.emptyRunningJob = emptyRunningJob; + return this; + } + + /** + * 取值为0和1,1表示空跑,0表示:取消空跑,不设置该参数时,默认为0。 + * @return emptyRunningJob + */ + public String getEmptyRunningJob() { + return emptyRunningJob; + } + + public void setEmptyRunningJob(String emptyRunningJob) { + this.emptyRunningJob = emptyRunningJob; + } + public JobInfo withProcessType(ProcessTypeEnum processType) { this.processType = processType; return this; @@ -675,7 +741,11 @@ public boolean equals(java.lang.Object obj) { JobInfo that = (JobInfo) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.nodes, that.nodes) && Objects.equals(this.schedule, that.schedule) && Objects.equals(this.params, that.params) - && Objects.equals(this.directory, that.directory) && Objects.equals(this.processType, that.processType) + && Objects.equals(this.directory, that.directory) + && Objects.equals(this.cleanOverdueDays, that.cleanOverdueDays) + && Objects.equals(this.cleanWaitingJob, that.cleanWaitingJob) + && Objects.equals(this.emptyRunningJob, that.emptyRunningJob) + && Objects.equals(this.processType, that.processType) && Objects.equals(this.singleNodeJobFlag, that.singleNodeJobFlag) && Objects.equals(this.singleNodeJobType, that.singleNodeJobType) && Objects.equals(this.lastUpdateUser, that.lastUpdateUser) && Objects.equals(this.logPath, that.logPath) @@ -690,6 +760,9 @@ public int hashCode() { schedule, params, directory, + cleanOverdueDays, + cleanWaitingJob, + emptyRunningJob, processType, singleNodeJobFlag, singleNodeJobType, @@ -709,6 +782,9 @@ public String toString() { sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append(" params: ").append(toIndentedString(params)).append("\n"); sb.append(" directory: ").append(toIndentedString(directory)).append("\n"); + sb.append(" cleanOverdueDays: ").append(toIndentedString(cleanOverdueDays)).append("\n"); + sb.append(" cleanWaitingJob: ").append(toIndentedString(cleanWaitingJob)).append("\n"); + sb.append(" emptyRunningJob: ").append(toIndentedString(emptyRunningJob)).append("\n"); sb.append(" processType: ").append(toIndentedString(processType)).append("\n"); sb.append(" singleNodeJobFlag: ").append(toIndentedString(singleNodeJobFlag)).append("\n"); sb.append(" singleNodeJobType: ").append(toIndentedString(singleNodeJobType)).append("\n"); diff --git a/services/dis/pom.xml b/services/dis/pom.xml index 5b9714e9a3..6a534987ed 100644 --- a/services/dis/pom.xml +++ b/services/dis/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.108 + 3.1.109 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index caf56a5853..c536eeebc2 100644 --- a/services/dlf/pom.xml +++ b/services/dlf/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.108 + 3.1.109 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index 8b90890e9c..1d0ac2553f 100644 --- a/services/dli/pom.xml +++ b/services/dli/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.108 + 3.1.109 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dns/pom.xml b/services/dns/pom.xml index 70dca94759..6c647ff5bc 100644 --- a/services/dns/pom.xml +++ b/services/dns/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.108 + 3.1.109 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index 9554cd8dc5..694e2a2d35 100644 --- a/services/dris/pom.xml +++ b/services/dris/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.108 + 3.1.109 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index 86d5834295..5563b97112 100644 --- a/services/drs/pom.xml +++ b/services/drs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.108 + 3.1.109 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dsc/pom.xml b/services/dsc/pom.xml index 8238aa6d13..c8fc087746 100644 --- a/services/dsc/pom.xml +++ b/services/dsc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.108 + 3.1.109 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index 932bc95880..39d502f31f 100644 --- a/services/dss/pom.xml +++ b/services/dss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.108 + 3.1.109 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index 8671ea8a43..d2486912f8 100644 --- a/services/dwr/pom.xml +++ b/services/dwr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.108 + 3.1.109 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index 4528b37c82..e4901bb40d 100644 --- a/services/dws/pom.xml +++ b/services/dws/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.108 + 3.1.109 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ec/pom.xml b/services/ec/pom.xml index f5f428c506..7d2a8ecf8e 100644 --- a/services/ec/pom.xml +++ b/services/ec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.108 + 3.1.109 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index accc1c26d5..cd7fb7ec4a 100644 --- a/services/ecs/pom.xml +++ b/services/ecs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.108 + 3.1.109 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 ch.qos.logback diff --git a/services/edgesec/pom.xml b/services/edgesec/pom.xml index 7e742e048d..ae8aaa38b0 100644 --- a/services/edgesec/pom.xml +++ b/services/edgesec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.108 + 3.1.109 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index edc9568aca..efec48d59a 100644 --- a/services/eds/pom.xml +++ b/services/eds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.108 + 3.1.109 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index 4b636932f3..18a7f00333 100644 --- a/services/eg/pom.xml +++ b/services/eg/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.108 + 3.1.109 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index bccb902e99..8ff5c8d6bd 100644 --- a/services/eihealth/pom.xml +++ b/services/eihealth/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.108 + 3.1.109 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.java index 9bf2bb02d7..f442cb47a3 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthAsyncClient.java @@ -61,6 +61,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateCodeResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterRequest; @@ -91,6 +93,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugModelResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateFepJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateFepJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateGenJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateGenJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateGenerationTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateGenerationTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateImageRequest; @@ -135,6 +139,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisTaskResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateTargetOptJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateTargetOptJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateTemplateRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateTemplateResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateUserRequest; @@ -249,6 +255,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListAutoJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListBackupRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListBackupResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListBaseModelRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListBaseModelResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListBucketRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListBucketResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListCheckpointRequest; @@ -393,6 +401,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.RunDrugLigandToSmilesConversionResponse; import com.huaweicloud.sdk.eihealth.v1.model.RunDrugReceptorPreprocessRequest; import com.huaweicloud.sdk.eihealth.v1.model.RunDrugReceptorPreprocessResponse; +import com.huaweicloud.sdk.eihealth.v1.model.RunFastaPreprocessRequest; +import com.huaweicloud.sdk.eihealth.v1.model.RunFastaPreprocessResponse; import com.huaweicloud.sdk.eihealth.v1.model.Show3dStructureContentRequest; import com.huaweicloud.sdk.eihealth.v1.model.Show3dStructureContentResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowAdmetJobRequest; @@ -413,6 +423,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowBmsDevicesResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowBucketStorageRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowBucketStorageResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowCustomPropsTaskResultRequest; @@ -439,6 +451,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowExtremumInfoResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowFepJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowFepJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowGenJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowGenJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowGenerationTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowGenerationTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowInstanceRequest; @@ -513,6 +527,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisTaskResultResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowTargetOptJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowTargetOptJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskEventsRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskEventsResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskInstanceEventsRequest; @@ -1638,6 +1654,35 @@ public AsyncInvoker createFepJobAsync return new AsyncInvoker<>(request, EiHealthMeta.createFepJob, hcClient); } + /** + * 创建分子生成作业 + * + * 创建分子生成作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateGenJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createGenJobAsync(CreateGenJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.createGenJob); + } + + /** + * 创建分子生成作业 + * + * 创建分子生成作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateGenJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createGenJobAsyncInvoker( + CreateGenJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.createGenJob, hcClient); + } + /** * 创建镜像 * @@ -2075,6 +2120,35 @@ public AsyncInvoker creat return new AsyncInvoker<>(request, EiHealthMeta.createSynthesisJob, hcClient); } + /** + * 创建靶点优化作业 + * + * 创建靶点优化作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateTargetOptJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createTargetOptJobAsync(CreateTargetOptJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.createTargetOptJob); + } + + /** + * 创建靶点优化作业 + * + * 创建靶点优化作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateTargetOptJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createTargetOptJobAsyncInvoker( + CreateTargetOptJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.createTargetOptJob, hcClient); + } + /** * 创建模板 * @@ -3486,6 +3560,35 @@ public AsyncInvoker listBackupAsyncInvoke return new AsyncInvoker<>(request, EiHealthMeta.listBackup, hcClient); } + /** + * 获取基模型列表 + * + * 获取基模型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBaseModelRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listBaseModelAsync(ListBaseModelRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.listBaseModel); + } + + /** + * 获取基模型列表 + * + * 获取基模型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBaseModelRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listBaseModelAsyncInvoker( + ListBaseModelRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.listBaseModel, hcClient); + } + /** * 获取桶列表 * @@ -5128,6 +5231,35 @@ public AsyncInvoker retryJobAsyncInvoker(Retr return new AsyncInvoker<>(request, EiHealthMeta.retryJob, hcClient); } + /** + * 受体预处理(Fasta格式) + * + * 受体预处理(Fasta格式),用于前端计算预期扣费次数 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunFastaPreprocessRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture runFastaPreprocessAsync(RunFastaPreprocessRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.runFastaPreprocess); + } + + /** + * 受体预处理(Fasta格式) + * + * 受体预处理(Fasta格式),用于前端计算预期扣费次数 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunFastaPreprocessRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker runFastaPreprocessAsyncInvoker( + RunFastaPreprocessRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.runFastaPreprocess, hcClient); + } + /** * 获取生成study作业3D结构的内容 * @@ -5644,6 +5776,34 @@ public AsyncInvoker showFepJobAsyncInvoke return new AsyncInvoker<>(request, EiHealthMeta.showFepJob, hcClient); } + /** + * 查询分子生成作业详情 + * + * 查询分子生成作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowGenJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showGenJobAsync(ShowGenJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.showGenJob); + } + + /** + * 查询分子生成作业详情 + * + * 查询分子生成作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowGenJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showGenJobAsyncInvoker(ShowGenJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.showGenJob, hcClient); + } + /** * 查询实例详情 * @@ -6315,6 +6475,35 @@ public AsyncInvoker showSynth return new AsyncInvoker<>(request, EiHealthMeta.showSynthesisJob, hcClient); } + /** + * 查询靶点优化作业详情 + * + * 查询靶点优化作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTargetOptJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showTargetOptJobAsync(ShowTargetOptJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.showTargetOptJob); + } + + /** + * 查询靶点优化作业详情 + * + * 查询靶点优化作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTargetOptJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showTargetOptJobAsyncInvoker( + ShowTargetOptJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.showTargetOptJob, hcClient); + } + /** * 获取子任务启动事件 * @@ -7937,6 +8126,35 @@ public AsyncInvoker sho return new AsyncInvoker<>(request, EiHealthMeta.showAdmetProperties, hcClient); } + /** + * 创建CPI作业 + * + * 创建CPI作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCpiJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createCpiJobAsync(CreateCpiJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.createCpiJob); + } + + /** + * 创建CPI作业 + * + * 创建CPI作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCpiJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createCpiJobAsyncInvoker( + CreateCpiJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.createCpiJob, hcClient); + } + /** * 新建CPI任务接口 * @@ -7966,6 +8184,34 @@ public AsyncInvoker createCpiTaskAs return new AsyncInvoker<>(request, EiHealthMeta.createCpiTask, hcClient); } + /** + * 查询CPI作业详情 + * + * 查询CPI作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowCpiJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showCpiJobAsync(ShowCpiJobRequest request) { + return hcClient.asyncInvokeHttp(request, EiHealthMeta.showCpiJob); + } + + /** + * 查询CPI作业详情 + * + * 查询CPI作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowCpiJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showCpiJobAsyncInvoker(ShowCpiJobRequest request) { + return new AsyncInvoker<>(request, EiHealthMeta.showCpiJob, hcClient); + } + /** * 查询CPI任务 * diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.java index 820235d52a..bcce6a70c0 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthClient.java @@ -61,6 +61,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateCodeResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterRequest; @@ -91,6 +93,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateDrugModelResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateFepJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateFepJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateGenJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateGenJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateGenerationTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateGenerationTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateImageRequest; @@ -135,6 +139,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisTaskResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateTargetOptJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateTargetOptJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateTemplateRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateTemplateResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateUserRequest; @@ -249,6 +255,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListAutoJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListBackupRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListBackupResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListBaseModelRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListBaseModelResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListBucketRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListBucketResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListCheckpointRequest; @@ -393,6 +401,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.RunDrugLigandToSmilesConversionResponse; import com.huaweicloud.sdk.eihealth.v1.model.RunDrugReceptorPreprocessRequest; import com.huaweicloud.sdk.eihealth.v1.model.RunDrugReceptorPreprocessResponse; +import com.huaweicloud.sdk.eihealth.v1.model.RunFastaPreprocessRequest; +import com.huaweicloud.sdk.eihealth.v1.model.RunFastaPreprocessResponse; import com.huaweicloud.sdk.eihealth.v1.model.Show3dStructureContentRequest; import com.huaweicloud.sdk.eihealth.v1.model.Show3dStructureContentResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowAdmetJobRequest; @@ -413,6 +423,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowBmsDevicesResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowBucketStorageRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowBucketStorageResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowCustomPropsTaskResultRequest; @@ -439,6 +451,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowExtremumInfoResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowFepJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowFepJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowGenJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowGenJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowGenerationTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowGenerationTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowInstanceRequest; @@ -513,6 +527,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisTaskResultResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowTargetOptJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowTargetOptJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskEventsRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskEventsResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskInstanceEventsRequest; @@ -1625,6 +1641,34 @@ public SyncInvoker createFepJobInvoke return new SyncInvoker<>(request, EiHealthMeta.createFepJob, hcClient); } + /** + * 创建分子生成作业 + * + * 创建分子生成作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateGenJobRequest 请求对象 + * @return CreateGenJobResponse + */ + public CreateGenJobResponse createGenJob(CreateGenJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.createGenJob); + } + + /** + * 创建分子生成作业 + * + * 创建分子生成作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateGenJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createGenJobInvoker(CreateGenJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.createGenJob, hcClient); + } + /** * 创建镜像 * @@ -2055,6 +2099,35 @@ public SyncInvoker create return new SyncInvoker<>(request, EiHealthMeta.createSynthesisJob, hcClient); } + /** + * 创建靶点优化作业 + * + * 创建靶点优化作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateTargetOptJobRequest 请求对象 + * @return CreateTargetOptJobResponse + */ + public CreateTargetOptJobResponse createTargetOptJob(CreateTargetOptJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.createTargetOptJob); + } + + /** + * 创建靶点优化作业 + * + * 创建靶点优化作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateTargetOptJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createTargetOptJobInvoker( + CreateTargetOptJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.createTargetOptJob, hcClient); + } + /** * 创建模板 * @@ -3453,6 +3526,34 @@ public SyncInvoker listBackupInvoker(List return new SyncInvoker<>(request, EiHealthMeta.listBackup, hcClient); } + /** + * 获取基模型列表 + * + * 获取基模型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBaseModelRequest 请求对象 + * @return ListBaseModelResponse + */ + public ListBaseModelResponse listBaseModel(ListBaseModelRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.listBaseModel); + } + + /** + * 获取基模型列表 + * + * 获取基模型列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBaseModelRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listBaseModelInvoker(ListBaseModelRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.listBaseModel, hcClient); + } + /** * 获取桶列表 * @@ -5070,6 +5171,35 @@ public SyncInvoker retryJobInvoker(RetryJobRe return new SyncInvoker<>(request, EiHealthMeta.retryJob, hcClient); } + /** + * 受体预处理(Fasta格式) + * + * 受体预处理(Fasta格式),用于前端计算预期扣费次数 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunFastaPreprocessRequest 请求对象 + * @return RunFastaPreprocessResponse + */ + public RunFastaPreprocessResponse runFastaPreprocess(RunFastaPreprocessRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.runFastaPreprocess); + } + + /** + * 受体预处理(Fasta格式) + * + * 受体预处理(Fasta格式),用于前端计算预期扣费次数 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RunFastaPreprocessRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker runFastaPreprocessInvoker( + RunFastaPreprocessRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.runFastaPreprocess, hcClient); + } + /** * 获取生成study作业3D结构的内容 * @@ -5583,6 +5713,34 @@ public SyncInvoker showFepJobInvoker(Show return new SyncInvoker<>(request, EiHealthMeta.showFepJob, hcClient); } + /** + * 查询分子生成作业详情 + * + * 查询分子生成作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowGenJobRequest 请求对象 + * @return ShowGenJobResponse + */ + public ShowGenJobResponse showGenJob(ShowGenJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.showGenJob); + } + + /** + * 查询分子生成作业详情 + * + * 查询分子生成作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowGenJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showGenJobInvoker(ShowGenJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.showGenJob, hcClient); + } + /** * 查询实例详情 * @@ -6240,6 +6398,35 @@ public SyncInvoker showSynthe return new SyncInvoker<>(request, EiHealthMeta.showSynthesisJob, hcClient); } + /** + * 查询靶点优化作业详情 + * + * 查询靶点优化作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTargetOptJobRequest 请求对象 + * @return ShowTargetOptJobResponse + */ + public ShowTargetOptJobResponse showTargetOptJob(ShowTargetOptJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.showTargetOptJob); + } + + /** + * 查询靶点优化作业详情 + * + * 查询靶点优化作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowTargetOptJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showTargetOptJobInvoker( + ShowTargetOptJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.showTargetOptJob, hcClient); + } + /** * 获取子任务启动事件 * @@ -7843,6 +8030,34 @@ public SyncInvoker show return new SyncInvoker<>(request, EiHealthMeta.showAdmetProperties, hcClient); } + /** + * 创建CPI作业 + * + * 创建CPI作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCpiJobRequest 请求对象 + * @return CreateCpiJobResponse + */ + public CreateCpiJobResponse createCpiJob(CreateCpiJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.createCpiJob); + } + + /** + * 创建CPI作业 + * + * 创建CPI作业 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateCpiJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createCpiJobInvoker(CreateCpiJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.createCpiJob, hcClient); + } + /** * 新建CPI任务接口 * @@ -7871,6 +8086,34 @@ public SyncInvoker createCpiTaskInv return new SyncInvoker<>(request, EiHealthMeta.createCpiTask, hcClient); } + /** + * 查询CPI作业详情 + * + * 查询CPI作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowCpiJobRequest 请求对象 + * @return ShowCpiJobResponse + */ + public ShowCpiJobResponse showCpiJob(ShowCpiJobRequest request) { + return hcClient.syncInvokeHttp(request, EiHealthMeta.showCpiJob); + } + + /** + * 查询CPI作业详情 + * + * 查询CPI作业详情 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowCpiJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showCpiJobInvoker(ShowCpiJobRequest request) { + return new SyncInvoker<>(request, EiHealthMeta.showCpiJob, hcClient); + } + /** * 查询CPI任务 * diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.java index 90570887fb..25d377bb12 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/EiHealthMeta.java @@ -88,6 +88,9 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateComputingResourceResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiJobReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateCpiTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateCssClusterReq; @@ -126,6 +129,9 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateFepJobReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateFepJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateFepJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateGenJobReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateGenJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateGenJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateGenerationTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateGenerationTaskResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateImageReq; @@ -192,6 +198,9 @@ import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisTaskRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateSynthesisTaskResponse; +import com.huaweicloud.sdk.eihealth.v1.model.CreateTargetOptJobReq; +import com.huaweicloud.sdk.eihealth.v1.model.CreateTargetOptJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.CreateTargetOptJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.CreateTemplateReq; import com.huaweicloud.sdk.eihealth.v1.model.CreateTemplateRequest; import com.huaweicloud.sdk.eihealth.v1.model.CreateTemplateResponse; @@ -326,6 +335,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ListAutoJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListBackupRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListBackupResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ListBaseModelRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ListBaseModelResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListBucketRequest; import com.huaweicloud.sdk.eihealth.v1.model.ListBucketResponse; import com.huaweicloud.sdk.eihealth.v1.model.ListCheckpointRequest; @@ -486,6 +497,9 @@ import com.huaweicloud.sdk.eihealth.v1.model.RunDrugLigandToSmilesConversionResponse; import com.huaweicloud.sdk.eihealth.v1.model.RunDrugReceptorPreprocessRequest; import com.huaweicloud.sdk.eihealth.v1.model.RunDrugReceptorPreprocessResponse; +import com.huaweicloud.sdk.eihealth.v1.model.RunFastaPreprocessReq; +import com.huaweicloud.sdk.eihealth.v1.model.RunFastaPreprocessRequest; +import com.huaweicloud.sdk.eihealth.v1.model.RunFastaPreprocessResponse; import com.huaweicloud.sdk.eihealth.v1.model.RunPocketReq; import com.huaweicloud.sdk.eihealth.v1.model.RunReceptorPreprocessReq; import com.huaweicloud.sdk.eihealth.v1.model.RunSurfacePointsReq; @@ -514,6 +528,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowBmsDevicesResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowBucketStorageRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowBucketStorageResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowCpiTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowCustomPropsTaskResultRequest; @@ -540,6 +556,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowExtremumInfoResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowFepJobRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowFepJobResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowGenJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowGenJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowGenerationTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowGenerationTaskResultResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowInstanceRequest; @@ -614,6 +632,8 @@ import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisTaskResultRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowSynthesisTaskResultResponse; +import com.huaweicloud.sdk.eihealth.v1.model.ShowTargetOptJobRequest; +import com.huaweicloud.sdk.eihealth.v1.model.ShowTargetOptJobResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskEventsRequest; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskEventsResponse; import com.huaweicloud.sdk.eihealth.v1.model.ShowTaskInstanceEventsRequest; @@ -1749,6 +1769,34 @@ private static HttpRequestDef genForC return builder.build(); } + public static final HttpRequestDef createGenJob = genForCreateGenJob(); + + private static HttpRequestDef genForCreateGenJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateGenJobRequest.class, CreateGenJobResponse.class) + .withName("CreateGenJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/generation") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateGenJobRequest::getEihealthProjectId, + CreateGenJobRequest::setEihealthProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateGenJobReq.class), + f -> f.withMarshaller(CreateGenJobRequest::getBody, CreateGenJobRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createImage = genForCreateImage(); private static HttpRequestDef genForCreateImage() { @@ -2170,6 +2218,35 @@ private static HttpRequestDef createTargetOptJob = + genForCreateTargetOptJob(); + + private static HttpRequestDef genForCreateTargetOptJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateTargetOptJobRequest.class, CreateTargetOptJobResponse.class) + .withName("CreateTargetOptJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/target-optimization") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateTargetOptJobRequest::getEihealthProjectId, + CreateTargetOptJobRequest::setEihealthProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateTargetOptJobReq.class), + f -> f.withMarshaller(CreateTargetOptJobRequest::getBody, CreateTargetOptJobRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createTemplate = genForCreateTemplate(); @@ -3594,6 +3671,44 @@ private static HttpRequestDef genForListB return builder.build(); } + public static final HttpRequestDef listBaseModel = + genForListBaseModel(); + + private static HttpRequestDef genForListBaseModel() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListBaseModelRequest.class, ListBaseModelResponse.class) + .withName("ListBaseModel") + .withUri("/v1/{project_id}/base-models") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListBaseModelRequest::getLimit, ListBaseModelRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListBaseModelRequest::getOffset, ListBaseModelRequest::setOffset)); + builder.withRequestField("sort_dir", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBaseModelRequest::getSortDir, ListBaseModelRequest::setSortDir)); + builder.withRequestField("sort_key", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBaseModelRequest::getSortKey, ListBaseModelRequest::setSortKey)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listBucket = genForListBucket(); private static HttpRequestDef genForListBucket() { @@ -4153,6 +4268,11 @@ private static HttpRequestDef genFo FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), f -> f.withMarshaller(ListDrugModelRequest::getOffset, ListDrugModelRequest::setOffset)); + builder.>withRequestField("base_model_list", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(List.class), + f -> f.withMarshaller(ListDrugModelRequest::getBaseModelList, ListDrugModelRequest::setBaseModelList)); // response @@ -5313,6 +5433,36 @@ private static HttpRequestDef genForRetryJob( return builder.build(); } + public static final HttpRequestDef runFastaPreprocess = + genForRunFastaPreprocess(); + + private static HttpRequestDef genForRunFastaPreprocess() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, RunFastaPreprocessRequest.class, RunFastaPreprocessResponse.class) + .withName("RunFastaPreprocess") + .withUri( + "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-common/receptor/fasta-preprocess") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RunFastaPreprocessRequest::getEihealthProjectId, + RunFastaPreprocessRequest::setEihealthProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(RunFastaPreprocessReq.class), + f -> f.withMarshaller(RunFastaPreprocessRequest::getBody, RunFastaPreprocessRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef show3dStructureContent = genForShow3dStructureContent(); @@ -5800,6 +5950,33 @@ private static HttpRequestDef genForShowF return builder.build(); } + public static final HttpRequestDef showGenJob = genForShowGenJob(); + + private static HttpRequestDef genForShowGenJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowGenJobRequest.class, ShowGenJobResponse.class) + .withName("ShowGenJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/generation/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowGenJobRequest::getEihealthProjectId, ShowGenJobRequest::setEihealthProjectId)); + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowGenJobRequest::getJobId, ShowGenJobRequest::setJobId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showInstance = genForShowInstance(); private static HttpRequestDef genForShowInstance() { @@ -6440,6 +6617,36 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef showTargetOptJob = + genForShowTargetOptJob(); + + private static HttpRequestDef genForShowTargetOptJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowTargetOptJobRequest.class, ShowTargetOptJobResponse.class) + .withName("ShowTargetOptJob") + .withUri( + "/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/target-optimization/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowTargetOptJobRequest::getEihealthProjectId, + ShowTargetOptJobRequest::setEihealthProjectId)); + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowTargetOptJobRequest::getJobId, ShowTargetOptJobRequest::setJobId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showTaskEvents = genForShowTaskEvents(); @@ -8118,6 +8325,34 @@ private static HttpRequestDef createCpiJob = genForCreateCpiJob(); + + private static HttpRequestDef genForCreateCpiJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateCpiJobRequest.class, CreateCpiJobResponse.class) + .withName("CreateCpiJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/cpi") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateCpiJobRequest::getEihealthProjectId, + CreateCpiJobRequest::setEihealthProjectId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateCpiJobReq.class), + f -> f.withMarshaller(CreateCpiJobRequest::getBody, CreateCpiJobRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createCpiTask = genForCreateCpiTask(); @@ -8146,6 +8381,33 @@ private static HttpRequestDef genFo return builder.build(); } + public static final HttpRequestDef showCpiJob = genForShowCpiJob(); + + private static HttpRequestDef genForShowCpiJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowCpiJobRequest.class, ShowCpiJobResponse.class) + .withName("ShowCpiJob") + .withUri("/v1/{project_id}/eihealth-projects/{eihealth_project_id}/drug-jobs/cpi/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("eihealth_project_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowCpiJobRequest::getEihealthProjectId, ShowCpiJobRequest::setEihealthProjectId)); + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowCpiJobRequest::getJobId, ShowCpiJobRequest::setJobId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showCpiTaskResult = genForShowCpiTaskResult(); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModel.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModel.java new file mode 100644 index 0000000000..6494d236e1 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModel.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 基模型 + */ +public class BaseModel { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + public BaseModel withId(String id) { + this.id = id; + return this; + } + + /** + * 基模型id + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BaseModel withName(String name) { + this.name = name; + return this; + } + + /** + * 基模型名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BaseModel that = (BaseModel) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseModel {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModelDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModelDto.java new file mode 100644 index 0000000000..5e5c9cfd70 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BaseModelDto.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BaseModelDto + */ +public class BaseModelDto { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "creator") + + private String creator; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public BaseModelDto withName(String name) { + this.name = name; + return this; + } + + /** + * 模型名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BaseModelDto withId(String id) { + this.id = id; + return this; + } + + /** + * 模型ID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BaseModelDto withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 模型创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public BaseModelDto withCreator(String creator) { + this.creator = creator; + return this; + } + + /** + * 创建模型的用户名称 + * @return creator + */ + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator; + } + + public BaseModelDto withDescription(String description) { + this.description = description; + return this; + } + + /** + * 模型描述信息 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BaseModelDto that = (BaseModelDto) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.id, that.id) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.creator, that.creator) + && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(name, id, createTime, creator, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseModelDto {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" creator: ").append(toIndentedString(creator)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java index c8768a7892..e57967100a 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/BindSiteDto.java @@ -52,7 +52,7 @@ public BindSiteDto withName(String name) { } /** - * 靶点名称 + * 靶点名称,只能设置为target1或者target2。 * @return name */ public String getName() { diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CpiReceptor.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CpiReceptor.java new file mode 100644 index 0000000000..9c5c6f0b41 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CpiReceptor.java @@ -0,0 +1,168 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * CPI受体 + */ +public class CpiReceptor { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source") + + private DrugFileSource source; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "url") + + private String url; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "format") + + private String format; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private String data; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fasta_count") + + private Integer fastaCount; + + public CpiReceptor withSource(DrugFileSource source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + public DrugFileSource getSource() { + return source; + } + + public void setSource(DrugFileSource source) { + this.source = source; + } + + public CpiReceptor withUrl(String url) { + this.url = url; + return this; + } + + /** + * 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + * @return url + */ + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public CpiReceptor withFormat(String format) { + this.format = format; + return this; + } + + /** + * 文件格式,仅支持FASTA,仅数据源为RAW时提供 + * @return format + */ + public String getFormat() { + return format; + } + + public void setFormat(String format) { + this.format = format; + } + + public CpiReceptor withData(String data) { + this.data = data; + return this; + } + + /** + * 文件原始数据,仅数据源为RAW时提供 + * @return data + */ + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public CpiReceptor withFastaCount(Integer fastaCount) { + this.fastaCount = fastaCount; + return this; + } + + /** + * fasta文件中氨基酸数量 + * minimum: 1 + * maximum: 100 + * @return fastaCount + */ + public Integer getFastaCount() { + return fastaCount; + } + + public void setFastaCount(Integer fastaCount) { + this.fastaCount = fastaCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CpiReceptor that = (CpiReceptor) obj; + return Objects.equals(this.source, that.source) && Objects.equals(this.url, that.url) + && Objects.equals(this.format, that.format) && Objects.equals(this.data, that.data) + && Objects.equals(this.fastaCount, that.fastaCount); + } + + @Override + public int hashCode() { + return Objects.hash(source, url, format, data, fastaCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CpiReceptor {\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" fastaCount: ").append(toIndentedString(fastaCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateAdmetJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateAdmetJobReq.java index a63600ae23..e9e2bebc95 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateAdmetJobReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateAdmetJobReq.java @@ -23,11 +23,21 @@ public class CreateAdmetJobReq { private MoleculeFileDto moleculeFile; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model_id") + + private String baseModelId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_ids") private List modelIds = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "save_fingerprint") + + private Boolean saveFingerprint; + public CreateAdmetJobReq withBasicInfo(CreateDrugJobBasicInfo basicInfo) { this.basicInfo = basicInfo; return this; @@ -80,6 +90,23 @@ public void setMoleculeFile(MoleculeFileDto moleculeFile) { this.moleculeFile = moleculeFile; } + public CreateAdmetJobReq withBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + return this; + } + + /** + * 基模型id + * @return baseModelId + */ + public String getBaseModelId() { + return baseModelId; + } + + public void setBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + } + public CreateAdmetJobReq withModelIds(List modelIds) { this.modelIds = modelIds; return this; @@ -113,6 +140,23 @@ public void setModelIds(List modelIds) { this.modelIds = modelIds; } + public CreateAdmetJobReq withSaveFingerprint(Boolean saveFingerprint) { + this.saveFingerprint = saveFingerprint; + return this; + } + + /** + * 是否输出表征,仅专业版平台支持 + * @return saveFingerprint + */ + public Boolean getSaveFingerprint() { + return saveFingerprint; + } + + public void setSaveFingerprint(Boolean saveFingerprint) { + this.saveFingerprint = saveFingerprint; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -123,12 +167,13 @@ public boolean equals(java.lang.Object obj) { } CreateAdmetJobReq that = (CreateAdmetJobReq) obj; return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.moleculeFile, that.moleculeFile) - && Objects.equals(this.modelIds, that.modelIds); + && Objects.equals(this.baseModelId, that.baseModelId) && Objects.equals(this.modelIds, that.modelIds) + && Objects.equals(this.saveFingerprint, that.saveFingerprint); } @Override public int hashCode() { - return Objects.hash(basicInfo, moleculeFile, modelIds); + return Objects.hash(basicInfo, moleculeFile, baseModelId, modelIds, saveFingerprint); } @Override @@ -137,7 +182,9 @@ public String toString() { sb.append("class CreateAdmetJobReq {\n"); sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); sb.append(" moleculeFile: ").append(toIndentedString(moleculeFile)).append("\n"); + sb.append(" baseModelId: ").append(toIndentedString(baseModelId)).append("\n"); sb.append(" modelIds: ").append(toIndentedString(modelIds)).append("\n"); + sb.append(" saveFingerprint: ").append(toIndentedString(saveFingerprint)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobReq.java new file mode 100644 index 0000000000..67021ba69e --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobReq.java @@ -0,0 +1,163 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 创建CPI作业请求体 + */ +public class CreateCpiJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private CreateDrugJobBasicInfo basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "receptors") + + private List receptors = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ligands") + + private List ligands = null; + + public CreateCpiJobReq withBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public CreateCpiJobReq withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new CreateDrugJobBasicInfo(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public CreateDrugJobBasicInfo getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + } + + public CreateCpiJobReq withReceptors(List receptors) { + this.receptors = receptors; + return this; + } + + public CreateCpiJobReq addReceptorsItem(CpiReceptor receptorsItem) { + if (this.receptors == null) { + this.receptors = new ArrayList<>(); + } + this.receptors.add(receptorsItem); + return this; + } + + public CreateCpiJobReq withReceptors(Consumer> receptorsSetter) { + if (this.receptors == null) { + this.receptors = new ArrayList<>(); + } + receptorsSetter.accept(this.receptors); + return this; + } + + /** + * 受体文件列表 + * @return receptors + */ + public List getReceptors() { + return receptors; + } + + public void setReceptors(List receptors) { + this.receptors = receptors; + } + + public CreateCpiJobReq withLigands(List ligands) { + this.ligands = ligands; + return this; + } + + public CreateCpiJobReq addLigandsItem(MoleculeFileDto ligandsItem) { + if (this.ligands == null) { + this.ligands = new ArrayList<>(); + } + this.ligands.add(ligandsItem); + return this; + } + + public CreateCpiJobReq withLigands(Consumer> ligandsSetter) { + if (this.ligands == null) { + this.ligands = new ArrayList<>(); + } + ligandsSetter.accept(this.ligands); + return this; + } + + /** + * 小分子 + * @return ligands + */ + public List getLigands() { + return ligands; + } + + public void setLigands(List ligands) { + this.ligands = ligands; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateCpiJobReq that = (CreateCpiJobReq) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptors, that.receptors) + && Objects.equals(this.ligands, that.ligands); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, receptors, ligands); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCpiJobReq {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" receptors: ").append(toIndentedString(receptors)).append("\n"); + sb.append(" ligands: ").append(toIndentedString(ligands)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobRequest.java new file mode 100644 index 0000000000..8a5fb866ca --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateCpiJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateCpiJobReq body; + + public CreateCpiJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public CreateCpiJobRequest withBody(CreateCpiJobReq body) { + this.body = body; + return this; + } + + public CreateCpiJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateCpiJobReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateCpiJobReq getBody() { + return body; + } + + public void setBody(CreateCpiJobReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateCpiJobRequest that = (CreateCpiJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCpiJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobResponse.java new file mode 100644 index 0000000000..322541c320 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateCpiJobResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateCpiJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit_concurrency") + + private Integer limitConcurrency; + + public CreateCpiJobResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 作业id + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CreateCpiJobResponse withLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + return this; + } + + /** + * 限制的并发量 + * @return limitConcurrency + */ + public Integer getLimitConcurrency() { + return limitConcurrency; + } + + public void setLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateCpiJobResponse that = (CreateCpiJobResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.limitConcurrency, that.limitConcurrency); + } + + @Override + public int hashCode() { + return Objects.hash(id, limitConcurrency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCpiJobResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" limitConcurrency: ").append(toIndentedString(limitConcurrency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDockJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDockJobReq.java index 925d128dd8..0e6d32c5c7 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDockJobReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDockJobReq.java @@ -28,6 +28,11 @@ public class CreateDockJobReq { private List ligands = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine") + + private String engine; + public CreateDockJobReq withBasicInfo(CreateDrugJobBasicInfo basicInfo) { this.basicInfo = basicInfo; return this; @@ -120,6 +125,23 @@ public void setLigands(List ligands) { this.ligands = ligands; } + public CreateDockJobReq withEngine(String engine) { + this.engine = engine; + return this; + } + + /** + * 引擎,默认为AUTODOCK_VINA + * @return engine + */ + public String getEngine() { + return engine; + } + + public void setEngine(String engine) { + this.engine = engine; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -130,12 +152,12 @@ public boolean equals(java.lang.Object obj) { } CreateDockJobReq that = (CreateDockJobReq) obj; return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptors, that.receptors) - && Objects.equals(this.ligands, that.ligands); + && Objects.equals(this.ligands, that.ligands) && Objects.equals(this.engine, that.engine); } @Override public int hashCode() { - return Objects.hash(basicInfo, receptors, ligands); + return Objects.hash(basicInfo, receptors, ligands, engine); } @Override @@ -145,6 +167,7 @@ public String toString() { sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); sb.append(" receptors: ").append(toIndentedString(receptors)).append("\n"); sb.append(" ligands: ").append(toIndentedString(ligands)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugLigandInteraction2dSvgReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugLigandInteraction2dSvgReq.java index a7c3163a45..f92991358f 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugLigandInteraction2dSvgReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateDrugLigandInteraction2dSvgReq.java @@ -21,6 +21,11 @@ public class CreateDrugLigandInteraction2dSvgReq { private DrugFile ligandFile; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + public CreateDrugLigandInteraction2dSvgReq withReceptorFile(ReceptorDrugFileReq receptorFile) { this.receptorFile = receptorFile; return this; @@ -73,6 +78,23 @@ public void setLigandFile(DrugFile ligandFile) { this.ligandFile = ligandFile; } + public CreateDrugLigandInteraction2dSvgReq withName(String name) { + this.name = name; + return this; + } + + /** + * 小分子名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -82,12 +104,13 @@ public boolean equals(java.lang.Object obj) { return false; } CreateDrugLigandInteraction2dSvgReq that = (CreateDrugLigandInteraction2dSvgReq) obj; - return Objects.equals(this.receptorFile, that.receptorFile) && Objects.equals(this.ligandFile, that.ligandFile); + return Objects.equals(this.receptorFile, that.receptorFile) && Objects.equals(this.ligandFile, that.ligandFile) + && Objects.equals(this.name, that.name); } @Override public int hashCode() { - return Objects.hash(receptorFile, ligandFile); + return Objects.hash(receptorFile, ligandFile, name); } @Override @@ -96,6 +119,7 @@ public String toString() { sb.append("class CreateDrugLigandInteraction2dSvgReq {\n"); sb.append(" receptorFile: ").append(toIndentedString(receptorFile)).append("\n"); sb.append(" ligandFile: ").append(toIndentedString(ligandFile)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobReq.java new file mode 100644 index 0000000000..8c31b4f577 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobReq.java @@ -0,0 +1,373 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 创建分子生成请求体 + */ +public class CreateGenJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private CreateDrugJobBasicInfo basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smiles_list") + + private List smilesList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "molecule_file") + + private DrugFile moleculeFile; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "binding_sites") + + private List bindingSites = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "weak_constraints") + + private List weakConstraints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "strong_constraints") + + private List strongConstraints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model_id") + + private String baseModelId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "model_ids") + + private List modelIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "num_trials") + + private Integer numTrials; + + public CreateGenJobReq withBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public CreateGenJobReq withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new CreateDrugJobBasicInfo(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public CreateDrugJobBasicInfo getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + } + + public CreateGenJobReq withSmilesList(List smilesList) { + this.smilesList = smilesList; + return this; + } + + public CreateGenJobReq addSmilesListItem(String smilesListItem) { + if (this.smilesList == null) { + this.smilesList = new ArrayList<>(); + } + this.smilesList.add(smilesListItem); + return this; + } + + public CreateGenJobReq withSmilesList(Consumer> smilesListSetter) { + if (this.smilesList == null) { + this.smilesList = new ArrayList<>(); + } + smilesListSetter.accept(this.smilesList); + return this; + } + + /** + * 分子表达式列表 + * @return smilesList + */ + public List getSmilesList() { + return smilesList; + } + + public void setSmilesList(List smilesList) { + this.smilesList = smilesList; + } + + public CreateGenJobReq withMoleculeFile(DrugFile moleculeFile) { + this.moleculeFile = moleculeFile; + return this; + } + + public CreateGenJobReq withMoleculeFile(Consumer moleculeFileSetter) { + if (this.moleculeFile == null) { + this.moleculeFile = new DrugFile(); + moleculeFileSetter.accept(this.moleculeFile); + } + + return this; + } + + /** + * Get moleculeFile + * @return moleculeFile + */ + public DrugFile getMoleculeFile() { + return moleculeFile; + } + + public void setMoleculeFile(DrugFile moleculeFile) { + this.moleculeFile = moleculeFile; + } + + public CreateGenJobReq withBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + return this; + } + + public CreateGenJobReq addBindingSitesItem(BindSiteDto bindingSitesItem) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + this.bindingSites.add(bindingSitesItem); + return this; + } + + public CreateGenJobReq withBindingSites(Consumer> bindingSitesSetter) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + bindingSitesSetter.accept(this.bindingSites); + return this; + } + + /** + * 靶点列表 + * @return bindingSites + */ + public List getBindingSites() { + return bindingSites; + } + + public void setBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + } + + public CreateGenJobReq withWeakConstraints(List weakConstraints) { + this.weakConstraints = weakConstraints; + return this; + } + + public CreateGenJobReq addWeakConstraintsItem(WeakConstraintDto weakConstraintsItem) { + if (this.weakConstraints == null) { + this.weakConstraints = new ArrayList<>(); + } + this.weakConstraints.add(weakConstraintsItem); + return this; + } + + public CreateGenJobReq withWeakConstraints(Consumer> weakConstraintsSetter) { + if (this.weakConstraints == null) { + this.weakConstraints = new ArrayList<>(); + } + weakConstraintsSetter.accept(this.weakConstraints); + return this; + } + + /** + * 弱约束集合 + * @return weakConstraints + */ + public List getWeakConstraints() { + return weakConstraints; + } + + public void setWeakConstraints(List weakConstraints) { + this.weakConstraints = weakConstraints; + } + + public CreateGenJobReq withStrongConstraints(List strongConstraints) { + this.strongConstraints = strongConstraints; + return this; + } + + public CreateGenJobReq addStrongConstraintsItem(StrongConstraintDto strongConstraintsItem) { + if (this.strongConstraints == null) { + this.strongConstraints = new ArrayList<>(); + } + this.strongConstraints.add(strongConstraintsItem); + return this; + } + + public CreateGenJobReq withStrongConstraints(Consumer> strongConstraintsSetter) { + if (this.strongConstraints == null) { + this.strongConstraints = new ArrayList<>(); + } + strongConstraintsSetter.accept(this.strongConstraints); + return this; + } + + /** + * 强约束集合 + * @return strongConstraints + */ + public List getStrongConstraints() { + return strongConstraints; + } + + public void setStrongConstraints(List strongConstraints) { + this.strongConstraints = strongConstraints; + } + + public CreateGenJobReq withBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + return this; + } + + /** + * 基模型id + * @return baseModelId + */ + public String getBaseModelId() { + return baseModelId; + } + + public void setBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + } + + public CreateGenJobReq withModelIds(List modelIds) { + this.modelIds = modelIds; + return this; + } + + public CreateGenJobReq addModelIdsItem(String modelIdsItem) { + if (this.modelIds == null) { + this.modelIds = new ArrayList<>(); + } + this.modelIds.add(modelIdsItem); + return this; + } + + public CreateGenJobReq withModelIds(Consumer> modelIdsSetter) { + if (this.modelIds == null) { + this.modelIds = new ArrayList<>(); + } + modelIdsSetter.accept(this.modelIds); + return this; + } + + /** + * 模型id列表 + * @return modelIds + */ + public List getModelIds() { + return modelIds; + } + + public void setModelIds(List modelIds) { + this.modelIds = modelIds; + } + + public CreateGenJobReq withNumTrials(Integer numTrials) { + this.numTrials = numTrials; + return this; + } + + /** + * 生成分子数量 + * minimum: 0 + * maximum: 5000 + * @return numTrials + */ + public Integer getNumTrials() { + return numTrials; + } + + public void setNumTrials(Integer numTrials) { + this.numTrials = numTrials; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateGenJobReq that = (CreateGenJobReq) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.smilesList, that.smilesList) + && Objects.equals(this.moleculeFile, that.moleculeFile) + && Objects.equals(this.bindingSites, that.bindingSites) + && Objects.equals(this.weakConstraints, that.weakConstraints) + && Objects.equals(this.strongConstraints, that.strongConstraints) + && Objects.equals(this.baseModelId, that.baseModelId) && Objects.equals(this.modelIds, that.modelIds) + && Objects.equals(this.numTrials, that.numTrials); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, + smilesList, + moleculeFile, + bindingSites, + weakConstraints, + strongConstraints, + baseModelId, + modelIds, + numTrials); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateGenJobReq {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" smilesList: ").append(toIndentedString(smilesList)).append("\n"); + sb.append(" moleculeFile: ").append(toIndentedString(moleculeFile)).append("\n"); + sb.append(" bindingSites: ").append(toIndentedString(bindingSites)).append("\n"); + sb.append(" weakConstraints: ").append(toIndentedString(weakConstraints)).append("\n"); + sb.append(" strongConstraints: ").append(toIndentedString(strongConstraints)).append("\n"); + sb.append(" baseModelId: ").append(toIndentedString(baseModelId)).append("\n"); + sb.append(" modelIds: ").append(toIndentedString(modelIds)).append("\n"); + sb.append(" numTrials: ").append(toIndentedString(numTrials)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobRequest.java new file mode 100644 index 0000000000..00a5265f7c --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateGenJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateGenJobReq body; + + public CreateGenJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public CreateGenJobRequest withBody(CreateGenJobReq body) { + this.body = body; + return this; + } + + public CreateGenJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateGenJobReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateGenJobReq getBody() { + return body; + } + + public void setBody(CreateGenJobReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateGenJobRequest that = (CreateGenJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateGenJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobResponse.java new file mode 100644 index 0000000000..84ab1fac4b --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateGenJobResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateGenJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit_concurrency") + + private Integer limitConcurrency; + + public CreateGenJobResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 作业id + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CreateGenJobResponse withLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + return this; + } + + /** + * 限制的并发量 + * @return limitConcurrency + */ + public Integer getLimitConcurrency() { + return limitConcurrency; + } + + public void setLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateGenJobResponse that = (CreateGenJobResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.limitConcurrency, that.limitConcurrency); + } + + @Override + public int hashCode() { + return Objects.hash(id, limitConcurrency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateGenJobResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" limitConcurrency: ").append(toIndentedString(limitConcurrency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateLigandPreviewTaskReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateLigandPreviewTaskReq.java index 6d998f102b..ffbaf7d8ad 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateLigandPreviewTaskReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateLigandPreviewTaskReq.java @@ -26,6 +26,11 @@ public class CreateLigandPreviewTaskReq { private Integer countLimit; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "generate_3d") + + private Boolean generate3d; + public CreateLigandPreviewTaskReq withLigandFile(DrugFile ligandFile) { this.ligandFile = ligandFile; return this; @@ -90,6 +95,23 @@ public void setCountLimit(Integer countLimit) { this.countLimit = countLimit; } + public CreateLigandPreviewTaskReq withGenerate3d(Boolean generate3d) { + this.generate3d = generate3d; + return this; + } + + /** + * 是否生成3D构象,默认为true + * @return generate3d + */ + public Boolean getGenerate3d() { + return generate3d; + } + + public void setGenerate3d(Boolean generate3d) { + this.generate3d = generate3d; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -100,12 +122,12 @@ public boolean equals(java.lang.Object obj) { } CreateLigandPreviewTaskReq that = (CreateLigandPreviewTaskReq) obj; return Objects.equals(this.ligandFile, that.ligandFile) && Objects.equals(this.previewCount, that.previewCount) - && Objects.equals(this.countLimit, that.countLimit); + && Objects.equals(this.countLimit, that.countLimit) && Objects.equals(this.generate3d, that.generate3d); } @Override public int hashCode() { - return Objects.hash(ligandFile, previewCount, countLimit); + return Objects.hash(ligandFile, previewCount, countLimit, generate3d); } @Override @@ -115,6 +137,7 @@ public String toString() { sb.append(" ligandFile: ").append(toIndentedString(ligandFile)).append("\n"); sb.append(" previewCount: ").append(toIndentedString(previewCount)).append("\n"); sb.append(" countLimit: ").append(toIndentedString(countLimit)).append("\n"); + sb.append(" generate3d: ").append(toIndentedString(generate3d)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateModelReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateModelReq.java index 47dd9a37f9..d7f4c20185 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateModelReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateModelReq.java @@ -36,6 +36,11 @@ public class CreateModelReq { private Boolean shareable; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model_id") + + private String baseModelId; + public CreateModelReq withName(String name) { this.name = name; return this; @@ -130,6 +135,23 @@ public void setShareable(Boolean shareable) { this.shareable = shareable; } + public CreateModelReq withBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + return this; + } + + /** + * 基模型id + * @return baseModelId + */ + public String getBaseModelId() { + return baseModelId; + } + + public void setBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -141,12 +163,12 @@ public boolean equals(java.lang.Object obj) { CreateModelReq that = (CreateModelReq) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.type, that.type) && Objects.equals(this.file, that.file) - && Objects.equals(this.shareable, that.shareable); + && Objects.equals(this.shareable, that.shareable) && Objects.equals(this.baseModelId, that.baseModelId); } @Override public int hashCode() { - return Objects.hash(name, description, type, file, shareable); + return Objects.hash(name, description, type, file, shareable, baseModelId); } @Override @@ -158,6 +180,7 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" file: ").append(toIndentedString(file)).append("\n"); sb.append(" shareable: ").append(toIndentedString(shareable)).append("\n"); + sb.append(" baseModelId: ").append(toIndentedString(baseModelId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java index 58da30df6d..773bc69f83 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateOptmJobReq.java @@ -53,6 +53,11 @@ public class CreateOptmJobReq { private Float samplerMixinWeight; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model_id") + + private String baseModelId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_ids") @@ -276,6 +281,23 @@ public void setSamplerMixinWeight(Float samplerMixinWeight) { this.samplerMixinWeight = samplerMixinWeight; } + public CreateOptmJobReq withBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + return this; + } + + /** + * 基模型id + * @return baseModelId + */ + public String getBaseModelId() { + return baseModelId; + } + + public void setBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + } + public CreateOptmJobReq withModelIds(List modelIds) { this.modelIds = modelIds; return this; @@ -344,7 +366,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.weakConstraints, that.weakConstraints) && Objects.equals(this.strongConstraints, that.strongConstraints) && Objects.equals(this.samplerMixinWeight, that.samplerMixinWeight) - && Objects.equals(this.modelIds, that.modelIds) && Objects.equals(this.numTrials, that.numTrials); + && Objects.equals(this.baseModelId, that.baseModelId) && Objects.equals(this.modelIds, that.modelIds) + && Objects.equals(this.numTrials, that.numTrials); } @Override @@ -357,6 +380,7 @@ public int hashCode() { weakConstraints, strongConstraints, samplerMixinWeight, + baseModelId, modelIds, numTrials); } @@ -373,6 +397,7 @@ public String toString() { sb.append(" weakConstraints: ").append(toIndentedString(weakConstraints)).append("\n"); sb.append(" strongConstraints: ").append(toIndentedString(strongConstraints)).append("\n"); sb.append(" samplerMixinWeight: ").append(toIndentedString(samplerMixinWeight)).append("\n"); + sb.append(" baseModelId: ").append(toIndentedString(baseModelId)).append("\n"); sb.append(" modelIds: ").append(toIndentedString(modelIds)).append("\n"); sb.append(" numTrials: ").append(toIndentedString(numTrials)).append("\n"); sb.append("}"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobReq.java new file mode 100644 index 0000000000..a615932f85 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobReq.java @@ -0,0 +1,179 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 创建靶点优化作业请求体 + */ +public class CreateTargetOptJobReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private CreateDrugJobBasicInfo basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "receptor") + + private TargetOptReceptor receptor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ligand") + + private TargetOptLigand ligand; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "md_params") + + private MdParam mdParams; + + public CreateTargetOptJobReq withBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public CreateTargetOptJobReq withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new CreateDrugJobBasicInfo(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public CreateDrugJobBasicInfo getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(CreateDrugJobBasicInfo basicInfo) { + this.basicInfo = basicInfo; + } + + public CreateTargetOptJobReq withReceptor(TargetOptReceptor receptor) { + this.receptor = receptor; + return this; + } + + public CreateTargetOptJobReq withReceptor(Consumer receptorSetter) { + if (this.receptor == null) { + this.receptor = new TargetOptReceptor(); + receptorSetter.accept(this.receptor); + } + + return this; + } + + /** + * Get receptor + * @return receptor + */ + public TargetOptReceptor getReceptor() { + return receptor; + } + + public void setReceptor(TargetOptReceptor receptor) { + this.receptor = receptor; + } + + public CreateTargetOptJobReq withLigand(TargetOptLigand ligand) { + this.ligand = ligand; + return this; + } + + public CreateTargetOptJobReq withLigand(Consumer ligandSetter) { + if (this.ligand == null) { + this.ligand = new TargetOptLigand(); + ligandSetter.accept(this.ligand); + } + + return this; + } + + /** + * Get ligand + * @return ligand + */ + public TargetOptLigand getLigand() { + return ligand; + } + + public void setLigand(TargetOptLigand ligand) { + this.ligand = ligand; + } + + public CreateTargetOptJobReq withMdParams(MdParam mdParams) { + this.mdParams = mdParams; + return this; + } + + public CreateTargetOptJobReq withMdParams(Consumer mdParamsSetter) { + if (this.mdParams == null) { + this.mdParams = new MdParam(); + mdParamsSetter.accept(this.mdParams); + } + + return this; + } + + /** + * Get mdParams + * @return mdParams + */ + public MdParam getMdParams() { + return mdParams; + } + + public void setMdParams(MdParam mdParams) { + this.mdParams = mdParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateTargetOptJobReq that = (CreateTargetOptJobReq) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptor, that.receptor) + && Objects.equals(this.ligand, that.ligand) && Objects.equals(this.mdParams, that.mdParams); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, receptor, ligand, mdParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTargetOptJobReq {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" receptor: ").append(toIndentedString(receptor)).append("\n"); + sb.append(" ligand: ").append(toIndentedString(ligand)).append("\n"); + sb.append(" mdParams: ").append(toIndentedString(mdParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobRequest.java new file mode 100644 index 0000000000..f4ebc14815 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateTargetOptJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateTargetOptJobReq body; + + public CreateTargetOptJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public CreateTargetOptJobRequest withBody(CreateTargetOptJobReq body) { + this.body = body; + return this; + } + + public CreateTargetOptJobRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateTargetOptJobReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateTargetOptJobReq getBody() { + return body; + } + + public void setBody(CreateTargetOptJobReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateTargetOptJobRequest that = (CreateTargetOptJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTargetOptJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobResponse.java new file mode 100644 index 0000000000..5aadd952dd --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/CreateTargetOptJobResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateTargetOptJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit_concurrency") + + private Integer limitConcurrency; + + public CreateTargetOptJobResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 作业id + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CreateTargetOptJobResponse withLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + return this; + } + + /** + * 限制的并发量 + * @return limitConcurrency + */ + public Integer getLimitConcurrency() { + return limitConcurrency; + } + + public void setLimitConcurrency(Integer limitConcurrency) { + this.limitConcurrency = limitConcurrency; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateTargetOptJobResponse that = (CreateTargetOptJobResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.limitConcurrency, that.limitConcurrency); + } + + @Override + public int hashCode() { + return Objects.hash(id, limitConcurrency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTargetOptJobResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" limitConcurrency: ").append(toIndentedString(limitConcurrency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/FastaReceptor.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/FastaReceptor.java new file mode 100644 index 0000000000..b23bd2a972 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/FastaReceptor.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 受体文件(Fasta格式) + */ +public class FastaReceptor { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source") + + private DrugFileSource source; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "url") + + private String url; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "format") + + private String format; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data") + + private String data; + + public FastaReceptor withSource(DrugFileSource source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + public DrugFileSource getSource() { + return source; + } + + public void setSource(DrugFileSource source) { + this.source = source; + } + + public FastaReceptor withUrl(String url) { + this.url = url; + return this; + } + + /** + * 文件URL,当数据源为外部网络数据时为https地址;用户私有数据中心为项目路径、公共数据场景为obs地址 + * @return url + */ + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public FastaReceptor withFormat(String format) { + this.format = format; + return this; + } + + /** + * 文件格式,仅支持FASTA,仅数据源为RAW时提供 + * @return format + */ + public String getFormat() { + return format; + } + + public void setFormat(String format) { + this.format = format; + } + + public FastaReceptor withData(String data) { + this.data = data; + return this; + } + + /** + * 文件原始数据,仅数据源为RAW时提供 + * @return data + */ + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FastaReceptor that = (FastaReceptor) obj; + return Objects.equals(this.source, that.source) && Objects.equals(this.url, that.url) + && Objects.equals(this.format, that.format) && Objects.equals(this.data, that.data); + } + + @Override + public int hashCode() { + return Objects.hash(source, url, format, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FastaReceptor {\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/Interaction.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/Interaction.java new file mode 100644 index 0000000000..443437161b --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/Interaction.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 分子与蛋白间的相互作用力 + */ +public class Interaction { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "binding_site") + + private String bindingSite; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private InteractionType type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "amino_acid") + + private String aminoAcid; + + public Interaction withBindingSite(String bindingSite) { + this.bindingSite = bindingSite; + return this; + } + + /** + * 靶点,只支持target1或target2。 + * @return bindingSite + */ + public String getBindingSite() { + return bindingSite; + } + + public void setBindingSite(String bindingSite) { + this.bindingSite = bindingSite; + } + + public Interaction withType(InteractionType type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + public InteractionType getType() { + return type; + } + + public void setType(InteractionType type) { + this.type = type; + } + + public Interaction withAminoAcid(String aminoAcid) { + this.aminoAcid = aminoAcid; + return this; + } + + /** + * 氨基酸 + * @return aminoAcid + */ + public String getAminoAcid() { + return aminoAcid; + } + + public void setAminoAcid(String aminoAcid) { + this.aminoAcid = aminoAcid; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Interaction that = (Interaction) obj; + return Objects.equals(this.bindingSite, that.bindingSite) && Objects.equals(this.type, that.type) + && Objects.equals(this.aminoAcid, that.aminoAcid); + } + + @Override + public int hashCode() { + return Objects.hash(bindingSite, type, aminoAcid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Interaction {\n"); + sb.append(" bindingSite: ").append(toIndentedString(bindingSite)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" aminoAcid: ").append(toIndentedString(aminoAcid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/InteractionConstraintDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/InteractionConstraintDto.java new file mode 100644 index 0000000000..e73232af4c --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/InteractionConstraintDto.java @@ -0,0 +1,138 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 相互作用力约束参数 + */ +public class InteractionConstraintDto { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interactions") + + private List interactions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "exclusive") + + private Boolean exclusive; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "operator") + + private OperatorType operator; + + public InteractionConstraintDto withInteractions(List interactions) { + this.interactions = interactions; + return this; + } + + public InteractionConstraintDto addInteractionsItem(Interaction interactionsItem) { + if (this.interactions == null) { + this.interactions = new ArrayList<>(); + } + this.interactions.add(interactionsItem); + return this; + } + + public InteractionConstraintDto withInteractions(Consumer> interactionsSetter) { + if (this.interactions == null) { + this.interactions = new ArrayList<>(); + } + interactionsSetter.accept(this.interactions); + return this; + } + + /** + * 相互作用力列表 + * @return interactions + */ + public List getInteractions() { + return interactions; + } + + public void setInteractions(List interactions) { + this.interactions = interactions; + } + + public InteractionConstraintDto withExclusive(Boolean exclusive) { + this.exclusive = exclusive; + return this; + } + + /** + * 是否排除指定的约束作用力 + * @return exclusive + */ + public Boolean getExclusive() { + return exclusive; + } + + public void setExclusive(Boolean exclusive) { + this.exclusive = exclusive; + } + + public InteractionConstraintDto withOperator(OperatorType operator) { + this.operator = operator; + return this; + } + + /** + * Get operator + * @return operator + */ + public OperatorType getOperator() { + return operator; + } + + public void setOperator(OperatorType operator) { + this.operator = operator; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + InteractionConstraintDto that = (InteractionConstraintDto) obj; + return Objects.equals(this.interactions, that.interactions) && Objects.equals(this.exclusive, that.exclusive) + && Objects.equals(this.operator, that.operator); + } + + @Override + public int hashCode() { + return Objects.hash(interactions, exclusive, operator); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractionConstraintDto {\n"); + sb.append(" interactions: ").append(toIndentedString(interactions)).append("\n"); + sb.append(" exclusive: ").append(toIndentedString(exclusive)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/InteractionType.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/InteractionType.java new file mode 100644 index 0000000000..c56f0bd700 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/InteractionType.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * 相互作用力类型:氢键、疏水作用、盐桥、π-π堆积、π-阳离子 + */ +public class InteractionType { + + /** + * Enum HYDROGEN_BOND for value: "hydrogen_bond" + */ + public static final InteractionType HYDROGEN_BOND = new InteractionType("hydrogen_bond"); + + /** + * Enum HYDROPHOBIC_ACTION for value: "hydrophobic_action" + */ + public static final InteractionType HYDROPHOBIC_ACTION = new InteractionType("hydrophobic_action"); + + /** + * Enum SALT_BRIDGE for value: "salt_bridge" + */ + public static final InteractionType SALT_BRIDGE = new InteractionType("salt_bridge"); + + /** + * Enum PI_STACKING for value: "pi_stacking" + */ + public static final InteractionType PI_STACKING = new InteractionType("pi_stacking"); + + /** + * Enum PI_CATION for value: "pi_cation" + */ + public static final InteractionType PI_CATION = new InteractionType("pi_cation"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("hydrogen_bond", HYDROGEN_BOND); + map.put("hydrophobic_action", HYDROPHOBIC_ACTION); + map.put("salt_bridge", SALT_BRIDGE); + map.put("pi_stacking", PI_STACKING); + map.put("pi_cation", PI_CATION); + return Collections.unmodifiableMap(map); + } + + private String value; + + InteractionType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InteractionType fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new InteractionType(value)); + } + + public static InteractionType valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof InteractionType) { + return this.value.equals(((InteractionType) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListBaseModelRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListBaseModelRequest.java new file mode 100644 index 0000000000..051b63fff9 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListBaseModelRequest.java @@ -0,0 +1,146 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListBaseModelRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_dir") + + private String sortDir; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sort_key") + + private String sortKey; + + public ListBaseModelRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 限制量,单次查询总量,必须由数字组成,默认为100,取值范围[1,1000] + * minimum: 1 + * maximum: 1000 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListBaseModelRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000] + * minimum: 0 + * maximum: 100000000 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListBaseModelRequest withSortDir(String sortDir) { + this.sortDir = sortDir; + return this; + } + + /** + * 排序规则 目前默认时间升序 + * @return sortDir + */ + public String getSortDir() { + return sortDir; + } + + public void setSortDir(String sortDir) { + this.sortDir = sortDir; + } + + public ListBaseModelRequest withSortKey(String sortKey) { + this.sortKey = sortKey; + return this; + } + + /** + * 排序规则 目前默认时间升序,支持根据create_time排序 + * @return sortKey + */ + public String getSortKey() { + return sortKey; + } + + public void setSortKey(String sortKey) { + this.sortKey = sortKey; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBaseModelRequest that = (ListBaseModelRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.sortKey, that.sortKey); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, sortDir, sortKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBaseModelRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n"); + sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListBaseModelResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListBaseModelResponse.java new file mode 100644 index 0000000000..2c7f53b0e2 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListBaseModelResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListBaseModelResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "models") + + private List models = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + public ListBaseModelResponse withModels(List models) { + this.models = models; + return this; + } + + public ListBaseModelResponse addModelsItem(BaseModelDto modelsItem) { + if (this.models == null) { + this.models = new ArrayList<>(); + } + this.models.add(modelsItem); + return this; + } + + public ListBaseModelResponse withModels(Consumer> modelsSetter) { + if (this.models == null) { + this.models = new ArrayList<>(); + } + modelsSetter.accept(this.models); + return this; + } + + /** + * 模型列表 + * @return models + */ + public List getModels() { + return models; + } + + public void setModels(List models) { + this.models = models; + } + + public ListBaseModelResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 模型总数 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBaseModelResponse that = (ListBaseModelResponse) obj; + return Objects.equals(this.models, that.models) && Objects.equals(this.count, that.count); + } + + @Override + public int hashCode() { + return Objects.hash(models, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBaseModelResponse {\n"); + sb.append(" models: ").append(toIndentedString(models)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugModelRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugModelRequest.java index 82ae20e778..bbb2eef52f 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugModelRequest.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ListDrugModelRequest.java @@ -73,6 +73,11 @@ public class ListDrugModelRequest { private Integer offset; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model_list") + + private List baseModelList = null; + public ListDrugModelRequest withSearchKey(String searchKey) { this.searchKey = searchKey; return this; @@ -195,7 +200,7 @@ public ListDrugModelRequest withSortKey(String sortKey) { } /** - * 排序规则 目前默认时间降序,支持根据create_time|finish_time + * 排序规则 目前默认时间降序,支持根据create_time|finish_time|base_model_name * @return sortKey */ public String getSortKey() { @@ -337,6 +342,39 @@ public void setOffset(Integer offset) { this.offset = offset; } + public ListDrugModelRequest withBaseModelList(List baseModelList) { + this.baseModelList = baseModelList; + return this; + } + + public ListDrugModelRequest addBaseModelListItem(String baseModelListItem) { + if (this.baseModelList == null) { + this.baseModelList = new ArrayList<>(); + } + this.baseModelList.add(baseModelListItem); + return this; + } + + public ListDrugModelRequest withBaseModelList(Consumer> baseModelListSetter) { + if (this.baseModelList == null) { + this.baseModelList = new ArrayList<>(); + } + baseModelListSetter.accept(this.baseModelList); + return this; + } + + /** + * 基模型id列表 + * @return baseModelList + */ + public List getBaseModelList() { + return baseModelList; + } + + public void setBaseModelList(List baseModelList) { + this.baseModelList = baseModelList; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -353,7 +391,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.createEndTime, that.createEndTime) && Objects.equals(this.finishStartTime, that.finishStartTime) && Objects.equals(this.finishEndTime, that.finishEndTime) && Objects.equals(this.limit, that.limit) - && Objects.equals(this.offset, that.offset); + && Objects.equals(this.offset, that.offset) && Objects.equals(this.baseModelList, that.baseModelList); } @Override @@ -369,7 +407,8 @@ public int hashCode() { finishStartTime, finishEndTime, limit, - offset); + offset, + baseModelList); } @Override @@ -388,6 +427,7 @@ public String toString() { sb.append(" finishEndTime: ").append(toIndentedString(finishEndTime)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" baseModelList: ").append(toIndentedString(baseModelList)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/MdParam.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/MdParam.java new file mode 100644 index 0000000000..05876c1ddb --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/MdParam.java @@ -0,0 +1,133 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 靶点优化MD参数配置 + */ +public class MdParam { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "timestep_size") + + private Float timestepSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "temperature") + + private Float temperature; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "step_params") + + private MdStepParam stepParams; + + public MdParam withTimestepSize(Float timestepSize) { + this.timestepSize = timestepSize; + return this; + } + + /** + * MD模拟的时间步长,单位fs,取值范围:大于0,小于等于5 + * minimum: 0 + * maximum: 5 + * @return timestepSize + */ + public Float getTimestepSize() { + return timestepSize; + } + + public void setTimestepSize(Float timestepSize) { + this.timestepSize = timestepSize; + } + + public MdParam withTemperature(Float temperature) { + this.temperature = temperature; + return this; + } + + /** + * MD模拟的温度,单位K + * minimum: 0 + * maximum: 1E+3 + * @return temperature + */ + public Float getTemperature() { + return temperature; + } + + public void setTemperature(Float temperature) { + this.temperature = temperature; + } + + public MdParam withStepParams(MdStepParam stepParams) { + this.stepParams = stepParams; + return this; + } + + public MdParam withStepParams(Consumer stepParamsSetter) { + if (this.stepParams == null) { + this.stepParams = new MdStepParam(); + stepParamsSetter.accept(this.stepParams); + } + + return this; + } + + /** + * Get stepParams + * @return stepParams + */ + public MdStepParam getStepParams() { + return stepParams; + } + + public void setStepParams(MdStepParam stepParams) { + this.stepParams = stepParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + MdParam that = (MdParam) obj; + return Objects.equals(this.timestepSize, that.timestepSize) + && Objects.equals(this.temperature, that.temperature) && Objects.equals(this.stepParams, that.stepParams); + } + + @Override + public int hashCode() { + return Objects.hash(timestepSize, temperature, stepParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MdParam {\n"); + sb.append(" timestepSize: ").append(toIndentedString(timestepSize)).append("\n"); + sb.append(" temperature: ").append(toIndentedString(temperature)).append("\n"); + sb.append(" stepParams: ").append(toIndentedString(stepParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/MdStepParam.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/MdStepParam.java new file mode 100644 index 0000000000..2bba657051 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/MdStepParam.java @@ -0,0 +1,151 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * MD计算步骤配置 + */ +public class MdStepParam { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "energy_minimization_steps") + + private Integer energyMinimizationSteps; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nvt") + + private Float nvt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "npt") + + private Float npt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "simulation_time") + + private Float simulationTime; + + public MdStepParam withEnergyMinimizationSteps(Integer energyMinimizationSteps) { + this.energyMinimizationSteps = energyMinimizationSteps; + return this; + } + + /** + * 能量最小化的步骤 + * minimum: 1 + * maximum: 50000 + * @return energyMinimizationSteps + */ + public Integer getEnergyMinimizationSteps() { + return energyMinimizationSteps; + } + + public void setEnergyMinimizationSteps(Integer energyMinimizationSteps) { + this.energyMinimizationSteps = energyMinimizationSteps; + } + + public MdStepParam withNvt(Float nvt) { + this.nvt = nvt; + return this; + } + + /** + * 等温等体步骤模拟的时长,单位ps + * minimum: 0 + * maximum: 1E+3 + * @return nvt + */ + public Float getNvt() { + return nvt; + } + + public void setNvt(Float nvt) { + this.nvt = nvt; + } + + public MdStepParam withNpt(Float npt) { + this.npt = npt; + return this; + } + + /** + * 等压等温步骤模拟的时长,单位ps + * minimum: 0 + * maximum: 1E+3 + * @return npt + */ + public Float getNpt() { + return npt; + } + + public void setNpt(Float npt) { + this.npt = npt; + } + + public MdStepParam withSimulationTime(Float simulationTime) { + this.simulationTime = simulationTime; + return this; + } + + /** + * 平衡步骤模拟的时长,单位ns + * minimum: 0 + * maximum: 5E+1 + * @return simulationTime + */ + public Float getSimulationTime() { + return simulationTime; + } + + public void setSimulationTime(Float simulationTime) { + this.simulationTime = simulationTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + MdStepParam that = (MdStepParam) obj; + return Objects.equals(this.energyMinimizationSteps, that.energyMinimizationSteps) + && Objects.equals(this.nvt, that.nvt) && Objects.equals(this.npt, that.npt) + && Objects.equals(this.simulationTime, that.simulationTime); + } + + @Override + public int hashCode() { + return Objects.hash(energyMinimizationSteps, nvt, npt, simulationTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MdStepParam {\n"); + sb.append(" energyMinimizationSteps: ").append(toIndentedString(energyMinimizationSteps)).append("\n"); + sb.append(" nvt: ").append(toIndentedString(nvt)).append("\n"); + sb.append(" npt: ").append(toIndentedString(npt)).append("\n"); + sb.append(" simulationTime: ").append(toIndentedString(simulationTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ModelDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ModelDto.java index e1af755446..93579d7d95 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ModelDto.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ModelDto.java @@ -88,6 +88,16 @@ public class ModelDto { private List metrics = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model_id") + + private String baseModelId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model_name") + + private String baseModelName; + public ModelDto withName(String name) { this.name = name; return this; @@ -393,6 +403,40 @@ public void setMetrics(List metrics) { this.metrics = metrics; } + public ModelDto withBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + return this; + } + + /** + * 基模型id + * @return baseModelId + */ + public String getBaseModelId() { + return baseModelId; + } + + public void setBaseModelId(String baseModelId) { + this.baseModelId = baseModelId; + } + + public ModelDto withBaseModelName(String baseModelName) { + this.baseModelName = baseModelName; + return this; + } + + /** + * 基模型名称 + * @return baseModelName + */ + public String getBaseModelName() { + return baseModelName; + } + + public void setBaseModelName(String baseModelName) { + this.baseModelName = baseModelName; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -409,7 +453,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.dataQuantity, that.dataQuantity) && Objects.equals(this.file, that.file) && Objects.equals(this.valueRange, that.valueRange) && Objects.equals(this.description, that.description) && Objects.equals(this.failedMessage, that.failedMessage) && Objects.equals(this.losses, that.losses) - && Objects.equals(this.metrics, that.metrics); + && Objects.equals(this.metrics, that.metrics) && Objects.equals(this.baseModelId, that.baseModelId) + && Objects.equals(this.baseModelName, that.baseModelName); } @Override @@ -428,7 +473,9 @@ public int hashCode() { description, failedMessage, losses, - metrics); + metrics, + baseModelId, + baseModelName); } @Override @@ -450,6 +497,8 @@ public String toString() { sb.append(" failedMessage: ").append(toIndentedString(failedMessage)).append("\n"); sb.append(" losses: ").append(toIndentedString(losses)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); + sb.append(" baseModelId: ").append(toIndentedString(baseModelId)).append("\n"); + sb.append(" baseModelName: ").append(toIndentedString(baseModelName)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/PocketFragment.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/PocketFragment.java index 4526ca542c..db258f9d8d 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/PocketFragment.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/PocketFragment.java @@ -26,6 +26,11 @@ public class PocketFragment { private String format; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") @@ -92,6 +97,23 @@ public void setFormat(String format) { this.format = format; } + public PocketFragment withName(String name) { + this.name = name; + return this; + } + + /** + * 原始配体名称,仅RAW类型时用于配体名称标识 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + public PocketFragment withData(String data) { this.data = data; return this; @@ -171,13 +193,14 @@ public boolean equals(java.lang.Object obj) { } PocketFragment that = (PocketFragment) obj; return Objects.equals(this.source, that.source) && Objects.equals(this.url, that.url) - && Objects.equals(this.format, that.format) && Objects.equals(this.data, that.data) - && Objects.equals(this.edited, that.edited) && Objects.equals(this.labelSites, that.labelSites); + && Objects.equals(this.format, that.format) && Objects.equals(this.name, that.name) + && Objects.equals(this.data, that.data) && Objects.equals(this.edited, that.edited) + && Objects.equals(this.labelSites, that.labelSites); } @Override public int hashCode() { - return Objects.hash(source, url, format, data, edited, labelSites); + return Objects.hash(source, url, format, name, data, edited, labelSites); } @Override @@ -187,6 +210,7 @@ public String toString() { sb.append(" source: ").append(toIndentedString(source)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" edited: ").append(toIndentedString(edited)).append("\n"); sb.append(" labelSites: ").append(toIndentedString(labelSites)).append("\n"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessReq.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessReq.java new file mode 100644 index 0000000000..36f254d08e --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessReq.java @@ -0,0 +1,133 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Fasta受体预览请求体 + */ +public class RunFastaPreprocessReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file") + + private FastaReceptor file; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "preview_count") + + private Integer previewCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count_limit") + + private Integer countLimit; + + public RunFastaPreprocessReq withFile(FastaReceptor file) { + this.file = file; + return this; + } + + public RunFastaPreprocessReq withFile(Consumer fileSetter) { + if (this.file == null) { + this.file = new FastaReceptor(); + fileSetter.accept(this.file); + } + + return this; + } + + /** + * Get file + * @return file + */ + public FastaReceptor getFile() { + return file; + } + + public void setFile(FastaReceptor file) { + this.file = file; + } + + public RunFastaPreprocessReq withPreviewCount(Integer previewCount) { + this.previewCount = previewCount; + return this; + } + + /** + * 预览数量 + * minimum: 0 + * maximum: 100 + * @return previewCount + */ + public Integer getPreviewCount() { + return previewCount; + } + + public void setPreviewCount(Integer previewCount) { + this.previewCount = previewCount; + } + + public RunFastaPreprocessReq withCountLimit(Integer countLimit) { + this.countLimit = countLimit; + return this; + } + + /** + * 计数上限 + * minimum: 0 + * maximum: 100 + * @return countLimit + */ + public Integer getCountLimit() { + return countLimit; + } + + public void setCountLimit(Integer countLimit) { + this.countLimit = countLimit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RunFastaPreprocessReq that = (RunFastaPreprocessReq) obj; + return Objects.equals(this.file, that.file) && Objects.equals(this.previewCount, that.previewCount) + && Objects.equals(this.countLimit, that.countLimit); + } + + @Override + public int hashCode() { + return Objects.hash(file, previewCount, countLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RunFastaPreprocessReq {\n"); + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append(" previewCount: ").append(toIndentedString(previewCount)).append("\n"); + sb.append(" countLimit: ").append(toIndentedString(countLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessRequest.java new file mode 100644 index 0000000000..177c29183c --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class RunFastaPreprocessRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private RunFastaPreprocessReq body; + + public RunFastaPreprocessRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public RunFastaPreprocessRequest withBody(RunFastaPreprocessReq body) { + this.body = body; + return this; + } + + public RunFastaPreprocessRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new RunFastaPreprocessReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public RunFastaPreprocessReq getBody() { + return body; + } + + public void setBody(RunFastaPreprocessReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RunFastaPreprocessRequest that = (RunFastaPreprocessRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RunFastaPreprocessRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessResponse.java new file mode 100644 index 0000000000..4e3a1ed062 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/RunFastaPreprocessResponse.java @@ -0,0 +1,98 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class RunFastaPreprocessResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_more") + + private Boolean hasMore; + + public RunFastaPreprocessResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 已知的蛋白序列数量 + * minimum: 0 + * maximum: 100 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public RunFastaPreprocessResponse withHasMore(Boolean hasMore) { + this.hasMore = hasMore; + return this; + } + + /** + * 文件中是否还有更多氨基酸序列没有处理 + * @return hasMore + */ + public Boolean getHasMore() { + return hasMore; + } + + public void setHasMore(Boolean hasMore) { + this.hasMore = hasMore; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RunFastaPreprocessResponse that = (RunFastaPreprocessResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.hasMore, that.hasMore); + } + + @Override + public int hashCode() { + return Objects.hash(count, hasMore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RunFastaPreprocessResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" hasMore: ").append(toIndentedString(hasMore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowAdmetJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowAdmetJobResponse.java index 18b7477cde..3d96e26469 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowAdmetJobResponse.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowAdmetJobResponse.java @@ -34,6 +34,11 @@ public class ShowAdmetJobResponse extends SdkResponse { private List partFailedReason = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model") + + private BaseModel baseModel; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "models") @@ -44,6 +49,11 @@ public class ShowAdmetJobResponse extends SdkResponse { private ClusterJobRsp clusterResult; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "save_fingerprint") + + private Boolean saveFingerprint; + public ShowAdmetJobResponse withBasicInfo(DrugJobDto basicInfo) { this.basicInfo = basicInfo; return this; @@ -155,6 +165,32 @@ public void setPartFailedReason(List partFailedReason) { this.partFailedReason = partFailedReason; } + public ShowAdmetJobResponse withBaseModel(BaseModel baseModel) { + this.baseModel = baseModel; + return this; + } + + public ShowAdmetJobResponse withBaseModel(Consumer baseModelSetter) { + if (this.baseModel == null) { + this.baseModel = new BaseModel(); + baseModelSetter.accept(this.baseModel); + } + + return this; + } + + /** + * Get baseModel + * @return baseModel + */ + public BaseModel getBaseModel() { + return baseModel; + } + + public void setBaseModel(BaseModel baseModel) { + this.baseModel = baseModel; + } + public ShowAdmetJobResponse withModels(List models) { this.models = models; return this; @@ -214,6 +250,23 @@ public void setClusterResult(ClusterJobRsp clusterResult) { this.clusterResult = clusterResult; } + public ShowAdmetJobResponse withSaveFingerprint(Boolean saveFingerprint) { + this.saveFingerprint = saveFingerprint; + return this; + } + + /** + * 是否输出表征 + * @return saveFingerprint + */ + public Boolean getSaveFingerprint() { + return saveFingerprint; + } + + public void setSaveFingerprint(Boolean saveFingerprint) { + this.saveFingerprint = saveFingerprint; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -225,13 +278,22 @@ public boolean equals(java.lang.Object obj) { ShowAdmetJobResponse that = (ShowAdmetJobResponse) obj; return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.moleculeFile, that.moleculeFile) && Objects.equals(this.jobResult, that.jobResult) - && Objects.equals(this.partFailedReason, that.partFailedReason) && Objects.equals(this.models, that.models) - && Objects.equals(this.clusterResult, that.clusterResult); + && Objects.equals(this.partFailedReason, that.partFailedReason) + && Objects.equals(this.baseModel, that.baseModel) && Objects.equals(this.models, that.models) + && Objects.equals(this.clusterResult, that.clusterResult) + && Objects.equals(this.saveFingerprint, that.saveFingerprint); } @Override public int hashCode() { - return Objects.hash(basicInfo, moleculeFile, jobResult, partFailedReason, models, clusterResult); + return Objects.hash(basicInfo, + moleculeFile, + jobResult, + partFailedReason, + baseModel, + models, + clusterResult, + saveFingerprint); } @Override @@ -242,8 +304,10 @@ public String toString() { sb.append(" moleculeFile: ").append(toIndentedString(moleculeFile)).append("\n"); sb.append(" jobResult: ").append(toIndentedString(jobResult)).append("\n"); sb.append(" partFailedReason: ").append(toIndentedString(partFailedReason)).append("\n"); + sb.append(" baseModel: ").append(toIndentedString(baseModel)).append("\n"); sb.append(" models: ").append(toIndentedString(models)).append("\n"); sb.append(" clusterResult: ").append(toIndentedString(clusterResult)).append("\n"); + sb.append(" saveFingerprint: ").append(toIndentedString(saveFingerprint)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowCpiJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowCpiJobRequest.java new file mode 100644 index 0000000000..059bb873bd --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowCpiJobRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowCpiJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public ShowCpiJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public ShowCpiJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 作业id + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowCpiJobRequest that = (ShowCpiJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowCpiJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowCpiJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowCpiJobResponse.java new file mode 100644 index 0000000000..591fbaad2c --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowCpiJobResponse.java @@ -0,0 +1,164 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowCpiJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private DrugJobDto basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "receptors") + + private List receptors = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ligands") + + private List ligands = null; + + public ShowCpiJobResponse withBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public ShowCpiJobResponse withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new DrugJobDto(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public DrugJobDto getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + } + + public ShowCpiJobResponse withReceptors(List receptors) { + this.receptors = receptors; + return this; + } + + public ShowCpiJobResponse addReceptorsItem(ReceptorDrugFile receptorsItem) { + if (this.receptors == null) { + this.receptors = new ArrayList<>(); + } + this.receptors.add(receptorsItem); + return this; + } + + public ShowCpiJobResponse withReceptors(Consumer> receptorsSetter) { + if (this.receptors == null) { + this.receptors = new ArrayList<>(); + } + receptorsSetter.accept(this.receptors); + return this; + } + + /** + * 受体文件列表 + * @return receptors + */ + public List getReceptors() { + return receptors; + } + + public void setReceptors(List receptors) { + this.receptors = receptors; + } + + public ShowCpiJobResponse withLigands(List ligands) { + this.ligands = ligands; + return this; + } + + public ShowCpiJobResponse addLigandsItem(MoleculeFileDto ligandsItem) { + if (this.ligands == null) { + this.ligands = new ArrayList<>(); + } + this.ligands.add(ligandsItem); + return this; + } + + public ShowCpiJobResponse withLigands(Consumer> ligandsSetter) { + if (this.ligands == null) { + this.ligands = new ArrayList<>(); + } + ligandsSetter.accept(this.ligands); + return this; + } + + /** + * 小分子 + * @return ligands + */ + public List getLigands() { + return ligands; + } + + public void setLigands(List ligands) { + this.ligands = ligands; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowCpiJobResponse that = (ShowCpiJobResponse) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptors, that.receptors) + && Objects.equals(this.ligands, that.ligands); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, receptors, ligands); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowCpiJobResponse {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" receptors: ").append(toIndentedString(receptors)).append("\n"); + sb.append(" ligands: ").append(toIndentedString(ligands)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowDockingJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowDockingJobResponse.java index c07762e449..e81c817881 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowDockingJobResponse.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowDockingJobResponse.java @@ -29,6 +29,11 @@ public class ShowDockingJobResponse extends SdkResponse { private List ligands = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine") + + private String engine; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "job_result") @@ -136,6 +141,23 @@ public void setLigands(List ligands) { this.ligands = ligands; } + public ShowDockingJobResponse withEngine(String engine) { + this.engine = engine; + return this; + } + + /** + * 引擎 + * @return engine + */ + public String getEngine() { + return engine; + } + + public void setEngine(String engine) { + this.engine = engine; + } + public ShowDockingJobResponse withJobResult(JobResult jobResult) { this.jobResult = jobResult; return this; @@ -231,14 +253,15 @@ public boolean equals(java.lang.Object obj) { } ShowDockingJobResponse that = (ShowDockingJobResponse) obj; return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptors, that.receptors) - && Objects.equals(this.ligands, that.ligands) && Objects.equals(this.jobResult, that.jobResult) + && Objects.equals(this.ligands, that.ligands) && Objects.equals(this.engine, that.engine) + && Objects.equals(this.jobResult, that.jobResult) && Objects.equals(this.partFailedReason, that.partFailedReason) && Objects.equals(this.clusterResult, that.clusterResult); } @Override public int hashCode() { - return Objects.hash(basicInfo, receptors, ligands, jobResult, partFailedReason, clusterResult); + return Objects.hash(basicInfo, receptors, ligands, engine, jobResult, partFailedReason, clusterResult); } @Override @@ -248,6 +271,7 @@ public String toString() { sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); sb.append(" receptors: ").append(toIndentedString(receptors)).append("\n"); sb.append(" ligands: ").append(toIndentedString(ligands)).append("\n"); + sb.append(" engine: ").append(toIndentedString(engine)).append("\n"); sb.append(" jobResult: ").append(toIndentedString(jobResult)).append("\n"); sb.append(" partFailedReason: ").append(toIndentedString(partFailedReason)).append("\n"); sb.append(" clusterResult: ").append(toIndentedString(clusterResult)).append("\n"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowGenJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowGenJobRequest.java new file mode 100644 index 0000000000..8e7d364000 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowGenJobRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowGenJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public ShowGenJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public ShowGenJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 作业id + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowGenJobRequest that = (ShowGenJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowGenJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowGenJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowGenJobResponse.java new file mode 100644 index 0000000000..9ffface990 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowGenJobResponse.java @@ -0,0 +1,409 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowGenJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private DrugJobDto basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smiles_list") + + private List smilesList = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "molecule_file") + + private DrugFile moleculeFile; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "num_trials") + + private Integer numTrials; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "initial_dataset_size") + + private Integer initialDatasetSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "binding_sites") + + private List bindingSites = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "weak_constraints") + + private List weakConstraints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "strong_constraints") + + private List strongConstraints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model") + + private BaseModel baseModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "models") + + private List models = null; + + public ShowGenJobResponse withBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public ShowGenJobResponse withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new DrugJobDto(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public DrugJobDto getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + } + + public ShowGenJobResponse withSmilesList(List smilesList) { + this.smilesList = smilesList; + return this; + } + + public ShowGenJobResponse addSmilesListItem(String smilesListItem) { + if (this.smilesList == null) { + this.smilesList = new ArrayList<>(); + } + this.smilesList.add(smilesListItem); + return this; + } + + public ShowGenJobResponse withSmilesList(Consumer> smilesListSetter) { + if (this.smilesList == null) { + this.smilesList = new ArrayList<>(); + } + smilesListSetter.accept(this.smilesList); + return this; + } + + /** + * 分子表达式列表 + * @return smilesList + */ + public List getSmilesList() { + return smilesList; + } + + public void setSmilesList(List smilesList) { + this.smilesList = smilesList; + } + + public ShowGenJobResponse withMoleculeFile(DrugFile moleculeFile) { + this.moleculeFile = moleculeFile; + return this; + } + + public ShowGenJobResponse withMoleculeFile(Consumer moleculeFileSetter) { + if (this.moleculeFile == null) { + this.moleculeFile = new DrugFile(); + moleculeFileSetter.accept(this.moleculeFile); + } + + return this; + } + + /** + * Get moleculeFile + * @return moleculeFile + */ + public DrugFile getMoleculeFile() { + return moleculeFile; + } + + public void setMoleculeFile(DrugFile moleculeFile) { + this.moleculeFile = moleculeFile; + } + + public ShowGenJobResponse withNumTrials(Integer numTrials) { + this.numTrials = numTrials; + return this; + } + + /** + * 生成分子数量 + * minimum: 0 + * maximum: 5000 + * @return numTrials + */ + public Integer getNumTrials() { + return numTrials; + } + + public void setNumTrials(Integer numTrials) { + this.numTrials = numTrials; + } + + public ShowGenJobResponse withInitialDatasetSize(Integer initialDatasetSize) { + this.initialDatasetSize = initialDatasetSize; + return this; + } + + /** + * 初始化数据集的分子数目。当为-1时,表示分子数目未知 + * minimum: -1 + * maximum: 100000 + * @return initialDatasetSize + */ + public Integer getInitialDatasetSize() { + return initialDatasetSize; + } + + public void setInitialDatasetSize(Integer initialDatasetSize) { + this.initialDatasetSize = initialDatasetSize; + } + + public ShowGenJobResponse withBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + return this; + } + + public ShowGenJobResponse addBindingSitesItem(BindSiteDto bindingSitesItem) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + this.bindingSites.add(bindingSitesItem); + return this; + } + + public ShowGenJobResponse withBindingSites(Consumer> bindingSitesSetter) { + if (this.bindingSites == null) { + this.bindingSites = new ArrayList<>(); + } + bindingSitesSetter.accept(this.bindingSites); + return this; + } + + /** + * 靶点列表 + * @return bindingSites + */ + public List getBindingSites() { + return bindingSites; + } + + public void setBindingSites(List bindingSites) { + this.bindingSites = bindingSites; + } + + public ShowGenJobResponse withWeakConstraints(List weakConstraints) { + this.weakConstraints = weakConstraints; + return this; + } + + public ShowGenJobResponse addWeakConstraintsItem(WeakConstraintDto weakConstraintsItem) { + if (this.weakConstraints == null) { + this.weakConstraints = new ArrayList<>(); + } + this.weakConstraints.add(weakConstraintsItem); + return this; + } + + public ShowGenJobResponse withWeakConstraints(Consumer> weakConstraintsSetter) { + if (this.weakConstraints == null) { + this.weakConstraints = new ArrayList<>(); + } + weakConstraintsSetter.accept(this.weakConstraints); + return this; + } + + /** + * 弱约束集合 + * @return weakConstraints + */ + public List getWeakConstraints() { + return weakConstraints; + } + + public void setWeakConstraints(List weakConstraints) { + this.weakConstraints = weakConstraints; + } + + public ShowGenJobResponse withStrongConstraints(List strongConstraints) { + this.strongConstraints = strongConstraints; + return this; + } + + public ShowGenJobResponse addStrongConstraintsItem(StrongConstraintDto strongConstraintsItem) { + if (this.strongConstraints == null) { + this.strongConstraints = new ArrayList<>(); + } + this.strongConstraints.add(strongConstraintsItem); + return this; + } + + public ShowGenJobResponse withStrongConstraints(Consumer> strongConstraintsSetter) { + if (this.strongConstraints == null) { + this.strongConstraints = new ArrayList<>(); + } + strongConstraintsSetter.accept(this.strongConstraints); + return this; + } + + /** + * 强约束集合 + * @return strongConstraints + */ + public List getStrongConstraints() { + return strongConstraints; + } + + public void setStrongConstraints(List strongConstraints) { + this.strongConstraints = strongConstraints; + } + + public ShowGenJobResponse withBaseModel(BaseModel baseModel) { + this.baseModel = baseModel; + return this; + } + + public ShowGenJobResponse withBaseModel(Consumer baseModelSetter) { + if (this.baseModel == null) { + this.baseModel = new BaseModel(); + baseModelSetter.accept(this.baseModel); + } + + return this; + } + + /** + * Get baseModel + * @return baseModel + */ + public BaseModel getBaseModel() { + return baseModel; + } + + public void setBaseModel(BaseModel baseModel) { + this.baseModel = baseModel; + } + + public ShowGenJobResponse withModels(List models) { + this.models = models; + return this; + } + + public ShowGenJobResponse addModelsItem(BasicDrugModel modelsItem) { + if (this.models == null) { + this.models = new ArrayList<>(); + } + this.models.add(modelsItem); + return this; + } + + public ShowGenJobResponse withModels(Consumer> modelsSetter) { + if (this.models == null) { + this.models = new ArrayList<>(); + } + modelsSetter.accept(this.models); + return this; + } + + /** + * 模型列表 + * @return models + */ + public List getModels() { + return models; + } + + public void setModels(List models) { + this.models = models; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowGenJobResponse that = (ShowGenJobResponse) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.smilesList, that.smilesList) + && Objects.equals(this.moleculeFile, that.moleculeFile) && Objects.equals(this.numTrials, that.numTrials) + && Objects.equals(this.initialDatasetSize, that.initialDatasetSize) + && Objects.equals(this.bindingSites, that.bindingSites) + && Objects.equals(this.weakConstraints, that.weakConstraints) + && Objects.equals(this.strongConstraints, that.strongConstraints) + && Objects.equals(this.baseModel, that.baseModel) && Objects.equals(this.models, that.models); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, + smilesList, + moleculeFile, + numTrials, + initialDatasetSize, + bindingSites, + weakConstraints, + strongConstraints, + baseModel, + models); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowGenJobResponse {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" smilesList: ").append(toIndentedString(smilesList)).append("\n"); + sb.append(" moleculeFile: ").append(toIndentedString(moleculeFile)).append("\n"); + sb.append(" numTrials: ").append(toIndentedString(numTrials)).append("\n"); + sb.append(" initialDatasetSize: ").append(toIndentedString(initialDatasetSize)).append("\n"); + sb.append(" bindingSites: ").append(toIndentedString(bindingSites)).append("\n"); + sb.append(" weakConstraints: ").append(toIndentedString(weakConstraints)).append("\n"); + sb.append(" strongConstraints: ").append(toIndentedString(strongConstraints)).append("\n"); + sb.append(" baseModel: ").append(toIndentedString(baseModel)).append("\n"); + sb.append(" models: ").append(toIndentedString(models)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java index c65833c3dd..65701cea81 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowOptmJobResponse.java @@ -59,6 +59,11 @@ public class ShowOptmJobResponse extends SdkResponse { private Float samplerMixinWeight; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_model") + + private BaseModel baseModel; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "models") @@ -299,6 +304,32 @@ public void setSamplerMixinWeight(Float samplerMixinWeight) { this.samplerMixinWeight = samplerMixinWeight; } + public ShowOptmJobResponse withBaseModel(BaseModel baseModel) { + this.baseModel = baseModel; + return this; + } + + public ShowOptmJobResponse withBaseModel(Consumer baseModelSetter) { + if (this.baseModel == null) { + this.baseModel = new BaseModel(); + baseModelSetter.accept(this.baseModel); + } + + return this; + } + + /** + * Get baseModel + * @return baseModel + */ + public BaseModel getBaseModel() { + return baseModel; + } + + public void setBaseModel(BaseModel baseModel) { + this.baseModel = baseModel; + } + public ShowOptmJobResponse withModels(List models) { this.models = models; return this; @@ -374,7 +405,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.weakConstraints, that.weakConstraints) && Objects.equals(this.strongConstraints, that.strongConstraints) && Objects.equals(this.samplerMixinWeight, that.samplerMixinWeight) - && Objects.equals(this.models, that.models) && Objects.equals(this.clusterResult, that.clusterResult); + && Objects.equals(this.baseModel, that.baseModel) && Objects.equals(this.models, that.models) + && Objects.equals(this.clusterResult, that.clusterResult); } @Override @@ -388,6 +420,7 @@ public int hashCode() { weakConstraints, strongConstraints, samplerMixinWeight, + baseModel, models, clusterResult); } @@ -405,6 +438,7 @@ public String toString() { sb.append(" weakConstraints: ").append(toIndentedString(weakConstraints)).append("\n"); sb.append(" strongConstraints: ").append(toIndentedString(strongConstraints)).append("\n"); sb.append(" samplerMixinWeight: ").append(toIndentedString(samplerMixinWeight)).append("\n"); + sb.append(" baseModel: ").append(toIndentedString(baseModel)).append("\n"); sb.append(" models: ").append(toIndentedString(models)).append("\n"); sb.append(" clusterResult: ").append(toIndentedString(clusterResult)).append("\n"); sb.append("}"); diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowTargetOptJobRequest.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowTargetOptJobRequest.java new file mode 100644 index 0000000000..c7395192db --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowTargetOptJobRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowTargetOptJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eihealth_project_id") + + private String eihealthProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public ShowTargetOptJobRequest withEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + return this; + } + + /** + * 平台项目ID。 + * @return eihealthProjectId + */ + public String getEihealthProjectId() { + return eihealthProjectId; + } + + public void setEihealthProjectId(String eihealthProjectId) { + this.eihealthProjectId = eihealthProjectId; + } + + public ShowTargetOptJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 作业id + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowTargetOptJobRequest that = (ShowTargetOptJobRequest) obj; + return Objects.equals(this.eihealthProjectId, that.eihealthProjectId) && Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(eihealthProjectId, jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowTargetOptJobRequest {\n"); + sb.append(" eihealthProjectId: ").append(toIndentedString(eihealthProjectId)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowTargetOptJobResponse.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowTargetOptJobResponse.java new file mode 100644 index 0000000000..d17f1632fd --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/ShowTargetOptJobResponse.java @@ -0,0 +1,180 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowTargetOptJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "basic_info") + + private DrugJobDto basicInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "receptor") + + private TargetOptReceptor receptor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ligand") + + private TargetOptLigand ligand; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "md_params") + + private MdParam mdParams; + + public ShowTargetOptJobResponse withBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + return this; + } + + public ShowTargetOptJobResponse withBasicInfo(Consumer basicInfoSetter) { + if (this.basicInfo == null) { + this.basicInfo = new DrugJobDto(); + basicInfoSetter.accept(this.basicInfo); + } + + return this; + } + + /** + * Get basicInfo + * @return basicInfo + */ + public DrugJobDto getBasicInfo() { + return basicInfo; + } + + public void setBasicInfo(DrugJobDto basicInfo) { + this.basicInfo = basicInfo; + } + + public ShowTargetOptJobResponse withReceptor(TargetOptReceptor receptor) { + this.receptor = receptor; + return this; + } + + public ShowTargetOptJobResponse withReceptor(Consumer receptorSetter) { + if (this.receptor == null) { + this.receptor = new TargetOptReceptor(); + receptorSetter.accept(this.receptor); + } + + return this; + } + + /** + * Get receptor + * @return receptor + */ + public TargetOptReceptor getReceptor() { + return receptor; + } + + public void setReceptor(TargetOptReceptor receptor) { + this.receptor = receptor; + } + + public ShowTargetOptJobResponse withLigand(TargetOptLigand ligand) { + this.ligand = ligand; + return this; + } + + public ShowTargetOptJobResponse withLigand(Consumer ligandSetter) { + if (this.ligand == null) { + this.ligand = new TargetOptLigand(); + ligandSetter.accept(this.ligand); + } + + return this; + } + + /** + * Get ligand + * @return ligand + */ + public TargetOptLigand getLigand() { + return ligand; + } + + public void setLigand(TargetOptLigand ligand) { + this.ligand = ligand; + } + + public ShowTargetOptJobResponse withMdParams(MdParam mdParams) { + this.mdParams = mdParams; + return this; + } + + public ShowTargetOptJobResponse withMdParams(Consumer mdParamsSetter) { + if (this.mdParams == null) { + this.mdParams = new MdParam(); + mdParamsSetter.accept(this.mdParams); + } + + return this; + } + + /** + * Get mdParams + * @return mdParams + */ + public MdParam getMdParams() { + return mdParams; + } + + public void setMdParams(MdParam mdParams) { + this.mdParams = mdParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowTargetOptJobResponse that = (ShowTargetOptJobResponse) obj; + return Objects.equals(this.basicInfo, that.basicInfo) && Objects.equals(this.receptor, that.receptor) + && Objects.equals(this.ligand, that.ligand) && Objects.equals(this.mdParams, that.mdParams); + } + + @Override + public int hashCode() { + return Objects.hash(basicInfo, receptor, ligand, mdParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowTargetOptJobResponse {\n"); + sb.append(" basicInfo: ").append(toIndentedString(basicInfo)).append("\n"); + sb.append(" receptor: ").append(toIndentedString(receptor)).append("\n"); + sb.append(" ligand: ").append(toIndentedString(ligand)).append("\n"); + sb.append(" mdParams: ").append(toIndentedString(mdParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintDto.java index 8c8ee8950f..15130c8cc9 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintDto.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintDto.java @@ -43,6 +43,11 @@ public class StrongConstraintDto { private StructureConstraintParamsDto struct; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interaction") + + private InteractionConstraintDto interaction; + public StrongConstraintDto withId(String id) { this.id = id; return this; @@ -170,6 +175,32 @@ public void setStruct(StructureConstraintParamsDto struct) { this.struct = struct; } + public StrongConstraintDto withInteraction(InteractionConstraintDto interaction) { + this.interaction = interaction; + return this; + } + + public StrongConstraintDto withInteraction(Consumer interactionSetter) { + if (this.interaction == null) { + this.interaction = new InteractionConstraintDto(); + interactionSetter.accept(this.interaction); + } + + return this; + } + + /** + * Get interaction + * @return interaction + */ + public InteractionConstraintDto getInteraction() { + return interaction; + } + + public void setInteraction(InteractionConstraintDto interaction) { + this.interaction = interaction; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -181,12 +212,13 @@ public boolean equals(java.lang.Object obj) { StrongConstraintDto that = (StrongConstraintDto) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.bool, that.bool) - && Objects.equals(this.range, that.range) && Objects.equals(this.struct, that.struct); + && Objects.equals(this.range, that.range) && Objects.equals(this.struct, that.struct) + && Objects.equals(this.interaction, that.interaction); } @Override public int hashCode() { - return Objects.hash(id, name, type, bool, range, struct); + return Objects.hash(id, name, type, bool, range, struct, interaction); } @Override @@ -199,6 +231,7 @@ public String toString() { sb.append(" bool: ").append(toIndentedString(bool)).append("\n"); sb.append(" range: ").append(toIndentedString(range)).append("\n"); sb.append(" struct: ").append(toIndentedString(struct)).append("\n"); + sb.append(" interaction: ").append(toIndentedString(interaction)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintType.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintType.java index 4e8a4e4541..566be51fa4 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintType.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/StrongConstraintType.java @@ -27,6 +27,11 @@ public class StrongConstraintType { */ public static final StrongConstraintType STRUCT = new StrongConstraintType("struct"); + /** + * Enum INTERACTION for value: "interaction" + */ + public static final StrongConstraintType INTERACTION = new StrongConstraintType("interaction"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -34,6 +39,7 @@ private static Map createStaticFields() { map.put("bool", BOOL); map.put("range", RANGE); map.put("struct", STRUCT); + map.put("interaction", INTERACTION); return Collections.unmodifiableMap(map); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TargetOptLigand.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TargetOptLigand.java new file mode 100644 index 0000000000..9b930e6c84 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TargetOptLigand.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 配体设置 + */ +public class TargetOptLigand { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file") + + private ProbeDrugFile file; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "force_field") + + private String forceField; + + public TargetOptLigand withFile(ProbeDrugFile file) { + this.file = file; + return this; + } + + public TargetOptLigand withFile(Consumer fileSetter) { + if (this.file == null) { + this.file = new ProbeDrugFile(); + fileSetter.accept(this.file); + } + + return this; + } + + /** + * Get file + * @return file + */ + public ProbeDrugFile getFile() { + return file; + } + + public void setFile(ProbeDrugFile file) { + this.file = file; + } + + public TargetOptLigand withForceField(String forceField) { + this.forceField = forceField; + return this; + } + + /** + * 配体力场, 支持选择gaff, gaff2 + * @return forceField + */ + public String getForceField() { + return forceField; + } + + public void setForceField(String forceField) { + this.forceField = forceField; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TargetOptLigand that = (TargetOptLigand) obj; + return Objects.equals(this.file, that.file) && Objects.equals(this.forceField, that.forceField); + } + + @Override + public int hashCode() { + return Objects.hash(file, forceField); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TargetOptLigand {\n"); + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append(" forceField: ").append(toIndentedString(forceField)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TargetOptReceptor.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TargetOptReceptor.java new file mode 100644 index 0000000000..ea723e91a7 --- /dev/null +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/TargetOptReceptor.java @@ -0,0 +1,202 @@ +package com.huaweicloud.sdk.eihealth.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 靶点设置 + */ +public class TargetOptReceptor { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "file") + + private ReceptorDrugFile file; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "balanced_charge") + + private Boolean balancedCharge; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "water_model") + + private String waterModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "force_field") + + private String forceField; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ion_type") + + private String ionType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ion_concentration") + + private Float ionConcentration; + + public TargetOptReceptor withFile(ReceptorDrugFile file) { + this.file = file; + return this; + } + + public TargetOptReceptor withFile(Consumer fileSetter) { + if (this.file == null) { + this.file = new ReceptorDrugFile(); + fileSetter.accept(this.file); + } + + return this; + } + + /** + * Get file + * @return file + */ + public ReceptorDrugFile getFile() { + return file; + } + + public void setFile(ReceptorDrugFile file) { + this.file = file; + } + + public TargetOptReceptor withBalancedCharge(Boolean balancedCharge) { + this.balancedCharge = balancedCharge; + return this; + } + + /** + * 是否平衡电荷 + * @return balancedCharge + */ + public Boolean getBalancedCharge() { + return balancedCharge; + } + + public void setBalancedCharge(Boolean balancedCharge) { + this.balancedCharge = balancedCharge; + } + + public TargetOptReceptor withWaterModel(String waterModel) { + this.waterModel = waterModel; + return this; + } + + /** + * 水模型, 支持选择spc, spce, tip3p, tip4p, tip5p + * @return waterModel + */ + public String getWaterModel() { + return waterModel; + } + + public void setWaterModel(String waterModel) { + this.waterModel = waterModel; + } + + public TargetOptReceptor withForceField(String forceField) { + this.forceField = forceField; + return this; + } + + /** + * 蛋白立场,支持选择amber03, amber94, amber96, amber99, amber99sb, amber99sb-ildn, amberGS, charmm27, oplsaa, gromos43a1, gromos43a2, gromos45a3, gromos53a5, gromos53a6, gromos54a7 + * @return forceField + */ + public String getForceField() { + return forceField; + } + + public void setForceField(String forceField) { + this.forceField = forceField; + } + + public TargetOptReceptor withIonType(String ionType) { + this.ionType = ionType; + return this; + } + + /** + * 离子种类,支持选择NaCl、MgCl2、None,若设置了平衡电荷不支持选择None + * @return ionType + */ + public String getIonType() { + return ionType; + } + + public void setIonType(String ionType) { + this.ionType = ionType; + } + + public TargetOptReceptor withIonConcentration(Float ionConcentration) { + this.ionConcentration = ionConcentration; + return this; + } + + /** + * 离子浓度,单位mol/L,若离子种类设置为None离子浓度不支持设置 + * minimum: 0 + * maximum: 5 + * @return ionConcentration + */ + public Float getIonConcentration() { + return ionConcentration; + } + + public void setIonConcentration(Float ionConcentration) { + this.ionConcentration = ionConcentration; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TargetOptReceptor that = (TargetOptReceptor) obj; + return Objects.equals(this.file, that.file) && Objects.equals(this.balancedCharge, that.balancedCharge) + && Objects.equals(this.waterModel, that.waterModel) && Objects.equals(this.forceField, that.forceField) + && Objects.equals(this.ionType, that.ionType) + && Objects.equals(this.ionConcentration, that.ionConcentration); + } + + @Override + public int hashCode() { + return Objects.hash(file, balancedCharge, waterModel, forceField, ionType, ionConcentration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TargetOptReceptor {\n"); + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append(" balancedCharge: ").append(toIndentedString(balancedCharge)).append("\n"); + sb.append(" waterModel: ").append(toIndentedString(waterModel)).append("\n"); + sb.append(" forceField: ").append(toIndentedString(forceField)).append("\n"); + sb.append(" ionType: ").append(toIndentedString(ionType)).append("\n"); + sb.append(" ionConcentration: ").append(toIndentedString(ionConcentration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintDto.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintDto.java index 1f8b06c5c7..ebddefd950 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintDto.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintDto.java @@ -48,6 +48,11 @@ public class WeakConstraintDto { private List quantiles = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "interaction") + + private InteractionConstraintDto interaction; + public WeakConstraintDto withId(String id) { this.id = id; return this; @@ -208,6 +213,32 @@ public void setQuantiles(List quantiles) { this.quantiles = quantiles; } + public WeakConstraintDto withInteraction(InteractionConstraintDto interaction) { + this.interaction = interaction; + return this; + } + + public WeakConstraintDto withInteraction(Consumer interactionSetter) { + if (this.interaction == null) { + this.interaction = new InteractionConstraintDto(); + interactionSetter.accept(this.interaction); + } + + return this; + } + + /** + * Get interaction + * @return interaction + */ + public InteractionConstraintDto getInteraction() { + return interaction; + } + + public void setInteraction(InteractionConstraintDto interaction) { + this.interaction = interaction; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -220,12 +251,12 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.bool, that.bool) && Objects.equals(this.range, that.range) && Objects.equals(this.struct, that.struct) - && Objects.equals(this.quantiles, that.quantiles); + && Objects.equals(this.quantiles, that.quantiles) && Objects.equals(this.interaction, that.interaction); } @Override public int hashCode() { - return Objects.hash(id, name, type, bool, range, struct, quantiles); + return Objects.hash(id, name, type, bool, range, struct, quantiles, interaction); } @Override @@ -239,6 +270,7 @@ public String toString() { sb.append(" range: ").append(toIndentedString(range)).append("\n"); sb.append(" struct: ").append(toIndentedString(struct)).append("\n"); sb.append(" quantiles: ").append(toIndentedString(quantiles)).append("\n"); + sb.append(" interaction: ").append(toIndentedString(interaction)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintType.java b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintType.java index 7d13096950..1a43a24f7f 100644 --- a/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintType.java +++ b/services/eihealth/src/main/java/com/huaweicloud/sdk/eihealth/v1/model/WeakConstraintType.java @@ -37,6 +37,11 @@ public class WeakConstraintType { */ public static final WeakConstraintType MAXIMIZE = new WeakConstraintType("maximize"); + /** + * Enum INTERACTION for value: "interaction" + */ + public static final WeakConstraintType INTERACTION = new WeakConstraintType("interaction"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -46,6 +51,7 @@ private static Map createStaticFields() { map.put("struct", STRUCT); map.put("minimize", MINIMIZE); map.put("maximize", MAXIMIZE); + map.put("interaction", INTERACTION); return Collections.unmodifiableMap(map); } diff --git a/services/eip/pom.xml b/services/eip/pom.xml index 2c9d68087c..df18de40d2 100644 --- a/services/eip/pom.xml +++ b/services/eip/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.108 + 3.1.109 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/elb/pom.xml b/services/elb/pom.xml index eb1a7187ee..565858aa75 100644 --- a/services/elb/pom.xml +++ b/services/elb/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.108 + 3.1.109 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/eps/pom.xml b/services/eps/pom.xml index 8ccf2bb9c5..2662d48ffe 100644 --- a/services/eps/pom.xml +++ b/services/eps/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.108 + 3.1.109 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/er/pom.xml b/services/er/pom.xml index 7bb7f04d29..c47d8564c7 100644 --- a/services/er/pom.xml +++ b/services/er/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.108 + 3.1.109 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index 1da2b4fb89..0406d94077 100644 --- a/services/evs/pom.xml +++ b/services/evs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.108 + 3.1.109 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/expert/pom.xml b/services/expert/pom.xml index 1dd1561857..f1d2ec49ad 100644 --- a/services/expert/pom.xml +++ b/services/expert/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.108 + 3.1.109 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index d4450fbada..5867291408 100644 --- a/services/frs/pom.xml +++ b/services/frs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.108 + 3.1.109 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index 8acfa06ffd..7935801634 100644 --- a/services/functiongraph/pom.xml +++ b/services/functiongraph/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.108 + 3.1.109 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ga/pom.xml b/services/ga/pom.xml index bd5dd34148..01a170835f 100644 --- a/services/ga/pom.xml +++ b/services/ga/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.108 + 3.1.109 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index c6281e28c7..33b04e276c 100644 --- a/services/gaussdb/pom.xml +++ b/services/gaussdb/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.108 + 3.1.109 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index 3bdfec08e2..c7ec042e29 100644 --- a/services/gaussdbfornosql/pom.xml +++ b/services/gaussdbfornosql/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.108 + 3.1.109 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index 42f50c9455..c8ea17db64 100644 --- a/services/gaussdbforopengauss/pom.xml +++ b/services/gaussdbforopengauss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.108 + 3.1.109 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/geip/pom.xml b/services/geip/pom.xml index da69219a6d..10d3c99dc4 100644 --- a/services/geip/pom.xml +++ b/services/geip/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.108 + 3.1.109 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index e0c9fbfc80..addb45a7d1 100644 --- a/services/ges/pom.xml +++ b/services/ges/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.108 + 3.1.109 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index 39317467ef..9acd66f742 100644 --- a/services/gsl/pom.xml +++ b/services/gsl/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.108 + 3.1.109 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index 5c5cd40f34..bb59611580 100644 --- a/services/hilens/pom.xml +++ b/services/hilens/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.108 + 3.1.109 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index d2ec42cf56..feb7bc0cd4 100644 --- a/services/hss/pom.xml +++ b/services/hss/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.108 + 3.1.109 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/model/ImageLocalInfo.java b/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/model/ImageLocalInfo.java index 88737d0722..b591e3a2ea 100644 --- a/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/model/ImageLocalInfo.java +++ b/services/hss/src/main/java/com/huaweicloud/sdk/hss/v5/model/ImageLocalInfo.java @@ -90,6 +90,26 @@ public class ImageLocalInfo { private String scanFailedDesc; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "severity_level") + + private String severityLevel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_name") + + private String hostName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_id") + + private String hostId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "agent_id") + + private String agentId; + public ImageLocalInfo withImageName(String imageName) { this.imageName = imageName; return this; @@ -380,6 +400,74 @@ public void setScanFailedDesc(String scanFailedDesc) { this.scanFailedDesc = scanFailedDesc; } + public ImageLocalInfo withSeverityLevel(String severityLevel) { + this.severityLevel = severityLevel; + return this; + } + + /** + * 镜像风险程度,在镜像扫描完成后展示,包含如下: - Security:安全 - Low:低危 - Medium:中危 - High:高危 + * @return severityLevel + */ + public String getSeverityLevel() { + return severityLevel; + } + + public void setSeverityLevel(String severityLevel) { + this.severityLevel = severityLevel; + } + + public ImageLocalInfo withHostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * 服务器名称 + * @return hostName + */ + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public ImageLocalInfo withHostId(String hostId) { + this.hostId = hostId; + return this; + } + + /** + * 主机ID + * @return hostId + */ + public String getHostId() { + return hostId; + } + + public void setHostId(String hostId) { + this.hostId = hostId; + } + + public ImageLocalInfo withAgentId(String agentId) { + this.agentId = agentId; + return this; + } + + /** + * Agent ID + * @return agentId + */ + public String getAgentId() { + return agentId; + } + + public void setAgentId(String agentId) { + this.agentId = agentId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -400,7 +488,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.maliciousFileNum, that.maliciousFileNum) && Objects.equals(this.hostNum, that.hostNum) && Objects.equals(this.containerNum, that.containerNum) && Objects.equals(this.componentNum, that.componentNum) - && Objects.equals(this.scanFailedDesc, that.scanFailedDesc); + && Objects.equals(this.scanFailedDesc, that.scanFailedDesc) + && Objects.equals(this.severityLevel, that.severityLevel) && Objects.equals(this.hostName, that.hostName) + && Objects.equals(this.hostId, that.hostId) && Objects.equals(this.agentId, that.agentId); } @Override @@ -420,7 +510,11 @@ public int hashCode() { hostNum, containerNum, componentNum, - scanFailedDesc); + scanFailedDesc, + severityLevel, + hostName, + hostId, + agentId); } @Override @@ -443,6 +537,10 @@ public String toString() { sb.append(" containerNum: ").append(toIndentedString(containerNum)).append("\n"); sb.append(" componentNum: ").append(toIndentedString(componentNum)).append("\n"); sb.append(" scanFailedDesc: ").append(toIndentedString(scanFailedDesc)).append("\n"); + sb.append(" severityLevel: ").append(toIndentedString(severityLevel)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" hostId: ").append(toIndentedString(hostId)).append("\n"); + sb.append(" agentId: ").append(toIndentedString(agentId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/iam/pom.xml b/services/iam/pom.xml index 96661c027b..383a838441 100644 --- a/services/iam/pom.xml +++ b/services/iam/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.108 + 3.1.109 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamAsyncClient.java b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamAsyncClient.java index 117b2e4c61..4946c56dfe 100644 --- a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamAsyncClient.java +++ b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamAsyncClient.java @@ -419,7 +419,7 @@ public AsyncInvoker assoc } /** - * application/json + * 基于委托为企业项目授权 * * 该接口可以基于委托为企业项目授权 * @@ -2097,40 +2097,6 @@ public AsyncInvoker k return new AsyncInvoker<>(request, IamMeta.keystoneListServices, hcClient); } - /** - * 管理员查询用户组所包含的IAM用户 - * - * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 - * - * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 - * @return CompletableFuture - */ - public CompletableFuture keystoneListUsersForGroupByAdminAsync( - KeystoneListUsersForGroupByAdminRequest request) { - return hcClient.asyncInvokeHttp(request, IamMeta.keystoneListUsersForGroupByAdmin); - } - - /** - * 管理员查询用户组所包含的IAM用户 - * - * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 - * - * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 - * @return AsyncInvoker - */ - public AsyncInvoker keystoneListUsersForGroupByAdminAsyncInvoker( - KeystoneListUsersForGroupByAdminRequest request) { - return new AsyncInvoker<>(request, IamMeta.keystoneListUsersForGroupByAdmin, hcClient); - } - /** * 查询版本信息列表 * @@ -3342,7 +3308,7 @@ public AsyncInvoker revoke } /** - * + * 删除企业项目关联委托的权限 * * 该接口可以删除企业项目委托上的授权 * @@ -4782,6 +4748,40 @@ public AsyncInvoker keyston return new AsyncInvoker<>(request, IamMeta.keystoneListUsers, hcClient); } + /** + * 管理员查询用户组所包含的IAM用户 + * + * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 + * + * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture keystoneListUsersForGroupByAdminAsync( + KeystoneListUsersForGroupByAdminRequest request) { + return hcClient.asyncInvokeHttp(request, IamMeta.keystoneListUsersForGroupByAdmin); + } + + /** + * 管理员查询用户组所包含的IAM用户 + * + * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 + * + * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker keystoneListUsersForGroupByAdminAsyncInvoker( + KeystoneListUsersForGroupByAdminRequest request) { + return new AsyncInvoker<>(request, IamMeta.keystoneListUsersForGroupByAdmin, hcClient); + } + /** * 查询IAM用户详情 * diff --git a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamClient.java b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamClient.java index a68735db01..42806ae495 100644 --- a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamClient.java +++ b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamClient.java @@ -417,7 +417,7 @@ public SyncInvoker ke return new SyncInvoker<>(request, IamMeta.keystoneListServices, hcClient); } - /** - * 管理员查询用户组所包含的IAM用户 - * - * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 - * - * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 - * @return KeystoneListUsersForGroupByAdminResponse - */ - public KeystoneListUsersForGroupByAdminResponse keystoneListUsersForGroupByAdmin( - KeystoneListUsersForGroupByAdminRequest request) { - return hcClient.syncInvokeHttp(request, IamMeta.keystoneListUsersForGroupByAdmin); - } - - /** - * 管理员查询用户组所包含的IAM用户 - * - * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 - * - * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 - * @return SyncInvoker - */ - public SyncInvoker keystoneListUsersForGroupByAdminInvoker( - KeystoneListUsersForGroupByAdminRequest request) { - return new SyncInvoker<>(request, IamMeta.keystoneListUsersForGroupByAdmin, hcClient); - } - /** * 查询版本信息列表 * @@ -3308,7 +3274,7 @@ public SyncInvoker keystone return new SyncInvoker<>(request, IamMeta.keystoneListUsers, hcClient); } + /** + * 管理员查询用户组所包含的IAM用户 + * + * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 + * + * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 + * @return KeystoneListUsersForGroupByAdminResponse + */ + public KeystoneListUsersForGroupByAdminResponse keystoneListUsersForGroupByAdmin( + KeystoneListUsersForGroupByAdminRequest request) { + return hcClient.syncInvokeHttp(request, IamMeta.keystoneListUsersForGroupByAdmin); + } + + /** + * 管理员查询用户组所包含的IAM用户 + * + * 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)查询用户组中所包含的IAM用户。 + * + * 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request KeystoneListUsersForGroupByAdminRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker keystoneListUsersForGroupByAdminInvoker( + KeystoneListUsersForGroupByAdminRequest request) { + return new SyncInvoker<>(request, IamMeta.keystoneListUsersForGroupByAdmin, hcClient); + } + /** * 查询IAM用户详情 * diff --git a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamMeta.java b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamMeta.java index 16227e6931..2e83bb89d1 100644 --- a/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamMeta.java +++ b/services/iam/src/main/java/com/huaweicloud/sdk/iam/v3/IamMeta.java @@ -2024,33 +2024,6 @@ private static HttpRequestDef keystoneListUsersForGroupByAdmin = - genForKeystoneListUsersForGroupByAdmin(); - - private static HttpRequestDef genForKeystoneListUsersForGroupByAdmin() { - // basic - HttpRequestDef.Builder builder = - HttpRequestDef - .builder(HttpMethod.GET, - KeystoneListUsersForGroupByAdminRequest.class, - KeystoneListUsersForGroupByAdminResponse.class) - .withName("KeystoneListUsersForGroupByAdmin") - .withUri("/v3/groups/{group_id}/users") - .withContentType("application/json"); - - // requests - builder.withRequestField("group_id", - LocationType.Path, - FieldExistence.NON_NULL_NON_EMPTY, - TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(KeystoneListUsersForGroupByAdminRequest::getGroupId, - KeystoneListUsersForGroupByAdminRequest::setGroupId)); - - // response - - return builder.build(); - } - public static final HttpRequestDef keystoneListVersions = genForKeystoneListVersions(); @@ -4376,6 +4349,33 @@ private static HttpRequestDef keystoneListUsersForGroupByAdmin = + genForKeystoneListUsersForGroupByAdmin(); + + private static HttpRequestDef genForKeystoneListUsersForGroupByAdmin() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + KeystoneListUsersForGroupByAdminRequest.class, + KeystoneListUsersForGroupByAdminResponse.class) + .withName("KeystoneListUsersForGroupByAdmin") + .withUri("/v3/groups/{group_id}/users") + .withContentType("application/json"); + + // requests + builder.withRequestField("group_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(KeystoneListUsersForGroupByAdminRequest::getGroupId, + KeystoneListUsersForGroupByAdminRequest::setGroupId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef keystoneShowUser = genForKeystoneShowUser(); diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index 1134f6318c..964d905658 100644 --- a/services/iamaccessanalyzer/pom.xml +++ b/services/iamaccessanalyzer/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.108 + 3.1.109 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index 739277347a..ed23afea5f 100644 --- a/services/identitycenter/pom.xml +++ b/services/identitycenter/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.108 + 3.1.109 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index 5039070a2d..75ae8b4a1a 100644 --- a/services/identitycenterstore/pom.xml +++ b/services/identitycenterstore/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.108 + 3.1.109 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/idme/pom.xml b/services/idme/pom.xml index 1b7407b170..d54d6b16e4 100644 --- a/services/idme/pom.xml +++ b/services/idme/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.108 + 3.1.109 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index 6f3adec44a..993e840522 100644 --- a/services/idmeclassicapi/pom.xml +++ b/services/idmeclassicapi/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.108 + 3.1.109 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/BatchCreateUsingPostRequest.java b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/BatchCreateUsingPostRequest.java index 8d3e8a1b7e..e76452d222 100644 --- a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/BatchCreateUsingPostRequest.java +++ b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/BatchCreateUsingPostRequest.java @@ -49,7 +49,7 @@ public BatchCreateUsingPostRequest withModelName(String modelName) { } /** - * 数据模型的英文名称。 + * **参数解释:** 数据模型的英文名称。 **约束限制:** 不涉及。 **取值范围:** 大写字母开头,只能包含字母、数字、\"_\",且长度为[1-60]个字符。 **默认取值:** 不涉及。 * @return modelName */ public String getModelName() { diff --git a/services/iec/pom.xml b/services/iec/pom.xml index 3d03fada16..e6807dc975 100644 --- a/services/iec/pom.xml +++ b/services/iec/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.108 + 3.1.109 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index ce78b5cfaf..15024b9d6c 100644 --- a/services/ief/pom.xml +++ b/services/ief/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.108 + 3.1.109 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/image/pom.xml b/services/image/pom.xml index 8aefadb084..b25e48a38c 100644 --- a/services/image/pom.xml +++ b/services/image/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.108 + 3.1.109 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index 1034f7605a..a24540dfdc 100644 --- a/services/imagesearch/pom.xml +++ b/services/imagesearch/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.108 + 3.1.109 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index 5210f98a31..3654547506 100644 --- a/services/ims/pom.xml +++ b/services/ims/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.108 + 3.1.109 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index 4b2ca81b63..3ee932270c 100644 --- a/services/iotanalytics/pom.xml +++ b/services/iotanalytics/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.108 + 3.1.109 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index e7bbe30934..d27c5b59a4 100644 --- a/services/iotda/pom.xml +++ b/services/iotda/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.108 + 3.1.109 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 junit diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/region/IoTDARegion.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/region/IoTDARegion.java index 310d1d1e3d..2e9167222e 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/region/IoTDARegion.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/region/IoTDARegion.java @@ -37,6 +37,8 @@ public class IoTDARegion { public static final Region LA_SOUTH_2 = new Region("la-south-2", "https://iotda.la-south-2.myhuaweicloud.com"); + public static final Region SA_BRAZIL_1 = new Region("sa-brazil-1", "https://iotda.sa-brazil-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("IOTDA"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -53,6 +55,7 @@ private static Map createStaticFields() { map.put("af-south-1", AF_SOUTH_1); map.put("me-east-1", ME_EAST_1); map.put("la-south-2", LA_SOUTH_2); + map.put("sa-brazil-1", SA_BRAZIL_1); return Collections.unmodifiableMap(map); } diff --git a/services/iotdm/pom.xml b/services/iotdm/pom.xml new file mode 100644 index 0000000000..9e291a3469 --- /dev/null +++ b/services/iotdm/pom.xml @@ -0,0 +1,24 @@ + + + + com.huaweicloud.sdk + 3.1.109 + huaweicloud-sdk-services + .. + + huaweicloud-sdk-iotdm + 3.1.109 + Huawei Cloud SDK for IOTDM + + 4.0.0 + jar + + + com.huaweicloud.sdk + huaweicloud-sdk-core + 3.1.109 + + + + \ No newline at end of file diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMAsyncClient.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMAsyncClient.java new file mode 100644 index 0000000000..b64eb5201b --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMAsyncClient.java @@ -0,0 +1,312 @@ +package com.huaweicloud.sdk.iotdm.v5; + +import com.huaweicloud.sdk.core.ClientBuilder; +import com.huaweicloud.sdk.core.HcClient; +import com.huaweicloud.sdk.core.invoker.AsyncInvoker; +import com.huaweicloud.sdk.iotdm.v5.model.BindInstanceTagsRequest; +import com.huaweicloud.sdk.iotdm.v5.model.BindInstanceTagsResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ChangeInstanceChargeModeRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ChangeInstanceChargeModeResponse; +import com.huaweicloud.sdk.iotdm.v5.model.CreateInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.CreateInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.DeleteInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.DeleteInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ListInstancesRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ListInstancesResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ResizeInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ResizeInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ShowInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ShowInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.UnbindInstanceTagsRequest; +import com.huaweicloud.sdk.iotdm.v5.model.UnbindInstanceTagsResponse; +import com.huaweicloud.sdk.iotdm.v5.model.UpdateInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.UpdateInstanceResponse; + +import java.util.concurrent.CompletableFuture; + +public class IoTDMAsyncClient { + + protected HcClient hcClient; + + public IoTDMAsyncClient(HcClient hcClient) { + this.hcClient = hcClient; + } + + public static ClientBuilder newBuilder() { + ClientBuilder clientBuilder = new ClientBuilder<>(IoTDMAsyncClient::new); + return clientBuilder; + } + + /** + * 添加实例标签 + * + * 添加实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BindInstanceTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture bindInstanceTagsAsync(BindInstanceTagsRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.bindInstanceTags); + } + + /** + * 添加实例标签 + * + * 添加实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BindInstanceTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker bindInstanceTagsAsyncInvoker( + BindInstanceTagsRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.bindInstanceTags, hcClient); + } + + /** + * 修改实例计费模式 + * + * 修改设备接入实例的计费模式,支持将按需计费模式修改为包年/包月计费模式。 + * 接口约束:当前实例的规格支持包年/包月计费模式时,才可以修改实例的计费模式为包年/包月。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeInstanceChargeModeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture changeInstanceChargeModeAsync( + ChangeInstanceChargeModeRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.changeInstanceChargeMode); + } + + /** + * 修改实例计费模式 + * + * 修改设备接入实例的计费模式,支持将按需计费模式修改为包年/包月计费模式。 + * 接口约束:当前实例的规格支持包年/包月计费模式时,才可以修改实例的计费模式为包年/包月。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeInstanceChargeModeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker changeInstanceChargeModeAsyncInvoker( + ChangeInstanceChargeModeRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.changeInstanceChargeMode, hcClient); + } + + /** + * 创建设备接入实例 + * + * 用户可以调用此接口创建一个设备接入实例。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * [接口约束: + * - 请保证账户余额充足,此接口无法使用优惠券支付,在创建包年/包月实例时,若余额不足会创建一个待支付订单。 + * - 若想使用优惠券,请将请求中的is_auto_pay字段设置为false,参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用优惠券进行支付。 + * - 如果您需要退订包年/包月资源,请参考[\"退订包年/包月资源\"](https://support.huaweicloud.com/api-bpconsole/api_order_00019.html)。](tag:hws) + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createInstanceAsync(CreateInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.createInstance); + } + + /** + * 创建设备接入实例 + * + * 用户可以调用此接口创建一个设备接入实例。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * [接口约束: + * - 请保证账户余额充足,此接口无法使用优惠券支付,在创建包年/包月实例时,若余额不足会创建一个待支付订单。 + * - 若想使用优惠券,请将请求中的is_auto_pay字段设置为false,参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用优惠券进行支付。 + * - 如果您需要退订包年/包月资源,请参考[\"退订包年/包月资源\"](https://support.huaweicloud.com/api-bpconsole/api_order_00019.html)。](tag:hws) + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createInstanceAsyncInvoker( + CreateInstanceRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.createInstance, hcClient); + } + + /** + * 删除实例 + * + * 删除设备接入实例。约束:此接口仅支持删除按需计费的实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteInstanceAsync(DeleteInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.deleteInstance); + } + + /** + * 删除实例 + * + * 删除设备接入实例。约束:此接口仅支持删除按需计费的实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteInstanceAsyncInvoker( + DeleteInstanceRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.deleteInstance, hcClient); + } + + /** + * 查询实例列表 + * + * 用户可以调用此接口查询设备接入实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstancesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listInstancesAsync(ListInstancesRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.listInstances); + } + + /** + * 查询实例列表 + * + * 用户可以调用此接口查询设备接入实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstancesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listInstancesAsyncInvoker( + ListInstancesRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.listInstances, hcClient); + } + + /** + * 修改实例规格信息 + * + * 修改设备接入实例的规格。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResizeInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture resizeInstanceAsync(ResizeInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.resizeInstance); + } + + /** + * 修改实例规格信息 + * + * 修改设备接入实例的规格。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResizeInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker resizeInstanceAsyncInvoker( + ResizeInstanceRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.resizeInstance, hcClient); + } + + /** + * 查询实例详情 + * + * 查询设备接入实例详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showInstanceAsync(ShowInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.showInstance); + } + + /** + * 查询实例详情 + * + * 查询设备接入实例详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showInstanceAsyncInvoker( + ShowInstanceRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.showInstance, hcClient); + } + + /** + * 删除实例标签 + * + * 删除实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnbindInstanceTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture unbindInstanceTagsAsync(UnbindInstanceTagsRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.unbindInstanceTags); + } + + /** + * 删除实例标签 + * + * 删除实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnbindInstanceTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker unbindInstanceTagsAsyncInvoker( + UnbindInstanceTagsRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.unbindInstanceTags, hcClient); + } + + /** + * 修改实例信息 + * + * 修改设备接入实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateInstanceAsync(UpdateInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDMMeta.updateInstance); + } + + /** + * 修改实例信息 + * + * 修改设备接入实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateInstanceAsyncInvoker( + UpdateInstanceRequest request) { + return new AsyncInvoker<>(request, IoTDMMeta.updateInstance, hcClient); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMClient.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMClient.java new file mode 100644 index 0000000000..6dc1b20d5b --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMClient.java @@ -0,0 +1,307 @@ +package com.huaweicloud.sdk.iotdm.v5; + +import com.huaweicloud.sdk.core.ClientBuilder; +import com.huaweicloud.sdk.core.HcClient; +import com.huaweicloud.sdk.core.invoker.SyncInvoker; +import com.huaweicloud.sdk.iotdm.v5.model.BindInstanceTagsRequest; +import com.huaweicloud.sdk.iotdm.v5.model.BindInstanceTagsResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ChangeInstanceChargeModeRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ChangeInstanceChargeModeResponse; +import com.huaweicloud.sdk.iotdm.v5.model.CreateInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.CreateInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.DeleteInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.DeleteInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ListInstancesRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ListInstancesResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ResizeInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ResizeInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ShowInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ShowInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.UnbindInstanceTagsRequest; +import com.huaweicloud.sdk.iotdm.v5.model.UnbindInstanceTagsResponse; +import com.huaweicloud.sdk.iotdm.v5.model.UpdateInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.UpdateInstanceResponse; + +public class IoTDMClient { + + protected HcClient hcClient; + + public IoTDMClient(HcClient hcClient) { + this.hcClient = hcClient; + } + + public static ClientBuilder newBuilder() { + ClientBuilder clientBuilder = new ClientBuilder<>(IoTDMClient::new); + return clientBuilder; + } + + /** + * 添加实例标签 + * + * 添加实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BindInstanceTagsRequest 请求对象 + * @return BindInstanceTagsResponse + */ + public BindInstanceTagsResponse bindInstanceTags(BindInstanceTagsRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.bindInstanceTags); + } + + /** + * 添加实例标签 + * + * 添加实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BindInstanceTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker bindInstanceTagsInvoker( + BindInstanceTagsRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.bindInstanceTags, hcClient); + } + + /** + * 修改实例计费模式 + * + * 修改设备接入实例的计费模式,支持将按需计费模式修改为包年/包月计费模式。 + * 接口约束:当前实例的规格支持包年/包月计费模式时,才可以修改实例的计费模式为包年/包月。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeInstanceChargeModeRequest 请求对象 + * @return ChangeInstanceChargeModeResponse + */ + public ChangeInstanceChargeModeResponse changeInstanceChargeMode(ChangeInstanceChargeModeRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.changeInstanceChargeMode); + } + + /** + * 修改实例计费模式 + * + * 修改设备接入实例的计费模式,支持将按需计费模式修改为包年/包月计费模式。 + * 接口约束:当前实例的规格支持包年/包月计费模式时,才可以修改实例的计费模式为包年/包月。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeInstanceChargeModeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker changeInstanceChargeModeInvoker( + ChangeInstanceChargeModeRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.changeInstanceChargeMode, hcClient); + } + + /** + * 创建设备接入实例 + * + * 用户可以调用此接口创建一个设备接入实例。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * [接口约束: + * - 请保证账户余额充足,此接口无法使用优惠券支付,在创建包年/包月实例时,若余额不足会创建一个待支付订单。 + * - 若想使用优惠券,请将请求中的is_auto_pay字段设置为false,参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用优惠券进行支付。 + * - 如果您需要退订包年/包月资源,请参考[\"退订包年/包月资源\"](https://support.huaweicloud.com/api-bpconsole/api_order_00019.html)。](tag:hws) + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateInstanceRequest 请求对象 + * @return CreateInstanceResponse + */ + public CreateInstanceResponse createInstance(CreateInstanceRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.createInstance); + } + + /** + * 创建设备接入实例 + * + * 用户可以调用此接口创建一个设备接入实例。支持的实例规格请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 + * [接口约束: + * - 请保证账户余额充足,此接口无法使用优惠券支付,在创建包年/包月实例时,若余额不足会创建一个待支付订单。 + * - 若想使用优惠券,请将请求中的is_auto_pay字段设置为false,参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用优惠券进行支付。 + * - 如果您需要退订包年/包月资源,请参考[\"退订包年/包月资源\"](https://support.huaweicloud.com/api-bpconsole/api_order_00019.html)。](tag:hws) + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createInstanceInvoker( + CreateInstanceRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.createInstance, hcClient); + } + + /** + * 删除实例 + * + * 删除设备接入实例。约束:此接口仅支持删除按需计费的实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceRequest 请求对象 + * @return DeleteInstanceResponse + */ + public DeleteInstanceResponse deleteInstance(DeleteInstanceRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.deleteInstance); + } + + /** + * 删除实例 + * + * 删除设备接入实例。约束:此接口仅支持删除按需计费的实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteInstanceInvoker( + DeleteInstanceRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.deleteInstance, hcClient); + } + + /** + * 查询实例列表 + * + * 用户可以调用此接口查询设备接入实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstancesRequest 请求对象 + * @return ListInstancesResponse + */ + public ListInstancesResponse listInstances(ListInstancesRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.listInstances); + } + + /** + * 查询实例列表 + * + * 用户可以调用此接口查询设备接入实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListInstancesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listInstancesInvoker(ListInstancesRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.listInstances, hcClient); + } + + /** + * 修改实例规格信息 + * + * 修改设备接入实例的规格。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResizeInstanceRequest 请求对象 + * @return ResizeInstanceResponse + */ + public ResizeInstanceResponse resizeInstance(ResizeInstanceRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.resizeInstance); + } + + /** + * 修改实例规格信息 + * + * 修改设备接入实例的规格。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResizeInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker resizeInstanceInvoker( + ResizeInstanceRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.resizeInstance, hcClient); + } + + /** + * 查询实例详情 + * + * 查询设备接入实例详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceRequest 请求对象 + * @return ShowInstanceResponse + */ + public ShowInstanceResponse showInstance(ShowInstanceRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.showInstance); + } + + /** + * 查询实例详情 + * + * 查询设备接入实例详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showInstanceInvoker(ShowInstanceRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.showInstance, hcClient); + } + + /** + * 删除实例标签 + * + * 删除实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnbindInstanceTagsRequest 请求对象 + * @return UnbindInstanceTagsResponse + */ + public UnbindInstanceTagsResponse unbindInstanceTags(UnbindInstanceTagsRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.unbindInstanceTags); + } + + /** + * 删除实例标签 + * + * 删除实例标签。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UnbindInstanceTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker unbindInstanceTagsInvoker( + UnbindInstanceTagsRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.unbindInstanceTags, hcClient); + } + + /** + * 修改实例信息 + * + * 修改设备接入实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceRequest 请求对象 + * @return UpdateInstanceResponse + */ + public UpdateInstanceResponse updateInstance(UpdateInstanceRequest request) { + return hcClient.syncInvokeHttp(request, IoTDMMeta.updateInstance); + } + + /** + * 修改实例信息 + * + * 修改设备接入实例信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateInstanceInvoker( + UpdateInstanceRequest request) { + return new SyncInvoker<>(request, IoTDMMeta.updateInstance, hcClient); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMMeta.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMMeta.java new file mode 100644 index 0000000000..9c9394e357 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/IoTDMMeta.java @@ -0,0 +1,304 @@ +package com.huaweicloud.sdk.iotdm.v5; + +import com.huaweicloud.sdk.core.TypeCasts; +import com.huaweicloud.sdk.core.http.FieldExistence; +import com.huaweicloud.sdk.core.http.HttpMethod; +import com.huaweicloud.sdk.core.http.HttpRequestDef; +import com.huaweicloud.sdk.core.http.LocationType; +import com.huaweicloud.sdk.iotdm.v5.model.BindInstanceTags; +import com.huaweicloud.sdk.iotdm.v5.model.BindInstanceTagsRequest; +import com.huaweicloud.sdk.iotdm.v5.model.BindInstanceTagsResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ChangeInstanceChargeMode; +import com.huaweicloud.sdk.iotdm.v5.model.ChangeInstanceChargeModeRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ChangeInstanceChargeModeResponse; +import com.huaweicloud.sdk.iotdm.v5.model.CreateInstance; +import com.huaweicloud.sdk.iotdm.v5.model.CreateInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.CreateInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.DeleteInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.DeleteInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ListInstancesRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ListInstancesResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ResizeInstance; +import com.huaweicloud.sdk.iotdm.v5.model.ResizeInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ResizeInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.ShowInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.ShowInstanceResponse; +import com.huaweicloud.sdk.iotdm.v5.model.UnbindInstanceTags; +import com.huaweicloud.sdk.iotdm.v5.model.UnbindInstanceTagsRequest; +import com.huaweicloud.sdk.iotdm.v5.model.UnbindInstanceTagsResponse; +import com.huaweicloud.sdk.iotdm.v5.model.UpdateInstance; +import com.huaweicloud.sdk.iotdm.v5.model.UpdateInstanceRequest; +import com.huaweicloud.sdk.iotdm.v5.model.UpdateInstanceResponse; + +@SuppressWarnings("unchecked") +public class IoTDMMeta { + + public static final HttpRequestDef bindInstanceTags = + genForBindInstanceTags(); + + private static HttpRequestDef genForBindInstanceTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, BindInstanceTagsRequest.class, BindInstanceTagsResponse.class) + .withName("BindInstanceTags") + .withUri("/v5/iot/{project_id}/iotda-instances/{instance_id}/bind-tags") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BindInstanceTagsRequest::getInstanceId, BindInstanceTagsRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BindInstanceTags.class), + f -> f.withMarshaller(BindInstanceTagsRequest::getBody, BindInstanceTagsRequest::setBody)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(BindInstanceTagsResponse::getBody, BindInstanceTagsResponse::setBody)); + + return builder.build(); + } + + public static final HttpRequestDef changeInstanceChargeMode = + genForChangeInstanceChargeMode(); + + private static HttpRequestDef genForChangeInstanceChargeMode() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, ChangeInstanceChargeModeRequest.class, ChangeInstanceChargeModeResponse.class) + .withName("ChangeInstanceChargeMode") + .withUri("/v5/iot/{project_id}/iotda-instances/{instance_id}/change-charge-mode") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ChangeInstanceChargeModeRequest::getInstanceId, + ChangeInstanceChargeModeRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ChangeInstanceChargeMode.class), + f -> f.withMarshaller(ChangeInstanceChargeModeRequest::getBody, ChangeInstanceChargeModeRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createInstance = + genForCreateInstance(); + + private static HttpRequestDef genForCreateInstance() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateInstanceRequest.class, CreateInstanceResponse.class) + .withName("CreateInstance") + .withUri("/v5/iot/{project_id}/iotda-instances") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateInstance.class), + f -> f.withMarshaller(CreateInstanceRequest::getBody, CreateInstanceRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteInstance = + genForDeleteInstance(); + + private static HttpRequestDef genForDeleteInstance() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteInstanceRequest.class, DeleteInstanceResponse.class) + .withName("DeleteInstance") + .withUri("/v5/iot/{project_id}/iotda-instances/{instance_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteInstanceRequest::getInstanceId, DeleteInstanceRequest::setInstanceId)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteInstanceResponse::getBody, DeleteInstanceResponse::setBody)); + + return builder.build(); + } + + public static final HttpRequestDef listInstances = + genForListInstances(); + + private static HttpRequestDef genForListInstances() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListInstancesRequest.class, ListInstancesResponse.class) + .withName("ListInstances") + .withUri("/v5/iot/{project_id}/iotda-instances") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListInstancesRequest::getOffset, ListInstancesRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListInstancesRequest::getLimit, ListInstancesRequest::setLimit)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListInstancesRequest::getMarker, ListInstancesRequest::setMarker)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListInstancesRequest::getName, ListInstancesRequest::setName)); + builder.withRequestField("instance_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListInstancesRequest::getInstanceType, ListInstancesRequest::setInstanceType)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef resizeInstance = + genForResizeInstance(); + + private static HttpRequestDef genForResizeInstance() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ResizeInstanceRequest.class, ResizeInstanceResponse.class) + .withName("ResizeInstance") + .withUri("/v5/iot/{project_id}/iotda-instances/{instance_id}/resize") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ResizeInstanceRequest::getInstanceId, ResizeInstanceRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ResizeInstance.class), + f -> f.withMarshaller(ResizeInstanceRequest::getBody, ResizeInstanceRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showInstance = genForShowInstance(); + + private static HttpRequestDef genForShowInstance() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowInstanceRequest.class, ShowInstanceResponse.class) + .withName("ShowInstance") + .withUri("/v5/iot/{project_id}/iotda-instances/{instance_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowInstanceRequest::getInstanceId, ShowInstanceRequest::setInstanceId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef unbindInstanceTags = + genForUnbindInstanceTags(); + + private static HttpRequestDef genForUnbindInstanceTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, UnbindInstanceTagsRequest.class, UnbindInstanceTagsResponse.class) + .withName("UnbindInstanceTags") + .withUri("/v5/iot/{project_id}/iotda-instances/{instance_id}/unbind-tags") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UnbindInstanceTagsRequest::getInstanceId, UnbindInstanceTagsRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UnbindInstanceTags.class), + f -> f.withMarshaller(UnbindInstanceTagsRequest::getBody, UnbindInstanceTagsRequest::setBody)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(UnbindInstanceTagsResponse::getBody, UnbindInstanceTagsResponse::setBody)); + + return builder.build(); + } + + public static final HttpRequestDef updateInstance = + genForUpdateInstance(); + + private static HttpRequestDef genForUpdateInstance() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateInstanceRequest.class, UpdateInstanceResponse.class) + .withName("UpdateInstance") + .withUri("/v5/iot/{project_id}/iotda-instances/{instance_id}") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateInstanceRequest::getInstanceId, UpdateInstanceRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateInstance.class), + f -> f.withMarshaller(UpdateInstanceRequest::getBody, UpdateInstanceRequest::setBody)); + + // response + + return builder.build(); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AccessInfo.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AccessInfo.java new file mode 100644 index 0000000000..ac5496132c --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AccessInfo.java @@ -0,0 +1,336 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 设备接入实例的接入信息。用户可以使用该结构体中的信息将应用服务器和设备接入到物联网平台。 + */ +public class AccessInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port") + + private Integer port; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "non_tls_port") + + private Integer nonTlsPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "websocket_port") + + private Integer websocketPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_name") + + private String domainName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_addresses") + + private List privateAddresses = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_address") + + private List publicAddress = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ipv6_address") + + private List ipv6Address = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip_whitelist") + + private IPWhiteList ipWhitelist; + + public AccessInfo withType(String type) { + this.type = type; + return this; + } + + /** + * **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public AccessInfo withPort(Integer port) { + this.port = port; + return this; + } + + /** + * **参数说明**:实例的应用/设备的安全接入端口 + * minimum: 0 + * maximum: 65535 + * @return port + */ + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public AccessInfo withNonTlsPort(Integer nonTlsPort) { + this.nonTlsPort = nonTlsPort; + return this; + } + + /** + * **参数说明**:实例的应用/设备的非安全接入端口。返回null时表示该类型的接入地址不支持非安全端口接入。 + * minimum: 0 + * maximum: 65535 + * @return nonTlsPort + */ + public Integer getNonTlsPort() { + return nonTlsPort; + } + + public void setNonTlsPort(Integer nonTlsPort) { + this.nonTlsPort = nonTlsPort; + } + + public AccessInfo withWebsocketPort(Integer websocketPort) { + this.websocketPort = websocketPort; + return this; + } + + /** + * **参数说明**:基于WebSocket的MQTT接入端口。返回null时表示该类型的接入地址不支持WebSocket端口接入。 + * minimum: 0 + * maximum: 65535 + * @return websocketPort + */ + public Integer getWebsocketPort() { + return websocketPort; + } + + public void setWebsocketPort(Integer websocketPort) { + this.websocketPort = websocketPort; + } + + public AccessInfo withDomainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * **参数说明**:实例的接入域名 + * @return domainName + */ + public String getDomainName() { + return domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public AccessInfo withPrivateAddresses(List privateAddresses) { + this.privateAddresses = privateAddresses; + return this; + } + + public AccessInfo addPrivateAddressesItem(String privateAddressesItem) { + if (this.privateAddresses == null) { + this.privateAddresses = new ArrayList<>(); + } + this.privateAddresses.add(privateAddressesItem); + return this; + } + + public AccessInfo withPrivateAddresses(Consumer> privateAddressesSetter) { + if (this.privateAddresses == null) { + this.privateAddresses = new ArrayList<>(); + } + privateAddressesSetter.accept(this.privateAddresses); + return this; + } + + /** + * **参数说明**:实例的私网接入地址列表 + * @return privateAddresses + */ + public List getPrivateAddresses() { + return privateAddresses; + } + + public void setPrivateAddresses(List privateAddresses) { + this.privateAddresses = privateAddresses; + } + + public AccessInfo withPublicAddress(List publicAddress) { + this.publicAddress = publicAddress; + return this; + } + + public AccessInfo addPublicAddressItem(String publicAddressItem) { + if (this.publicAddress == null) { + this.publicAddress = new ArrayList<>(); + } + this.publicAddress.add(publicAddressItem); + return this; + } + + public AccessInfo withPublicAddress(Consumer> publicAddressSetter) { + if (this.publicAddress == null) { + this.publicAddress = new ArrayList<>(); + } + publicAddressSetter.accept(this.publicAddress); + return this; + } + + /** + * **参数说明**:实例的公网接入地址 + * @return publicAddress + */ + public List getPublicAddress() { + return publicAddress; + } + + public void setPublicAddress(List publicAddress) { + this.publicAddress = publicAddress; + } + + public AccessInfo withIpv6Address(List ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + public AccessInfo addIpv6AddressItem(String ipv6AddressItem) { + if (this.ipv6Address == null) { + this.ipv6Address = new ArrayList<>(); + } + this.ipv6Address.add(ipv6AddressItem); + return this; + } + + public AccessInfo withIpv6Address(Consumer> ipv6AddressSetter) { + if (this.ipv6Address == null) { + this.ipv6Address = new ArrayList<>(); + } + ipv6AddressSetter.accept(this.ipv6Address); + return this; + } + + /** + * **参数说明**:实例的ipv6接入地址列表 + * @return ipv6Address + */ + public List getIpv6Address() { + return ipv6Address; + } + + public void setIpv6Address(List ipv6Address) { + this.ipv6Address = ipv6Address; + } + + public AccessInfo withIpWhitelist(IPWhiteList ipWhitelist) { + this.ipWhitelist = ipWhitelist; + return this; + } + + public AccessInfo withIpWhitelist(Consumer ipWhitelistSetter) { + if (this.ipWhitelist == null) { + this.ipWhitelist = new IPWhiteList(); + ipWhitelistSetter.accept(this.ipWhitelist); + } + + return this; + } + + /** + * Get ipWhitelist + * @return ipWhitelist + */ + public IPWhiteList getIpWhitelist() { + return ipWhitelist; + } + + public void setIpWhitelist(IPWhiteList ipWhitelist) { + this.ipWhitelist = ipWhitelist; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AccessInfo that = (AccessInfo) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.port, that.port) + && Objects.equals(this.nonTlsPort, that.nonTlsPort) + && Objects.equals(this.websocketPort, that.websocketPort) + && Objects.equals(this.domainName, that.domainName) + && Objects.equals(this.privateAddresses, that.privateAddresses) + && Objects.equals(this.publicAddress, that.publicAddress) + && Objects.equals(this.ipv6Address, that.ipv6Address) && Objects.equals(this.ipWhitelist, that.ipWhitelist); + } + + @Override + public int hashCode() { + return Objects.hash(type, + port, + nonTlsPort, + websocketPort, + domainName, + privateAddresses, + publicAddress, + ipv6Address, + ipWhitelist); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AccessInfo {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" nonTlsPort: ").append(toIndentedString(nonTlsPort)).append("\n"); + sb.append(" websocketPort: ").append(toIndentedString(websocketPort)).append("\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" privateAddresses: ").append(toIndentedString(privateAddresses)).append("\n"); + sb.append(" publicAddress: ").append(toIndentedString(publicAddress)).append("\n"); + sb.append(" ipv6Address: ").append(toIndentedString(ipv6Address)).append("\n"); + sb.append(" ipWhitelist: ").append(toIndentedString(ipWhitelist)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AdditionalParams.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AdditionalParams.java new file mode 100644 index 0000000000..683cff9502 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AdditionalParams.java @@ -0,0 +1,201 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 企业版附加参数信息。 + */ +public class AdditionalParams { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "smn_topic_urn") + + private String smnTopicUrn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ciphering_algorithm") + + private String cipheringAlgorithm; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port_info") + + private Port portInfo; + + public AdditionalParams withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * **参数说明**:企业版实例的VPCID + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public AdditionalParams withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * **参数说明**:企业版实例的子网ID + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public AdditionalParams withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * **参数说明**:企业版实例的安全组ID。请确保所选安全组已放通22端口(Linux SSH登录),3389端口(Windows远程登录)和ICMP协议(Ping) + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public AdditionalParams withSmnTopicUrn(String smnTopicUrn) { + this.smnTopicUrn = smnTopicUrn; + return this; + } + + /** + * **参数说明**:SMN的topic urn, 当企业版实例创建成功时,平台将通过该topic发送通知 + * @return smnTopicUrn + */ + public String getSmnTopicUrn() { + return smnTopicUrn; + } + + public void setSmnTopicUrn(String smnTopicUrn) { + this.smnTopicUrn = smnTopicUrn; + } + + public AdditionalParams withCipheringAlgorithm(String cipheringAlgorithm) { + this.cipheringAlgorithm = cipheringAlgorithm; + return this; + } + + /** + * **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + * @return cipheringAlgorithm + */ + public String getCipheringAlgorithm() { + return cipheringAlgorithm; + } + + public void setCipheringAlgorithm(String cipheringAlgorithm) { + this.cipheringAlgorithm = cipheringAlgorithm; + } + + public AdditionalParams withPortInfo(Port portInfo) { + this.portInfo = portInfo; + return this; + } + + public AdditionalParams withPortInfo(Consumer portInfoSetter) { + if (this.portInfo == null) { + this.portInfo = new Port(); + portInfoSetter.accept(this.portInfo); + } + + return this; + } + + /** + * Get portInfo + * @return portInfo + */ + public Port getPortInfo() { + return portInfo; + } + + public void setPortInfo(Port portInfo) { + this.portInfo = portInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AdditionalParams that = (AdditionalParams) obj; + return Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.securityGroupId, that.securityGroupId) + && Objects.equals(this.smnTopicUrn, that.smnTopicUrn) + && Objects.equals(this.cipheringAlgorithm, that.cipheringAlgorithm) + && Objects.equals(this.portInfo, that.portInfo); + } + + @Override + public int hashCode() { + return Objects.hash(vpcId, subnetId, securityGroupId, smnTopicUrn, cipheringAlgorithm, portInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdditionalParams {\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" smnTopicUrn: ").append(toIndentedString(smnTopicUrn)).append("\n"); + sb.append(" cipheringAlgorithm: ").append(toIndentedString(cipheringAlgorithm)).append("\n"); + sb.append(" portInfo: ").append(toIndentedString(portInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AdditionalParamsResp.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AdditionalParamsResp.java new file mode 100644 index 0000000000..864e5f8014 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/AdditionalParamsResp.java @@ -0,0 +1,177 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 企业版附加参数信息。 + */ +public class AdditionalParamsResp { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_group_id") + + private String securityGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ciphering_algorithm") + + private String cipheringAlgorithm; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "forwarding_info") + + private ForwardingInfo forwardingInfo; + + public AdditionalParamsResp withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * **参数说明**:企业版实例的VPCID + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public AdditionalParamsResp withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * **参数说明**:企业版实例的子网ID + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public AdditionalParamsResp withSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + return this; + } + + /** + * **参数说明**:企业版实例的安全组ID + * @return securityGroupId + */ + public String getSecurityGroupId() { + return securityGroupId; + } + + public void setSecurityGroupId(String securityGroupId) { + this.securityGroupId = securityGroupId; + } + + public AdditionalParamsResp withCipheringAlgorithm(String cipheringAlgorithm) { + this.cipheringAlgorithm = cipheringAlgorithm; + return this; + } + + /** + * **参数说明**:实例支持的加密算法 **取值范围**: - COMMON_ALGORITHM: 通用加密算法(支持RSA,SHA256等国际通用的密码算法) - SM_ALGORITHM: 支持SM系列商密算法(支持SM2,SM3,SM4等国密算法) + * @return cipheringAlgorithm + */ + public String getCipheringAlgorithm() { + return cipheringAlgorithm; + } + + public void setCipheringAlgorithm(String cipheringAlgorithm) { + this.cipheringAlgorithm = cipheringAlgorithm; + } + + public AdditionalParamsResp withForwardingInfo(ForwardingInfo forwardingInfo) { + this.forwardingInfo = forwardingInfo; + return this; + } + + public AdditionalParamsResp withForwardingInfo(Consumer forwardingInfoSetter) { + if (this.forwardingInfo == null) { + this.forwardingInfo = new ForwardingInfo(); + forwardingInfoSetter.accept(this.forwardingInfo); + } + + return this; + } + + /** + * Get forwardingInfo + * @return forwardingInfo + */ + public ForwardingInfo getForwardingInfo() { + return forwardingInfo; + } + + public void setForwardingInfo(ForwardingInfo forwardingInfo) { + this.forwardingInfo = forwardingInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AdditionalParamsResp that = (AdditionalParamsResp) obj; + return Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.securityGroupId, that.securityGroupId) + && Objects.equals(this.cipheringAlgorithm, that.cipheringAlgorithm) + && Objects.equals(this.forwardingInfo, that.forwardingInfo); + } + + @Override + public int hashCode() { + return Objects.hash(vpcId, subnetId, securityGroupId, cipheringAlgorithm, forwardingInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdditionalParamsResp {\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" cipheringAlgorithm: ").append(toIndentedString(cipheringAlgorithm)).append("\n"); + sb.append(" forwardingInfo: ").append(toIndentedString(forwardingInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTags.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTags.java new file mode 100644 index 0000000000..bedcc967be --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTags.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * BindInstanceTags + */ +public class BindInstanceTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public BindInstanceTags withTags(List tags) { + this.tags = tags; + return this; + } + + public BindInstanceTags addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BindInstanceTags withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 实例标签 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BindInstanceTags that = (BindInstanceTags) obj; + return Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BindInstanceTags {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTagsRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTagsRequest.java new file mode 100644 index 0000000000..1c6cafad72 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BindInstanceTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BindInstanceTags body; + + public BindInstanceTagsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public BindInstanceTagsRequest withBody(BindInstanceTags body) { + this.body = body; + return this; + } + + public BindInstanceTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BindInstanceTags(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BindInstanceTags getBody() { + return body; + } + + public void setBody(BindInstanceTags body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BindInstanceTagsRequest that = (BindInstanceTagsRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BindInstanceTagsRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTagsResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTagsResponse.java new file mode 100644 index 0000000000..44ce03b97a --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/BindInstanceTagsResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BindInstanceTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public BindInstanceTagsResponse withBody(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + */ + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BindInstanceTagsResponse that = (BindInstanceTagsResponse) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BindInstanceTagsResponse {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeMode.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeMode.java new file mode 100644 index 0000000000..9c60572baf --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeMode.java @@ -0,0 +1,144 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ChangeInstanceChargeMode + */ +public class ChangeInstanceChargeMode { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period_type") + + private String periodType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period_num") + + private Integer periodNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_auto_renew") + + private Boolean isAutoRenew; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_auto_pay") + + private Boolean isAutoPay; + + public ChangeInstanceChargeMode withPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + + /** + * **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + * @return periodType + */ + public String getPeriodType() { + return periodType; + } + + public void setPeriodType(String periodType) { + this.periodType = periodType; + } + + public ChangeInstanceChargeMode withPeriodNum(Integer periodNum) { + this.periodNum = periodNum; + return this; + } + + /** + * **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + * minimum: 1 + * maximum: 9 + * @return periodNum + */ + public Integer getPeriodNum() { + return periodNum; + } + + public void setPeriodNum(Integer periodNum) { + this.periodNum = periodNum; + } + + public ChangeInstanceChargeMode withIsAutoRenew(Boolean isAutoRenew) { + this.isAutoRenew = isAutoRenew; + return this; + } + + /** + * **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + * @return isAutoRenew + */ + public Boolean getIsAutoRenew() { + return isAutoRenew; + } + + public void setIsAutoRenew(Boolean isAutoRenew) { + this.isAutoRenew = isAutoRenew; + } + + public ChangeInstanceChargeMode withIsAutoPay(Boolean isAutoPay) { + this.isAutoPay = isAutoPay; + return this; + } + + /** + * **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + * @return isAutoPay + */ + public Boolean getIsAutoPay() { + return isAutoPay; + } + + public void setIsAutoPay(Boolean isAutoPay) { + this.isAutoPay = isAutoPay; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeInstanceChargeMode that = (ChangeInstanceChargeMode) obj; + return Objects.equals(this.periodType, that.periodType) && Objects.equals(this.periodNum, that.periodNum) + && Objects.equals(this.isAutoRenew, that.isAutoRenew) && Objects.equals(this.isAutoPay, that.isAutoPay); + } + + @Override + public int hashCode() { + return Objects.hash(periodType, periodNum, isAutoRenew, isAutoPay); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeInstanceChargeMode {\n"); + sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); + sb.append(" periodNum: ").append(toIndentedString(periodNum)).append("\n"); + sb.append(" isAutoRenew: ").append(toIndentedString(isAutoRenew)).append("\n"); + sb.append(" isAutoPay: ").append(toIndentedString(isAutoPay)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeModeRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeModeRequest.java new file mode 100644 index 0000000000..203c934eba --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeModeRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ChangeInstanceChargeModeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ChangeInstanceChargeMode body; + + public ChangeInstanceChargeModeRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ChangeInstanceChargeModeRequest withBody(ChangeInstanceChargeMode body) { + this.body = body; + return this; + } + + public ChangeInstanceChargeModeRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ChangeInstanceChargeMode(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ChangeInstanceChargeMode getBody() { + return body; + } + + public void setBody(ChangeInstanceChargeMode body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeInstanceChargeModeRequest that = (ChangeInstanceChargeModeRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeInstanceChargeModeRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeModeResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeModeResponse.java new file mode 100644 index 0000000000..e33d8934fe --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChangeInstanceChargeModeResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ChangeInstanceChargeModeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + public ChangeInstanceChargeModeResponse withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * **参数说明**:订单号。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeInstanceChargeModeResponse that = (ChangeInstanceChargeModeResponse) obj; + return Objects.equals(this.orderId, that.orderId); + } + + @Override + public int hashCode() { + return Objects.hash(orderId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeInstanceChargeModeResponse {\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChargeInfo.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChargeInfo.java new file mode 100644 index 0000000000..c5e3729aad --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ChargeInfo.java @@ -0,0 +1,168 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * **参数说明**:设备接入实例计费信息 + */ +public class ChargeInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_mode") + + private String chargeMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period_type") + + private String periodType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period_num") + + private Integer periodNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_auto_renew") + + private Boolean isAutoRenew; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_auto_pay") + + private Boolean isAutoPay; + + public ChargeInfo withChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + return this; + } + + /** + * **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + * @return chargeMode + */ + public String getChargeMode() { + return chargeMode; + } + + public void setChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + } + + public ChargeInfo withPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + + /** + * **参数说明**:订购设备接入实例的周期类型(包年、包月等)。charge_mode为prePaid时生效,且为必选值。 **取值范围**: - month:包月 - year:包年 + * @return periodType + */ + public String getPeriodType() { + return periodType; + } + + public void setPeriodType(String periodType) { + this.periodType = periodType; + } + + public ChargeInfo withPeriodNum(Integer periodNum) { + this.periodNum = periodNum; + return this; + } + + /** + * **参数说明**:订购设备接入实例的周期数。charge_mode为prePaid时生效,且为必选值。 **取值范围**:period_type=month(周期类型为月)时,取值为[1,9];period_type=year(周期类型为年)时,取值为[1,3]\" + * minimum: 1 + * maximum: 9 + * @return periodNum + */ + public Integer getPeriodNum() { + return periodNum; + } + + public void setPeriodNum(Integer periodNum) { + this.periodNum = periodNum; + } + + public ChargeInfo withIsAutoRenew(Boolean isAutoRenew) { + this.isAutoRenew = isAutoRenew; + return this; + } + + /** + * **参数说明**:创建包年/包月实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **取值范围**: - true:自动续订 - false:默认值,不自动续订 + * @return isAutoRenew + */ + public Boolean getIsAutoRenew() { + return isAutoRenew; + } + + public void setIsAutoRenew(Boolean isAutoRenew) { + this.isAutoRenew = isAutoRenew; + } + + public ChargeInfo withIsAutoPay(Boolean isAutoPay) { + this.isAutoPay = isAutoPay; + return this; + } + + /** + * **参数说明**:创建包年/包月实例时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + * @return isAutoPay + */ + public Boolean getIsAutoPay() { + return isAutoPay; + } + + public void setIsAutoPay(Boolean isAutoPay) { + this.isAutoPay = isAutoPay; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChargeInfo that = (ChargeInfo) obj; + return Objects.equals(this.chargeMode, that.chargeMode) && Objects.equals(this.periodType, that.periodType) + && Objects.equals(this.periodNum, that.periodNum) && Objects.equals(this.isAutoRenew, that.isAutoRenew) + && Objects.equals(this.isAutoPay, that.isAutoPay); + } + + @Override + public int hashCode() { + return Objects.hash(chargeMode, periodType, periodNum, isAutoRenew, isAutoPay); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChargeInfo {\n"); + sb.append(" chargeMode: ").append(toIndentedString(chargeMode)).append("\n"); + sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); + sb.append(" periodNum: ").append(toIndentedString(periodNum)).append("\n"); + sb.append(" isAutoRenew: ").append(toIndentedString(isAutoRenew)).append("\n"); + sb.append(" isAutoPay: ").append(toIndentedString(isAutoPay)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstance.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstance.java new file mode 100644 index 0000000000..95c516d848 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstance.java @@ -0,0 +1,284 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * CreateInstance + */ +public class CreateInstance { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private Flavor flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_info") + + private ChargeInfo chargeInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_params") + + private AdditionalParams additionalParams; + + public CreateInstance withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * **参数说明**:创建的实例类型。实例类型说明参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public CreateInstance withFlavor(Flavor flavor) { + this.flavor = flavor; + return this; + } + + public CreateInstance withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new Flavor(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public Flavor getFlavor() { + return flavor; + } + + public void setFlavor(Flavor flavor) { + this.flavor = flavor; + } + + public CreateInstance withName(String name) { + this.name = name; + return this; + } + + /** + * **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateInstance withChargeInfo(ChargeInfo chargeInfo) { + this.chargeInfo = chargeInfo; + return this; + } + + public CreateInstance withChargeInfo(Consumer chargeInfoSetter) { + if (this.chargeInfo == null) { + this.chargeInfo = new ChargeInfo(); + chargeInfoSetter.accept(this.chargeInfo); + } + + return this; + } + + /** + * Get chargeInfo + * @return chargeInfo + */ + public ChargeInfo getChargeInfo() { + return chargeInfo; + } + + public void setChargeInfo(ChargeInfo chargeInfo) { + this.chargeInfo = chargeInfo; + } + + public CreateInstance withDescription(String description) { + this.description = description; + return this; + } + + /** + * **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateInstance withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * **参数说明**:企业项目Id。此字段填写明确的企业项目Id或者0(表示默认企业项目Id)时支持企业项目特性。可以企业项目管理服务中获取。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public CreateInstance withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateInstance addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateInstance withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * **参数说明**:设备接入实例的标签信息。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public CreateInstance withAdditionalParams(AdditionalParams additionalParams) { + this.additionalParams = additionalParams; + return this; + } + + public CreateInstance withAdditionalParams(Consumer additionalParamsSetter) { + if (this.additionalParams == null) { + this.additionalParams = new AdditionalParams(); + additionalParamsSetter.accept(this.additionalParams); + } + + return this; + } + + /** + * Get additionalParams + * @return additionalParams + */ + public AdditionalParams getAdditionalParams() { + return additionalParams; + } + + public void setAdditionalParams(AdditionalParams additionalParams) { + this.additionalParams = additionalParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateInstance that = (CreateInstance) obj; + return Objects.equals(this.instanceType, that.instanceType) && Objects.equals(this.flavor, that.flavor) + && Objects.equals(this.name, that.name) && Objects.equals(this.chargeInfo, that.chargeInfo) + && Objects.equals(this.description, that.description) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.additionalParams, that.additionalParams); + } + + @Override + public int hashCode() { + return Objects + .hash(instanceType, flavor, name, chargeInfo, description, enterpriseProjectId, tags, additionalParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateInstance {\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" chargeInfo: ").append(toIndentedString(chargeInfo)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalParams: ").append(toIndentedString(additionalParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstanceRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstanceRequest.java new file mode 100644 index 0000000000..e65b369e8a --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstanceRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateInstance body; + + public CreateInstanceRequest withBody(CreateInstance body) { + this.body = body; + return this; + } + + public CreateInstanceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateInstance(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateInstance getBody() { + return body; + } + + public void setBody(CreateInstance body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateInstanceRequest that = (CreateInstanceRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateInstanceRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstanceResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstanceResponse.java new file mode 100644 index 0000000000..1003cb1b25 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/CreateInstanceResponse.java @@ -0,0 +1,365 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class CreateInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private Flavor flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_info") + + private ChargeInfo chargeInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_params") + + private AdditionalParams additionalParams; + + public CreateInstanceResponse withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public CreateInstanceResponse withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CreateInstanceResponse withName(String name) { + this.name = name; + return this; + } + + /** + * **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateInstanceResponse withFlavor(Flavor flavor) { + this.flavor = flavor; + return this; + } + + public CreateInstanceResponse withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new Flavor(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public Flavor getFlavor() { + return flavor; + } + + public void setFlavor(Flavor flavor) { + this.flavor = flavor; + } + + public CreateInstanceResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public CreateInstanceResponse withChargeInfo(ChargeInfo chargeInfo) { + this.chargeInfo = chargeInfo; + return this; + } + + public CreateInstanceResponse withChargeInfo(Consumer chargeInfoSetter) { + if (this.chargeInfo == null) { + this.chargeInfo = new ChargeInfo(); + chargeInfoSetter.accept(this.chargeInfo); + } + + return this; + } + + /** + * Get chargeInfo + * @return chargeInfo + */ + public ChargeInfo getChargeInfo() { + return chargeInfo; + } + + public void setChargeInfo(ChargeInfo chargeInfo) { + this.chargeInfo = chargeInfo; + } + + public CreateInstanceResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[0-256]个字符。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateInstanceResponse withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * **参数说明**:企业项目Id。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public CreateInstanceResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateInstanceResponse addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateInstanceResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public CreateInstanceResponse withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * **参数说明**:订单号,创建包年包月实例时返回该参数。[查看订单详情请参考[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。](tag:hws)\" + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public CreateInstanceResponse withAdditionalParams(AdditionalParams additionalParams) { + this.additionalParams = additionalParams; + return this; + } + + public CreateInstanceResponse withAdditionalParams(Consumer additionalParamsSetter) { + if (this.additionalParams == null) { + this.additionalParams = new AdditionalParams(); + additionalParamsSetter.accept(this.additionalParams); + } + + return this; + } + + /** + * Get additionalParams + * @return additionalParams + */ + public AdditionalParams getAdditionalParams() { + return additionalParams; + } + + public void setAdditionalParams(AdditionalParams additionalParams) { + this.additionalParams = additionalParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateInstanceResponse that = (CreateInstanceResponse) obj; + return Objects.equals(this.instanceType, that.instanceType) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.name, that.name) && Objects.equals(this.flavor, that.flavor) + && Objects.equals(this.status, that.status) && Objects.equals(this.chargeInfo, that.chargeInfo) + && Objects.equals(this.description, that.description) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.orderId, that.orderId) + && Objects.equals(this.additionalParams, that.additionalParams); + } + + @Override + public int hashCode() { + return Objects.hash(instanceType, + instanceId, + name, + flavor, + status, + chargeInfo, + description, + enterpriseProjectId, + tags, + orderId, + additionalParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateInstanceResponse {\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" chargeInfo: ").append(toIndentedString(chargeInfo)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" additionalParams: ").append(toIndentedString(additionalParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/DeleteInstanceRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/DeleteInstanceRequest.java new file mode 100644 index 0000000000..02af54e747 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/DeleteInstanceRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public DeleteInstanceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteInstanceRequest that = (DeleteInstanceRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteInstanceRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/DeleteInstanceResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/DeleteInstanceResponse.java new file mode 100644 index 0000000000..5c50857651 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/DeleteInstanceResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public DeleteInstanceResponse withBody(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + */ + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteInstanceResponse that = (DeleteInstanceResponse) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteInstanceResponse {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Flavor.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Flavor.java new file mode 100644 index 0000000000..4bf32f44f3 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Flavor.java @@ -0,0 +1,97 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * **参数说明**:设备接入实例的规格参数。 + */ +public class Flavor { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "size") + + private Integer size; + + public Flavor withType(String type) { + this.type = type; + return this; + } + + /** + * **参数说明**:待创建设备接入实例的规格名称。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)中的规格编码。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Flavor withSize(Integer size) { + this.size = size; + return this; + } + + /** + * **参数说明**:待创建设备接入标准版实例的单元数量。详情请参见[[产品规格说明](https://support.huaweicloud.com/productdesc-iothub/iot_04_0014.html)](tag:hws)[[产品规格说明](https://support.huaweicloud.com/intl/zh-cn/productdesc-iothub/iot_04_0014.html)](tag:hws_hk)。当instance_type是standard时,该参数必填。 + * minimum: 1 + * maximum: 200 + * @return size + */ + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Flavor that = (Flavor) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.size, that.size); + } + + @Override + public int hashCode() { + return Objects.hash(type, size); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Flavor {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ForwardingInfo.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ForwardingInfo.java new file mode 100644 index 0000000000..1f3db50c64 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ForwardingInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 企业版实例的SNAT配置信息。 + */ +public class ForwardingInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "eip") + + private String eip; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_snat") + + private Boolean enableSnat; + + public ForwardingInfo withEip(String eip) { + this.eip = eip; + return this; + } + + /** + * **参数说明**:NAT网关绑定的EIP + * @return eip + */ + public String getEip() { + return eip; + } + + public void setEip(String eip) { + this.eip = eip; + } + + public ForwardingInfo withEnableSnat(Boolean enableSnat) { + this.enableSnat = enableSnat; + return this; + } + + /** + * **参数说明**:是否启用SNAT配置 **取值范围**: - true: SNAT配置已启用 - false: SNAT配置未启用 + * @return enableSnat + */ + public Boolean getEnableSnat() { + return enableSnat; + } + + public void setEnableSnat(Boolean enableSnat) { + this.enableSnat = enableSnat; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ForwardingInfo that = (ForwardingInfo) obj; + return Objects.equals(this.eip, that.eip) && Objects.equals(this.enableSnat, that.enableSnat); + } + + @Override + public int hashCode() { + return Objects.hash(eip, enableSnat); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ForwardingInfo {\n"); + sb.append(" eip: ").append(toIndentedString(eip)).append("\n"); + sb.append(" enableSnat: ").append(toIndentedString(enableSnat)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/IPWhiteList.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/IPWhiteList.java new file mode 100644 index 0000000000..84f9327a0e --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/IPWhiteList.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * IP白名单 约束:只有企业版实例的APP_HTTPS协议支持配置IP白名单。 + */ +public class IPWhiteList { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable") + + private Boolean enable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allow_list") + + private List allowList = null; + + public IPWhiteList withEnable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * **参数说明**:启用Ip白名单访问控制 + * @return enable + */ + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public IPWhiteList withAllowList(List allowList) { + this.allowList = allowList; + return this; + } + + public IPWhiteList addAllowListItem(IpAllowList allowListItem) { + if (this.allowList == null) { + this.allowList = new ArrayList<>(); + } + this.allowList.add(allowListItem); + return this; + } + + public IPWhiteList withAllowList(Consumer> allowListSetter) { + if (this.allowList == null) { + this.allowList = new ArrayList<>(); + } + allowListSetter.accept(this.allowList); + return this; + } + + /** + * 允许访问企业版实例的IP地址列表 + * @return allowList + */ + public List getAllowList() { + return allowList; + } + + public void setAllowList(List allowList) { + this.allowList = allowList; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + IPWhiteList that = (IPWhiteList) obj; + return Objects.equals(this.enable, that.enable) && Objects.equals(this.allowList, that.allowList); + } + + @Override + public int hashCode() { + return Objects.hash(enable, allowList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IPWhiteList {\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" allowList: ").append(toIndentedString(allowList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/IpAllowList.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/IpAllowList.java new file mode 100644 index 0000000000..a09411dd0b --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/IpAllowList.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * IpAllowList + */ +public class IpAllowList { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "address") + + private String address; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public IpAllowList withAddress(String address) { + this.address = address; + return this; + } + + /** + * **参数说明**:白名单ip地址 + * @return address + */ + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public IpAllowList withDescription(String description) { + this.description = description; + return this; + } + + /** + * **参数说明**:描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + IpAllowList that = (IpAllowList) obj; + return Objects.equals(this.address, that.address) && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(address, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpAllowList {\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ListInstancesRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ListInstancesRequest.java new file mode 100644 index 0000000000..adf9f30423 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ListInstancesRequest.java @@ -0,0 +1,170 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListInstancesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "marker") + + private String marker; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + public ListInstancesRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。 - 限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 取值范围:0-500的整数,默认为0。 + * minimum: 0 + * maximum: 500 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListInstancesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-500的整数,默认为500。 + * minimum: 1 + * maximum: 500 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListInstancesRequest withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * 上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListInstancesRequest withName(String name) { + this.name = name; + return this; + } + + /** + * **参数说明**:设备接入实例名称,匹配规则为模糊匹配。 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListInstancesRequest withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListInstancesRequest that = (ListInstancesRequest) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.marker, that.marker) && Objects.equals(this.name, that.name) + && Objects.equals(this.instanceType, that.instanceType); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, marker, name, instanceType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListInstancesRequest {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ListInstancesResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ListInstancesResponse.java new file mode 100644 index 0000000000..fc482f6061 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ListInstancesResponse.java @@ -0,0 +1,141 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListInstancesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "marker") + + private String marker; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + public ListInstancesResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 设备接入实例的总数 + * minimum: 1 + * maximum: 10000 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListInstancesResponse withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * 本次分页查询结果中最后一条记录的ID,可在下一次分页查询时使用 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListInstancesResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListInstancesResponse addInstancesItem(QueryInstanceSimplify instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListInstancesResponse withInstances(Consumer> instancesSetter) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + instancesSetter.accept(this.instances); + return this; + } + + /** + * 设备接入实例的详情列表 + * @return instances + */ + public List getInstances() { + return instances; + } + + public void setInstances(List instances) { + this.instances = instances; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListInstancesResponse that = (ListInstancesResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.marker, that.marker) + && Objects.equals(this.instances, that.instances); + } + + @Override + public int hashCode() { + return Objects.hash(count, marker, instances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListInstancesResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" instances: ").append(toIndentedString(instances)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/OperateWindow.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/OperateWindow.java new file mode 100644 index 0000000000..f8e093bcd2 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/OperateWindow.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 实例维护时间窗,用户在变更实例规格时,可以指定在该时间窗内进行变更。 + */ +public class OperateWindow { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private String startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private String endTime; + + public OperateWindow withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * **参数说明**:变更时间窗开始时间,UTC时间,格式为:\"HH:mm\" + * @return startTime + */ + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public OperateWindow withEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * **参数说明**:变更时间窗结束时间,UTC时间,格式为:\"HH:mm\" + * @return endTime + */ + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + OperateWindow that = (OperateWindow) obj; + return Objects.equals(this.startTime, that.startTime) && Objects.equals(this.endTime, that.endTime); + } + + @Override + public int hashCode() { + return Objects.hash(startTime, endTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperateWindow {\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Port.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Port.java new file mode 100644 index 0000000000..d014f4d1a9 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Port.java @@ -0,0 +1,236 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 企业版端口信息。创建企业版实例时必填。 + */ +public class Port { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_https_port") + + private Integer appHttpsPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_amqps_port") + + private Integer appAmqpsPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_coap_port") + + private Integer deviceCoapPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_coaps_port") + + private Integer deviceCoapsPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_mqtt_port") + + private Integer deviceMqttPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_mqtts_port") + + private Integer deviceMqttsPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_https_port") + + private Integer deviceHttpsPort; + + public Port withAppHttpsPort(Integer appHttpsPort) { + this.appHttpsPort = appHttpsPort; + return this; + } + + /** + * **参数说明**:应用接入HTTPS协议端口,默认值:443 + * minimum: 0 + * maximum: 65535 + * @return appHttpsPort + */ + public Integer getAppHttpsPort() { + return appHttpsPort; + } + + public void setAppHttpsPort(Integer appHttpsPort) { + this.appHttpsPort = appHttpsPort; + } + + public Port withAppAmqpsPort(Integer appAmqpsPort) { + this.appAmqpsPort = appAmqpsPort; + return this; + } + + /** + * **参数说明**:应用接入AMQP协议端口, 默认值:5671 + * minimum: 0 + * maximum: 65535 + * @return appAmqpsPort + */ + public Integer getAppAmqpsPort() { + return appAmqpsPort; + } + + public void setAppAmqpsPort(Integer appAmqpsPort) { + this.appAmqpsPort = appAmqpsPort; + } + + public Port withDeviceCoapPort(Integer deviceCoapPort) { + this.deviceCoapPort = deviceCoapPort; + return this; + } + + /** + * **参数说明**:设备接入COAP协议端口, 默认值:5683 + * minimum: 0 + * maximum: 65535 + * @return deviceCoapPort + */ + public Integer getDeviceCoapPort() { + return deviceCoapPort; + } + + public void setDeviceCoapPort(Integer deviceCoapPort) { + this.deviceCoapPort = deviceCoapPort; + } + + public Port withDeviceCoapsPort(Integer deviceCoapsPort) { + this.deviceCoapsPort = deviceCoapsPort; + return this; + } + + /** + * **参数说明**:设备接入COAPS协议端口, 默认值:5684 + * minimum: 0 + * maximum: 65535 + * @return deviceCoapsPort + */ + public Integer getDeviceCoapsPort() { + return deviceCoapsPort; + } + + public void setDeviceCoapsPort(Integer deviceCoapsPort) { + this.deviceCoapsPort = deviceCoapsPort; + } + + public Port withDeviceMqttPort(Integer deviceMqttPort) { + this.deviceMqttPort = deviceMqttPort; + return this; + } + + /** + * **参数说明**:设备接入MQTT协议端口, 默认值:1883 + * minimum: 0 + * maximum: 65535 + * @return deviceMqttPort + */ + public Integer getDeviceMqttPort() { + return deviceMqttPort; + } + + public void setDeviceMqttPort(Integer deviceMqttPort) { + this.deviceMqttPort = deviceMqttPort; + } + + public Port withDeviceMqttsPort(Integer deviceMqttsPort) { + this.deviceMqttsPort = deviceMqttsPort; + return this; + } + + /** + * **参数说明**:设备接入MQTTS协议端口, 默认值:8883 + * minimum: 0 + * maximum: 65535 + * @return deviceMqttsPort + */ + public Integer getDeviceMqttsPort() { + return deviceMqttsPort; + } + + public void setDeviceMqttsPort(Integer deviceMqttsPort) { + this.deviceMqttsPort = deviceMqttsPort; + } + + public Port withDeviceHttpsPort(Integer deviceHttpsPort) { + this.deviceHttpsPort = deviceHttpsPort; + return this; + } + + /** + * **参数说明**:设备接入HTTPS协议端口, 默认值:443 + * minimum: 0 + * maximum: 65535 + * @return deviceHttpsPort + */ + public Integer getDeviceHttpsPort() { + return deviceHttpsPort; + } + + public void setDeviceHttpsPort(Integer deviceHttpsPort) { + this.deviceHttpsPort = deviceHttpsPort; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Port that = (Port) obj; + return Objects.equals(this.appHttpsPort, that.appHttpsPort) + && Objects.equals(this.appAmqpsPort, that.appAmqpsPort) + && Objects.equals(this.deviceCoapPort, that.deviceCoapPort) + && Objects.equals(this.deviceCoapsPort, that.deviceCoapsPort) + && Objects.equals(this.deviceMqttPort, that.deviceMqttPort) + && Objects.equals(this.deviceMqttsPort, that.deviceMqttsPort) + && Objects.equals(this.deviceHttpsPort, that.deviceHttpsPort); + } + + @Override + public int hashCode() { + return Objects.hash(appHttpsPort, + appAmqpsPort, + deviceCoapPort, + deviceCoapsPort, + deviceMqttPort, + deviceMqttsPort, + deviceHttpsPort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Port {\n"); + sb.append(" appHttpsPort: ").append(toIndentedString(appHttpsPort)).append("\n"); + sb.append(" appAmqpsPort: ").append(toIndentedString(appAmqpsPort)).append("\n"); + sb.append(" deviceCoapPort: ").append(toIndentedString(deviceCoapPort)).append("\n"); + sb.append(" deviceCoapsPort: ").append(toIndentedString(deviceCoapsPort)).append("\n"); + sb.append(" deviceMqttPort: ").append(toIndentedString(deviceMqttPort)).append("\n"); + sb.append(" deviceMqttsPort: ").append(toIndentedString(deviceMqttsPort)).append("\n"); + sb.append(" deviceHttpsPort: ").append(toIndentedString(deviceHttpsPort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/QueryInstanceSimplify.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/QueryInstanceSimplify.java new file mode 100644 index 0000000000..3730601b46 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/QueryInstanceSimplify.java @@ -0,0 +1,278 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * QueryInstanceSimplify + */ +public class QueryInstanceSimplify { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_mode") + + private String chargeMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private Flavor flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + public QueryInstanceSimplify withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public QueryInstanceSimplify withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public QueryInstanceSimplify withName(String name) { + this.name = name; + return this; + } + + /** + * **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public QueryInstanceSimplify withChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + return this; + } + + /** + * **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + * @return chargeMode + */ + public String getChargeMode() { + return chargeMode; + } + + public void setChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + } + + public QueryInstanceSimplify withFlavor(Flavor flavor) { + this.flavor = flavor; + return this; + } + + public QueryInstanceSimplify withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new Flavor(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public Flavor getFlavor() { + return flavor; + } + + public void setFlavor(Flavor flavor) { + this.flavor = flavor; + } + + public QueryInstanceSimplify withStatus(String status) { + this.status = status; + return this; + } + + /** + * **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public QueryInstanceSimplify withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public QueryInstanceSimplify withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public QueryInstanceSimplify withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * **参数说明**:企业项目Id。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + QueryInstanceSimplify that = (QueryInstanceSimplify) obj; + return Objects.equals(this.instanceType, that.instanceType) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.name, that.name) && Objects.equals(this.chargeMode, that.chargeMode) + && Objects.equals(this.flavor, that.flavor) && Objects.equals(this.status, that.status) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceType, + instanceId, + name, + chargeMode, + flavor, + status, + createTime, + updateTime, + enterpriseProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryInstanceSimplify {\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" chargeMode: ").append(toIndentedString(chargeMode)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstance.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstance.java new file mode 100644 index 0000000000..009e5d8ad6 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstance.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ResizeInstance + */ +public class ResizeInstance { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private Flavor flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_auto_pay") + + private Boolean isAutoPay; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "delay") + + private Boolean delay; + + public ResizeInstance withFlavor(Flavor flavor) { + this.flavor = flavor; + return this; + } + + public ResizeInstance withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new Flavor(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public Flavor getFlavor() { + return flavor; + } + + public void setFlavor(Flavor flavor) { + this.flavor = flavor; + } + + public ResizeInstance withIsAutoPay(Boolean isAutoPay) { + this.isAutoPay = isAutoPay; + return this; + } + + /** + * **参数说明**:修改包年/包月实例的规格时可指定,表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **取值范围**:true - 自动支付,从账户余额自动扣费; false - 默认值,只提交订单不支付。[需要客户参考[\"支付包年/包月产品订单\"](https://support.huaweicloud.com/api-bpconsole/api_order_00016.html#section0)进行支付,或者在华为云官网页面使用进行支付。](tag:hws) + * @return isAutoPay + */ + public Boolean getIsAutoPay() { + return isAutoPay; + } + + public void setIsAutoPay(Boolean isAutoPay) { + this.isAutoPay = isAutoPay; + } + + public ResizeInstance withDelay(Boolean delay) { + this.delay = delay; + return this; + } + + /** + * **参数说明**:是否延时变更设备实例的计费信息。约束:如需延时变更,需要先设置实例的变更时间窗。 **取值范围**: - true:延迟变更,规格变更任务将在指定的变更时间窗内执行。 - false:立即变更,规格变更任务将立即执行。 + * @return delay + */ + public Boolean getDelay() { + return delay; + } + + public void setDelay(Boolean delay) { + this.delay = delay; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResizeInstance that = (ResizeInstance) obj; + return Objects.equals(this.flavor, that.flavor) && Objects.equals(this.isAutoPay, that.isAutoPay) + && Objects.equals(this.delay, that.delay); + } + + @Override + public int hashCode() { + return Objects.hash(flavor, isAutoPay, delay); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResizeInstance {\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" isAutoPay: ").append(toIndentedString(isAutoPay)).append("\n"); + sb.append(" delay: ").append(toIndentedString(delay)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstanceRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstanceRequest.java new file mode 100644 index 0000000000..9f2dc8193d --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstanceRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ResizeInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ResizeInstance body; + + public ResizeInstanceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ResizeInstanceRequest withBody(ResizeInstance body) { + this.body = body; + return this; + } + + public ResizeInstanceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ResizeInstance(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ResizeInstance getBody() { + return body; + } + + public void setBody(ResizeInstance body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResizeInstanceRequest that = (ResizeInstanceRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResizeInstanceRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstanceResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstanceResponse.java new file mode 100644 index 0000000000..aa466fa992 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ResizeInstanceResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ResizeInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + public ResizeInstanceResponse withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * **参数说明**:订单号,修改包年包月实例时返回该参数,修改按需实例时返回为空。查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)]\" + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResizeInstanceResponse that = (ResizeInstanceResponse) obj; + return Objects.equals(this.orderId, that.orderId); + } + + @Override + public int hashCode() { + return Objects.hash(orderId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResizeInstanceResponse {\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ShowInstanceRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ShowInstanceRequest.java new file mode 100644 index 0000000000..a8bbd224ab --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ShowInstanceRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowInstanceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceRequest that = (ShowInstanceRequest) obj; + return Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ShowInstanceResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ShowInstanceResponse.java new file mode 100644 index 0000000000..7b7e4b3da5 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/ShowInstanceResponse.java @@ -0,0 +1,479 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_mode") + + private String chargeMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private Flavor flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_infos") + + private List accessInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "operate_window") + + private OperateWindow operateWindow; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_params") + + private AdditionalParamsResp additionalParams; + + public ShowInstanceResponse withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public ShowInstanceResponse withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowInstanceResponse withChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + return this; + } + + /** + * **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + * @return chargeMode + */ + public String getChargeMode() { + return chargeMode; + } + + public void setChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + } + + public ShowInstanceResponse withName(String name) { + this.name = name; + return this; + } + + /** + * **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowInstanceResponse withFlavor(Flavor flavor) { + this.flavor = flavor; + return this; + } + + public ShowInstanceResponse withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new Flavor(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public Flavor getFlavor() { + return flavor; + } + + public void setFlavor(Flavor flavor) { + this.flavor = flavor; + } + + public ShowInstanceResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public ShowInstanceResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ShowInstanceResponse withAccessInfos(List accessInfos) { + this.accessInfos = accessInfos; + return this; + } + + public ShowInstanceResponse addAccessInfosItem(AccessInfo accessInfosItem) { + if (this.accessInfos == null) { + this.accessInfos = new ArrayList<>(); + } + this.accessInfos.add(accessInfosItem); + return this; + } + + public ShowInstanceResponse withAccessInfos(Consumer> accessInfosSetter) { + if (this.accessInfos == null) { + this.accessInfos = new ArrayList<>(); + } + accessInfosSetter.accept(this.accessInfos); + return this; + } + + /** + * **参数说明**:设备接入实例的接入信息 + * @return accessInfos + */ + public List getAccessInfos() { + return accessInfos; + } + + public void setAccessInfos(List accessInfos) { + this.accessInfos = accessInfos; + } + + public ShowInstanceResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ShowInstanceResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ShowInstanceResponse withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * **参数说明**:企业项目Id。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public ShowInstanceResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public ShowInstanceResponse addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ShowInstanceResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public ShowInstanceResponse withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public ShowInstanceResponse withOperateWindow(OperateWindow operateWindow) { + this.operateWindow = operateWindow; + return this; + } + + public ShowInstanceResponse withOperateWindow(Consumer operateWindowSetter) { + if (this.operateWindow == null) { + this.operateWindow = new OperateWindow(); + operateWindowSetter.accept(this.operateWindow); + } + + return this; + } + + /** + * Get operateWindow + * @return operateWindow + */ + public OperateWindow getOperateWindow() { + return operateWindow; + } + + public void setOperateWindow(OperateWindow operateWindow) { + this.operateWindow = operateWindow; + } + + public ShowInstanceResponse withAdditionalParams(AdditionalParamsResp additionalParams) { + this.additionalParams = additionalParams; + return this; + } + + public ShowInstanceResponse withAdditionalParams(Consumer additionalParamsSetter) { + if (this.additionalParams == null) { + this.additionalParams = new AdditionalParamsResp(); + additionalParamsSetter.accept(this.additionalParams); + } + + return this; + } + + /** + * Get additionalParams + * @return additionalParams + */ + public AdditionalParamsResp getAdditionalParams() { + return additionalParams; + } + + public void setAdditionalParams(AdditionalParamsResp additionalParams) { + this.additionalParams = additionalParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowInstanceResponse that = (ShowInstanceResponse) obj; + return Objects.equals(this.instanceType, that.instanceType) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.chargeMode, that.chargeMode) && Objects.equals(this.name, that.name) + && Objects.equals(this.flavor, that.flavor) && Objects.equals(this.status, that.status) + && Objects.equals(this.description, that.description) && Objects.equals(this.accessInfos, that.accessInfos) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.orderId, that.orderId) + && Objects.equals(this.operateWindow, that.operateWindow) + && Objects.equals(this.additionalParams, that.additionalParams); + } + + @Override + public int hashCode() { + return Objects.hash(instanceType, + instanceId, + chargeMode, + name, + flavor, + status, + description, + accessInfos, + createTime, + updateTime, + enterpriseProjectId, + tags, + orderId, + operateWindow, + additionalParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowInstanceResponse {\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" chargeMode: ").append(toIndentedString(chargeMode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" accessInfos: ").append(toIndentedString(accessInfos)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" operateWindow: ").append(toIndentedString(operateWindow)).append("\n"); + sb.append(" additionalParams: ").append(toIndentedString(additionalParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Tag.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Tag.java new file mode 100644 index 0000000000..8d707062e5 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/Tag.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Tag + */ +public class Tag { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public Tag withKey(String key) { + this.key = key; + return this; + } + + /** + * **参数说明**:标签键,标签的键可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@,首尾不能有空格字符 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public Tag withValue(String value) { + this.value = value; + return this; + } + + /** + * **参数说明**:标签值,可为空字符串和null,标签的值可用字母(包含中文)、数字、空格和以下字符:下划线(_)点(.)冒号(:)等号(=)加号(+)中划线(-)以及@ + * @return value + */ + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Tag that = (Tag) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Tag {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTags.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTags.java new file mode 100644 index 0000000000..a1b762dabe --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTags.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * UnbindInstanceTags + */ +public class UnbindInstanceTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public UnbindInstanceTags withTags(List tags) { + this.tags = tags; + return this; + } + + public UnbindInstanceTags addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public UnbindInstanceTags withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 实例标签 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UnbindInstanceTags that = (UnbindInstanceTags) obj; + return Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindInstanceTags {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTagsRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTagsRequest.java new file mode 100644 index 0000000000..5decd7021b --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UnbindInstanceTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UnbindInstanceTags body; + + public UnbindInstanceTagsRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UnbindInstanceTagsRequest withBody(UnbindInstanceTags body) { + this.body = body; + return this; + } + + public UnbindInstanceTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UnbindInstanceTags(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UnbindInstanceTags getBody() { + return body; + } + + public void setBody(UnbindInstanceTags body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UnbindInstanceTagsRequest that = (UnbindInstanceTagsRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindInstanceTagsRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTagsResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTagsResponse.java new file mode 100644 index 0000000000..8b292bf254 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UnbindInstanceTagsResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UnbindInstanceTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public UnbindInstanceTagsResponse withBody(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + */ + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UnbindInstanceTagsResponse that = (UnbindInstanceTagsResponse) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindInstanceTagsResponse {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateAccessInfo.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateAccessInfo.java new file mode 100644 index 0000000000..350361e7f7 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateAccessInfo.java @@ -0,0 +1,153 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 设备接入实例的接入信息。用户可以使用该结构体中的信息将应用服务器和设备接入到物联网平台。 约束:只有企业版实例支持自定义接入信息。 + */ +public class UpdateAccessInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_type") + + private String accessType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_name") + + private String domainName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_addresses_enable") + + private Boolean publicAddressesEnable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip_whitelist") + + private IPWhiteList ipWhitelist; + + public UpdateAccessInfo withAccessType(String accessType) { + this.accessType = accessType; + return this; + } + + /** + * **参数说明**:接入地址的类型,如应用接入的HTTPS协议的取值为:APP_HTTPS,设备接入的MQTT协议的取值为:DEVICE_MQTT **取值范围**: - APP_HTTPS:应用接入HTTPS协议 - APP_AMQP:应用接入AMQP协议 - APP_MQTT:应用接入MQTT协议 - DEVICE_COAP:设备接入COAP协议 - DEVICE_MQTT:设备接入MQTT协议 - DEVICE_HTTPS:设备接入HTTPS协议 + * @return accessType + */ + public String getAccessType() { + return accessType; + } + + public void setAccessType(String accessType) { + this.accessType = accessType; + } + + public UpdateAccessInfo withDomainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * **参数说明**:接入域名,如果需要更新域名,则携带该字段。 + * @return domainName + */ + public String getDomainName() { + return domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public UpdateAccessInfo withPublicAddressesEnable(Boolean publicAddressesEnable) { + this.publicAddressesEnable = publicAddressesEnable; + return this; + } + + /** + * **参数说明**:是否配置公网接入地址,true,false **取值范围**: - true:配置公网接入地址,平台将自动分配公网接入地址。约束:分配地址后将不能修改或删除。 + * @return publicAddressesEnable + */ + public Boolean getPublicAddressesEnable() { + return publicAddressesEnable; + } + + public void setPublicAddressesEnable(Boolean publicAddressesEnable) { + this.publicAddressesEnable = publicAddressesEnable; + } + + public UpdateAccessInfo withIpWhitelist(IPWhiteList ipWhitelist) { + this.ipWhitelist = ipWhitelist; + return this; + } + + public UpdateAccessInfo withIpWhitelist(Consumer ipWhitelistSetter) { + if (this.ipWhitelist == null) { + this.ipWhitelist = new IPWhiteList(); + ipWhitelistSetter.accept(this.ipWhitelist); + } + + return this; + } + + /** + * Get ipWhitelist + * @return ipWhitelist + */ + public IPWhiteList getIpWhitelist() { + return ipWhitelist; + } + + public void setIpWhitelist(IPWhiteList ipWhitelist) { + this.ipWhitelist = ipWhitelist; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateAccessInfo that = (UpdateAccessInfo) obj; + return Objects.equals(this.accessType, that.accessType) && Objects.equals(this.domainName, that.domainName) + && Objects.equals(this.publicAddressesEnable, that.publicAddressesEnable) + && Objects.equals(this.ipWhitelist, that.ipWhitelist); + } + + @Override + public int hashCode() { + return Objects.hash(accessType, domainName, publicAddressesEnable, ipWhitelist); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateAccessInfo {\n"); + sb.append(" accessType: ").append(toIndentedString(accessType)).append("\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" publicAddressesEnable: ").append(toIndentedString(publicAddressesEnable)).append("\n"); + sb.append(" ipWhitelist: ").append(toIndentedString(ipWhitelist)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateForwardingInfo.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateForwardingInfo.java new file mode 100644 index 0000000000..dfec7ab694 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateForwardingInfo.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 企业版实例的SNAT配置,配置开启后,企业版实例可以在公共网络中进行外部通信。 约束:只有企业版实例支持修改流转配置。 + */ +public class UpdateForwardingInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_snat") + + private Boolean enableSnat; + + public UpdateForwardingInfo withEnableSnat(Boolean enableSnat) { + this.enableSnat = enableSnat; + return this; + } + + /** + * **参数说明**:是否启用SNAT配置。企业版实例开启SNAT配置后,可以在公共网络中进行外部通信。 约束:只有企业版实例支持配置SNAT配置,SNAT配置开启后将不支持关闭 **取值范围**: - true: 启用SNAT配置 + * @return enableSnat + */ + public Boolean getEnableSnat() { + return enableSnat; + } + + public void setEnableSnat(Boolean enableSnat) { + this.enableSnat = enableSnat; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateForwardingInfo that = (UpdateForwardingInfo) obj; + return Objects.equals(this.enableSnat, that.enableSnat); + } + + @Override + public int hashCode() { + return Objects.hash(enableSnat); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateForwardingInfo {\n"); + sb.append(" enableSnat: ").append(toIndentedString(enableSnat)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstance.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstance.java new file mode 100644 index 0000000000..de22f78f79 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstance.java @@ -0,0 +1,195 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * UpdateInstance + */ +public class UpdateInstance { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "operate_window") + + private OperateWindow operateWindow; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "forwarding_info") + + private UpdateForwardingInfo forwardingInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_info") + + private UpdateAccessInfo accessInfo; + + public UpdateInstance withName(String name) { + this.name = name; + return this; + } + + /** + * **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateInstance withDescription(String description) { + this.description = description; + return this; + } + + /** + * **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateInstance withOperateWindow(OperateWindow operateWindow) { + this.operateWindow = operateWindow; + return this; + } + + public UpdateInstance withOperateWindow(Consumer operateWindowSetter) { + if (this.operateWindow == null) { + this.operateWindow = new OperateWindow(); + operateWindowSetter.accept(this.operateWindow); + } + + return this; + } + + /** + * Get operateWindow + * @return operateWindow + */ + public OperateWindow getOperateWindow() { + return operateWindow; + } + + public void setOperateWindow(OperateWindow operateWindow) { + this.operateWindow = operateWindow; + } + + public UpdateInstance withForwardingInfo(UpdateForwardingInfo forwardingInfo) { + this.forwardingInfo = forwardingInfo; + return this; + } + + public UpdateInstance withForwardingInfo(Consumer forwardingInfoSetter) { + if (this.forwardingInfo == null) { + this.forwardingInfo = new UpdateForwardingInfo(); + forwardingInfoSetter.accept(this.forwardingInfo); + } + + return this; + } + + /** + * Get forwardingInfo + * @return forwardingInfo + */ + public UpdateForwardingInfo getForwardingInfo() { + return forwardingInfo; + } + + public void setForwardingInfo(UpdateForwardingInfo forwardingInfo) { + this.forwardingInfo = forwardingInfo; + } + + public UpdateInstance withAccessInfo(UpdateAccessInfo accessInfo) { + this.accessInfo = accessInfo; + return this; + } + + public UpdateInstance withAccessInfo(Consumer accessInfoSetter) { + if (this.accessInfo == null) { + this.accessInfo = new UpdateAccessInfo(); + accessInfoSetter.accept(this.accessInfo); + } + + return this; + } + + /** + * Get accessInfo + * @return accessInfo + */ + public UpdateAccessInfo getAccessInfo() { + return accessInfo; + } + + public void setAccessInfo(UpdateAccessInfo accessInfo) { + this.accessInfo = accessInfo; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstance that = (UpdateInstance) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.operateWindow, that.operateWindow) + && Objects.equals(this.forwardingInfo, that.forwardingInfo) + && Objects.equals(this.accessInfo, that.accessInfo); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, operateWindow, forwardingInfo, accessInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstance {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" operateWindow: ").append(toIndentedString(operateWindow)).append("\n"); + sb.append(" forwardingInfo: ").append(toIndentedString(forwardingInfo)).append("\n"); + sb.append(" accessInfo: ").append(toIndentedString(accessInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstanceRequest.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstanceRequest.java new file mode 100644 index 0000000000..6440d8f5fa --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstanceRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateInstance body; + + public UpdateInstanceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateInstanceRequest withBody(UpdateInstance body) { + this.body = body; + return this; + } + + public UpdateInstanceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateInstance(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateInstance getBody() { + return body; + } + + public void setBody(UpdateInstance body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstanceRequest that = (UpdateInstanceRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstanceResponse.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstanceResponse.java new file mode 100644 index 0000000000..619e8f337c --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/model/UpdateInstanceResponse.java @@ -0,0 +1,479 @@ +package com.huaweicloud.sdk.iotdm.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class UpdateInstanceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_mode") + + private String chargeMode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private Flavor flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_infos") + + private List accessInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "operate_window") + + private OperateWindow operateWindow; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "additional_params") + + private AdditionalParamsResp additionalParams; + + public UpdateInstanceResponse withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * **参数说明**:实例类型。 **取值范围**: - standard:标准版实例 - enterprise:企业版实例 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public UpdateInstanceResponse withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。 **取值范围**:长度不超过36,由小写字母[a-f]、数字、连接符(-)的组成。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateInstanceResponse withChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + return this; + } + + /** + * **参数说明**:实例的付费方式。 **取值范围**: - prePaid:包年/包月 - postPaid:按需计费 + * @return chargeMode + */ + public String getChargeMode() { + return chargeMode; + } + + public void setChargeMode(String chargeMode) { + this.chargeMode = chargeMode; + } + + public UpdateInstanceResponse withName(String name) { + this.name = name; + return this; + } + + /** + * **参数说明**:实例名称 **取值范围**:由中文字符,英文字母、数字及“_”、“-”组成,且长度为[1-64]个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateInstanceResponse withFlavor(Flavor flavor) { + this.flavor = flavor; + return this; + } + + public UpdateInstanceResponse withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new Flavor(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public Flavor getFlavor() { + return flavor; + } + + public void setFlavor(Flavor flavor) { + this.flavor = flavor; + } + + public UpdateInstanceResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * **参数说明**:实例状态。 **取值范围**: - CREATING:实例正在创建 - ACTIVE:实例正常 - FROZEN:实例冻结 - MODIFYING:实例正在变更规格 - FAILED:实例创建失败 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public UpdateInstanceResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * **参数说明**:设备接入实例的描述信息。 **取值范围**:由中文,字母,数字,句号,逗号,下划线(“_”),中划线(“-”),空格组成,且长度为[1-256]个字符。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateInstanceResponse withAccessInfos(List accessInfos) { + this.accessInfos = accessInfos; + return this; + } + + public UpdateInstanceResponse addAccessInfosItem(AccessInfo accessInfosItem) { + if (this.accessInfos == null) { + this.accessInfos = new ArrayList<>(); + } + this.accessInfos.add(accessInfosItem); + return this; + } + + public UpdateInstanceResponse withAccessInfos(Consumer> accessInfosSetter) { + if (this.accessInfos == null) { + this.accessInfos = new ArrayList<>(); + } + accessInfosSetter.accept(this.accessInfos); + return this; + } + + /** + * **参数说明**:设备接入实例的接入信息 + * @return accessInfos + */ + public List getAccessInfos() { + return accessInfos; + } + + public void setAccessInfos(List accessInfos) { + this.accessInfos = accessInfos; + } + + public UpdateInstanceResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * **参数说明**:实例的创建时间。时间格式例如:2023-01-28T06:57:52Z + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public UpdateInstanceResponse withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * **参数说明**:实例的最近一次更新的时间。时间格式例如:2023-01-28T06:57:52Z + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public UpdateInstanceResponse withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * **参数说明**:企业项目Id。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public UpdateInstanceResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public UpdateInstanceResponse addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public UpdateInstanceResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * **参数说明**: 设备接入实例的标签信息。如果实例有标签,则会有该字段,否则该字段为空。 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public UpdateInstanceResponse withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * **参数说明**:订单号,仅包年包月实例返回该参数。[查看订单详情请参考[[查询订单详情](https://support.huaweicloud.com/api-bpconsole/zh-cn_topic_0075746564.html)。]](tag:hws) + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public UpdateInstanceResponse withOperateWindow(OperateWindow operateWindow) { + this.operateWindow = operateWindow; + return this; + } + + public UpdateInstanceResponse withOperateWindow(Consumer operateWindowSetter) { + if (this.operateWindow == null) { + this.operateWindow = new OperateWindow(); + operateWindowSetter.accept(this.operateWindow); + } + + return this; + } + + /** + * Get operateWindow + * @return operateWindow + */ + public OperateWindow getOperateWindow() { + return operateWindow; + } + + public void setOperateWindow(OperateWindow operateWindow) { + this.operateWindow = operateWindow; + } + + public UpdateInstanceResponse withAdditionalParams(AdditionalParamsResp additionalParams) { + this.additionalParams = additionalParams; + return this; + } + + public UpdateInstanceResponse withAdditionalParams(Consumer additionalParamsSetter) { + if (this.additionalParams == null) { + this.additionalParams = new AdditionalParamsResp(); + additionalParamsSetter.accept(this.additionalParams); + } + + return this; + } + + /** + * Get additionalParams + * @return additionalParams + */ + public AdditionalParamsResp getAdditionalParams() { + return additionalParams; + } + + public void setAdditionalParams(AdditionalParamsResp additionalParams) { + this.additionalParams = additionalParams; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateInstanceResponse that = (UpdateInstanceResponse) obj; + return Objects.equals(this.instanceType, that.instanceType) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.chargeMode, that.chargeMode) && Objects.equals(this.name, that.name) + && Objects.equals(this.flavor, that.flavor) && Objects.equals(this.status, that.status) + && Objects.equals(this.description, that.description) && Objects.equals(this.accessInfos, that.accessInfos) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.orderId, that.orderId) + && Objects.equals(this.operateWindow, that.operateWindow) + && Objects.equals(this.additionalParams, that.additionalParams); + } + + @Override + public int hashCode() { + return Objects.hash(instanceType, + instanceId, + chargeMode, + name, + flavor, + status, + description, + accessInfos, + createTime, + updateTime, + enterpriseProjectId, + tags, + orderId, + operateWindow, + additionalParams); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateInstanceResponse {\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" chargeMode: ").append(toIndentedString(chargeMode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" accessInfos: ").append(toIndentedString(accessInfos)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" operateWindow: ").append(toIndentedString(operateWindow)).append("\n"); + sb.append(" additionalParams: ").append(toIndentedString(additionalParams)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/region/IoTDMRegion.java b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/region/IoTDMRegion.java new file mode 100644 index 0000000000..01824aefa7 --- /dev/null +++ b/services/iotdm/src/main/java/com/huaweicloud/sdk/iotdm/v5/region/IoTDMRegion.java @@ -0,0 +1,79 @@ +package com.huaweicloud.sdk.iotdm.v5.region; + +import com.huaweicloud.sdk.core.region.IRegionProvider; +import com.huaweicloud.sdk.core.region.Region; +import com.huaweicloud.sdk.core.region.RegionProviderChain; +import com.huaweicloud.sdk.core.utils.StringUtils; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; + +public class IoTDMRegion { + + public static final Region CN_NORTH_4 = new Region("cn-north-4", "https://iotda-mgmt.cn-north-4.myhuaweicloud.com"); + + public static final Region CN_SOUTH_4 = new Region("cn-south-4", "https://iotda-mgmt.cn-south-4.myhuaweicloud.com"); + + public static final Region CN_SOUTH_1 = new Region("cn-south-1", "https://iotda-mgmt.cn-south-1.myhuaweicloud.com"); + + public static final Region CN_EAST_3 = new Region("cn-east-3", "https://iotda-mgmt.cn-east-3.myhuaweicloud.com"); + + public static final Region AP_SOUTHEAST_3 = + new Region("ap-southeast-3", "https://iotda-mgmt.ap-southeast-3.myhuaweicloud.com"); + + public static final Region AP_SOUTHEAST_2 = + new Region("ap-southeast-2", "https://iotda-mgmt.ap-southeast-2.myhuaweicloud.com"); + + public static final Region AP_SOUTHEAST_1 = + new Region("ap-southeast-1", "https://iotda-mgmt.ap-southeast-1.myhuaweicloud.com"); + + public static final Region AF_SOUTH_1 = new Region("af-south-1", "https://iotda-mgmt.af-south-1.myhuaweicloud.com"); + + public static final Region ME_EAST_1 = new Region("me-east-1", "https://iotda-mgmt.me-east-1.myhuaweicloud.com"); + + public static final Region LA_SOUTH_2 = new Region("la-south-2", "https://iotda-mgmt.la-south-2.myhuaweicloud.com"); + + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("IOTDM"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("cn-north-4", CN_NORTH_4); + map.put("cn-south-4", CN_SOUTH_4); + map.put("cn-south-1", CN_SOUTH_1); + map.put("cn-east-3", CN_EAST_3); + map.put("ap-southeast-3", AP_SOUTHEAST_3); + map.put("ap-southeast-2", AP_SOUTHEAST_2); + map.put("ap-southeast-1", AP_SOUTHEAST_1); + map.put("af-south-1", AF_SOUTH_1); + map.put("me-east-1", ME_EAST_1); + map.put("la-south-2", LA_SOUTH_2); + return Collections.unmodifiableMap(map); + } + + public static Region valueOf(String regionId) { + if (StringUtils.isEmpty(regionId)) { + throw new IllegalArgumentException("Unexpected empty parameter: regionId."); + } + + Region result = PROVIDER.getRegion(regionId); + if (Objects.nonNull(result)) { + return result; + } + + result = STATIC_FIELDS.get(regionId); + if (Objects.nonNull(result)) { + return result; + } + + throw new IllegalArgumentException(String.format(Locale.ROOT, + "region id '%s' is not in the following supported regions of service IoTDM: [%s]", + regionId, + STATIC_FIELDS.keySet().stream().sorted().collect(Collectors.joining(", ")))); + } +} diff --git a/services/iotedge/pom.xml b/services/iotedge/pom.xml index cf80cf176d..fd508cd572 100644 --- a/services/iotedge/pom.xml +++ b/services/iotedge/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.108 + 3.1.109 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ivs/pom.xml b/services/ivs/pom.xml index 350a50b7ac..ea4075ac94 100644 --- a/services/ivs/pom.xml +++ b/services/ivs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.108 + 3.1.109 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index 9a9a39dc34..1cad03f2e5 100644 --- a/services/kafka/pom.xml +++ b/services/kafka/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.108 + 3.1.109 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index c26a3baa58..81fa202e1a 100644 --- a/services/kms/pom.xml +++ b/services/kms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.108 + 3.1.109 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index e77fe07082..bdc7fff41f 100644 --- a/services/koomap/pom.xml +++ b/services/koomap/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.108 + 3.1.109 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index 467e56bec9..4cbc1ea60e 100644 --- a/services/koomessage/pom.xml +++ b/services/koomessage/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.108 + 3.1.109 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index cd32242320..89a39f9706 100644 --- a/services/koophone/pom.xml +++ b/services/koophone/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.108 + 3.1.109 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index c0cddf8bc6..4e3aefe724 100644 --- a/services/kps/pom.xml +++ b/services/kps/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.108 + 3.1.109 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index f45eb451a4..16e71dde87 100644 --- a/services/kvs/pom.xml +++ b/services/kvs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.108 + 3.1.109 Huawei Cloud SDK for KVS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.108 + 3.1.109 diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java index 8ae9507127..93a3b23398 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class BatchWriteKvRequest extends SdkBsonDocRequest { private BatchWriteKvRequestBody body; + private static Codec codec; + public BatchWriteKvRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,7 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(BatchWriteKvRequestBody.class) - .encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(BatchWriteKvRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvResponse.java index 03e3d8a554..651e3bedd3 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/BatchWriteKvResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -25,6 +26,8 @@ public class BatchWriteKvResponse extends SdkBsonDocResponse { private List unprocessedOpers = null; + private static Codec codec; + public BatchWriteKvResponse withUnprocessedOpers(List unprocessedOpers) { this.unprocessedOpers = unprocessedOpers; return this; @@ -97,6 +100,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(BatchWriteKvResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(BatchWriteKvResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ComposedExpression.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ComposedExpression.java new file mode 100644 index 0000000000..4652b592b1 --- /dev/null +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ComposedExpression.java @@ -0,0 +1,118 @@ +package com.huaweicloud.sdk.kvs.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import org.bson.codecs.pojo.annotations.BsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ComposedExpression + */ +public class ComposedExpression { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "logic") + @BsonProperty(value = "logic") + + private String logic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expressions") + @BsonProperty(value = "expressions") + + private List expressions = null; + + public ComposedExpression withLogic(String logic) { + this.logic = logic; + return this; + } + + /** + * 逻辑关系,取值如\"$and\", \"$or\", \"$nor\"。 + * @return logic + */ + public String getLogic() { + return logic; + } + + public void setLogic(String logic) { + this.logic = logic; + } + + public ComposedExpression withExpressions(List expressions) { + this.expressions = expressions; + return this; + } + + public ComposedExpression addExpressionsItem(Expression expressionsItem) { + if (this.expressions == null) { + this.expressions = new ArrayList<>(); + } + this.expressions.add(expressionsItem); + return this; + } + + public ComposedExpression withExpressions(Consumer> expressionsSetter) { + if (this.expressions == null) { + this.expressions = new ArrayList<>(); + } + expressionsSetter.accept(this.expressions); + return this; + } + + /** + * 多个相同优先级且相同逻辑的单字段或多字段条件。 + * @return expressions + */ + public List getExpressions() { + return expressions; + } + + public void setExpressions(List expressions) { + this.expressions = expressions; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ComposedExpression that = (ComposedExpression) obj; + return Objects.equals(this.logic, that.logic) && Objects.equals(this.expressions, that.expressions); + } + + @Override + public int hashCode() { + return Objects.hash(logic, expressions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ComposedExpression {\n"); + sb.append(" logic: ").append(toIndentedString(logic)).append("\n"); + sb.append(" expressions: ").append(toIndentedString(expressions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ConditionExpression.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ConditionExpression.java index 8c2897a90a..aec60872e5 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ConditionExpression.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ConditionExpression.java @@ -19,6 +19,18 @@ public class ConditionExpression { private SingleFieldExpression singleFieldExpression; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "multi_field_expression") + @BsonProperty(value = "multi_field_expression") + + private MultiFieldExpression multiFieldExpression; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "composed_expression") + @BsonProperty(value = "composed_expression") + + private ComposedExpression composedExpression; + public ConditionExpression withSingleFieldExpression(SingleFieldExpression singleFieldExpression) { this.singleFieldExpression = singleFieldExpression; return this; @@ -45,6 +57,58 @@ public void setSingleFieldExpression(SingleFieldExpression singleFieldExpression this.singleFieldExpression = singleFieldExpression; } + public ConditionExpression withMultiFieldExpression(MultiFieldExpression multiFieldExpression) { + this.multiFieldExpression = multiFieldExpression; + return this; + } + + public ConditionExpression withMultiFieldExpression(Consumer multiFieldExpressionSetter) { + if (this.multiFieldExpression == null) { + this.multiFieldExpression = new MultiFieldExpression(); + multiFieldExpressionSetter.accept(this.multiFieldExpression); + } + + return this; + } + + /** + * Get multiFieldExpression + * @return multiFieldExpression + */ + public MultiFieldExpression getMultiFieldExpression() { + return multiFieldExpression; + } + + public void setMultiFieldExpression(MultiFieldExpression multiFieldExpression) { + this.multiFieldExpression = multiFieldExpression; + } + + public ConditionExpression withComposedExpression(ComposedExpression composedExpression) { + this.composedExpression = composedExpression; + return this; + } + + public ConditionExpression withComposedExpression(Consumer composedExpressionSetter) { + if (this.composedExpression == null) { + this.composedExpression = new ComposedExpression(); + composedExpressionSetter.accept(this.composedExpression); + } + + return this; + } + + /** + * Get composedExpression + * @return composedExpression + */ + public ComposedExpression getComposedExpression() { + return composedExpression; + } + + public void setComposedExpression(ComposedExpression composedExpression) { + this.composedExpression = composedExpression; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -54,12 +118,14 @@ public boolean equals(java.lang.Object obj) { return false; } ConditionExpression that = (ConditionExpression) obj; - return Objects.equals(this.singleFieldExpression, that.singleFieldExpression); + return Objects.equals(this.singleFieldExpression, that.singleFieldExpression) + && Objects.equals(this.multiFieldExpression, that.multiFieldExpression) + && Objects.equals(this.composedExpression, that.composedExpression); } @Override public int hashCode() { - return Objects.hash(singleFieldExpression); + return Objects.hash(singleFieldExpression, multiFieldExpression, composedExpression); } @Override @@ -67,6 +133,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConditionExpression {\n"); sb.append(" singleFieldExpression: ").append(toIndentedString(singleFieldExpression)).append("\n"); + sb.append(" multiFieldExpression: ").append(toIndentedString(multiFieldExpression)).append("\n"); + sb.append(" composedExpression: ").append(toIndentedString(composedExpression)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java index bafa6cf6d7..6473eeb45f 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class CreateTableRequest extends SdkBsonDocRequest { private CreateTableRequestBody body; + private static Codec codec; + public CreateTableRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,7 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(CreateTableRequestBody.class) - .encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(CreateTableRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableResponse.java index 0e9052aa21..598c39352d 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/CreateTableResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -49,6 +50,8 @@ public class CreateTableResponse extends SdkBsonDocResponse { private PreSplitKeyOptions preSplitKeyOptions; + private static Codec codec; + public CreateTableResponse withTableName(String tableName) { this.tableName = tableName; return this; @@ -237,6 +240,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(CreateTableResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(CreateTableResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java index 9bce029081..13132a3ca3 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class DeleteKvRequest extends SdkBsonDocRequest { private DeleteKvRequestBody body; + private static Codec codec; + public DeleteKvRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,6 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(DeleteKvRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(DeleteKvRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvResponse.java index 9e5acff996..a0a7dbad62 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DeleteKvResponse.java @@ -3,6 +3,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; @@ -13,6 +14,8 @@ */ public class DeleteKvResponse extends SdkBsonDocResponse { + private static Codec codec; + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -39,6 +42,9 @@ public String toString() { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(DeleteKvResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(DeleteKvResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java index 4342a85149..0996092b2c 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class DescribeTableRequest extends SdkBsonDocRequest { private DescribeTableRequestBody body; + private static Codec codec; + public DescribeTableRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,7 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(DescribeTableRequestBody.class) - .encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(DescribeTableRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableResponse.java index c92d3f90b0..73563965b9 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/DescribeTableResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -49,6 +50,8 @@ public class DescribeTableResponse extends SdkBsonDocResponse { private RunTimeInfo runTimeInfo; + private static Codec codec; + public DescribeTableResponse withTableName(String tableName) { this.tableName = tableName; return this; @@ -235,6 +238,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(DescribeTableResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(DescribeTableResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/Expression.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/Expression.java new file mode 100644 index 0000000000..0eed758a9a --- /dev/null +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/Expression.java @@ -0,0 +1,153 @@ +package com.huaweicloud.sdk.kvs.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import org.bson.codecs.pojo.annotations.BsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Expression + */ +public class Expression { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "single_field_expression") + @BsonProperty(value = "single_field_expression") + + private SingleFieldExpression singleFieldExpression; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "multi_field_expression") + @BsonProperty(value = "multi_field_expression") + + private MultiFieldExpression multiFieldExpression; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "composed_expression") + @BsonProperty(value = "composed_expression") + + private ComposedExpression composedExpression; + + public Expression withSingleFieldExpression(SingleFieldExpression singleFieldExpression) { + this.singleFieldExpression = singleFieldExpression; + return this; + } + + public Expression withSingleFieldExpression(Consumer singleFieldExpressionSetter) { + if (this.singleFieldExpression == null) { + this.singleFieldExpression = new SingleFieldExpression(); + singleFieldExpressionSetter.accept(this.singleFieldExpression); + } + + return this; + } + + /** + * Get singleFieldExpression + * @return singleFieldExpression + */ + public SingleFieldExpression getSingleFieldExpression() { + return singleFieldExpression; + } + + public void setSingleFieldExpression(SingleFieldExpression singleFieldExpression) { + this.singleFieldExpression = singleFieldExpression; + } + + public Expression withMultiFieldExpression(MultiFieldExpression multiFieldExpression) { + this.multiFieldExpression = multiFieldExpression; + return this; + } + + public Expression withMultiFieldExpression(Consumer multiFieldExpressionSetter) { + if (this.multiFieldExpression == null) { + this.multiFieldExpression = new MultiFieldExpression(); + multiFieldExpressionSetter.accept(this.multiFieldExpression); + } + + return this; + } + + /** + * Get multiFieldExpression + * @return multiFieldExpression + */ + public MultiFieldExpression getMultiFieldExpression() { + return multiFieldExpression; + } + + public void setMultiFieldExpression(MultiFieldExpression multiFieldExpression) { + this.multiFieldExpression = multiFieldExpression; + } + + public Expression withComposedExpression(ComposedExpression composedExpression) { + this.composedExpression = composedExpression; + return this; + } + + public Expression withComposedExpression(Consumer composedExpressionSetter) { + if (this.composedExpression == null) { + this.composedExpression = new ComposedExpression(); + composedExpressionSetter.accept(this.composedExpression); + } + + return this; + } + + /** + * Get composedExpression + * @return composedExpression + */ + public ComposedExpression getComposedExpression() { + return composedExpression; + } + + public void setComposedExpression(ComposedExpression composedExpression) { + this.composedExpression = composedExpression; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Expression that = (Expression) obj; + return Objects.equals(this.singleFieldExpression, that.singleFieldExpression) + && Objects.equals(this.multiFieldExpression, that.multiFieldExpression) + && Objects.equals(this.composedExpression, that.composedExpression); + } + + @Override + public int hashCode() { + return Objects.hash(singleFieldExpression, multiFieldExpression, composedExpression); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Expression {\n"); + sb.append(" singleFieldExpression: ").append(toIndentedString(singleFieldExpression)).append("\n"); + sb.append(" multiFieldExpression: ").append(toIndentedString(multiFieldExpression)).append("\n"); + sb.append(" composedExpression: ").append(toIndentedString(composedExpression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java index 12b808bbc4..81ced43bef 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class GetKvRequest extends SdkBsonDocRequest { private GetKvRequestBody body; + private static Codec codec; + public GetKvRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,6 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(GetKvRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(GetKvRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvResponse.java index 33bdb00b58..550b4eb605 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/GetKvResponse.java @@ -6,6 +6,7 @@ import org.bson.BsonReader; import org.bson.Document; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -23,6 +24,8 @@ public class GetKvResponse extends SdkBsonDocResponse { private Document kvDoc; + private static Codec codec; + public GetKvResponse withKvDoc(Document kvDoc) { this.kvDoc = kvDoc; return this; @@ -79,6 +82,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(GetKvResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(GetKvResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequest.java index 6c7d28b9e0..d4b0121012 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -23,6 +24,8 @@ public class ListStoreRequest extends SdkBsonDocRequest { private ListStoreRequestBody body; + private static Codec codec; + public ListStoreRequest withBody(ListStoreRequestBody body) { this.body = body; return this; @@ -88,6 +91,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(ListStoreRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ListStoreRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java index 874198f97f..7a03811900 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListStoreResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -31,6 +32,8 @@ public class ListStoreResponse extends SdkBsonDocResponse { private List stores = null; + private static Codec codec; + public ListStoreResponse withCursorName(String cursorName) { this.cursorName = cursorName; return this; @@ -121,6 +124,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(ListStoreResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ListStoreResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java index f5c07b86aa..aa3a568dff 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class ListTableRequest extends SdkBsonDocRequest { private ListTableRequestBody body; + private static Codec codec; + public ListTableRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,6 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(ListTableRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ListTableRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java index 027a414a9f..f4c4a6720c 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ListTableResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -31,6 +32,8 @@ public class ListTableResponse extends SdkBsonDocResponse { private List tableNames = null; + private static Codec codec; + public ListTableResponse withCursorName(String cursorName) { this.cursorName = cursorName; return this; @@ -121,6 +124,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(ListTableResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ListTableResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/MultiFieldExpression.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/MultiFieldExpression.java new file mode 100644 index 0000000000..c7ce1f029c --- /dev/null +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/MultiFieldExpression.java @@ -0,0 +1,118 @@ +package com.huaweicloud.sdk.kvs.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import org.bson.codecs.pojo.annotations.BsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * MultiFieldExpression + */ +public class MultiFieldExpression { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "logic") + @BsonProperty(value = "logic") + + private String logic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expressions") + @BsonProperty(value = "expressions") + + private List expressions = null; + + public MultiFieldExpression withLogic(String logic) { + this.logic = logic; + return this; + } + + /** + * 多字段条件,多个相同优先级的单字段条件。 + * @return logic + */ + public String getLogic() { + return logic; + } + + public void setLogic(String logic) { + this.logic = logic; + } + + public MultiFieldExpression withExpressions(List expressions) { + this.expressions = expressions; + return this; + } + + public MultiFieldExpression addExpressionsItem(SingleFieldExpression expressionsItem) { + if (this.expressions == null) { + this.expressions = new ArrayList<>(); + } + this.expressions.add(expressionsItem); + return this; + } + + public MultiFieldExpression withExpressions(Consumer> expressionsSetter) { + if (this.expressions == null) { + this.expressions = new ArrayList<>(); + } + expressionsSetter.accept(this.expressions); + return this; + } + + /** + * 多个相同逻辑操作的单字段条件。 + * @return expressions + */ + public List getExpressions() { + return expressions; + } + + public void setExpressions(List expressions) { + this.expressions = expressions; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + MultiFieldExpression that = (MultiFieldExpression) obj; + return Objects.equals(this.logic, that.logic) && Objects.equals(this.expressions, that.expressions); + } + + @Override + public int hashCode() { + return Objects.hash(logic, expressions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MultiFieldExpression {\n"); + sb.append(" logic: ").append(toIndentedString(logic)).append("\n"); + sb.append(" expressions: ").append(toIndentedString(expressions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java index 6b129b91f5..b861a5d210 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class PutKvRequest extends SdkBsonDocRequest { private PutKvRequestBody body; + private static Codec codec; + public PutKvRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,6 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(PutKvRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(PutKvRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvResponse.java index 8059369b66..6c0b3bf703 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/PutKvResponse.java @@ -3,6 +3,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; @@ -13,6 +14,8 @@ */ public class PutKvResponse extends SdkBsonDocResponse { + private static Codec codec; + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -39,6 +42,9 @@ public String toString() { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(PutKvResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(PutKvResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java index 5f7dea6f48..797b1f7ed4 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class ScanKvRequest extends SdkBsonDocRequest { private ScanKvRequestBody body; + private static Codec codec; + public ScanKvRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,6 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(ScanKvRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ScanKvRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java index 4016938cb0..7883837c2d 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanKvResponse.java @@ -6,6 +6,7 @@ import org.bson.BsonReader; import org.bson.Document; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -44,6 +45,8 @@ public class ScanKvResponse extends SdkBsonDocResponse { private List returnedKvItems = null; + private static Codec codec; + public ScanKvResponse withReturnedCount(Integer returnedCount) { this.returnedCount = returnedCount; return this; @@ -172,6 +175,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(ScanKvResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ScanKvResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java index e5f601cc85..d1b3b4bb58 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class ScanSkeyKvRequest extends SdkBsonDocRequest { private ScanSkeyKvRequestBody body; + private static Codec codec; + public ScanSkeyKvRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,6 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(ScanSkeyKvRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ScanSkeyKvRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java index 13f1c31295..47792c5697 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/ScanSkeyKvResponse.java @@ -6,6 +6,7 @@ import org.bson.BsonReader; import org.bson.Document; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -44,6 +45,8 @@ public class ScanSkeyKvResponse extends SdkBsonDocResponse { private List returnedKvItems = null; + private static Codec codec; + public ScanSkeyKvResponse withReturnedCount(Integer returnedCount) { this.returnedCount = returnedCount; return this; @@ -173,6 +176,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(ScanSkeyKvResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(ScanSkeyKvResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java index 75437ce051..885a577287 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateFields.java @@ -40,7 +40,7 @@ public UpdateFields withSet(Document set) { } /** - * 新增字段或覆盖某字段的值1个或多个字段。 > 禁止修改sortkey的字段。 + * 新增或覆盖更新1个或多个字段的值。 > 禁止修改sortkey的字段。 * @return set */ public Document getSet() { @@ -57,7 +57,7 @@ public UpdateFields withAdd(Document add) { } /** - * 对某个字段做加法运算,并更新为运算后的值1个或多个字段。 + * 对1个或多个字段做加法运算,并更新为运算后的值。 * @return add */ public Document getAdd() { diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java index 9bfad204c1..3ceac0ca5b 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvRequest.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocRequest; import org.bson.BsonWriter; +import org.bson.codecs.Codec; import org.bson.codecs.EncoderContext; import org.bson.codecs.configuration.CodecRegistry; import org.bson.codecs.pojo.annotations.BsonProperty; @@ -29,6 +30,8 @@ public class UpdateKvRequest extends SdkBsonDocRequest { private UpdateKvRequestBody body; + private static Codec codec; + public UpdateKvRequest withStoreName(String storeName) { this.storeName = storeName; return this; @@ -112,6 +115,9 @@ private String toIndentedString(java.lang.Object o) { @Override protected void encodeBody(CodecRegistry codecRegistry, BsonWriter writer) { - codecRegistry.get(UpdateKvRequestBody.class).encode(writer, this.getBody(), EncoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(UpdateKvRequestBody.class); + } + codec.encode(writer, this.getBody(), EncoderContext.builder().build()); } } diff --git a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvResponse.java b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvResponse.java index bfa30e3527..4e1e26d540 100644 --- a/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvResponse.java +++ b/services/kvs/src/main/java/com/huaweicloud/sdk/kvs/v1/model/UpdateKvResponse.java @@ -3,6 +3,7 @@ import com.huaweicloud.sdk.corebson.SdkBsonDocResponse; import org.bson.BsonReader; +import org.bson.codecs.Codec; import org.bson.codecs.DecoderContext; import org.bson.codecs.configuration.CodecRegistry; @@ -13,6 +14,8 @@ */ public class UpdateKvResponse extends SdkBsonDocResponse { + private static Codec codec; + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -39,6 +42,9 @@ public String toString() { @Override protected Object decodeBody(CodecRegistry codecRegistry, BsonReader reader) { - return codecRegistry.get(UpdateKvResponse.class).decode(reader, DecoderContext.builder().build()); + if (codec == null) { + codec = codecRegistry.get(UpdateKvResponse.class); + } + return codec.decode(reader, DecoderContext.builder().build()); } } diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index c3b086e5ed..b7303fc1a0 100644 --- a/services/lakeformation/pom.xml +++ b/services/lakeformation/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.108 + 3.1.109 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/live/pom.xml b/services/live/pom.xml index 65f1adb862..45d1c215a9 100644 --- a/services/live/pom.xml +++ b/services/live/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.108 + 3.1.109 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/lts/pom.xml b/services/lts/pom.xml index 5ab2959a14..9f4f4eff09 100644 --- a/services/lts/pom.xml +++ b/services/lts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.108 + 3.1.109 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index 15ab7a85a4..50ef12d020 100644 --- a/services/mapds/pom.xml +++ b/services/mapds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.108 + 3.1.109 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index 1d7e041066..d5f0ad8585 100644 --- a/services/mas/pom.xml +++ b/services/mas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.108 + 3.1.109 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index 7ed5bc891f..a79776d7e3 100644 --- a/services/meeting/pom.xml +++ b/services/meeting/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.108 + 3.1.109 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/metastudio/pom.xml b/services/metastudio/pom.xml index fb1d06e982..4a8cfbe0d4 100644 --- a/services/metastudio/pom.xml +++ b/services/metastudio/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.108 + 3.1.109 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index 6876b049a7..6a2caf261f 100644 --- a/services/moderation/pom.xml +++ b/services/moderation/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.108 + 3.1.109 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index f555e6c4af..5d809da4b5 100644 --- a/services/mpc/pom.xml +++ b/services/mpc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.108 + 3.1.109 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index 90798e63df..872a89d18b 100644 --- a/services/mrs/pom.xml +++ b/services/mrs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.108 + 3.1.109 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index 29e1fb74b9..2480cd2b7f 100644 --- a/services/msgsms/pom.xml +++ b/services/msgsms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.108 + 3.1.109 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index fcee099412..63c79ed693 100644 --- a/services/mssi/pom.xml +++ b/services/mssi/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.108 + 3.1.109 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 1f684dc2c0..0efa0828ff 100644 --- a/services/nat/pom.xml +++ b/services/nat/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.108 + 3.1.109 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 123489c5e5..a04cb593ea 100644 --- a/services/nlp/pom.xml +++ b/services/nlp/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.108 + 3.1.109 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index 8a0e341de4..275b9c0bf5 100644 --- a/services/oa/pom.xml +++ b/services/oa/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.108 + 3.1.109 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index 06d44ba60a..4cdc3bdf48 100644 --- a/services/obs/pom.xml +++ b/services/obs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.108 + 3.1.109 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.108 + 3.1.109 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index 43751cdcb1..a09063f2a1 100644 --- a/services/ocr/pom.xml +++ b/services/ocr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.108 + 3.1.109 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java index cbb4651b0f..57529ab525 100644 --- a/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java +++ b/services/ocr/src/main/java/com/huaweicloud/sdk/ocr/v1/model/SmartDocumentRecognizerRequestBody.java @@ -20,6 +20,11 @@ public class SmartDocumentRecognizerRequestBody { private String url; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "single_orientation_mode") + + private Boolean singleOrientationMode; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "kv") @@ -94,6 +99,23 @@ public void setUrl(String url) { this.url = url; } + public SmartDocumentRecognizerRequestBody withSingleOrientationMode(Boolean singleOrientationMode) { + this.singleOrientationMode = singleOrientationMode; + return this; + } + + /** + * 单朝向模式开关。可选值包括: - true:打开单朝向模式 - false:关闭单朝向模式 未传入该参数时默认为false,既默认图片中的字段为多朝向 + * @return singleOrientationMode + */ + public Boolean getSingleOrientationMode() { + return singleOrientationMode; + } + + public void setSingleOrientationMode(Boolean singleOrientationMode) { + this.singleOrientationMode = singleOrientationMode; + } + public SmartDocumentRecognizerRequestBody withKv(Boolean kv) { this.kv = kv; return this; @@ -240,6 +262,7 @@ public boolean equals(java.lang.Object obj) { } SmartDocumentRecognizerRequestBody that = (SmartDocumentRecognizerRequestBody) obj; return Objects.equals(this.data, that.data) && Objects.equals(this.url, that.url) + && Objects.equals(this.singleOrientationMode, that.singleOrientationMode) && Objects.equals(this.kv, that.kv) && Objects.equals(this.table, that.table) && Objects.equals(this.layout, that.layout) && Objects.equals(this.returnExcel, that.returnExcel) && Objects.equals(this.form, that.form) && Objects.equals(this.formula, that.formula) @@ -248,7 +271,17 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects.hash(data, url, kv, table, layout, returnExcel, form, formula, kvMap, pdfPageNumber); + return Objects.hash(data, + url, + singleOrientationMode, + kv, + table, + layout, + returnExcel, + form, + formula, + kvMap, + pdfPageNumber); } @Override @@ -257,6 +290,7 @@ public String toString() { sb.append("class SmartDocumentRecognizerRequestBody {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" singleOrientationMode: ").append(toIndentedString(singleOrientationMode)).append("\n"); sb.append(" kv: ").append(toIndentedString(kv)).append("\n"); sb.append(" table: ").append(toIndentedString(table)).append("\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); diff --git a/services/oms/pom.xml b/services/oms/pom.xml index dc038e950d..1139063456 100644 --- a/services/oms/pom.xml +++ b/services/oms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.108 + 3.1.109 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index f13dc4e03b..daf7349374 100644 --- a/services/optverse/pom.xml +++ b/services/optverse/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.108 + 3.1.109 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index 14622fd45c..d97c53a9b3 100644 --- a/services/organizations/pom.xml +++ b/services/organizations/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.108 + 3.1.109 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index 9541e7309a..386cde237c 100644 --- a/services/orgid/pom.xml +++ b/services/orgid/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.108 + 3.1.109 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index 15526c1a01..dbf2cc4aa7 100644 --- a/services/oroas/pom.xml +++ b/services/oroas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.108 + 3.1.109 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index 11adaadc38..c97b7ffb74 100644 --- a/services/osm/pom.xml +++ b/services/osm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.108 + 3.1.109 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index 845c84a3af..55ff31543d 100644 --- a/services/pangulargemodels/pom.xml +++ b/services/pangulargemodels/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.108 + 3.1.109 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index a47859b981..088f59aa75 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,188 +6,189 @@ com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.108 + 3.1.109 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - pangulargemodels - iotedge - gaussdbforopengauss - config - eihealth - lakeformation - dataartsinsight - live - waf - asm + ges + mpc + scm + ims + iotdm kps - dcs - eip - dgc - dns - optverse - ec - rms - codeartsinspector - gaussdbfornosql - ram - ugo - kafka - cse - cbr - identitycenter - expert - meeting - aos - rds - identitycenterstore - mrs - cdn - dc - sdrs - evs - smn - koomessage + iam + cce sms - image - idme - vas + dbss + dataartsstudio + bcs + apig + dsc + as + cfw + dgc + kms + dds + orgid sis - antiddos - cce - secmaster - ddm - codecraft - codeartsartifact - roma - vpc - bss - vod - codeartsgovernance + iotanalytics + ecs + gaussdbforopengauss + mas + cbh + rgc aom - er + dris + dns + identitycenter + edgesec hilens - dis + codeartscheck + waf + devstar + cse + workspaceapp + ccm + oa + evs + mrs + swr idmeclassicapi - servicestage - functiongraph - geip - drs - koomap - organizations - edgesec + sa + cbr + dis + codeartsgovernance + iotda + pangulargemodels lts - projectman - nlp - dsc - msgsms - bcs - cbs - vcm - mas - apig - dli - eds - gsl - eps + live workspace - rabbitmq + codecraft + rms + vpc + roma ocr - nat - obs - ces - sts - vias - kvs - sfsturbo - dlf - as - dds + config + gaussdbfornosql + dwr mapds - vpn - ges - cgs - elb - apm - dataartsstudio - metastudio - cdm - cph + sfsturbo dss + codeartsartifact + metastudio cms - bms + rocketmq ga + oroas + koomessage + meeting + ugo + deh + eds + das + antiddos + cae + osm + eip + hss + bms cloudpond - sa - imagesearch - iotda - scm + elb + vod + kvs + vpn + moderation campusgo - ecs - das - cloudtable - classroom - csms - rocketmq - oms - deh - res - koophone - swr - cpts + iotedge + cdn + codeartsbuild + drs + mssi + aad ivs - kms - ccm - dris - iotanalytics - oroas - mpc - dws - codeartscheck - cfw - ims - eg - hss - cbh + optverse codehub + css + er + identitycenterstore + image + cph + ec + ram + asm + dcs + vpcep + lakeformation + frs + res + dataartsinsight + ces + apm + gaussdb + csms + cc + cloudtable cloudtest - dbss - rgc + geip + cpts + vcm + expert bssintl - oa - mssi - cloudrtc - codeartsbuild - moderation - cc - cae - frs + servicestage iec - aad - workspaceapp - css - tics - vpcep + oms + dws + bss codeartspipeline - orgid - codeartsdeploy - gaussdb + smn + ddm + codeartsinspector + nat + vias + gsl + imagesearch + tms + koophone + eihealth + tics + rds cts + dlf cloudide - osm - iamaccessanalyzer + koomap + secmaster + rabbitmq + kafka ief - tms - devstar - dwr - iam + cdm + eps + cgs + vas + nlp + organizations + dc + sdrs + aos + dli + idme + cloudrtc + cbs + iamaccessanalyzer + obs + functiongraph + eg + msgsms + sts + classroom + codeartsdeploy + projectman diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index b3bb77e2a0..ba631d559d 100644 --- a/services/projectman/pom.xml +++ b/services/projectman/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.108 + 3.1.109 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index 5c280f932a..caba2f60f7 100644 --- a/services/rabbitmq/pom.xml +++ b/services/rabbitmq/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.108 + 3.1.109 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ram/pom.xml b/services/ram/pom.xml index 26f3d0ad16..2bb7d93642 100644 --- a/services/ram/pom.xml +++ b/services/ram/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.108 + 3.1.109 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index 54c182caaa..a7d08908fb 100644 --- a/services/rds/pom.xml +++ b/services/rds/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.108 + 3.1.109 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/res/pom.xml b/services/res/pom.xml index 1b55281868..870dbf2f52 100644 --- a/services/res/pom.xml +++ b/services/res/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.108 + 3.1.109 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index 3711144e2f..37c5e75c4c 100644 --- a/services/rgc/pom.xml +++ b/services/rgc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.108 + 3.1.109 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/rms/pom.xml b/services/rms/pom.xml index abc106a0e0..59833ba8e6 100644 --- a/services/rms/pom.xml +++ b/services/rms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.108 + 3.1.109 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index 7547f44c23..62f9d5e7aa 100644 --- a/services/rocketmq/pom.xml +++ b/services/rocketmq/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.108 + 3.1.109 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index a558701578..f22f81750a 100644 --- a/services/roma/pom.xml +++ b/services/roma/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.108 + 3.1.109 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index d9390b307f..2027888016 100644 --- a/services/sa/pom.xml +++ b/services/sa/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.108 + 3.1.109 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index 4a5372725b..f97fa35462 100644 --- a/services/scm/pom.xml +++ b/services/scm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.108 + 3.1.109 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index 52430b9f64..dd095c9c8f 100644 --- a/services/sdrs/pom.xml +++ b/services/sdrs/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.108 + 3.1.109 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index 59ace01b2b..9b7b990095 100644 --- a/services/secmaster/pom.xml +++ b/services/secmaster/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.108 + 3.1.109 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index 0fd166649c..66c1911dac 100644 --- a/services/servicestage/pom.xml +++ b/services/servicestage/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.108 + 3.1.109 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index cdc4f01b4b..8518244388 100644 --- a/services/sfsturbo/pom.xml +++ b/services/sfsturbo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.108 + 3.1.109 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/sis/pom.xml b/services/sis/pom.xml index d379d2ac32..ce8411eae9 100644 --- a/services/sis/pom.xml +++ b/services/sis/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.108 + 3.1.109 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index 9c65de3785..28d3ecfd9f 100644 --- a/services/smn/pom.xml +++ b/services/smn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.108 + 3.1.109 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index 2ee052dc73..a6e9847367 100644 --- a/services/sms/pom.xml +++ b/services/sms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.108 + 3.1.109 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/sts/pom.xml b/services/sts/pom.xml index 776705e5cc..bd1ee97364 100644 --- a/services/sts/pom.xml +++ b/services/sts/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.108 + 3.1.109 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index f0deeea214..a90e6d107e 100644 --- a/services/swr/pom.xml +++ b/services/swr/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.108 + 3.1.109 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/tics/pom.xml b/services/tics/pom.xml index dc1dbac87c..69022fba28 100644 --- a/services/tics/pom.xml +++ b/services/tics/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.108 + 3.1.109 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index 6c4bc6de33..ca1ea440ff 100644 --- a/services/tms/pom.xml +++ b/services/tms/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.108 + 3.1.109 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 10ac49cfc0..e5c97709ce 100644 --- a/services/ugo/pom.xml +++ b/services/ugo/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.108 + 3.1.109 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index 572b3a51d6..d2b4723db2 100644 --- a/services/vas/pom.xml +++ b/services/vas/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.108 + 3.1.109 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index d045524c7d..ca0fc2ff98 100644 --- a/services/vcm/pom.xml +++ b/services/vcm/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.108 + 3.1.109 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/vias/pom.xml b/services/vias/pom.xml index 3376282201..504faf128e 100644 --- a/services/vias/pom.xml +++ b/services/vias/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-vias - 3.1.108 + 3.1.109 Huawei Cloud SDK for VIAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index 2af4b1e6a5..f909cf7130 100644 --- a/services/vod/pom.xml +++ b/services/vod/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.108 + 3.1.109 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index 4613918746..e3579c355c 100644 --- a/services/vpc/pom.xml +++ b/services/vpc/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.108 + 3.1.109 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateSubNetworkInterfaceOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateSubNetworkInterfaceOption.java index 64cc4a800a..11974ba44e 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateSubNetworkInterfaceOption.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateSubNetworkInterfaceOption.java @@ -43,6 +43,26 @@ public class BatchCreateSubNetworkInterfaceOption { private String projectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allowed_address_pairs") + + private List allowedAddressPairs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + public BatchCreateSubNetworkInterfaceOption withVirsubnetId(String virsubnetId) { this.virsubnetId = virsubnetId; return this; @@ -161,6 +181,107 @@ public void setProjectId(String projectId) { this.projectId = projectId; } + public BatchCreateSubNetworkInterfaceOption withAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + return this; + } + + public BatchCreateSubNetworkInterfaceOption addAllowedAddressPairsItem(AllowedAddressPair allowedAddressPairsItem) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + this.allowedAddressPairs.add(allowedAddressPairsItem); + return this; + } + + public BatchCreateSubNetworkInterfaceOption withAllowedAddressPairs( + Consumer> allowedAddressPairsSetter) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + allowedAddressPairsSetter.accept(this.allowedAddressPairs); + return this; + } + + /** + * 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + * @return allowedAddressPairs + */ + public List getAllowedAddressPairs() { + return allowedAddressPairs; + } + + public void setAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + } + + public BatchCreateSubNetworkInterfaceOption withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public BatchCreateSubNetworkInterfaceOption withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public BatchCreateSubNetworkInterfaceOption withTags(List tags) { + this.tags = tags; + return this; + } + + public BatchCreateSubNetworkInterfaceOption addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BatchCreateSubNetworkInterfaceOption withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 辅助弹性网卡资源标签 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -173,12 +294,24 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.virsubnetId, that.virsubnetId) && Objects.equals(this.parentId, that.parentId) && Objects.equals(this.securityGroups, that.securityGroups) && Objects.equals(this.description, that.description) && Objects.equals(this.ipv6Enable, that.ipv6Enable) - && Objects.equals(this.projectId, that.projectId); + && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.allowedAddressPairs, that.allowedAddressPairs) + && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.instanceType, that.instanceType) + && Objects.equals(this.tags, that.tags); } @Override public int hashCode() { - return Objects.hash(virsubnetId, parentId, securityGroups, description, ipv6Enable, projectId); + return Objects.hash(virsubnetId, + parentId, + securityGroups, + description, + ipv6Enable, + projectId, + allowedAddressPairs, + instanceId, + instanceType, + tags); } @Override @@ -191,6 +324,10 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" ipv6Enable: ").append(toIndentedString(ipv6Enable)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" allowedAddressPairs: ").append(toIndentedString(allowedAddressPairs)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSubNetworkInterfaceOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSubNetworkInterfaceOption.java index ef619747a5..0a3bd26649 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSubNetworkInterfaceOption.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSubNetworkInterfaceOption.java @@ -58,6 +58,26 @@ public class CreateSubNetworkInterfaceOption { private String projectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allowed_address_pairs") + + private List allowedAddressPairs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + public CreateSubNetworkInterfaceOption withVirsubnetId(String virsubnetId) { this.virsubnetId = virsubnetId; return this; @@ -227,6 +247,107 @@ public void setProjectId(String projectId) { this.projectId = projectId; } + public CreateSubNetworkInterfaceOption withAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + return this; + } + + public CreateSubNetworkInterfaceOption addAllowedAddressPairsItem(AllowedAddressPair allowedAddressPairsItem) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + this.allowedAddressPairs.add(allowedAddressPairsItem); + return this; + } + + public CreateSubNetworkInterfaceOption withAllowedAddressPairs( + Consumer> allowedAddressPairsSetter) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + allowedAddressPairsSetter.accept(this.allowedAddressPairs); + return this; + } + + /** + * 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + * @return allowedAddressPairs + */ + public List getAllowedAddressPairs() { + return allowedAddressPairs; + } + + public void setAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + } + + public CreateSubNetworkInterfaceOption withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID 约束: 1-64个字符 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public CreateSubNetworkInterfaceOption withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * 功能说明:辅助弹性网卡所属实例类型,例如“RDS” 约束:1-64个字符 + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public CreateSubNetworkInterfaceOption withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateSubNetworkInterfaceOption addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateSubNetworkInterfaceOption withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 辅助弹性网卡资源标签 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -242,7 +363,10 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.privateIpAddress, that.privateIpAddress) && Objects.equals(this.ipv6IpAddress, that.ipv6IpAddress) && Objects.equals(this.securityGroups, that.securityGroups) - && Objects.equals(this.projectId, that.projectId); + && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.allowedAddressPairs, that.allowedAddressPairs) + && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.instanceType, that.instanceType) + && Objects.equals(this.tags, that.tags); } @Override @@ -255,7 +379,11 @@ public int hashCode() { privateIpAddress, ipv6IpAddress, securityGroups, - projectId); + projectId, + allowedAddressPairs, + instanceId, + instanceType, + tags); } @Override @@ -271,6 +399,10 @@ public String toString() { sb.append(" ipv6IpAddress: ").append(toIndentedString(ipv6IpAddress)).append("\n"); sb.append(" securityGroups: ").append(toIndentedString(securityGroups)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" allowedAddressPairs: ").append(toIndentedString(allowedAddressPairs)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SubNetworkInterface.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SubNetworkInterface.java index e733bd86af..6ffe27234b 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SubNetworkInterface.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SubNetworkInterface.java @@ -72,7 +72,7 @@ public class SubNetworkInterface { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tags") - private List tags = null; + private List tags = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "project_id") @@ -84,6 +84,31 @@ public class SubNetworkInterface { private OffsetDateTime createdAt; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allowed_address_pairs") + + private List allowedAddressPairs = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_type") + + private String instanceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scope") + + private String scope; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "security_enabled") @@ -292,12 +317,12 @@ public void setSecurityGroups(List securityGroups) { this.securityGroups = securityGroups; } - public SubNetworkInterface withTags(List tags) { + public SubNetworkInterface withTags(List tags) { this.tags = tags; return this; } - public SubNetworkInterface addTagsItem(String tagsItem) { + public SubNetworkInterface addTagsItem(ResourceTag tagsItem) { if (this.tags == null) { this.tags = new ArrayList<>(); } @@ -305,7 +330,7 @@ public SubNetworkInterface addTagsItem(String tagsItem) { return this; } - public SubNetworkInterface withTags(Consumer> tagsSetter) { + public SubNetworkInterface withTags(Consumer> tagsSetter) { if (this.tags == null) { this.tags = new ArrayList<>(); } @@ -317,11 +342,11 @@ public SubNetworkInterface withTags(Consumer> tagsSetter) { * 功能说明:辅助弹性网卡的标签列表 * @return tags */ - public List getTags() { + public List getTags() { return tags; } - public void setTags(List tags) { + public void setTags(List tags) { this.tags = tags; } @@ -359,6 +384,107 @@ public void setCreatedAt(OffsetDateTime createdAt) { this.createdAt = createdAt; } + public SubNetworkInterface withAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + return this; + } + + public SubNetworkInterface addAllowedAddressPairsItem(AllowedAddressPair allowedAddressPairsItem) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + this.allowedAddressPairs.add(allowedAddressPairsItem); + return this; + } + + public SubNetworkInterface withAllowedAddressPairs(Consumer> allowedAddressPairsSetter) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + allowedAddressPairsSetter.accept(this.allowedAddressPairs); + return this; + } + + /** + * 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR + * @return allowedAddressPairs + */ + public List getAllowedAddressPairs() { + return allowedAddressPairs; + } + + public void setAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + } + + public SubNetworkInterface withState(String state) { + this.state = state; + return this; + } + + /** + * 功能说明:辅助弹性网卡当前状态 + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public SubNetworkInterface withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 功能说明:辅助弹性网卡所属实例ID,例如RDS实例ID + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public SubNetworkInterface withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * 功能说明:辅助弹性网卡所属实例类型,例如“RDS” + * @return instanceType + */ + public String getInstanceType() { + return instanceType; + } + + public void setInstanceType(String instanceType) { + this.instanceType = instanceType; + } + + public SubNetworkInterface withScope(String scope) { + this.scope = scope; + return this; + } + + /** + * 功能说明:辅助弹性网卡所在站点的公网出口信息 + * @return scope + */ + public String getScope() { + return scope; + } + + public void setScope(String scope) { + this.scope = scope; + } + public SubNetworkInterface withSecurityEnabled(Boolean securityEnabled) { this.securityEnabled = securityEnabled; return this; @@ -394,6 +520,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.vlanId, that.vlanId) && Objects.equals(this.securityGroups, that.securityGroups) && Objects.equals(this.tags, that.tags) && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.createdAt, that.createdAt) + && Objects.equals(this.allowedAddressPairs, that.allowedAddressPairs) + && Objects.equals(this.state, that.state) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.instanceType, that.instanceType) && Objects.equals(this.scope, that.scope) && Objects.equals(this.securityEnabled, that.securityEnabled); } @@ -413,6 +542,11 @@ public int hashCode() { tags, projectId, createdAt, + allowedAddressPairs, + state, + instanceId, + instanceType, + scope, securityEnabled); } @@ -434,6 +568,11 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" allowedAddressPairs: ").append(toIndentedString(allowedAddressPairs)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" instanceType: ").append(toIndentedString(instanceType)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" securityEnabled: ").append(toIndentedString(securityEnabled)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateSubNetworkInterfaceOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateSubNetworkInterfaceOption.java index f0657c7210..5e25e048f8 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateSubNetworkInterfaceOption.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateSubNetworkInterfaceOption.java @@ -23,6 +23,11 @@ public class UpdateSubNetworkInterfaceOption { private List securityGroups = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allowed_address_pairs") + + private List allowedAddressPairs = null; + public UpdateSubNetworkInterfaceOption withDescription(String description) { this.description = description; return this; @@ -73,6 +78,40 @@ public void setSecurityGroups(List securityGroups) { this.securityGroups = securityGroups; } + public UpdateSubNetworkInterfaceOption withAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + return this; + } + + public UpdateSubNetworkInterfaceOption addAllowedAddressPairsItem(AllowedAddressPair allowedAddressPairsItem) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + this.allowedAddressPairs.add(allowedAddressPairsItem); + return this; + } + + public UpdateSubNetworkInterfaceOption withAllowedAddressPairs( + Consumer> allowedAddressPairsSetter) { + if (this.allowedAddressPairs == null) { + this.allowedAddressPairs = new ArrayList<>(); + } + allowedAddressPairsSetter.accept(this.allowedAddressPairs); + return this; + } + + /** + * 1. 扩展属性:IP/Mac对列表,allowed_address_pair参见“allowed_address_pair对象” 2. 使用说明: IP地址不允许为 “0.0.0.0”如果allowed_address_pairs配置地址池较大的CIDR(掩码小于24位),建议为该port配置一个单独的安全组硬件SDN环境不支持ip_address属性配置为CIDR格式。 + * @return allowedAddressPairs + */ + public List getAllowedAddressPairs() { + return allowedAddressPairs; + } + + public void setAllowedAddressPairs(List allowedAddressPairs) { + this.allowedAddressPairs = allowedAddressPairs; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -83,12 +122,13 @@ public boolean equals(java.lang.Object obj) { } UpdateSubNetworkInterfaceOption that = (UpdateSubNetworkInterfaceOption) obj; return Objects.equals(this.description, that.description) - && Objects.equals(this.securityGroups, that.securityGroups); + && Objects.equals(this.securityGroups, that.securityGroups) + && Objects.equals(this.allowedAddressPairs, that.allowedAddressPairs); } @Override public int hashCode() { - return Objects.hash(description, securityGroups); + return Objects.hash(description, securityGroups, allowedAddressPairs); } @Override @@ -97,6 +137,7 @@ public String toString() { sb.append("class UpdateSubNetworkInterfaceOption {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" securityGroups: ").append(toIndentedString(securityGroups)).append("\n"); + sb.append(" allowedAddressPairs: ").append(toIndentedString(allowedAddressPairs)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateTrafficMirrorSessionOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateTrafficMirrorSessionOption.java index d82cf37ada..d1deae4e0f 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateTrafficMirrorSessionOption.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateTrafficMirrorSessionOption.java @@ -55,11 +55,6 @@ public class UpdateTrafficMirrorSessionOption { private String enabled; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "type") - - private String type; - public UpdateTrafficMirrorSessionOption withName(String name) { this.name = name; return this; @@ -213,23 +208,6 @@ public void setEnabled(String enabled) { this.enabled = enabled; } - public UpdateTrafficMirrorSessionOption withType(String type) { - this.type = type; - return this; - } - - /** - * 功能说明:支持的镜像源类型 取值范围: eni:弹性网卡 - * @return type - */ - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -245,7 +223,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.trafficMirrorTargetType, that.trafficMirrorTargetType) && Objects.equals(this.virtualNetworkId, that.virtualNetworkId) && Objects.equals(this.packetLength, that.packetLength) && Objects.equals(this.priority, that.priority) - && Objects.equals(this.enabled, that.enabled) && Objects.equals(this.type, that.type); + && Objects.equals(this.enabled, that.enabled); } @Override @@ -258,8 +236,7 @@ public int hashCode() { virtualNetworkId, packetLength, priority, - enabled, - type); + enabled); } @Override @@ -275,7 +252,6 @@ public String toString() { sb.append(" packetLength: ").append(toIndentedString(packetLength)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/vpcep/pom.xml b/services/vpcep/pom.xml index 3964b9ebbb..ed44cb825a 100644 --- a/services/vpcep/pom.xml +++ b/services/vpcep/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.108 + 3.1.109 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepAsyncClient.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepAsyncClient.java index 3a70348c3b..91706d8b53 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepAsyncClient.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepAsyncClient.java @@ -304,9 +304,9 @@ public AsyncInvoker deleteEndpoin } /** - * 删除网关型终端节点policy + * 删除网关型终端节点策略(待下线) * - * 删除网关型终端节点policy。 + * 删除网关型终端节点策略,该接口待下线,不建议使用。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -319,9 +319,9 @@ public CompletableFuture deleteEndpointPolicyAsync } /** - * 删除网关型终端节点policy + * 删除网关型终端节点策略(待下线) * - * 删除网关型终端节点policy。 + * 删除网关型终端节点策略,该接口待下线,不建议使用。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -725,9 +725,9 @@ public AsyncInvoker updateEndpointPolicyAsync } /** - * 修改网关型终端节点policy + * 修改终端节点策略 * - * 修改网关型终端节点policy。 + * 修改终端节点策略。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepClient.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepClient.java index 186428974b..bf884da072 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepClient.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/VpcepClient.java @@ -300,9 +300,9 @@ public SyncInvoker deleteEndpoint } /** - * 删除网关型终端节点policy + * 删除网关型终端节点策略(待下线) * - * 删除网关型终端节点policy。 + * 删除网关型终端节点策略,该接口待下线,不建议使用。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -314,9 +314,9 @@ public DeleteEndpointPolicyResponse deleteEndpointPolicy(DeleteEndpointPolicyReq } /** - * 删除网关型终端节点policy + * 删除网关型终端节点策略(待下线) * - * 删除网关型终端节点policy。 + * 删除网关型终端节点策略,该接口待下线,不建议使用。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -713,9 +713,9 @@ public SyncInvoker getPolicyStatement() { @@ -409,20 +409,20 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public CreateEndpointRequestBody withPolicyDocument(Object policyDocument) { + public CreateEndpointRequestBody withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java index 4a7046c432..4081731fd9 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/CreateEndpointResponse.java @@ -123,7 +123,7 @@ public class CreateEndpointResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private Object policyDocument; + private String policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "enable_status") @@ -571,7 +571,7 @@ public CreateEndpointResponse withPolicyStatement(Consumer } /** - * 终端节点策略信息 + * Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 * @return policyStatement */ public List getPolicyStatement() { @@ -582,20 +582,20 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public CreateEndpointResponse withPolicyDocument(Object policyDocument) { + public CreateEndpointResponse withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java index 9a1258a72d..a9857e1579 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/DeleteEndpointPolicyResponse.java @@ -113,7 +113,7 @@ public class DeleteEndpointPolicyResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private Object policyDocument; + private String policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -533,7 +533,7 @@ public DeleteEndpointPolicyResponse withPolicyStatement(Consumer getPolicyStatement() { @@ -544,20 +544,20 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public DeleteEndpointPolicyResponse withPolicyDocument(Object policyDocument) { + public DeleteEndpointPolicyResponse withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java index e1bd25d400..fd5fd6ddc7 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/EndpointResponseBody.java @@ -127,7 +127,7 @@ public class EndpointResponseBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private Object policyDocument; + private String policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -614,7 +614,7 @@ public EndpointResponseBody withPolicyStatement(Consumer> } /** - * 终端节点策略信息 + * Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 * @return policyStatement */ public List getPolicyStatement() { @@ -625,20 +625,20 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public EndpointResponseBody withPolicyDocument(Object policyDocument) { + public EndpointResponseBody withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java index 3203603f4a..1e9f9b962c 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/ListEndpointInfoDetailsResponse.java @@ -138,7 +138,7 @@ public class ListEndpointInfoDetailsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private Object policyDocument; + private String policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -657,7 +657,7 @@ public ListEndpointInfoDetailsResponse withPolicyStatement(Consumer getPolicyStatement() { @@ -668,20 +668,20 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public ListEndpointInfoDetailsResponse withPolicyDocument(Object policyDocument) { + public ListEndpointInfoDetailsResponse withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java index 1ba17fde69..5ab70e3db1 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyRequestBody.java @@ -9,7 +9,7 @@ import java.util.function.Consumer; /** - * 更新网关型终端节点policy请求结构体 + * 更新终端节点policy请求结构体 */ public class UpdateEndpointPolicyRequestBody { @@ -21,7 +21,7 @@ public class UpdateEndpointPolicyRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private Object policyDocument; + private String policyDocument; public UpdateEndpointPolicyRequestBody withPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; @@ -45,7 +45,7 @@ public UpdateEndpointPolicyRequestBody withPolicyStatement(Consumer getPolicyStatement() { @@ -56,20 +56,20 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public UpdateEndpointPolicyRequestBody withPolicyDocument(Object policyDocument) { + public UpdateEndpointPolicyRequestBody withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java index 8099fa0df7..bf8e7756d8 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointPolicyResponse.java @@ -113,7 +113,7 @@ public class UpdateEndpointPolicyResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private Object policyDocument; + private String policyDocument; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "endpoint_pool_id") @@ -533,7 +533,7 @@ public UpdateEndpointPolicyResponse withPolicyStatement(Consumer getPolicyStatement() { @@ -544,20 +544,20 @@ public void setPolicyStatement(List policyStatement) { this.policyStatement = policyStatement; } - public UpdateEndpointPolicyResponse withPolicyDocument(Object policyDocument) { + public UpdateEndpointPolicyResponse withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } diff --git a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java index 50378d765c..611ee152c9 100644 --- a/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java +++ b/services/vpcep/src/main/java/com/huaweicloud/sdk/vpcep/v1/model/UpdateEndpointWhiteResponse.java @@ -105,10 +105,15 @@ public class UpdateEndpointWhiteResponse extends SdkResponse { private Boolean enableWhitelist; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy_statement") + + private List policyStatement = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "policy_document") - private Object policyDocument; + private String policyDocument; public UpdateEndpointWhiteResponse withId(String id) { this.id = id; @@ -480,20 +485,53 @@ public void setEnableWhitelist(Boolean enableWhitelist) { this.enableWhitelist = enableWhitelist; } - public UpdateEndpointWhiteResponse withPolicyDocument(Object policyDocument) { + public UpdateEndpointWhiteResponse withPolicyStatement(List policyStatement) { + this.policyStatement = policyStatement; + return this; + } + + public UpdateEndpointWhiteResponse addPolicyStatementItem(PolicyStatement policyStatementItem) { + if (this.policyStatement == null) { + this.policyStatement = new ArrayList<>(); + } + this.policyStatement.add(policyStatementItem); + return this; + } + + public UpdateEndpointWhiteResponse withPolicyStatement(Consumer> policyStatementSetter) { + if (this.policyStatement == null) { + this.policyStatement = new ArrayList<>(); + } + policyStatementSetter.accept(this.policyStatement); + return this; + } + + /** + * Gateway类型终端节点策略信息,仅限OBS、SFS的终端节点服务的enable_policy值为true时支持该参数。 + * @return policyStatement + */ + public List getPolicyStatement() { + return policyStatement; + } + + public void setPolicyStatement(List policyStatement) { + this.policyStatement = policyStatement; + } + + public UpdateEndpointWhiteResponse withPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; return this; } /** - * iam 5.0 策略 + * 终端节点策略信息,仅当终端节点服务的enable_policy值为true时支持该参数,默认值为完全访问权限。(OBS、SFS的终端节点服务暂不支持该参数) * @return policyDocument */ - public Object getPolicyDocument() { + public String getPolicyDocument() { return policyDocument; } - public void setPolicyDocument(Object policyDocument) { + public void setPolicyDocument(String policyDocument) { this.policyDocument = policyDocument; } @@ -518,6 +556,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.tags, that.tags) && Objects.equals(this.whitelist, that.whitelist) && Objects.equals(this.enableWhitelist, that.enableWhitelist) + && Objects.equals(this.policyStatement, that.policyStatement) && Objects.equals(this.policyDocument, that.policyDocument); } @@ -541,6 +580,7 @@ public int hashCode() { tags, whitelist, enableWhitelist, + policyStatement, policyDocument); } @@ -566,6 +606,7 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" whitelist: ").append(toIndentedString(whitelist)).append("\n"); sb.append(" enableWhitelist: ").append(toIndentedString(enableWhitelist)).append("\n"); + sb.append(" policyStatement: ").append(toIndentedString(policyStatement)).append("\n"); sb.append(" policyDocument: ").append(toIndentedString(policyDocument)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index d92b54dfcf..1ce5e86d53 100644 --- a/services/vpn/pom.xml +++ b/services/vpn/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.108 + 3.1.109 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index ed0d988a61..1c12c12c0d 100644 --- a/services/waf/pom.xml +++ b/services/waf/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.108 + 3.1.109 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostRequestBody.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostRequestBody.java index e35da5a48c..cdfc3bbfef 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostRequestBody.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePremiumHostRequestBody.java @@ -55,6 +55,26 @@ public class CreatePremiumHostRequestBody { private Map forwardHeaderMap = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mode") + + private String mode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "loadbalancer_id") + + private String loadbalancerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "listener_id") + + private String listenerId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "protocol_port") + + private Integer protocolPort; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "description") @@ -237,6 +257,74 @@ public void setForwardHeaderMap(Map forwardHeaderMap) { this.forwardHeaderMap = forwardHeaderMap; } + public CreatePremiumHostRequestBody withMode(String mode) { + this.mode = mode; + return this; + } + + /** + * 添加云模式elb接入域名时,请输入elb-shared,否则不输入 + * @return mode + */ + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public CreatePremiumHostRequestBody withLoadbalancerId(String loadbalancerId) { + this.loadbalancerId = loadbalancerId; + return this; + } + + /** + * 负载均衡器(ELB)id,可以在ELB侧查询其id,添加云模式elb接入域名时,此为必须输入的值 + * @return loadbalancerId + */ + public String getLoadbalancerId() { + return loadbalancerId; + } + + public void setLoadbalancerId(String loadbalancerId) { + this.loadbalancerId = loadbalancerId; + } + + public CreatePremiumHostRequestBody withListenerId(String listenerId) { + this.listenerId = listenerId; + return this; + } + + /** + * 监听器id,可在ELB侧监听器页签下查询其id;不输入时,负载均衡器(ELB)下的所有监听器都将接入WAF防护,包括该ELB下未来新增的符合条件的监听器,添加云模式elb接入域名时,可考虑输入此项id + * @return listenerId + */ + public String getListenerId() { + return listenerId; + } + + public void setListenerId(String listenerId) { + this.listenerId = listenerId; + } + + public CreatePremiumHostRequestBody withProtocolPort(Integer protocolPort) { + this.protocolPort = protocolPort; + return this; + } + + /** + * 业务端口,添加云模式elb接入域名时,此为必须输入的值(0 - 65535) + * @return protocolPort + */ + public Integer getProtocolPort() { + return protocolPort; + } + + public void setProtocolPort(Integer protocolPort) { + this.protocolPort = protocolPort; + } + public CreatePremiumHostRequestBody withDescription(String description) { this.description = description; return this; @@ -268,7 +356,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.hostname, that.hostname) && Objects.equals(this.proxy, that.proxy) && Objects.equals(this.policyid, that.policyid) && Objects.equals(this.server, that.server) && Objects.equals(this.blockPage, that.blockPage) - && Objects.equals(this.forwardHeaderMap, that.forwardHeaderMap) + && Objects.equals(this.forwardHeaderMap, that.forwardHeaderMap) && Objects.equals(this.mode, that.mode) + && Objects.equals(this.loadbalancerId, that.loadbalancerId) + && Objects.equals(this.listenerId, that.listenerId) && Objects.equals(this.protocolPort, that.protocolPort) && Objects.equals(this.description, that.description); } @@ -282,6 +372,10 @@ public int hashCode() { server, blockPage, forwardHeaderMap, + mode, + loadbalancerId, + listenerId, + protocolPort, description); } @@ -297,6 +391,10 @@ public String toString() { sb.append(" server: ").append(toIndentedString(server)).append("\n"); sb.append(" blockPage: ").append(toIndentedString(blockPage)).append("\n"); sb.append(" forwardHeaderMap: ").append(toIndentedString(forwardHeaderMap)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" loadbalancerId: ").append(toIndentedString(loadbalancerId)).append("\n"); + sb.append(" listenerId: ").append(toIndentedString(listenerId)).append("\n"); + sb.append(" protocolPort: ").append(toIndentedString(protocolPort)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/workspace/pom.xml b/services/workspace/pom.xml index 57dca3547f..ad5f2a6a0c 100644 --- a/services/workspace/pom.xml +++ b/services/workspace/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.108 + 3.1.109 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index c02654c7b5..27fa67b2b7 100644 --- a/services/workspaceapp/pom.xml +++ b/services/workspaceapp/pom.xml @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.huaweicloud.sdk - 3.1.108 + 3.1.109 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.108 + 3.1.109 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.108 + 3.1.109 diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppAsyncClient.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppAsyncClient.java index 38d526d148..92ca6ac996 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppAsyncClient.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppAsyncClient.java @@ -5,12 +5,20 @@ import com.huaweicloud.sdk.core.invoker.AsyncInvoker; import com.huaweicloud.sdk.workspaceapp.v1.model.AddAppGroupAuthorizationRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.AddAppGroupAuthorizationResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.AttachImageServerAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.AttachImageServerAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.AuthorizeObsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.AuthorizeObsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupAuthorizationRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupAuthorizationResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteServerResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchMigrateHostsServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchMigrateHostsServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchRebootServerRequest; @@ -31,6 +39,8 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppServersRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppServersResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateOrUpdateStoragePolicyStatementRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateOrUpdateStoragePolicyStatementResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreatePersistentStorageRequest; @@ -43,6 +53,8 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.CreateServerGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateShareFolderRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateShareFolderResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePersistentStorageRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePersistentStorageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePolicyGroupRequest; @@ -63,6 +75,10 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListAppGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListAvailabilityZoneRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListAvailabilityZoneResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListImageServersRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListImageServersResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListLatestAttachedServerAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListLatestAttachedServerAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPersistentStorageRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPersistentStorageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPolicyGroupRequest; @@ -75,12 +91,16 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListPublishedAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerGroupsRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerGroupsResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerMetricDataRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerMetricDataResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServersRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServersResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionByUserNameRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionByUserNameResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionTypeRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionTypeResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListShareFolderRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListShareFolderResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListStorageAssignmentRequest; @@ -93,12 +113,18 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListUserConnectionResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListVolumeTypeRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListVolumeTypeResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListWarehouseAppsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListWarehouseAppsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.LogoffUserSessionRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.LogoffUserSessionResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.PublishAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.PublishAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.RecreateServerImageRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.RecreateServerImageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ReinstallServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ReinstallServerResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowImageJobRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowImageJobResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobDetailRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobDetailResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobRequest; @@ -107,12 +133,16 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ShowOriginalPolicyInfoResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowPublishableAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowPublishableAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowServerVncRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowServerVncResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UnpublishAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UnpublishAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyTemplateRequest; @@ -125,8 +155,12 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateShareFolderAssignmentResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateUserFolderAssignmentRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateUserFolderAssignmentResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UploadAppIconRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UploadAppIconResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UploadWarehouseAppIconRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UploadWarehouseAppIconResponse; import java.util.concurrent.CompletableFuture; @@ -143,6 +177,182 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 获取上传至OBS桶的临时ak/sk + * + * 获取上传至OBS桶的临时ak/sk。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AuthorizeObsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture authorizeObsAsync(AuthorizeObsRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.authorizeObs); + } + + /** + * 获取上传至OBS桶的临时ak/sk + * + * 获取上传至OBS桶的临时ak/sk。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AuthorizeObsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker authorizeObsAsyncInvoker( + AuthorizeObsRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.authorizeObs, hcClient); + } + + /** + * 批量删除应用仓库中的指定应用 + * + * 批量删除应用仓库中的指定应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteWarehouseAppRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteWarehouseAppAsync( + BatchDeleteWarehouseAppRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.batchDeleteWarehouseApp); + } + + /** + * 批量删除应用仓库中的指定应用 + * + * 批量删除应用仓库中的指定应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteWarehouseAppRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteWarehouseAppAsyncInvoker( + BatchDeleteWarehouseAppRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.batchDeleteWarehouseApp, hcClient); + } + + /** + * 在应用仓库中新增应用 + * + * 在应用仓库中新增应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWarehouseAppRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createWarehouseAppAsync(CreateWarehouseAppRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.createWarehouseApp); + } + + /** + * 在应用仓库中新增应用 + * + * 在应用仓库中新增应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWarehouseAppRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createWarehouseAppAsyncInvoker( + CreateWarehouseAppRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.createWarehouseApp, hcClient); + } + + /** + * 查询租户应用仓库中的应用列表 + * + * 查询租户应用仓库中的应用列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWarehouseAppsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listWarehouseAppsAsync(ListWarehouseAppsRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.listWarehouseApps); + } + + /** + * 查询租户应用仓库中的应用列表 + * + * 查询租户应用仓库中的应用列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWarehouseAppsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listWarehouseAppsAsyncInvoker( + ListWarehouseAppsRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.listWarehouseApps, hcClient); + } + + /** + * 修改应用仓库中的指定应用信息 + * + * 修改应用仓库中的指定应用信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWarehouseAppRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateWarehouseAppAsync(UpdateWarehouseAppRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.updateWarehouseApp); + } + + /** + * 修改应用仓库中的指定应用信息 + * + * 修改应用仓库中的指定应用信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWarehouseAppRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateWarehouseAppAsyncInvoker( + UpdateWarehouseAppRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.updateWarehouseApp, hcClient); + } + + /** + * 在应用仓库中上传图标文件 + * + * 在应用仓库中上传图标文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadWarehouseAppIconRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture uploadWarehouseAppIconAsync( + UploadWarehouseAppIconRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.uploadWarehouseAppIcon); + } + + /** + * 在应用仓库中上传图标文件 + * + * 在应用仓库中上传图标文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadWarehouseAppIconRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker uploadWarehouseAppIconAsyncInvoker( + UploadWarehouseAppIconRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.uploadWarehouseAppIcon, hcClient); + } + /** * 查询已发布应用 * @@ -612,6 +822,253 @@ public AsyncInvoker l return new AsyncInvoker<>(request, WorkspaceAppMeta.listAvailabilityZone, hcClient); } + /** + * 分发软件信息至镜像实例 + * + * 分发应用软件信息至镜像实例,管理员可以按需下载并安装应用软件。 + * * 目前只支持来自云应用仓库的软件信息。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例分发软件信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AttachImageServerAppRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture attachImageServerAppAsync( + AttachImageServerAppRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.attachImageServerApp); + } + + /** + * 分发软件信息至镜像实例 + * + * 分发应用软件信息至镜像实例,管理员可以按需下载并安装应用软件。 + * * 目前只支持来自云应用仓库的软件信息。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例分发软件信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AttachImageServerAppRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker attachImageServerAppAsyncInvoker( + AttachImageServerAppRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.attachImageServerApp, hcClient); + } + + /** + * 批量删除镜像实例 + * + * 批量删除镜像实例。 + * * 忽略不存在的镜像实例,响应正常。 + * * 不允许操作状态为 `创建中`、`镜像创建中`的实例,响应异常。 + * * 不支持资源关联发生变化后,请求删除镜像实例关联资源,任务响应异常。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteImageServerRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteImageServerAsync( + BatchDeleteImageServerRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.batchDeleteImageServer); + } + + /** + * 批量删除镜像实例 + * + * 批量删除镜像实例。 + * * 忽略不存在的镜像实例,响应正常。 + * * 不允许操作状态为 `创建中`、`镜像创建中`的实例,响应异常。 + * * 不支持资源关联发生变化后,请求删除镜像实例关联资源,任务响应异常。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteImageServerRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteImageServerAsyncInvoker( + BatchDeleteImageServerRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.batchDeleteImageServer, hcClient); + } + + /** + * 创建镜像实例 + * + * 创建镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateImageServerRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createImageServerAsync(CreateImageServerRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.createImageServer); + } + + /** + * 创建镜像实例 + * + * 创建镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateImageServerRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createImageServerAsyncInvoker( + CreateImageServerRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.createImageServer, hcClient); + } + + /** + * 查询镜像实例列表 + * + * 查询镜像实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageServersRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listImageServersAsync(ListImageServersRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.listImageServers); + } + + /** + * 查询镜像实例列表 + * + * 查询镜像实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageServersRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listImageServersAsyncInvoker( + ListImageServersRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.listImageServers, hcClient); + } + + /** + * 查询最近一次分发软件信息列表 + * + * 查询最近一次分发软件信息列表,返回ID列表,不包含具体信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListLatestAttachedServerAppRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listLatestAttachedServerAppAsync( + ListLatestAttachedServerAppRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.listLatestAttachedServerApp); + } + + /** + * 查询最近一次分发软件信息列表 + * + * 查询最近一次分发软件信息列表,返回ID列表,不包含具体信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListLatestAttachedServerAppRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listLatestAttachedServerAppAsyncInvoker( + ListLatestAttachedServerAppRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.listLatestAttachedServerApp, hcClient); + } + + /** + * 构建云应用镜像 + * + * 构建云应用镜像。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例构建云应用镜像。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RecreateServerImageRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture recreateServerImageAsync(RecreateServerImageRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.recreateServerImage); + } + + /** + * 构建云应用镜像 + * + * 构建云应用镜像。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例构建云应用镜像。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RecreateServerImageRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker recreateServerImageAsyncInvoker( + RecreateServerImageRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.recreateServerImage, hcClient); + } + + /** + * 修改镜像实例 + * + * 修改镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateImageServerRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateImageServerAsync(UpdateImageServerRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.updateImageServer); + } + + /** + * 修改镜像实例 + * + * 修改镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateImageServerRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateImageServerAsyncInvoker( + UpdateImageServerRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.updateImageServer, hcClient); + } + + /** + * 查询镜像任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建镜像实例任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowImageJobRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showImageJobAsync(ShowImageJobRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.showImageJob); + } + + /** + * 查询镜像任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建镜像实例任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowImageJobRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showImageJobAsyncInvoker( + ShowImageJobRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.showImageJob, hcClient); + } + /** * 查询任务的执行状态 * @@ -1625,6 +2082,36 @@ public AsyncInvoker createApp return new AsyncInvoker<>(request, WorkspaceAppMeta.createAppServers, hcClient); } + /** + * 查询指定时间范围指定指标的指定粒度的监控数据 + * + * 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListServerMetricDataRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listServerMetricDataAsync( + ListServerMetricDataRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.listServerMetricData); + } + + /** + * 查询指定时间范围指定指标的指定粒度的监控数据 + * + * 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListServerMetricDataRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listServerMetricDataAsyncInvoker( + ListServerMetricDataRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.listServerMetricData, hcClient); + } + /** * 查询服务器列表 * @@ -1684,6 +2171,35 @@ public AsyncInvoker reinstallSe return new AsyncInvoker<>(request, WorkspaceAppMeta.reinstallServer, hcClient); } + /** + * 获取VNC远程登录地址 + * + * 获取VNC远程登录地址。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowServerVncRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showServerVncAsync(ShowServerVncRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.showServerVnc); + } + + /** + * 获取VNC远程登录地址 + * + * 获取VNC远程登录地址。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowServerVncRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showServerVncAsyncInvoker( + ShowServerVncRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.showServerVnc, hcClient); + } + /** * 修改服务器 * @@ -1896,6 +2412,35 @@ public AsyncInvoker return new AsyncInvoker<>(request, WorkspaceAppMeta.listSessionByUserName, hcClient); } + /** + * 查询用户会话列表 + * + * 查询用户会话列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSessionsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listSessionsAsync(ListSessionsRequest request) { + return hcClient.asyncInvokeHttp(request, WorkspaceAppMeta.listSessions); + } + + /** + * 查询用户会话列表 + * + * 查询用户会话列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSessionsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listSessionsAsyncInvoker( + ListSessionsRequest request) { + return new AsyncInvoker<>(request, WorkspaceAppMeta.listSessions, hcClient); + } + /** * 查询用户登录记录 * diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppClient.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppClient.java index 81e12baa65..560ee40bee 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppClient.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppClient.java @@ -5,12 +5,20 @@ import com.huaweicloud.sdk.core.invoker.SyncInvoker; import com.huaweicloud.sdk.workspaceapp.v1.model.AddAppGroupAuthorizationRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.AddAppGroupAuthorizationResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.AttachImageServerAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.AttachImageServerAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.AuthorizeObsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.AuthorizeObsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupAuthorizationRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupAuthorizationResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteServerResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchMigrateHostsServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchMigrateHostsServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchRebootServerRequest; @@ -31,6 +39,8 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppServersRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppServersResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateOrUpdateStoragePolicyStatementRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateOrUpdateStoragePolicyStatementResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreatePersistentStorageRequest; @@ -43,6 +53,8 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.CreateServerGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateShareFolderRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateShareFolderResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePersistentStorageRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePersistentStorageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePolicyGroupRequest; @@ -63,6 +75,10 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListAppGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListAvailabilityZoneRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListAvailabilityZoneResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListImageServersRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListImageServersResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListLatestAttachedServerAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListLatestAttachedServerAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPersistentStorageRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPersistentStorageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPolicyGroupRequest; @@ -75,12 +91,16 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListPublishedAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerGroupsRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerGroupsResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerMetricDataRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerMetricDataResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServersRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServersResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionByUserNameRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionByUserNameResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionTypeRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionTypeResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListShareFolderRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListShareFolderResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListStorageAssignmentRequest; @@ -93,12 +113,18 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListUserConnectionResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListVolumeTypeRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListVolumeTypeResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListWarehouseAppsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListWarehouseAppsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.LogoffUserSessionRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.LogoffUserSessionResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.PublishAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.PublishAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.RecreateServerImageRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.RecreateServerImageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ReinstallServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ReinstallServerResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowImageJobRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowImageJobResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobDetailRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobDetailResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobRequest; @@ -107,12 +133,16 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ShowOriginalPolicyInfoResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowPublishableAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowPublishableAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowServerVncRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowServerVncResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UnpublishAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UnpublishAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyTemplateRequest; @@ -125,8 +155,12 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateShareFolderAssignmentResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateUserFolderAssignmentRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateUserFolderAssignmentResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UploadAppIconRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UploadAppIconResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UploadWarehouseAppIconRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UploadWarehouseAppIconResponse; public class WorkspaceAppClient { @@ -141,6 +175,179 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 获取上传至OBS桶的临时ak/sk + * + * 获取上传至OBS桶的临时ak/sk。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AuthorizeObsRequest 请求对象 + * @return AuthorizeObsResponse + */ + public AuthorizeObsResponse authorizeObs(AuthorizeObsRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.authorizeObs); + } + + /** + * 获取上传至OBS桶的临时ak/sk + * + * 获取上传至OBS桶的临时ak/sk。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AuthorizeObsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker authorizeObsInvoker(AuthorizeObsRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.authorizeObs, hcClient); + } + + /** + * 批量删除应用仓库中的指定应用 + * + * 批量删除应用仓库中的指定应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteWarehouseAppRequest 请求对象 + * @return BatchDeleteWarehouseAppResponse + */ + public BatchDeleteWarehouseAppResponse batchDeleteWarehouseApp(BatchDeleteWarehouseAppRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.batchDeleteWarehouseApp); + } + + /** + * 批量删除应用仓库中的指定应用 + * + * 批量删除应用仓库中的指定应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteWarehouseAppRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteWarehouseAppInvoker( + BatchDeleteWarehouseAppRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.batchDeleteWarehouseApp, hcClient); + } + + /** + * 在应用仓库中新增应用 + * + * 在应用仓库中新增应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWarehouseAppRequest 请求对象 + * @return CreateWarehouseAppResponse + */ + public CreateWarehouseAppResponse createWarehouseApp(CreateWarehouseAppRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.createWarehouseApp); + } + + /** + * 在应用仓库中新增应用 + * + * 在应用仓库中新增应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateWarehouseAppRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createWarehouseAppInvoker( + CreateWarehouseAppRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.createWarehouseApp, hcClient); + } + + /** + * 查询租户应用仓库中的应用列表 + * + * 查询租户应用仓库中的应用列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWarehouseAppsRequest 请求对象 + * @return ListWarehouseAppsResponse + */ + public ListWarehouseAppsResponse listWarehouseApps(ListWarehouseAppsRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.listWarehouseApps); + } + + /** + * 查询租户应用仓库中的应用列表 + * + * 查询租户应用仓库中的应用列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListWarehouseAppsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listWarehouseAppsInvoker( + ListWarehouseAppsRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.listWarehouseApps, hcClient); + } + + /** + * 修改应用仓库中的指定应用信息 + * + * 修改应用仓库中的指定应用信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWarehouseAppRequest 请求对象 + * @return UpdateWarehouseAppResponse + */ + public UpdateWarehouseAppResponse updateWarehouseApp(UpdateWarehouseAppRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.updateWarehouseApp); + } + + /** + * 修改应用仓库中的指定应用信息 + * + * 修改应用仓库中的指定应用信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateWarehouseAppRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateWarehouseAppInvoker( + UpdateWarehouseAppRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.updateWarehouseApp, hcClient); + } + + /** + * 在应用仓库中上传图标文件 + * + * 在应用仓库中上传图标文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadWarehouseAppIconRequest 请求对象 + * @return UploadWarehouseAppIconResponse + */ + public UploadWarehouseAppIconResponse uploadWarehouseAppIcon(UploadWarehouseAppIconRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.uploadWarehouseAppIcon); + } + + /** + * 在应用仓库中上传图标文件 + * + * 在应用仓库中上传图标文件。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UploadWarehouseAppIconRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker uploadWarehouseAppIconInvoker( + UploadWarehouseAppIconRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.uploadWarehouseAppIcon, hcClient); + } + /** * 查询已发布应用 * @@ -604,6 +811,249 @@ public SyncInvoker li return new SyncInvoker<>(request, WorkspaceAppMeta.listAvailabilityZone, hcClient); } + /** + * 分发软件信息至镜像实例 + * + * 分发应用软件信息至镜像实例,管理员可以按需下载并安装应用软件。 + * * 目前只支持来自云应用仓库的软件信息。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例分发软件信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AttachImageServerAppRequest 请求对象 + * @return AttachImageServerAppResponse + */ + public AttachImageServerAppResponse attachImageServerApp(AttachImageServerAppRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.attachImageServerApp); + } + + /** + * 分发软件信息至镜像实例 + * + * 分发应用软件信息至镜像实例,管理员可以按需下载并安装应用软件。 + * * 目前只支持来自云应用仓库的软件信息。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例分发软件信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AttachImageServerAppRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker attachImageServerAppInvoker( + AttachImageServerAppRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.attachImageServerApp, hcClient); + } + + /** + * 批量删除镜像实例 + * + * 批量删除镜像实例。 + * * 忽略不存在的镜像实例,响应正常。 + * * 不允许操作状态为 `创建中`、`镜像创建中`的实例,响应异常。 + * * 不支持资源关联发生变化后,请求删除镜像实例关联资源,任务响应异常。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteImageServerRequest 请求对象 + * @return BatchDeleteImageServerResponse + */ + public BatchDeleteImageServerResponse batchDeleteImageServer(BatchDeleteImageServerRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.batchDeleteImageServer); + } + + /** + * 批量删除镜像实例 + * + * 批量删除镜像实例。 + * * 忽略不存在的镜像实例,响应正常。 + * * 不允许操作状态为 `创建中`、`镜像创建中`的实例,响应异常。 + * * 不支持资源关联发生变化后,请求删除镜像实例关联资源,任务响应异常。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteImageServerRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteImageServerInvoker( + BatchDeleteImageServerRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.batchDeleteImageServer, hcClient); + } + + /** + * 创建镜像实例 + * + * 创建镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateImageServerRequest 请求对象 + * @return CreateImageServerResponse + */ + public CreateImageServerResponse createImageServer(CreateImageServerRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.createImageServer); + } + + /** + * 创建镜像实例 + * + * 创建镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateImageServerRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createImageServerInvoker( + CreateImageServerRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.createImageServer, hcClient); + } + + /** + * 查询镜像实例列表 + * + * 查询镜像实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageServersRequest 请求对象 + * @return ListImageServersResponse + */ + public ListImageServersResponse listImageServers(ListImageServersRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.listImageServers); + } + + /** + * 查询镜像实例列表 + * + * 查询镜像实例列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageServersRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listImageServersInvoker( + ListImageServersRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.listImageServers, hcClient); + } + + /** + * 查询最近一次分发软件信息列表 + * + * 查询最近一次分发软件信息列表,返回ID列表,不包含具体信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListLatestAttachedServerAppRequest 请求对象 + * @return ListLatestAttachedServerAppResponse + */ + public ListLatestAttachedServerAppResponse listLatestAttachedServerApp(ListLatestAttachedServerAppRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.listLatestAttachedServerApp); + } + + /** + * 查询最近一次分发软件信息列表 + * + * 查询最近一次分发软件信息列表,返回ID列表,不包含具体信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListLatestAttachedServerAppRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listLatestAttachedServerAppInvoker( + ListLatestAttachedServerAppRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.listLatestAttachedServerApp, hcClient); + } + + /** + * 构建云应用镜像 + * + * 构建云应用镜像。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例构建云应用镜像。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RecreateServerImageRequest 请求对象 + * @return RecreateServerImageResponse + */ + public RecreateServerImageResponse recreateServerImage(RecreateServerImageRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.recreateServerImage); + } + + /** + * 构建云应用镜像 + * + * 构建云应用镜像。 + * * 只允许对状态为 `实例正常运行`、`镜像任务结束` 的实例构建云应用镜像。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request RecreateServerImageRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker recreateServerImageInvoker( + RecreateServerImageRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.recreateServerImage, hcClient); + } + + /** + * 修改镜像实例 + * + * 修改镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateImageServerRequest 请求对象 + * @return UpdateImageServerResponse + */ + public UpdateImageServerResponse updateImageServer(UpdateImageServerRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.updateImageServer); + } + + /** + * 修改镜像实例 + * + * 修改镜像实例。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateImageServerRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateImageServerInvoker( + UpdateImageServerRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.updateImageServer, hcClient); + } + + /** + * 查询镜像任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建镜像实例任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowImageJobRequest 请求对象 + * @return ShowImageJobResponse + */ + public ShowImageJobResponse showImageJob(ShowImageJobRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.showImageJob); + } + + /** + * 查询镜像任务详情 + * + * 该接口用于查询异步任务的执行情况,比如查询创建镜像实例任务的执行状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowImageJobRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showImageJobInvoker(ShowImageJobRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.showImageJob, hcClient); + } + /** * 查询任务的执行状态 * @@ -1602,6 +2052,35 @@ public SyncInvoker createAppS return new SyncInvoker<>(request, WorkspaceAppMeta.createAppServers, hcClient); } + /** + * 查询指定时间范围指定指标的指定粒度的监控数据 + * + * 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListServerMetricDataRequest 请求对象 + * @return ListServerMetricDataResponse + */ + public ListServerMetricDataResponse listServerMetricData(ListServerMetricDataRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.listServerMetricData); + } + + /** + * 查询指定时间范围指定指标的指定粒度的监控数据 + * + * 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListServerMetricDataRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listServerMetricDataInvoker( + ListServerMetricDataRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.listServerMetricData, hcClient); + } + /** * 查询服务器列表 * @@ -1661,6 +2140,34 @@ public SyncInvoker reinstallSer return new SyncInvoker<>(request, WorkspaceAppMeta.reinstallServer, hcClient); } + /** + * 获取VNC远程登录地址 + * + * 获取VNC远程登录地址。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowServerVncRequest 请求对象 + * @return ShowServerVncResponse + */ + public ShowServerVncResponse showServerVnc(ShowServerVncRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.showServerVnc); + } + + /** + * 获取VNC远程登录地址 + * + * 获取VNC远程登录地址。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowServerVncRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showServerVncInvoker(ShowServerVncRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.showServerVnc, hcClient); + } + /** * 修改服务器 * @@ -1871,6 +2378,34 @@ public SyncInvoker return new SyncInvoker<>(request, WorkspaceAppMeta.listSessionByUserName, hcClient); } + /** + * 查询用户会话列表 + * + * 查询用户会话列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSessionsRequest 请求对象 + * @return ListSessionsResponse + */ + public ListSessionsResponse listSessions(ListSessionsRequest request) { + return hcClient.syncInvokeHttp(request, WorkspaceAppMeta.listSessions); + } + + /** + * 查询用户会话列表 + * + * 查询用户会话列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListSessionsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listSessionsInvoker(ListSessionsRequest request) { + return new SyncInvoker<>(request, WorkspaceAppMeta.listSessions, hcClient); + } + /** * 查询用户登录记录 * diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppMeta.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppMeta.java index 4f34a581e4..131c39bd0c 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppMeta.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/WorkspaceAppMeta.java @@ -10,13 +10,25 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.AppGroupAuthorizeReq; import com.huaweicloud.sdk.workspaceapp.v1.model.AssignShareFolderReq; import com.huaweicloud.sdk.workspaceapp.v1.model.AssignUserFolderReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.AttachImageServerAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.AttachImageServerAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.AttachServerAppReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.AuthorizeObsReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.AuthorizeObsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.AuthorizeObsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupAuthorizationRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupAuthorizationResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteAppGroupResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteImageServerReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteServerReq; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteServerResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteWarehouseAppReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.BatchDeleteWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchMigrateHostsServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchMigrateHostsServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.BatchMigrateServerReq; @@ -43,6 +55,9 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppServerReq; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppServersRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateAppServersResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateImageServerReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateOrUpdateStoragePolicyStatementReq; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateOrUpdateStoragePolicyStatementRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateOrUpdateStoragePolicyStatementResponse; @@ -58,9 +73,13 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.CreateServerGroupReq; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateServerGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateServerGroupResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateServerImageReq; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateShareFolderReq; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateShareFolderRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.CreateShareFolderResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateWarehouseAppReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.CreateWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.DeleteAppGroupReq; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePersistentStorageRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.DeletePersistentStorageResponse; @@ -85,6 +104,10 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListAppGroupResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListAvailabilityZoneRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListAvailabilityZoneResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListImageServersRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListImageServersResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListLatestAttachedServerAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListLatestAttachedServerAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPersistentStorageRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPersistentStorageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListPolicyGroupRequest; @@ -97,12 +120,16 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListPublishedAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerGroupsRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerGroupsResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerMetricDataRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListServerMetricDataResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServersRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListServersResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionByUserNameRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionByUserNameResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionTypeRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionTypeResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListSessionsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListShareFolderRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListShareFolderResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListStorageAssignmentRequest; @@ -116,16 +143,22 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ListUserConnectionResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ListVolumeTypeRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ListVolumeTypeResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListWarehouseAppsRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ListWarehouseAppsResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.LogoffUserSessionReq; import com.huaweicloud.sdk.workspaceapp.v1.model.LogoffUserSessionRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.LogoffUserSessionResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.PublishAppReq; import com.huaweicloud.sdk.workspaceapp.v1.model.PublishAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.PublishAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.RecreateServerImageRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.RecreateServerImageResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ReinstallServerReq; import com.huaweicloud.sdk.workspaceapp.v1.model.ReinstallServerRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ReinstallServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ServerHaltReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowImageJobRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowImageJobResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobDetailRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobDetailResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowJobRequest; @@ -134,6 +167,8 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.ShowOriginalPolicyInfoResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowPublishableAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.ShowPublishableAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowServerVncRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.ShowServerVncResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UnpublishAppReq; import com.huaweicloud.sdk.workspaceapp.v1.model.UnpublishAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UnpublishAppResponse; @@ -143,6 +178,9 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppReq; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateAppResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateImageServerReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateImageServerRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateImageServerResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyGroupReq; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyGroupRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdatePolicyGroupResponse; @@ -160,13 +198,187 @@ import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateTsviReq; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateUserFolderAssignmentRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateUserFolderAssignmentResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateWarehouseAppReq; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateWarehouseAppRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UpdateWarehouseAppResponse; import com.huaweicloud.sdk.workspaceapp.v1.model.UploadAppIconRequest; import com.huaweicloud.sdk.workspaceapp.v1.model.UploadAppIconRequestBody; import com.huaweicloud.sdk.workspaceapp.v1.model.UploadAppIconResponse; +import com.huaweicloud.sdk.workspaceapp.v1.model.UploadWarehouseAppIconRequest; +import com.huaweicloud.sdk.workspaceapp.v1.model.UploadWarehouseAppIconRequestBody; +import com.huaweicloud.sdk.workspaceapp.v1.model.UploadWarehouseAppIconResponse; @SuppressWarnings("unchecked") public class WorkspaceAppMeta { + public static final HttpRequestDef authorizeObs = genForAuthorizeObs(); + + private static HttpRequestDef genForAuthorizeObs() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, AuthorizeObsRequest.class, AuthorizeObsResponse.class) + .withName("AuthorizeObs") + .withUri("/v1/{project_id}/app-warehouse/action/authorize") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AuthorizeObsReq.class), + f -> f.withMarshaller(AuthorizeObsRequest::getBody, AuthorizeObsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchDeleteWarehouseApp = + genForBatchDeleteWarehouseApp(); + + private static HttpRequestDef genForBatchDeleteWarehouseApp() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, BatchDeleteWarehouseAppRequest.class, BatchDeleteWarehouseAppResponse.class) + .withName("BatchDeleteWarehouseApp") + .withUri("/v1/{project_id}/app-warehouse/actions/batch-delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchDeleteWarehouseAppReq.class), + f -> f.withMarshaller(BatchDeleteWarehouseAppRequest::getBody, BatchDeleteWarehouseAppRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createWarehouseApp = + genForCreateWarehouseApp(); + + private static HttpRequestDef genForCreateWarehouseApp() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateWarehouseAppRequest.class, CreateWarehouseAppResponse.class) + .withName("CreateWarehouseApp") + .withUri("/v1/{project_id}/app-warehouse/apps") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateWarehouseAppReq.class), + f -> f.withMarshaller(CreateWarehouseAppRequest::getBody, CreateWarehouseAppRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listWarehouseApps = + genForListWarehouseApps(); + + private static HttpRequestDef genForListWarehouseApps() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListWarehouseAppsRequest.class, ListWarehouseAppsResponse.class) + .withName("ListWarehouseApps") + .withUri("/v1/{project_id}/app-warehouse/apps") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListWarehouseAppsRequest::getLimit, ListWarehouseAppsRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListWarehouseAppsRequest::getOffset, ListWarehouseAppsRequest::setOffset)); + builder.withRequestField("verify_status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWarehouseAppsRequest::getVerifyStatus, + ListWarehouseAppsRequest::setVerifyStatus)); + builder.withRequestField("app_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWarehouseAppsRequest::getAppId, ListWarehouseAppsRequest::setAppId)); + builder.withRequestField("app_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWarehouseAppsRequest::getAppName, ListWarehouseAppsRequest::setAppName)); + builder.withRequestField("app_category", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListWarehouseAppsRequest::getAppCategory, ListWarehouseAppsRequest::setAppCategory)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updateWarehouseApp = + genForUpdateWarehouseApp(); + + private static HttpRequestDef genForUpdateWarehouseApp() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PATCH, UpdateWarehouseAppRequest.class, UpdateWarehouseAppResponse.class) + .withName("UpdateWarehouseApp") + .withUri("/v1/{project_id}/app-warehouse/apps/{id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateWarehouseAppRequest::getId, UpdateWarehouseAppRequest::setId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateWarehouseAppReq.class), + f -> f.withMarshaller(UpdateWarehouseAppRequest::getBody, UpdateWarehouseAppRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef uploadWarehouseAppIcon = + genForUploadWarehouseAppIcon(); + + private static HttpRequestDef genForUploadWarehouseAppIcon() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, UploadWarehouseAppIconRequest.class, UploadWarehouseAppIconResponse.class) + .withName("UploadWarehouseAppIcon") + .withUri("/v1/{project_id}/app-warehouse/apps/icon") + .withContentType("multipart/form-data"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(UploadWarehouseAppIconRequestBody.class), + f -> f.withMarshaller(UploadWarehouseAppIconRequest::getBody, UploadWarehouseAppIconRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listPublishedApp = genForListPublishedApp(); @@ -500,6 +712,11 @@ private static HttpRequestDef genForLis FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListProductRequest::getProductId, ListProductRequest::setProductId)); + builder.withRequestField("flavor_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListProductRequest::getFlavorId, ListProductRequest::setFlavorId)); builder.withRequestField("availability_zone", LocationType.Query, FieldExistence.NULL_IGNORE, @@ -681,6 +898,235 @@ private static HttpRequestDef attachImageServerApp = + genForAttachImageServerApp(); + + private static HttpRequestDef genForAttachImageServerApp() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, AttachImageServerAppRequest.class, AttachImageServerAppResponse.class) + .withName("AttachImageServerApp") + .withUri("/v1/{project_id}/image-servers/{server_id}/actions/attach-app") + .withContentType("application/json"); + + // requests + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AttachImageServerAppRequest::getServerId, AttachImageServerAppRequest::setServerId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AttachServerAppReq.class), + f -> f.withMarshaller(AttachImageServerAppRequest::getBody, AttachImageServerAppRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchDeleteImageServer = + genForBatchDeleteImageServer(); + + private static HttpRequestDef genForBatchDeleteImageServer() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PATCH, BatchDeleteImageServerRequest.class, BatchDeleteImageServerResponse.class) + .withName("BatchDeleteImageServer") + .withUri("/v1/{project_id}/image-servers/actions/batch-delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchDeleteImageServerReq.class), + f -> f.withMarshaller(BatchDeleteImageServerRequest::getBody, BatchDeleteImageServerRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createImageServer = + genForCreateImageServer(); + + private static HttpRequestDef genForCreateImageServer() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, CreateImageServerRequest.class, CreateImageServerResponse.class) + .withName("CreateImageServer") + .withUri("/v1/{project_id}/image-servers") + .withContentType("application/json"); + + // requests + builder.withRequestField("Service-Transaction-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CreateImageServerRequest::getServiceTransactionId, + CreateImageServerRequest::setServiceTransactionId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateImageServerReq.class), + f -> f.withMarshaller(CreateImageServerRequest::getBody, CreateImageServerRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listImageServers = + genForListImageServers(); + + private static HttpRequestDef genForListImageServers() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListImageServersRequest.class, ListImageServersResponse.class) + .withName("ListImageServers") + .withUri("/v1/{project_id}/image-servers") + .withContentType("application/json"); + + // requests + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListImageServersRequest::getOffset, ListImageServersRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListImageServersRequest::getLimit, ListImageServersRequest::setLimit)); + builder.withRequestField("server_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImageServersRequest::getServerName, ListImageServersRequest::setServerName)); + builder.withRequestField("server_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImageServersRequest::getServerId, ListImageServersRequest::setServerId)); + builder.withRequestField("enterprise_project_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImageServersRequest::getEnterpriseProjectId, + ListImageServersRequest::setEnterpriseProjectId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listLatestAttachedServerApp = + genForListLatestAttachedServerApp(); + + private static HttpRequestDef genForListLatestAttachedServerApp() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListLatestAttachedServerAppRequest.class, + ListLatestAttachedServerAppResponse.class) + .withName("ListLatestAttachedServerApp") + .withUri("/v1/{project_id}/image-servers/{server_id}/actions/latest-attached-app") + .withContentType("application/json"); + + // requests + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListLatestAttachedServerAppRequest::getServerId, + ListLatestAttachedServerAppRequest::setServerId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef recreateServerImage = + genForRecreateServerImage(); + + private static HttpRequestDef genForRecreateServerImage() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, RecreateServerImageRequest.class, RecreateServerImageResponse.class) + .withName("RecreateServerImage") + .withUri("/v1/{project_id}/image-servers/{server_id}/actions/recreate-image") + .withContentType("application/json"); + + // requests + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(RecreateServerImageRequest::getServerId, RecreateServerImageRequest::setServerId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateServerImageReq.class), + f -> f.withMarshaller(RecreateServerImageRequest::getBody, RecreateServerImageRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updateImageServer = + genForUpdateImageServer(); + + private static HttpRequestDef genForUpdateImageServer() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PATCH, UpdateImageServerRequest.class, UpdateImageServerResponse.class) + .withName("UpdateImageServer") + .withUri("/v1/{project_id}/image-servers/{server_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateImageServerRequest::getServerId, UpdateImageServerRequest::setServerId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateImageServerReq.class), + f -> f.withMarshaller(UpdateImageServerRequest::getBody, UpdateImageServerRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showImageJob = genForShowImageJob(); + + private static HttpRequestDef genForShowImageJob() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowImageJobRequest.class, ShowImageJobResponse.class) + .withName("ShowImageJob") + .withUri("/v1/{project_id}/image-server-jobs/{job_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("job_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowImageJobRequest::getJobId, ShowImageJobRequest::setJobId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showJob = genForShowJob(); private static HttpRequestDef genForShowJob() { @@ -1419,6 +1865,11 @@ private static HttpRequestDef genForCheck FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(CheckQuotaRequest::getProductId, CheckQuotaRequest::setProductId)); + builder.withRequestField("flavor_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(CheckQuotaRequest::getFlavorId, CheckQuotaRequest::setFlavorId)); builder.withRequestField("subscription_num", LocationType.Query, FieldExistence.NON_NULL_NON_EMPTY, @@ -1667,6 +2118,61 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef listServerMetricData = + genForListServerMetricData(); + + private static HttpRequestDef genForListServerMetricData() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListServerMetricDataRequest.class, ListServerMetricDataResponse.class) + .withName("ListServerMetricData") + .withUri("/v1/{project_id}/app-servers/server-metric-data/{server_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerMetricDataRequest::getServerId, ListServerMetricDataRequest::setServerId)); + builder.withRequestField("namespace", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerMetricDataRequest::getNamespace, + ListServerMetricDataRequest::setNamespace)); + builder.withRequestField("metric_name", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerMetricDataRequest::getMetricName, + ListServerMetricDataRequest::setMetricName)); + builder.withRequestField("from", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerMetricDataRequest::getFrom, ListServerMetricDataRequest::setFrom)); + builder.withRequestField("to", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerMetricDataRequest::getTo, ListServerMetricDataRequest::setTo)); + builder.withRequestField("period", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListServerMetricDataRequest::getPeriod, ListServerMetricDataRequest::setPeriod)); + builder.withRequestField("filter", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerMetricDataRequest::getFilter, ListServerMetricDataRequest::setFilter)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listServers = genForListServers(); private static HttpRequestDef genForListServers() { @@ -1747,6 +2253,29 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef showServerVnc = + genForShowServerVnc(); + + private static HttpRequestDef genForShowServerVnc() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowServerVncRequest.class, ShowServerVncResponse.class) + .withName("ShowServerVnc") + .withUri("/v1/{project_id}/app-servers/{server_id}/actions/vnc") + .withContentType("application/json"); + + // requests + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowServerVncRequest::getServerId, ShowServerVncRequest::setServerId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateServer = genForUpdateServer(); private static HttpRequestDef genForUpdateServer() { @@ -1860,6 +2389,23 @@ private static HttpRequestDef FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListServerGroupsRequest::getAppType, ListServerGroupsRequest::setAppType)); + builder.withRequestField("tags", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerGroupsRequest::getTags, ListServerGroupsRequest::setTags)); + builder.withRequestField("enterprise_project_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerGroupsRequest::getEnterpriseProjectId, + ListServerGroupsRequest::setEnterpriseProjectId)); + builder.withRequestField("is_secondary_server_group", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListServerGroupsRequest::getIsSecondaryServerGroup, + ListServerGroupsRequest::setIsSecondaryServerGroup)); // response @@ -1952,6 +2498,73 @@ private static HttpRequestDef listSessions = genForListSessions(); + + private static HttpRequestDef genForListSessions() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListSessionsRequest.class, ListSessionsResponse.class) + .withName("ListSessions") + .withUri("/v1/{project_id}/session/list-sessions") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSessionsRequest::getLimit, ListSessionsRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListSessionsRequest::getOffset, ListSessionsRequest::setOffset)); + builder.withRequestField("user_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getUserName, ListSessionsRequest::setUserName)); + builder.withRequestField("query_begin_time", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getQueryBeginTime, ListSessionsRequest::setQueryBeginTime)); + builder.withRequestField("query_end_time", + LocationType.Query, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getQueryEndTime, ListSessionsRequest::setQueryEndTime)); + builder.withRequestField("app_server_group_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getAppServerGroupId, ListSessionsRequest::setAppServerGroupId)); + builder.withRequestField("vm_ip", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getVmIp, ListSessionsRequest::setVmIp)); + builder.withRequestField("machine_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getMachineName, ListSessionsRequest::setMachineName)); + builder.withRequestField("session_state", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getSessionState, ListSessionsRequest::setSessionState)); + builder.withRequestField("is_success", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListSessionsRequest::getIsSuccess, ListSessionsRequest::setIsSuccess)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listUserConnection = genForListUserConnection(); diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppCategoryEnum.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppCategoryEnum.java new file mode 100644 index 0000000000..66af27c5c6 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppCategoryEnum.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * 应用分类: * `GAME` - 游戏 * `BUSSINESS_INTELLIGENCE` - 商业智能 * `SECURE_STORAGE` - 安全与存储 * `MULTIMEDIA_AND_CODING` - 多媒体与编解码 * `PROJECT_MANAGEMENT` - 项目管理 * `PRODUCTIVITY_AND_COLLABORATION` - 生产力与协作 * `WEB_ADN_APPLICATION` - 网页与应用开发 * `GRAPHIC_DESIGN` - 图形设计 * `OTHER` - 其它 + */ +public class AppCategoryEnum { + + /** + * Enum GAME for value: "GAME" + */ + public static final AppCategoryEnum GAME = new AppCategoryEnum("GAME"); + + /** + * Enum BUSSINESS_INTELLIGENCE for value: "BUSSINESS_INTELLIGENCE" + */ + public static final AppCategoryEnum BUSSINESS_INTELLIGENCE = new AppCategoryEnum("BUSSINESS_INTELLIGENCE"); + + /** + * Enum SECURE_STORAGE for value: "SECURE_STORAGE" + */ + public static final AppCategoryEnum SECURE_STORAGE = new AppCategoryEnum("SECURE_STORAGE"); + + /** + * Enum MULTIMEDIA_AND_CODING for value: "MULTIMEDIA_AND_CODING" + */ + public static final AppCategoryEnum MULTIMEDIA_AND_CODING = new AppCategoryEnum("MULTIMEDIA_AND_CODING"); + + /** + * Enum PROJECT_MANAGEMENT for value: "PROJECT_MANAGEMENT" + */ + public static final AppCategoryEnum PROJECT_MANAGEMENT = new AppCategoryEnum("PROJECT_MANAGEMENT"); + + /** + * Enum PRODUCTIVITY_AND_COLLABORATION for value: "PRODUCTIVITY_AND_COLLABORATION" + */ + public static final AppCategoryEnum PRODUCTIVITY_AND_COLLABORATION = + new AppCategoryEnum("PRODUCTIVITY_AND_COLLABORATION"); + + /** + * Enum WEB_ADN_APPLICATION for value: "WEB_ADN_APPLICATION" + */ + public static final AppCategoryEnum WEB_ADN_APPLICATION = new AppCategoryEnum("WEB_ADN_APPLICATION"); + + /** + * Enum GRAPHIC_DESIGN for value: "GRAPHIC_DESIGN" + */ + public static final AppCategoryEnum GRAPHIC_DESIGN = new AppCategoryEnum("GRAPHIC_DESIGN"); + + /** + * Enum OTHER for value: "OTHER" + */ + public static final AppCategoryEnum OTHER = new AppCategoryEnum("OTHER"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("GAME", GAME); + map.put("BUSSINESS_INTELLIGENCE", BUSSINESS_INTELLIGENCE); + map.put("SECURE_STORAGE", SECURE_STORAGE); + map.put("MULTIMEDIA_AND_CODING", MULTIMEDIA_AND_CODING); + map.put("PROJECT_MANAGEMENT", PROJECT_MANAGEMENT); + map.put("PRODUCTIVITY_AND_COLLABORATION", PRODUCTIVITY_AND_COLLABORATION); + map.put("WEB_ADN_APPLICATION", WEB_ADN_APPLICATION); + map.put("GRAPHIC_DESIGN", GRAPHIC_DESIGN); + map.put("OTHER", OTHER); + return Collections.unmodifiableMap(map); + } + + private String value; + + AppCategoryEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AppCategoryEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AppCategoryEnum(value)); + } + + public static AppCategoryEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof AppCategoryEnum) { + return this.value.equals(((AppCategoryEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServer.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServer.java index e84872c788..4df2da0981 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServer.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServer.java @@ -191,6 +191,16 @@ public class AppServer { private List hostAddress = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + public AppServer withId(String id) { this.id = id; return this; @@ -852,6 +862,56 @@ public void setHostAddress(List hostAddress) { this.hostAddress = hostAddress; } + public AppServer withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID,仅企业项目会返回 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public AppServer withTags(List tags) { + this.tags = tags; + return this; + } + + public AppServer addTagsItem(TmsTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public AppServer withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签信息 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -879,7 +939,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.productInfo, that.productInfo) && Objects.equals(this.metadata, that.metadata) && Objects.equals(this.sessionCount, that.sessionCount) && Objects.equals(this.vmStatus, that.vmStatus) && Objects.equals(this.taskStatus, that.taskStatus) && Objects.equals(this.freeze, that.freeze) - && Objects.equals(this.hostAddress, that.hostAddress); + && Objects.equals(this.hostAddress, that.hostAddress) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.tags, that.tags); } @Override @@ -918,7 +980,9 @@ public int hashCode() { vmStatus, taskStatus, freeze, - hostAddress); + hostAddress, + enterpriseProjectId, + tags); } @Override @@ -960,6 +1024,8 @@ public String toString() { sb.append(" taskStatus: ").append(toIndentedString(taskStatus)).append("\n"); sb.append(" freeze: ").append(toIndentedString(freeze)).append("\n"); sb.append(" hostAddress: ").append(toIndentedString(hostAddress)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerStatus.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerStatus.java index a022cb96e3..3790aed598 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerStatus.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerStatus.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 服务器的稳态,完成某个操作的稳定状态。 * `BUILD` - 创建APS实例,APS实例进入运行之前的状态 * `BUILD_FAIL` - 创建APS实例失败 * `REBOOT` - 实例正在进行重启操作 * `HARD_REBOOT` - 实例正在进行强制重启操作 * `REBUILD` - 实例正在重建中 * `REBUILD_FAIL` - 实例重建失败 * `MIGRATING` - 实例正在热迁移中 * `RESIZE` - 实例接收变更请求,开始进行变更操作 * `ACTIVE` - 实例正常运行状态 * `SHUTOFF` - 实例被正常停止 * `REVERT_RESIZE` - 实例正在回退变更规格的配置 * `VERIFY_RESIZE` - 实例正在校验变更完成后的配置。 * `ERROR` - 实例处于异常状态。 * `DELETING` - 实例删除中。 * `FREEZE` - 冻结 * `BUILD_IMAGE` - 生成镜像中 * `NULL` - 未设置 + * 服务器的稳态,完成某个操作的稳定状态。 * `BUILD` - 创建APS实例,APS实例进入运行之前的状态 * `BUILD_FAIL` - 创建APS实例失败 * `REBOOT` - 实例正在进行重启操作 * `HARD_REBOOT` - 实例正在进行强制重启操作 * `REBUILD` - 实例正在重建中 * `REBUILD_FAIL` - 实例重建失败 * `MIGRATING` - 实例正在热迁移中 * `RESIZE` - 实例接收变更请求,开始进行变更操作 * `ACTIVE` - 实例正常运行状态 * `SHUTOFF` - 实例被正常停止 * `REVERT_RESIZE` - 实例正在回退变更规格的配置 * `VERIFY_RESIZE` - 实例正在校验变更完成后的配置。 * `ERROR` - 实例处于异常状态。 * `DELETING` - 实例删除中。 * `FREEZE` - 冻结 * `BUILD_IMAGE` - 生成镜像中 * `BUILD_SNAPSHOT` - 生成快照中 * `RESTORE_SNAPSHOT` - 恢复快照中 * `NULL` - 未设置 */ public class AppServerStatus { @@ -92,6 +92,16 @@ public class AppServerStatus { */ public static final AppServerStatus BUILD_IMAGE = new AppServerStatus("BUILD_IMAGE"); + /** + * Enum BUILD_SNAPSHOT for value: "BUILD_SNAPSHOT" + */ + public static final AppServerStatus BUILD_SNAPSHOT = new AppServerStatus("BUILD_SNAPSHOT"); + + /** + * Enum RESTORE_SNAPSHOT for value: "RESTORE_SNAPSHOT" + */ + public static final AppServerStatus RESTORE_SNAPSHOT = new AppServerStatus("RESTORE_SNAPSHOT"); + /** * Enum NULL for value: "null" */ @@ -117,6 +127,8 @@ private static Map createStaticFields() { map.put("DELETING", DELETING); map.put("FREEZE", FREEZE); map.put("BUILD_IMAGE", BUILD_IMAGE); + map.put("BUILD_SNAPSHOT", BUILD_SNAPSHOT); + map.put("RESTORE_SNAPSHOT", RESTORE_SNAPSHOT); map.put("null", NULL); return Collections.unmodifiableMap(map); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerTaskStatus.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerTaskStatus.java index 33492093f8..5c014f1d21 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerTaskStatus.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AppServerTaskStatus.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * server的任务状态: * `scheduling` - 实例处于创建中,正在进行调度 * `block_device_mapping` - 实例处于创建中,正在准备磁盘 * `networking` - 实例处于创建中,正在准备网络 * `spawning` - 实例处于创建中,正在内部创建 * `rebooting` - 实例处于重启中 * `reboot_pending` - 实例处于重启中,正在下发重启。 * `reboot_started` - 实例处于重启中,开始内部重启 * `rebooting_hard` - 实例处于强制重启中 * `reboot_pending_hard` - 实例处于强制重启中,正在下发重启 * `reboot_started_hard` - 实例处于强制重启中,开始内部重启。 * `rebuilding` - 实例处于重建中。 * `rebuild_fail` - 实例重建失败。 * `updating_tsvi` - 实例处于虚拟会话IP更新中。 * `updating_tsvi_failed` - 实例虚拟会话IP更新失败。 * `rebuild_block_device_mapping` - 实例处于重建中,正在准备磁盘。 * `rebuild_spawning` - 实例处于重建中,正在内部重建。 * `migrating` - 实例处于热迁移中。 * `resize_prep` - 实例处于调整规格中,正在准备阶段。 * `resize_migrating` - 实例处于调整规格中,正在迁移阶段。 * `resize_migrated` - 实例处于调整规格中,已经完成迁移。 * `resize_finish` - 实例处于调整规格中,正在完成调整。 * `resize_reverting` - 实例处于调整规格中,正在回退调整。 * `powering-off` - 实例处于停止中。 * `powering-on` - 实例处于启动中。 * `deleting` - 实例处于删除中。 * `source_locking` - 资源锁定中 * `rejoining_domain` - 实例正在重新加域 * `delete_failed` - 实例删除失败 * `upgrading_access_agent` - 实例正在升级AccessAgent * `upgrad_access_agent_fail` - 实例升级AccessAgent失败 * `upgrad_access_agent_success` - 实例升级AccessAgent成功 * `updating_sid` - 实例处于创建中,等待更新SID * `migrate_failed` - 实例迁移失败 * `build_image` - 生成镜像中 * `null` - 未设置 + * server的任务状态: * `scheduling` - 实例处于创建中,正在进行调度 * `block_device_mapping` - 实例处于创建中,正在准备磁盘 * `networking` - 实例处于创建中,正在准备网络 * `spawning` - 实例处于创建中,正在内部创建 * `rebooting` - 实例处于重启中 * `reboot_pending` - 实例处于重启中,正在下发重启。 * `reboot_started` - 实例处于重启中,开始内部重启 * `rebooting_hard` - 实例处于强制重启中 * `reboot_pending_hard` - 实例处于强制重启中,正在下发重启 * `reboot_started_hard` - 实例处于强制重启中,开始内部重启。 * `rebuilding` - 实例处于重建中。 * `rebuild_fail` - 实例重建失败。 * `updating_tsvi` - 实例处于虚拟会话IP更新中。 * `updating_tsvi_failed` - 实例虚拟会话IP更新失败。 * `rebuild_block_device_mapping` - 实例处于重建中,正在准备磁盘。 * `rebuild_spawning` - 实例处于重建中,正在内部重建。 * `migrating` - 实例处于热迁移中。 * `resize_prep` - 实例处于调整规格中,正在准备阶段。 * `resize_migrating` - 实例处于调整规格中,正在迁移阶段。 * `resize_migrated` - 实例处于调整规格中,已经完成迁移。 * `resize_finish` - 实例处于调整规格中,正在完成调整。 * `resize_reverting` - 实例处于调整规格中,正在回退调整。 * `powering-off` - 实例处于停止中。 * `powering-on` - 实例处于启动中。 * `deleting` - 实例处于删除中。 * `source_locking` - 资源锁定中 * `rejoining_domain` - 实例正在重新加域 * `delete_failed` - 实例删除失败 * `upgrading_access_agent` - 实例正在升级AccessAgent * `upgrad_access_agent_fail` - 实例升级AccessAgent失败 * `upgrad_access_agent_success` - 实例升级AccessAgent成功 * `updating_sid` - 实例处于创建中,等待更新SID * `migrate_failed` - 实例迁移失败 * `build_image` - 生成镜像中 * `build_snapshot` - 生成快照中 * `restore_snapshot` - 恢复快照中 * `null` - 未设置 */ public class AppServerTaskStatus { @@ -180,6 +180,16 @@ public class AppServerTaskStatus { */ public static final AppServerTaskStatus BUILD_IMAGE = new AppServerTaskStatus("build_image"); + /** + * Enum BUILD_SNAPSHOT for value: "build_snapshot" + */ + public static final AppServerTaskStatus BUILD_SNAPSHOT = new AppServerTaskStatus("build_snapshot"); + + /** + * Enum RESTORE_SNAPSHOT for value: "restore_snapshot" + */ + public static final AppServerTaskStatus RESTORE_SNAPSHOT = new AppServerTaskStatus("restore_snapshot"); + /** * Enum NULL for value: "null" */ @@ -222,6 +232,8 @@ private static Map createStaticFields() { map.put("upgrad_access_agent_success", UPGRAD_ACCESS_AGENT_SUCCESS); map.put("migrate_failed", MIGRATE_FAILED); map.put("build_image", BUILD_IMAGE); + map.put("build_snapshot", BUILD_SNAPSHOT); + map.put("restore_snapshot", RESTORE_SNAPSHOT); map.put("null", NULL); return Collections.unmodifiableMap(map); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachImageServerAppRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachImageServerAppRequest.java new file mode 100644 index 0000000000..87c42fcf1f --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachImageServerAppRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class AttachImageServerAppRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AttachServerAppReq body; + + public AttachImageServerAppRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 镜像实例唯一标识。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public AttachImageServerAppRequest withBody(AttachServerAppReq body) { + this.body = body; + return this; + } + + public AttachImageServerAppRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AttachServerAppReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AttachServerAppReq getBody() { + return body; + } + + public void setBody(AttachServerAppReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AttachImageServerAppRequest that = (AttachImageServerAppRequest) obj; + return Objects.equals(this.serverId, that.serverId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serverId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachImageServerAppRequest {\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachImageServerAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachImageServerAppResponse.java new file mode 100644 index 0000000000..4037fea9fd --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachImageServerAppResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class AttachImageServerAppResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uri") + + private String uri; + + public AttachImageServerAppResponse withUri(String uri) { + this.uri = uri; + return this; + } + + /** + * 分发软件信息的URI。 + * @return uri + */ + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AttachImageServerAppResponse that = (AttachImageServerAppResponse) obj; + return Objects.equals(this.uri, that.uri); + } + + @Override + public int hashCode() { + return Objects.hash(uri); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachImageServerAppResponse {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachServerAppInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachServerAppInfo.java new file mode 100644 index 0000000000..fce5c84f69 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachServerAppInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 分发软件信息。 + */ +public class AttachServerAppInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + public AttachServerAppInfo withId(String id) { + this.id = id; + return this; + } + + /** + * 分发软件版本ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AttachServerAppInfo withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 分发软件ID。 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AttachServerAppInfo that = (AttachServerAppInfo) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.appId, that.appId); + } + + @Override + public int hashCode() { + return Objects.hash(id, appId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachServerAppInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachServerAppReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachServerAppReq.java new file mode 100644 index 0000000000..86524582c4 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AttachServerAppReq.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 分发软件信息至镜像实例的请求体。 + */ +public class AttachServerAppReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public AttachServerAppReq withItems(List items) { + this.items = items; + return this; + } + + public AttachServerAppReq addItemsItem(String itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public AttachServerAppReq withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 云应用仓库软件唯一标识请求列表。 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AttachServerAppReq that = (AttachServerAppReq) obj; + return Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachServerAppReq {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsReq.java new file mode 100644 index 0000000000..aa93678b25 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsReq.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 获取ak/sk时候传入的文件名称(带后缀)。 + */ +public class AuthorizeObsReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_file_name") + + private String appFileName; + + public AuthorizeObsReq withAppFileName(String appFileName) { + this.appFileName = appFileName; + return this; + } + + /** + * 应用名称,名称需满足如下规则: 1. 文件名前缀由可见字符和空格组成,且不能为全空格。 2. 长度范围1~255个字符。 3. 结尾必须是`.msi`或者`.exe`或者`.zip`或者`.rar`。 + * @return appFileName + */ + public String getAppFileName() { + return appFileName; + } + + public void setAppFileName(String appFileName) { + this.appFileName = appFileName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AuthorizeObsReq that = (AuthorizeObsReq) obj; + return Objects.equals(this.appFileName, that.appFileName); + } + + @Override + public int hashCode() { + return Objects.hash(appFileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthorizeObsReq {\n"); + sb.append(" appFileName: ").append(toIndentedString(appFileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsRequest.java new file mode 100644 index 0000000000..981fc27b5a --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class AuthorizeObsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AuthorizeObsReq body; + + public AuthorizeObsRequest withBody(AuthorizeObsReq body) { + this.body = body; + return this; + } + + public AuthorizeObsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AuthorizeObsReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AuthorizeObsReq getBody() { + return body; + } + + public void setBody(AuthorizeObsReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AuthorizeObsRequest that = (AuthorizeObsRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthorizeObsRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsResponse.java new file mode 100644 index 0000000000..f147c52c49 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/AuthorizeObsResponse.java @@ -0,0 +1,248 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class AuthorizeObsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_end_point") + + private String serverEndPoint; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bucket_name") + + private String bucketName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "directory") + + private String directory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ak") + + private String ak; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sk") + + private String sk; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expires_at") + + private String expiresAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "policy") + + private Policy policy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "security_token") + + private String securityToken; + + public AuthorizeObsResponse withServerEndPoint(String serverEndPoint) { + this.serverEndPoint = serverEndPoint; + return this; + } + + /** + * 访问的服务终端节点。 + * @return serverEndPoint + */ + public String getServerEndPoint() { + return serverEndPoint; + } + + public void setServerEndPoint(String serverEndPoint) { + this.serverEndPoint = serverEndPoint; + } + + public AuthorizeObsResponse withBucketName(String bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * 存放的桶名称。 + * @return bucketName + */ + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + public AuthorizeObsResponse withDirectory(String directory) { + this.directory = directory; + return this; + } + + /** + * 存放目录。 + * @return directory + */ + public String getDirectory() { + return directory; + } + + public void setDirectory(String directory) { + this.directory = directory; + } + + public AuthorizeObsResponse withAk(String ak) { + this.ak = ak; + return this; + } + + /** + * 获取的AK。。 + * @return ak + */ + public String getAk() { + return ak; + } + + public void setAk(String ak) { + this.ak = ak; + } + + public AuthorizeObsResponse withSk(String sk) { + this.sk = sk; + return this; + } + + /** + * 获取的SK。 + * @return sk + */ + public String getSk() { + return sk; + } + + public void setSk(String sk) { + this.sk = sk; + } + + public AuthorizeObsResponse withExpiresAt(String expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + /** + * AK/SK和securitytoken的过期时间。。 + * @return expiresAt + */ + public String getExpiresAt() { + return expiresAt; + } + + public void setExpiresAt(String expiresAt) { + this.expiresAt = expiresAt; + } + + public AuthorizeObsResponse withPolicy(Policy policy) { + this.policy = policy; + return this; + } + + public AuthorizeObsResponse withPolicy(Consumer policySetter) { + if (this.policy == null) { + this.policy = new Policy(); + policySetter.accept(this.policy); + } + + return this; + } + + /** + * Get policy + * @return policy + */ + public Policy getPolicy() { + return policy; + } + + public void setPolicy(Policy policy) { + this.policy = policy; + } + + public AuthorizeObsResponse withSecurityToken(String securityToken) { + this.securityToken = securityToken; + return this; + } + + /** + * 安全校验token,将所获的AK、SK等信息进行加密后的字符串。 + * @return securityToken + */ + public String getSecurityToken() { + return securityToken; + } + + public void setSecurityToken(String securityToken) { + this.securityToken = securityToken; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AuthorizeObsResponse that = (AuthorizeObsResponse) obj; + return Objects.equals(this.serverEndPoint, that.serverEndPoint) + && Objects.equals(this.bucketName, that.bucketName) && Objects.equals(this.directory, that.directory) + && Objects.equals(this.ak, that.ak) && Objects.equals(this.sk, that.sk) + && Objects.equals(this.expiresAt, that.expiresAt) && Objects.equals(this.policy, that.policy) + && Objects.equals(this.securityToken, that.securityToken); + } + + @Override + public int hashCode() { + return Objects.hash(serverEndPoint, bucketName, directory, ak, sk, expiresAt, policy, securityToken); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthorizeObsResponse {\n"); + sb.append(" serverEndPoint: ").append(toIndentedString(serverEndPoint)).append("\n"); + sb.append(" bucketName: ").append(toIndentedString(bucketName)).append("\n"); + sb.append(" directory: ").append(toIndentedString(directory)).append("\n"); + sb.append(" ak: ").append(toIndentedString(ak)).append("\n"); + sb.append(" sk: ").append(toIndentedString(sk)).append("\n"); + sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" securityToken: ").append(toIndentedString(securityToken)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BaseServerGroup.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BaseServerGroup.java index 939566307e..5ba75bfeaf 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BaseServerGroup.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BaseServerGroup.java @@ -4,7 +4,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; +import java.util.function.Consumer; /** * 服务器组。 @@ -91,6 +94,36 @@ public class BaseServerGroup { private StorageFolderMountType storageMountPolicy; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "primary_server_group_ids") + + private List primaryServerGroupIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secondary_server_group_ids") + + private List secondaryServerGroupIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_group_status") + + private Boolean serverGroupStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_type") + + private String siteType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_id") + + private String siteId; + public BaseServerGroup withId(String id) { this.id = id; return this; @@ -363,6 +396,140 @@ public void setStorageMountPolicy(StorageFolderMountType storageMountPolicy) { this.storageMountPolicy = storageMountPolicy; } + public BaseServerGroup withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID(0表示默认企业项目Id) + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public BaseServerGroup withPrimaryServerGroupIds(List primaryServerGroupIds) { + this.primaryServerGroupIds = primaryServerGroupIds; + return this; + } + + public BaseServerGroup addPrimaryServerGroupIdsItem(String primaryServerGroupIdsItem) { + if (this.primaryServerGroupIds == null) { + this.primaryServerGroupIds = new ArrayList<>(); + } + this.primaryServerGroupIds.add(primaryServerGroupIdsItem); + return this; + } + + public BaseServerGroup withPrimaryServerGroupIds(Consumer> primaryServerGroupIdsSetter) { + if (this.primaryServerGroupIds == null) { + this.primaryServerGroupIds = new ArrayList<>(); + } + primaryServerGroupIdsSetter.accept(this.primaryServerGroupIds); + return this; + } + + /** + * 主服务器组id列表。 + * @return primaryServerGroupIds + */ + public List getPrimaryServerGroupIds() { + return primaryServerGroupIds; + } + + public void setPrimaryServerGroupIds(List primaryServerGroupIds) { + this.primaryServerGroupIds = primaryServerGroupIds; + } + + public BaseServerGroup withSecondaryServerGroupIds(List secondaryServerGroupIds) { + this.secondaryServerGroupIds = secondaryServerGroupIds; + return this; + } + + public BaseServerGroup addSecondaryServerGroupIdsItem(String secondaryServerGroupIdsItem) { + if (this.secondaryServerGroupIds == null) { + this.secondaryServerGroupIds = new ArrayList<>(); + } + this.secondaryServerGroupIds.add(secondaryServerGroupIdsItem); + return this; + } + + public BaseServerGroup withSecondaryServerGroupIds(Consumer> secondaryServerGroupIdsSetter) { + if (this.secondaryServerGroupIds == null) { + this.secondaryServerGroupIds = new ArrayList<>(); + } + secondaryServerGroupIdsSetter.accept(this.secondaryServerGroupIds); + return this; + } + + /** + * 备服务器组id列表。 + * @return secondaryServerGroupIds + */ + public List getSecondaryServerGroupIds() { + return secondaryServerGroupIds; + } + + public void setSecondaryServerGroupIds(List secondaryServerGroupIds) { + this.secondaryServerGroupIds = secondaryServerGroupIds; + } + + public BaseServerGroup withServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + return this; + } + + /** + * 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + * @return serverGroupStatus + */ + public Boolean getServerGroupStatus() { + return serverGroupStatus; + } + + public void setServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + } + + public BaseServerGroup withSiteType(String siteType) { + this.siteType = siteType; + return this; + } + + /** + * 站点类型 - CENTER/IES + * @return siteType + */ + public String getSiteType() { + return siteType; + } + + public void setSiteType(String siteType) { + this.siteType = siteType; + } + + public BaseServerGroup withSiteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * 站点id + * @return siteId + */ + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -381,7 +548,12 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.extraSessionSize, that.extraSessionSize) && Objects.equals(this.appType, that.appType) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) - && Objects.equals(this.storageMountPolicy, that.storageMountPolicy); + && Objects.equals(this.storageMountPolicy, that.storageMountPolicy) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.primaryServerGroupIds, that.primaryServerGroupIds) + && Objects.equals(this.secondaryServerGroupIds, that.secondaryServerGroupIds) + && Objects.equals(this.serverGroupStatus, that.serverGroupStatus) + && Objects.equals(this.siteType, that.siteType) && Objects.equals(this.siteId, that.siteId); } @Override @@ -401,7 +573,13 @@ public int hashCode() { appType, createTime, updateTime, - storageMountPolicy); + storageMountPolicy, + enterpriseProjectId, + primaryServerGroupIds, + secondaryServerGroupIds, + serverGroupStatus, + siteType, + siteId); } @Override @@ -424,6 +602,12 @@ public String toString() { sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); sb.append(" storageMountPolicy: ").append(toIndentedString(storageMountPolicy)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" primaryServerGroupIds: ").append(toIndentedString(primaryServerGroupIds)).append("\n"); + sb.append(" secondaryServerGroupIds: ").append(toIndentedString(secondaryServerGroupIds)).append("\n"); + sb.append(" serverGroupStatus: ").append(toIndentedString(serverGroupStatus)).append("\n"); + sb.append(" siteType: ").append(toIndentedString(siteType)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerReq.java new file mode 100644 index 0000000000..acc10dfb8d --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerReq.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 批量删除镜像实例请求。 * 忽略不存在的镜像实例,响应正常。 * 不允许操作状态为 `创建中`、`镜像创建中`的实例,响应异常。 * 不支持资源关联发生变化后,请求删除镜像实例关联资源,任务响应异常。 + */ +public class BatchDeleteImageServerReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "recursive") + + private Boolean recursive; + + public BatchDeleteImageServerReq withItems(List items) { + this.items = items; + return this; + } + + public BatchDeleteImageServerReq addItemsItem(String itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public BatchDeleteImageServerReq withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 批量唯一标识请求列表,一次请求数量区间 [1, 20] + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + public BatchDeleteImageServerReq withRecursive(Boolean recursive) { + this.recursive = recursive; + return this; + } + + /** + * 是否同时删除镜像实例关联资源: **⚠ 警告: 关联资源删除,对应的应用将不可用** * `true` 同时删除关联资源,包括APS服务器组,APS服务器,应用组相关资源。镜像产物相关信息保留。 * `false` 只删除镜像实例记录,保留关联资源。 + * @return recursive + */ + public Boolean getRecursive() { + return recursive; + } + + public void setRecursive(Boolean recursive) { + this.recursive = recursive; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteImageServerReq that = (BatchDeleteImageServerReq) obj; + return Objects.equals(this.items, that.items) && Objects.equals(this.recursive, that.recursive); + } + + @Override + public int hashCode() { + return Objects.hash(items, recursive); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteImageServerReq {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" recursive: ").append(toIndentedString(recursive)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerRequest.java new file mode 100644 index 0000000000..7241aca559 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchDeleteImageServerRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchDeleteImageServerReq body; + + public BatchDeleteImageServerRequest withBody(BatchDeleteImageServerReq body) { + this.body = body; + return this; + } + + public BatchDeleteImageServerRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchDeleteImageServerReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchDeleteImageServerReq getBody() { + return body; + } + + public void setBody(BatchDeleteImageServerReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteImageServerRequest that = (BatchDeleteImageServerRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteImageServerRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerResponse.java new file mode 100644 index 0000000000..ef88c4d0b5 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteImageServerResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchDeleteImageServerResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public BatchDeleteImageServerResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteImageServerResponse that = (BatchDeleteImageServerResponse) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteImageServerResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppReq.java new file mode 100644 index 0000000000..ed8c251711 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppReq.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 批量删除应用仓库中的应用请求体。 + */ +public class BatchDeleteWarehouseAppReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ids") + + private List ids = null; + + public BatchDeleteWarehouseAppReq withIds(List ids) { + this.ids = ids; + return this; + } + + public BatchDeleteWarehouseAppReq addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + public BatchDeleteWarehouseAppReq withIds(Consumer> idsSetter) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + idsSetter.accept(this.ids); + return this; + } + + /** + * 应用ID,最多同时操作10个。 + * @return ids + */ + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteWarehouseAppReq that = (BatchDeleteWarehouseAppReq) obj; + return Objects.equals(this.ids, that.ids); + } + + @Override + public int hashCode() { + return Objects.hash(ids); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteWarehouseAppReq {\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppRequest.java new file mode 100644 index 0000000000..5c456050a4 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class BatchDeleteWarehouseAppRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchDeleteWarehouseAppReq body; + + public BatchDeleteWarehouseAppRequest withBody(BatchDeleteWarehouseAppReq body) { + this.body = body; + return this; + } + + public BatchDeleteWarehouseAppRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchDeleteWarehouseAppReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchDeleteWarehouseAppReq getBody() { + return body; + } + + public void setBody(BatchDeleteWarehouseAppReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteWarehouseAppRequest that = (BatchDeleteWarehouseAppRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteWarehouseAppRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppResponse.java new file mode 100644 index 0000000000..c4dff32ceb --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchDeleteWarehouseAppResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchDeleteWarehouseAppResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteWarehouseAppResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchRejoinDomainReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchRejoinDomainReq.java index 459cdcb44d..ff3ea8bbf7 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchRejoinDomainReq.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/BatchRejoinDomainReq.java @@ -40,7 +40,7 @@ public BatchRejoinDomainReq withItems(Consumer> itemsSetter) { } /** - * 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + * 批量唯一标识请求列表,一次请求数量区间 [1, 20] * @return items */ public List getItems() { diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CheckQuotaRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CheckQuotaRequest.java index de1170a471..d0c1bea924 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CheckQuotaRequest.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CheckQuotaRequest.java @@ -15,6 +15,11 @@ public class CheckQuotaRequest { private String productId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_id") + + private String flavorId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "subscription_num") @@ -62,6 +67,23 @@ public void setProductId(String productId) { this.productId = productId; } + public CheckQuotaRequest withFlavorId(String flavorId) { + this.flavorId = flavorId; + return this; + } + + /** + * 规格id。 + * @return flavorId + */ + public String getFlavorId() { + return flavorId; + } + + public void setFlavorId(String flavorId) { + this.flavorId = flavorId; + } + public CheckQuotaRequest withSubscriptionNum(Integer subscriptionNum) { this.subscriptionNum = subscriptionNum; return this; @@ -179,7 +201,7 @@ public boolean equals(java.lang.Object obj) { return false; } CheckQuotaRequest that = (CheckQuotaRequest) obj; - return Objects.equals(this.productId, that.productId) + return Objects.equals(this.productId, that.productId) && Objects.equals(this.flavorId, that.flavorId) && Objects.equals(this.subscriptionNum, that.subscriptionNum) && Objects.equals(this.diskSize, that.diskSize) && Objects.equals(this.diskNum, that.diskNum) && Objects.equals(this.isPeriod, that.isPeriod) && Objects.equals(this.dehId, that.dehId) @@ -188,7 +210,7 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects.hash(productId, subscriptionNum, diskSize, diskNum, isPeriod, dehId, clusterId); + return Objects.hash(productId, flavorId, subscriptionNum, diskSize, diskNum, isPeriod, dehId, clusterId); } @Override @@ -196,6 +218,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CheckQuotaRequest {\n"); sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" flavorId: ").append(toIndentedString(flavorId)).append("\n"); sb.append(" subscriptionNum: ").append(toIndentedString(subscriptionNum)).append("\n"); sb.append(" diskSize: ").append(toIndentedString(diskSize)).append("\n"); sb.append(" diskNum: ").append(toIndentedString(diskNum)).append("\n"); diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateAppServerReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateAppServerReq.java index 7cf221de17..b8b8233136 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateAppServerReq.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateAppServerReq.java @@ -48,6 +48,11 @@ public class CreateAppServerReq { private String productId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_id") + + private String flavorId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "os_type") @@ -220,6 +225,23 @@ public void setProductId(String productId) { this.productId = productId; } + public CreateAppServerReq withFlavorId(String flavorId) { + this.flavorId = flavorId; + return this; + } + + /** + * 规格ID。 + * @return flavorId + */ + public String getFlavorId() { + return flavorId; + } + + public void setFlavorId(String flavorId) { + this.flavorId = flavorId; + } + public CreateAppServerReq withOsType(String osType) { this.osType = osType; return this; @@ -380,7 +402,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.availabilityZone, that.availabilityZone) && Objects.equals(this.subscriptionNum, that.subscriptionNum) && Objects.equals(this.nics, that.nics) && Objects.equals(this.ouName, that.ouName) && Objects.equals(this.productId, that.productId) - && Objects.equals(this.osType, that.osType) && Objects.equals(this.rootVolume, that.rootVolume) + && Objects.equals(this.flavorId, that.flavorId) && Objects.equals(this.osType, that.osType) + && Objects.equals(this.rootVolume, that.rootVolume) && Objects.equals(this.schedulerHints, that.schedulerHints) && Objects.equals(this.subnetId, that.subnetId) && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.updateAccessAgent, that.updateAccessAgent) && Objects.equals(this.createServerExtendParam, that.createServerExtendParam); @@ -395,6 +418,7 @@ public int hashCode() { nics, ouName, productId, + flavorId, osType, rootVolume, schedulerHints, @@ -415,6 +439,7 @@ public String toString() { sb.append(" nics: ").append(toIndentedString(nics)).append("\n"); sb.append(" ouName: ").append(toIndentedString(ouName)).append("\n"); sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" flavorId: ").append(toIndentedString(flavorId)).append("\n"); sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); sb.append(" rootVolume: ").append(toIndentedString(rootVolume)).append("\n"); sb.append(" schedulerHints: ").append(toIndentedString(schedulerHints)).append("\n"); diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerReq.java new file mode 100644 index 0000000000..3f99e126e4 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerReq.java @@ -0,0 +1,604 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 创建镜像实例请求 + */ +public class CreateImageServerReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "root_volume") + + private Volume rootVolume; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_ref") + + private ImageRef imageRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_id") + + private String flavorId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attach_apps") + + private List attachApps = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "authorize_accounts") + + private List authorizeAccounts = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ou_name") + + private String ouName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_vdi") + + private Boolean isVdi; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scheduler_hints") + + private WdhParam schedulerHints; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "extra_session_type") + + private ExtraSessionTypeEnum extraSessionType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "extra_session_size") + + private Integer extraSessionSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "route_policy") + + private RoutePolicy routePolicy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + public CreateImageServerReq withName(String name) { + this.name = name; + return this; + } + + /** + * 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格 2. 长度范围1~64个字符 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateImageServerReq withDescription(String description) { + this.description = description; + return this; + } + + /** + * 镜像实例描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateImageServerReq withRootVolume(Volume rootVolume) { + this.rootVolume = rootVolume; + return this; + } + + public CreateImageServerReq withRootVolume(Consumer rootVolumeSetter) { + if (this.rootVolume == null) { + this.rootVolume = new Volume(); + rootVolumeSetter.accept(this.rootVolume); + } + + return this; + } + + /** + * Get rootVolume + * @return rootVolume + */ + public Volume getRootVolume() { + return rootVolume; + } + + public void setRootVolume(Volume rootVolume) { + this.rootVolume = rootVolume; + } + + public CreateImageServerReq withImageRef(ImageRef imageRef) { + this.imageRef = imageRef; + return this; + } + + public CreateImageServerReq withImageRef(Consumer imageRefSetter) { + if (this.imageRef == null) { + this.imageRef = new ImageRef(); + imageRefSetter.accept(this.imageRef); + } + + return this; + } + + /** + * Get imageRef + * @return imageRef + */ + public ImageRef getImageRef() { + return imageRef; + } + + public void setImageRef(ImageRef imageRef) { + this.imageRef = imageRef; + } + + public CreateImageServerReq withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 镜像实例所属虚拟私有云唯一标识。 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public CreateImageServerReq withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 镜像实例网卡对应的子网唯一标识 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public CreateImageServerReq withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 镜像实例产品套餐ID + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public CreateImageServerReq withFlavorId(String flavorId) { + this.flavorId = flavorId; + return this; + } + + /** + * 规格ID。 + * @return flavorId + */ + public String getFlavorId() { + return flavorId; + } + + public void setFlavorId(String flavorId) { + this.flavorId = flavorId; + } + + public CreateImageServerReq withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 镜像实例的可用区,空值表示随机选取可用区 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public CreateImageServerReq withAttachApps(List attachApps) { + this.attachApps = attachApps; + return this; + } + + public CreateImageServerReq addAttachAppsItem(String attachAppsItem) { + if (this.attachApps == null) { + this.attachApps = new ArrayList<>(); + } + this.attachApps.add(attachAppsItem); + return this; + } + + public CreateImageServerReq withAttachApps(Consumer> attachAppsSetter) { + if (this.attachApps == null) { + this.attachApps = new ArrayList<>(); + } + attachAppsSetter.accept(this.attachApps); + return this; + } + + /** + * 云应用仓库软件唯一标识请求列表 + * @return attachApps + */ + public List getAttachApps() { + return attachApps; + } + + public void setAttachApps(List attachApps) { + this.attachApps = attachApps; + } + + public CreateImageServerReq withAuthorizeAccounts(List authorizeAccounts) { + this.authorizeAccounts = authorizeAccounts; + return this; + } + + public CreateImageServerReq addAuthorizeAccountsItem(ImageAccountInfo authorizeAccountsItem) { + if (this.authorizeAccounts == null) { + this.authorizeAccounts = new ArrayList<>(); + } + this.authorizeAccounts.add(authorizeAccountsItem); + return this; + } + + public CreateImageServerReq withAuthorizeAccounts(Consumer> authorizeAccountsSetter) { + if (this.authorizeAccounts == null) { + this.authorizeAccounts = new ArrayList<>(); + } + authorizeAccountsSetter.accept(this.authorizeAccounts); + return this; + } + + /** + * 应用组授权用户, * 限制用户类型:'USER' - 用户 + * @return authorizeAccounts + */ + public List getAuthorizeAccounts() { + return authorizeAccounts; + } + + public void setAuthorizeAccounts(List authorizeAccounts) { + this.authorizeAccounts = authorizeAccounts; + } + + public CreateImageServerReq withOuName(String ouName) { + this.ouName = ouName; + return this; + } + + /** + * 组织名称 + * @return ouName + */ + public String getOuName() { + return ouName; + } + + public void setOuName(String ouName) { + this.ouName = ouName; + } + + public CreateImageServerReq withIsVdi(Boolean isVdi) { + this.isVdi = isVdi; + return this; + } + + /** + * 是否为vdi单会话模式 + * @return isVdi + */ + public Boolean getIsVdi() { + return isVdi; + } + + public void setIsVdi(Boolean isVdi) { + this.isVdi = isVdi; + } + + public CreateImageServerReq withSchedulerHints(WdhParam schedulerHints) { + this.schedulerHints = schedulerHints; + return this; + } + + public CreateImageServerReq withSchedulerHints(Consumer schedulerHintsSetter) { + if (this.schedulerHints == null) { + this.schedulerHints = new WdhParam(); + schedulerHintsSetter.accept(this.schedulerHints); + } + + return this; + } + + /** + * Get schedulerHints + * @return schedulerHints + */ + public WdhParam getSchedulerHints() { + return schedulerHints; + } + + public void setSchedulerHints(WdhParam schedulerHints) { + this.schedulerHints = schedulerHints; + } + + public CreateImageServerReq withExtraSessionType(ExtraSessionTypeEnum extraSessionType) { + this.extraSessionType = extraSessionType; + return this; + } + + /** + * Get extraSessionType + * @return extraSessionType + */ + public ExtraSessionTypeEnum getExtraSessionType() { + return extraSessionType; + } + + public void setExtraSessionType(ExtraSessionTypeEnum extraSessionType) { + this.extraSessionType = extraSessionType; + } + + public CreateImageServerReq withExtraSessionSize(Integer extraSessionSize) { + this.extraSessionSize = extraSessionSize; + return this; + } + + /** + * 需要付费的会话数,单位/个 + * minimum: 1 + * @return extraSessionSize + */ + public Integer getExtraSessionSize() { + return extraSessionSize; + } + + public void setExtraSessionSize(Integer extraSessionSize) { + this.extraSessionSize = extraSessionSize; + } + + public CreateImageServerReq withRoutePolicy(RoutePolicy routePolicy) { + this.routePolicy = routePolicy; + return this; + } + + public CreateImageServerReq withRoutePolicy(Consumer routePolicySetter) { + if (this.routePolicy == null) { + this.routePolicy = new RoutePolicy(); + routePolicySetter.accept(this.routePolicy); + } + + return this; + } + + /** + * Get routePolicy + * @return routePolicy + */ + public RoutePolicy getRoutePolicy() { + return routePolicy; + } + + public void setRoutePolicy(RoutePolicy routePolicy) { + this.routePolicy = routePolicy; + } + + public CreateImageServerReq withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateImageServerReq addTagsItem(TmsTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateImageServerReq withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签信息,最多包含20个key,不允许重复 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public CreateImageServerReq withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateImageServerReq that = (CreateImageServerReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.rootVolume, that.rootVolume) && Objects.equals(this.imageRef, that.imageRef) + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.productId, that.productId) && Objects.equals(this.flavorId, that.flavorId) + && Objects.equals(this.availabilityZone, that.availabilityZone) + && Objects.equals(this.attachApps, that.attachApps) + && Objects.equals(this.authorizeAccounts, that.authorizeAccounts) + && Objects.equals(this.ouName, that.ouName) && Objects.equals(this.isVdi, that.isVdi) + && Objects.equals(this.schedulerHints, that.schedulerHints) + && Objects.equals(this.extraSessionType, that.extraSessionType) + && Objects.equals(this.extraSessionSize, that.extraSessionSize) + && Objects.equals(this.routePolicy, that.routePolicy) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(name, + description, + rootVolume, + imageRef, + vpcId, + subnetId, + productId, + flavorId, + availabilityZone, + attachApps, + authorizeAccounts, + ouName, + isVdi, + schedulerHints, + extraSessionType, + extraSessionSize, + routePolicy, + tags, + enterpriseProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateImageServerReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" rootVolume: ").append(toIndentedString(rootVolume)).append("\n"); + sb.append(" imageRef: ").append(toIndentedString(imageRef)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" flavorId: ").append(toIndentedString(flavorId)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); + sb.append(" attachApps: ").append(toIndentedString(attachApps)).append("\n"); + sb.append(" authorizeAccounts: ").append(toIndentedString(authorizeAccounts)).append("\n"); + sb.append(" ouName: ").append(toIndentedString(ouName)).append("\n"); + sb.append(" isVdi: ").append(toIndentedString(isVdi)).append("\n"); + sb.append(" schedulerHints: ").append(toIndentedString(schedulerHints)).append("\n"); + sb.append(" extraSessionType: ").append(toIndentedString(extraSessionType)).append("\n"); + sb.append(" extraSessionSize: ").append(toIndentedString(extraSessionSize)).append("\n"); + sb.append(" routePolicy: ").append(toIndentedString(routePolicy)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerRequest.java new file mode 100644 index 0000000000..b7487cc30a --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerRequest.java @@ -0,0 +1,106 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateImageServerRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Service-Transaction-Id") + + private String serviceTransactionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateImageServerReq body; + + public CreateImageServerRequest withServiceTransactionId(String serviceTransactionId) { + this.serviceTransactionId = serviceTransactionId; + return this; + } + + /** + * CBC接口回调时,请求头里带上的业务ID。 + * @return serviceTransactionId + */ + public String getServiceTransactionId() { + return serviceTransactionId; + } + + public void setServiceTransactionId(String serviceTransactionId) { + this.serviceTransactionId = serviceTransactionId; + } + + public CreateImageServerRequest withBody(CreateImageServerReq body) { + this.body = body; + return this; + } + + public CreateImageServerRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateImageServerReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateImageServerReq getBody() { + return body; + } + + public void setBody(CreateImageServerReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateImageServerRequest that = (CreateImageServerRequest) obj; + return Objects.equals(this.serviceTransactionId, that.serviceTransactionId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serviceTransactionId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateImageServerRequest {\n"); + sb.append(" serviceTransactionId: ").append(toIndentedString(serviceTransactionId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerResponse.java new file mode 100644 index 0000000000..19ad9c617b --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateImageServerResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class CreateImageServerResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public CreateImageServerResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateImageServerResponse that = (CreateImageServerResponse) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateImageServerResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupReq.java index ae3625a911..9accc0e57c 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupReq.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupReq.java @@ -3,6 +3,8 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.function.Consumer; @@ -51,6 +53,11 @@ public class CreateServerGroupReq { private String productId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_id") + + private String flavorId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "vpc_id") @@ -111,6 +118,26 @@ public class CreateServerGroupReq { private Integer extraSessionSize; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "primary_server_group_id") + + private String primaryServerGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_group_status") + + private Boolean serverGroupStatus; + public CreateServerGroupReq withName(String name) { this.name = name; return this; @@ -256,6 +283,23 @@ public void setProductId(String productId) { this.productId = productId; } + public CreateServerGroupReq withFlavorId(String flavorId) { + this.flavorId = flavorId; + return this; + } + + /** + * 规格ID。 + * @return flavorId + */ + public String getFlavorId() { + return flavorId; + } + + public void setFlavorId(String flavorId) { + this.flavorId = flavorId; + } + public CreateServerGroupReq withVpcId(String vpcId) { this.vpcId = vpcId; return this; @@ -472,6 +516,90 @@ public void setExtraSessionSize(Integer extraSessionSize) { this.extraSessionSize = extraSessionSize; } + public CreateServerGroupReq withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateServerGroupReq addTagsItem(TmsTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateServerGroupReq withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签信息,最多包含20个key,不允许重复 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public CreateServerGroupReq withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public CreateServerGroupReq withPrimaryServerGroupId(String primaryServerGroupId) { + this.primaryServerGroupId = primaryServerGroupId; + return this; + } + + /** + * 主服务器组id,绑定主服务器组,则创建的是备服务器。 + * @return primaryServerGroupId + */ + public String getPrimaryServerGroupId() { + return primaryServerGroupId; + } + + public void setPrimaryServerGroupId(String primaryServerGroupId) { + this.primaryServerGroupId = primaryServerGroupId; + } + + public CreateServerGroupReq withServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + return this; + } + + /** + * 是否启用服务器组。 + * @return serverGroupStatus + */ + public Boolean getServerGroupStatus() { + return serverGroupStatus; + } + + public void setServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -485,15 +613,19 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.imageProductId, that.imageProductId) && Objects.equals(this.imageType, that.imageType) && Objects.equals(this.osType, that.osType) && Objects.equals(this.description, that.description) && Objects.equals(this.routePolicy, that.routePolicy) - && Objects.equals(this.productId, that.productId) && Objects.equals(this.vpcId, that.vpcId) - && Objects.equals(this.subnetId, that.subnetId) && Objects.equals(this.systemDiskType, that.systemDiskType) + && Objects.equals(this.productId, that.productId) && Objects.equals(this.flavorId, that.flavorId) + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.systemDiskType, that.systemDiskType) && Objects.equals(this.systemDiskSize, that.systemDiskSize) && Objects.equals(this.ouName, that.ouName) && Objects.equals(this.clusterId, that.clusterId) && Objects.equals(this.availabilityZone, that.availabilityZone) && Objects.equals(this.ipVirtual, that.ipVirtual) && Objects.equals(this.isVdi, that.isVdi) && Objects.equals(this.appType, that.appType) && Objects.equals(this.extraSessionType, that.extraSessionType) - && Objects.equals(this.extraSessionSize, that.extraSessionSize); + && Objects.equals(this.extraSessionSize, that.extraSessionSize) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.primaryServerGroupId, that.primaryServerGroupId) + && Objects.equals(this.serverGroupStatus, that.serverGroupStatus); } @Override @@ -506,6 +638,7 @@ public int hashCode() { description, routePolicy, productId, + flavorId, vpcId, subnetId, systemDiskType, @@ -517,7 +650,11 @@ public int hashCode() { isVdi, appType, extraSessionType, - extraSessionSize); + extraSessionSize, + tags, + enterpriseProjectId, + primaryServerGroupId, + serverGroupStatus); } @Override @@ -532,6 +669,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" routePolicy: ").append(toIndentedString(routePolicy)).append("\n"); sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" flavorId: ").append(toIndentedString(flavorId)).append("\n"); sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); sb.append(" systemDiskType: ").append(toIndentedString(systemDiskType)).append("\n"); @@ -544,6 +682,10 @@ public String toString() { sb.append(" appType: ").append(toIndentedString(appType)).append("\n"); sb.append(" extraSessionType: ").append(toIndentedString(extraSessionType)).append("\n"); sb.append(" extraSessionSize: ").append(toIndentedString(extraSessionSize)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" primaryServerGroupId: ").append(toIndentedString(primaryServerGroupId)).append("\n"); + sb.append(" serverGroupStatus: ").append(toIndentedString(serverGroupStatus)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupResponse.java index a9388010c2..84aa4079da 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerGroupResponse.java @@ -5,6 +5,8 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.function.Consumer; @@ -93,6 +95,36 @@ public class CreateServerGroupResponse extends SdkResponse { private StorageFolderMountType storageMountPolicy; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "primary_server_group_ids") + + private List primaryServerGroupIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secondary_server_group_ids") + + private List secondaryServerGroupIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_group_status") + + private Boolean serverGroupStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_type") + + private String siteType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_id") + + private String siteId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "app_server_flavor_count") @@ -128,6 +160,11 @@ public class CreateServerGroupResponse extends SdkResponse { private ScalingPolicy scalingPolicy; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ou_name") @@ -405,6 +442,140 @@ public void setStorageMountPolicy(StorageFolderMountType storageMountPolicy) { this.storageMountPolicy = storageMountPolicy; } + public CreateServerGroupResponse withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID(0表示默认企业项目Id) + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public CreateServerGroupResponse withPrimaryServerGroupIds(List primaryServerGroupIds) { + this.primaryServerGroupIds = primaryServerGroupIds; + return this; + } + + public CreateServerGroupResponse addPrimaryServerGroupIdsItem(String primaryServerGroupIdsItem) { + if (this.primaryServerGroupIds == null) { + this.primaryServerGroupIds = new ArrayList<>(); + } + this.primaryServerGroupIds.add(primaryServerGroupIdsItem); + return this; + } + + public CreateServerGroupResponse withPrimaryServerGroupIds(Consumer> primaryServerGroupIdsSetter) { + if (this.primaryServerGroupIds == null) { + this.primaryServerGroupIds = new ArrayList<>(); + } + primaryServerGroupIdsSetter.accept(this.primaryServerGroupIds); + return this; + } + + /** + * 主服务器组id列表。 + * @return primaryServerGroupIds + */ + public List getPrimaryServerGroupIds() { + return primaryServerGroupIds; + } + + public void setPrimaryServerGroupIds(List primaryServerGroupIds) { + this.primaryServerGroupIds = primaryServerGroupIds; + } + + public CreateServerGroupResponse withSecondaryServerGroupIds(List secondaryServerGroupIds) { + this.secondaryServerGroupIds = secondaryServerGroupIds; + return this; + } + + public CreateServerGroupResponse addSecondaryServerGroupIdsItem(String secondaryServerGroupIdsItem) { + if (this.secondaryServerGroupIds == null) { + this.secondaryServerGroupIds = new ArrayList<>(); + } + this.secondaryServerGroupIds.add(secondaryServerGroupIdsItem); + return this; + } + + public CreateServerGroupResponse withSecondaryServerGroupIds(Consumer> secondaryServerGroupIdsSetter) { + if (this.secondaryServerGroupIds == null) { + this.secondaryServerGroupIds = new ArrayList<>(); + } + secondaryServerGroupIdsSetter.accept(this.secondaryServerGroupIds); + return this; + } + + /** + * 备服务器组id列表。 + * @return secondaryServerGroupIds + */ + public List getSecondaryServerGroupIds() { + return secondaryServerGroupIds; + } + + public void setSecondaryServerGroupIds(List secondaryServerGroupIds) { + this.secondaryServerGroupIds = secondaryServerGroupIds; + } + + public CreateServerGroupResponse withServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + return this; + } + + /** + * 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + * @return serverGroupStatus + */ + public Boolean getServerGroupStatus() { + return serverGroupStatus; + } + + public void setServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + } + + public CreateServerGroupResponse withSiteType(String siteType) { + this.siteType = siteType; + return this; + } + + /** + * 站点类型 - CENTER/IES + * @return siteType + */ + public String getSiteType() { + return siteType; + } + + public void setSiteType(String siteType) { + this.siteType = siteType; + } + + public CreateServerGroupResponse withSiteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * 站点id + * @return siteId + */ + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + public CreateServerGroupResponse withAppServerFlavorCount(Integer appServerFlavorCount) { this.appServerFlavorCount = appServerFlavorCount; return this; @@ -542,6 +713,39 @@ public void setScalingPolicy(ScalingPolicy scalingPolicy) { this.scalingPolicy = scalingPolicy; } + public CreateServerGroupResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateServerGroupResponse addTagsItem(TmsTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateServerGroupResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签信息 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public CreateServerGroupResponse withOuName(String ouName) { this.ouName = ouName; return this; @@ -578,11 +782,17 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.appType, that.appType) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.storageMountPolicy, that.storageMountPolicy) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.primaryServerGroupIds, that.primaryServerGroupIds) + && Objects.equals(this.secondaryServerGroupIds, that.secondaryServerGroupIds) + && Objects.equals(this.serverGroupStatus, that.serverGroupStatus) + && Objects.equals(this.siteType, that.siteType) && Objects.equals(this.siteId, that.siteId) && Objects.equals(this.appServerFlavorCount, that.appServerFlavorCount) && Objects.equals(this.appServerCount, that.appServerCount) && Objects.equals(this.appGroupCount, that.appGroupCount) && Objects.equals(this.imageName, that.imageName) && Objects.equals(this.productInfo, that.productInfo) && Objects.equals(this.subnetName, that.subnetName) - && Objects.equals(this.scalingPolicy, that.scalingPolicy) && Objects.equals(this.ouName, that.ouName); + && Objects.equals(this.scalingPolicy, that.scalingPolicy) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.ouName, that.ouName); } @Override @@ -603,6 +813,12 @@ public int hashCode() { createTime, updateTime, storageMountPolicy, + enterpriseProjectId, + primaryServerGroupIds, + secondaryServerGroupIds, + serverGroupStatus, + siteType, + siteId, appServerFlavorCount, appServerCount, appGroupCount, @@ -610,6 +826,7 @@ public int hashCode() { productInfo, subnetName, scalingPolicy, + tags, ouName); } @@ -633,6 +850,12 @@ public String toString() { sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); sb.append(" storageMountPolicy: ").append(toIndentedString(storageMountPolicy)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" primaryServerGroupIds: ").append(toIndentedString(primaryServerGroupIds)).append("\n"); + sb.append(" secondaryServerGroupIds: ").append(toIndentedString(secondaryServerGroupIds)).append("\n"); + sb.append(" serverGroupStatus: ").append(toIndentedString(serverGroupStatus)).append("\n"); + sb.append(" siteType: ").append(toIndentedString(siteType)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); sb.append(" appServerFlavorCount: ").append(toIndentedString(appServerFlavorCount)).append("\n"); sb.append(" appServerCount: ").append(toIndentedString(appServerCount)).append("\n"); sb.append(" appGroupCount: ").append(toIndentedString(appGroupCount)).append("\n"); @@ -640,6 +863,7 @@ public String toString() { sb.append(" productInfo: ").append(toIndentedString(productInfo)).append("\n"); sb.append(" subnetName: ").append(toIndentedString(subnetName)).append("\n"); sb.append(" scalingPolicy: ").append(toIndentedString(scalingPolicy)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" ouName: ").append(toIndentedString(ouName)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerImageReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerImageReq.java new file mode 100644 index 0000000000..f506b86405 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateServerImageReq.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 构建云应用镜像的请求体。 + */ +public class CreateServerImageReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + public CreateServerImageReq withName(String name) { + this.name = name; + return this; + } + + /** + * 镜像名称,名称需满足如下规则: * 首尾字符不能为空格。 * 长度范围1~128个字符。 * 只允许3种字符,英文大小写,数字,特殊字符包含-、.、_、空格和中文。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateServerImageReq withDescription(String description) { + this.description = description; + return this; + } + + /** + * 镜像描述,描述需满足如下规则: * 首字符不能为空格。 * 长度范围0~1024个字符。 * 支持字母、数字、中文。 * 不支持回车、<、 >字符。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateServerImageReq withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * **⚠ : 此属性是预留字段,不需要传值,目前镜像产物默认属于default企业项目** 镜像所属的企业项目ID,默认属于default企业项目。 关于企业项目ID的获取及企业项目特性的详细信息,请参考“[企业中心总览](https://support.huaweicloud.com/intl/zh-cn/usermanual-em/zh-cn_topic_0123692049.html)”。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateServerImageReq that = (CreateServerImageReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, enterpriseProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateServerImageReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppReq.java new file mode 100644 index 0000000000..e1645509b5 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppReq.java @@ -0,0 +1,271 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 先上传应用文件,再提交向应用仓库中添加应用的请求。 + */ +public class CreateWarehouseAppReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_category") + + private AppCategoryEnum appCategory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_type") + + private OsTypeEnum osType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_id") + + private String versionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_description") + + private String appDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "appfile_store_path") + + private String appfileStorePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_icon") + + private String appIcon; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_file_size") + + private Integer appFileSize; + + public CreateWarehouseAppReq withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public CreateWarehouseAppReq withAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + return this; + } + + /** + * Get appCategory + * @return appCategory + */ + public AppCategoryEnum getAppCategory() { + return appCategory; + } + + public void setAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + } + + public CreateWarehouseAppReq withOsType(OsTypeEnum osType) { + this.osType = osType; + return this; + } + + /** + * Get osType + * @return osType + */ + public OsTypeEnum getOsType() { + return osType; + } + + public void setOsType(OsTypeEnum osType) { + this.osType = osType; + } + + public CreateWarehouseAppReq withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + * @return versionId + */ + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public CreateWarehouseAppReq withAppDescription(String appDescription) { + this.appDescription = appDescription; + return this; + } + + /** + * 应用仓库中的应用描述。 + * @return appDescription + */ + public String getAppDescription() { + return appDescription; + } + + public void setAppDescription(String appDescription) { + this.appDescription = appDescription; + } + + public CreateWarehouseAppReq withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public CreateWarehouseAppReq withAppfileStorePath(String appfileStorePath) { + this.appfileStorePath = appfileStorePath; + return this; + } + + /** + * 应用在obs桶的存储路径。 + * @return appfileStorePath + */ + public String getAppfileStorePath() { + return appfileStorePath; + } + + public void setAppfileStorePath(String appfileStorePath) { + this.appfileStorePath = appfileStorePath; + } + + public CreateWarehouseAppReq withAppIcon(String appIcon) { + this.appIcon = appIcon; + return this; + } + + /** + * > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + * @return appIcon + */ + public String getAppIcon() { + return appIcon; + } + + public void setAppIcon(String appIcon) { + this.appIcon = appIcon; + } + + public CreateWarehouseAppReq withAppFileSize(Integer appFileSize) { + this.appFileSize = appFileSize; + return this; + } + + /** + * 应用文件大小,单位为KB。 + * minimum: 1 + * maximum: 5242880 + * @return appFileSize + */ + public Integer getAppFileSize() { + return appFileSize; + } + + public void setAppFileSize(Integer appFileSize) { + this.appFileSize = appFileSize; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateWarehouseAppReq that = (CreateWarehouseAppReq) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.appCategory, that.appCategory) + && Objects.equals(this.osType, that.osType) && Objects.equals(this.versionId, that.versionId) + && Objects.equals(this.appDescription, that.appDescription) + && Objects.equals(this.versionName, that.versionName) + && Objects.equals(this.appfileStorePath, that.appfileStorePath) + && Objects.equals(this.appIcon, that.appIcon) && Objects.equals(this.appFileSize, that.appFileSize); + } + + @Override + public int hashCode() { + return Objects.hash(appName, + appCategory, + osType, + versionId, + appDescription, + versionName, + appfileStorePath, + appIcon, + appFileSize); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWarehouseAppReq {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appCategory: ").append(toIndentedString(appCategory)).append("\n"); + sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" appDescription: ").append(toIndentedString(appDescription)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append(" appfileStorePath: ").append(toIndentedString(appfileStorePath)).append("\n"); + sb.append(" appIcon: ").append(toIndentedString(appIcon)).append("\n"); + sb.append(" appFileSize: ").append(toIndentedString(appFileSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppRequest.java new file mode 100644 index 0000000000..6cf5cbd907 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class CreateWarehouseAppRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateWarehouseAppReq body; + + public CreateWarehouseAppRequest withBody(CreateWarehouseAppReq body) { + this.body = body; + return this; + } + + public CreateWarehouseAppRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateWarehouseAppReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateWarehouseAppReq getBody() { + return body; + } + + public void setBody(CreateWarehouseAppReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateWarehouseAppRequest that = (CreateWarehouseAppRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWarehouseAppRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppResponse.java new file mode 100644 index 0000000000..ec17054bed --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/CreateWarehouseAppResponse.java @@ -0,0 +1,492 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Response Object + */ +public class CreateWarehouseAppResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tenant_id") + + private String tenantId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_category") + + private AppCategoryEnum appCategory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_type") + + private OsTypeEnum osType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_id") + + private String versionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "appfile_store_path") + + private String appfileStorePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_file_size") + + private String appFileSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_description") + + private String appDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "appicon_store_path") + + private String appiconStorePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "modify_time") + + private OffsetDateTime modifyTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_time") + + private OffsetDateTime verifyTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_status") + + private VerifyStatusEnum verifyStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_comment") + + private String verifyComment; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_icon") + + private String appIcon; + + public CreateWarehouseAppResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 应用的记录id。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CreateWarehouseAppResponse withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 应用id。 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public CreateWarehouseAppResponse withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * 租户id。 + * @return tenantId + */ + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + + public CreateWarehouseAppResponse withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 应用名称。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public CreateWarehouseAppResponse withAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + return this; + } + + /** + * Get appCategory + * @return appCategory + */ + public AppCategoryEnum getAppCategory() { + return appCategory; + } + + public void setAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + } + + public CreateWarehouseAppResponse withOsType(OsTypeEnum osType) { + this.osType = osType; + return this; + } + + /** + * Get osType + * @return osType + */ + public OsTypeEnum getOsType() { + return osType; + } + + public void setOsType(OsTypeEnum osType) { + this.osType = osType; + } + + public CreateWarehouseAppResponse withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * 版本号。 + * @return versionId + */ + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public CreateWarehouseAppResponse withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 版本名称。 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public CreateWarehouseAppResponse withAppfileStorePath(String appfileStorePath) { + this.appfileStorePath = appfileStorePath; + return this; + } + + /** + * 应用文件的存放路径。 + * @return appfileStorePath + */ + public String getAppfileStorePath() { + return appfileStorePath; + } + + public void setAppfileStorePath(String appfileStorePath) { + this.appfileStorePath = appfileStorePath; + } + + public CreateWarehouseAppResponse withAppFileSize(String appFileSize) { + this.appFileSize = appFileSize; + return this; + } + + /** + * 应用文件的大小,以KB为单位。 + * @return appFileSize + */ + public String getAppFileSize() { + return appFileSize; + } + + public void setAppFileSize(String appFileSize) { + this.appFileSize = appFileSize; + } + + public CreateWarehouseAppResponse withAppDescription(String appDescription) { + this.appDescription = appDescription; + return this; + } + + /** + * 应用描述。 + * @return appDescription + */ + public String getAppDescription() { + return appDescription; + } + + public void setAppDescription(String appDescription) { + this.appDescription = appDescription; + } + + public CreateWarehouseAppResponse withAppiconStorePath(String appiconStorePath) { + this.appiconStorePath = appiconStorePath; + return this; + } + + /** + * 应用文件的存放路径。 + * @return appiconStorePath + */ + public String getAppiconStorePath() { + return appiconStorePath; + } + + public void setAppiconStorePath(String appiconStorePath) { + this.appiconStorePath = appiconStorePath; + } + + public CreateWarehouseAppResponse withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 应用创建时间。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public CreateWarehouseAppResponse withModifyTime(OffsetDateTime modifyTime) { + this.modifyTime = modifyTime; + return this; + } + + /** + * 应用修改时间。 + * @return modifyTime + */ + public OffsetDateTime getModifyTime() { + return modifyTime; + } + + public void setModifyTime(OffsetDateTime modifyTime) { + this.modifyTime = modifyTime; + } + + public CreateWarehouseAppResponse withVerifyTime(OffsetDateTime verifyTime) { + this.verifyTime = verifyTime; + return this; + } + + /** + * 应用审核时间。 + * @return verifyTime + */ + public OffsetDateTime getVerifyTime() { + return verifyTime; + } + + public void setVerifyTime(OffsetDateTime verifyTime) { + this.verifyTime = verifyTime; + } + + public CreateWarehouseAppResponse withVerifyStatus(VerifyStatusEnum verifyStatus) { + this.verifyStatus = verifyStatus; + return this; + } + + /** + * Get verifyStatus + * @return verifyStatus + */ + public VerifyStatusEnum getVerifyStatus() { + return verifyStatus; + } + + public void setVerifyStatus(VerifyStatusEnum verifyStatus) { + this.verifyStatus = verifyStatus; + } + + public CreateWarehouseAppResponse withVerifyComment(String verifyComment) { + this.verifyComment = verifyComment; + return this; + } + + /** + * 审核的评论意见。 + * @return verifyComment + */ + public String getVerifyComment() { + return verifyComment; + } + + public void setVerifyComment(String verifyComment) { + this.verifyComment = verifyComment; + } + + public CreateWarehouseAppResponse withAppIcon(String appIcon) { + this.appIcon = appIcon; + return this; + } + + /** + * app的图标文件。 + * @return appIcon + */ + public String getAppIcon() { + return appIcon; + } + + public void setAppIcon(String appIcon) { + this.appIcon = appIcon; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateWarehouseAppResponse that = (CreateWarehouseAppResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.appName, that.appName) + && Objects.equals(this.appCategory, that.appCategory) && Objects.equals(this.osType, that.osType) + && Objects.equals(this.versionId, that.versionId) && Objects.equals(this.versionName, that.versionName) + && Objects.equals(this.appfileStorePath, that.appfileStorePath) + && Objects.equals(this.appFileSize, that.appFileSize) + && Objects.equals(this.appDescription, that.appDescription) + && Objects.equals(this.appiconStorePath, that.appiconStorePath) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.modifyTime, that.modifyTime) + && Objects.equals(this.verifyTime, that.verifyTime) && Objects.equals(this.verifyStatus, that.verifyStatus) + && Objects.equals(this.verifyComment, that.verifyComment) && Objects.equals(this.appIcon, that.appIcon); + } + + @Override + public int hashCode() { + return Objects.hash(id, + appId, + tenantId, + appName, + appCategory, + osType, + versionId, + versionName, + appfileStorePath, + appFileSize, + appDescription, + appiconStorePath, + createTime, + modifyTime, + verifyTime, + verifyStatus, + verifyComment, + appIcon); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWarehouseAppResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appCategory: ").append(toIndentedString(appCategory)).append("\n"); + sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append(" appfileStorePath: ").append(toIndentedString(appfileStorePath)).append("\n"); + sb.append(" appFileSize: ").append(toIndentedString(appFileSize)).append("\n"); + sb.append(" appDescription: ").append(toIndentedString(appDescription)).append("\n"); + sb.append(" appiconStorePath: ").append(toIndentedString(appiconStorePath)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" modifyTime: ").append(toIndentedString(modifyTime)).append("\n"); + sb.append(" verifyTime: ").append(toIndentedString(verifyTime)).append("\n"); + sb.append(" verifyStatus: ").append(toIndentedString(verifyStatus)).append("\n"); + sb.append(" verifyComment: ").append(toIndentedString(verifyComment)).append("\n"); + sb.append(" appIcon: ").append(toIndentedString(appIcon)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ExtraSessionTypeEnum.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ExtraSessionTypeEnum.java index e4c02c53b9..acdb57a3ca 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ExtraSessionTypeEnum.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ExtraSessionTypeEnum.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 付费会话类型: * `GPU` - GPU规格会话。 * `CPU` - 普通CPU规格会话。 + * 付费会话类型 * `GPU` - GPU规格会话 * `CPU` - 普通CPU规格会话 */ public class ExtraSessionTypeEnum { diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageAccountInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageAccountInfo.java new file mode 100644 index 0000000000..b56644baab --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageAccountInfo.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 用户详细信息。 + */ +public class ImageAccountInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "account") + + private String account; + + /** + * 用户类型: * `USER` - 用户 * `USER_GROUP` - 用户组 + */ + public static final class AccountTypeEnum { + + /** + * Enum USER for value: "USER" + */ + public static final AccountTypeEnum USER = new AccountTypeEnum("USER"); + + /** + * Enum USER_GROUP for value: "USER_GROUP" + */ + public static final AccountTypeEnum USER_GROUP = new AccountTypeEnum("USER_GROUP"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("USER", USER); + map.put("USER_GROUP", USER_GROUP); + return Collections.unmodifiableMap(map); + } + + private String value; + + AccountTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AccountTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AccountTypeEnum(value)); + } + + public static AccountTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof AccountTypeEnum) { + return this.value.equals(((AccountTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "account_type") + + private AccountTypeEnum accountType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain") + + private String domain; + + public ImageAccountInfo withAccount(String account) { + this.account = account; + return this; + } + + /** + * 用户(组)。 + * @return account + */ + public String getAccount() { + return account; + } + + public void setAccount(String account) { + this.account = account; + } + + public ImageAccountInfo withAccountType(AccountTypeEnum accountType) { + this.accountType = accountType; + return this; + } + + /** + * 用户类型: * `USER` - 用户 * `USER_GROUP` - 用户组 + * @return accountType + */ + public AccountTypeEnum getAccountType() { + return accountType; + } + + public void setAccountType(AccountTypeEnum accountType) { + this.accountType = accountType; + } + + public ImageAccountInfo withDomain(String domain) { + this.domain = domain; + return this; + } + + /** + * 域名城。 + * @return domain + */ + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImageAccountInfo that = (ImageAccountInfo) obj; + return Objects.equals(this.account, that.account) && Objects.equals(this.accountType, that.accountType) + && Objects.equals(this.domain, that.domain); + } + + @Override + public int hashCode() { + return Objects.hash(account, accountType, domain); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImageAccountInfo {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append(" accountType: ").append(toIndentedString(accountType)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobDetailInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobDetailInfo.java new file mode 100644 index 0000000000..0707b8b6b6 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobDetailInfo.java @@ -0,0 +1,280 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ImageJobDetailInfo + */ +public class ImageJobDetailInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_type") + + private ImageJobType jobType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_resource_info") + + private ImageJobResourceInfo jobResourceInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "begin_time") + + private OffsetDateTime beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private OffsetDateTime endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private ImageJobDetailStatus status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_execute_info") + + private ImageJobExecuteInfo jobExecuteInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public ImageJobDetailInfo withId(String id) { + this.id = id; + return this; + } + + /** + * 子任务ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ImageJobDetailInfo withJobType(ImageJobType jobType) { + this.jobType = jobType; + return this; + } + + /** + * Get jobType + * @return jobType + */ + public ImageJobType getJobType() { + return jobType; + } + + public void setJobType(ImageJobType jobType) { + this.jobType = jobType; + } + + public ImageJobDetailInfo withJobResourceInfo(ImageJobResourceInfo jobResourceInfo) { + this.jobResourceInfo = jobResourceInfo; + return this; + } + + public ImageJobDetailInfo withJobResourceInfo(Consumer jobResourceInfoSetter) { + if (this.jobResourceInfo == null) { + this.jobResourceInfo = new ImageJobResourceInfo(); + jobResourceInfoSetter.accept(this.jobResourceInfo); + } + + return this; + } + + /** + * Get jobResourceInfo + * @return jobResourceInfo + */ + public ImageJobResourceInfo getJobResourceInfo() { + return jobResourceInfo; + } + + public void setJobResourceInfo(ImageJobResourceInfo jobResourceInfo) { + this.jobResourceInfo = jobResourceInfo; + } + + public ImageJobDetailInfo withBeginTime(OffsetDateTime beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 任务创建时间。 + * @return beginTime + */ + public OffsetDateTime getBeginTime() { + return beginTime; + } + + public void setBeginTime(OffsetDateTime beginTime) { + this.beginTime = beginTime; + } + + public ImageJobDetailInfo withEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务结束时间。 + * @return endTime + */ + public OffsetDateTime getEndTime() { + return endTime; + } + + public void setEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + } + + public ImageJobDetailInfo withStatus(ImageJobDetailStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public ImageJobDetailStatus getStatus() { + return status; + } + + public void setStatus(ImageJobDetailStatus status) { + this.status = status; + } + + public ImageJobDetailInfo withJobExecuteInfo(ImageJobExecuteInfo jobExecuteInfo) { + this.jobExecuteInfo = jobExecuteInfo; + return this; + } + + public ImageJobDetailInfo withJobExecuteInfo(Consumer jobExecuteInfoSetter) { + if (this.jobExecuteInfo == null) { + this.jobExecuteInfo = new ImageJobExecuteInfo(); + jobExecuteInfoSetter.accept(this.jobExecuteInfo); + } + + return this; + } + + /** + * Get jobExecuteInfo + * @return jobExecuteInfo + */ + public ImageJobExecuteInfo getJobExecuteInfo() { + return jobExecuteInfo; + } + + public void setJobExecuteInfo(ImageJobExecuteInfo jobExecuteInfo) { + this.jobExecuteInfo = jobExecuteInfo; + } + + public ImageJobDetailInfo withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ImageJobDetailInfo withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImageJobDetailInfo that = (ImageJobDetailInfo) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.jobType, that.jobType) + && Objects.equals(this.jobResourceInfo, that.jobResourceInfo) + && Objects.equals(this.beginTime, that.beginTime) && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.status, that.status) && Objects.equals(this.jobExecuteInfo, that.jobExecuteInfo) + && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(id, jobType, jobResourceInfo, beginTime, endTime, status, jobExecuteInfo, projectId, jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImageJobDetailInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" jobType: ").append(toIndentedString(jobType)).append("\n"); + sb.append(" jobResourceInfo: ").append(toIndentedString(jobResourceInfo)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" jobExecuteInfo: ").append(toIndentedString(jobExecuteInfo)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobDetailStatus.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobDetailStatus.java new file mode 100644 index 0000000000..0f3cc3cbe2 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobDetailStatus.java @@ -0,0 +1,108 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * job详情的状态 * `WAITING` - 等待 * `RUNNING` - 运行中 * `SUCCESS` - 成功 * `FAILED` - 失败 * `ABNORMAL` - 异常 * `ROLLBACK` - 回滚中 * `ABORTING` - 终止中 + */ +public class ImageJobDetailStatus { + + /** + * Enum WAITING for value: "WAITING" + */ + public static final ImageJobDetailStatus WAITING = new ImageJobDetailStatus("WAITING"); + + /** + * Enum RUNNING for value: "RUNNING" + */ + public static final ImageJobDetailStatus RUNNING = new ImageJobDetailStatus("RUNNING"); + + /** + * Enum SUCCESS for value: "SUCCESS" + */ + public static final ImageJobDetailStatus SUCCESS = new ImageJobDetailStatus("SUCCESS"); + + /** + * Enum FAILED for value: "FAILED" + */ + public static final ImageJobDetailStatus FAILED = new ImageJobDetailStatus("FAILED"); + + /** + * Enum ABNORMAL for value: "ABNORMAL" + */ + public static final ImageJobDetailStatus ABNORMAL = new ImageJobDetailStatus("ABNORMAL"); + + /** + * Enum ROLLBACK for value: "ROLLBACK" + */ + public static final ImageJobDetailStatus ROLLBACK = new ImageJobDetailStatus("ROLLBACK"); + + /** + * Enum ABORTING for value: "ABORTING" + */ + public static final ImageJobDetailStatus ABORTING = new ImageJobDetailStatus("ABORTING"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("WAITING", WAITING); + map.put("RUNNING", RUNNING); + map.put("SUCCESS", SUCCESS); + map.put("FAILED", FAILED); + map.put("ABNORMAL", ABNORMAL); + map.put("ROLLBACK", ROLLBACK); + map.put("ABORTING", ABORTING); + return Collections.unmodifiableMap(map); + } + + private String value; + + ImageJobDetailStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ImageJobDetailStatus fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ImageJobDetailStatus(value)); + } + + public static ImageJobDetailStatus valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ImageJobDetailStatus) { + return this.value.equals(((ImageJobDetailStatus) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobExecuteInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobExecuteInfo.java new file mode 100644 index 0000000000..c3f9daa985 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobExecuteInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 任务执行失败信息 + */ +public class ImageJobExecuteInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_code") + + private String errorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_message") + + private String errorMessage; + + public ImageJobExecuteInfo withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * 任务执行失败时的错误码。 + * @return errorCode + */ + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public ImageJobExecuteInfo withErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * 任务失败原因。 + * @return errorMessage + */ + public String getErrorMessage() { + return errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImageJobExecuteInfo that = (ImageJobExecuteInfo) obj; + return Objects.equals(this.errorCode, that.errorCode) && Objects.equals(this.errorMessage, that.errorMessage); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, errorMessage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImageJobExecuteInfo {\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobInfo.java new file mode 100644 index 0000000000..edaeadff59 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobInfo.java @@ -0,0 +1,190 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * ImageJobInfo + */ +public class ImageJobInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_type") + + private ImageJobType jobType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "begin_time") + + private OffsetDateTime beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private OffsetDateTime endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private ImageJobStatus status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_jobs_total") + + private Integer subJobsTotal; + + public ImageJobInfo withId(String id) { + this.id = id; + return this; + } + + /** + * 任务ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ImageJobInfo withJobType(ImageJobType jobType) { + this.jobType = jobType; + return this; + } + + /** + * Get jobType + * @return jobType + */ + public ImageJobType getJobType() { + return jobType; + } + + public void setJobType(ImageJobType jobType) { + this.jobType = jobType; + } + + public ImageJobInfo withBeginTime(OffsetDateTime beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 任务创建时间。 + * @return beginTime + */ + public OffsetDateTime getBeginTime() { + return beginTime; + } + + public void setBeginTime(OffsetDateTime beginTime) { + this.beginTime = beginTime; + } + + public ImageJobInfo withEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务结束时间。 + * @return endTime + */ + public OffsetDateTime getEndTime() { + return endTime; + } + + public void setEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + } + + public ImageJobInfo withStatus(ImageJobStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public ImageJobStatus getStatus() { + return status; + } + + public void setStatus(ImageJobStatus status) { + this.status = status; + } + + public ImageJobInfo withSubJobsTotal(Integer subJobsTotal) { + this.subJobsTotal = subJobsTotal; + return this; + } + + /** + * 子任务总数。 + * @return subJobsTotal + */ + public Integer getSubJobsTotal() { + return subJobsTotal; + } + + public void setSubJobsTotal(Integer subJobsTotal) { + this.subJobsTotal = subJobsTotal; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImageJobInfo that = (ImageJobInfo) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.jobType, that.jobType) + && Objects.equals(this.beginTime, that.beginTime) && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.status, that.status) && Objects.equals(this.subJobsTotal, that.subJobsTotal); + } + + @Override + public int hashCode() { + return Objects.hash(id, jobType, beginTime, endTime, status, subJobsTotal); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImageJobInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" jobType: ").append(toIndentedString(jobType)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" subJobsTotal: ").append(toIndentedString(subJobsTotal)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobResourceInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobResourceInfo.java new file mode 100644 index 0000000000..4209552cbc --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobResourceInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 任务结果对应的资源信息,根据任务类型区分: * `镜像实例` - 镜像实例信息 * `镜像` - 镜像信息 + */ +public class ImageJobResourceInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_name") + + private String resourceName; + + public ImageJobResourceInfo withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * 资源ID + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public ImageJobResourceInfo withResourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * 产物名称,或者被操作资源名称 + * @return resourceName + */ + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImageJobResourceInfo that = (ImageJobResourceInfo) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.resourceName, that.resourceName); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, resourceName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImageJobResourceInfo {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobStatus.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobStatus.java new file mode 100644 index 0000000000..9fc4a38cd4 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobStatus.java @@ -0,0 +1,90 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * job状态 * `WAITING` - 等待 * `RUNNING` - 运行中 * `SUCCESS - 完成 * `FAILED` - 失败 + */ +public class ImageJobStatus { + + /** + * Enum WAITING for value: "WAITING" + */ + public static final ImageJobStatus WAITING = new ImageJobStatus("WAITING"); + + /** + * Enum RUNNING for value: "RUNNING" + */ + public static final ImageJobStatus RUNNING = new ImageJobStatus("RUNNING"); + + /** + * Enum SUCCESS for value: "SUCCESS" + */ + public static final ImageJobStatus SUCCESS = new ImageJobStatus("SUCCESS"); + + /** + * Enum FAILED for value: "FAILED" + */ + public static final ImageJobStatus FAILED = new ImageJobStatus("FAILED"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("WAITING", WAITING); + map.put("RUNNING", RUNNING); + map.put("SUCCESS", SUCCESS); + map.put("FAILED", FAILED); + return Collections.unmodifiableMap(map); + } + + private String value; + + ImageJobStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ImageJobStatus fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ImageJobStatus(value)); + } + + public static ImageJobStatus valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ImageJobStatus) { + return this.value.equals(((ImageJobStatus) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobType.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobType.java new file mode 100644 index 0000000000..017d160f76 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageJobType.java @@ -0,0 +1,84 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * job类型 * `CREATE_SERVER` - 创建镜像实例 * `CREATE_SERVER_IMAGE` - 构建镜像 * `DELETE_SERVER` - 删除镜像实例 + */ +public class ImageJobType { + + /** + * Enum CREATE_SERVER for value: "CREATE_SERVER" + */ + public static final ImageJobType CREATE_SERVER = new ImageJobType("CREATE_SERVER"); + + /** + * Enum CREATE_SERVER_IMAGE for value: "CREATE_SERVER_IMAGE" + */ + public static final ImageJobType CREATE_SERVER_IMAGE = new ImageJobType("CREATE_SERVER_IMAGE"); + + /** + * Enum DELETE_SERVER for value: "DELETE_SERVER" + */ + public static final ImageJobType DELETE_SERVER = new ImageJobType("DELETE_SERVER"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("CREATE_SERVER", CREATE_SERVER); + map.put("CREATE_SERVER_IMAGE", CREATE_SERVER_IMAGE); + map.put("DELETE_SERVER", DELETE_SERVER); + return Collections.unmodifiableMap(map); + } + + private String value; + + ImageJobType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ImageJobType fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ImageJobType(value)); + } + + public static ImageJobType valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ImageJobType) { + return this.value.equals(((ImageJobType) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageRef.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageRef.java new file mode 100644 index 0000000000..13085747a9 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageRef.java @@ -0,0 +1,235 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * 镜像源信息。 + */ +public class ImageRef { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + /** + * 镜像源的镜像类型: * `gold` - 云市场镜像 * `public` - 公共镜像 * `private` - 私有镜像 * `shared` - 共享镜像 * `other` - 其他 + */ + public static final class ImageTypeEnum { + + /** + * Enum GOLD for value: "gold" + */ + public static final ImageTypeEnum GOLD = new ImageTypeEnum("gold"); + + /** + * Enum PUBLIC for value: "public" + */ + public static final ImageTypeEnum PUBLIC = new ImageTypeEnum("public"); + + /** + * Enum PRIVATE for value: "private" + */ + public static final ImageTypeEnum PRIVATE = new ImageTypeEnum("private"); + + /** + * Enum SHARED for value: "shared" + */ + public static final ImageTypeEnum SHARED = new ImageTypeEnum("shared"); + + /** + * Enum OTHER for value: "other" + */ + public static final ImageTypeEnum OTHER = new ImageTypeEnum("other"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("gold", GOLD); + map.put("public", PUBLIC); + map.put("private", PRIVATE); + map.put("shared", SHARED); + map.put("other", OTHER); + return Collections.unmodifiableMap(map); + } + + private String value; + + ImageTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ImageTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ImageTypeEnum(value)); + } + + public static ImageTypeEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ImageTypeEnum) { + return this.value.equals(((ImageTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_type") + + private ImageTypeEnum imageType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spce_code") + + private String spceCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "product_id") + + private String productId; + + public ImageRef withId(String id) { + this.id = id; + return this; + } + + /** + * 镜像源的唯一标识。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ImageRef withImageType(ImageTypeEnum imageType) { + this.imageType = imageType; + return this; + } + + /** + * 镜像源的镜像类型: * `gold` - 云市场镜像 * `public` - 公共镜像 * `private` - 私有镜像 * `shared` - 共享镜像 * `other` - 其他 + * @return imageType + */ + public ImageTypeEnum getImageType() { + return imageType; + } + + public void setImageType(ImageTypeEnum imageType) { + this.imageType = imageType; + } + + public ImageRef withSpceCode(String spceCode) { + this.spceCode = spceCode; + return this; + } + + /** + * 镜像源的规格编码,对于`gold`镜像类型,这个值是的必须项。 + * @return spceCode + */ + public String getSpceCode() { + return spceCode; + } + + public void setSpceCode(String spceCode) { + this.spceCode = spceCode; + } + + public ImageRef withProductId(String productId) { + this.productId = productId; + return this; + } + + /** + * 镜像源的产品ID,对于`gold`镜像类型,这个值是的必须项。 + * @return productId + */ + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImageRef that = (ImageRef) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.imageType, that.imageType) + && Objects.equals(this.spceCode, that.spceCode) && Objects.equals(this.productId, that.productId); + } + + @Override + public int hashCode() { + return Objects.hash(id, imageType, spceCode, productId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImageRef {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" imageType: ").append(toIndentedString(imageType)).append("\n"); + sb.append(" spceCode: ").append(toIndentedString(spceCode)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageServer.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageServer.java new file mode 100644 index 0000000000..c7e88a6cee --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageServer.java @@ -0,0 +1,421 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ImageServer + */ +public class ImageServer { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_ref") + + private ImageRef imageRef; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_group_id") + + private String serverGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_group_id") + + private String appGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_id") + + private String imageId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private ImageServerStatus status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "authorize_accounts") + + private List authorizeAccounts = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + public ImageServer withId(String id) { + this.id = id; + return this; + } + + /** + * 实例的唯一标识。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ImageServer withName(String name) { + this.name = name; + return this; + } + + /** + * 镜像实例名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ImageServer withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ImageServer withImageRef(ImageRef imageRef) { + this.imageRef = imageRef; + return this; + } + + public ImageServer withImageRef(Consumer imageRefSetter) { + if (this.imageRef == null) { + this.imageRef = new ImageRef(); + imageRefSetter.accept(this.imageRef); + } + + return this; + } + + /** + * Get imageRef + * @return imageRef + */ + public ImageRef getImageRef() { + return imageRef; + } + + public void setImageRef(ImageRef imageRef) { + this.imageRef = imageRef; + } + + public ImageServer withServerGroupId(String serverGroupId) { + this.serverGroupId = serverGroupId; + return this; + } + + /** + * APS服务器组ID。 + * @return serverGroupId + */ + public String getServerGroupId() { + return serverGroupId; + } + + public void setServerGroupId(String serverGroupId) { + this.serverGroupId = serverGroupId; + } + + public ImageServer withAppGroupId(String appGroupId) { + this.appGroupId = appGroupId; + return this; + } + + /** + * 应用组ID。 + * @return appGroupId + */ + public String getAppGroupId() { + return appGroupId; + } + + public void setAppGroupId(String appGroupId) { + this.appGroupId = appGroupId; + } + + public ImageServer withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * APS实例ID。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public ImageServer withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * ECS服务器ID。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ImageServer withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像产物唯一标识。 + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public ImageServer withStatus(ImageServerStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public ImageServerStatus getStatus() { + return status; + } + + public void setStatus(ImageServerStatus status) { + this.status = status; + } + + public ImageServer withAuthorizeAccounts(List authorizeAccounts) { + this.authorizeAccounts = authorizeAccounts; + return this; + } + + public ImageServer addAuthorizeAccountsItem(ImageAccountInfo authorizeAccountsItem) { + if (this.authorizeAccounts == null) { + this.authorizeAccounts = new ArrayList<>(); + } + this.authorizeAccounts.add(authorizeAccountsItem); + return this; + } + + public ImageServer withAuthorizeAccounts(Consumer> authorizeAccountsSetter) { + if (this.authorizeAccounts == null) { + this.authorizeAccounts = new ArrayList<>(); + } + authorizeAccountsSetter.accept(this.authorizeAccounts); + return this; + } + + /** + * 应用组授权用户, * 限制用户类型:'USER' - 用户 + * @return authorizeAccounts + */ + public List getAuthorizeAccounts() { + return authorizeAccounts; + } + + public void setAuthorizeAccounts(List authorizeAccounts) { + this.authorizeAccounts = authorizeAccounts; + } + + public ImageServer withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 镜像实例创建时间 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public ImageServer withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public ImageServer withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID,仅企业项目需配置(字段为空或者0表示使用默认default企业项目) + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ImageServer that = (ImageServer) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) && Objects.equals(this.imageRef, that.imageRef) + && Objects.equals(this.serverGroupId, that.serverGroupId) + && Objects.equals(this.appGroupId, that.appGroupId) && Objects.equals(this.serverId, that.serverId) + && Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.imageId, that.imageId) + && Objects.equals(this.status, that.status) + && Objects.equals(this.authorizeAccounts, that.authorizeAccounts) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + description, + imageRef, + serverGroupId, + appGroupId, + serverId, + instanceId, + imageId, + status, + authorizeAccounts, + createTime, + updateTime, + enterpriseProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImageServer {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" imageRef: ").append(toIndentedString(imageRef)).append("\n"); + sb.append(" serverGroupId: ").append(toIndentedString(serverGroupId)).append("\n"); + sb.append(" appGroupId: ").append(toIndentedString(appGroupId)).append("\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" authorizeAccounts: ").append(toIndentedString(authorizeAccounts)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageServerStatus.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageServerStatus.java new file mode 100644 index 0000000000..138c647a5d --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ImageServerStatus.java @@ -0,0 +1,108 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * 镜像实例的状态: * 'CREATING' - 实例创建中 * 'ACTIVE' - 实例正常运行 * 'BUILDING' - 镜像创建中 * 'BUILT' - 镜像任务结束 * 'ERROR' - 实例处于异常 * 'DELETING' - 实例删除中 * 'NULL' - 未设置 + */ +public class ImageServerStatus { + + /** + * Enum CREATING for value: "CREATING" + */ + public static final ImageServerStatus CREATING = new ImageServerStatus("CREATING"); + + /** + * Enum ACTIVE for value: "ACTIVE" + */ + public static final ImageServerStatus ACTIVE = new ImageServerStatus("ACTIVE"); + + /** + * Enum BUILDING for value: "BUILDING" + */ + public static final ImageServerStatus BUILDING = new ImageServerStatus("BUILDING"); + + /** + * Enum BUILT for value: "BUILT" + */ + public static final ImageServerStatus BUILT = new ImageServerStatus("BUILT"); + + /** + * Enum ERROR for value: "ERROR" + */ + public static final ImageServerStatus ERROR = new ImageServerStatus("ERROR"); + + /** + * Enum DELETING for value: "DELETING" + */ + public static final ImageServerStatus DELETING = new ImageServerStatus("DELETING"); + + /** + * Enum NULL for value: "null" + */ + public static final ImageServerStatus NULL = new ImageServerStatus("null"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("CREATING", CREATING); + map.put("ACTIVE", ACTIVE); + map.put("BUILDING", BUILDING); + map.put("BUILT", BUILT); + map.put("ERROR", ERROR); + map.put("DELETING", DELETING); + map.put("null", NULL); + return Collections.unmodifiableMap(map); + } + + private String value; + + ImageServerStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ImageServerStatus fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ImageServerStatus(value)); + } + + public static ImageServerStatus valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof ImageServerStatus) { + return this.value.equals(((ImageServerStatus) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/JobType.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/JobType.java index 97340817f7..6bc82e3e91 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/JobType.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/JobType.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * job类型: * `CREATE_SERVER` - 创建服务器 * `DELETE_SERVER` - 删除服务器 * `UPDATE_FREEZE_STATUS` - 修改服务器冻结状态 * `CREATE_SERVER_IMAGE` - 构建镜像 * `REINSTALL_OS` - 重装操作系统 * `CHANGE_SERVER_IMAGE` - 更换镜像 * `REJOIN_DOMAIN` - 重新加域 * `MIGRATE_SERVER` - 迁移服务器 * `UPGRADE_ACCESS_AGENT` - hda升级 * `UPDATE_SERVER_TSVI` - 更新虚拟会话IP * `SCHEDULED_TASK` - 定时任务job * `COLLECT_HDA_LOG` - 收集hda日志 * `COLLECT_APS_LOG` - 收集aps日志 + * job类型: * `CREATE_SERVER` - 创建服务器 * `DELETE_SERVER` - 删除服务器 * `UPDATE_FREEZE_STATUS` - 修改服务器冻结状态 * `CREATE_SERVER_IMAGE` - 构建镜像 * `REINSTALL_OS` - 重装操作系统 * `CHANGE_SERVER_IMAGE` - 更换镜像 * `REJOIN_DOMAIN` - 重新加域 * `MIGRATE_SERVER` - 迁移服务器 * `UPGRADE_ACCESS_AGENT` - hda升级 * `UPDATE_SERVER_TSVI` - 更新虚拟会话IP * `SCHEDULED_TASK` - 定时任务job * `COLLECT_HDA_LOG` - 收集hda日志 * `COLLECT_APS_LOG` - 收集aps日志 * `CREATE_SERVER_SNAPSHOT` - 创建服务器快照 * `DELETE_SERVER_SNAPSHOT` - 删除服务器快照 * `RESTORE_SERVER_SNAPSHOT` - 恢复服务器快照 */ public class JobType { @@ -77,6 +77,21 @@ public class JobType { */ public static final JobType COLLECT_APS_LOG = new JobType("COLLECT_APS_LOG"); + /** + * Enum CREATE_SERVER_SNAPSHOT for value: "CREATE_SERVER_SNAPSHOT" + */ + public static final JobType CREATE_SERVER_SNAPSHOT = new JobType("CREATE_SERVER_SNAPSHOT"); + + /** + * Enum DELETE_SERVER_SNAPSHOT for value: "DELETE_SERVER_SNAPSHOT" + */ + public static final JobType DELETE_SERVER_SNAPSHOT = new JobType("DELETE_SERVER_SNAPSHOT"); + + /** + * Enum RESTORE_SERVER_SNAPSHOT for value: "RESTORE_SERVER_SNAPSHOT" + */ + public static final JobType RESTORE_SERVER_SNAPSHOT = new JobType("RESTORE_SERVER_SNAPSHOT"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -94,6 +109,9 @@ private static Map createStaticFields() { map.put("SCHEDULED_TASK", SCHEDULED_TASK); map.put("COLLECT_HDA_LOG", COLLECT_HDA_LOG); map.put("COLLECT_APS_LOG", COLLECT_APS_LOG); + map.put("CREATE_SERVER_SNAPSHOT", CREATE_SERVER_SNAPSHOT); + map.put("DELETE_SERVER_SNAPSHOT", DELETE_SERVER_SNAPSHOT); + map.put("RESTORE_SERVER_SNAPSHOT", RESTORE_SERVER_SNAPSHOT); return Collections.unmodifiableMap(map); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppConnectionResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppConnectionResponse.java index 903d3de911..4b6d0998ac 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppConnectionResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppConnectionResponse.java @@ -30,7 +30,7 @@ public ListAppConnectionResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupAuthorizationResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupAuthorizationResponse.java index d4c7de95ca..f55309fb6e 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupAuthorizationResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupAuthorizationResponse.java @@ -30,7 +30,7 @@ public ListAppGroupAuthorizationResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupResponse.java index 9eebbd71d0..1bca3541f3 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListAppGroupResponse.java @@ -30,7 +30,7 @@ public ListAppGroupResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListImageServersRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListImageServersRequest.java new file mode 100644 index 0000000000..96e3cdb410 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListImageServersRequest.java @@ -0,0 +1,170 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListImageServersRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_name") + + private String serverName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + public ListImageServersRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询的偏移量。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListImageServersRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询的数量,值区间[1-100]。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListImageServersRequest withServerName(String serverName) { + this.serverName = serverName; + return this; + } + + /** + * 镜像实例名称,支持部分匹配。 + * @return serverName + */ + public String getServerName() { + return serverName; + } + + public void setServerName(String serverName) { + this.serverName = serverName; + } + + public ListImageServersRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 镜像实例唯一标识。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public ListImageServersRequest withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID(字段为空或者0表示使用默认default企业项目)。 + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImageServersRequest that = (ListImageServersRequest) obj; + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.serverName, that.serverName) && Objects.equals(this.serverId, that.serverId) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(offset, limit, serverName, serverId, enterpriseProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImageServersRequest {\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" serverName: ").append(toIndentedString(serverName)).append("\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListImageServersResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListImageServersResponse.java new file mode 100644 index 0000000000..66a9791af7 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListImageServersResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListImageServersResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public ListImageServersResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListImageServersResponse withItems(List items) { + this.items = items; + return this; + } + + public ListImageServersResponse addItemsItem(ImageServer itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListImageServersResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 镜像实例列表返回列表条目数量上限为分页的最大上限值。 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImageServersResponse that = (ListImageServersResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(count, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImageServersResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListLatestAttachedServerAppRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListLatestAttachedServerAppRequest.java new file mode 100644 index 0000000000..1de3161d6c --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListLatestAttachedServerAppRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListLatestAttachedServerAppRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + public ListLatestAttachedServerAppRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 镜像实例唯一标识。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListLatestAttachedServerAppRequest that = (ListLatestAttachedServerAppRequest) obj; + return Objects.equals(this.serverId, that.serverId); + } + + @Override + public int hashCode() { + return Objects.hash(serverId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListLatestAttachedServerAppRequest {\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListLatestAttachedServerAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListLatestAttachedServerAppResponse.java new file mode 100644 index 0000000000..c314dba72f --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListLatestAttachedServerAppResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListLatestAttachedServerAppResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public ListLatestAttachedServerAppResponse withItems(List items) { + this.items = items; + return this; + } + + public ListLatestAttachedServerAppResponse addItemsItem(AttachServerAppInfo itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListLatestAttachedServerAppResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 分发软件信息列表。 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListLatestAttachedServerAppResponse that = (ListLatestAttachedServerAppResponse) obj; + return Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListLatestAttachedServerAppResponse {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPersistentStorageResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPersistentStorageResponse.java index 942c229172..a5fd971746 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPersistentStorageResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPersistentStorageResponse.java @@ -30,7 +30,7 @@ public ListPersistentStorageResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyGroupResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyGroupResponse.java index acd64a42d0..ae8f891242 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyGroupResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyGroupResponse.java @@ -30,7 +30,7 @@ public ListPolicyGroupResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyTemplateResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyTemplateResponse.java index a572e1914d..445c6a3db3 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyTemplateResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPolicyTemplateResponse.java @@ -30,7 +30,7 @@ public ListPolicyTemplateResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListProductRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListProductRequest.java index 03b460e141..a0fe7a28f4 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListProductRequest.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListProductRequest.java @@ -15,6 +15,11 @@ public class ListProductRequest { private String productId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor_id") + + private String flavorId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "availability_zone") @@ -57,6 +62,23 @@ public void setProductId(String productId) { this.productId = productId; } + public ListProductRequest withFlavorId(String flavorId) { + this.flavorId = flavorId; + return this; + } + + /** + * 如果不为空,将按规格ID进行过滤后返回。 + * @return flavorId + */ + public String getFlavorId() { + return flavorId; + } + + public void setFlavorId(String flavorId) { + this.flavorId = flavorId; + } + public ListProductRequest withAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; return this; @@ -151,7 +173,7 @@ public boolean equals(java.lang.Object obj) { return false; } ListProductRequest that = (ListProductRequest) obj; - return Objects.equals(this.productId, that.productId) + return Objects.equals(this.productId, that.productId) && Objects.equals(this.flavorId, that.flavorId) && Objects.equals(this.availabilityZone, that.availabilityZone) && Objects.equals(this.osType, that.osType) && Objects.equals(this.chargeMode, that.chargeMode) && Objects.equals(this.architecture, that.architecture) && Objects.equals(this.packageType, that.packageType); @@ -159,7 +181,7 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects.hash(productId, availabilityZone, osType, chargeMode, architecture, packageType); + return Objects.hash(productId, flavorId, availabilityZone, osType, chargeMode, architecture, packageType); } @Override @@ -167,6 +189,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListProductRequest {\n"); sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" flavorId: ").append(toIndentedString(flavorId)).append("\n"); sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); sb.append(" chargeMode: ").append(toIndentedString(chargeMode)).append("\n"); diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPublishedAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPublishedAppResponse.java index b39d586400..4486c9525e 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPublishedAppResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListPublishedAppResponse.java @@ -30,7 +30,7 @@ public ListPublishedAppResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsRequest.java index f0e6ba517f..eb39f35538 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsRequest.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsRequest.java @@ -35,6 +35,21 @@ public class ListServerGroupsRequest { private String appType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private String tags; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_secondary_server_group") + + private String isSecondaryServerGroup; + public ListServerGroupsRequest withOffset(Integer offset) { this.offset = offset; return this; @@ -124,6 +139,57 @@ public void setAppType(String appType) { this.appType = appType; } + public ListServerGroupsRequest withTags(String tags) { + this.tags = tags; + return this; + } + + /** + * 查询tag字段中包含该值的服务器组。 + * @return tags + */ + public String getTags() { + return tags; + } + + public void setTags(String tags) { + this.tags = tags; + } + + public ListServerGroupsRequest withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID(字段为空或者0表示使用默认default企业项目) + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public ListServerGroupsRequest withIsSecondaryServerGroup(String isSecondaryServerGroup) { + this.isSecondaryServerGroup = isSecondaryServerGroup; + return this; + } + + /** + * 是否为备服务器组,不传默认查所有: true : 是备服务器组。 false: 主服务器组,默认。 + * @return isSecondaryServerGroup + */ + public String getIsSecondaryServerGroup() { + return isSecondaryServerGroup; + } + + public void setIsSecondaryServerGroup(String isSecondaryServerGroup) { + this.isSecondaryServerGroup = isSecondaryServerGroup; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -135,12 +201,22 @@ public boolean equals(java.lang.Object obj) { ListServerGroupsRequest that = (ListServerGroupsRequest) obj; return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) && Objects.equals(this.serverGroupName, that.serverGroupName) - && Objects.equals(this.serverGroupId, that.serverGroupId) && Objects.equals(this.appType, that.appType); + && Objects.equals(this.serverGroupId, that.serverGroupId) && Objects.equals(this.appType, that.appType) + && Objects.equals(this.tags, that.tags) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.isSecondaryServerGroup, that.isSecondaryServerGroup); } @Override public int hashCode() { - return Objects.hash(offset, limit, serverGroupName, serverGroupId, appType); + return Objects.hash(offset, + limit, + serverGroupName, + serverGroupId, + appType, + tags, + enterpriseProjectId, + isSecondaryServerGroup); } @Override @@ -152,6 +228,9 @@ public String toString() { sb.append(" serverGroupName: ").append(toIndentedString(serverGroupName)).append("\n"); sb.append(" serverGroupId: ").append(toIndentedString(serverGroupId)).append("\n"); sb.append(" appType: ").append(toIndentedString(appType)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" isSecondaryServerGroup: ").append(toIndentedString(isSecondaryServerGroup)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsResponse.java index 376c7e2c4e..c57a98c7eb 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerGroupsResponse.java @@ -30,7 +30,7 @@ public ListServerGroupsResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerMetricDataRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerMetricDataRequest.java new file mode 100644 index 0000000000..36f2ea979a --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerMetricDataRequest.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListServerMetricDataRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "namespace") + + private String namespace; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_name") + + private String metricName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "from") + + private String from; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "to") + + private String to; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period") + + private Integer period; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "filter") + + private String filter; + + public ListServerMetricDataRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 服务器唯一标识。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public ListServerMetricDataRequest withNamespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + * 服务的命名空间:例如 \"SYS.ECS/AGT.ECS\",当namespace为AGT.ECS,则查询GPU监控指标: - SYS.ECS:弹性云服务器的基础监控指标。 - AGT.ECS:弹性云服务器操作系统监控的监控指标(GPU指标)。 + * @return namespace + */ + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public ListServerMetricDataRequest withMetricName(String metricName) { + this.metricName = metricName; + return this; + } + + /** + * 监控查询指标名称: - SYS.ECS命名空间的指标名称,请参考帮助文档:“[弹性云服务器支持的基础监控指标](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1002.html)”。 - AGT.ECS命名空间的指标名称,请参考帮助文档:“[操作系统监控指标:GPU](https://support.huaweicloud.com/usermanual-ecs/ecs_03_1003.html#section11)”。 + * @return metricName + */ + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public ListServerMetricDataRequest withFrom(String from) { + this.from = from; + return this; + } + + /** + * 查询数据起始时间,UNIX时间戳,单位毫秒。 + * @return from + */ + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + public ListServerMetricDataRequest withTo(String to) { + this.to = to; + return this; + } + + /** + * 查询数据截止时间UNIX时间戳,单位毫秒。from必须小于to。 + * @return to + */ + public String getTo() { + return to; + } + + public void setTo(String to) { + this.to = to; + } + + public ListServerMetricDataRequest withPeriod(Integer period) { + this.period = period; + return this; + } + + /** + * 监控数据粒度。 取值范围: - 1: 实时数据。 - 300: 5分钟粒度。 - 1200: 20分钟粒度。 - 3600: 1小时粒度。 - 14400: 4小时粒度。 - 86400: 1天粒度。 + * @return period + */ + public Integer getPeriod() { + return period; + } + + public void setPeriod(Integer period) { + this.period = period; + } + + public ListServerMetricDataRequest withFilter(String filter) { + this.filter = filter; + return this; + } + + /** + * 数据聚合方式,支持的聚合方式如下: - average:聚合周期内指标数据的平均值。 - max:聚合周期内指标数据的最大值。 - min:聚合周期内指标数据的最小值。 - sum:聚合周期内指标数据的求和值。 - variance:聚合周期内指标数据的方差。 + * @return filter + */ + public String getFilter() { + return filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListServerMetricDataRequest that = (ListServerMetricDataRequest) obj; + return Objects.equals(this.serverId, that.serverId) && Objects.equals(this.namespace, that.namespace) + && Objects.equals(this.metricName, that.metricName) && Objects.equals(this.from, that.from) + && Objects.equals(this.to, that.to) && Objects.equals(this.period, that.period) + && Objects.equals(this.filter, that.filter); + } + + @Override + public int hashCode() { + return Objects.hash(serverId, namespace, metricName, from, to, period, filter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListServerMetricDataRequest {\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" to: ").append(toIndentedString(to)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerMetricDataResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerMetricDataResponse.java new file mode 100644 index 0000000000..7141c385aa --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServerMetricDataResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListServerMetricDataResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_metrics") + + private List serverMetrics = null; + + public ListServerMetricDataResponse withServerMetrics(List serverMetrics) { + this.serverMetrics = serverMetrics; + return this; + } + + public ListServerMetricDataResponse addServerMetricsItem(ServerMetricData serverMetricsItem) { + if (this.serverMetrics == null) { + this.serverMetrics = new ArrayList<>(); + } + this.serverMetrics.add(serverMetricsItem); + return this; + } + + public ListServerMetricDataResponse withServerMetrics(Consumer> serverMetricsSetter) { + if (this.serverMetrics == null) { + this.serverMetrics = new ArrayList<>(); + } + serverMetricsSetter.accept(this.serverMetrics); + return this; + } + + /** + * 监控数据。 + * @return serverMetrics + */ + public List getServerMetrics() { + return serverMetrics; + } + + public void setServerMetrics(List serverMetrics) { + this.serverMetrics = serverMetrics; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListServerMetricDataResponse that = (ListServerMetricDataResponse) obj; + return Objects.equals(this.serverMetrics, that.serverMetrics); + } + + @Override + public int hashCode() { + return Objects.hash(serverMetrics); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListServerMetricDataResponse {\n"); + sb.append(" serverMetrics: ").append(toIndentedString(serverMetrics)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServersResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServersResponse.java index da7a07756d..ce9a413fa8 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServersResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListServersResponse.java @@ -30,7 +30,7 @@ public ListServersResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListSessionsRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListSessionsRequest.java new file mode 100644 index 0000000000..39a0ea9947 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListSessionsRequest.java @@ -0,0 +1,297 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListSessionsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "query_begin_time") + + private String queryBeginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "query_end_time") + + private String queryEndTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_server_group_id") + + private String appServerGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vm_ip") + + private String vmIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "machine_name") + + private String machineName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "session_state") + + private String sessionState; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_success") + + private String isSuccess; + + public ListSessionsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 单次查询的大小[1-100]。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListSessionsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询的偏移量。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListSessionsRequest withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 用户名。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public ListSessionsRequest withQueryBeginTime(String queryBeginTime) { + this.queryBeginTime = queryBeginTime; + return this; + } + + /** + * 搜索开始时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + * @return queryBeginTime + */ + public String getQueryBeginTime() { + return queryBeginTime; + } + + public void setQueryBeginTime(String queryBeginTime) { + this.queryBeginTime = queryBeginTime; + } + + public ListSessionsRequest withQueryEndTime(String queryEndTime) { + this.queryEndTime = queryEndTime; + return this; + } + + /** + * 搜索结束时间,以会话开始时间为条件查询,格式2024-02-27T03:47:51.182Z。 + * @return queryEndTime + */ + public String getQueryEndTime() { + return queryEndTime; + } + + public void setQueryEndTime(String queryEndTime) { + this.queryEndTime = queryEndTime; + } + + public ListSessionsRequest withAppServerGroupId(String appServerGroupId) { + this.appServerGroupId = appServerGroupId; + return this; + } + + /** + * AppServer组ID。 + * @return appServerGroupId + */ + public String getAppServerGroupId() { + return appServerGroupId; + } + + public void setAppServerGroupId(String appServerGroupId) { + this.appServerGroupId = appServerGroupId; + } + + public ListSessionsRequest withVmIp(String vmIp) { + this.vmIp = vmIp; + return this; + } + + /** + * 服务器IP。 + * @return vmIp + */ + public String getVmIp() { + return vmIp; + } + + public void setVmIp(String vmIp) { + this.vmIp = vmIp; + } + + public ListSessionsRequest withMachineName(String machineName) { + this.machineName = machineName; + return this; + } + + /** + * 应用服务器名称。 + * @return machineName + */ + public String getMachineName() { + return machineName; + } + + public void setMachineName(String machineName) { + this.machineName = machineName; + } + + public ListSessionsRequest withSessionState(String sessionState) { + this.sessionState = sessionState; + return this; + } + + /** + * 应用状态: * `Active` - 会话当前处于活动状态,有用户登录并且正在使用。 * `Disconnected` - 用户已经登录但会话处于断开连接状态。 * `AppcInit` - 会话正在初始化。 * `SignedOut` - 会话已注销。 * `InitFail` - 会话初始化失败。 + * @return sessionState + */ + public String getSessionState() { + return sessionState; + } + + public void setSessionState(String sessionState) { + this.sessionState = sessionState; + } + + public ListSessionsRequest withIsSuccess(String isSuccess) { + this.isSuccess = isSuccess; + return this; + } + + /** + * 会话是否创建成功,默认不填则查询全部 * 'true' - 会话创建成功 * 'false' - 会话创建失败 + * @return isSuccess + */ + public String getIsSuccess() { + return isSuccess; + } + + public void setIsSuccess(String isSuccess) { + this.isSuccess = isSuccess; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSessionsRequest that = (ListSessionsRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.userName, that.userName) && Objects.equals(this.queryBeginTime, that.queryBeginTime) + && Objects.equals(this.queryEndTime, that.queryEndTime) + && Objects.equals(this.appServerGroupId, that.appServerGroupId) && Objects.equals(this.vmIp, that.vmIp) + && Objects.equals(this.machineName, that.machineName) + && Objects.equals(this.sessionState, that.sessionState) && Objects.equals(this.isSuccess, that.isSuccess); + } + + @Override + public int hashCode() { + return Objects.hash(limit, + offset, + userName, + queryBeginTime, + queryEndTime, + appServerGroupId, + vmIp, + machineName, + sessionState, + isSuccess); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSessionsRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" queryBeginTime: ").append(toIndentedString(queryBeginTime)).append("\n"); + sb.append(" queryEndTime: ").append(toIndentedString(queryEndTime)).append("\n"); + sb.append(" appServerGroupId: ").append(toIndentedString(appServerGroupId)).append("\n"); + sb.append(" vmIp: ").append(toIndentedString(vmIp)).append("\n"); + sb.append(" machineName: ").append(toIndentedString(machineName)).append("\n"); + sb.append(" sessionState: ").append(toIndentedString(sessionState)).append("\n"); + sb.append(" isSuccess: ").append(toIndentedString(isSuccess)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListSessionsResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListSessionsResponse.java new file mode 100644 index 0000000000..585d6f8307 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListSessionsResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListSessionsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public ListSessionsResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListSessionsResponse withItems(List items) { + this.items = items; + return this; + } + + public ListSessionsResponse addItemsItem(SessionInfo itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListSessionsResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 企业的会话列表。 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListSessionsResponse that = (ListSessionsResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(count, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSessionsResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListShareFolderResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListShareFolderResponse.java index 3a06b5aec0..c6f7b5da5a 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListShareFolderResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListShareFolderResponse.java @@ -30,7 +30,7 @@ public ListShareFolderResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStorageAssignmentResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStorageAssignmentResponse.java index ffa559e7e6..3517431463 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStorageAssignmentResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStorageAssignmentResponse.java @@ -30,7 +30,7 @@ public ListStorageAssignmentResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStoragePolicyStatementResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStoragePolicyStatementResponse.java index 111060bd03..7a01b0ec14 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStoragePolicyStatementResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListStoragePolicyStatementResponse.java @@ -30,7 +30,7 @@ public ListStoragePolicyStatementResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListUserConnectionResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListUserConnectionResponse.java index d89f18fc61..758aa8e0c6 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListUserConnectionResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListUserConnectionResponse.java @@ -30,7 +30,7 @@ public ListUserConnectionResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListWarehouseAppsRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListWarehouseAppsRequest.java new file mode 100644 index 0000000000..3a3bc8b6a9 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListWarehouseAppsRequest.java @@ -0,0 +1,193 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListWarehouseAppsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "limit") + + private Integer limit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "offset") + + private Integer offset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_status") + + private String verifyStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_category") + + private String appCategory; + + public ListWarehouseAppsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 单次查询的大小[1-100]。 + * minimum: 1 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListWarehouseAppsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询的偏移量。 + * minimum: 0 + * maximum: 2147483647 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListWarehouseAppsRequest withVerifyStatus(String verifyStatus) { + this.verifyStatus = verifyStatus; + return this; + } + + /** + * 审核状态。 + * @return verifyStatus + */ + public String getVerifyStatus() { + return verifyStatus; + } + + public void setVerifyStatus(String verifyStatus) { + this.verifyStatus = verifyStatus; + } + + public ListWarehouseAppsRequest withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 应用仓库中的应用记录ID。 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public ListWarehouseAppsRequest withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 应用名称。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public ListWarehouseAppsRequest withAppCategory(String appCategory) { + this.appCategory = appCategory; + return this; + } + + /** + * 应用分类: * `GAME`- `游戏`。 * `BUSSINESS_INTELLIGENCE`- `商业智能`。 * `SECURE_STORAGE`- `安全与存储`。 * `MULTIMEDIA_AND_CODING`- `多媒体与编解码`。 * `PROJECT_MANAGEMENT`- `项目管理`, * `PRODUCTIVITY_AND_COLLABORATION`- `生产力与协作`。 * `WEB_ADN_APPLICATION`- `网页与应用开发`。 * `GRAPHIC_DESIGN`- `图形设计`。 * `OTHER`- `其它`。 + * @return appCategory + */ + public String getAppCategory() { + return appCategory; + } + + public void setAppCategory(String appCategory) { + this.appCategory = appCategory; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListWarehouseAppsRequest that = (ListWarehouseAppsRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.verifyStatus, that.verifyStatus) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.appName, that.appName) && Objects.equals(this.appCategory, that.appCategory); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, verifyStatus, appId, appName, appCategory); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWarehouseAppsRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" verifyStatus: ").append(toIndentedString(verifyStatus)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appCategory: ").append(toIndentedString(appCategory)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListWarehouseAppsResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListWarehouseAppsResponse.java new file mode 100644 index 0000000000..9fe437e283 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ListWarehouseAppsResponse.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ListWarehouseAppsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "count") + + private Integer count; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "items") + + private List items = null; + + public ListWarehouseAppsResponse withCount(Integer count) { + this.count = count; + return this; + } + + /** + * 总数 + * minimum: 0 + * maximum: 2147483647 + * @return count + */ + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public ListWarehouseAppsResponse withItems(List items) { + this.items = items; + return this; + } + + public ListWarehouseAppsResponse addItemsItem(WarehouseApp itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + public ListWarehouseAppsResponse withItems(Consumer> itemsSetter) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + itemsSetter.accept(this.items); + return this; + } + + /** + * 应用仓库中的应用列表。 + * @return items + */ + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListWarehouseAppsResponse that = (ListWarehouseAppsResponse) obj; + return Objects.equals(this.count, that.count) && Objects.equals(this.items, that.items); + } + + @Override + public int hashCode() { + return Objects.hash(count, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWarehouseAppsResponse {\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ObsPolicyStatement.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ObsPolicyStatement.java new file mode 100644 index 0000000000..e64cda7a2d --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ObsPolicyStatement.java @@ -0,0 +1,154 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * OBS桶存放的策略内容。 + */ +public class ObsPolicyStatement { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "effect") + + private PolicyEffectEnum effect; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "action") + + private List action = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource") + + private List resource = null; + + public ObsPolicyStatement withEffect(PolicyEffectEnum effect) { + this.effect = effect; + return this; + } + + /** + * Get effect + * @return effect + */ + public PolicyEffectEnum getEffect() { + return effect; + } + + public void setEffect(PolicyEffectEnum effect) { + this.effect = effect; + } + + public ObsPolicyStatement withAction(List action) { + this.action = action; + return this; + } + + public ObsPolicyStatement addActionItem(String actionItem) { + if (this.action == null) { + this.action = new ArrayList<>(); + } + this.action.add(actionItem); + return this; + } + + public ObsPolicyStatement withAction(Consumer> actionSetter) { + if (this.action == null) { + this.action = new ArrayList<>(); + } + actionSetter.accept(this.action); + return this; + } + + /** + * 可以进行操作的权限合集。 + * @return action + */ + public List getAction() { + return action; + } + + public void setAction(List action) { + this.action = action; + } + + public ObsPolicyStatement withResource(List resource) { + this.resource = resource; + return this; + } + + public ObsPolicyStatement addResourceItem(String resourceItem) { + if (this.resource == null) { + this.resource = new ArrayList<>(); + } + this.resource.add(resourceItem); + return this; + } + + public ObsPolicyStatement withResource(Consumer> resourceSetter) { + if (this.resource == null) { + this.resource = new ArrayList<>(); + } + resourceSetter.accept(this.resource); + return this; + } + + /** + * 允许访问的资源。 + * @return resource + */ + public List getResource() { + return resource; + } + + public void setResource(List resource) { + this.resource = resource; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ObsPolicyStatement that = (ObsPolicyStatement) obj; + return Objects.equals(this.effect, that.effect) && Objects.equals(this.action, that.action) + && Objects.equals(this.resource, that.resource); + } + + @Override + public int hashCode() { + return Objects.hash(effect, action, resource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ObsPolicyStatement {\n"); + sb.append(" effect: ").append(toIndentedString(effect)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PageResp.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PageResp.java index 05927f60a7..d4a7b3acbc 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PageResp.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PageResp.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * API列表查询响应。 **⚠ 警告: 此Model不生成java代码,允许其它Model中引用,请勿直接作为Model使用** + * API列表查询响应 **⚠ 警告: 此Model不生成java代码,允许其它Model中引用,请勿直接作为Model使用** */ public class PageResp { @@ -21,7 +21,7 @@ public PageResp withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PoliciesFileAndClipboardClipboardRedirectionOptions.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PoliciesFileAndClipboardClipboardRedirectionOptions.java index a43361477c..fbf9629a04 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PoliciesFileAndClipboardClipboardRedirectionOptions.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PoliciesFileAndClipboardClipboardRedirectionOptions.java @@ -208,6 +208,26 @@ public int hashCode() { private FileClipboardRedirectionEnum fileClipboardRedirection; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clipboard_length_limit_cts_enable") + + private Boolean clipboardLengthLimitCtsEnable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clipboard_length_limit_cts") + + private Integer clipboardLengthLimitCts; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clipboard_length_limit_stc_enable") + + private Boolean clipboardLengthLimitStcEnable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clipboard_length_limit_stc") + + private Integer clipboardLengthLimitStc; + public PoliciesFileAndClipboardClipboardRedirectionOptions withRichTextRedirectionEnable( Boolean richTextRedirectionEnable) { this.richTextRedirectionEnable = richTextRedirectionEnable; @@ -280,6 +300,78 @@ public void setFileClipboardRedirection(FileClipboardRedirectionEnum fileClipboa this.fileClipboardRedirection = fileClipboardRedirection; } + public PoliciesFileAndClipboardClipboardRedirectionOptions withClipboardLengthLimitCtsEnable( + Boolean clipboardLengthLimitCtsEnable) { + this.clipboardLengthLimitCtsEnable = clipboardLengthLimitCtsEnable; + return this; + } + + /** + * 本地到虚拟机长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + * @return clipboardLengthLimitCtsEnable + */ + public Boolean getClipboardLengthLimitCtsEnable() { + return clipboardLengthLimitCtsEnable; + } + + public void setClipboardLengthLimitCtsEnable(Boolean clipboardLengthLimitCtsEnable) { + this.clipboardLengthLimitCtsEnable = clipboardLengthLimitCtsEnable; + } + + public PoliciesFileAndClipboardClipboardRedirectionOptions withClipboardLengthLimitCts( + Integer clipboardLengthLimitCts) { + this.clipboardLengthLimitCts = clipboardLengthLimitCts; + return this; + } + + /** + * 本地到虚拟机长度限制。 + * @return clipboardLengthLimitCts + */ + public Integer getClipboardLengthLimitCts() { + return clipboardLengthLimitCts; + } + + public void setClipboardLengthLimitCts(Integer clipboardLengthLimitCts) { + this.clipboardLengthLimitCts = clipboardLengthLimitCts; + } + + public PoliciesFileAndClipboardClipboardRedirectionOptions withClipboardLengthLimitStcEnable( + Boolean clipboardLengthLimitStcEnable) { + this.clipboardLengthLimitStcEnable = clipboardLengthLimitStcEnable; + return this; + } + + /** + * 虚拟机到本地到长度限制开关。取值为: false: 标识关闭。 ture: 标识开启。 + * @return clipboardLengthLimitStcEnable + */ + public Boolean getClipboardLengthLimitStcEnable() { + return clipboardLengthLimitStcEnable; + } + + public void setClipboardLengthLimitStcEnable(Boolean clipboardLengthLimitStcEnable) { + this.clipboardLengthLimitStcEnable = clipboardLengthLimitStcEnable; + } + + public PoliciesFileAndClipboardClipboardRedirectionOptions withClipboardLengthLimitStc( + Integer clipboardLengthLimitStc) { + this.clipboardLengthLimitStc = clipboardLengthLimitStc; + return this; + } + + /** + * 虚拟机到本地长度限制。 + * @return clipboardLengthLimitStc + */ + public Integer getClipboardLengthLimitStc() { + return clipboardLengthLimitStc; + } + + public void setClipboardLengthLimitStc(Integer clipboardLengthLimitStc) { + this.clipboardLengthLimitStc = clipboardLengthLimitStc; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -293,7 +385,11 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.richTextRedirectionEnable, that.richTextRedirectionEnable) && Objects.equals(this.richTextClipboardRedirection, that.richTextClipboardRedirection) && Objects.equals(this.clipboardFileRedirectionEnable, that.clipboardFileRedirectionEnable) - && Objects.equals(this.fileClipboardRedirection, that.fileClipboardRedirection); + && Objects.equals(this.fileClipboardRedirection, that.fileClipboardRedirection) + && Objects.equals(this.clipboardLengthLimitCtsEnable, that.clipboardLengthLimitCtsEnable) + && Objects.equals(this.clipboardLengthLimitCts, that.clipboardLengthLimitCts) + && Objects.equals(this.clipboardLengthLimitStcEnable, that.clipboardLengthLimitStcEnable) + && Objects.equals(this.clipboardLengthLimitStc, that.clipboardLengthLimitStc); } @Override @@ -301,7 +397,11 @@ public int hashCode() { return Objects.hash(richTextRedirectionEnable, richTextClipboardRedirection, clipboardFileRedirectionEnable, - fileClipboardRedirection); + fileClipboardRedirection, + clipboardLengthLimitCtsEnable, + clipboardLengthLimitCts, + clipboardLengthLimitStcEnable, + clipboardLengthLimitStc); } @Override @@ -316,6 +416,14 @@ public String toString() { .append(toIndentedString(clipboardFileRedirectionEnable)) .append("\n"); sb.append(" fileClipboardRedirection: ").append(toIndentedString(fileClipboardRedirection)).append("\n"); + sb.append(" clipboardLengthLimitCtsEnable: ") + .append(toIndentedString(clipboardLengthLimitCtsEnable)) + .append("\n"); + sb.append(" clipboardLengthLimitCts: ").append(toIndentedString(clipboardLengthLimitCts)).append("\n"); + sb.append(" clipboardLengthLimitStcEnable: ") + .append(toIndentedString(clipboardLengthLimitStcEnable)) + .append("\n"); + sb.append(" clipboardLengthLimitStc: ").append(toIndentedString(clipboardLengthLimitStc)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/Policy.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/Policy.java new file mode 100644 index 0000000000..0352834b2e --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/Policy.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * OBS桶存放的策略。 + */ +public class Policy { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version") + + private String version; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "statement") + + private ObsPolicyStatement statement; + + public Policy withVersion(String version) { + this.version = version; + return this; + } + + /** + * 版本号。 + * @return version + */ + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Policy withStatement(ObsPolicyStatement statement) { + this.statement = statement; + return this; + } + + public Policy withStatement(Consumer statementSetter) { + if (this.statement == null) { + this.statement = new ObsPolicyStatement(); + statementSetter.accept(this.statement); + } + + return this; + } + + /** + * Get statement + * @return statement + */ + public ObsPolicyStatement getStatement() { + return statement; + } + + public void setStatement(ObsPolicyStatement statement) { + this.statement = statement; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + Policy that = (Policy) obj; + return Objects.equals(this.version, that.version) && Objects.equals(this.statement, that.statement); + } + + @Override + public int hashCode() { + return Objects.hash(version, statement); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Policy {\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" statement: ").append(toIndentedString(statement)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PolicyEffectEnum.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PolicyEffectEnum.java new file mode 100644 index 0000000000..a3aa4a16d3 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PolicyEffectEnum.java @@ -0,0 +1,78 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * 状态(允许、禁用): * `Allow` - 允许 * `Deny` - 禁用 + */ +public class PolicyEffectEnum { + + /** + * Enum ALLOW for value: "Allow" + */ + public static final PolicyEffectEnum ALLOW = new PolicyEffectEnum("Allow"); + + /** + * Enum DENY for value: "Deny" + */ + public static final PolicyEffectEnum DENY = new PolicyEffectEnum("Deny"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("Allow", ALLOW); + map.put("Deny", DENY); + return Collections.unmodifiableMap(map); + } + + private String value; + + PolicyEffectEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PolicyEffectEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new PolicyEffectEnum(value)); + } + + public static PolicyEffectEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof PolicyEffectEnum) { + return this.value.equals(((PolicyEffectEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ProductInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ProductInfo.java index dbc24c375c..892736d767 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ProductInfo.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ProductInfo.java @@ -129,6 +129,11 @@ public class ProductInfo { private String packageType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "series_type") + + private String seriesType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "expire_time") @@ -562,6 +567,23 @@ public void setPackageType(String packageType) { this.packageType = packageType; } + public ProductInfo withSeriesType(String seriesType) { + this.seriesType = seriesType; + return this; + } + + /** + * 系列类型 + * @return seriesType + */ + public String getSeriesType() { + return seriesType; + } + + public void setSeriesType(String seriesType) { + this.seriesType = seriesType; + } + public ProductInfo withExpireTime(OffsetDateTime expireTime) { this.expireTime = expireTime; return this; @@ -620,7 +642,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.condOperationAz, that.condOperationAz) && Objects.equals(this.subProductList, that.subProductList) && Objects.equals(this.domainIds, that.domainIds) && Objects.equals(this.packageType, that.packageType) - && Objects.equals(this.expireTime, that.expireTime) + && Objects.equals(this.seriesType, that.seriesType) && Objects.equals(this.expireTime, that.expireTime) && Objects.equals(this.supportGpuType, that.supportGpuType); } @@ -649,6 +671,7 @@ public int hashCode() { subProductList, domainIds, packageType, + seriesType, expireTime, supportGpuType); } @@ -680,6 +703,7 @@ public String toString() { sb.append(" subProductList: ").append(toIndentedString(subProductList)).append("\n"); sb.append(" domainIds: ").append(toIndentedString(domainIds)).append("\n"); sb.append(" packageType: ").append(toIndentedString(packageType)).append("\n"); + sb.append(" seriesType: ").append(toIndentedString(seriesType)).append("\n"); sb.append(" expireTime: ").append(toIndentedString(expireTime)).append("\n"); sb.append(" supportGpuType: ").append(toIndentedString(supportGpuType)).append("\n"); sb.append("}"); diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PublishAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PublishAppResponse.java index 5451f1a963..4014cc3c6a 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PublishAppResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/PublishAppResponse.java @@ -30,7 +30,7 @@ public PublishAppResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RecreateServerImageRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RecreateServerImageRequest.java new file mode 100644 index 0000000000..430e86c179 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RecreateServerImageRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class RecreateServerImageRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateServerImageReq body; + + public RecreateServerImageRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 镜像实例唯一标识。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public RecreateServerImageRequest withBody(CreateServerImageReq body) { + this.body = body; + return this; + } + + public RecreateServerImageRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateServerImageReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateServerImageReq getBody() { + return body; + } + + public void setBody(CreateServerImageReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RecreateServerImageRequest that = (RecreateServerImageRequest) obj; + return Objects.equals(this.serverId, that.serverId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serverId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecreateServerImageRequest {\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RecreateServerImageResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RecreateServerImageResponse.java new file mode 100644 index 0000000000..3dd4f3d933 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RecreateServerImageResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class RecreateServerImageResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public RecreateServerImageResponse withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + RecreateServerImageResponse that = (RecreateServerImageResponse) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecreateServerImageResponse {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RoutePolicy.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RoutePolicy.java index 4e19386aa7..16c024a442 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RoutePolicy.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/RoutePolicy.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * 路由策略。 + * 路由策略 */ public class RoutePolicy { diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerDataPoints.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerDataPoints.java new file mode 100644 index 0000000000..1ebc567cc1 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerDataPoints.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 指标数据结构。 + */ +public class ServerDataPoints { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "average") + + private Double average; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "max") + + private Double max; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "min") + + private Double min; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sum") + + private Double sum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "variance") + + private Double variance; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "timestamp") + + private Long timestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "unit") + + private String unit; + + public ServerDataPoints withAverage(Double average) { + this.average = average; + return this; + } + + /** + * 聚合周期内指标数据的平均值。 + * @return average + */ + public Double getAverage() { + return average; + } + + public void setAverage(Double average) { + this.average = average; + } + + public ServerDataPoints withMax(Double max) { + this.max = max; + return this; + } + + /** + * 聚合周期内指标数据的最大值。 + * @return max + */ + public Double getMax() { + return max; + } + + public void setMax(Double max) { + this.max = max; + } + + public ServerDataPoints withMin(Double min) { + this.min = min; + return this; + } + + /** + * 聚合周期内指标数据的最小值。 + * @return min + */ + public Double getMin() { + return min; + } + + public void setMin(Double min) { + this.min = min; + } + + public ServerDataPoints withSum(Double sum) { + this.sum = sum; + return this; + } + + /** + * 聚合周期内指标数据的求和值。 + * @return sum + */ + public Double getSum() { + return sum; + } + + public void setSum(Double sum) { + this.sum = sum; + } + + public ServerDataPoints withVariance(Double variance) { + this.variance = variance; + return this; + } + + /** + * 聚合周期内指标数据的方差。 + * @return variance + */ + public Double getVariance() { + return variance; + } + + public void setVariance(Double variance) { + this.variance = variance; + } + + public ServerDataPoints withTimestamp(Long timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * 指标采集时间,UNIX时间戳,单位毫秒。 + * @return timestamp + */ + public Long getTimestamp() { + return timestamp; + } + + public void setTimestamp(Long timestamp) { + this.timestamp = timestamp; + } + + public ServerDataPoints withUnit(String unit) { + this.unit = unit; + return this; + } + + /** + * 指标单位。 + * @return unit + */ + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ServerDataPoints that = (ServerDataPoints) obj; + return Objects.equals(this.average, that.average) && Objects.equals(this.max, that.max) + && Objects.equals(this.min, that.min) && Objects.equals(this.sum, that.sum) + && Objects.equals(this.variance, that.variance) && Objects.equals(this.timestamp, that.timestamp) + && Objects.equals(this.unit, that.unit); + } + + @Override + public int hashCode() { + return Objects.hash(average, max, min, sum, variance, timestamp, unit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ServerDataPoints {\n"); + sb.append(" average: ").append(toIndentedString(average)).append("\n"); + sb.append(" max: ").append(toIndentedString(max)).append("\n"); + sb.append(" min: ").append(toIndentedString(min)).append("\n"); + sb.append(" sum: ").append(toIndentedString(sum)).append("\n"); + sb.append(" variance: ").append(toIndentedString(variance)).append("\n"); + sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerGroup.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerGroup.java index 19948631ab..03047d53c7 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerGroup.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerGroup.java @@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import java.util.function.Consumer; @@ -92,6 +94,36 @@ public class ServerGroup { private StorageFolderMountType storageMountPolicy; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "primary_server_group_ids") + + private List primaryServerGroupIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secondary_server_group_ids") + + private List secondaryServerGroupIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_group_status") + + private Boolean serverGroupStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_type") + + private String siteType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "site_id") + + private String siteId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "app_server_flavor_count") @@ -127,6 +159,11 @@ public class ServerGroup { private ScalingPolicy scalingPolicy; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ou_name") @@ -404,6 +441,140 @@ public void setStorageMountPolicy(StorageFolderMountType storageMountPolicy) { this.storageMountPolicy = storageMountPolicy; } + public ServerGroup withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 企业项目ID(0表示默认企业项目Id) + * @return enterpriseProjectId + */ + public String getEnterpriseProjectId() { + return enterpriseProjectId; + } + + public void setEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + } + + public ServerGroup withPrimaryServerGroupIds(List primaryServerGroupIds) { + this.primaryServerGroupIds = primaryServerGroupIds; + return this; + } + + public ServerGroup addPrimaryServerGroupIdsItem(String primaryServerGroupIdsItem) { + if (this.primaryServerGroupIds == null) { + this.primaryServerGroupIds = new ArrayList<>(); + } + this.primaryServerGroupIds.add(primaryServerGroupIdsItem); + return this; + } + + public ServerGroup withPrimaryServerGroupIds(Consumer> primaryServerGroupIdsSetter) { + if (this.primaryServerGroupIds == null) { + this.primaryServerGroupIds = new ArrayList<>(); + } + primaryServerGroupIdsSetter.accept(this.primaryServerGroupIds); + return this; + } + + /** + * 主服务器组id列表。 + * @return primaryServerGroupIds + */ + public List getPrimaryServerGroupIds() { + return primaryServerGroupIds; + } + + public void setPrimaryServerGroupIds(List primaryServerGroupIds) { + this.primaryServerGroupIds = primaryServerGroupIds; + } + + public ServerGroup withSecondaryServerGroupIds(List secondaryServerGroupIds) { + this.secondaryServerGroupIds = secondaryServerGroupIds; + return this; + } + + public ServerGroup addSecondaryServerGroupIdsItem(String secondaryServerGroupIdsItem) { + if (this.secondaryServerGroupIds == null) { + this.secondaryServerGroupIds = new ArrayList<>(); + } + this.secondaryServerGroupIds.add(secondaryServerGroupIdsItem); + return this; + } + + public ServerGroup withSecondaryServerGroupIds(Consumer> secondaryServerGroupIdsSetter) { + if (this.secondaryServerGroupIds == null) { + this.secondaryServerGroupIds = new ArrayList<>(); + } + secondaryServerGroupIdsSetter.accept(this.secondaryServerGroupIds); + return this; + } + + /** + * 备服务器组id列表。 + * @return secondaryServerGroupIds + */ + public List getSecondaryServerGroupIds() { + return secondaryServerGroupIds; + } + + public void setSecondaryServerGroupIds(List secondaryServerGroupIds) { + this.secondaryServerGroupIds = secondaryServerGroupIds; + } + + public ServerGroup withServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + return this; + } + + /** + * 服务器是否处于启用状态,true表示处于启用状态 false表示处于禁用状态。 + * @return serverGroupStatus + */ + public Boolean getServerGroupStatus() { + return serverGroupStatus; + } + + public void setServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + } + + public ServerGroup withSiteType(String siteType) { + this.siteType = siteType; + return this; + } + + /** + * 站点类型 - CENTER/IES + * @return siteType + */ + public String getSiteType() { + return siteType; + } + + public void setSiteType(String siteType) { + this.siteType = siteType; + } + + public ServerGroup withSiteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * 站点id + * @return siteId + */ + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + public ServerGroup withAppServerFlavorCount(Integer appServerFlavorCount) { this.appServerFlavorCount = appServerFlavorCount; return this; @@ -541,6 +712,39 @@ public void setScalingPolicy(ScalingPolicy scalingPolicy) { this.scalingPolicy = scalingPolicy; } + public ServerGroup withTags(List tags) { + this.tags = tags; + return this; + } + + public ServerGroup addTagsItem(TmsTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ServerGroup withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 标签信息 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public ServerGroup withOuName(String ouName) { this.ouName = ouName; return this; @@ -577,11 +781,17 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.appType, that.appType) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.storageMountPolicy, that.storageMountPolicy) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.primaryServerGroupIds, that.primaryServerGroupIds) + && Objects.equals(this.secondaryServerGroupIds, that.secondaryServerGroupIds) + && Objects.equals(this.serverGroupStatus, that.serverGroupStatus) + && Objects.equals(this.siteType, that.siteType) && Objects.equals(this.siteId, that.siteId) && Objects.equals(this.appServerFlavorCount, that.appServerFlavorCount) && Objects.equals(this.appServerCount, that.appServerCount) && Objects.equals(this.appGroupCount, that.appGroupCount) && Objects.equals(this.imageName, that.imageName) && Objects.equals(this.productInfo, that.productInfo) && Objects.equals(this.subnetName, that.subnetName) - && Objects.equals(this.scalingPolicy, that.scalingPolicy) && Objects.equals(this.ouName, that.ouName); + && Objects.equals(this.scalingPolicy, that.scalingPolicy) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.ouName, that.ouName); } @Override @@ -602,6 +812,12 @@ public int hashCode() { createTime, updateTime, storageMountPolicy, + enterpriseProjectId, + primaryServerGroupIds, + secondaryServerGroupIds, + serverGroupStatus, + siteType, + siteId, appServerFlavorCount, appServerCount, appGroupCount, @@ -609,6 +825,7 @@ public int hashCode() { productInfo, subnetName, scalingPolicy, + tags, ouName); } @@ -632,6 +849,12 @@ public String toString() { sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); sb.append(" storageMountPolicy: ").append(toIndentedString(storageMountPolicy)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" primaryServerGroupIds: ").append(toIndentedString(primaryServerGroupIds)).append("\n"); + sb.append(" secondaryServerGroupIds: ").append(toIndentedString(secondaryServerGroupIds)).append("\n"); + sb.append(" serverGroupStatus: ").append(toIndentedString(serverGroupStatus)).append("\n"); + sb.append(" siteType: ").append(toIndentedString(siteType)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); sb.append(" appServerFlavorCount: ").append(toIndentedString(appServerFlavorCount)).append("\n"); sb.append(" appServerCount: ").append(toIndentedString(appServerCount)).append("\n"); sb.append(" appGroupCount: ").append(toIndentedString(appGroupCount)).append("\n"); @@ -639,6 +862,7 @@ public String toString() { sb.append(" productInfo: ").append(toIndentedString(productInfo)).append("\n"); sb.append(" subnetName: ").append(toIndentedString(subnetName)).append("\n"); sb.append(" scalingPolicy: ").append(toIndentedString(scalingPolicy)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" ouName: ").append(toIndentedString(ouName)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerMetricData.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerMetricData.java new file mode 100644 index 0000000000..92e9cd28ad --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ServerMetricData.java @@ -0,0 +1,138 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 监控信息。 + */ +public class ServerMetricData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "metric_name") + + private String metricName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datapoints") + + private List datapoints = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_value") + + private String dimensionValue; + + public ServerMetricData withMetricName(String metricName) { + this.metricName = metricName; + return this; + } + + /** + * 监控指标名称。 + * @return metricName + */ + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public ServerMetricData withDatapoints(List datapoints) { + this.datapoints = datapoints; + return this; + } + + public ServerMetricData addDatapointsItem(ServerDataPoints datapointsItem) { + if (this.datapoints == null) { + this.datapoints = new ArrayList<>(); + } + this.datapoints.add(datapointsItem); + return this; + } + + public ServerMetricData withDatapoints(Consumer> datapointsSetter) { + if (this.datapoints == null) { + this.datapoints = new ArrayList<>(); + } + datapointsSetter.accept(this.datapoints); + return this; + } + + /** + * 指标数据列表。 + * @return datapoints + */ + public List getDatapoints() { + return datapoints; + } + + public void setDatapoints(List datapoints) { + this.datapoints = datapoints; + } + + public ServerMetricData withDimensionValue(String dimensionValue) { + this.dimensionValue = dimensionValue; + return this; + } + + /** + * 维度值,仅查询GPU监控信息时有值。 + * @return dimensionValue + */ + public String getDimensionValue() { + return dimensionValue; + } + + public void setDimensionValue(String dimensionValue) { + this.dimensionValue = dimensionValue; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ServerMetricData that = (ServerMetricData) obj; + return Objects.equals(this.metricName, that.metricName) && Objects.equals(this.datapoints, that.datapoints) + && Objects.equals(this.dimensionValue, that.dimensionValue); + } + + @Override + public int hashCode() { + return Objects.hash(metricName, datapoints, dimensionValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ServerMetricData {\n"); + sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); + sb.append(" datapoints: ").append(toIndentedString(datapoints)).append("\n"); + sb.append(" dimensionValue: ").append(toIndentedString(dimensionValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/SessionInfo.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/SessionInfo.java new file mode 100644 index 0000000000..a4a9ec28ea --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/SessionInfo.java @@ -0,0 +1,714 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * 会话信息。 + */ +public class SessionInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "session_stamp") + + private String sessionStamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_session_id") + + private String osSessionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "protocol_type") + + private String protocolType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "login_user") + + private String loginUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "session_type") + + private String sessionType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_server_group_id") + + private String appServerGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_server_group_name") + + private String appServerGroupName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pre_conn_time") + + private OffsetDateTime preConnTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "start_time") + + private OffsetDateTime startTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private OffsetDateTime endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status_continue_time") + + private String statusContinueTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "machine_sid") + + private String machineSid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "machine_name") + + private String machineName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "session_state") + + private String sessionState; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "client_mac") + + private String clientMac; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "client_name") + + private String clientName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "client_ip") + + private String clientIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "client_version") + + private String clientVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "client_type") + + private String clientType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "agent_version") + + private String agentVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vm_ip") + + private String vmIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "failed_reason") + + private String failedReason; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "failed_code") + + private String failedCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "last_update_status_time") + + private OffsetDateTime lastUpdateStatusTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tenant_id") + + private String tenantId; + + public SessionInfo withId(String id) { + this.id = id; + return this; + } + + /** + * 主键ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SessionInfo withSessionStamp(String sessionStamp) { + this.sessionStamp = sessionStamp; + return this; + } + + /** + * 会话标识。 + * @return sessionStamp + */ + public String getSessionStamp() { + return sessionStamp; + } + + public void setSessionStamp(String sessionStamp) { + this.sessionStamp = sessionStamp; + } + + public SessionInfo withOsSessionId(String osSessionId) { + this.osSessionId = osSessionId; + return this; + } + + /** + * 会话在hda的os中会话id。 + * @return osSessionId + */ + public String getOsSessionId() { + return osSessionId; + } + + public void setOsSessionId(String osSessionId) { + this.osSessionId = osSessionId; + } + + public SessionInfo withProtocolType(String protocolType) { + this.protocolType = protocolType; + return this; + } + + /** + * 协议类型。 + * @return protocolType + */ + public String getProtocolType() { + return protocolType; + } + + public void setProtocolType(String protocolType) { + this.protocolType = protocolType; + } + + public SessionInfo withLoginUser(String loginUser) { + this.loginUser = loginUser; + return this; + } + + /** + * 当前会话的登录用户。 + * @return loginUser + */ + public String getLoginUser() { + return loginUser; + } + + public void setLoginUser(String loginUser) { + this.loginUser = loginUser; + } + + public SessionInfo withSessionType(String sessionType) { + this.sessionType = sessionType; + return this; + } + + /** + * 会话类型,1表示共享桌面,2表示应用。 + * @return sessionType + */ + public String getSessionType() { + return sessionType; + } + + public void setSessionType(String sessionType) { + this.sessionType = sessionType; + } + + public SessionInfo withAppServerGroupId(String appServerGroupId) { + this.appServerGroupId = appServerGroupId; + return this; + } + + /** + * AppServer组ID。 + * @return appServerGroupId + */ + public String getAppServerGroupId() { + return appServerGroupId; + } + + public void setAppServerGroupId(String appServerGroupId) { + this.appServerGroupId = appServerGroupId; + } + + public SessionInfo withAppServerGroupName(String appServerGroupName) { + this.appServerGroupName = appServerGroupName; + return this; + } + + /** + * AppServer组名称。 + * @return appServerGroupName + */ + public String getAppServerGroupName() { + return appServerGroupName; + } + + public void setAppServerGroupName(String appServerGroupName) { + this.appServerGroupName = appServerGroupName; + } + + public SessionInfo withPreConnTime(OffsetDateTime preConnTime) { + this.preConnTime = preConnTime; + return this; + } + + /** + * 预连接时间。 + * @return preConnTime + */ + public OffsetDateTime getPreConnTime() { + return preConnTime; + } + + public void setPreConnTime(OffsetDateTime preConnTime) { + this.preConnTime = preConnTime; + } + + public SessionInfo withStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * 会话开始时间。 + * @return startTime + */ + public OffsetDateTime getStartTime() { + return startTime; + } + + public void setStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + } + + public SessionInfo withEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * 会话结束时间。 + * @return endTime + */ + public OffsetDateTime getEndTime() { + return endTime; + } + + public void setEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + } + + public SessionInfo withStatusContinueTime(String statusContinueTime) { + this.statusContinueTime = statusContinueTime; + return this; + } + + /** + * 状态持续时间。 + * @return statusContinueTime + */ + public String getStatusContinueTime() { + return statusContinueTime; + } + + public void setStatusContinueTime(String statusContinueTime) { + this.statusContinueTime = statusContinueTime; + } + + public SessionInfo withMachineSid(String machineSid) { + this.machineSid = machineSid; + return this; + } + + /** + * 服务器SID。 + * @return machineSid + */ + public String getMachineSid() { + return machineSid; + } + + public void setMachineSid(String machineSid) { + this.machineSid = machineSid; + } + + public SessionInfo withMachineName(String machineName) { + this.machineName = machineName; + return this; + } + + /** + * 服务器名称。 + * @return machineName + */ + public String getMachineName() { + return machineName; + } + + public void setMachineName(String machineName) { + this.machineName = machineName; + } + + public SessionInfo withSessionState(String sessionState) { + this.sessionState = sessionState; + return this; + } + + /** + * 会话状态。 + * @return sessionState + */ + public String getSessionState() { + return sessionState; + } + + public void setSessionState(String sessionState) { + this.sessionState = sessionState; + } + + public SessionInfo withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 会话中的应用名称。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public SessionInfo withClientMac(String clientMac) { + this.clientMac = clientMac; + return this; + } + + /** + * 客户端Mac地址。 + * @return clientMac + */ + public String getClientMac() { + return clientMac; + } + + public void setClientMac(String clientMac) { + this.clientMac = clientMac; + } + + public SessionInfo withClientName(String clientName) { + this.clientName = clientName; + return this; + } + + /** + * 客户端名称。 + * @return clientName + */ + public String getClientName() { + return clientName; + } + + public void setClientName(String clientName) { + this.clientName = clientName; + } + + public SessionInfo withClientIp(String clientIp) { + this.clientIp = clientIp; + return this; + } + + /** + * 客户端IP。 + * @return clientIp + */ + public String getClientIp() { + return clientIp; + } + + public void setClientIp(String clientIp) { + this.clientIp = clientIp; + } + + public SessionInfo withClientVersion(String clientVersion) { + this.clientVersion = clientVersion; + return this; + } + + /** + * 客户端版本。 + * @return clientVersion + */ + public String getClientVersion() { + return clientVersion; + } + + public void setClientVersion(String clientVersion) { + this.clientVersion = clientVersion; + } + + public SessionInfo withClientType(String clientType) { + this.clientType = clientType; + return this; + } + + /** + * 客户端类型。 + * @return clientType + */ + public String getClientType() { + return clientType; + } + + public void setClientType(String clientType) { + this.clientType = clientType; + } + + public SessionInfo withAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + /** + * agent版本。 + * @return agentVersion + */ + public String getAgentVersion() { + return agentVersion; + } + + public void setAgentVersion(String agentVersion) { + this.agentVersion = agentVersion; + } + + public SessionInfo withVmIp(String vmIp) { + this.vmIp = vmIp; + return this; + } + + /** + * 服务器IP。 + * @return vmIp + */ + public String getVmIp() { + return vmIp; + } + + public void setVmIp(String vmIp) { + this.vmIp = vmIp; + } + + public SessionInfo withFailedReason(String failedReason) { + this.failedReason = failedReason; + return this; + } + + /** + * 错误原因消息。 + * @return failedReason + */ + public String getFailedReason() { + return failedReason; + } + + public void setFailedReason(String failedReason) { + this.failedReason = failedReason; + } + + public SessionInfo withFailedCode(String failedCode) { + this.failedCode = failedCode; + return this; + } + + /** + * 错误原因码。 + * @return failedCode + */ + public String getFailedCode() { + return failedCode; + } + + public void setFailedCode(String failedCode) { + this.failedCode = failedCode; + } + + public SessionInfo withLastUpdateStatusTime(OffsetDateTime lastUpdateStatusTime) { + this.lastUpdateStatusTime = lastUpdateStatusTime; + return this; + } + + /** + * 状态最后变化时间。 + * @return lastUpdateStatusTime + */ + public OffsetDateTime getLastUpdateStatusTime() { + return lastUpdateStatusTime; + } + + public void setLastUpdateStatusTime(OffsetDateTime lastUpdateStatusTime) { + this.lastUpdateStatusTime = lastUpdateStatusTime; + } + + public SessionInfo withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * 租户ID。 + * @return tenantId + */ + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SessionInfo that = (SessionInfo) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.sessionStamp, that.sessionStamp) + && Objects.equals(this.osSessionId, that.osSessionId) + && Objects.equals(this.protocolType, that.protocolType) && Objects.equals(this.loginUser, that.loginUser) + && Objects.equals(this.sessionType, that.sessionType) + && Objects.equals(this.appServerGroupId, that.appServerGroupId) + && Objects.equals(this.appServerGroupName, that.appServerGroupName) + && Objects.equals(this.preConnTime, that.preConnTime) && Objects.equals(this.startTime, that.startTime) + && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.statusContinueTime, that.statusContinueTime) + && Objects.equals(this.machineSid, that.machineSid) && Objects.equals(this.machineName, that.machineName) + && Objects.equals(this.sessionState, that.sessionState) && Objects.equals(this.appName, that.appName) + && Objects.equals(this.clientMac, that.clientMac) && Objects.equals(this.clientName, that.clientName) + && Objects.equals(this.clientIp, that.clientIp) && Objects.equals(this.clientVersion, that.clientVersion) + && Objects.equals(this.clientType, that.clientType) && Objects.equals(this.agentVersion, that.agentVersion) + && Objects.equals(this.vmIp, that.vmIp) && Objects.equals(this.failedReason, that.failedReason) + && Objects.equals(this.failedCode, that.failedCode) + && Objects.equals(this.lastUpdateStatusTime, that.lastUpdateStatusTime) + && Objects.equals(this.tenantId, that.tenantId); + } + + @Override + public int hashCode() { + return Objects.hash(id, + sessionStamp, + osSessionId, + protocolType, + loginUser, + sessionType, + appServerGroupId, + appServerGroupName, + preConnTime, + startTime, + endTime, + statusContinueTime, + machineSid, + machineName, + sessionState, + appName, + clientMac, + clientName, + clientIp, + clientVersion, + clientType, + agentVersion, + vmIp, + failedReason, + failedCode, + lastUpdateStatusTime, + tenantId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SessionInfo {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" sessionStamp: ").append(toIndentedString(sessionStamp)).append("\n"); + sb.append(" osSessionId: ").append(toIndentedString(osSessionId)).append("\n"); + sb.append(" protocolType: ").append(toIndentedString(protocolType)).append("\n"); + sb.append(" loginUser: ").append(toIndentedString(loginUser)).append("\n"); + sb.append(" sessionType: ").append(toIndentedString(sessionType)).append("\n"); + sb.append(" appServerGroupId: ").append(toIndentedString(appServerGroupId)).append("\n"); + sb.append(" appServerGroupName: ").append(toIndentedString(appServerGroupName)).append("\n"); + sb.append(" preConnTime: ").append(toIndentedString(preConnTime)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" statusContinueTime: ").append(toIndentedString(statusContinueTime)).append("\n"); + sb.append(" machineSid: ").append(toIndentedString(machineSid)).append("\n"); + sb.append(" machineName: ").append(toIndentedString(machineName)).append("\n"); + sb.append(" sessionState: ").append(toIndentedString(sessionState)).append("\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" clientMac: ").append(toIndentedString(clientMac)).append("\n"); + sb.append(" clientName: ").append(toIndentedString(clientName)).append("\n"); + sb.append(" clientIp: ").append(toIndentedString(clientIp)).append("\n"); + sb.append(" clientVersion: ").append(toIndentedString(clientVersion)).append("\n"); + sb.append(" clientType: ").append(toIndentedString(clientType)).append("\n"); + sb.append(" agentVersion: ").append(toIndentedString(agentVersion)).append("\n"); + sb.append(" vmIp: ").append(toIndentedString(vmIp)).append("\n"); + sb.append(" failedReason: ").append(toIndentedString(failedReason)).append("\n"); + sb.append(" failedCode: ").append(toIndentedString(failedCode)).append("\n"); + sb.append(" lastUpdateStatusTime: ").append(toIndentedString(lastUpdateStatusTime)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowImageJobRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowImageJobRequest.java new file mode 100644 index 0000000000..b102080935 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowImageJobRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowImageJobRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + + public ShowImageJobRequest withJobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * 任务ID。 + * @return jobId + */ + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowImageJobRequest that = (ShowImageJobRequest) obj; + return Objects.equals(this.jobId, that.jobId); + } + + @Override + public int hashCode() { + return Objects.hash(jobId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowImageJobRequest {\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowImageJobResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowImageJobResponse.java new file mode 100644 index 0000000000..9d6f971783 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowImageJobResponse.java @@ -0,0 +1,234 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Response Object + */ +public class ShowImageJobResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_type") + + private ImageJobType jobType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "begin_time") + + private OffsetDateTime beginTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "end_time") + + private OffsetDateTime endTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private ImageJobStatus status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_jobs_total") + + private Integer subJobsTotal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sub_jobs") + + private List subJobs = null; + + public ShowImageJobResponse withId(String id) { + this.id = id; + return this; + } + + /** + * 任务ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ShowImageJobResponse withJobType(ImageJobType jobType) { + this.jobType = jobType; + return this; + } + + /** + * Get jobType + * @return jobType + */ + public ImageJobType getJobType() { + return jobType; + } + + public void setJobType(ImageJobType jobType) { + this.jobType = jobType; + } + + public ShowImageJobResponse withBeginTime(OffsetDateTime beginTime) { + this.beginTime = beginTime; + return this; + } + + /** + * 任务创建时间。 + * @return beginTime + */ + public OffsetDateTime getBeginTime() { + return beginTime; + } + + public void setBeginTime(OffsetDateTime beginTime) { + this.beginTime = beginTime; + } + + public ShowImageJobResponse withEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + return this; + } + + /** + * 任务结束时间。 + * @return endTime + */ + public OffsetDateTime getEndTime() { + return endTime; + } + + public void setEndTime(OffsetDateTime endTime) { + this.endTime = endTime; + } + + public ShowImageJobResponse withStatus(ImageJobStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public ImageJobStatus getStatus() { + return status; + } + + public void setStatus(ImageJobStatus status) { + this.status = status; + } + + public ShowImageJobResponse withSubJobsTotal(Integer subJobsTotal) { + this.subJobsTotal = subJobsTotal; + return this; + } + + /** + * 子任务总数。 + * @return subJobsTotal + */ + public Integer getSubJobsTotal() { + return subJobsTotal; + } + + public void setSubJobsTotal(Integer subJobsTotal) { + this.subJobsTotal = subJobsTotal; + } + + public ShowImageJobResponse withSubJobs(List subJobs) { + this.subJobs = subJobs; + return this; + } + + public ShowImageJobResponse addSubJobsItem(ImageJobDetailInfo subJobsItem) { + if (this.subJobs == null) { + this.subJobs = new ArrayList<>(); + } + this.subJobs.add(subJobsItem); + return this; + } + + public ShowImageJobResponse withSubJobs(Consumer> subJobsSetter) { + if (this.subJobs == null) { + this.subJobs = new ArrayList<>(); + } + subJobsSetter.accept(this.subJobs); + return this; + } + + /** + * 子任务列表 + * @return subJobs + */ + public List getSubJobs() { + return subJobs; + } + + public void setSubJobs(List subJobs) { + this.subJobs = subJobs; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowImageJobResponse that = (ShowImageJobResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.jobType, that.jobType) + && Objects.equals(this.beginTime, that.beginTime) && Objects.equals(this.endTime, that.endTime) + && Objects.equals(this.status, that.status) && Objects.equals(this.subJobsTotal, that.subJobsTotal) + && Objects.equals(this.subJobs, that.subJobs); + } + + @Override + public int hashCode() { + return Objects.hash(id, jobType, beginTime, endTime, status, subJobsTotal, subJobs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowImageJobResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" jobType: ").append(toIndentedString(jobType)).append("\n"); + sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" subJobsTotal: ").append(toIndentedString(subJobsTotal)).append("\n"); + sb.append(" subJobs: ").append(toIndentedString(subJobs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowPublishableAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowPublishableAppResponse.java index b451e1c447..50da4ddd5e 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowPublishableAppResponse.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowPublishableAppResponse.java @@ -35,7 +35,7 @@ public ShowPublishableAppResponse withCount(Integer count) { } /** - * 总数。 + * 总数 * minimum: 0 * maximum: 2147483647 * @return count diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowServerVncRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowServerVncRequest.java new file mode 100644 index 0000000000..b79586a8a1 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowServerVncRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowServerVncRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + public ShowServerVncRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 服务器唯一标识。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowServerVncRequest that = (ShowServerVncRequest) obj; + return Objects.equals(this.serverId, that.serverId); + } + + @Override + public int hashCode() { + return Objects.hash(serverId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowServerVncRequest {\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowServerVncResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowServerVncResponse.java new file mode 100644 index 0000000000..262e8a5a57 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/ShowServerVncResponse.java @@ -0,0 +1,120 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class ShowServerVncResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "url") + + private String url; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "protocol") + + private String protocol; + + public ShowServerVncResponse withType(String type) { + this.type = type; + return this; + } + + /** + * 登录类型: * `novnc` * `vnc` + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ShowServerVncResponse withUrl(String url) { + this.url = url; + return this; + } + + /** + * 远程登录控制台地址。 + * @return url + */ + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public ShowServerVncResponse withProtocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * 登录协议。 + * @return protocol + */ + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowServerVncResponse that = (ShowServerVncResponse) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.url, that.url) + && Objects.equals(this.protocol, that.protocol); + } + + @Override + public int hashCode() { + return Objects.hash(type, url, protocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowServerVncResponse {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/StringSet.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/StringSet.java index 81f9985ed7..b01a91515c 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/StringSet.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/StringSet.java @@ -9,7 +9,7 @@ import java.util.function.Consumer; /** - * API批量唯一标识列表。 **⚠ 警告: 此Model不生成java代码,允许其它Model中引用,请勿直接作为Model使用** + * API批量唯一标识列表 **⚠ 警告: 此Model不生成java代码,允许其它Model中引用,请勿直接作为Model使用** */ public class StringSet { @@ -40,7 +40,7 @@ public StringSet withItems(Consumer> itemsSetter) { } /** - * 批量唯一标识请求列表,一次请求数量区间 [1, 20]。 + * 批量唯一标识请求列表,一次请求数量区间 [1, 20] * @return items */ public List getItems() { diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/TmsTag.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/TmsTag.java new file mode 100644 index 0000000000..3e0a4be634 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/TmsTag.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * tms标签 + */ +public class TmsTag { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public TmsTag withKey(String key) { + this.key = key; + return this; + } + + /** + * 键。最大长度128个unicode字符。 + * @return key + */ + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public TmsTag withValue(String value) { + this.value = value; + return this; + } + + /** + * 值。每个值最大长度255个unicode字符。 + * @return value + */ + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TmsTag that = (TmsTag) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(key, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TmsTag {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerReq.java new file mode 100644 index 0000000000..1ae76290d1 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerReq.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 更新镜像实例请求。 + */ +public class UpdateImageServerReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public UpdateImageServerReq withName(String name) { + this.name = name; + return this; + } + + /** + * 镜像实例名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成,不能有空格。 2. 长度范围1~64个字符。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateImageServerReq withDescription(String description) { + this.description = description; + return this; + } + + /** + * 服务器组描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateImageServerReq that = (UpdateImageServerReq) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description); + } + + @Override + public int hashCode() { + return Objects.hash(name, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateImageServerReq {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerRequest.java new file mode 100644 index 0000000000..62b4852f9a --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateImageServerRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateImageServerReq body; + + public UpdateImageServerRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 镜像实例唯一标识。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public UpdateImageServerRequest withBody(UpdateImageServerReq body) { + this.body = body; + return this; + } + + public UpdateImageServerRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateImageServerReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateImageServerReq getBody() { + return body; + } + + public void setBody(UpdateImageServerReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateImageServerRequest that = (UpdateImageServerRequest) obj; + return Objects.equals(this.serverId, that.serverId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(serverId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateImageServerRequest {\n"); + sb.append(" serverId: ").append(toIndentedString(serverId)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerResponse.java new file mode 100644 index 0000000000..d120faa39a --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateImageServerResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateImageServerResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateImageServerResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateServerGroupReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateServerGroupReq.java index 61fdca671a..5112167b51 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateServerGroupReq.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateServerGroupReq.java @@ -66,6 +66,11 @@ public class UpdateServerGroupReq { private AppTypeEnum appType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_group_status") + + private Boolean serverGroupStatus; + public UpdateServerGroupReq withName(String name) { this.name = name; return this; @@ -264,6 +269,23 @@ public void setAppType(AppTypeEnum appType) { this.appType = appType; } + public UpdateServerGroupReq withServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + return this; + } + + /** + * 服务器是否处于禁用状态: * `true` - 启用状态 * `false` - 禁用状态 + * @return serverGroupStatus + */ + public Boolean getServerGroupStatus() { + return serverGroupStatus; + } + + public void setServerGroupStatus(Boolean serverGroupStatus) { + this.serverGroupStatus = serverGroupStatus; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -280,7 +302,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.imageType, that.imageType) && Objects.equals(this.systemDiskType, that.systemDiskType) && Objects.equals(this.systemDiskSize, that.systemDiskSize) && Objects.equals(this.ouName, that.ouName) - && Objects.equals(this.appType, that.appType); + && Objects.equals(this.appType, that.appType) + && Objects.equals(this.serverGroupStatus, that.serverGroupStatus); } @Override @@ -295,7 +318,8 @@ public int hashCode() { systemDiskType, systemDiskSize, ouName, - appType); + appType, + serverGroupStatus); } @Override @@ -313,6 +337,7 @@ public String toString() { sb.append(" systemDiskSize: ").append(toIndentedString(systemDiskSize)).append("\n"); sb.append(" ouName: ").append(toIndentedString(ouName)).append("\n"); sb.append(" appType: ").append(toIndentedString(appType)).append("\n"); + sb.append(" serverGroupStatus: ").append(toIndentedString(serverGroupStatus)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppReq.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppReq.java new file mode 100644 index 0000000000..06cd8c2ba6 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppReq.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改应用仓库中的应用信息。 + */ +public class UpdateWarehouseAppReq { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_category") + + private AppCategoryEnum appCategory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_type") + + private OsTypeEnum osType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_id") + + private String versionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_description") + + private String appDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_icon") + + private String appIcon; + + public UpdateWarehouseAppReq withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 应用名称,名称需满足如下规则: 1. 由中文,英文大小写,数字,_-组成。 2. 长度范围1~64个字符。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public UpdateWarehouseAppReq withAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + return this; + } + + /** + * Get appCategory + * @return appCategory + */ + public AppCategoryEnum getAppCategory() { + return appCategory; + } + + public void setAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + } + + public UpdateWarehouseAppReq withOsType(OsTypeEnum osType) { + this.osType = osType; + return this; + } + + /** + * Get osType + * @return osType + */ + public OsTypeEnum getOsType() { + return osType; + } + + public void setOsType(OsTypeEnum osType) { + this.osType = osType; + } + + public UpdateWarehouseAppReq withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * 版本号,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~64个字符。 + * @return versionId + */ + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public UpdateWarehouseAppReq withAppDescription(String appDescription) { + this.appDescription = appDescription; + return this; + } + + /** + * 应用仓库中的应用描述。 + * @return appDescription + */ + public String getAppDescription() { + return appDescription; + } + + public void setAppDescription(String appDescription) { + this.appDescription = appDescription; + } + + public UpdateWarehouseAppReq withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 版本描述,名称需满足如下规则: 1. 由可见字符组成。 2. 长度范围1~255个字符。 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public UpdateWarehouseAppReq withAppIcon(String appIcon) { + this.appIcon = appIcon; + return this; + } + + /** + * > - 图片的默认大小当前限制为8KB,即1024 * 8字节。 > - 如果数据格式为data;image/png;base64,iVBORw0KGgoAAAANS时实际大小约为字段约为:size * 4/3 + 4bytes。 + * @return appIcon + */ + public String getAppIcon() { + return appIcon; + } + + public void setAppIcon(String appIcon) { + this.appIcon = appIcon; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateWarehouseAppReq that = (UpdateWarehouseAppReq) obj; + return Objects.equals(this.appName, that.appName) && Objects.equals(this.appCategory, that.appCategory) + && Objects.equals(this.osType, that.osType) && Objects.equals(this.versionId, that.versionId) + && Objects.equals(this.appDescription, that.appDescription) + && Objects.equals(this.versionName, that.versionName) && Objects.equals(this.appIcon, that.appIcon); + } + + @Override + public int hashCode() { + return Objects.hash(appName, appCategory, osType, versionId, appDescription, versionName, appIcon); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWarehouseAppReq {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appCategory: ").append(toIndentedString(appCategory)).append("\n"); + sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" appDescription: ").append(toIndentedString(appDescription)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append(" appIcon: ").append(toIndentedString(appIcon)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppRequest.java new file mode 100644 index 0000000000..c94c4bea4c --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UpdateWarehouseAppRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateWarehouseAppReq body; + + public UpdateWarehouseAppRequest withId(String id) { + this.id = id; + return this; + } + + /** + * 应用仓库中的应用记录ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public UpdateWarehouseAppRequest withBody(UpdateWarehouseAppReq body) { + this.body = body; + return this; + } + + public UpdateWarehouseAppRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateWarehouseAppReq(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateWarehouseAppReq getBody() { + return body; + } + + public void setBody(UpdateWarehouseAppReq body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateWarehouseAppRequest that = (UpdateWarehouseAppRequest) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(id, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWarehouseAppRequest {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppResponse.java new file mode 100644 index 0000000000..21274c2005 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UpdateWarehouseAppResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UpdateWarehouseAppResponse extends SdkResponse { + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWarehouseAppResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconRequest.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconRequest.java new file mode 100644 index 0000000000..59d5a1295d --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class UploadWarehouseAppIconRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UploadWarehouseAppIconRequestBody body; + + public UploadWarehouseAppIconRequest withBody(UploadWarehouseAppIconRequestBody body) { + this.body = body; + return this; + } + + public UploadWarehouseAppIconRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UploadWarehouseAppIconRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UploadWarehouseAppIconRequestBody getBody() { + return body; + } + + public void setBody(UploadWarehouseAppIconRequestBody body) { + this.body = body; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UploadWarehouseAppIconRequest that = (UploadWarehouseAppIconRequest) obj; + return Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadWarehouseAppIconRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconRequestBody.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconRequestBody.java new file mode 100644 index 0000000000..380061079c --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconRequestBody.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.http.FormDataFilePart; +import com.huaweicloud.sdk.core.http.FormDataPart; +import com.huaweicloud.sdk.core.http.SdkFormDataBody; + +import java.io.InputStream; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * UploadWarehouseAppIconRequestBody + */ +public class UploadWarehouseAppIconRequestBody implements SdkFormDataBody { + + @JsonProperty(value = "data", access = JsonProperty.Access.WRITE_ONLY) + + private FormDataFilePart data; + + public UploadWarehouseAppIconRequestBody withData(FormDataFilePart data) { + this.data = data; + return this; + } + + /** + * 应用图标,png格式,限制大小8KB。 + * @return data + */ + public FormDataFilePart getData() { + return data; + } + + public void setData(FormDataFilePart data) { + this.data = data; + } + + public UploadWarehouseAppIconRequestBody withData(InputStream inputStream, String fileName, String contentType) { + this.data = new FormDataFilePart(inputStream, fileName).withContentType(contentType); + return this; + } + + public UploadWarehouseAppIconRequestBody withData(InputStream inputStream, String fileName) { + this.data = new FormDataFilePart(inputStream, fileName); + return this; + } + + public UploadWarehouseAppIconRequestBody withData(InputStream inputStream, String fileName, + Map headers) { + this.data = new FormDataFilePart(inputStream, fileName).withHeaders(headers); + return this; + } + + @Override + public Map> buildFormData() { + return new LinkedHashMap>() { + + private static final long serialVersionUID = 1L; + { + if (data != null) { + put("data", data); + } + } + }; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UploadWarehouseAppIconRequestBody that = (UploadWarehouseAppIconRequestBody) obj; + return Objects.equals(this.data, that.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadWarehouseAppIconRequestBody {\n"); + sb.append(" data: ").append(toIndentedString("[resource:will-not-print]")).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconResponse.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconResponse.java new file mode 100644 index 0000000000..e85fb754ce --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UploadWarehouseAppIconResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class UploadWarehouseAppIconResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "appicon_store_path") + + private String appiconStorePath; + + public UploadWarehouseAppIconResponse withAppiconStorePath(String appiconStorePath) { + this.appiconStorePath = appiconStorePath; + return this; + } + + /** + * 图标文件在obs桶经过cdn加速以后的地址。 + * @return appiconStorePath + */ + public String getAppiconStorePath() { + return appiconStorePath; + } + + public void setAppiconStorePath(String appiconStorePath) { + this.appiconStorePath = appiconStorePath; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UploadWarehouseAppIconResponse that = (UploadWarehouseAppIconResponse) obj; + return Objects.equals(this.appiconStorePath, that.appiconStorePath); + } + + @Override + public int hashCode() { + return Objects.hash(appiconStorePath); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadWarehouseAppIconResponse {\n"); + sb.append(" appiconStorePath: ").append(toIndentedString(appiconStorePath)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UsbPortRedirectionOptions.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UsbPortRedirectionOptions.java index 17779b7178..e10bb63b82 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UsbPortRedirectionOptions.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/UsbPortRedirectionOptions.java @@ -226,7 +226,7 @@ public UsbPortRedirectionOptions withNetworkDevicesEnable(Boolean networkDevices } /** - * 是否开启网路设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 + * 是否开启网络设备(如:无线网卡)。取值为: - false:表示关闭。 - true:表示开启。 * @return networkDevicesEnable */ public Boolean getNetworkDevicesEnable() { diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/VerifyStatusEnum.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/VerifyStatusEnum.java new file mode 100644 index 0000000000..8ae23be0d3 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/VerifyStatusEnum.java @@ -0,0 +1,84 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * 审核状态: * `VERIFYING` - 审核中 * `VERIFY_PASS` - 审核通过 * `Verify_FAIL` - 审核不通过 + */ +public class VerifyStatusEnum { + + /** + * Enum VERIFYING for value: "VERIFYING" + */ + public static final VerifyStatusEnum VERIFYING = new VerifyStatusEnum("VERIFYING"); + + /** + * Enum VERIFY_PASS for value: "VERIFY_PASS" + */ + public static final VerifyStatusEnum VERIFY_PASS = new VerifyStatusEnum("VERIFY_PASS"); + + /** + * Enum VERIFY_FAIL for value: "Verify_FAIL" + */ + public static final VerifyStatusEnum VERIFY_FAIL = new VerifyStatusEnum("Verify_FAIL"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("VERIFYING", VERIFYING); + map.put("VERIFY_PASS", VERIFY_PASS); + map.put("Verify_FAIL", VERIFY_FAIL); + return Collections.unmodifiableMap(map); + } + + private String value; + + VerifyStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static VerifyStatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new VerifyStatusEnum(value)); + } + + public static VerifyStatusEnum valueOf(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) + .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); + } + + @Override + public boolean equals(Object obj) { + if (obj instanceof VerifyStatusEnum) { + return this.value.equals(((VerifyStatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/WarehouseApp.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/WarehouseApp.java new file mode 100644 index 0000000000..802b873785 --- /dev/null +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/WarehouseApp.java @@ -0,0 +1,491 @@ +package com.huaweicloud.sdk.workspaceapp.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * 应用仓库中的应用详细信息。 + */ +public class WarehouseApp { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_id") + + private String appId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tenant_id") + + private String tenantId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_category") + + private AppCategoryEnum appCategory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "os_type") + + private OsTypeEnum osType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_id") + + private String versionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "version_name") + + private String versionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "appfile_store_path") + + private String appfileStorePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_file_size") + + private String appFileSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_description") + + private String appDescription; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "appicon_store_path") + + private String appiconStorePath; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "modify_time") + + private OffsetDateTime modifyTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_time") + + private OffsetDateTime verifyTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_status") + + private VerifyStatusEnum verifyStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_comment") + + private String verifyComment; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_icon") + + private String appIcon; + + public WarehouseApp withId(String id) { + this.id = id; + return this; + } + + /** + * 应用的记录id。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public WarehouseApp withAppId(String appId) { + this.appId = appId; + return this; + } + + /** + * 应用id。 + * @return appId + */ + public String getAppId() { + return appId; + } + + public void setAppId(String appId) { + this.appId = appId; + } + + public WarehouseApp withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * 租户id。 + * @return tenantId + */ + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + + public WarehouseApp withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 应用名称。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public WarehouseApp withAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + return this; + } + + /** + * Get appCategory + * @return appCategory + */ + public AppCategoryEnum getAppCategory() { + return appCategory; + } + + public void setAppCategory(AppCategoryEnum appCategory) { + this.appCategory = appCategory; + } + + public WarehouseApp withOsType(OsTypeEnum osType) { + this.osType = osType; + return this; + } + + /** + * Get osType + * @return osType + */ + public OsTypeEnum getOsType() { + return osType; + } + + public void setOsType(OsTypeEnum osType) { + this.osType = osType; + } + + public WarehouseApp withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + /** + * 版本号。 + * @return versionId + */ + public String getVersionId() { + return versionId; + } + + public void setVersionId(String versionId) { + this.versionId = versionId; + } + + public WarehouseApp withVersionName(String versionName) { + this.versionName = versionName; + return this; + } + + /** + * 版本名称。 + * @return versionName + */ + public String getVersionName() { + return versionName; + } + + public void setVersionName(String versionName) { + this.versionName = versionName; + } + + public WarehouseApp withAppfileStorePath(String appfileStorePath) { + this.appfileStorePath = appfileStorePath; + return this; + } + + /** + * 应用文件的存放路径。 + * @return appfileStorePath + */ + public String getAppfileStorePath() { + return appfileStorePath; + } + + public void setAppfileStorePath(String appfileStorePath) { + this.appfileStorePath = appfileStorePath; + } + + public WarehouseApp withAppFileSize(String appFileSize) { + this.appFileSize = appFileSize; + return this; + } + + /** + * 应用文件的大小,以KB为单位。 + * @return appFileSize + */ + public String getAppFileSize() { + return appFileSize; + } + + public void setAppFileSize(String appFileSize) { + this.appFileSize = appFileSize; + } + + public WarehouseApp withAppDescription(String appDescription) { + this.appDescription = appDescription; + return this; + } + + /** + * 应用描述。 + * @return appDescription + */ + public String getAppDescription() { + return appDescription; + } + + public void setAppDescription(String appDescription) { + this.appDescription = appDescription; + } + + public WarehouseApp withAppiconStorePath(String appiconStorePath) { + this.appiconStorePath = appiconStorePath; + return this; + } + + /** + * 应用文件的存放路径。 + * @return appiconStorePath + */ + public String getAppiconStorePath() { + return appiconStorePath; + } + + public void setAppiconStorePath(String appiconStorePath) { + this.appiconStorePath = appiconStorePath; + } + + public WarehouseApp withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 应用创建时间。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public WarehouseApp withModifyTime(OffsetDateTime modifyTime) { + this.modifyTime = modifyTime; + return this; + } + + /** + * 应用修改时间。 + * @return modifyTime + */ + public OffsetDateTime getModifyTime() { + return modifyTime; + } + + public void setModifyTime(OffsetDateTime modifyTime) { + this.modifyTime = modifyTime; + } + + public WarehouseApp withVerifyTime(OffsetDateTime verifyTime) { + this.verifyTime = verifyTime; + return this; + } + + /** + * 应用审核时间。 + * @return verifyTime + */ + public OffsetDateTime getVerifyTime() { + return verifyTime; + } + + public void setVerifyTime(OffsetDateTime verifyTime) { + this.verifyTime = verifyTime; + } + + public WarehouseApp withVerifyStatus(VerifyStatusEnum verifyStatus) { + this.verifyStatus = verifyStatus; + return this; + } + + /** + * Get verifyStatus + * @return verifyStatus + */ + public VerifyStatusEnum getVerifyStatus() { + return verifyStatus; + } + + public void setVerifyStatus(VerifyStatusEnum verifyStatus) { + this.verifyStatus = verifyStatus; + } + + public WarehouseApp withVerifyComment(String verifyComment) { + this.verifyComment = verifyComment; + return this; + } + + /** + * 审核的评论意见。 + * @return verifyComment + */ + public String getVerifyComment() { + return verifyComment; + } + + public void setVerifyComment(String verifyComment) { + this.verifyComment = verifyComment; + } + + public WarehouseApp withAppIcon(String appIcon) { + this.appIcon = appIcon; + return this; + } + + /** + * app的图标文件。 + * @return appIcon + */ + public String getAppIcon() { + return appIcon; + } + + public void setAppIcon(String appIcon) { + this.appIcon = appIcon; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + WarehouseApp that = (WarehouseApp) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.appId, that.appId) + && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.appName, that.appName) + && Objects.equals(this.appCategory, that.appCategory) && Objects.equals(this.osType, that.osType) + && Objects.equals(this.versionId, that.versionId) && Objects.equals(this.versionName, that.versionName) + && Objects.equals(this.appfileStorePath, that.appfileStorePath) + && Objects.equals(this.appFileSize, that.appFileSize) + && Objects.equals(this.appDescription, that.appDescription) + && Objects.equals(this.appiconStorePath, that.appiconStorePath) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.modifyTime, that.modifyTime) + && Objects.equals(this.verifyTime, that.verifyTime) && Objects.equals(this.verifyStatus, that.verifyStatus) + && Objects.equals(this.verifyComment, that.verifyComment) && Objects.equals(this.appIcon, that.appIcon); + } + + @Override + public int hashCode() { + return Objects.hash(id, + appId, + tenantId, + appName, + appCategory, + osType, + versionId, + versionName, + appfileStorePath, + appFileSize, + appDescription, + appiconStorePath, + createTime, + modifyTime, + verifyTime, + verifyStatus, + verifyComment, + appIcon); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WarehouseApp {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" appId: ").append(toIndentedString(appId)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" appCategory: ").append(toIndentedString(appCategory)).append("\n"); + sb.append(" osType: ").append(toIndentedString(osType)).append("\n"); + sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); + sb.append(" versionName: ").append(toIndentedString(versionName)).append("\n"); + sb.append(" appfileStorePath: ").append(toIndentedString(appfileStorePath)).append("\n"); + sb.append(" appFileSize: ").append(toIndentedString(appFileSize)).append("\n"); + sb.append(" appDescription: ").append(toIndentedString(appDescription)).append("\n"); + sb.append(" appiconStorePath: ").append(toIndentedString(appiconStorePath)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" modifyTime: ").append(toIndentedString(modifyTime)).append("\n"); + sb.append(" verifyTime: ").append(toIndentedString(verifyTime)).append("\n"); + sb.append(" verifyStatus: ").append(toIndentedString(verifyStatus)).append("\n"); + sb.append(" verifyComment: ").append(toIndentedString(verifyComment)).append("\n"); + sb.append(" appIcon: ").append(toIndentedString(appIcon)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/WdhParam.java b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/WdhParam.java index ea385aaabc..1429c3962c 100644 --- a/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/WdhParam.java +++ b/services/workspaceapp/src/main/java/com/huaweicloud/sdk/workspaceapp/v1/model/WdhParam.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * wdh参数。 + * wdh参数 */ public class WdhParam { @@ -26,7 +26,7 @@ public WdhParam withDedicatedHostId(String dedicatedHostId) { } /** - * 云办公主机id。 + * 云办公主机id * @return dedicatedHostId */ public String getDedicatedHostId() { @@ -43,7 +43,7 @@ public WdhParam withTenancy(String tenancy) { } /** - * 专属主机类型,目前只支持dedicated。 - dedicated:专属型 - shared: 共享型 + * 类型 * @return tenancy */ public String getTenancy() {