diff --git a/CHANGELOG.md b/CHANGELOG.md index ed5426112f..cc8e0ce705 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,1418 @@ +# 3.1.98 2024-05-30 + +### HuaweiCloud SDK BSS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListPayPerUseCustomerResources** + - changes of request param + - `+ service_type_code` + - **ListCustomerselfResourceRecords** + - changes of request param + - `+ statistic_type` + - **ListRenewRateOnPeriod** + - changes of request param + - `+ include_relative_resources` + - **ListCustomerselfResourceRecordDetails** + - changes of request param + - `+ X-Language` + - **ListFreeResourceInfos** + - changes of request param + - `+ service_type_code_list` + - **ListCustomerOrders** + - changes of request param + - `+ method` + +### HuaweiCloud SDK BSSINTL + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListPayPerUseCustomerResources** + - changes of request param + - `+ service_type_code` + - **ListCustomerselfResourceRecords** + - changes of request param + - `+ statistic_type` + - **ListRenewRateOnPeriod** + - changes of request param + - `+ include_relative_resources` + - **ListCustomerselfResourceRecordDetails** + - changes of request param + - `+ X-Language` + - **ListFreeResourceInfos** + - changes of request param + - `+ service_type_code_list` + - **ListCustomerOrders** + - changes of request param + - `+ method` + +### HuaweiCloud SDK CDN + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowHistoryTaskDetails** + - changes of response param + - `+ urls.fail_classify` + - `+ urls.fail_desc` + - **ListDomains** + - changes of response param + - `+ domains.sources.obs_bucket_type` + - **CreateDomain** + - changes of request param + - `+ domain.sources.obs_bucket_type` + - `* domain.sources: list -> list` + - changes of response param + - `+ domain.sources.obs_bucket_type` + - **DeleteDomain** + - changes of response param + - `+ domain.sources.obs_bucket_type` + - **EnableDomain** + - changes of response param + - `+ domain.sources.obs_bucket_type` + - **DisableDomain** + - changes of response param + - `+ domain.sources.obs_bucket_type` + - **ShowDomainFullConfig** + - changes of response param + - `+ configs.access_area_filter` + - `* configs.sources: list -> list` + - **UpdateDomainFullConfig** + - changes of request param + - `+ configs.access_area_filter` + +### HuaweiCloud SDK CPH + +- _Features_ + - Support the following APIs: + - `ListImages` + - `DeleteImage` + - `ListImageMembers` + - `AddImageMember` + - `DeleteImageMember` + - `BatchShowPhoneConnectInfos` +- _Bug Fix_ + - None +- _Change_ + - **ListCloudPhoneImages** + - changes of request param + - `+ image_type` + +### HuaweiCloud SDK CSE + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateEngine** + - changes of request param + - `+ enginestateInfo` + - `+ periodType` + - `+ flavorType` + - `+ enterpriseProject` + - `+ vpcCidr` + - `+ resourceParams` + - `+ productId` + - `+ capacityProductId` + - `+ isFree` + - `+ subnetName` + - `+ tags` + - `+ maintenanceConfig` + - `+ elbid` + - `+ flavor: enum value [cse.nacos2.c1.large.10,cse.nacos2.c1.xlarge.20,cse.nacos2.c1.xlarge.50,cse.nacos2.c1.xlarge.60,cse.nacos2.c1.2xlarge.100,cse.microgateway.pro.small.1,cse.microgateway.pro.medium.1,cse.microgateway.pro.large.1]` + - `+ specType: enum value [Nacos2,MicroGateway]` + - `- specType: enum value [CSE]` + - **ListEngines** + - changes of request param + - `+ type` + - changes of response param + - `+ data.flavor: enum value [cse.nacos2.c1.large.10,cse.nacos2.c1.xlarge.20,cse.nacos2.c1.xlarge.50,cse.nacos2.c1.xlarge.60,cse.nacos2.c1.2xlarge.100,cse.microgateway.pro.small.1,cse.microgateway.pro.medium.1,cse.microgateway.pro.large.1]` + - **ShowEngine** + - changes of response param + - `+ specType: enum value [CSE2,Nacos2,MicroGateway]` + - `- specType: enum value [CCE,CSE,SpringCloud]` + - `+ type: enum value [NACOS,MICROGATEWAY]` + - `- type: enum value [CSE_Share]` + - `+ cceSpec.specType: enum value [CSE2,Nacos2,MicroGateway]` + - `- cceSpec.specType: enum value [CCE,CSE,SpringCloud]` + +### HuaweiCloud SDK DataArtsStudio + +- _Features_ + - Support the APIs `ListDataServiceInstancesOverview`, `ListDataServiceInstancesDetail`, `ShowDataServiceInstance`, `ListDataServiceMarketApis` +- _Bug Fix_ + - None +- _Change_ + - **ResetLinkAttributeAndStandard** + - changes of request param + - `* ids: list -> list` + - `* stand_row_id: int64 -> string` + - `* table_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListCatalogTree** + - changes of response param + - `+ data` + - `- owner` + - `- create_time` + - `- bizmetric_num` + - `- description` + - `- children_num` + - `- prev_id` + - `- create_by` + - `- update_time` + - `- children` + - `- parent_id` + - `- name` + - `- guid` + - `- qualified_id` + - `- id` + - `- update_by` + - `- next_id` + - **SearchCatalogs** + - changes of response param + - `+ data.value` + - **ChangeCatalog** + - changes of request param + - `- owner` + - `- create_time` + - `- bizmetric_num` + - `- description` + - `- children_num` + - `- prev_id` + - `- create_by` + - `- update_time` + - `- children` + - `- parent_id` + - `- name` + - `- guid` + - `- qualified_id` + - `- id` + - `- update_by` + - `- next_id` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* next_id: int64 -> string` + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **CreateCatalog** + - changes of request param + - `- owner` + - `- create_time` + - `- bizmetric_num` + - `- description` + - `- children_num` + - `- prev_id` + - `- create_by` + - `- update_time` + - `- children` + - `- parent_id` + - `- name` + - `- guid` + - `- qualified_id` + - `- id` + - `- update_by` + - `- next_id` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* next_id: int64 -> string` + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **DeleteCatalog** + - changes of response param + - `+ data.value` + - **ShowBizCatalogDetail** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ShowStandardTemplate** + - changes of response param + - `+ data.value` + - **UpdateStandardTemplate** + - changes of request param + - `+ fd_name_en` + - `+ descriptionEn` + - `+ label` + - `+ disabled` + - `+ optional_values` + - `+ field_type` + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **CreateStandardTemplate** + - changes of request param + - `+ fd_name_en` + - `+ descriptionEn` + - `+ label` + - `+ disabled` + - `+ optional_values` + - `+ field_type` + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **DeleteStandardTemplate** + - changes of response param + - `+ data.value` + - **SearchApprovals** + - changes of request param + - `* biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **RollbackApproval** + - changes of response param + - `+ data.value` + - **ConfirmApprovals** + - changes of request param + - `* ids: list -> list` + - changes of response param + - `+ data.value` + - **ListApprovers** + - changes of response param + - `+ data.value` + - **CreateApprover** + - changes of request param + - `+ app_name` + - changes of response param + - `+ data.value` + - **DeleteApprover** + - changes of response param + - `+ data.value` + - **ListAllTables** + - changes of request param + - `* biz_catalog_id_list: list -> list` + - changes of response param + - `+ data.value` + - **CountOverviews** + - changes of response param + - `+ data.value` + - **CountTableModels** + - changes of request param + - `* model_id: int64 -> string` + - changes of response param + - `+ data.value` + - **CountAllModels** + - changes of response param + - `+ data.value` + - **CountStandards** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListDirectories** + - changes of response param + - `+ data.value` + - **UpdateDirectory** + - changes of request param + - `+ ref_id` + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* root_id: int64 -> string` + - changes of response param + - `+ data.value` + - **CreateDirectory** + - changes of request param + - `+ ref_id` + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* root_id: int64 -> string` + - changes of response param + - `+ data.value` + - **DeleteDirectory** + - changes of request param + - `* ids: list -> list` + - changes of response param + - `+ data.value` + - **ShowBizMetricById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListBizMetricDimensions** + - changes of response param + - `+ data.value` + - **ListMetricRelations** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListDimensions** + - changes of request param + - `* l2_id: int64 -> string` + - `* derivative_ids: list -> list` + - `* fact_logic_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ShowDimensionById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListDimensionGroups** + - changes of request param + - `* table_id: int64 -> string` + - changes of response param + - `+ data.value` + - **CheckDimensionStatus** + - changes of response param + - `+ data.value` + - **ListDimensionLogicTables** + - changes of request param + - `* l2_id: int64 -> string` + - `* dimension_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ShowDimensionLogicTableById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListFactLogicTables** + - changes of request param + - `* l3_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ShowFactLogicTableById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **CheckFactLogicTableStatus** + - changes of response param + - `+ data.value` + - **ListCondition** + - changes of response param + - `+ data.value` + - **ShowConditionById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListRelations** + - changes of response param + - `+ data.value` + - **ShowRelationById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListTableModelRelations** + - changes of request param + - `* model_id: int64 -> string` + - `* table_ids: int64 -> string` + - changes of response param + - `+ data.value` + - **ShowTableModelById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **ShowWorkspaceDetailById** + - changes of request param + - `* model_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ImportCatalogs** + - changes of response param + - `+ data.uuid` + - **ImportModels** + - changes of request param + - `+ X-Language` + - changes of response param + - `+ data.uuid` + - **ImportResult** + - changes of response param + - `+ data.status` + - `+ data.group` + - `+ data.rate` + - `* data: object -> object` + - **SearchDwByType** + - changes of response param + - `+ data.value` + - **SearchFieldsForRelation** + - changes of request param + - `+ limit` + - `+ offset` + - `* model_id: int64 -> string` + - **ExportDesignModels** + - changes of request param + - `* ids: list -> list` + - `* directory_id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* biz_catalog_id_list: list -> list` + - `* model_id: int64 -> string` + - **ExportDesignModelTableDdl** + - changes of request param + - `* model_id: int64 -> string` + - **AddDesignEntityTags** + - changes of request param + - `* entity_id: int64 -> string` + - `* attr_id: int64 -> string` + - **RemoveDesignEntityTags** + - changes of request param + - `* entity_id: int64 -> string` + - `* attr_id: int64 -> string` + - **DeleteDesignLatestApproval** + - changes of request param + - `* biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **InitializeStandardTemplate** + - changes of response param + - `+ data.value` + - **ListSubjectLevels** + - changes of response param + - `+ data` + - `- levels` + - **ChangeSubjects** + - changes of request param + - `- levels` + - `* levels.id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListWorkspaces** + - changes of response param + - `+ data.value` + - **DeleteWorkspaces** + - changes of request param + - `* ids: list -> list` + - changes of response param + - `+ data.value` + - **UpdateWorkspace** + - changes of request param + - `+ table_model_prefix` + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **CreateWorkspace** + - changes of request param + - `+ table_model_prefix` + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **SearchCustomizedFields** + - changes of response param + - `+ data.value` + - **ModifyCustomizedFields** + - changes of request param + - `* fields.id: int64 -> string` + - changes of response param + - `+ data.value` + - **SearchSubjectNew** + - changes of request param + - `* parent_id: int64 -> string` + - changes of response param + - `+ data.value` + - **DeleteSubjectNew** + - changes of response param + - `+ data.value` + - **UpdateSubjectNew** + - changes of request param + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - changes of response param + - `+ data.value` + - **CreateSubjectNew** + - changes of request param + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ExportDesignResult** + - changes of response param + - `* data.group.id: int64 -> string` + - `* data.group.group_id: int64 -> string` + - `* data.group.biz_id: int64 -> string` + - **ShowStandardById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **UpdateStandard** + - changes of request param + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* row_id: int64 -> string` + - `* values.fd_id: int64 -> string` + - `* values.directory_id: int64 -> string` + - `* values.row_id: int64 -> string` + - `* values.id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **SearchCodeTables** + - changes of request param + - `* directory_id: int64 -> string` + - changes of response param + - `+ data.value` + - **DeleteCodeTable** + - changes of response param + - `+ data.value` + - **CreateCodeTable** + - changes of request param + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* code_table_fields.id: int64 -> string` + - `* code_table_fields.code_table_id: int64 -> string` + - `* code_table_fields.code_table_field_values.id: int64 -> string` + - `* code_table_fields.code_table_field_values.fd_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ShowCodeTableById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value` + - **UpdateCodeTable** + - changes of request param + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* code_table_fields.id: int64 -> string` + - `* code_table_fields.code_table_id: int64 -> string` + - `* code_table_fields.code_table_field_values.id: int64 -> string` + - `* code_table_fields.code_table_field_values.fd_id: int64 -> string` + - changes of response param + - `+ data.value` + - **SearchCodeTableValues** + - changes of request param + - `* id: int64 -> string` + - **UpdateCodeTableValues** + - changes of request param + - `* id: int64 -> string` + - `* to_add.id: int64 -> string` + - `* to_add.code_table_id: int64 -> string` + - `* to_add.code_table_field_values.id: int64 -> string` + - `* to_add.code_table_field_values.fd_id: int64 -> string` + - changes of response param + - `+ data.value` + - **BatchPublish** + - changes of request param + - `+ env_type` + - `+ biz_infos.env_type` + - `* biz_infos.biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **BatchOffline** + - changes of request param + - `+ env_type` + - `+ biz_infos.env_type` + - `* biz_infos.biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListBizMetrics** + - changes of response param + - `+ data.value` + - **DeleteBizMetric** + - changes of response param + - `+ data.value` + - **UpdateBizMetric** + - changes of request param + - `+ self_defined_fields` + - `* id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* technical_metric: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **CreateBizMetric** + - changes of request param + - `+ self_defined_fields` + - `* id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* technical_metric: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **SearchVersions** + - changes of request param + - `* biz_id: int64 -> string` + - changes of response param + - `+ data.value.records.dev_physical_table` + - `* data.value.records.id: int64 -> string` + - `* data.value.records.biz_id: int64 -> string` + - **SearchDesignLatestApprovalDiff** + - changes of request param + - `* biz_id: int64 -> string` + - changes of response param + - `+ data.value.dev_physical_table` + - `* data.value.id: int64 -> string` + - `* data.value.biz_id: int64 -> string` + - **DeleteStandard** + - changes of response param + - `+ data.value` + - **CreateStandard** + - changes of request param + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* row_id: int64 -> string` + - `* values.fd_id: int64 -> string` + - `* values.directory_id: int64 -> string` + - `* values.row_id: int64 -> string` + - `* values.id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - changes of response param + - `+ data.value` + - **ListAllStandards** + - changes of response param + - `* data.value.records.id: int64 -> string` + - `* data.value.records.directory_id: int64 -> string` + - `* data.value.records.row_id: int64 -> string` + - `* data.value.records.values.fd_id: int64 -> string` + - `* data.value.records.values.directory_id: int64 -> string` + - `* data.value.records.values.row_id: int64 -> string` + - `* data.value.records.values.id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - **SearchSubject** + - changes of request param + - `* parent_id: int64 -> string` + - changes of response param + - `+ data.value` + - **DeleteSubject** + - changes of response param + - `+ data.value` + - **UpdateSubject** + - changes of response param + - `+ data.value` + - **CreateSubject** + - changes of response param + - `+ data.value` + - **DeleteDesignAtomicIndex** + - changes of response param + - `+ data.value` + - **SearchAtomicIndexes** + - changes of request param + - `* l3_id: int64 -> string` + - `* table_id: int64 -> string` + - changes of response param + - `* data.value.records.id: int64 -> string` + - `* data.value.records.cal_fn_ids: list -> list` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.table_id: int64 -> string` + - `* data.value.records.field_ids: list -> list` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - **UpdateDesignAtomicIndex** + - changes of request param + - `* id: int64 -> string` + - `* cal_fn_ids: list -> list` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* table_id: int64 -> string` + - `* field_ids: list -> list` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - changes of response param + - `* data.value.id: int64 -> string` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.table_id: int64 -> string` + - `* data.value.field_ids: list -> list` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **CreateDesignAtomicIndex** + - changes of request param + - `* id: int64 -> string` + - `* cal_fn_ids: list -> list` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* table_id: int64 -> string` + - `* field_ids: list -> list` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - changes of response param + - `* data.value.id: int64 -> string` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.table_id: int64 -> string` + - `* data.value.field_ids: list -> list` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **ShowAtomicIndexById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `* data.value.id: int64 -> string` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.table_id: int64 -> string` + - `* data.value.field_ids: list -> list` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **ListCompoundMetrics** + - changes of request param + - `* atomic_index_id: int64 -> string` + - `* l3_id: int64 -> string` + - changes of response param + - `+ data.value.records.compound_type` + - `+ data.value.records.comparison_type` + - `+ data.value.records.compound_metric_ids` + - `+ data.value.records.compound_metric_names` + - `* data.value.records.id: int64 -> string` + - `* data.value.records.metric_ids: list -> list` + - `* data.value.records.cal_fn_ids: list -> list` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.summary_table_id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `+ data.value.records.monitor.other_compound_metric_ids` + - `+ data.value.records.monitor.other_compound_metric_names` + - `* data.value.records.monitor.id: int64 -> string` + - `* data.value.records.monitor.other_metric_ids: list -> list` + - `* data.value.records.monitor.metric_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - **ShowCompoundMetricById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value.compound_type` + - `+ data.value.comparison_type` + - `+ data.value.compound_metric_ids` + - `+ data.value.compound_metric_names` + - `* data.value.id: int64 -> string` + - `* data.value.metric_ids: list -> list` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.summary_table_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `+ data.value.monitor.other_compound_metric_ids` + - `+ data.value.monitor.other_compound_metric_names` + - `* data.value.monitor.id: int64 -> string` + - `* data.value.monitor.other_metric_ids: list -> list` + - `* data.value.monitor.metric_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **DeleteDesignAggregationLogicTable** + - changes of response param + - `+ data.value` + - **UpdateDesignAggregationLogicTable** + - changes of request param + - `+ secret_type` + - `+ apply_bg` + - `+ env_type` + - `* id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* time_period.id: int64 -> string` + - `* time_period.aggregation_logic_table_id: int64 -> string` + - `* time_period.stand_row_id: int64 -> string` + - **ListAggregationLogicTables** + - changes of request param + - `* l3_id: int64 -> string` + - changes of response param + - `+ data.value.records.secret_type` + - `+ data.value.records.apply_bg` + - `+ data.value.records.dev_version` + - `+ data.value.records.prod_version` + - `+ data.value.records.dev_version_name` + - `+ data.value.records.prod_version_name` + - `+ data.value.records.env_type` + - `* data.value.records.id: int64 -> string` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.quality_id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - `+ data.value.records.time_period.secrecy_levels` + - `+ data.value.records.time_period.ref_name_ch` + - `+ data.value.records.time_period.ref_name_en` + - `* data.value.records.time_period.id: int64 -> string` + - `* data.value.records.time_period.aggregation_logic_table_id: int64 -> string` + - `* data.value.records.time_period.stand_row_id: int64 -> string` + - `* data.value.records.time_period.quality_infos.id: int64 -> string` + - `* data.value.records.time_period.quality_infos.table_id: int64 -> string` + - `* data.value.records.time_period.quality_infos.attr_id: int64 -> string` + - `* data.value.records.time_period.quality_infos.data_quality_id: int64 -> string` + - **CreateDesignAggregationLogicTable** + - changes of request param + - `+ secret_type` + - `+ apply_bg` + - `+ env_type` + - `* id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* time_period.id: int64 -> string` + - `* time_period.aggregation_logic_table_id: int64 -> string` + - `* time_period.stand_row_id: int64 -> string` + - changes of response param + - `+ data.value.secret_type` + - `+ data.value.apply_bg` + - `+ data.value.dev_version` + - `+ data.value.prod_version` + - `+ data.value.dev_version_name` + - `+ data.value.prod_version_name` + - `+ data.value.env_type` + - `* data.value.id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.quality_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `+ data.value.time_period.secrecy_levels` + - `+ data.value.time_period.ref_name_ch` + - `+ data.value.time_period.ref_name_en` + - `* data.value.time_period.id: int64 -> string` + - `* data.value.time_period.aggregation_logic_table_id: int64 -> string` + - `* data.value.time_period.stand_row_id: int64 -> string` + - `* data.value.time_period.quality_infos.id: int64 -> string` + - `* data.value.time_period.quality_infos.table_id: int64 -> string` + - `* data.value.time_period.quality_infos.attr_id: int64 -> string` + - `* data.value.time_period.quality_infos.data_quality_id: int64 -> string` + - **ShowAggregationLogicTableById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `+ data.value.secret_type` + - `+ data.value.apply_bg` + - `+ data.value.dev_version` + - `+ data.value.prod_version` + - `+ data.value.dev_version_name` + - `+ data.value.prod_version_name` + - `+ data.value.env_type` + - `* data.value.id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.quality_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `+ data.value.time_period.secrecy_levels` + - `+ data.value.time_period.ref_name_ch` + - `+ data.value.time_period.ref_name_en` + - `* data.value.time_period.id: int64 -> string` + - `* data.value.time_period.aggregation_logic_table_id: int64 -> string` + - `* data.value.time_period.stand_row_id: int64 -> string` + - `* data.value.time_period.quality_infos.id: int64 -> string` + - `* data.value.time_period.quality_infos.table_id: int64 -> string` + - `* data.value.time_period.quality_infos.attr_id: int64 -> string` + - `* data.value.time_period.quality_infos.data_quality_id: int64 -> string` + - **ListTableModels** + - changes of response param + - `+ data.value` + - **DeleteTableModel** + - changes of response param + - `+ data.value` + - **UpdateTableModel** + - changes of request param + - `+ dev_physical_table` + - `+ env_type` + - `+ has_related_physical_table` + - `+ has_related_logic_table` + - `* id: int64 -> string` + - `* model_id: int64 -> string` + - `* parent_table_id: int64 -> string` + - `* logic_tb_id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `+ model.table_model_prefix` + - `* model.id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `+ attributes.code` + - `+ attributes.related_logic_attr_id` + - `* attributes.id: int64 -> string` + - `* attributes.table_model_id: int64 -> string` + - `* attributes.stand_row_id: int64 -> string` + - `* relations.id: int64 -> string` + - `* relations.source_table_id: int64 -> string` + - `* relations.target_table_id: int64 -> string` + - `* mappings.id: int64 -> string` + - `* mappings.target_table_id: int64 -> string` + - `* mappings.src_model_id: int64 -> string` + - `* mappings.details.id: int64 -> string` + - `* mappings.details.target_attr_id: int64 -> string` + - `* mappings.source_fields.target_field_id: int64 -> string` + - `* mappings.source_tables.table1_id: int64 -> string` + - `* mappings.source_tables.table2_id: int64 -> string` + - `* mappings.source_tables.join_fields.field1_id: int64 -> string` + - `* mappings.source_tables.join_fields.field2_id: int64 -> string` + - changes of response param + - `+ data.value` + - **CreateTableModel** + - changes of request param + - `+ related_logic_table_id` + - `+ dev_physical_table` + - `+ env_type` + - `+ code` + - `* id: int64 -> string` + - `* model_id: int64 -> string` + - `* parent_table_id: int64 -> string` + - `* logic_tb_id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `+ model.table_model_prefix` + - `* model.id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `+ attributes.code` + - `+ attributes.related_logic_attr_id` + - `* attributes.id: int64 -> string` + - `* attributes.table_model_id: int64 -> string` + - `* attributes.stand_row_id: int64 -> string` + - `* relations.id: int64 -> string` + - `* relations.source_table_id: int64 -> string` + - `* relations.target_table_id: int64 -> string` + - `* mappings.id: int64 -> string` + - `* mappings.target_table_id: int64 -> string` + - `* mappings.src_model_id: int64 -> string` + - `* mappings.details.id: int64 -> string` + - `* mappings.details.target_attr_id: int64 -> string` + - `* mappings.source_fields.target_field_id: int64 -> string` + - `* mappings.source_tables.table1_id: int64 -> string` + - `* mappings.source_tables.table2_id: int64 -> string` + - `* mappings.source_tables.join_fields.field1_id: int64 -> string` + - `* mappings.source_tables.join_fields.field2_id: int64 -> string` + - changes of response param + - `+ data.value` + - **RemoveDesignQualityInfos** + - changes of request param + - `* table_id: int64 -> string` + - **UpdateDesignTableQuality** + - changes of request param + - `* table_id: int64 -> string` + - changes of response param + - `+ data.value.related_logic_table_id` + - `+ data.value.related_logic_table_name` + - `+ data.value.related_logic_table_model_id` + - `+ data.value.related_logic_table_model_name` + - `+ data.value.dev_physical_table` + - `+ data.value.dev_version` + - `+ data.value.prod_version` + - `+ data.value.dev_version_name` + - `+ data.value.prod_version_name` + - `+ data.value.env_type` + - `+ data.value.code` + - `+ data.value.has_related_physical_table` + - `+ data.value.has_related_logic_table` + - `* data.value.id: int64 -> string` + - `* data.value.model_id: int64 -> string` + - `* data.value.parent_table_id: int64 -> string` + - `* data.value.logic_tb_id: int64 -> string` + - `* data.value.biz_catalog_id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.quality_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `+ data.value.model.table_model_prefix` + - `* data.value.model.id: int64 -> string` + - `* data.value.tags.id: int64 -> string` + - `* data.value.tags.tag_id: int64 -> string` + - `* data.value.tags.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `+ data.value.attributes.secrecy_levels` + - `+ data.value.attributes.code` + - `+ data.value.attributes.related_logic_attr_id` + - `+ data.value.attributes.related_logic_attr_name` + - `+ data.value.attributes.related_logic_attr_name_en` + - `* data.value.attributes.id: int64 -> string` + - `* data.value.attributes.table_model_id: int64 -> string` + - `* data.value.attributes.stand_row_id: int64 -> string` + - `* data.value.attributes.tags.id: int64 -> string` + - `* data.value.attributes.quality_infos.id: int64 -> string` + - `* data.value.attributes.quality_infos.table_id: int64 -> string` + - `* data.value.attributes.quality_infos.attr_id: int64 -> string` + - `* data.value.attributes.quality_infos.data_quality_id: int64 -> string` + - `* data.value.relations.id: int64 -> string` + - `* data.value.relations.source_table_id: int64 -> string` + - `* data.value.relations.target_table_id: int64 -> string` + - `* data.value.relations.mappings.id: int64 -> string` + - `* data.value.relations.mappings.relation_id: int64 -> string` + - `* data.value.relations.mappings.source_field_id: int64 -> string` + - `* data.value.relations.mappings.target_field_id: int64 -> string` + - `* data.value.mappings.id: int64 -> string` + - `* data.value.mappings.target_table_id: int64 -> string` + - `* data.value.mappings.src_model_id: int64 -> string` + - `* data.value.mappings.details.id: int64 -> string` + - `* data.value.mappings.details.target_attr_id: int64 -> string` + - `* data.value.mappings.details.src_table_model_ids: list -> list` + - `* data.value.mappings.details.src_table_id_list: list -> list` + - `* data.value.mappings.details.src_attr_id_list: list -> list` + - `* data.value.mappings.source_fields.target_field_id: int64 -> string` + - `* data.value.mappings.source_tables.table1_id: int64 -> string` + - `* data.value.mappings.source_tables.table2_id: int64 -> string` + - `* data.value.mappings.source_tables.join_fields.field1_id: int64 -> string` + - `* data.value.mappings.source_tables.join_fields.field2_id: int64 -> string` + - **ListDerivativeIndexes** + - changes of request param + - `* dimension_id: int64 -> string` + - `* atomic_index_id: int64 -> string` + - `* l3_id: int64 -> string` + - changes of response param + - `* data.value.records.id: int64 -> string` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.atomic_index_id: int64 -> string` + - `* data.value.records.time_condition_id: int64 -> string` + - `* data.value.records.time_field_id: int64 -> string` + - `* data.value.records.summary_table_id: int64 -> string` + - `* data.value.records.common_conditions.cal_fn_ids: list -> list` + - `* data.value.records.common_conditions.id: int64 -> string` + - `+ data.value.records.monitor.other_compound_metric_ids` + - `+ data.value.records.monitor.other_compound_metric_names` + - `* data.value.records.monitor.id: int64 -> string` + - `* data.value.records.monitor.other_metric_ids: list -> list` + - `* data.value.records.monitor.metric_id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.atomic_index.id: int64 -> string` + - `* data.value.records.atomic_index.cal_fn_ids: list -> list` + - `* data.value.records.atomic_index.l1_id: int64 -> string` + - `* data.value.records.atomic_index.l3_id: int64 -> string` + - `* data.value.records.atomic_index.table_id: int64 -> string` + - `* data.value.records.atomic_index.field_ids: list -> list` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - `* data.value.records.dimension_groups.dimension_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies_id: int64 -> string` + - `* data.value.records.dimension_groups.l1_id: int64 -> string` + - `* data.value.records.dimension_groups.l3_id: int64 -> string` + - `* data.value.records.dimension_groups.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.hierarchies_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.detail_attr_ids: list -> list` + - `+ data.value.records.dimension_groups.hierarchies.attrs.attr.secrecy_levels` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.dimension_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.code_table_field_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.stand_row_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.table_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.attr_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.data_quality_id: int64 -> string` + - **ShowDerivativeIndexById** + - changes of request param + - `* id: int64 -> string` + - changes of response param + - `* data.value.id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.atomic_index_id: int64 -> string` + - `* data.value.time_condition_id: int64 -> string` + - `* data.value.time_field_id: int64 -> string` + - `* data.value.summary_table_id: int64 -> string` + - `* data.value.common_conditions.cal_fn_ids: list -> list` + - `* data.value.common_conditions.id: int64 -> string` + - `+ data.value.monitor.other_compound_metric_ids` + - `+ data.value.monitor.other_compound_metric_names` + - `* data.value.monitor.id: int64 -> string` + - `* data.value.monitor.other_metric_ids: list -> list` + - `* data.value.monitor.metric_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.atomic_index.id: int64 -> string` + - `* data.value.atomic_index.cal_fn_ids: list -> list` + - `* data.value.atomic_index.l1_id: int64 -> string` + - `* data.value.atomic_index.l3_id: int64 -> string` + - `* data.value.atomic_index.table_id: int64 -> string` + - `* data.value.atomic_index.field_ids: list -> list` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `* data.value.dimension_groups.dimension_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies_id: int64 -> string` + - `* data.value.dimension_groups.l1_id: int64 -> string` + - `* data.value.dimension_groups.l3_id: int64 -> string` + - `* data.value.dimension_groups.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.hierarchies_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.detail_attr_ids: list -> list` + - `+ data.value.dimension_groups.hierarchies.attrs.attr.secrecy_levels` + - `* data.value.dimension_groups.hierarchies.attrs.attr.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.dimension_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.code_table_field_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.stand_row_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.table_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.attr_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.data_quality_id: int64 -> string` + +### HuaweiCloud SDK ECS + +- _Features_ + - Support the API `ChangeServerNetworkInterface` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDB + +- _Features_ + - Support the APIs `UpgradeProxyVersion`, `UpdateProxyName`, `ShowProxyIpgroup`, `ShowProxyVersion` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDBforopenGauss + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **SearchAutoEnlargePolicy** + - changes of response param + - `+ step_percent` + - `+ step_size` + - **UpdateInstanceConfiguration** + - changes of response param + - `+ job_id` + - **CreateConfigurationTemplate** + - changes of request param + - `+ datastore.instance_mode: enum value [ha:readonly]` + - **ListDatabases** + - changes of response param + - `+ databases.datctype` + - `+ databases.compatibility_type` + - **ListTasks** + - changes of response param + - `+ tasks.created_at` + - `+ tasks.ended_at` + - **ListComponentInfos** + - changes of response param + - `+ nodes.components.type` + - `+ nodes.components.detail` + - **ShowUpgradeCandidateVersions** + - changes of response param + - `+ upgrade_type_list.is_parallel_upgrade` + +### HuaweiCloud SDK IoTDA + +- _Features_ + - Support the following APIs: + - `ListBridges` + - `AddBridge` + - `DeleteBridge` + - `ResetBridgeSecret` + - `ListDeviceGroupsByDevice` + - `UpdateCertificate` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK RGC + +- _Features_ + - Support the API `ListControlsForOrganizationalUnit` +- _Bug Fix_ + - None +- _Change_ + - Remove the API `ListControlsForOrganizationUnit` + +### HuaweiCloud SDK SMS + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UpdateDiskInfo** + - changes of request param + - `+ disks.physical_volumes.inode_nums` + - `+ volumegroups.logical_volumes.inode_nums` + - **ShowServer** + - changes of response param + - `+ disks.physical_volumes.inode_nums` + - `+ volume_groups.logical_volumes.inode_nums` + - **CreateTask** + - changes of request param + - `+ target_server.volume_groups.logical_volumes.inode_nums` + - **ShowTask** + - changes of response param + - `+ target_server.volume_groups.logical_volumes.inode_nums` + - **UpdateTask** + - changes of request param + - `+ source_server.io_read_wait` + - `+ source_server.disks.physical_volumes.inode_nums` + - `+ source_server.volume_groups.logical_volumes.inode_nums` + - **RegisterServer** + - changes of request param + - `+ io_read_wait` + - `+ disks.physical_volumes.inode_nums` + - `+ volume_groups.logical_volumes.inode_nums` + - **ListServers** + - changes of response param + - `+ source_servers.init_target_server.volume_groups.logical_volumes.inode_nums` + +### HuaweiCloud SDK VPC + +- _Features_ + - Support the following APIs: + - `ListClouddcnSubnets` + - `CreateClouddcnSubnet` + - `ShowClouddcnSubnet` + - `UpdateClouddcnSubnet` + - `DeleteClouddcnSubnet` + - `ShowClouddcnSubnetsTags` + - `AddClouddcnSubnetsTags` + - `ListClouddcnSubnetsFilterTags` + - `DeleteClouddcnSubnetsTag` + - `ListClouddcnSubnetsCountFilterTags` + - `ListClouddcnSubnetsTags` + - `BatchDeleteClouddcnSubnetsTags` + - `BatchCreateClouddcnSubnetsTags` +- _Bug Fix_ + - None +- _Change_ + - **ListSecurityGroups** + - changes of response param + - `+ security_groups.tags` + - **CreateSecurityGroup** + - changes of request param + - `+ security_group.tags` + - changes of response param + - `+ security_group.tags` + - **ShowSecurityGroup** + - changes of response param + - `+ security_group.tags` + - **UpdateSecurityGroup** + - changes of response param + - `+ security_group.tags` + - **CreateFirewall** + - changes of request param + - `+ firewall.tags` + +### HuaweiCloud SDK WAF + +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowCcRule** + - changes of response param + - `- conditions.category: enum value [response_code]` + - **UpdateCcRule** + - changes of request param + - `- conditions.category: enum value [response_code]` + - changes of response param + - `- conditions.category: enum value [response_code]` + - **DeleteCcRule** + - changes of response param + - `- conditions.category: enum value [response_code]` + - **ShowPolicy** + - changes of response param + - `+ action.followed_action_id` + - **UpdatePolicyProtectHost** + - changes of response param + - `+ action.followed_action_id` + - **DeletePolicy** + - changes of response param + - `+ action.followed_action_id` + - **UpdatePolicy** + - changes of request param + - `+ action.followed_action_id` + - changes of response param + - `+ action.followed_action_id` + - **ShowCompositeHost** + - changes of response param + - `+ server` + - **CreateCcRule** + - changes of request param + - `- conditions.category: enum value [response_code]` + - changes of response param + - `- conditions.category: enum value [response_code]` + - **ListCcRules** + - changes of response param + - `- items.conditions.category: enum value [response_code]` + - **CreatePolicy** + - changes of request param + - `+ log_action_replaced` + - changes of response param + - `+ action.followed_action_id` + - **ListPolicy** + - changes of response param + - `+ items.action.followed_action_id` + - **ListCompositeHosts** + - changes of response param + - `+ server` + - `+ items.server` + # 3.1.97 2024-05-23 ### HuaweiCloud SDK APM diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 2be89dfa4b..ebed52be60 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,1418 @@ +# 3.1.98 2024-05-30 + +### HuaweiCloud SDK BSS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListPayPerUseCustomerResources** + - 请求参数变更 + - `+ service_type_code` + - **ListCustomerselfResourceRecords** + - 请求参数变更 + - `+ statistic_type` + - **ListRenewRateOnPeriod** + - 请求参数变更 + - `+ include_relative_resources` + - **ListCustomerselfResourceRecordDetails** + - 请求参数变更 + - `+ X-Language` + - **ListFreeResourceInfos** + - 请求参数变更 + - `+ service_type_code_list` + - **ListCustomerOrders** + - 请求参数变更 + - `+ method` + +### HuaweiCloud SDK BSSINTL + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListPayPerUseCustomerResources** + - 请求参数变更 + - `+ service_type_code` + - **ListCustomerselfResourceRecords** + - 请求参数变更 + - `+ statistic_type` + - **ListRenewRateOnPeriod** + - 请求参数变更 + - `+ include_relative_resources` + - **ListCustomerselfResourceRecordDetails** + - 请求参数变更 + - `+ X-Language` + - **ListFreeResourceInfos** + - 请求参数变更 + - `+ service_type_code_list` + - **ListCustomerOrders** + - 请求参数变更 + - `+ method` + +### HuaweiCloud SDK CDN + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowHistoryTaskDetails** + - 响应参数变更 + - `+ urls.fail_classify` + - `+ urls.fail_desc` + - **ListDomains** + - 响应参数变更 + - `+ domains.sources.obs_bucket_type` + - **CreateDomain** + - 请求参数变更 + - `+ domain.sources.obs_bucket_type` + - `* domain.sources: list -> list` + - 响应参数变更 + - `+ domain.sources.obs_bucket_type` + - **DeleteDomain** + - 响应参数变更 + - `+ domain.sources.obs_bucket_type` + - **EnableDomain** + - 响应参数变更 + - `+ domain.sources.obs_bucket_type` + - **DisableDomain** + - 响应参数变更 + - `+ domain.sources.obs_bucket_type` + - **ShowDomainFullConfig** + - 响应参数变更 + - `+ configs.access_area_filter` + - `* configs.sources: list -> list` + - **UpdateDomainFullConfig** + - 请求参数变更 + - `+ configs.access_area_filter` + +### HuaweiCloud SDK CPH + +- _新增特性_ + - 支持以下接口: + - `ListImages` + - `DeleteImage` + - `ListImageMembers` + - `AddImageMember` + - `DeleteImageMember` + - `BatchShowPhoneConnectInfos` +- _解决问题_ + - 无 +- _特性变更_ + - **ListCloudPhoneImages** + - 请求参数变更 + - `+ image_type` + +### HuaweiCloud SDK CSE + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateEngine** + - 请求参数变更 + - `+ enginestateInfo` + - `+ periodType` + - `+ flavorType` + - `+ enterpriseProject` + - `+ vpcCidr` + - `+ resourceParams` + - `+ productId` + - `+ capacityProductId` + - `+ isFree` + - `+ subnetName` + - `+ tags` + - `+ maintenanceConfig` + - `+ elbid` + - `+ flavor: enum value [cse.nacos2.c1.large.10,cse.nacos2.c1.xlarge.20,cse.nacos2.c1.xlarge.50,cse.nacos2.c1.xlarge.60,cse.nacos2.c1.2xlarge.100,cse.microgateway.pro.small.1,cse.microgateway.pro.medium.1,cse.microgateway.pro.large.1]` + - `+ specType: enum value [Nacos2,MicroGateway]` + - `- specType: enum value [CSE]` + - **ListEngines** + - 请求参数变更 + - `+ type` + - 响应参数变更 + - `+ data.flavor: enum value [cse.nacos2.c1.large.10,cse.nacos2.c1.xlarge.20,cse.nacos2.c1.xlarge.50,cse.nacos2.c1.xlarge.60,cse.nacos2.c1.2xlarge.100,cse.microgateway.pro.small.1,cse.microgateway.pro.medium.1,cse.microgateway.pro.large.1]` + - **ShowEngine** + - 响应参数变更 + - `+ specType: enum value [CSE2,Nacos2,MicroGateway]` + - `- specType: enum value [CCE,CSE,SpringCloud]` + - `+ type: enum value [NACOS,MICROGATEWAY]` + - `- type: enum value [CSE_Share]` + - `+ cceSpec.specType: enum value [CSE2,Nacos2,MicroGateway]` + - `- cceSpec.specType: enum value [CCE,CSE,SpringCloud]` + +### HuaweiCloud SDK DataArtsStudio + +- _新增特性_ + - 支持接口`ListDataServiceInstancesOverview`、`ListDataServiceInstancesDetail`、`ShowDataServiceInstance`、`ListDataServiceMarketApis` +- _解决问题_ + - 无 +- _特性变更_ + - **ResetLinkAttributeAndStandard** + - 请求参数变更 + - `* ids: list -> list` + - `* stand_row_id: int64 -> string` + - `* table_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListCatalogTree** + - 响应参数变更 + - `+ data` + - `- owner` + - `- create_time` + - `- bizmetric_num` + - `- description` + - `- children_num` + - `- prev_id` + - `- create_by` + - `- update_time` + - `- children` + - `- parent_id` + - `- name` + - `- guid` + - `- qualified_id` + - `- id` + - `- update_by` + - `- next_id` + - **SearchCatalogs** + - 响应参数变更 + - `+ data.value` + - **ChangeCatalog** + - 请求参数变更 + - `- owner` + - `- create_time` + - `- bizmetric_num` + - `- description` + - `- children_num` + - `- prev_id` + - `- create_by` + - `- update_time` + - `- children` + - `- parent_id` + - `- name` + - `- guid` + - `- qualified_id` + - `- id` + - `- update_by` + - `- next_id` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* next_id: int64 -> string` + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CreateCatalog** + - 请求参数变更 + - `- owner` + - `- create_time` + - `- bizmetric_num` + - `- description` + - `- children_num` + - `- prev_id` + - `- create_by` + - `- update_time` + - `- children` + - `- parent_id` + - `- name` + - `- guid` + - `- qualified_id` + - `- id` + - `- update_by` + - `- next_id` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* next_id: int64 -> string` + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **DeleteCatalog** + - 响应参数变更 + - `+ data.value` + - **ShowBizCatalogDetail** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ShowStandardTemplate** + - 响应参数变更 + - `+ data.value` + - **UpdateStandardTemplate** + - 请求参数变更 + - `+ fd_name_en` + - `+ descriptionEn` + - `+ label` + - `+ disabled` + - `+ optional_values` + - `+ field_type` + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CreateStandardTemplate** + - 请求参数变更 + - `+ fd_name_en` + - `+ descriptionEn` + - `+ label` + - `+ disabled` + - `+ optional_values` + - `+ field_type` + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **DeleteStandardTemplate** + - 响应参数变更 + - `+ data.value` + - **SearchApprovals** + - 请求参数变更 + - `* biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **RollbackApproval** + - 响应参数变更 + - `+ data.value` + - **ConfirmApprovals** + - 请求参数变更 + - `* ids: list -> list` + - 响应参数变更 + - `+ data.value` + - **ListApprovers** + - 响应参数变更 + - `+ data.value` + - **CreateApprover** + - 请求参数变更 + - `+ app_name` + - 响应参数变更 + - `+ data.value` + - **DeleteApprover** + - 响应参数变更 + - `+ data.value` + - **ListAllTables** + - 请求参数变更 + - `* biz_catalog_id_list: list -> list` + - 响应参数变更 + - `+ data.value` + - **CountOverviews** + - 响应参数变更 + - `+ data.value` + - **CountTableModels** + - 请求参数变更 + - `* model_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CountAllModels** + - 响应参数变更 + - `+ data.value` + - **CountStandards** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListDirectories** + - 响应参数变更 + - `+ data.value` + - **UpdateDirectory** + - 请求参数变更 + - `+ ref_id` + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* root_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CreateDirectory** + - 请求参数变更 + - `+ ref_id` + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - `* prev_id: int64 -> string` + - `* root_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **DeleteDirectory** + - 请求参数变更 + - `* ids: list -> list` + - 响应参数变更 + - `+ data.value` + - **ShowBizMetricById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListBizMetricDimensions** + - 响应参数变更 + - `+ data.value` + - **ListMetricRelations** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListDimensions** + - 请求参数变更 + - `* l2_id: int64 -> string` + - `* derivative_ids: list -> list` + - `* fact_logic_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ShowDimensionById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListDimensionGroups** + - 请求参数变更 + - `* table_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CheckDimensionStatus** + - 响应参数变更 + - `+ data.value` + - **ListDimensionLogicTables** + - 请求参数变更 + - `* l2_id: int64 -> string` + - `* dimension_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ShowDimensionLogicTableById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListFactLogicTables** + - 请求参数变更 + - `* l3_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ShowFactLogicTableById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CheckFactLogicTableStatus** + - 响应参数变更 + - `+ data.value` + - **ListCondition** + - 响应参数变更 + - `+ data.value` + - **ShowConditionById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListRelations** + - 响应参数变更 + - `+ data.value` + - **ShowRelationById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListTableModelRelations** + - 请求参数变更 + - `* model_id: int64 -> string` + - `* table_ids: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ShowTableModelById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ShowWorkspaceDetailById** + - 请求参数变更 + - `* model_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ImportCatalogs** + - 响应参数变更 + - `+ data.uuid` + - **ImportModels** + - 请求参数变更 + - `+ X-Language` + - 响应参数变更 + - `+ data.uuid` + - **ImportResult** + - 响应参数变更 + - `+ data.status` + - `+ data.group` + - `+ data.rate` + - `* data: object -> object` + - **SearchDwByType** + - 响应参数变更 + - `+ data.value` + - **SearchFieldsForRelation** + - 请求参数变更 + - `+ limit` + - `+ offset` + - `* model_id: int64 -> string` + - **ExportDesignModels** + - 请求参数变更 + - `* ids: list -> list` + - `* directory_id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* biz_catalog_id_list: list -> list` + - `* model_id: int64 -> string` + - **ExportDesignModelTableDdl** + - 请求参数变更 + - `* model_id: int64 -> string` + - **AddDesignEntityTags** + - 请求参数变更 + - `* entity_id: int64 -> string` + - `* attr_id: int64 -> string` + - **RemoveDesignEntityTags** + - 请求参数变更 + - `* entity_id: int64 -> string` + - `* attr_id: int64 -> string` + - **DeleteDesignLatestApproval** + - 请求参数变更 + - `* biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **InitializeStandardTemplate** + - 响应参数变更 + - `+ data.value` + - **ListSubjectLevels** + - 响应参数变更 + - `+ data` + - `- levels` + - **ChangeSubjects** + - 请求参数变更 + - `- levels` + - `* levels.id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListWorkspaces** + - 响应参数变更 + - `+ data.value` + - **DeleteWorkspaces** + - 请求参数变更 + - `* ids: list -> list` + - 响应参数变更 + - `+ data.value` + - **UpdateWorkspace** + - 请求参数变更 + - `+ table_model_prefix` + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CreateWorkspace** + - 请求参数变更 + - `+ table_model_prefix` + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **SearchCustomizedFields** + - 响应参数变更 + - `+ data.value` + - **ModifyCustomizedFields** + - 请求参数变更 + - `* fields.id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **SearchSubjectNew** + - 请求参数变更 + - `* parent_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **DeleteSubjectNew** + - 响应参数变更 + - `+ data.value` + - **UpdateSubjectNew** + - 请求参数变更 + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CreateSubjectNew** + - 请求参数变更 + - `* id: int64 -> string` + - `* parent_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ExportDesignResult** + - 响应参数变更 + - `* data.group.id: int64 -> string` + - `* data.group.group_id: int64 -> string` + - `* data.group.biz_id: int64 -> string` + - **ShowStandardById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **UpdateStandard** + - 请求参数变更 + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* row_id: int64 -> string` + - `* values.fd_id: int64 -> string` + - `* values.directory_id: int64 -> string` + - `* values.row_id: int64 -> string` + - `* values.id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **SearchCodeTables** + - 请求参数变更 + - `* directory_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **DeleteCodeTable** + - 响应参数变更 + - `+ data.value` + - **CreateCodeTable** + - 请求参数变更 + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* code_table_fields.id: int64 -> string` + - `* code_table_fields.code_table_id: int64 -> string` + - `* code_table_fields.code_table_field_values.id: int64 -> string` + - `* code_table_fields.code_table_field_values.fd_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ShowCodeTableById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **UpdateCodeTable** + - 请求参数变更 + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* code_table_fields.id: int64 -> string` + - `* code_table_fields.code_table_id: int64 -> string` + - `* code_table_fields.code_table_field_values.id: int64 -> string` + - `* code_table_fields.code_table_field_values.fd_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **SearchCodeTableValues** + - 请求参数变更 + - `* id: int64 -> string` + - **UpdateCodeTableValues** + - 请求参数变更 + - `* id: int64 -> string` + - `* to_add.id: int64 -> string` + - `* to_add.code_table_id: int64 -> string` + - `* to_add.code_table_field_values.id: int64 -> string` + - `* to_add.code_table_field_values.fd_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **BatchPublish** + - 请求参数变更 + - `+ env_type` + - `+ biz_infos.env_type` + - `* biz_infos.biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **BatchOffline** + - 请求参数变更 + - `+ env_type` + - `+ biz_infos.env_type` + - `* biz_infos.biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListBizMetrics** + - 响应参数变更 + - `+ data.value` + - **DeleteBizMetric** + - 响应参数变更 + - `+ data.value` + - **UpdateBizMetric** + - 请求参数变更 + - `+ self_defined_fields` + - `* id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* technical_metric: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CreateBizMetric** + - 请求参数变更 + - `+ self_defined_fields` + - `* id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* technical_metric: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **SearchVersions** + - 请求参数变更 + - `* biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value.records.dev_physical_table` + - `* data.value.records.id: int64 -> string` + - `* data.value.records.biz_id: int64 -> string` + - **SearchDesignLatestApprovalDiff** + - 请求参数变更 + - `* biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value.dev_physical_table` + - `* data.value.id: int64 -> string` + - `* data.value.biz_id: int64 -> string` + - **DeleteStandard** + - 响应参数变更 + - `+ data.value` + - **CreateStandard** + - 请求参数变更 + - `* id: int64 -> string` + - `* directory_id: int64 -> string` + - `* row_id: int64 -> string` + - `* values.fd_id: int64 -> string` + - `* values.directory_id: int64 -> string` + - `* values.row_id: int64 -> string` + - `* values.id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **ListAllStandards** + - 响应参数变更 + - `* data.value.records.id: int64 -> string` + - `* data.value.records.directory_id: int64 -> string` + - `* data.value.records.row_id: int64 -> string` + - `* data.value.records.values.fd_id: int64 -> string` + - `* data.value.records.values.directory_id: int64 -> string` + - `* data.value.records.values.row_id: int64 -> string` + - `* data.value.records.values.id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - **SearchSubject** + - 请求参数变更 + - `* parent_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **DeleteSubject** + - 响应参数变更 + - `+ data.value` + - **UpdateSubject** + - 响应参数变更 + - `+ data.value` + - **CreateSubject** + - 响应参数变更 + - `+ data.value` + - **DeleteDesignAtomicIndex** + - 响应参数变更 + - `+ data.value` + - **SearchAtomicIndexes** + - 请求参数变更 + - `* l3_id: int64 -> string` + - `* table_id: int64 -> string` + - 响应参数变更 + - `* data.value.records.id: int64 -> string` + - `* data.value.records.cal_fn_ids: list -> list` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.table_id: int64 -> string` + - `* data.value.records.field_ids: list -> list` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - **UpdateDesignAtomicIndex** + - 请求参数变更 + - `* id: int64 -> string` + - `* cal_fn_ids: list -> list` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* table_id: int64 -> string` + - `* field_ids: list -> list` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - 响应参数变更 + - `* data.value.id: int64 -> string` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.table_id: int64 -> string` + - `* data.value.field_ids: list -> list` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **CreateDesignAtomicIndex** + - 请求参数变更 + - `* id: int64 -> string` + - `* cal_fn_ids: list -> list` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* table_id: int64 -> string` + - `* field_ids: list -> list` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - 响应参数变更 + - `* data.value.id: int64 -> string` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.table_id: int64 -> string` + - `* data.value.field_ids: list -> list` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **ShowAtomicIndexById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `* data.value.id: int64 -> string` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.table_id: int64 -> string` + - `* data.value.field_ids: list -> list` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **ListCompoundMetrics** + - 请求参数变更 + - `* atomic_index_id: int64 -> string` + - `* l3_id: int64 -> string` + - 响应参数变更 + - `+ data.value.records.compound_type` + - `+ data.value.records.comparison_type` + - `+ data.value.records.compound_metric_ids` + - `+ data.value.records.compound_metric_names` + - `* data.value.records.id: int64 -> string` + - `* data.value.records.metric_ids: list -> list` + - `* data.value.records.cal_fn_ids: list -> list` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.summary_table_id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `+ data.value.records.monitor.other_compound_metric_ids` + - `+ data.value.records.monitor.other_compound_metric_names` + - `* data.value.records.monitor.id: int64 -> string` + - `* data.value.records.monitor.other_metric_ids: list -> list` + - `* data.value.records.monitor.metric_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - **ShowCompoundMetricById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value.compound_type` + - `+ data.value.comparison_type` + - `+ data.value.compound_metric_ids` + - `+ data.value.compound_metric_names` + - `* data.value.id: int64 -> string` + - `* data.value.metric_ids: list -> list` + - `* data.value.cal_fn_ids: list -> list` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.summary_table_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `+ data.value.monitor.other_compound_metric_ids` + - `+ data.value.monitor.other_compound_metric_names` + - `* data.value.monitor.id: int64 -> string` + - `* data.value.monitor.other_metric_ids: list -> list` + - `* data.value.monitor.metric_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - **DeleteDesignAggregationLogicTable** + - 响应参数变更 + - `+ data.value` + - **UpdateDesignAggregationLogicTable** + - 请求参数变更 + - `+ secret_type` + - `+ apply_bg` + - `+ env_type` + - `* id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* time_period.id: int64 -> string` + - `* time_period.aggregation_logic_table_id: int64 -> string` + - `* time_period.stand_row_id: int64 -> string` + - **ListAggregationLogicTables** + - 请求参数变更 + - `* l3_id: int64 -> string` + - 响应参数变更 + - `+ data.value.records.secret_type` + - `+ data.value.records.apply_bg` + - `+ data.value.records.dev_version` + - `+ data.value.records.prod_version` + - `+ data.value.records.dev_version_name` + - `+ data.value.records.prod_version_name` + - `+ data.value.records.env_type` + - `* data.value.records.id: int64 -> string` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.quality_id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - `+ data.value.records.time_period.secrecy_levels` + - `+ data.value.records.time_period.ref_name_ch` + - `+ data.value.records.time_period.ref_name_en` + - `* data.value.records.time_period.id: int64 -> string` + - `* data.value.records.time_period.aggregation_logic_table_id: int64 -> string` + - `* data.value.records.time_period.stand_row_id: int64 -> string` + - `* data.value.records.time_period.quality_infos.id: int64 -> string` + - `* data.value.records.time_period.quality_infos.table_id: int64 -> string` + - `* data.value.records.time_period.quality_infos.attr_id: int64 -> string` + - `* data.value.records.time_period.quality_infos.data_quality_id: int64 -> string` + - **CreateDesignAggregationLogicTable** + - 请求参数变更 + - `+ secret_type` + - `+ apply_bg` + - `+ env_type` + - `* id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `* time_period.id: int64 -> string` + - `* time_period.aggregation_logic_table_id: int64 -> string` + - `* time_period.stand_row_id: int64 -> string` + - 响应参数变更 + - `+ data.value.secret_type` + - `+ data.value.apply_bg` + - `+ data.value.dev_version` + - `+ data.value.prod_version` + - `+ data.value.dev_version_name` + - `+ data.value.prod_version_name` + - `+ data.value.env_type` + - `* data.value.id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.quality_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `+ data.value.time_period.secrecy_levels` + - `+ data.value.time_period.ref_name_ch` + - `+ data.value.time_period.ref_name_en` + - `* data.value.time_period.id: int64 -> string` + - `* data.value.time_period.aggregation_logic_table_id: int64 -> string` + - `* data.value.time_period.stand_row_id: int64 -> string` + - `* data.value.time_period.quality_infos.id: int64 -> string` + - `* data.value.time_period.quality_infos.table_id: int64 -> string` + - `* data.value.time_period.quality_infos.attr_id: int64 -> string` + - `* data.value.time_period.quality_infos.data_quality_id: int64 -> string` + - **ShowAggregationLogicTableById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `+ data.value.secret_type` + - `+ data.value.apply_bg` + - `+ data.value.dev_version` + - `+ data.value.prod_version` + - `+ data.value.dev_version_name` + - `+ data.value.prod_version_name` + - `+ data.value.env_type` + - `* data.value.id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.quality_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `+ data.value.time_period.secrecy_levels` + - `+ data.value.time_period.ref_name_ch` + - `+ data.value.time_period.ref_name_en` + - `* data.value.time_period.id: int64 -> string` + - `* data.value.time_period.aggregation_logic_table_id: int64 -> string` + - `* data.value.time_period.stand_row_id: int64 -> string` + - `* data.value.time_period.quality_infos.id: int64 -> string` + - `* data.value.time_period.quality_infos.table_id: int64 -> string` + - `* data.value.time_period.quality_infos.attr_id: int64 -> string` + - `* data.value.time_period.quality_infos.data_quality_id: int64 -> string` + - **ListTableModels** + - 响应参数变更 + - `+ data.value` + - **DeleteTableModel** + - 响应参数变更 + - `+ data.value` + - **UpdateTableModel** + - 请求参数变更 + - `+ dev_physical_table` + - `+ env_type` + - `+ has_related_physical_table` + - `+ has_related_logic_table` + - `* id: int64 -> string` + - `* model_id: int64 -> string` + - `* parent_table_id: int64 -> string` + - `* logic_tb_id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `+ model.table_model_prefix` + - `* model.id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `+ attributes.code` + - `+ attributes.related_logic_attr_id` + - `* attributes.id: int64 -> string` + - `* attributes.table_model_id: int64 -> string` + - `* attributes.stand_row_id: int64 -> string` + - `* relations.id: int64 -> string` + - `* relations.source_table_id: int64 -> string` + - `* relations.target_table_id: int64 -> string` + - `* mappings.id: int64 -> string` + - `* mappings.target_table_id: int64 -> string` + - `* mappings.src_model_id: int64 -> string` + - `* mappings.details.id: int64 -> string` + - `* mappings.details.target_attr_id: int64 -> string` + - `* mappings.source_fields.target_field_id: int64 -> string` + - `* mappings.source_tables.table1_id: int64 -> string` + - `* mappings.source_tables.table2_id: int64 -> string` + - `* mappings.source_tables.join_fields.field1_id: int64 -> string` + - `* mappings.source_tables.join_fields.field2_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **CreateTableModel** + - 请求参数变更 + - `+ related_logic_table_id` + - `+ dev_physical_table` + - `+ env_type` + - `+ code` + - `* id: int64 -> string` + - `* model_id: int64 -> string` + - `* parent_table_id: int64 -> string` + - `* logic_tb_id: int64 -> string` + - `* biz_catalog_id: int64 -> string` + - `* l1_id: int64 -> string` + - `* l3_id: int64 -> string` + - `* quality_id: int64 -> string` + - `* new_biz.id: int64 -> string` + - `* new_biz.biz_id: int64 -> string` + - `+ model.table_model_prefix` + - `* model.id: int64 -> string` + - `* approval_info.id: int64 -> string` + - `* approval_info.biz_id: int64 -> string` + - `+ attributes.code` + - `+ attributes.related_logic_attr_id` + - `* attributes.id: int64 -> string` + - `* attributes.table_model_id: int64 -> string` + - `* attributes.stand_row_id: int64 -> string` + - `* relations.id: int64 -> string` + - `* relations.source_table_id: int64 -> string` + - `* relations.target_table_id: int64 -> string` + - `* mappings.id: int64 -> string` + - `* mappings.target_table_id: int64 -> string` + - `* mappings.src_model_id: int64 -> string` + - `* mappings.details.id: int64 -> string` + - `* mappings.details.target_attr_id: int64 -> string` + - `* mappings.source_fields.target_field_id: int64 -> string` + - `* mappings.source_tables.table1_id: int64 -> string` + - `* mappings.source_tables.table2_id: int64 -> string` + - `* mappings.source_tables.join_fields.field1_id: int64 -> string` + - `* mappings.source_tables.join_fields.field2_id: int64 -> string` + - 响应参数变更 + - `+ data.value` + - **RemoveDesignQualityInfos** + - 请求参数变更 + - `* table_id: int64 -> string` + - **UpdateDesignTableQuality** + - 请求参数变更 + - `* table_id: int64 -> string` + - 响应参数变更 + - `+ data.value.related_logic_table_id` + - `+ data.value.related_logic_table_name` + - `+ data.value.related_logic_table_model_id` + - `+ data.value.related_logic_table_model_name` + - `+ data.value.dev_physical_table` + - `+ data.value.dev_version` + - `+ data.value.prod_version` + - `+ data.value.dev_version_name` + - `+ data.value.prod_version_name` + - `+ data.value.env_type` + - `+ data.value.code` + - `+ data.value.has_related_physical_table` + - `+ data.value.has_related_logic_table` + - `* data.value.id: int64 -> string` + - `* data.value.model_id: int64 -> string` + - `* data.value.parent_table_id: int64 -> string` + - `* data.value.logic_tb_id: int64 -> string` + - `* data.value.biz_catalog_id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.quality_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `+ data.value.model.table_model_prefix` + - `* data.value.model.id: int64 -> string` + - `* data.value.tags.id: int64 -> string` + - `* data.value.tags.tag_id: int64 -> string` + - `* data.value.tags.biz_id: int64 -> string` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `+ data.value.attributes.secrecy_levels` + - `+ data.value.attributes.code` + - `+ data.value.attributes.related_logic_attr_id` + - `+ data.value.attributes.related_logic_attr_name` + - `+ data.value.attributes.related_logic_attr_name_en` + - `* data.value.attributes.id: int64 -> string` + - `* data.value.attributes.table_model_id: int64 -> string` + - `* data.value.attributes.stand_row_id: int64 -> string` + - `* data.value.attributes.tags.id: int64 -> string` + - `* data.value.attributes.quality_infos.id: int64 -> string` + - `* data.value.attributes.quality_infos.table_id: int64 -> string` + - `* data.value.attributes.quality_infos.attr_id: int64 -> string` + - `* data.value.attributes.quality_infos.data_quality_id: int64 -> string` + - `* data.value.relations.id: int64 -> string` + - `* data.value.relations.source_table_id: int64 -> string` + - `* data.value.relations.target_table_id: int64 -> string` + - `* data.value.relations.mappings.id: int64 -> string` + - `* data.value.relations.mappings.relation_id: int64 -> string` + - `* data.value.relations.mappings.source_field_id: int64 -> string` + - `* data.value.relations.mappings.target_field_id: int64 -> string` + - `* data.value.mappings.id: int64 -> string` + - `* data.value.mappings.target_table_id: int64 -> string` + - `* data.value.mappings.src_model_id: int64 -> string` + - `* data.value.mappings.details.id: int64 -> string` + - `* data.value.mappings.details.target_attr_id: int64 -> string` + - `* data.value.mappings.details.src_table_model_ids: list -> list` + - `* data.value.mappings.details.src_table_id_list: list -> list` + - `* data.value.mappings.details.src_attr_id_list: list -> list` + - `* data.value.mappings.source_fields.target_field_id: int64 -> string` + - `* data.value.mappings.source_tables.table1_id: int64 -> string` + - `* data.value.mappings.source_tables.table2_id: int64 -> string` + - `* data.value.mappings.source_tables.join_fields.field1_id: int64 -> string` + - `* data.value.mappings.source_tables.join_fields.field2_id: int64 -> string` + - **ListDerivativeIndexes** + - 请求参数变更 + - `* dimension_id: int64 -> string` + - `* atomic_index_id: int64 -> string` + - `* l3_id: int64 -> string` + - 响应参数变更 + - `* data.value.records.id: int64 -> string` + - `* data.value.records.l1_id: int64 -> string` + - `* data.value.records.l3_id: int64 -> string` + - `* data.value.records.atomic_index_id: int64 -> string` + - `* data.value.records.time_condition_id: int64 -> string` + - `* data.value.records.time_field_id: int64 -> string` + - `* data.value.records.summary_table_id: int64 -> string` + - `* data.value.records.common_conditions.cal_fn_ids: list -> list` + - `* data.value.records.common_conditions.id: int64 -> string` + - `+ data.value.records.monitor.other_compound_metric_ids` + - `+ data.value.records.monitor.other_compound_metric_names` + - `* data.value.records.monitor.id: int64 -> string` + - `* data.value.records.monitor.other_metric_ids: list -> list` + - `* data.value.records.monitor.metric_id: int64 -> string` + - `* data.value.records.new_biz.id: int64 -> string` + - `* data.value.records.new_biz.biz_id: int64 -> string` + - `* data.value.records.atomic_index.id: int64 -> string` + - `* data.value.records.atomic_index.cal_fn_ids: list -> list` + - `* data.value.records.atomic_index.l1_id: int64 -> string` + - `* data.value.records.atomic_index.l3_id: int64 -> string` + - `* data.value.records.atomic_index.table_id: int64 -> string` + - `* data.value.records.atomic_index.field_ids: list -> list` + - `* data.value.records.approval_info.id: int64 -> string` + - `* data.value.records.approval_info.biz_id: int64 -> string` + - `* data.value.records.dimension_groups.dimension_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies_id: int64 -> string` + - `* data.value.records.dimension_groups.l1_id: int64 -> string` + - `* data.value.records.dimension_groups.l3_id: int64 -> string` + - `* data.value.records.dimension_groups.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.hierarchies_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.detail_attr_ids: list -> list` + - `+ data.value.records.dimension_groups.hierarchies.attrs.attr.secrecy_levels` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.dimension_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.code_table_field_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.stand_row_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.table_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.attr_id: int64 -> string` + - `* data.value.records.dimension_groups.hierarchies.attrs.attr.quality_infos.data_quality_id: int64 -> string` + - **ShowDerivativeIndexById** + - 请求参数变更 + - `* id: int64 -> string` + - 响应参数变更 + - `* data.value.id: int64 -> string` + - `* data.value.l1_id: int64 -> string` + - `* data.value.l3_id: int64 -> string` + - `* data.value.atomic_index_id: int64 -> string` + - `* data.value.time_condition_id: int64 -> string` + - `* data.value.time_field_id: int64 -> string` + - `* data.value.summary_table_id: int64 -> string` + - `* data.value.common_conditions.cal_fn_ids: list -> list` + - `* data.value.common_conditions.id: int64 -> string` + - `+ data.value.monitor.other_compound_metric_ids` + - `+ data.value.monitor.other_compound_metric_names` + - `* data.value.monitor.id: int64 -> string` + - `* data.value.monitor.other_metric_ids: list -> list` + - `* data.value.monitor.metric_id: int64 -> string` + - `* data.value.new_biz.id: int64 -> string` + - `* data.value.new_biz.biz_id: int64 -> string` + - `* data.value.atomic_index.id: int64 -> string` + - `* data.value.atomic_index.cal_fn_ids: list -> list` + - `* data.value.atomic_index.l1_id: int64 -> string` + - `* data.value.atomic_index.l3_id: int64 -> string` + - `* data.value.atomic_index.table_id: int64 -> string` + - `* data.value.atomic_index.field_ids: list -> list` + - `* data.value.approval_info.id: int64 -> string` + - `* data.value.approval_info.biz_id: int64 -> string` + - `* data.value.dimension_groups.dimension_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies_id: int64 -> string` + - `* data.value.dimension_groups.l1_id: int64 -> string` + - `* data.value.dimension_groups.l3_id: int64 -> string` + - `* data.value.dimension_groups.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.hierarchies_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.detail_attr_ids: list -> list` + - `+ data.value.dimension_groups.hierarchies.attrs.attr.secrecy_levels` + - `* data.value.dimension_groups.hierarchies.attrs.attr.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.dimension_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.code_table_field_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.stand_row_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.table_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.attr_id: int64 -> string` + - `* data.value.dimension_groups.hierarchies.attrs.attr.quality_infos.data_quality_id: int64 -> string` + +### HuaweiCloud SDK ECS + +- _新增特性_ + - 支持接口`ChangeServerNetworkInterface` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDB + +- _新增特性_ + - 支持接口`UpgradeProxyVersion`、`UpdateProxyName`、`ShowProxyIpgroup`、`ShowProxyVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDBforopenGauss + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **SearchAutoEnlargePolicy** + - 响应参数变更 + - `+ step_percent` + - `+ step_size` + - **UpdateInstanceConfiguration** + - 响应参数变更 + - `+ job_id` + - **CreateConfigurationTemplate** + - 请求参数变更 + - `+ datastore.instance_mode: enum value [ha:readonly]` + - **ListDatabases** + - 响应参数变更 + - `+ databases.datctype` + - `+ databases.compatibility_type` + - **ListTasks** + - 响应参数变更 + - `+ tasks.created_at` + - `+ tasks.ended_at` + - **ListComponentInfos** + - 响应参数变更 + - `+ nodes.components.type` + - `+ nodes.components.detail` + - **ShowUpgradeCandidateVersions** + - 响应参数变更 + - `+ upgrade_type_list.is_parallel_upgrade` + +### HuaweiCloud SDK IoTDA + +- _新增特性_ + - 支持以下接口: + - `ListBridges` + - `AddBridge` + - `DeleteBridge` + - `ResetBridgeSecret` + - `ListDeviceGroupsByDevice` + - `UpdateCertificate` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK RGC + +- _新增特性_ + - 支持接口`ListControlsForOrganizationalUnit` +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ListControlsForOrganizationUnit` + +### HuaweiCloud SDK SMS + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UpdateDiskInfo** + - 请求参数变更 + - `+ disks.physical_volumes.inode_nums` + - `+ volumegroups.logical_volumes.inode_nums` + - **ShowServer** + - 响应参数变更 + - `+ disks.physical_volumes.inode_nums` + - `+ volume_groups.logical_volumes.inode_nums` + - **CreateTask** + - 请求参数变更 + - `+ target_server.volume_groups.logical_volumes.inode_nums` + - **ShowTask** + - 响应参数变更 + - `+ target_server.volume_groups.logical_volumes.inode_nums` + - **UpdateTask** + - 请求参数变更 + - `+ source_server.io_read_wait` + - `+ source_server.disks.physical_volumes.inode_nums` + - `+ source_server.volume_groups.logical_volumes.inode_nums` + - **RegisterServer** + - 请求参数变更 + - `+ io_read_wait` + - `+ disks.physical_volumes.inode_nums` + - `+ volume_groups.logical_volumes.inode_nums` + - **ListServers** + - 响应参数变更 + - `+ source_servers.init_target_server.volume_groups.logical_volumes.inode_nums` + +### HuaweiCloud SDK VPC + +- _新增特性_ + - 支持以下接口: + - `ListClouddcnSubnets` + - `CreateClouddcnSubnet` + - `ShowClouddcnSubnet` + - `UpdateClouddcnSubnet` + - `DeleteClouddcnSubnet` + - `ShowClouddcnSubnetsTags` + - `AddClouddcnSubnetsTags` + - `ListClouddcnSubnetsFilterTags` + - `DeleteClouddcnSubnetsTag` + - `ListClouddcnSubnetsCountFilterTags` + - `ListClouddcnSubnetsTags` + - `BatchDeleteClouddcnSubnetsTags` + - `BatchCreateClouddcnSubnetsTags` +- _解决问题_ + - 无 +- _特性变更_ + - **ListSecurityGroups** + - 响应参数变更 + - `+ security_groups.tags` + - **CreateSecurityGroup** + - 请求参数变更 + - `+ security_group.tags` + - 响应参数变更 + - `+ security_group.tags` + - **ShowSecurityGroup** + - 响应参数变更 + - `+ security_group.tags` + - **UpdateSecurityGroup** + - 响应参数变更 + - `+ security_group.tags` + - **CreateFirewall** + - 请求参数变更 + - `+ firewall.tags` + +### HuaweiCloud SDK WAF + +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowCcRule** + - 响应参数变更 + - `- conditions.category: enum value [response_code]` + - **UpdateCcRule** + - 请求参数变更 + - `- conditions.category: enum value [response_code]` + - 响应参数变更 + - `- conditions.category: enum value [response_code]` + - **DeleteCcRule** + - 响应参数变更 + - `- conditions.category: enum value [response_code]` + - **ShowPolicy** + - 响应参数变更 + - `+ action.followed_action_id` + - **UpdatePolicyProtectHost** + - 响应参数变更 + - `+ action.followed_action_id` + - **DeletePolicy** + - 响应参数变更 + - `+ action.followed_action_id` + - **UpdatePolicy** + - 请求参数变更 + - `+ action.followed_action_id` + - 响应参数变更 + - `+ action.followed_action_id` + - **ShowCompositeHost** + - 响应参数变更 + - `+ server` + - **CreateCcRule** + - 请求参数变更 + - `- conditions.category: enum value [response_code]` + - 响应参数变更 + - `- conditions.category: enum value [response_code]` + - **ListCcRules** + - 响应参数变更 + - `- items.conditions.category: enum value [response_code]` + - **CreatePolicy** + - 请求参数变更 + - `+ log_action_replaced` + - 响应参数变更 + - `+ action.followed_action_id` + - **ListPolicy** + - 响应参数变更 + - `+ items.action.followed_action_id` + - **ListCompositeHosts** + - 响应参数变更 + - `+ server` + - `+ items.server` + # 3.1.97 2024-05-23 ### HuaweiCloud SDK APM diff --git a/VERSION b/VERSION index 222308057b..f2b751799f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.97 +3.1.98 diff --git a/all/pom.xml b/all/pom.xml index 21cc56d1f4..5b82bcf930 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.97 + 3.1.98 huaweicloud-sdk 4.0.0 huaweicloud-sdk-all - 3.1.97 + 3.1.98 Huawei Cloud SDK for Java Huawei Cloud SDK for Java provides all services https://github.com/huaweicloud/huaweicloud-sdk-java-v3 @@ -23,861 +23,861 @@ com.huaweicloud.sdk huaweicloud-sdk-mssi - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-orgid - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cfw - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-antiddos - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-oa - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-aom - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-apig - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-as - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-asm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-bcs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-bms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-bss - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-bssintl - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cbr - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cce - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ces - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-classroom - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cloudrtc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cloudide - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codeartspipeline - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cloudpond - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cloudtest - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codeartscheck - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cts - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-das - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dcs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ddm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dds - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dis - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-devstar - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dlf - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dgc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dli - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dns - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-drs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ecs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-eihealth - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-eip - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-geip - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-elb - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-eps - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-evs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dss - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-functiongraph - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-gaussdbfornosql - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-hss - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cgs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-iam - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-iec - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ief - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-image - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ims - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-iotda - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-iotedge - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-kafka - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-kms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-kps - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-live - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-meeting - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-moderation - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-mpc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-mrs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-nat - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-oms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-osm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-projectman - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-rabbitmq - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-rds - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-rms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-roma - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-sa - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-secmaster - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-scm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-servicestage - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-smn - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-sms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-swr - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-tms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-vpc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-vpcep - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cdn - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ugo - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ocr - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-waf - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-optverse - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-oroas - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-vod - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-lts - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-gaussdb - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ccm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-csms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codeartsdeploy - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-frs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codecraft - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-imagesearch - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cbs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cpts - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ivs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-gsl - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cdm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-sdrs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dbss - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dsc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codeartsinspector - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-nlp - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-gaussdbforopengauss - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-campusgo - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codehub - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-vas - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cbh - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ges - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-sfsturbo - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-sis - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cloudtable - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-deh - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-res - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-hilens - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-iotanalytics - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-expert - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-css - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dws - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-vcm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cse - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cae - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-rocketmq - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-apm - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cph - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-eg - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-er - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ga - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-workspace - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-workspaceapp - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codeartsartifact - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-koomessage - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-koophone - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-koomap - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-devsecurity - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-aos - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-mas - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dwr - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dris - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-mapds - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-codeartsbuild - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-lakeformation - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dataartsinsight - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-organizations - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ram - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-idme - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-idmeclassicapi - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-metastudio - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-cms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-msgsms - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-eds - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-obs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-dataartsstudio - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-tics - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-config - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-identitycenter - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-identitycenterstore - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-pangulargemodels - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-edgesec - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-ec - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-kvs - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-vpn - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-aad - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-rgc - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-iamaccessanalyzer - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-sts - 3.1.97 + 3.1.98 - ${project.artifactId}-3.1.97 + ${project.artifactId}-3.1.98 maven-dependency-plugin diff --git a/bundle/pom.xml b/bundle/pom.xml index 3b251ceca4..3219355313 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.97 + 3.1.98 huaweicloud-sdk 4.0.0 huaweicloud-sdk-bundle - 3.1.97 + 3.1.98 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.97 + 3.1.98 diff --git a/core-bson/pom.xml b/core-bson/pom.xml index 3abd33af1c..858bb66ce6 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.97 + 3.1.98 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-bson - 3.1.97 + 3.1.98 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.97 + 3.1.98 ch.qos.logback diff --git a/core-xml/pom.xml b/core-xml/pom.xml index b7a61bb7bb..a2195b1657 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.97 + 3.1.98 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core-xml - 3.1.97 + 3.1.98 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.97 + 3.1.98 ch.qos.logback diff --git a/core/pom.xml b/core/pom.xml index cb8842e0f1..41fad3aa77 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -5,14 +5,14 @@ com.huaweicloud.sdk - 3.1.97 + 3.1.98 huaweicloud-sdk 4.0.0 jar huaweicloud-sdk-core - 3.1.97 + 3.1.98 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 bb88715957..8d16bd107f 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ pom com.huaweicloud.sdk huaweicloud-sdk - 3.1.97 + 3.1.98 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 5761869905..1c0fc79e58 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-aad - 3.1.97 + 3.1.98 Huawei Cloud SDK for AAD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/antiddos/pom.xml b/services/antiddos/pom.xml index 95525e4319..addc223ebe 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-antiddos - 3.1.97 + 3.1.98 Huawei Cloud SDK for ANTIDDOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/antiddos/src/main/java/com/huaweicloud/sdk/antiddos/v1/region/AntiDDoSRegion.java b/services/antiddos/src/main/java/com/huaweicloud/sdk/antiddos/v1/region/AntiDDoSRegion.java index cfdb406d32..ac7a84b37f 100644 --- a/services/antiddos/src/main/java/com/huaweicloud/sdk/antiddos/v1/region/AntiDDoSRegion.java +++ b/services/antiddos/src/main/java/com/huaweicloud/sdk/antiddos/v1/region/AntiDDoSRegion.java @@ -69,6 +69,8 @@ public class AntiDDoSRegion { public static final Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", "https://antiddos.my-kualalumpur-1.myhuaweicloud.com"); + public static final Region ME_EAST_1 = new Region("me-east-1", "https://antiddos.me-east-1.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("ANTIDDOS"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -98,6 +100,7 @@ private static Map createStaticFields() { map.put("ae-ad-1", AE_AD_1); map.put("eu-west-0", EU_WEST_0); map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); + map.put("me-east-1", ME_EAST_1); return Collections.unmodifiableMap(map); } diff --git a/services/aom/pom.xml b/services/aom/pom.xml index c5d0833a51..cd4c3d03ce 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-aom - 3.1.97 + 3.1.98 Huawei Cloud SDK for AOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/aos/pom.xml b/services/aos/pom.xml index 818cf8a7f5..e7ef814d35 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-aos - 3.1.97 + 3.1.98 Huawei Cloud SDK for AOS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/apig/pom.xml b/services/apig/pom.xml index 27368d00ec..78070330db 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-apig - 3.1.97 + 3.1.98 Huawei Cloud SDK for APIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/apm/pom.xml b/services/apm/pom.xml index 7ef47988bd..d059fe28cc 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-apm - 3.1.97 + 3.1.98 Huawei Cloud SDK for APM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/as/pom.xml b/services/as/pom.xml index 081338e09d..58c9748122 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-as - 3.1.97 + 3.1.98 Huawei Cloud SDK for AS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/asm/pom.xml b/services/asm/pom.xml index c5f7f55071..44053d2c1f 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-asm - 3.1.97 + 3.1.98 Huawei Cloud SDK for ASM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/bcs/pom.xml b/services/bcs/pom.xml index 6aee05f275..4998abe8b1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-bcs - 3.1.97 + 3.1.98 Huawei Cloud SDK for BCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/bms/pom.xml b/services/bms/pom.xml index 5e8058a114..82744d3bf2 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-bms - 3.1.97 + 3.1.98 Huawei Cloud SDK for BMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/bss/pom.xml b/services/bss/pom.xml index c2da7e0022..1a791e57e3 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-bss - 3.1.97 + 3.1.98 Huawei Cloud SDK for BSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/BssMeta.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/BssMeta.java index 2f67d84dc4..5c2982a45b 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/BssMeta.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/BssMeta.java @@ -1201,6 +1201,11 @@ private static HttpRequestDef f.withMarshaller(ListCustomerOrdersRequest::getIndirectPartnerId, ListCustomerOrdersRequest::setIndirectPartnerId)); + builder.withRequestField("method", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListCustomerOrdersRequest.MethodEnum.class), + f -> f.withMarshaller(ListCustomerOrdersRequest::getMethod, ListCustomerOrdersRequest::setMethod)); // response @@ -1249,6 +1254,12 @@ private static HttpRequestDefwithRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListCustomerselfResourceRecordDetailsRequest::getXLanguage, + ListCustomerselfResourceRecordDetailsRequest::setXLanguage)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -1366,6 +1377,12 @@ private static HttpRequestDef f.withMarshaller(ListCustomerselfResourceRecordsRequest::getBillDateEnd, ListCustomerselfResourceRecordsRequest::setBillDateEnd)); + builder.withRequestField("statistic_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListCustomerselfResourceRecordsRequest::getStatisticType, + ListCustomerselfResourceRecordsRequest::setStatisticType)); builder.withRequestField("X-Language", LocationType.Header, FieldExistence.NULL_IGNORE, diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CheckSubcustomerUserReq.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CheckSubcustomerUserReq.java index 6a20b0da8a..21b873004a 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CheckSubcustomerUserReq.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CheckSubcustomerUserReq.java @@ -43,7 +43,7 @@ public CheckSubcustomerUserReq withSearchValue(String searchValue) { } /** - * 手机号、邮箱或登录名称。 手机号需符合正则表达式 ^\\d{4}-\\d+$;包括国家码,以00开头,格式:00XX-XXXXXXXX。目前手机号仅支持以86开头的国家码。邮箱需为含有@的正确格式的完整邮箱地址。name:符合正则表达式^\\(\\[a-zA-Z-\\]\\(\\[a-zA-Z0-9_-\\]\\)\\{4,31\\}\\)$,长度5-32;不能以“op_”或“shadow_”开头且不能全为数字,且只能以字母(不区分大小写)或者-开头。 + * 手机号、邮箱或登录名称。 手机号需符合正则表达式 ^\\d{4}-\\d+$;包括国家码,以00开头,格式:00XX-XXXXXXXX。目前手机号仅支持以86开头的国家码。邮箱需为含有@的正确格式的完整邮箱地址。name:符合正则表达式^([a-zA-Z-]([a-zA-Z0-9_-]){4,31})$,长度5-32;不能以“op_”或“shadow_”开头且不能全为数字,且只能以字母(不区分大小写)或者-开头。 * @return searchValue */ public String getSearchValue() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/Conversion.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/Conversion.java index c6509ec4f7..03d27e046e 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/Conversion.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/Conversion.java @@ -87,7 +87,7 @@ public Conversion withMeasureType(Integer measureType) { } /** - * 度量类型。 1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量25:测试类型 + * 度量类型。 1:货币2:时长3:流量4:数量6:长度7:容量9:行数10:周期11:频率12:个数15:容量*时长16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量24:分辨率26:通用资源包抵扣单位27:核数*时长28:内存*时长29:IOPS*时长30:吞吐量*时长31:个/时长40:流量(1000进制)41:1K Tokens82:帧98:缓存带宽x时长 * @return measureType */ public Integer getMeasureType() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CostDataByDimension.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CostDataByDimension.java index c248fc71b2..ed73fe2971 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CostDataByDimension.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CostDataByDimension.java @@ -55,7 +55,7 @@ public CostDataByDimension withDimensions(Consumer> dimensi } /** - * 维度列表。 + * 维度列表,具体请参见表 DimensionGroup。 * @return dimensions */ public List getDimensions() { @@ -88,7 +88,7 @@ public CostDataByDimension withCosts(Consumer> costsSetter) { } /** - * 成本值。 + * 成本值,具体请参见表 Cost。 * @return costs */ public List getCosts() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CouponRecordV2.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CouponRecordV2.java index a65867fa37..462a2a4d50 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CouponRecordV2.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CouponRecordV2.java @@ -84,7 +84,7 @@ public CouponRecordV2 withOperationType(String operationType) { } /** - * 操作类型。 1:发放2:手动回收3:解绑自动回收 + * 操作类型。 1:发放2:手动回收3:解绑自动回收4:过期回收5:退订回收6:退款充值撤销7:建立关联回收 * @return operationType */ public String getOperationType() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CreateCustomerV2Req.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CreateCustomerV2Req.java index 559c0ecd92..166c81e484 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CreateCustomerV2Req.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CreateCustomerV2Req.java @@ -66,7 +66,7 @@ public CreateCustomerV2Req withDomainName(String domainName) { } /** - * 客户的华为云账号名。 如果为空,随机生成。 不能以“op_”或“shadow_”开头且不能全为数字。 校验长度(5到32位)和规则^\\(\\[a-zA-Z_-\\]\\(\\[a-zA-Z0-9_-\\]\\)\\*\\)$。 + * 客户的华为云账号名。 如果为空,随机生成。 不能以“op_”或“shadow_”开头且不能全为数字。 校验长度(5到32位)和规则^([a-zA-Z_-]([a-zA-Z0-9_-])*)$。 此参数不携带或携带值为空串或携带值为null时,随机生成。 * @return domainName */ public String getDomainName() { @@ -83,7 +83,7 @@ public CreateCustomerV2Req withMobilePhone(String mobilePhone) { } /** - * 手机号。 目前系统只支持中国的手机号。 示例:13XXXXXXXXX + * 手机号。 目前系统只支持中国的手机号。 示例:13XXXXXXXXX 此参数不携带或携带值为null时,不被赋值;携带值为空串时,赋值为空串。 * @return mobilePhone */ public String getMobilePhone() { @@ -100,7 +100,7 @@ public CreateCustomerV2Req withVerificationCode(String verificationCode) { } /** - * 验证码。 请调用“发送验证码”接口获取。 如果手机号不存在,则不需要输入验证码。 + * 验证码。 请调用“发送验证码”接口获取。 如果手机号不存在,则不需要输入验证码。 此参数不携带或携带值为null时,不做处理;不支持携带值为空串。 * @return verificationCode */ public String getVerificationCode() { @@ -151,7 +151,7 @@ public CreateCustomerV2Req withPassword(String password) { } /** - * 密码规则如下: 至少包含以下四种字符中的两种: 大写字母、小写字母、数字、特殊字符;不能和账号名或倒序的账号名相同;不能包含手机号。 如果为空,用户没有密码,则不能直接在华为云登录,只能通过伙伴系统SSO方式跳转到华为云。 + * 密码规则如下: 至少包含以下四种字符中的两种: 大写字母、小写字母、数字、特殊字符;不能和账号名或倒序的账号名相同;不能包含手机号。 如果为空,用户没有密码,则不能直接在华为云登录,只能通过伙伴系统SSO方式跳转到华为云。 此参数不携带或携带值为null时,密码随机生成;不支持携带值为空串。 * @return password */ public String getPassword() { @@ -168,7 +168,7 @@ public CreateCustomerV2Req withIsCloseMarketMs(String isCloseMarketMs) { } /** - * 是否关闭营销消息的发送: true:关闭false:不关闭(默认) + * 是否关闭营销消息的发送。 true:关闭false:不关闭(默认) 此参数不携带或携带值为空串或携带值为null时,赋值为false。 * @return isCloseMarketMs */ public String getIsCloseMarketMs() { @@ -219,7 +219,7 @@ public CreateCustomerV2Req withIncludeAssociationResult(Boolean includeAssociati } /** - * 是否返回子客户的关联结果。 true:返回子客户和伙伴的关联结果false:不返回子客户和伙伴的关联结果 默认值为false。 + * 是否返回子客户的关联结果。 true:返回子客户和伙伴的关联结果false:不返回子客户和伙伴的关联结果 默认值为false。 此参数不携带或携带值为空串或携带值为null时,赋值为false。 * @return includeAssociationResult */ public Boolean getIncludeAssociationResult() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CustomerOrderV3.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CustomerOrderV3.java index 863be326ce..94dfeabe25 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CustomerOrderV3.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/CustomerOrderV3.java @@ -199,7 +199,7 @@ public CustomerOrderV3 withOrderType(Integer orderType) { } /** - * 订单类型。 1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整 + * 订单类型。 1:开通2:续订3:变更4:退订10:包年/包月转按需11:按需转包年/包月13:试用14:转商用15:费用调整 * @return orderType */ public Integer getOrderType() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DemandProductInfo.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DemandProductInfo.java index 9e7180a1e5..ec079922ae 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DemandProductInfo.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DemandProductInfo.java @@ -214,7 +214,7 @@ public DemandProductInfo withUsageFactor(String usageFactor) { } /** - * 使用量因子编码,取值和话单中的使用量因子一致,云服务和使用量因子对应关系举例如下: 云服务器:Duration云硬盘:Duration弹性IP:Duration带宽:Duration或upflow市场镜像:Duration 您可以调用查询使用量类型列表接口获取响应参数表3中参数code的取值,即每种云服务对应的计费因子。 + * 使用量因子编码,大小写不敏感,取值和话单中的使用量因子一致,云服务和使用量因子对应关系举例如下: 云服务器:Duration云硬盘:Duration弹性IP:Duration带宽:Duration或upflow市场镜像:Duration 您可以调用查询使用量类型列表接口获取响应参数表3中参数code的取值,即每种云服务对应的计费因子。 * @return usageFactor */ public String getUsageFactor() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DimensionGroup.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DimensionGroup.java index c609ae9021..dcc833d94b 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DimensionGroup.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/DimensionGroup.java @@ -26,7 +26,7 @@ public DimensionGroup withKey(String key) { } /** - * 分组条件。 产品类型:CLOUD_SERVICE_TYPE企业项目:ENTERPRISE_PROJECT_ID使用量类型:USAGE_TYPE产品:RESOURCE_TYPE可用区:AZ_CODE账单类型:BILL_TYPE关联账号:ASSOCIATED_ACCOUNT规格编码:RES_SPEC_CODE运营实体:BE_ID区域:REGION_CODE计费模式:CHARGING_MODE交易账号:PAYER_ACCOUNT_ID资源tag:RESOURCE_TAG资源id:RESOURCE_ID成本单元:COST_UNIT + * 分组条件。 产品类型:CLOUD_SERVICE_TYPE企业项目:ENTERPRISE_PROJECT_ID使用量类型:USAGE_TYPE产品:RESOURCE_TYPE可用区:AZ_CODE账单类型:BILL_TYPE关联账号:ASSOCIATED_ACCOUNT规格编码:RES_SPEC_CODE运营实体:BE_ID区域:REGION_CODE计费模式:CHARGING_MODE交易账号:PAYER_ACCOUNT_ID资源tag:RESOURCE_TAG资源id:RESOURCE_ID成本单元:COST_UNIT分拆项:SPLIT_ITEM_NAME * @return key */ public String getKey() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListConversionsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListConversionsRequest.java index 84ce9267ad..b0fafb4e2b 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListConversionsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListConversionsRequest.java @@ -45,7 +45,7 @@ public ListConversionsRequest withMeasureType(Integer measureType) { } /** - * 度量类型。1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量26:通用资源包抵扣单位此参数不携带或携带值为空或携带值为null时,不作为筛选条件。 + * 度量类型。1:货币2:时长3:流量4:数量6:长度7:容量9:行数10:周期11:频率12:个数15:容量*时长16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量24:分辨率26:通用资源包抵扣单位27:核数*时长28:内存*时长29:IOPS*时长30:吞吐量*时长31:个/时长40:流量(1000进制)41:1K Tokens82:帧98:缓存带宽x时长此参数不携带或携带值为空或携带值为null时,不作为筛选条件。 * @return measureType */ public Integer getMeasureType() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCostsResponse.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCostsResponse.java index 1dd0a315eb..3f765658cf 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCostsResponse.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCostsResponse.java @@ -85,7 +85,7 @@ public ListCostsResponse withCostData(Consumer> costDa } /** - * 按天或按月的明细金额。 + * 按天或按月的明细金额,具体请参见表 CostDataByDimension。 * @return costData */ public List getCostData() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCountiesRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCountiesRequest.java index 2ce0f55db3..29727333af 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCountiesRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCountiesRequest.java @@ -72,7 +72,7 @@ public ListCountiesRequest withOffset(Integer offset) { } /** - * 偏移量,从0开始。默认值为0。此参数不携带或携带值为null时,取默认值0;不支持携带值为空。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 + * 偏移量,从0开始。此参数不携带或携带值为空或携带值为null时,取默认值0;不支持携带值为空串。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 * minimum: 0 * maximum: 1000 * @return offset @@ -91,7 +91,7 @@ public ListCountiesRequest withLimit(Integer limit) { } /** - * 每次查询的数量,最大1000。默认值为10。此参数不携带,取默认值10;不支持携带值为空和携带值为null。 + * 每次查询的数量,最大1000。该参数不携带时,取默认值10。该参数不支持携带值为空、不支持携带值为空串、不支持携带值为null。 * minimum: 1 * maximum: 1000 * @return limit diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCouponQuotasRecordsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCouponQuotasRecordsRequest.java index 52b8d23e85..b4b2f03512 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCouponQuotasRecordsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCouponQuotasRecordsRequest.java @@ -90,7 +90,7 @@ public ListCouponQuotasRecordsRequest withOperationTimeBegin(String operationTim } /** - * 查询条件:操作起始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 查询条件:操作起始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。不支持携带值为空串。 * @return operationTimeBegin */ public String getOperationTimeBegin() { @@ -107,7 +107,7 @@ public ListCouponQuotasRecordsRequest withOperationTimeEnd(String operationTimeE } /** - * 查询条件:操作截止时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 查询条件:操作截止时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。不支持携带值为空串。 * @return operationTimeEnd */ public String getOperationTimeEnd() { @@ -124,7 +124,7 @@ public ListCouponQuotasRecordsRequest withParentQuotaId(String parentQuotaId) { } /** - * 父额度ID。这即华为云总经销商给云经销商发放代金券额度时,华为云总经销商的额度ID,或者从云经销商回收代金券额度时,回收的华为云总经销商的额度ID。此参数不携带或携带值为空时,不作为筛选条件。 + * 父额度ID。这即华为云总经销商给云经销商发放代金券额度时,华为云总经销商的额度ID,或者从云经销商回收代金券额度时,回收的华为云总经销商的额度ID。此参数不携带或携带值为空时,不作为筛选条件。携带值为空串或携带值为null时,作为筛选条件。 * @return parentQuotaId */ public String getParentQuotaId() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsFeeRecordsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsFeeRecordsRequest.java index 2c2184ddfb..e7f8d6893e 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsFeeRecordsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsFeeRecordsRequest.java @@ -212,9 +212,9 @@ public ListCustomerBillsFeeRecordsRequest withChargingMode(Integer chargingMode) } /** - * 计费模式:1 : 包年/包月3:按需10:预留实例 此参数不携带或携带值为空时,不作为筛选条件。 + * 计费模式:1 : 包年/包月3:按需10:预留实例11:节省计划 此参数不携带或携带值为空时,不作为筛选条件。 * minimum: 1 - * maximum: 10 + * maximum: 11 * @return chargingMode */ public Integer getChargingMode() { @@ -231,7 +231,7 @@ public ListCustomerBillsFeeRecordsRequest withBillType(Integer billType) { } /** - * 账单类型:1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20 退款-变更(整机)21 退款-变更(降配) 此参数不携带或携带值为空时,不作为筛选条件。 + * 账单类型:1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需此参数不携带或携带值为空时,不作为筛选条件。 * minimum: 1 * maximum: 102 * @return billType diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsMonthlyBreakDownRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsMonthlyBreakDownRequest.java index 647f63ded8..920befd5e8 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsMonthlyBreakDownRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerBillsMonthlyBreakDownRequest.java @@ -173,9 +173,9 @@ public ListCustomerBillsMonthlyBreakDownRequest withChargingMode(Integer chargin } /** - * 计费模式。1:包年/包月3:按需10:预留实例此参数不携带或携带值为空时,不作为筛选条件。 + * 计费模式。1:包年/包月3:按需10:预留实例11:节省计划此参数不携带或携带值为空时,不作为筛选条件。 * minimum: 0 - * maximum: 10 + * maximum: 11 * @return chargingMode */ public Integer getChargingMode() { @@ -192,7 +192,7 @@ public ListCustomerBillsMonthlyBreakDownRequest withBillType(Integer billType) { } /** - * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 此参数不携带或携带值为空时,不作为筛选条件。 + * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需此参数不携带或携带值为空时,不作为筛选条件。 * minimum: 1 * maximum: 102 * @return billType diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerOrdersRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerOrdersRequest.java index c472ea271c..ee12a0a7cc 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerOrdersRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerOrdersRequest.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.bss.v2.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; /** @@ -75,13 +80,88 @@ public class ListCustomerOrdersRequest { private String indirectPartnerId; + /** + * 查询方式。oneself:客户自己订单sub_customer:客户给企业子代付订单此参数不携带或携带值为空串或携带值为null时,默认值为“oneself”。 + */ + public static final class MethodEnum { + + /** + * Enum ONESELF for value: "oneself" + */ + public static final MethodEnum ONESELF = new MethodEnum("oneself"); + + /** + * Enum SUB_CUSTOMER for value: "sub_customer" + */ + public static final MethodEnum SUB_CUSTOMER = new MethodEnum("sub_customer"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("oneself", ONESELF); + map.put("sub_customer", SUB_CUSTOMER); + return Collections.unmodifiableMap(map); + } + + private String value; + + MethodEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static MethodEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new MethodEnum(value)); + } + + public static MethodEnum 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 MethodEnum) { + return this.value.equals(((MethodEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "method") + + private MethodEnum method; + public ListCustomerOrdersRequest withOrderId(String orderId) { this.orderId = orderId; return this; } /** - * 订单ID。此参数不携带或携带值为空时,不作为筛选条件。 说明: 使用特殊字符进行查询的时候,请注意进行URL编码转换,如“%”的转码应为“%25”。 + * 订单ID。大小写不敏感。此参数不携带或携带值为空时,不作为筛选条件。 说明: 使用特殊字符进行查询的时候,请注意进行URL编码转换,如“%”的转码应为“%25”。 * @return orderId */ public String getOrderId() { @@ -115,7 +195,7 @@ public ListCustomerOrdersRequest withCreateTimeBegin(String createTimeBegin) { } /** - * 订单创建开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 订单创建开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。订单创建开始时间与订单创建结束时间间隔不能超过1年。此参数不携带或携带值为空时,不作为筛选条件。 * @return createTimeBegin */ public String getCreateTimeBegin() { @@ -132,7 +212,7 @@ public ListCustomerOrdersRequest withCreateTimeEnd(String createTimeEnd) { } /** - * 订单创建结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 订单创建结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。订单创建开始时间与订单创建结束时间间隔不能超过1年。此参数不携带或携带值为空时,不作为筛选条件。 * @return createTimeEnd */ public String getCreateTimeEnd() { @@ -149,7 +229,7 @@ public ListCustomerOrdersRequest withServiceTypeCode(String serviceTypeCode) { } /** - * 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。此参数不携带或携带值为空时,不作为筛选条件。 + * 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。大小写不敏感。您可以调用查询云服务类型列表接口获取。此参数不携带或携带值为空时,不作为筛选条件。 * @return serviceTypeCode */ public String getServiceTypeCode() { @@ -185,7 +265,7 @@ public ListCustomerOrdersRequest withOrderType(String orderType) { } /** - * 订单类型:1:开通2:续订3:变更4:退订11:按需转包年/包月13:试用14:转商用15:费用调整此参数不携带或携带值为空时,不作为筛选条件。 + * 订单类型:1:开通2:续订3:变更4:退订10:包年/包月转按需11:按需转包年/包月13:试用14:转商用15:费用调整此参数不携带或携带值为空时,不作为筛选条件。 * @return orderType */ public String getOrderType() { @@ -202,7 +282,7 @@ public ListCustomerOrdersRequest withLimit(Integer limit) { } /** - * 每次查询的订单数量,默认值为10。 + * 每次查询的订单数量,默认值为10。此参数不携带或携带值为空或携带值为null,取默认值10。 * minimum: 1 * maximum: 100 * @return limit @@ -221,7 +301,7 @@ public ListCustomerOrdersRequest withOffset(Integer offset) { } /** - * 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 + * 偏移量,从0开始。默认值为0。此参数不携带或携带值为空或携带值为null,取默认值10。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 * minimum: 0 * maximum: 2147483647 * @return offset @@ -240,7 +320,7 @@ public ListCustomerOrdersRequest withOrderBy(String orderBy) { } /** - * 查询的订单列表排序。支持按照创建时间进行排序,带-表示倒序。创建时间:升序为createTime,倒序为-createTime。此参数不携带或携带值为空时,不作为筛选条件。 + * 查询的订单列表排序。大小写不敏感。支持按照创建时间进行排序,带-表示倒序。创建时间:升序为createTime,倒序为-createTime。此参数不携带或携带值为空时,不作为筛选条件。 * @return orderBy */ public String getOrderBy() { @@ -257,7 +337,7 @@ public ListCustomerOrdersRequest withPaymentTimeBegin(String paymentTimeBegin) { } /** - * 订单支付开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 订单支付开始时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。订单支付开始时间与订单支付结束时间间隔不能超过1年。此参数不携带或携带值为空时,不作为筛选条件。 * @return paymentTimeBegin */ public String getPaymentTimeBegin() { @@ -274,7 +354,7 @@ public ListCustomerOrdersRequest withPaymentTimeEnd(String paymentTimeEnd) { } /** - * 订单支付结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 订单支付结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。订单支付开始时间与订单支付结束时间间隔不能超过1年。此参数不携带或携带值为空时,不作为筛选条件。 * @return paymentTimeEnd */ public String getPaymentTimeEnd() { @@ -302,6 +382,23 @@ public void setIndirectPartnerId(String indirectPartnerId) { this.indirectPartnerId = indirectPartnerId; } + public ListCustomerOrdersRequest withMethod(MethodEnum method) { + this.method = method; + return this; + } + + /** + * 查询方式。oneself:客户自己订单sub_customer:客户给企业子代付订单此参数不携带或携带值为空串或携带值为null时,默认值为“oneself”。 + * @return method + */ + public MethodEnum getMethod() { + return method; + } + + public void setMethod(MethodEnum method) { + this.method = method; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -319,7 +416,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.offset, that.offset) && Objects.equals(this.orderBy, that.orderBy) && Objects.equals(this.paymentTimeBegin, that.paymentTimeBegin) && Objects.equals(this.paymentTimeEnd, that.paymentTimeEnd) - && Objects.equals(this.indirectPartnerId, that.indirectPartnerId); + && Objects.equals(this.indirectPartnerId, that.indirectPartnerId) + && Objects.equals(this.method, that.method); } @Override @@ -336,7 +434,8 @@ public int hashCode() { orderBy, paymentTimeBegin, paymentTimeEnd, - indirectPartnerId); + indirectPartnerId, + method); } @Override @@ -356,6 +455,7 @@ public String toString() { sb.append(" paymentTimeBegin: ").append(toIndentedString(paymentTimeBegin)).append("\n"); sb.append(" paymentTimeEnd: ").append(toIndentedString(paymentTimeEnd)).append("\n"); sb.append(" indirectPartnerId: ").append(toIndentedString(indirectPartnerId)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordDetailsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordDetailsRequest.java index d8e6ccafba..dbc6c307ba 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordDetailsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordDetailsRequest.java @@ -11,11 +11,35 @@ */ public class ListCustomerselfResourceRecordDetailsRequest { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") private QueryResRecordsDetailReq body; + public ListCustomerselfResourceRecordDetailsRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 大陆站默认中文,枚举:zh_cn:中文 en_us:英文 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + public ListCustomerselfResourceRecordDetailsRequest withBody(QueryResRecordsDetailReq body) { this.body = body; return this; @@ -51,18 +75,19 @@ public boolean equals(java.lang.Object obj) { return false; } ListCustomerselfResourceRecordDetailsRequest that = (ListCustomerselfResourceRecordDetailsRequest) obj; - return Objects.equals(this.body, that.body); + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(body); + return Objects.hash(xLanguage, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListCustomerselfResourceRecordDetailsRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordsRequest.java index 75dcd75f76..875baa5f9a 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListCustomerselfResourceRecordsRequest.java @@ -90,6 +90,11 @@ public class ListCustomerselfResourceRecordsRequest { private String billDateEnd; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "statistic_type") + + private Integer statisticType; + public ListCustomerselfResourceRecordsRequest withXLanguage(String xLanguage) { this.xLanguage = xLanguage; return this; @@ -166,7 +171,7 @@ public ListCustomerselfResourceRecordsRequest withChargeMode(String chargeMode) } /** - * 计费模式。1:包年/包月3:按需10:预留实例 此参数不携带时,不作为筛选条件。 + * 计费模式。1:包年/包月3:按需10:预留实例11:节省计划 此参数不携带时,不作为筛选条件;不支持携带值为空或携带值为空串或携带值为null。 * @return chargeMode */ public String getChargeMode() { @@ -183,7 +188,7 @@ public ListCustomerselfResourceRecordsRequest withBillType(Integer billType) { } /** - * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更此参数不携带或携带值为空时,不作为筛选条件。 + * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需此参数不携带或携带值为空时,不作为筛选条件。 * minimum: 0 * maximum: 127 * @return billType @@ -342,7 +347,7 @@ public ListCustomerselfResourceRecordsRequest withBillDateBegin(String billDateB } /** - * 查询的资源消费记录的开始日期,东八区时间,格式为YYYY-MM-DD。此参数不携带或携带值为空或携带值为空串时,默认值取cycle月份的第一天。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。 + * 查询的资源消费记录的开始日期,东八区时间,格式为YYYY-MM-DD。此参数不携带或携带值为空或携带值为空串时,默认值取cycle月份的第一天。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。按账期类型统计时字段不生效。 * @return billDateBegin */ public String getBillDateBegin() { @@ -359,7 +364,7 @@ public ListCustomerselfResourceRecordsRequest withBillDateEnd(String billDateEnd } /** - * 查询的资源消费记录的结束日期,东八区时间,格式为YYYY-MM-DD。此参数不携带或携带值为空或携带值为空串时,默认值取cycle月份的最后一天。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。 + * 查询的资源消费记录的结束日期,东八区时间,格式为YYYY-MM-DD。此参数不携带或携带值为空或携带值为空串时,默认值取cycle月份的最后一天。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。按账期类型统计时字段不生效。 * @return billDateEnd */ public String getBillDateEnd() { @@ -370,6 +375,25 @@ public void setBillDateEnd(String billDateEnd) { this.billDateEnd = billDateEnd; } + public ListCustomerselfResourceRecordsRequest withStatisticType(Integer statisticType) { + this.statisticType = statisticType; + return this; + } + + /** + * 统计类型。默认值为3。1:按账期3:按明细该参数不携带或携带值为空时,取默认值3。 + * minimum: 1 + * maximum: 3 + * @return statisticType + */ + public Integer getStatisticType() { + return statisticType; + } + + public void setStatisticType(Integer statisticType) { + this.statisticType = statisticType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -388,7 +412,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.includeZeroRecord, that.includeZeroRecord) && Objects.equals(this.method, that.method) && Objects.equals(this.subCustomerId, that.subCustomerId) && Objects.equals(this.tradeId, that.tradeId) && Objects.equals(this.billDateBegin, that.billDateBegin) - && Objects.equals(this.billDateEnd, that.billDateEnd); + && Objects.equals(this.billDateEnd, that.billDateEnd) + && Objects.equals(this.statisticType, that.statisticType); } @Override @@ -408,7 +433,8 @@ public int hashCode() { subCustomerId, tradeId, billDateBegin, - billDateEnd); + billDateEnd, + statisticType); } @Override @@ -431,6 +457,7 @@ public String toString() { sb.append(" tradeId: ").append(toIndentedString(tradeId)).append("\n"); sb.append(" billDateBegin: ").append(toIndentedString(billDateBegin)).append("\n"); sb.append(" billDateEnd: ").append(toIndentedString(billDateEnd)).append("\n"); + sb.append(" statisticType: ").append(toIndentedString(statisticType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListFreeResourceInfosReq.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListFreeResourceInfosReq.java index 4fc9fc167a..b487fb3a25 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListFreeResourceInfosReq.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListFreeResourceInfosReq.java @@ -3,7 +3,10 @@ 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; /** * ListFreeResourceInfosReq @@ -50,6 +53,11 @@ public class ListFreeResourceInfosReq { private Integer limit; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type_code_list") + + private List serviceTypeCodeList = null; + public ListFreeResourceInfosReq withRegionCode(String regionCode) { this.regionCode = regionCode; return this; @@ -192,6 +200,39 @@ public void setLimit(Integer limit) { this.limit = limit; } + public ListFreeResourceInfosReq withServiceTypeCodeList(List serviceTypeCodeList) { + this.serviceTypeCodeList = serviceTypeCodeList; + return this; + } + + public ListFreeResourceInfosReq addServiceTypeCodeListItem(String serviceTypeCodeListItem) { + if (this.serviceTypeCodeList == null) { + this.serviceTypeCodeList = new ArrayList<>(); + } + this.serviceTypeCodeList.add(serviceTypeCodeListItem); + return this; + } + + public ListFreeResourceInfosReq withServiceTypeCodeList(Consumer> serviceTypeCodeListSetter) { + if (this.serviceTypeCodeList == null) { + this.serviceTypeCodeList = new ArrayList<>(); + } + serviceTypeCodeListSetter.accept(this.serviceTypeCodeList); + return this; + } + + /** + * 云服务类型编码列表,大小写不敏感。 例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。 此参数不携带或携带值为空列表或携带值为null时,不作为筛选条件,返回其他条件匹配的记录。 + * @return serviceTypeCodeList + */ + public List getServiceTypeCodeList() { + return serviceTypeCodeList; + } + + public void setServiceTypeCodeList(List serviceTypeCodeList) { + this.serviceTypeCodeList = serviceTypeCodeList; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -205,12 +246,21 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.productId, that.productId) && Objects.equals(this.productName, that.productName) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.status, that.status) && Objects.equals(this.offset, that.offset) - && Objects.equals(this.limit, that.limit); + && Objects.equals(this.limit, that.limit) + && Objects.equals(this.serviceTypeCodeList, that.serviceTypeCodeList); } @Override public int hashCode() { - return Objects.hash(regionCode, orderId, productId, productName, enterpriseProjectId, status, offset, limit); + return Objects.hash(regionCode, + orderId, + productId, + productName, + enterpriseProjectId, + status, + offset, + limit, + serviceTypeCodeList); } @Override @@ -225,6 +275,7 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" serviceTypeCodeList: ").append(toIndentedString(serviceTypeCodeList)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListIssuedPartnerCouponsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListIssuedPartnerCouponsRequest.java index 71a46eed1f..b944da955c 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListIssuedPartnerCouponsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListIssuedPartnerCouponsRequest.java @@ -86,7 +86,7 @@ public ListIssuedPartnerCouponsRequest withCouponId(String couponId) { } /** - * 优惠券ID。此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 优惠券ID。此参数不携带或携带值为空时,不作为筛选条件;携带值为null时,作为筛选条件;不支持携带值为空串。 * @return couponId */ public String getCouponId() { @@ -120,7 +120,7 @@ public ListIssuedPartnerCouponsRequest withOrderId(String orderId) { } /** - * 订单ID。此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 订单ID。此参数不携带或携带值为空时,不作为筛选条件;携带值为null时,作为筛选条件;不支持携带值为空串。 * @return orderId */ public String getOrderId() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListPartnerCouponsRecordRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListPartnerCouponsRecordRequest.java index 6463f8d222..1cb3758ab5 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListPartnerCouponsRecordRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListPartnerCouponsRecordRequest.java @@ -90,7 +90,7 @@ public ListPartnerCouponsRecordRequest withOperationTypes(Consumer> } /** - * 操作类型。1:发放2:手动回收3:解绑自动回收4:过期回收5:退订回收6:退款充值撤销7:建立关联回收此参数不携带时,不作为筛选条件;携带值为空列表或携带值为空或携带值为null时,作为筛选条件。 + * 操作类型。1:发放2:手动回收3:解绑自动回收4:过期回收5:退订回收6:退款充值撤销7:建立关联回收此参数不携带时,不作为筛选条件;携带值为空列表或携带值为null时,作为筛选条件。 * @return operationTypes */ public List getOperationTypes() { @@ -124,7 +124,7 @@ public ListPartnerCouponsRecordRequest withQuotaType(Integer quotaType) { } /** - * 额度类型。0:代金券额度1:现金券额度此参数不携带或携带值为空或携带值为null时,不作为筛选条件。 + * 额度类型。0:代金券额度1:现金券额度此参数不携带或携带值为空或携带值为null时,不作为筛选条件;不支持携带值为空串。 * minimum: 0 * maximum: 1 * @return quotaType @@ -159,7 +159,7 @@ public ListPartnerCouponsRecordRequest withCouponIds(Consumer> coup } /** - * 代金券ID列表。请从“发放优惠券”接口的响应参数中获取。此参数不携带或携带值为空列表时,不作为筛选条件;携带值为空或携带值为null时,作为筛选条件。 + * 代金券ID列表。请从“发放优惠券”接口的响应参数中获取。此参数不携带时,不作为筛选条件;携带值为空列表或携带值为null时,作为筛选条件。 * @return couponIds */ public List getCouponIds() { @@ -193,7 +193,7 @@ public ListPartnerCouponsRecordRequest withOperationTimeBegin(String operationTi } /** - * 操作时间(开始)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出操作时间大于这个时间的记录。此参数不携带或携带值为空时,不作为筛选条件。 + * 操作时间(开始)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出操作时间大于这个时间的记录。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串和携带值为null。 * @return operationTimeBegin */ public String getOperationTimeBegin() { @@ -210,7 +210,7 @@ public ListPartnerCouponsRecordRequest withOperationTimeEnd(String operationTime } /** - * 操作时间(结束)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出操作时间小于这个时间的记录。此参数不携带或携带值为空时,不作为筛选条件。 + * 操作时间(结束)。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。输入这个条件,会查询出操作时间小于这个时间的记录。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串和携带值为null。 * @return operationTimeEnd */ public String getOperationTimeEnd() { @@ -244,7 +244,7 @@ public ListPartnerCouponsRecordRequest withOffset(Integer offset) { } /** - * 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 + * 偏移量,从0开始。默认值为0。此参数不携带或携带值为空或携带值为null时,取默认值0;不支持携带值为空串。说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 * minimum: 0 * maximum: 2147483646 * @return offset @@ -263,7 +263,7 @@ public ListPartnerCouponsRecordRequest withLimit(Integer limit) { } /** - * 每页记录数。默认值为10。 + * 每页记录数。默认值为10。此参数不携带或携带值为空或携带值为null时,取默认值10;不支持携带值为空串。 * minimum: 1 * maximum: 100 * @return limit diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListRenewRateOnPeriodReq.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListRenewRateOnPeriodReq.java index 16cea3c94c..82f7e2e07e 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListRenewRateOnPeriodReq.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListRenewRateOnPeriodReq.java @@ -28,6 +28,11 @@ public class ListRenewRateOnPeriodReq { private Integer periodNum; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "include_relative_resources") + + private Boolean includeRelativeResources; + public ListRenewRateOnPeriodReq withResourceIds(List resourceIds) { this.resourceIds = resourceIds; return this; @@ -99,6 +104,23 @@ public void setPeriodNum(Integer periodNum) { this.periodNum = periodNum; } + public ListRenewRateOnPeriodReq withIncludeRelativeResources(Boolean includeRelativeResources) { + this.includeRelativeResources = includeRelativeResources; + return this; + } + + /** + * 是否包含关联资源一起续费询价。 false:不包含true:包含 此参数不携带或携带值为空串时,默认值为“false\"。 + * @return includeRelativeResources + */ + public Boolean getIncludeRelativeResources() { + return includeRelativeResources; + } + + public void setIncludeRelativeResources(Boolean includeRelativeResources) { + this.includeRelativeResources = includeRelativeResources; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -109,12 +131,13 @@ public boolean equals(java.lang.Object obj) { } ListRenewRateOnPeriodReq that = (ListRenewRateOnPeriodReq) obj; return Objects.equals(this.resourceIds, that.resourceIds) && Objects.equals(this.periodType, that.periodType) - && Objects.equals(this.periodNum, that.periodNum); + && Objects.equals(this.periodNum, that.periodNum) + && Objects.equals(this.includeRelativeResources, that.includeRelativeResources); } @Override public int hashCode() { - return Objects.hash(resourceIds, periodType, periodNum); + return Objects.hash(resourceIds, periodType, periodNum, includeRelativeResources); } @Override @@ -124,6 +147,7 @@ public String toString() { sb.append(" resourceIds: ").append(toIndentedString(resourceIds)).append("\n"); sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); sb.append(" periodNum: ").append(toIndentedString(periodNum)).append("\n"); + sb.append(" includeRelativeResources: ").append(toIndentedString(includeRelativeResources)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListStoredValueCardsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListStoredValueCardsRequest.java index 59ce182f15..5130a0cb20 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListStoredValueCardsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListStoredValueCardsRequest.java @@ -91,7 +91,7 @@ public ListStoredValueCardsRequest withLimit(Integer limit) { } /** - * 查询的优惠券数量,默认值为10。 + * 查询的储值卡的数量,默认值为10。 * minimum: 1 * maximum: 100 * @return limit diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerBillDetailRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerBillDetailRequest.java index 4772ed88b5..c41b7d5ffb 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerBillDetailRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerBillDetailRequest.java @@ -188,7 +188,7 @@ public ListSubCustomerBillDetailRequest withChargingMode(Integer chargingMode) { } /** - * 计费模式。1:包周期3:按需10:预留实例此参数不携带或携带值为空时,默认查询所有计费模式下的消费记录;携带值为空串或携带值为null时,作为筛选条件。 + * 计费模式。1:包周期3:按需10:预留实例11:节省计划此参数不携带或携带值为空或携带为null时,默认查询所有计费模式下的消费记录;不支持携带值为空串。 * minimum: 0 * maximum: 64 * @return chargingMode @@ -207,7 +207,7 @@ public ListSubCustomerBillDetailRequest withBillDetailType(Integer billDetailTyp } /** - * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需此参数不携带或携带值为空或携带值为null时,不作为筛选条件;不支持携带值为空串。 * minimum: 0 * maximum: 127 * @return billDetailType @@ -226,7 +226,7 @@ public ListSubCustomerBillDetailRequest withResourceId(String resourceId) { } /** - * 资源标识。此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 资源标识。此参数不携带或携带值为空时,不作为筛选条件;携带值为null时,作为筛选条件;不支持携带值为空串。 * @return resourceId */ public String getResourceId() { @@ -243,7 +243,7 @@ public ListSubCustomerBillDetailRequest withResourceName(String resourceName) { } /** - * 资源名称。此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 资源名称。此参数不携带或携带值为空时,不作为筛选条件;携带值为null时,作为筛选条件;不支持携带值为空串。 * @return resourceName */ public String getResourceName() { @@ -260,7 +260,7 @@ public ListSubCustomerBillDetailRequest withTradeId(String tradeId) { } /** - * 订单ID或交易ID,扣费维度的唯一标识。账单类型为1,2,3,4,8时为订单ID。其它场景下为交易ID。非月末扣费:应收ID月末扣费:账单ID 此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 订单ID或交易ID,扣费维度的唯一标识。账单类型为1,2,3,4,8时为订单ID。其它场景下为交易ID。非月末扣费:应收ID月末扣费:账单ID 此参数不携带或携带值为空时,不作为筛选条件;携带值为null时,作为筛选条件;不支持携带值为空串。 * @return tradeId */ public String getTradeId() { @@ -277,7 +277,7 @@ public ListSubCustomerBillDetailRequest withAccountManagerId(String accountManag } /** - * 客户经理标识。此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 客户经理标识。此参数不携带或携带值为空时,不作为筛选条件;携带值为null时,作为筛选条件;不支持携带值为空串。 * @return accountManagerId */ public String getAccountManagerId() { @@ -294,7 +294,7 @@ public ListSubCustomerBillDetailRequest withAssociationType(String associationTy } /** - * 子客户的关联类型:1:顾问销售2:代售 此参数不携带或携带值为空时,不作为筛选条件;携带值为空串或携带值为null时,作为筛选条件。 + * 子客户的关联类型:1:顾问销售2:代售 此参数不携带或携带值为空时,不作为筛选条件;不支持携带为null和空串。 * @return associationType */ public String getAssociationType() { @@ -366,7 +366,7 @@ public ListSubCustomerBillDetailRequest withBillDateBegin(String billDateBegin) } /** - * 查询的资源消费记录的开始日期,格式为YYYY-MM-DD。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串。 说明: 必须和cycle(即资源的消费账期)在同一个月。 + * 查询的资源消费记录的开始日期,格式为YYYY-MM-DD。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串。 说明: 必须和bill_cycle(即资源的消费账期)在同一个月。bill_date_begin需小于等于bill_date_end。 * @return billDateBegin */ public String getBillDateBegin() { @@ -383,7 +383,7 @@ public ListSubCustomerBillDetailRequest withBillDateEnd(String billDateEnd) { } /** - * 查询的资源消费记录的结束日期,格式为YYYY-MM-DD。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串。 说明: 必须和cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照cycle(即资源的消费账期)进行查询。 + * 查询的资源消费记录的结束日期,格式为YYYY-MM-DD。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串。 说明: 必须和bill_cycle(即资源的消费账期)在同一个月。bill_date_begin和bill_date_end两个参数必须同时出现,否则仅按照bill_cycle(即资源的消费账期)进行查询。bill_date_begin需小于等于bill_date_end。 * @return billDateEnd */ public String getBillDateEnd() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerCouponsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerCouponsRequest.java index 3087f7922d..3b4c110224 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerCouponsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ListSubCustomerCouponsRequest.java @@ -122,7 +122,7 @@ public ListSubCustomerCouponsRequest withCouponType(Integer couponType) { } /** - * 优惠券类型:1:代金券2:折扣券3:产品券4:现金券此参数不携带或携带值为空时,不作为筛选条件。 + * 优惠券类型:1:代金券2:折扣券3:产品券4:现金券。此参数不携带或携带值为空或携带值为null时,不作为筛选条件;不支持携带值为空串。 * minimum: 1 * maximum: 4 * @return couponType @@ -141,7 +141,7 @@ public ListSubCustomerCouponsRequest withStatus(Integer status) { } /** - * 客户优惠券实例状态:1:未激活2:待使用3:已使用4:已过期此参数不携带或携带值为空时,不作为筛选条件。 + * 客户优惠券实例状态:1:未激活2:待使用3:已使用4:已过期。此参数不携带或携带值为空时,不作为筛选条件。 说明: 已过期优惠券,只返回12个月以内的数据。 * minimum: 1 * maximum: 4 * @return status @@ -160,7 +160,7 @@ public ListSubCustomerCouponsRequest withActiveStartTime(String activeStartTime) } /** - * 激活时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 激活时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串或携带值为null。 * @return activeStartTime */ public String getActiveStartTime() { @@ -177,7 +177,7 @@ public ListSubCustomerCouponsRequest withActiveEndTime(String activeEndTime) { } /** - * 结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件。 + * 结束时间。UTC时间,格式:yyyy-MM-dd'T'HH:mm:ss'Z',如“2019-05-06T08:05:01Z”。其中,HH范围是0~23,mm和ss范围是0~59。此参数不携带或携带值为空时,不作为筛选条件;不支持携带值为空串或携带值为null。 * @return activeEndTime */ public String getActiveEndTime() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MeasureUnitRest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MeasureUnitRest.java index 6325e75fda..889be5c523 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MeasureUnitRest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MeasureUnitRest.java @@ -70,7 +70,7 @@ public MeasureUnitRest withAbbreviation(String abbreviation) { } /** - * 度量单位名称的英文缩写。 例如:度量单位名称“GB”的英文缩写为“GB”。 + * 度量单位名称的英文缩写。 例如:度量单位名称“GB”的英文缩写为“G”。 * @return abbreviation */ public String getAbbreviation() { @@ -87,7 +87,7 @@ public MeasureUnitRest withMeasureType(Integer measureType) { } /** - * 度量类型。 1:货币2:时长3:流量4:数量7:容量9:行数10:周期11:频率12:个数16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量24:分辨率26:通用资源包抵扣单位27:核数*时长28:内存*时长29:IOPS*时长30:吞吐量*时长31:个/时长40:流量(1000进制)41:1K Tokens + * 度量类型。 1:货币2:时长3:流量4:数量6:长度7:容量9:行数10:周期11:频率12:个数15:容量*时长16:带宽速率17:容量时长18:查询速率19:带宽速率(1000进制)20:性能测试用量21:面积22:视频23:吞吐量24:分辨率26:通用资源包抵扣单位27:核数*时长28:内存*时长29:IOPS*时长30:吞吐量*时长31:个/时长40:流量(1000进制)41:1K Tokens82:帧98:缓存带宽x时长 * @return measureType */ public Integer getMeasureType() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRecord.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRecord.java index b4b0b310c4..1ff4749d74 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRecord.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRecord.java @@ -314,7 +314,7 @@ public MonthlyBillRecord withChargingMode(Integer chargingMode) { } /** - * 计费模式。 1:包年/包月3:按需10:预留实例 + * 计费模式。 1:包年/包月3:按需10:预留实例11:节省计划 * @return chargingMode */ public Integer getChargingMode() { @@ -399,7 +399,7 @@ public MonthlyBillRecord withBillType(Integer billType) { } /** - * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 + * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需 * @return billType */ public Integer getBillType() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRes.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRes.java index 28d0706af1..837c930933 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRes.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/MonthlyBillRes.java @@ -268,7 +268,7 @@ public MonthlyBillRes withBillType(Integer billType) { } /** - * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 + * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需 * @return billType */ public Integer getBillType() { @@ -506,7 +506,7 @@ public MonthlyBillRes withChargeMode(Integer chargeMode) { } /** - * 计费模式。 1 : 包年/包月3:按需10:预留实例 + * 计费模式。 1 : 包年/包月3:按需10:预留实例11:节省计划 * @return chargeMode */ public Integer getChargeMode() { @@ -829,7 +829,7 @@ public MonthlyBillRes withSubServiceTypeCode(String subServiceTypeCode) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的云服务类型编码。 * @return subServiceTypeCode */ public String getSubServiceTypeCode() { @@ -846,7 +846,7 @@ public MonthlyBillRes withSubServiceTypeName(String subServiceTypeName) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的云服务类型名称。 * @return subServiceTypeName */ public String getSubServiceTypeName() { @@ -863,7 +863,7 @@ public MonthlyBillRes withSubResourceTypeCode(String subResourceTypeCode) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源类型编码。 * @return subResourceTypeCode */ public String getSubResourceTypeCode() { @@ -880,7 +880,7 @@ public MonthlyBillRes withSubResourceTypeName(String subResourceTypeName) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源类型名称。 * @return subResourceTypeName */ public String getSubResourceTypeName() { @@ -897,7 +897,7 @@ public MonthlyBillRes withSubResourceId(String subResourceId) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源ID,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceId */ public String getSubResourceId() { @@ -914,7 +914,7 @@ public MonthlyBillRes withSubResourceName(String subResourceName) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源名称,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceName */ public String getSubResourceName() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/NvlCostAnalysedBillDetail.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/NvlCostAnalysedBillDetail.java index 76b7bffe07..2604bc0ffc 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/NvlCostAnalysedBillDetail.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/NvlCostAnalysedBillDetail.java @@ -284,7 +284,7 @@ public NvlCostAnalysedBillDetail withBillType(Integer billType) { } /** - * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 + * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需 * @return billType */ public Integer getBillType() { @@ -556,7 +556,7 @@ public NvlCostAnalysedBillDetail withChargingMode(Integer chargingMode) { } /** - * 计费模式。 1:包年/包月3:按需10:预留实例 + * 计费模式。 1:包年/包月3:按需10:预留实例11:节省计划 * @return chargingMode */ public Integer getChargingMode() { @@ -897,7 +897,7 @@ public NvlCostAnalysedBillDetail withSubServiceTypeCode(String subServiceTypeCod } /** - * 该字段为预留字段 + * 整机的子云服务的自身的云服务类型编码。 * @return subServiceTypeCode */ public String getSubServiceTypeCode() { @@ -914,7 +914,7 @@ public NvlCostAnalysedBillDetail withSubServiceTypeName(String subServiceTypeNam } /** - * 该字段为预留字段 + * 整机的子云服务的自身的云服务类型名称。 * @return subServiceTypeName */ public String getSubServiceTypeName() { @@ -931,7 +931,7 @@ public NvlCostAnalysedBillDetail withSubResourceTypeCode(String subResourceTypeC } /** - * 该字段为预留字段 + * 整机的子云服务的自身的资源类型编码。 * @return subResourceTypeCode */ public String getSubResourceTypeCode() { @@ -948,7 +948,7 @@ public NvlCostAnalysedBillDetail withSubResourceTypeName(String subResourceTypeN } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源类型名称。 * @return subResourceTypeName */ public String getSubResourceTypeName() { @@ -965,7 +965,7 @@ public NvlCostAnalysedBillDetail withSubResourceId(String subResourceId) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源ID,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceId */ public String getSubResourceId() { @@ -982,7 +982,7 @@ public NvlCostAnalysedBillDetail withSubResourceName(String subResourceName) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源名称,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceName */ public String getSubResourceName() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/PeriodProductInfo.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/PeriodProductInfo.java index 71157f7745..2d92642091 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/PeriodProductInfo.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/PeriodProductInfo.java @@ -161,7 +161,7 @@ public PeriodProductInfo withAvailableZone(String availableZone) { } /** - * 可用区标识,例如:“cn-north-1a”。具体请参见地区和终端节点可用分区的“可用分区名称”列的值。 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。 + * 可用区标识,例如:“cn-north-1a”,大小写不敏感。具体请参见地区和终端节点可用分区的“可用分区名称”列的值。 此参数不携带或携带值为空串或携带值为null时,不作为筛选条件。 * @return availableZone */ public String getAvailableZone() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResRecordsDetailReq.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResRecordsDetailReq.java index b9b0bb5862..6d3ea3d253 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResRecordsDetailReq.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResRecordsDetailReq.java @@ -186,7 +186,7 @@ public QueryResRecordsDetailReq withChargeMode(Integer chargeMode) { } /** - * 计费模式: 1 : 包年/包月3:按需10:预留实例 此参数不携带或者携带值为null时,返回所有计费模式的资源详单数据记录。 + * 计费模式。 1 : 包年/包月3:按需10:预留实例11:节省计划 此参数不携带或者携带值为null时,返回所有计费模式的资源详单数据记录。 * minimum: 1 * maximum: 11 * @return chargeMode @@ -205,7 +205,7 @@ public QueryResRecordsDetailReq withBillType(Integer billType) { } /** - * 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 此参数不携带或者携带值为null时,返回所有账单类型的资源详单数据记录。 + * 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需 此参数不携带或者携带值为null时,返回所有账单类型的资源详单数据记录。 * minimum: 1 * maximum: 127 * @return billType @@ -296,7 +296,7 @@ public QueryResRecordsDetailReq withMethod(String method) { } /** - * 查询方式。 oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户 此参数不携带或携带值为空串或携带值为null时,默认值为“all”,如果没有企业子客户,all的时候也是查询客户自己的数据。 + * 查询方式。 oneself:客户自己sub_customer:企业子客户all:客户自己和企业子客户 此参数不携带或携带值为空串或携带值为null时,默认值为“all”,如果没有企业子客户,all的时候也是查询客户自己的数据。 说明: 若需要查询财务独立企业子的账单信息,前提是子账号已经接受了企业主账号的“允许查看子账号消费信息”的申请。申请方法见“变更子账号权限”。 * @return method */ public String getMethod() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResourcesReq.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResourcesReq.java index 2fc0f7d045..5f4907d258 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResourcesReq.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/QueryResourcesReq.java @@ -53,6 +53,11 @@ public class QueryResourcesReq { private String expireTimeEnd; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type_code") + + private String serviceTypeCode; + public QueryResourcesReq withResourceIds(List resourceIds) { this.resourceIds = resourceIds; return this; @@ -227,6 +232,23 @@ public void setExpireTimeEnd(String expireTimeEnd) { this.expireTimeEnd = expireTimeEnd; } + public QueryResourcesReq withServiceTypeCode(String serviceTypeCode) { + this.serviceTypeCode = serviceTypeCode; + return this; + } + + /** + * 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。 此参数不携带、携带值为null,不作为筛选条件。此参数不允许为空串,有参数校验。 + * @return serviceTypeCode + */ + public String getServiceTypeCode() { + return serviceTypeCode; + } + + public void setServiceTypeCode(String serviceTypeCode) { + this.serviceTypeCode = serviceTypeCode; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -240,13 +262,21 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.onlyMainResource, that.onlyMainResource) && Objects.equals(this.statusList, that.statusList) && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) && Objects.equals(this.expireTimeBegin, that.expireTimeBegin) - && Objects.equals(this.expireTimeEnd, that.expireTimeEnd); + && Objects.equals(this.expireTimeEnd, that.expireTimeEnd) + && Objects.equals(this.serviceTypeCode, that.serviceTypeCode); } @Override public int hashCode() { - return Objects - .hash(resourceIds, orderId, onlyMainResource, statusList, offset, limit, expireTimeBegin, expireTimeEnd); + return Objects.hash(resourceIds, + orderId, + onlyMainResource, + statusList, + offset, + limit, + expireTimeBegin, + expireTimeEnd, + serviceTypeCode); } @Override @@ -261,6 +291,7 @@ public String toString() { sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" expireTimeBegin: ").append(toIndentedString(expireTimeBegin)).append("\n"); sb.append(" expireTimeEnd: ").append(toIndentedString(expireTimeEnd)).append("\n"); + sb.append(" serviceTypeCode: ").append(toIndentedString(serviceTypeCode)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/RenewalResourcesReq.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/RenewalResourcesReq.java index 8c96b12dce..f54518ce13 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/RenewalResourcesReq.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/RenewalResourcesReq.java @@ -115,7 +115,7 @@ public RenewalResourcesReq withExpirePolicy(Integer expirePolicy) { } /** - * 到期策略: 0:进入宽限期/保留期1:转按需2:自动退订3:自动续订 + * 到期策略(字段已废弃,请勿使用该字段。此字段必填,需携带,但携带的枚举实际并不生效): 0:进入宽限期/保留期1:转按需2:自动退订3:自动续订 * minimum: 0 * maximum: 3 * @return expirePolicy diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ResFeeRecordV2.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ResFeeRecordV2.java index 0e149c3487..3413c220de 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ResFeeRecordV2.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ResFeeRecordV2.java @@ -313,7 +313,7 @@ public ResFeeRecordV2 withBillType(Integer billType) { } /** - * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更 + * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需 * @return billType */ public Integer getBillType() { @@ -653,7 +653,7 @@ public ResFeeRecordV2 withId(String id) { } /** - * 唯一标识。 + * 唯一标识。 按账期类型统计时不返回唯一标识。 * @return id */ public String getId() { @@ -721,7 +721,7 @@ public ResFeeRecordV2 withChargeMode(String chargeMode) { } /** - * 计费模式。 1:包年/包月3:按需10:预留实例 + * 计费模式。 1:包年/包月3:按需10:预留实例11:节省计划 * @return chargeMode */ public String getChargeMode() { @@ -789,7 +789,7 @@ public ResFeeRecordV2 withUsage(Double usage) { } /** - * 资源的使用量。 + * 资源的使用量。 说明: 查询包周期资源,不返回资源的使用量。 * @return usage */ public Double getUsage() { @@ -806,7 +806,7 @@ public ResFeeRecordV2 withUsageMeasureId(Integer usageMeasureId) { } /** - * 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。 + * 资源使用量的度量单位,您可以调用查询度量单位列表接口获取。 说明: 查询包周期资源,不返回资源使用量的度量单位。 * @return usageMeasureId */ public Integer getUsageMeasureId() { @@ -891,7 +891,7 @@ public ResFeeRecordV2 withUnitPrice(Double unitPrice) { } /** - * 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 + * 产品的单价。 按需产品的单价,只有简单定价,不分档的场景会返回。 包周期产品的单价,只有包周期的如下场景会返回:包周期订购/续订/降配/升配/扩容简单定价,不分档 预留实例的单价,只有如下场景下会返回:订购/续订/降配/升配/扩容/按时计费简单定价,不分档 说明: 当statistic_type入参为1,按账期,查询包周期产品时,不返回单价。 * @return unitPrice */ public Double getUnitPrice() { @@ -908,7 +908,7 @@ public ResFeeRecordV2 withUnit(String unit) { } /** - * 产品的单价单位。 线性产品的单价单位为“元/{线性单位}/月”或“元/{线性单位}/小时”等。非线性产品的单价单位为“元/月”或“元/小时”等。 说明: “线性单位”为线性产品(即订购时需要指定大小的产品)的大小的单位,比如硬盘的线性单位为GB,带宽的线性单位为Mbps。 + * 产品的单价单位。 线性产品的单价单位为“元/{线性单位}/月”或“元/{线性单位}/小时”等。非线性产品的单价单位为“元/月”或“元/小时”等。 说明: “线性单位”为线性产品(即订购时需要指定大小的产品)的大小的单位,比如硬盘的线性单位为GB,带宽的线性单位为Mbps。当statistic_type入参为1,按账期,查询包周期产品时,不返回单价单位。 * @return unit */ public String getUnit() { @@ -1129,7 +1129,7 @@ public ResFeeRecordV2 withFormula(String formula) { } /** - * 实付金额计算公式。当前只包含如下场景: 按需简单定价 按需线性定价 包年包月新购和续费的简单定价 包年包月新购和续费的线性定价 说明: 实付金额计算公式得到的金额值等于amount - coupon_amount的差值。 + * 实付金额计算公式。当前只包含如下场景: 按需非线性定价{使用量}【使用量】/{单位转化率}【单位转换】*{单价}【单价】-{优惠金额}【优惠金额】-{抹零金额}【抹零金额】-{代金券抵扣}【代金券抵扣】 按需线性定价{使用量}【使用量】/{单位转化率}【单位转换】*{线性大小}【规格】*{单价}【单价】-{优惠金额}【优惠金额】-{抹零金额}【抹零金额】-{代金券抵扣}【代金券抵扣】 包年包月新购和续订非线性定价{周期数}【周期数】/{周期转化率}【周期转换】*{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 包年包月新购和续订线性定价{周期数}【周期数】/{周期转化率}【周期转换】*{线性大小}【规格】*{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 包年包月(一次性)新购和续订非线性定价{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 包年包月(一次性)新购和续订线性定价{线性大小}【规格】*{单价}【单价】-{优惠金额}【优惠金额】-{代金券抵扣}【代金券抵扣】 说明: 实付金额计算公式得到的金额值等于amount - coupon_amount的差值。按账期类型查询时不返回计算公式。 * @return formula */ public String getFormula() { @@ -1146,7 +1146,7 @@ public ResFeeRecordV2 withSubServiceTypeCode(String subServiceTypeCode) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的云服务类型编码。 * @return subServiceTypeCode */ public String getSubServiceTypeCode() { @@ -1163,7 +1163,7 @@ public ResFeeRecordV2 withSubServiceTypeName(String subServiceTypeName) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的云服务类型名称。 * @return subServiceTypeName */ public String getSubServiceTypeName() { @@ -1180,7 +1180,7 @@ public ResFeeRecordV2 withSubResourceTypeCode(String subResourceTypeCode) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源类型编码。 * @return subResourceTypeCode */ public String getSubResourceTypeCode() { @@ -1197,7 +1197,7 @@ public ResFeeRecordV2 withSubResourceTypeName(String subResourceTypeName) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源类型名称。 * @return subResourceTypeName */ public String getSubResourceTypeName() { @@ -1214,7 +1214,7 @@ public ResFeeRecordV2 withSubResourceId(String subResourceId) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源ID,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceId */ public String getSubResourceId() { @@ -1231,7 +1231,7 @@ public ResFeeRecordV2 withSubResourceName(String subResourceName) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源名称,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceName */ public String getSubResourceName() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerMonthlySumRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerMonthlySumRequest.java index f463df8a09..c192b59392 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerMonthlySumRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerMonthlySumRequest.java @@ -85,7 +85,7 @@ public ShowCustomerMonthlySumRequest withEnterpriseProjectId(String enterprisePr } /** - * 企业项目标识(企业项目ID)。default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:null其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。此参数不携带或携带值为空时,不作为筛选条件。 + * 企业项目标识(企业项目ID)。default项目对应ID:0未归集(表示该云服务不支持企业项目管理能力)项目对应ID:-1其余项目对应ID获取方法请参见[如何获取企业项目ID](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。此参数不携带或携带值为空时,不作为筛选条件。携带值为null时,作为筛选条件。不支持携带值为空串。 * @return enterpriseProjectId */ public String getEnterpriseProjectId() { diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerOrderDetailsRequest.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerOrderDetailsRequest.java index 494bbf50cd..312be8f3b6 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerOrderDetailsRequest.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/ShowCustomerOrderDetailsRequest.java @@ -77,7 +77,7 @@ public ShowCustomerOrderDetailsRequest withLimit(Integer limit) { } /** - * 每页大小。默认值为10。 + * 每页大小。默认值为10。此参数不携带或携带值为空或携带值为null,取默认值10。 * minimum: 1 * maximum: 100 * @return limit @@ -96,7 +96,7 @@ public ShowCustomerOrderDetailsRequest withOffset(Integer offset) { } /** - * 偏移量,从0开始。默认值为0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 + * 偏移量,从0开始。默认值为0。此参数不携带或携带值为空或携带值为null,取默认值0。 说明: offset用于分页处理,如不涉及分页,请使用默认值0。offset表示相对于满足条件的第一个数据的偏移量。如offset = 1,则返回满足条件的第二个数据至最后一个数据。例如,满足查询条件的结果共10条数据,limit取值为10,offset取值为1,则返回的数据为2~10,第一条数据不返回。 * minimum: 0 * maximum: 2147483647 * @return offset diff --git a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/SubCustomerMonthlyBillDetail.java b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/SubCustomerMonthlyBillDetail.java index 09cead58fb..04781381c6 100644 --- a/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/SubCustomerMonthlyBillDetail.java +++ b/services/bss/src/main/java/com/huaweicloud/sdk/bss/v2/model/SubCustomerMonthlyBillDetail.java @@ -371,7 +371,7 @@ public SubCustomerMonthlyBillDetail withChargingMode(Integer chargingMode) { } /** - * 计费模式。 1:包周期3:按需10:预留实例 + * 计费模式。 1:包周期3:按需10:预留实例11:节省计划 * @return chargingMode */ public Integer getChargingMode() { @@ -439,7 +439,7 @@ public SubCustomerMonthlyBillDetail withBillDetailType(Integer billDetailType) { } /** - * 账单类型。 1:消费-新购2:消费-续订3:消费-变更8:消费-自动续订5:消费-使用12:消费-按时计费4:退款-退订9:调账-补偿13:消费-退订手续费增收14:消费-服务支持计划月末补扣16:调账-扣费18:消费-按月付费20:退款-变更 100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 + * 账单类型。 1:消费-新购2:消费-续订3:消费-变更8:消费-自动续订5:消费-使用12:消费-按时计费4:退款-退订9:调账-补偿13:消费-退订手续费增收14:消费-服务支持计划月末补扣16:调账-扣费18:消费-按月付费20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 * @return billDetailType */ public Integer getBillDetailType() { @@ -949,7 +949,7 @@ public SubCustomerMonthlyBillDetail withSubServiceTypeCode(String subServiceType } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的云服务类型编码。 * @return subServiceTypeCode */ public String getSubServiceTypeCode() { @@ -966,7 +966,7 @@ public SubCustomerMonthlyBillDetail withSubServiceTypeName(String subServiceType } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的云服务类型名称。 * @return subServiceTypeName */ public String getSubServiceTypeName() { @@ -983,7 +983,7 @@ public SubCustomerMonthlyBillDetail withSubResourceTypeCode(String subResourceTy } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源类型编码。 * @return subResourceTypeCode */ public String getSubResourceTypeCode() { @@ -1000,7 +1000,7 @@ public SubCustomerMonthlyBillDetail withSubResourceTypeName(String subResourceTy } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源类型名称。 * @return subResourceTypeName */ public String getSubResourceTypeName() { @@ -1017,7 +1017,7 @@ public SubCustomerMonthlyBillDetail withSubResourceId(String subResourceId) { } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源ID,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceId */ public String getSubResourceId() { @@ -1034,7 +1034,7 @@ public SubCustomerMonthlyBillDetail withSubResourceName(String subResourceName) } /** - * 该字段为预留字段。 + * 整机的子云服务的自身的资源名称,资源标识。(如果为预留实例,则为预留实例标识) * @return subResourceName */ public String getSubResourceName() { diff --git a/services/bssintl/pom.xml b/services/bssintl/pom.xml index 6bb3072a08..8dfa836548 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-bssintl - 3.1.97 + 3.1.98 Huawei Cloud SDK for BSSINTL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java index 4bb6abae06..45e0ba58fc 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/BssintlMeta.java @@ -574,6 +574,11 @@ private static HttpRequestDef f.withMarshaller(ListCustomerOrdersRequest::getIndirectPartnerId, ListCustomerOrdersRequest::setIndirectPartnerId)); + builder.withRequestField("method", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListCustomerOrdersRequest.MethodEnum.class), + f -> f.withMarshaller(ListCustomerOrdersRequest::getMethod, ListCustomerOrdersRequest::setMethod)); // response @@ -595,6 +600,12 @@ private static HttpRequestDefwithRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListCustomerselfResourceRecordDetailsRequest::getXLanguage, + ListCustomerselfResourceRecordDetailsRequest::setXLanguage)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -712,6 +723,12 @@ private static HttpRequestDef f.withMarshaller(ListCustomerselfResourceRecordsRequest::getBillDateEnd, ListCustomerselfResourceRecordsRequest::setBillDateEnd)); + builder.withRequestField("statistic_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListCustomerselfResourceRecordsRequest::getStatisticType, + ListCustomerselfResourceRecordsRequest::setStatisticType)); builder.withRequestField("X-Language", LocationType.Header, FieldExistence.NULL_IGNORE, diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerOrdersRequest.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerOrdersRequest.java index c025be0e8b..527661cf29 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerOrdersRequest.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerOrdersRequest.java @@ -1,8 +1,13 @@ package com.huaweicloud.sdk.bssintl.v2.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; /** @@ -75,6 +80,81 @@ public class ListCustomerOrdersRequest { private String indirectPartnerId; + /** + * |参数名称:查询方式,oneself:客户自己订单sub_customer:客户给企业子代付订单。| |参数的约束及描述:默认为oneself。仅customer_id有值时生效。此参数不携带或携带值为空串或携带值为null时,默认值为“oneself”。| + */ + public static final class MethodEnum { + + /** + * Enum ONESELF for value: "oneself" + */ + public static final MethodEnum ONESELF = new MethodEnum("oneself"); + + /** + * Enum SUB_CUSTOMER for value: "sub_customer" + */ + public static final MethodEnum SUB_CUSTOMER = new MethodEnum("sub_customer"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("oneself", ONESELF); + map.put("sub_customer", SUB_CUSTOMER); + return Collections.unmodifiableMap(map); + } + + private String value; + + MethodEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static MethodEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new MethodEnum(value)); + } + + public static MethodEnum 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 MethodEnum) { + return this.value.equals(((MethodEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "method") + + private MethodEnum method; + public ListCustomerOrdersRequest withOrderId(String orderId) { this.orderId = orderId; return this; @@ -302,6 +382,23 @@ public void setIndirectPartnerId(String indirectPartnerId) { this.indirectPartnerId = indirectPartnerId; } + public ListCustomerOrdersRequest withMethod(MethodEnum method) { + this.method = method; + return this; + } + + /** + * |参数名称:查询方式,oneself:客户自己订单sub_customer:客户给企业子代付订单。| |参数的约束及描述:默认为oneself。仅customer_id有值时生效。此参数不携带或携带值为空串或携带值为null时,默认值为“oneself”。| + * @return method + */ + public MethodEnum getMethod() { + return method; + } + + public void setMethod(MethodEnum method) { + this.method = method; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -319,7 +416,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.offset, that.offset) && Objects.equals(this.orderBy, that.orderBy) && Objects.equals(this.paymentTimeBegin, that.paymentTimeBegin) && Objects.equals(this.paymentTimeEnd, that.paymentTimeEnd) - && Objects.equals(this.indirectPartnerId, that.indirectPartnerId); + && Objects.equals(this.indirectPartnerId, that.indirectPartnerId) + && Objects.equals(this.method, that.method); } @Override @@ -336,7 +434,8 @@ public int hashCode() { orderBy, paymentTimeBegin, paymentTimeEnd, - indirectPartnerId); + indirectPartnerId, + method); } @Override @@ -356,6 +455,7 @@ public String toString() { sb.append(" paymentTimeBegin: ").append(toIndentedString(paymentTimeBegin)).append("\n"); sb.append(" paymentTimeEnd: ").append(toIndentedString(paymentTimeEnd)).append("\n"); sb.append(" indirectPartnerId: ").append(toIndentedString(indirectPartnerId)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordDetailsRequest.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordDetailsRequest.java index 4c2a4d8f73..75bb2eefc1 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordDetailsRequest.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordDetailsRequest.java @@ -11,11 +11,35 @@ */ public class ListCustomerselfResourceRecordDetailsRequest { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "body") private QueryResRecordsDetailReq body; + public ListCustomerselfResourceRecordDetailsRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * |国际站默认英文,枚举:zh_cn:中文 en_us:英文| + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + public ListCustomerselfResourceRecordDetailsRequest withBody(QueryResRecordsDetailReq body) { this.body = body; return this; @@ -51,18 +75,19 @@ public boolean equals(java.lang.Object obj) { return false; } ListCustomerselfResourceRecordDetailsRequest that = (ListCustomerselfResourceRecordDetailsRequest) obj; - return Objects.equals(this.body, that.body); + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(body); + return Objects.hash(xLanguage, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListCustomerselfResourceRecordDetailsRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordsRequest.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordsRequest.java index e9782639ec..fea475e4f4 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordsRequest.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListCustomerselfResourceRecordsRequest.java @@ -90,6 +90,11 @@ public class ListCustomerselfResourceRecordsRequest { private String billDateEnd; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "statistic_type") + + private Integer statisticType; + public ListCustomerselfResourceRecordsRequest withXLanguage(String xLanguage) { this.xLanguage = xLanguage; return this; @@ -166,7 +171,7 @@ public ListCustomerselfResourceRecordsRequest withChargeMode(String chargeMode) } /** - * 计费模式。1:包年/包月3:按需10:预留实例。此参数不携带时,不作为筛选条件。 + * 计费模式。1:包年/包月3:按需10:预留实例11:节省计划。此参数不携带时,不作为筛选条件。 * @return chargeMode */ public String getChargeMode() { @@ -183,7 +188,7 @@ public ListCustomerselfResourceRecordsRequest withBillType(Integer billType) { } /** - * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿 12:消费-按时计费 14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金。此参数不携带或携带值为空时,不作为筛选条件。 + * 账单类型。1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿 12:消费-按时计费 14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。20:退款-变更100:退款-退订税金23:消费-节省计划抵扣 24:退款-包年/包月转按需101:调账-补偿税金102:调账-扣费税金。此参数不携带或携带值为空时,不作为筛选条件。 * minimum: 0 * maximum: 127 * @return billType @@ -370,6 +375,25 @@ public void setBillDateEnd(String billDateEnd) { this.billDateEnd = billDateEnd; } + public ListCustomerselfResourceRecordsRequest withStatisticType(Integer statisticType) { + this.statisticType = statisticType; + return this; + } + + /** + * |参数名称:统计类型。| |参数的约束及描述:统计类型。非必填,默认值为3。1:按账期 3:按明细| + * minimum: 1 + * maximum: 3 + * @return statisticType + */ + public Integer getStatisticType() { + return statisticType; + } + + public void setStatisticType(Integer statisticType) { + this.statisticType = statisticType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -388,7 +412,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.includeZeroRecord, that.includeZeroRecord) && Objects.equals(this.method, that.method) && Objects.equals(this.subCustomerId, that.subCustomerId) && Objects.equals(this.tradeId, that.tradeId) && Objects.equals(this.billDateBegin, that.billDateBegin) - && Objects.equals(this.billDateEnd, that.billDateEnd); + && Objects.equals(this.billDateEnd, that.billDateEnd) + && Objects.equals(this.statisticType, that.statisticType); } @Override @@ -408,7 +433,8 @@ public int hashCode() { subCustomerId, tradeId, billDateBegin, - billDateEnd); + billDateEnd, + statisticType); } @Override @@ -431,6 +457,7 @@ public String toString() { sb.append(" tradeId: ").append(toIndentedString(tradeId)).append("\n"); sb.append(" billDateBegin: ").append(toIndentedString(billDateBegin)).append("\n"); sb.append(" billDateEnd: ").append(toIndentedString(billDateEnd)).append("\n"); + sb.append(" statisticType: ").append(toIndentedString(statisticType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListFreeResourceInfosReq.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListFreeResourceInfosReq.java index 8cf3092f9e..b49194301f 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListFreeResourceInfosReq.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListFreeResourceInfosReq.java @@ -3,7 +3,10 @@ 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; /** * ListFreeResourceInfosReq @@ -50,6 +53,11 @@ public class ListFreeResourceInfosReq { private Integer limit; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type_code_list") + + private List serviceTypeCodeList = null; + public ListFreeResourceInfosReq withRegionCode(String regionCode) { this.regionCode = regionCode; return this; @@ -192,6 +200,39 @@ public void setLimit(Integer limit) { this.limit = limit; } + public ListFreeResourceInfosReq withServiceTypeCodeList(List serviceTypeCodeList) { + this.serviceTypeCodeList = serviceTypeCodeList; + return this; + } + + public ListFreeResourceInfosReq addServiceTypeCodeListItem(String serviceTypeCodeListItem) { + if (this.serviceTypeCodeList == null) { + this.serviceTypeCodeList = new ArrayList<>(); + } + this.serviceTypeCodeList.add(serviceTypeCodeListItem); + return this; + } + + public ListFreeResourceInfosReq withServiceTypeCodeList(Consumer> serviceTypeCodeListSetter) { + if (this.serviceTypeCodeList == null) { + this.serviceTypeCodeList = new ArrayList<>(); + } + serviceTypeCodeListSetter.accept(this.serviceTypeCodeList); + return this; + } + + /** + * 云服务类型编码列表,大小写不敏感。 例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。 此参数不携带或携带值为空列表或携带值为null时,不作为筛选条件,返回其他条件匹配的记录。 + * @return serviceTypeCodeList + */ + public List getServiceTypeCodeList() { + return serviceTypeCodeList; + } + + public void setServiceTypeCodeList(List serviceTypeCodeList) { + this.serviceTypeCodeList = serviceTypeCodeList; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -205,12 +246,21 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.productId, that.productId) && Objects.equals(this.productName, that.productName) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) && Objects.equals(this.status, that.status) && Objects.equals(this.offset, that.offset) - && Objects.equals(this.limit, that.limit); + && Objects.equals(this.limit, that.limit) + && Objects.equals(this.serviceTypeCodeList, that.serviceTypeCodeList); } @Override public int hashCode() { - return Objects.hash(regionCode, orderId, productId, productName, enterpriseProjectId, status, offset, limit); + return Objects.hash(regionCode, + orderId, + productId, + productName, + enterpriseProjectId, + status, + offset, + limit, + serviceTypeCodeList); } @Override @@ -225,6 +275,7 @@ public String toString() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" serviceTypeCodeList: ").append(toIndentedString(serviceTypeCodeList)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListRenewRateOnPeriodReq.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListRenewRateOnPeriodReq.java index 0f0c4f1eac..de9aece5c4 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListRenewRateOnPeriodReq.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListRenewRateOnPeriodReq.java @@ -28,6 +28,11 @@ public class ListRenewRateOnPeriodReq { private Integer periodNum; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "include_relative_resources") + + private Boolean includeRelativeResources; + public ListRenewRateOnPeriodReq withResourceIds(List resourceIds) { this.resourceIds = resourceIds; return this; @@ -99,6 +104,23 @@ public void setPeriodNum(Integer periodNum) { this.periodNum = periodNum; } + public ListRenewRateOnPeriodReq withIncludeRelativeResources(Boolean includeRelativeResources) { + this.includeRelativeResources = includeRelativeResources; + return this; + } + + /** + * |参数名称:是否包含关联资源一起询价| |参数的约束及描述:该参数非必填,true:包含。false:不包含| + * @return includeRelativeResources + */ + public Boolean getIncludeRelativeResources() { + return includeRelativeResources; + } + + public void setIncludeRelativeResources(Boolean includeRelativeResources) { + this.includeRelativeResources = includeRelativeResources; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -109,12 +131,13 @@ public boolean equals(java.lang.Object obj) { } ListRenewRateOnPeriodReq that = (ListRenewRateOnPeriodReq) obj; return Objects.equals(this.resourceIds, that.resourceIds) && Objects.equals(this.periodType, that.periodType) - && Objects.equals(this.periodNum, that.periodNum); + && Objects.equals(this.periodNum, that.periodNum) + && Objects.equals(this.includeRelativeResources, that.includeRelativeResources); } @Override public int hashCode() { - return Objects.hash(resourceIds, periodType, periodNum); + return Objects.hash(resourceIds, periodType, periodNum, includeRelativeResources); } @Override @@ -124,6 +147,7 @@ public String toString() { sb.append(" resourceIds: ").append(toIndentedString(resourceIds)).append("\n"); sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); sb.append(" periodNum: ").append(toIndentedString(periodNum)).append("\n"); + sb.append(" includeRelativeResources: ").append(toIndentedString(includeRelativeResources)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/MonthlyBillRes.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/MonthlyBillRes.java index 64cd0d3f40..1811b93aa5 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/MonthlyBillRes.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/MonthlyBillRes.java @@ -268,7 +268,7 @@ public MonthlyBillRes withBillType(Integer billType) { } /** - * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 + * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更 23:消费-节省计划抵扣 24:退款-包年/包月转按需 100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 * @return billType */ public Integer getBillType() { @@ -506,7 +506,7 @@ public MonthlyBillRes withChargeMode(Integer chargeMode) { } /** - * 计费模式。 1 : 包年/包月3:按需10:预留实例 + * 计费模式。 1 : 包年/包月3:按需10:预留实例11:节省计划。 * @return chargeMode */ public Integer getChargeMode() { diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResRecordsDetailReq.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResRecordsDetailReq.java index 649b70f6f5..7f32ab4b3e 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResRecordsDetailReq.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResRecordsDetailReq.java @@ -186,7 +186,7 @@ public QueryResRecordsDetailReq withChargeMode(Integer chargeMode) { } /** - * 计费模式。 1 : 包年/包月3:按需10:预留实例 此参数不携带或者携带值为null时,返回所有计费模式的资源详单数据记录。 + * 计费模式。 1 : 包年/包月3:按需10:预留实例11:节省计划。 此参数不携带或者携带值为null时,返回所有计费模式的资源详单数据记录。 * minimum: 1 * maximum: 11 * @return chargeMode @@ -205,7 +205,7 @@ public QueryResRecordsDetailReq withBillType(Integer billType) { } /** - * 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金 此参数不携带或者携带值为null时,返回所有账单类型的资源详单数据记录。 + * 账单类型: 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更100:退款-退订税金23:消费-节省计划抵扣 24:退款-包年/包月转按需101:调账-补偿税金102:调账-扣费税金 此参数不携带或者携带值为null时,返回所有账单类型的资源详单数据记录。 * minimum: 1 * maximum: 127 * @return billType diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResourcesReq.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResourcesReq.java index 0e31025570..8f85c6c418 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResourcesReq.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/QueryResourcesReq.java @@ -53,6 +53,11 @@ public class QueryResourcesReq { private String expireTimeEnd; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "service_type_code") + + private String serviceTypeCode; + public QueryResourcesReq withResourceIds(List resourceIds) { this.resourceIds = resourceIds; return this; @@ -227,6 +232,23 @@ public void setExpireTimeEnd(String expireTimeEnd) { this.expireTimeEnd = expireTimeEnd; } + public QueryResourcesReq withServiceTypeCode(String serviceTypeCode) { + this.serviceTypeCode = serviceTypeCode; + return this; + } + + /** + * 云服务类型编码,例如OBS的云服务类型编码为“hws.service.type.obs”。您可以调用查询云服务类型列表接口获取。 此参数不携带、携带值为null,不作为筛选条件。此参数不允许为空串,有参数校验。 + * @return serviceTypeCode + */ + public String getServiceTypeCode() { + return serviceTypeCode; + } + + public void setServiceTypeCode(String serviceTypeCode) { + this.serviceTypeCode = serviceTypeCode; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -240,13 +262,21 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.onlyMainResource, that.onlyMainResource) && Objects.equals(this.statusList, that.statusList) && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) && Objects.equals(this.expireTimeBegin, that.expireTimeBegin) - && Objects.equals(this.expireTimeEnd, that.expireTimeEnd); + && Objects.equals(this.expireTimeEnd, that.expireTimeEnd) + && Objects.equals(this.serviceTypeCode, that.serviceTypeCode); } @Override public int hashCode() { - return Objects - .hash(resourceIds, orderId, onlyMainResource, statusList, offset, limit, expireTimeBegin, expireTimeEnd); + return Objects.hash(resourceIds, + orderId, + onlyMainResource, + statusList, + offset, + limit, + expireTimeBegin, + expireTimeEnd, + serviceTypeCode); } @Override @@ -261,6 +291,7 @@ public String toString() { sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" expireTimeBegin: ").append(toIndentedString(expireTimeBegin)).append("\n"); sb.append(" expireTimeEnd: ").append(toIndentedString(expireTimeEnd)).append("\n"); + sb.append(" serviceTypeCode: ").append(toIndentedString(serviceTypeCode)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/RenewalResourcesReq.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/RenewalResourcesReq.java index c1118841bd..c4db568c2f 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/RenewalResourcesReq.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/RenewalResourcesReq.java @@ -115,7 +115,7 @@ public RenewalResourcesReq withExpirePolicy(Integer expirePolicy) { } /** - * 到期策略: 0:进入宽限期/保留期1:转按需2:自动退订3:自动续订 + * 到期策略(字段已废弃,请勿使用该字段。此字段必填,需携带,但携带的枚举实际并不生效): 0:进入宽限期/保留期1:转按需2:自动退订3:自动续订 * minimum: 0 * maximum: 3 * @return expirePolicy diff --git a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ResFeeRecordV2.java b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ResFeeRecordV2.java index fdf77594f3..e955f0514b 100644 --- a/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ResFeeRecordV2.java +++ b/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ResFeeRecordV2.java @@ -313,7 +313,7 @@ public ResFeeRecordV2 withBillType(Integer billType) { } /** - * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更100:退款-退订税金101:调账-补偿税金102:调账-扣费税金| + * 账单类型。 1:消费-新购2:消费-续订3:消费-变更4:退款-退订5:消费-使用8:消费-自动续订9:调账-补偿14:消费-服务支持计划月末扣费15:消费-税金16:调账-扣费17:消费-保底差额 说明: 保底差额=客户签约保底合同后,如果没有达到保底消费,客户需要补交的费用,仅限于直销或者伙伴顾问销售类子客户,且为后付费用户。 20:退款-变更23:消费-节省计划抵扣24:退款-包年/包月转按需 100:退款-退订税金101:调账-补偿税金102:调账-扣费税金| * @return billType */ public Integer getBillType() { diff --git a/services/cae/pom.xml b/services/cae/pom.xml index 36afbc1b9b..523caf7feb 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cae - 3.1.97 + 3.1.98 Huawei Cloud SDK for CAE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/campusgo/pom.xml b/services/campusgo/pom.xml index 041f2a3c2b..ac69076bf8 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-campusgo - 3.1.97 + 3.1.98 Huawei Cloud SDK for CAMPUSGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cbh/pom.xml b/services/cbh/pom.xml index a158c487be..4d7719f61e 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cbh - 3.1.97 + 3.1.98 Huawei Cloud SDK for CBH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cbr/pom.xml b/services/cbr/pom.xml index d7d9aa6377..0064e6989e 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cbr - 3.1.97 + 3.1.98 Huawei Cloud SDK for CBR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cbs/pom.xml b/services/cbs/pom.xml index a14714d2fd..326d78b2e8 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cbs - 3.1.97 + 3.1.98 Huawei Cloud SDK for CBS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cc/pom.xml b/services/cc/pom.xml index b8fe0a3338..3fdd3a5d8d 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cc - 3.1.97 + 3.1.98 Huawei Cloud SDK for CC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cce/pom.xml b/services/cce/pom.xml index c3c897bd54..4959117b6e 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cce - 3.1.97 + 3.1.98 Huawei Cloud SDK for CCE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ccm/pom.xml b/services/ccm/pom.xml index 2916cba241..3100a196d8 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ccm - 3.1.97 + 3.1.98 Huawei Cloud SDK for CCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cdm/pom.xml b/services/cdm/pom.xml index c215879818..ac6cc6b1c9 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cdm - 3.1.97 + 3.1.98 Huawei Cloud SDK for CDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cdn/pom.xml b/services/cdn/pom.xml index 6d00af0872..c83e77deab 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cdn - 3.1.97 + 3.1.98 Huawei Cloud SDK for CDN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java index a86a44792e..baea86de35 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnAsyncClient.java @@ -345,6 +345,7 @@ public AsyncInvoker enableDomainAsync * @param request ListDomainsRequest 请求对象 * @return CompletableFuture */ + @Deprecated public CompletableFuture listDomainsAsync(ListDomainsRequest request) { return hcClient.asyncInvokeHttp(request, CdnMeta.listDomains); } @@ -359,6 +360,7 @@ public CompletableFuture listDomainsAsync(ListDomainsReques * @param request ListDomainsRequest 请求对象 * @return AsyncInvoker */ + @Deprecated public AsyncInvoker listDomainsAsyncInvoker(ListDomainsRequest request) { return new AsyncInvoker<>(request, CdnMeta.listDomains, hcClient); } diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java index 8250a99e62..8eee1c56f1 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v1/CdnClient.java @@ -338,6 +338,7 @@ public SyncInvoker enableDomainInvoke * @param request ListDomainsRequest 请求对象 * @return ListDomainsResponse */ + @Deprecated public ListDomainsResponse listDomains(ListDomainsRequest request) { return hcClient.syncInvokeHttp(request, CdnMeta.listDomains); } @@ -352,6 +353,7 @@ public ListDomainsResponse listDomains(ListDomainsRequest request) { * @param request ListDomainsRequest 请求对象 * @return SyncInvoker */ + @Deprecated public SyncInvoker listDomainsInvoker(ListDomainsRequest request) { return new SyncInvoker<>(request, CdnMeta.listDomains, hcClient); } diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnAsyncClient.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnAsyncClient.java index c951b73e1f..7ebf3ef349 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnAsyncClient.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnAsyncClient.java @@ -734,7 +734,7 @@ public AsyncInvoker showDomainFullConfigAsync /** * 查询域名配置接口 * - * 查询域名配置接口,支持查询业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、 Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽、回源SNI、访问URL重写、浏览器缓存过期时间。 + * 查询域名配置接口,支持查询业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、 Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽、回源SNI、访问URL重写、浏览器缓存过期时间、区域访问控制。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1208,7 +1208,7 @@ public AsyncInvoker updateDomainFullConfigA /** * 修改域名全量配置接口 * - * 修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽、回源SNI、访问URL重写、浏览器缓存过期时间。 + * 修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽、回源SNI、访问URL重写、浏览器缓存过期时间、区域访问控制。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnClient.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnClient.java index 7659640b1b..7bf0816ff4 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnClient.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/CdnClient.java @@ -722,7 +722,7 @@ public SyncInvoker - 不允许配置两条完全一样的白名单或黑名单规则。 > - 仅允许配置一条生效类型为“所有文件”的规则。 + * @return contentValue + */ + public String getContentValue() { + return contentValue; + } + + public void setContentValue(String contentValue) { + this.contentValue = contentValue; + } + + public AccessAreaFilter withArea(String area) { + this.area = area; + return this; + } + + /** + * 配置规则适用的区域,多个区域以“,”进行分隔,支持的区域如:CN_IN:中国大陆,AF:阿富汗,IE:爱尔兰,EG:埃及,AU:澳大利亚等。具体的位置编码参见《附录-地理位置编码》查询。 + * @return area + */ + public String getArea() { + return area; + } + + public void setArea(String area) { + this.area = area; + } + + public AccessAreaFilter withExceptionIp(String exceptionIp) { + this.exceptionIp = exceptionIp; + return this; + } + + /** + * 例外IP,配置指定IP不执行当前规则。 + * @return exceptionIp + */ + public String getExceptionIp() { + return exceptionIp; + } + + public void setExceptionIp(String exceptionIp) { + this.exceptionIp = exceptionIp; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AccessAreaFilter that = (AccessAreaFilter) obj; + return Objects.equals(this.type, that.type) && Objects.equals(this.contentType, that.contentType) + && Objects.equals(this.contentValue, that.contentValue) && Objects.equals(this.area, that.area) + && Objects.equals(this.exceptionIp, that.exceptionIp); + } + + @Override + public int hashCode() { + return Objects.hash(type, contentType, contentValue, area, exceptionIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AccessAreaFilter {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append(" contentValue: ").append(toIndentedString(contentValue)).append("\n"); + sb.append(" area: ").append(toIndentedString(area)).append("\n"); + sb.append(" exceptionIp: ").append(toIndentedString(exceptionIp)).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/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Configs.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Configs.java index 2360ba0552..bb75dbce0e 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Configs.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Configs.java @@ -188,6 +188,11 @@ public class Configs { private List browserCacheRules = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_area_filter") + + private List accessAreaFilter = null; + public Configs withBusinessType(String businessType) { this.businessType = businessType; return this; @@ -1094,6 +1099,39 @@ public void setBrowserCacheRules(List browserCacheRules) { this.browserCacheRules = browserCacheRules; } + public Configs withAccessAreaFilter(List accessAreaFilter) { + this.accessAreaFilter = accessAreaFilter; + return this; + } + + public Configs addAccessAreaFilterItem(AccessAreaFilter accessAreaFilterItem) { + if (this.accessAreaFilter == null) { + this.accessAreaFilter = new ArrayList<>(); + } + this.accessAreaFilter.add(accessAreaFilterItem); + return this; + } + + public Configs withAccessAreaFilter(Consumer> accessAreaFilterSetter) { + if (this.accessAreaFilter == null) { + this.accessAreaFilter = new ArrayList<>(); + } + accessAreaFilterSetter.accept(this.accessAreaFilter); + return this; + } + + /** + * Get accessAreaFilter + * @return accessAreaFilter + */ + public List getAccessAreaFilter() { + return accessAreaFilter; + } + + public void setAccessAreaFilter(List accessAreaFilter) { + this.accessAreaFilter = accessAreaFilter; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1129,7 +1167,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.quic, that.quic) && Objects.equals(this.errorCodeRedirectRules, that.errorCodeRedirectRules) && Objects.equals(this.sni, that.sni) && Objects.equals(this.requestUrlRewrite, that.requestUrlRewrite) - && Objects.equals(this.browserCacheRules, that.browserCacheRules); + && Objects.equals(this.browserCacheRules, that.browserCacheRules) + && Objects.equals(this.accessAreaFilter, that.accessAreaFilter); } @Override @@ -1168,7 +1207,8 @@ public int hashCode() { errorCodeRedirectRules, sni, requestUrlRewrite, - browserCacheRules); + browserCacheRules, + accessAreaFilter); } @Override @@ -1210,6 +1250,7 @@ public String toString() { sb.append(" sni: ").append(toIndentedString(sni)).append("\n"); sb.append(" requestUrlRewrite: ").append(toIndentedString(requestUrlRewrite)).append("\n"); sb.append(" browserCacheRules: ").append(toIndentedString(browserCacheRules)).append("\n"); + sb.append(" accessAreaFilter: ").append(toIndentedString(accessAreaFilter)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ConfigsGetBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ConfigsGetBody.java index 760d19c54e..402953d4ca 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ConfigsGetBody.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ConfigsGetBody.java @@ -51,7 +51,7 @@ public class ConfigsGetBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sources") - private List sources = null; + private List sources = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "origin_protocol") @@ -188,6 +188,11 @@ public class ConfigsGetBody { private List browserCacheRules = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_area_filter") + + private List accessAreaFilter = null; + public ConfigsGetBody withBusinessType(String businessType) { this.businessType = businessType; return this; @@ -357,12 +362,12 @@ public void setHttps(HttpGetBody https) { this.https = https; } - public ConfigsGetBody withSources(List sources) { + public ConfigsGetBody withSources(List sources) { this.sources = sources; return this; } - public ConfigsGetBody addSourcesItem(SourcesConfig sourcesItem) { + public ConfigsGetBody addSourcesItem(SourcesConfigResponseBody sourcesItem) { if (this.sources == null) { this.sources = new ArrayList<>(); } @@ -370,7 +375,7 @@ public ConfigsGetBody addSourcesItem(SourcesConfig sourcesItem) { return this; } - public ConfigsGetBody withSources(Consumer> sourcesSetter) { + public ConfigsGetBody withSources(Consumer> sourcesSetter) { if (this.sources == null) { this.sources = new ArrayList<>(); } @@ -382,11 +387,11 @@ public ConfigsGetBody withSources(Consumer> sourcesSetter) { * 源站配置。 * @return sources */ - public List getSources() { + public List getSources() { return sources; } - public void setSources(List sources) { + public void setSources(List sources) { this.sources = sources; } @@ -1097,6 +1102,39 @@ public void setBrowserCacheRules(List browserCacheRules) { this.browserCacheRules = browserCacheRules; } + public ConfigsGetBody withAccessAreaFilter(List accessAreaFilter) { + this.accessAreaFilter = accessAreaFilter; + return this; + } + + public ConfigsGetBody addAccessAreaFilterItem(AccessAreaFilter accessAreaFilterItem) { + if (this.accessAreaFilter == null) { + this.accessAreaFilter = new ArrayList<>(); + } + this.accessAreaFilter.add(accessAreaFilterItem); + return this; + } + + public ConfigsGetBody withAccessAreaFilter(Consumer> accessAreaFilterSetter) { + if (this.accessAreaFilter == null) { + this.accessAreaFilter = new ArrayList<>(); + } + accessAreaFilterSetter.accept(this.accessAreaFilter); + return this; + } + + /** + * Get accessAreaFilter + * @return accessAreaFilter + */ + public List getAccessAreaFilter() { + return accessAreaFilter; + } + + public void setAccessAreaFilter(List accessAreaFilter) { + this.accessAreaFilter = accessAreaFilter; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1132,7 +1170,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.quic, that.quic) && Objects.equals(this.errorCodeRedirectRules, that.errorCodeRedirectRules) && Objects.equals(this.sni, that.sni) && Objects.equals(this.requestUrlRewrite, that.requestUrlRewrite) - && Objects.equals(this.browserCacheRules, that.browserCacheRules); + && Objects.equals(this.browserCacheRules, that.browserCacheRules) + && Objects.equals(this.accessAreaFilter, that.accessAreaFilter); } @Override @@ -1171,7 +1210,8 @@ public int hashCode() { errorCodeRedirectRules, sni, requestUrlRewrite, - browserCacheRules); + browserCacheRules, + accessAreaFilter); } @Override @@ -1213,6 +1253,7 @@ public String toString() { sb.append(" sni: ").append(toIndentedString(sni)).append("\n"); sb.append(" requestUrlRewrite: ").append(toIndentedString(requestUrlRewrite)).append("\n"); sb.append(" browserCacheRules: ").append(toIndentedString(browserCacheRules)).append("\n"); + sb.append(" accessAreaFilter: ").append(toIndentedString(accessAreaFilter)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/DomainBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/DomainBody.java index 71aef0b781..a82bc835b2 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/DomainBody.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/DomainBody.java @@ -113,7 +113,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "sources") - private List sources = null; + private List sources = null; /** * 域名服务范围,若为mainland_china,则表示服务范围为中国大陆;若为outside_mainland_china,则表示服务范围为中国大陆境外;若为global,则表示服务范围为全球。 @@ -235,12 +235,12 @@ public void setBusinessType(BusinessTypeEnum businessType) { this.businessType = businessType; } - public DomainBody withSources(List sources) { + public DomainBody withSources(List sources) { this.sources = sources; return this; } - public DomainBody addSourcesItem(Sources sourcesItem) { + public DomainBody addSourcesItem(SourcesRequestBody sourcesItem) { if (this.sources == null) { this.sources = new ArrayList<>(); } @@ -248,7 +248,7 @@ public DomainBody addSourcesItem(Sources sourcesItem) { return this; } - public DomainBody withSources(Consumer> sourcesSetter) { + public DomainBody withSources(Consumer> sourcesSetter) { if (this.sources == null) { this.sources = new ArrayList<>(); } @@ -260,11 +260,11 @@ public DomainBody withSources(Consumer> sourcesSetter) { * 源站配置。 * @return sources */ - public List getSources() { + public List getSources() { return sources; } - public void setSources(List sources) { + public void setSources(List sources) { this.sources = sources; } diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/PreheatingTaskRequestBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/PreheatingTaskRequestBody.java index 1d5abf06ee..ebf22f9641 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/PreheatingTaskRequestBody.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/PreheatingTaskRequestBody.java @@ -62,7 +62,7 @@ public PreheatingTaskRequestBody withUrls(Consumer> urlsSetter) { } /** - * 需要预热的URL必须带有“http://”或“https://”,多个URL用逗号分隔,目前不支持对目录的预热,单个url的长度限制为4096字符,单次最多输入1000个url。 + * 需要预热的URL必须带有“http://”或“https://”,多个URL用逗号分隔(\"url1\", \"url2\"),目前不支持对目录的预热,单个url的长度限制为4096字符,单次最多输入1000个url。 * @return urls */ public List getUrls() { diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/RefreshTaskRequestBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/RefreshTaskRequestBody.java index 362a0edc54..b0bb10b888 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/RefreshTaskRequestBody.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/RefreshTaskRequestBody.java @@ -251,7 +251,7 @@ public RefreshTaskRequestBody withUrls(Consumer> urlsSetter) { } /** - * 需要刷新的URL必须带有“http://”或“https://”,多个URL用逗号分隔,单个url的长度限制为4096字符,单次最多输入1000个url,如果输入的是目录,支持100个目录刷新。 > 如果您需要刷新的URL中有中文,请同时刷新中文URL和转码后的URL。 + * 需要刷新的URL必须带有“http://”或“https://”,多个URL用逗号分隔(\"url1\", \"url2\"),单个url的长度限制为4096字符,单次最多输入1000个url,如果输入的是目录,支持100个目录刷新。 > - 如果您需要刷新的URL中有中文,请同时刷新中文URL(输入中文URL且不开启zh_url_encode)和转码后的URL(输入中文URL且开启zh_url_encode)。 > - 如果您的URL中带有空格,请自行转码后输入,且不要开启URL Encode。 * @return urls */ public List getUrls() { diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoRequest.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoRequest.java index 2054d3c910..e31680146c 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoRequest.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoRequest.java @@ -90,7 +90,7 @@ public ShowUrlTaskInfoRequest withOffset(Integer offset) { } /** - * 偏移量:特定数据字段与起始数据字段位置的距离。 + * 偏移量:特定数据字段与起始数据字段位置的距离,默认为0。 * @return offset */ public Integer getOffset() { @@ -107,7 +107,7 @@ public ShowUrlTaskInfoRequest withLimit(Integer limit) { } /** - * 单次查询数据条数,上限为100。 + * 单次查询数据条数,上限为100,默认为10。 * @return limit */ public Integer getLimit() { diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoResponse.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoResponse.java index afe7013197..f840bd1623 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoResponse.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/ShowUrlTaskInfoResponse.java @@ -57,7 +57,7 @@ public ShowUrlTaskInfoResponse withCount(Integer count) { } /** - * 当前查询到的总页数。 + * 当前页查询到的总数。 * @return count */ public Integer getCount() { diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourceWithPort.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourceWithPort.java index 07000d0a73..1d1ead4e52 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourceWithPort.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourceWithPort.java @@ -106,6 +106,11 @@ public int hashCode() { private OriginTypeEnum originType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_bucket_type") + + private String obsBucketType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "active_standby") @@ -177,6 +182,23 @@ public void setOriginType(OriginTypeEnum originType) { this.originType = originType; } + public SourceWithPort withObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + return this; + } + + /** + * OBS桶类型。 - private: 私有桶(除桶ACL授权外的其他用户无桶的访问权限)。 - public: 公有桶(任何用户都可以对桶内对象进行读操作)。 + * @return obsBucketType + */ + public String getObsBucketType() { + return obsBucketType; + } + + public void setObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + } + public SourceWithPort withActiveStandby(Integer activeStandby) { this.activeStandby = activeStandby; return this; @@ -256,6 +278,7 @@ public boolean equals(java.lang.Object obj) { SourceWithPort that = (SourceWithPort) obj; return Objects.equals(this.domainId, that.domainId) && Objects.equals(this.ipOrDomain, that.ipOrDomain) && Objects.equals(this.originType, that.originType) + && Objects.equals(this.obsBucketType, that.obsBucketType) && Objects.equals(this.activeStandby, that.activeStandby) && Objects.equals(this.enableObsWebHosting, that.enableObsWebHosting) && Objects.equals(this.httpPort, that.httpPort) && Objects.equals(this.httpsPort, that.httpsPort); @@ -263,7 +286,14 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { - return Objects.hash(domainId, ipOrDomain, originType, activeStandby, enableObsWebHosting, httpPort, httpsPort); + return Objects.hash(domainId, + ipOrDomain, + originType, + obsBucketType, + activeStandby, + enableObsWebHosting, + httpPort, + httpsPort); } @Override @@ -273,6 +303,7 @@ public String toString() { sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); sb.append(" ipOrDomain: ").append(toIndentedString(ipOrDomain)).append("\n"); sb.append(" originType: ").append(toIndentedString(originType)).append("\n"); + sb.append(" obsBucketType: ").append(toIndentedString(obsBucketType)).append("\n"); sb.append(" activeStandby: ").append(toIndentedString(activeStandby)).append("\n"); sb.append(" enableObsWebHosting: ").append(toIndentedString(enableObsWebHosting)).append("\n"); sb.append(" httpPort: ").append(toIndentedString(httpPort)).append("\n"); diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Sources.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Sources.java index 59d06b4573..9381f21062 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Sources.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/Sources.java @@ -106,6 +106,11 @@ public int hashCode() { private OriginTypeEnum originType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_bucket_type") + + private String obsBucketType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "active_standby") @@ -167,6 +172,23 @@ public void setOriginType(OriginTypeEnum originType) { this.originType = originType; } + public Sources withObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + return this; + } + + /** + * OBS桶类型。 - private: 私有桶(除桶ACL授权外的其他用户无桶的访问权限)。 - public: 公有桶(任何用户都可以对桶内对象进行读操作)。 + * @return obsBucketType + */ + public String getObsBucketType() { + return obsBucketType; + } + + public void setObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + } + public Sources withActiveStandby(Integer activeStandby) { this.activeStandby = activeStandby; return this; @@ -212,13 +234,14 @@ public boolean equals(java.lang.Object obj) { Sources that = (Sources) obj; return Objects.equals(this.domainId, that.domainId) && Objects.equals(this.ipOrDomain, that.ipOrDomain) && Objects.equals(this.originType, that.originType) + && Objects.equals(this.obsBucketType, that.obsBucketType) && Objects.equals(this.activeStandby, that.activeStandby) && Objects.equals(this.enableObsWebHosting, that.enableObsWebHosting); } @Override public int hashCode() { - return Objects.hash(domainId, ipOrDomain, originType, activeStandby, enableObsWebHosting); + return Objects.hash(domainId, ipOrDomain, originType, obsBucketType, activeStandby, enableObsWebHosting); } @Override @@ -228,6 +251,7 @@ public String toString() { sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); sb.append(" ipOrDomain: ").append(toIndentedString(ipOrDomain)).append("\n"); sb.append(" originType: ").append(toIndentedString(originType)).append("\n"); + sb.append(" obsBucketType: ").append(toIndentedString(obsBucketType)).append("\n"); sb.append(" activeStandby: ").append(toIndentedString(activeStandby)).append("\n"); sb.append(" enableObsWebHosting: ").append(toIndentedString(enableObsWebHosting)).append("\n"); sb.append("}"); diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesConfig.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesConfig.java index c80c7c94c1..4b5a4cb5d4 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesConfig.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesConfig.java @@ -217,7 +217,7 @@ public SourcesConfig withObsBucketType(String obsBucketType) { } /** - * OBS桶源站类型: - “private” 私有桶; - “public” 公有桶,默认为公有桶。 + * OBS桶类型,源站类型是“OBS桶域名”时需要传该参数,不传默认为“public”。 - private: 私有桶(除桶ACL授权外的其他用户无桶的访问权限)。 - public: 公有桶(任何用户都可以对桶内对象进行读操作)。 * @return obsBucketType */ public String getObsBucketType() { diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesConfigResponseBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesConfigResponseBody.java new file mode 100644 index 0000000000..eb17036f6c --- /dev/null +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesConfigResponseBody.java @@ -0,0 +1,367 @@ +package com.huaweicloud.sdk.cdn.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 源站配置。 + */ +public class SourcesConfigResponseBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_type") + + private String originType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_addr") + + private String originAddr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "priority") + + private Integer priority; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "weight") + + private Integer weight; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_web_hosting_status") + + private String obsWebHostingStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "http_port") + + private Integer httpPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "https_port") + + private Integer httpsPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "host_name") + + private String hostName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_bucket_type") + + private String obsBucketType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bucket_access_key") + + private String bucketAccessKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bucket_secret_key") + + private String bucketSecretKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bucket_region") + + private String bucketRegion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bucket_name") + + private String bucketName; + + public SourcesConfigResponseBody withOriginType(String originType) { + this.originType = originType; + return this; + } + + /** + * 源站类型, - ipaddr:源站IP; - domain:源站域名; - obs_bucket:OBS桶域名; - third_bucket:第三方桶。 + * @return originType + */ + public String getOriginType() { + return originType; + } + + public void setOriginType(String originType) { + this.originType = originType; + } + + public SourcesConfigResponseBody withOriginAddr(String originAddr) { + this.originAddr = originAddr; + return this; + } + + /** + * 源站IP或者域名。 + * @return originAddr + */ + public String getOriginAddr() { + return originAddr; + } + + public void setOriginAddr(String originAddr) { + this.originAddr = originAddr; + } + + public SourcesConfigResponseBody withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * 源站优先级,70:主,30:备。 + * @return priority + */ + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public SourcesConfigResponseBody withWeight(Integer weight) { + this.weight = weight; + return this; + } + + /** + * 权重,取值范围1-100。 + * @return weight + */ + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public SourcesConfigResponseBody withObsWebHostingStatus(String obsWebHostingStatus) { + this.obsWebHostingStatus = obsWebHostingStatus; + return this; + } + + /** + * 是否开启OBS静态网站托管,源站类型为obs_bucket时传递,off:关闭,on:开启。 + * @return obsWebHostingStatus + */ + public String getObsWebHostingStatus() { + return obsWebHostingStatus; + } + + public void setObsWebHostingStatus(String obsWebHostingStatus) { + this.obsWebHostingStatus = obsWebHostingStatus; + } + + public SourcesConfigResponseBody withHttpPort(Integer httpPort) { + this.httpPort = httpPort; + return this; + } + + /** + * HTTP端口,默认80,端口取值取值范围1-65535。 + * @return httpPort + */ + public Integer getHttpPort() { + return httpPort; + } + + public void setHttpPort(Integer httpPort) { + this.httpPort = httpPort; + } + + public SourcesConfigResponseBody withHttpsPort(Integer httpsPort) { + this.httpsPort = httpsPort; + return this; + } + + /** + * HTTPS端口,默认443,端口取值取值范围1-65535。 + * @return httpsPort + */ + public Integer getHttpsPort() { + return httpsPort; + } + + public void setHttpsPort(Integer httpsPort) { + this.httpsPort = httpsPort; + } + + public SourcesConfigResponseBody withHostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * 回源HOST,默认加速域名。 + * @return hostName + */ + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public SourcesConfigResponseBody withObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + return this; + } + + /** + * OBS桶类型。 - private: 私有桶(除桶ACL授权外的其他用户无桶的访问权限)。 - public: 公有桶(任何用户都可以对桶内对象进行读操作)。 + * @return obsBucketType + */ + public String getObsBucketType() { + return obsBucketType; + } + + public void setObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + } + + public SourcesConfigResponseBody withBucketAccessKey(String bucketAccessKey) { + this.bucketAccessKey = bucketAccessKey; + return this; + } + + /** + * 第三方对象存储访问密钥。 > 源站类型为第三方桶时必填 + * @return bucketAccessKey + */ + public String getBucketAccessKey() { + return bucketAccessKey; + } + + public void setBucketAccessKey(String bucketAccessKey) { + this.bucketAccessKey = bucketAccessKey; + } + + public SourcesConfigResponseBody withBucketSecretKey(String bucketSecretKey) { + this.bucketSecretKey = bucketSecretKey; + return this; + } + + /** + * 第三方对象存储密钥。 > 源站类型为第三方桶时必填 + * @return bucketSecretKey + */ + public String getBucketSecretKey() { + return bucketSecretKey; + } + + public void setBucketSecretKey(String bucketSecretKey) { + this.bucketSecretKey = bucketSecretKey; + } + + public SourcesConfigResponseBody withBucketRegion(String bucketRegion) { + this.bucketRegion = bucketRegion; + return this; + } + + /** + * 第三方对象存储区域。 > 源站类型为第三方桶时必填 + * @return bucketRegion + */ + public String getBucketRegion() { + return bucketRegion; + } + + public void setBucketRegion(String bucketRegion) { + this.bucketRegion = bucketRegion; + } + + public SourcesConfigResponseBody withBucketName(String bucketName) { + this.bucketName = bucketName; + return this; + } + + /** + * 第三方对象存储名称。 > 源站类型为第三方桶时必填 + * @return bucketName + */ + public String getBucketName() { + return bucketName; + } + + public void setBucketName(String bucketName) { + this.bucketName = bucketName; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SourcesConfigResponseBody that = (SourcesConfigResponseBody) obj; + return Objects.equals(this.originType, that.originType) && Objects.equals(this.originAddr, that.originAddr) + && Objects.equals(this.priority, that.priority) && Objects.equals(this.weight, that.weight) + && Objects.equals(this.obsWebHostingStatus, that.obsWebHostingStatus) + && Objects.equals(this.httpPort, that.httpPort) && Objects.equals(this.httpsPort, that.httpsPort) + && Objects.equals(this.hostName, that.hostName) && Objects.equals(this.obsBucketType, that.obsBucketType) + && Objects.equals(this.bucketAccessKey, that.bucketAccessKey) + && Objects.equals(this.bucketSecretKey, that.bucketSecretKey) + && Objects.equals(this.bucketRegion, that.bucketRegion) && Objects.equals(this.bucketName, that.bucketName); + } + + @Override + public int hashCode() { + return Objects.hash(originType, + originAddr, + priority, + weight, + obsWebHostingStatus, + httpPort, + httpsPort, + hostName, + obsBucketType, + bucketAccessKey, + bucketSecretKey, + bucketRegion, + bucketName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SourcesConfigResponseBody {\n"); + sb.append(" originType: ").append(toIndentedString(originType)).append("\n"); + sb.append(" originAddr: ").append(toIndentedString(originAddr)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); + sb.append(" obsWebHostingStatus: ").append(toIndentedString(obsWebHostingStatus)).append("\n"); + sb.append(" httpPort: ").append(toIndentedString(httpPort)).append("\n"); + sb.append(" httpsPort: ").append(toIndentedString(httpsPort)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" obsBucketType: ").append(toIndentedString(obsBucketType)).append("\n"); + sb.append(" bucketAccessKey: ").append(toIndentedString(bucketAccessKey)).append("\n"); + sb.append(" bucketSecretKey: ").append(toIndentedString(bucketSecretKey)).append("\n"); + sb.append(" bucketRegion: ").append(toIndentedString(bucketRegion)).append("\n"); + sb.append(" bucketName: ").append(toIndentedString(bucketName)).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/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesDomainConfig.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesDomainConfig.java index 26499be4fd..2d0106496b 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesDomainConfig.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesDomainConfig.java @@ -175,7 +175,7 @@ public SourcesDomainConfig withObsBucketType(String obsBucketType) { } /** - * OBS桶源站类型: - “private” 私有桶; - “public” 公有桶,默认为公有桶。 + * OBS桶类型。 - private: 私有桶(除桶ACL授权外的其他用户无桶的访问权限)。 - public: 公有桶(任何用户都可以对桶内对象进行读操作)。 * @return obsBucketType */ public String getObsBucketType() { diff --git a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesRequestBody.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesRequestBody.java new file mode 100644 index 0000000000..439db925b6 --- /dev/null +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/SourcesRequestBody.java @@ -0,0 +1,272 @@ +package com.huaweicloud.sdk.cdn.v2.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 SourcesRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_id") + + private String domainId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip_or_domain") + + private String ipOrDomain; + + /** + * 源站类型取值:ipaddr:源站IP、 domain:源站域名、obs_bucket:OBS桶域名。 + */ + public static final class OriginTypeEnum { + + /** + * Enum IPADDR for value: "ipaddr" + */ + public static final OriginTypeEnum IPADDR = new OriginTypeEnum("ipaddr"); + + /** + * Enum DOMAIN for value: "domain" + */ + public static final OriginTypeEnum DOMAIN = new OriginTypeEnum("domain"); + + /** + * Enum OBS_BUCKET for value: "obs_bucket" + */ + public static final OriginTypeEnum OBS_BUCKET = new OriginTypeEnum("obs_bucket"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ipaddr", IPADDR); + map.put("domain", DOMAIN); + map.put("obs_bucket", OBS_BUCKET); + return Collections.unmodifiableMap(map); + } + + private String value; + + OriginTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OriginTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new OriginTypeEnum(value)); + } + + public static OriginTypeEnum 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 OriginTypeEnum) { + return this.value.equals(((OriginTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "origin_type") + + private OriginTypeEnum originType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_bucket_type") + + private String obsBucketType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "active_standby") + + private Integer activeStandby; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_obs_web_hosting") + + private Integer enableObsWebHosting; + + public SourcesRequestBody withDomainId(String domainId) { + this.domainId = domainId; + return this; + } + + /** + * 加速域名id。 + * @return domainId + */ + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public SourcesRequestBody withIpOrDomain(String ipOrDomain) { + this.ipOrDomain = ipOrDomain; + return this; + } + + /** + * 源站IP(非内网IP)或者域名。 + * @return ipOrDomain + */ + public String getIpOrDomain() { + return ipOrDomain; + } + + public void setIpOrDomain(String ipOrDomain) { + this.ipOrDomain = ipOrDomain; + } + + public SourcesRequestBody withOriginType(OriginTypeEnum originType) { + this.originType = originType; + return this; + } + + /** + * 源站类型取值:ipaddr:源站IP、 domain:源站域名、obs_bucket:OBS桶域名。 + * @return originType + */ + public OriginTypeEnum getOriginType() { + return originType; + } + + public void setOriginType(OriginTypeEnum originType) { + this.originType = originType; + } + + public SourcesRequestBody withObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + return this; + } + + /** + * OBS桶类型,源站类型是“OBS桶域名”时需要传该参数,不传默认为“public”。 - private: 私有桶(除桶ACL授权外的其他用户无桶的访问权限)。 - public: 公有桶(任何用户都可以对桶内对象进行读操作)。 + * @return obsBucketType + */ + public String getObsBucketType() { + return obsBucketType; + } + + public void setObsBucketType(String obsBucketType) { + this.obsBucketType = obsBucketType; + } + + public SourcesRequestBody withActiveStandby(Integer activeStandby) { + this.activeStandby = activeStandby; + return this; + } + + /** + * 主备状态,1代表主源站,0代表备源站。 + * @return activeStandby + */ + public Integer getActiveStandby() { + return activeStandby; + } + + public void setActiveStandby(Integer activeStandby) { + this.activeStandby = activeStandby; + } + + public SourcesRequestBody withEnableObsWebHosting(Integer enableObsWebHosting) { + this.enableObsWebHosting = enableObsWebHosting; + return this; + } + + /** + * 是否开启OBS静态网站托管(0表示关闭,1表示则为开启),源站类型为obs_bucket时传递。 + * @return enableObsWebHosting + */ + public Integer getEnableObsWebHosting() { + return enableObsWebHosting; + } + + public void setEnableObsWebHosting(Integer enableObsWebHosting) { + this.enableObsWebHosting = enableObsWebHosting; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SourcesRequestBody that = (SourcesRequestBody) obj; + return Objects.equals(this.domainId, that.domainId) && Objects.equals(this.ipOrDomain, that.ipOrDomain) + && Objects.equals(this.originType, that.originType) + && Objects.equals(this.obsBucketType, that.obsBucketType) + && Objects.equals(this.activeStandby, that.activeStandby) + && Objects.equals(this.enableObsWebHosting, that.enableObsWebHosting); + } + + @Override + public int hashCode() { + return Objects.hash(domainId, ipOrDomain, originType, obsBucketType, activeStandby, enableObsWebHosting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SourcesRequestBody {\n"); + sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); + sb.append(" ipOrDomain: ").append(toIndentedString(ipOrDomain)).append("\n"); + sb.append(" originType: ").append(toIndentedString(originType)).append("\n"); + sb.append(" obsBucketType: ").append(toIndentedString(obsBucketType)).append("\n"); + sb.append(" activeStandby: ").append(toIndentedString(activeStandby)).append("\n"); + sb.append(" enableObsWebHosting: ").append(toIndentedString(enableObsWebHosting)).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/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/UrlObject.java b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/UrlObject.java index 0c458dbd29..d00f860eaf 100644 --- a/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/UrlObject.java +++ b/services/cdn/src/main/java/com/huaweicloud/sdk/cdn/v2/model/UrlObject.java @@ -40,6 +40,16 @@ public class UrlObject { private String taskType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fail_classify") + + private String failClassify; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fail_desc") + + private String failDesc; + public UrlObject withId(String id) { this.id = id; return this; @@ -142,6 +152,40 @@ public void setTaskType(String taskType) { this.taskType = taskType; } + public UrlObject withFailClassify(String failClassify) { + this.failClassify = failClassify; + return this; + } + + /** + * 失败原因,url状态为failed时返回。 - ORIGIN_ERROR:源站错误。 - INNER_ERROR:内部错误。 - UNKNOWN_ERROR:未知错误。 + * @return failClassify + */ + public String getFailClassify() { + return failClassify; + } + + public void setFailClassify(String failClassify) { + this.failClassify = failClassify; + } + + public UrlObject withFailDesc(String failDesc) { + this.failDesc = failDesc; + return this; + } + + /** + * 刷新预热失败描述。 + * @return failDesc + */ + public String getFailDesc() { + return failDesc; + } + + public void setFailDesc(String failDesc) { + this.failDesc = failDesc; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -153,12 +197,13 @@ public boolean equals(java.lang.Object obj) { UrlObject that = (UrlObject) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.url, that.url) && Objects.equals(this.status, that.status) && Objects.equals(this.createTime, that.createTime) - && Objects.equals(this.taskId, that.taskId) && Objects.equals(this.taskType, that.taskType); + && Objects.equals(this.taskId, that.taskId) && Objects.equals(this.taskType, that.taskType) + && Objects.equals(this.failClassify, that.failClassify) && Objects.equals(this.failDesc, that.failDesc); } @Override public int hashCode() { - return Objects.hash(id, url, status, createTime, taskId, taskType); + return Objects.hash(id, url, status, createTime, taskId, taskType, failClassify, failDesc); } @Override @@ -171,6 +216,8 @@ public String toString() { sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); sb.append(" taskType: ").append(toIndentedString(taskType)).append("\n"); + sb.append(" failClassify: ").append(toIndentedString(failClassify)).append("\n"); + sb.append(" failDesc: ").append(toIndentedString(failDesc)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/ces/pom.xml b/services/ces/pom.xml index bc2682f394..dcc5a9ac44 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ces - 3.1.97 + 3.1.98 Huawei Cloud SDK for CES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cfw/pom.xml b/services/cfw/pom.xml index 7017762dfa..b17d3ae45b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cfw - 3.1.97 + 3.1.98 Huawei Cloud SDK for CFW 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cgs/pom.xml b/services/cgs/pom.xml index c244b697f0..d49c40d859 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cgs - 3.1.97 + 3.1.98 Huawei Cloud SDK for CGS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/classroom/pom.xml b/services/classroom/pom.xml index 49b13c141f..b0b00c1801 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-classroom - 3.1.97 + 3.1.98 Huawei Cloud SDK for CLASSROOM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cloudide/pom.xml b/services/cloudide/pom.xml index e3100c9ab8..d7525449e4 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cloudide - 3.1.97 + 3.1.98 Huawei Cloud SDK for CLOUDIDE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 junit diff --git a/services/cloudpond/pom.xml b/services/cloudpond/pom.xml index 93cc4338e7..d8bd789f36 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cloudpond - 3.1.97 + 3.1.98 Huawei Cloud SDK for CLOUDPOND 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cloudrtc/pom.xml b/services/cloudrtc/pom.xml index 003c9a5c08..5eefba315d 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cloudrtc - 3.1.97 + 3.1.98 Huawei Cloud SDK for CLOUDRTC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cloudtable/pom.xml b/services/cloudtable/pom.xml index 86a4b35dc6..e233a080d2 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtable - 3.1.97 + 3.1.98 Huawei Cloud SDK for CLOUDTABLE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cloudtest/pom.xml b/services/cloudtest/pom.xml index 1f3b37d510..9c172210a2 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cloudtest - 3.1.97 + 3.1.98 Huawei Cloud SDK for CLOUDTEST 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cms/pom.xml b/services/cms/pom.xml index 0265656ef1..8d3bbb8b76 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cms - 3.1.97 + 3.1.98 Huawei Cloud SDK for CMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codeartsartifact/pom.xml b/services/codeartsartifact/pom.xml index 526d136fe0..96d357b709 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsartifact - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODEARTSARTIFACT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codeartsbuild/pom.xml b/services/codeartsbuild/pom.xml index 8e78a0ae29..6dd9366f75 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsbuild - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODEARTSBUILD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codeartscheck/pom.xml b/services/codeartscheck/pom.xml index 3cebb2b666..96fd2c497f 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codeartscheck - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODEARTSCHECK 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codeartsdeploy/pom.xml b/services/codeartsdeploy/pom.xml index 4caf3fae27..6ed6c0451c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsdeploy - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODEARTSDEPLOY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codeartsinspector/pom.xml b/services/codeartsinspector/pom.xml index 4973238469..d3c925c795 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codeartsinspector - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODEARTSINSPECTOR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codeartspipeline/pom.xml b/services/codeartspipeline/pom.xml index e6a85efc93..be1ef9799b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codeartspipeline - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODEARTSPIPELINE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codecraft/pom.xml b/services/codecraft/pom.xml index fd9fa38087..10182c568d 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codecraft - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODECRAFT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/codehub/pom.xml b/services/codehub/pom.xml index e2a047c47e..3dde78311b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-codehub - 3.1.97 + 3.1.98 Huawei Cloud SDK for CODEHUB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/config/pom.xml b/services/config/pom.xml index 0adebafe80..53e835d83b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-config - 3.1.97 + 3.1.98 Huawei Cloud SDK for CONFIG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cph/pom.xml b/services/cph/pom.xml index 1d70070fd8..d4a7886086 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cph - 3.1.97 + 3.1.98 Huawei Cloud SDK for CPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphAsyncClient.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphAsyncClient.java index 8481e0f298..8d8c19af03 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphAsyncClient.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphAsyncClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.AsyncInvoker; +import com.huaweicloud.sdk.cph.v1.model.AddImageMemberRequest; +import com.huaweicloud.sdk.cph.v1.model.AddImageMemberResponse; import com.huaweicloud.sdk.cph.v1.model.BatchCreateTagsRequest; import com.huaweicloud.sdk.cph.v1.model.BatchCreateTagsResponse; import com.huaweicloud.sdk.cph.v1.model.BatchDeleteTagsRequest; @@ -11,6 +13,8 @@ import com.huaweicloud.sdk.cph.v1.model.BatchExportCloudPhoneDataResponse; import com.huaweicloud.sdk.cph.v1.model.BatchImportCloudPhoneDataRequest; import com.huaweicloud.sdk.cph.v1.model.BatchImportCloudPhoneDataResponse; +import com.huaweicloud.sdk.cph.v1.model.BatchShowPhoneConnectInfosRequest; +import com.huaweicloud.sdk.cph.v1.model.BatchShowPhoneConnectInfosResponse; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerModelRequest; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerModelResponse; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerRequest; @@ -19,6 +23,10 @@ import com.huaweicloud.sdk.cph.v1.model.CreateNet2CloudPhoneServerResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteCloudPhoneServerRequest; import com.huaweicloud.sdk.cph.v1.model.DeleteCloudPhoneServerResponse; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageMemberRequest; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageMemberResponse; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageRequest; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteShareAppsRequest; import com.huaweicloud.sdk.cph.v1.model.DeleteShareAppsResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteShareFilesRequest; @@ -39,6 +47,10 @@ import com.huaweicloud.sdk.cph.v1.model.ListCloudPhonesResponse; import com.huaweicloud.sdk.cph.v1.model.ListEncodeServersRequest; import com.huaweicloud.sdk.cph.v1.model.ListEncodeServersResponse; +import com.huaweicloud.sdk.cph.v1.model.ListImageMembersRequest; +import com.huaweicloud.sdk.cph.v1.model.ListImageMembersResponse; +import com.huaweicloud.sdk.cph.v1.model.ListImagesRequest; +import com.huaweicloud.sdk.cph.v1.model.ListImagesResponse; import com.huaweicloud.sdk.cph.v1.model.ListJobsRequest; import com.huaweicloud.sdk.cph.v1.model.ListJobsResponse; import com.huaweicloud.sdk.cph.v1.model.ListProjectTagsRequest; @@ -105,6 +117,37 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 共享镜像给指定账号 + * + * 镜像共享,共享镜像给指定账号。 + * - 镜像只能共享给同region下的其他华为云账号(project_id)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddImageMemberRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture addImageMemberAsync(AddImageMemberRequest request) { + return hcClient.asyncInvokeHttp(request, CphMeta.addImageMember); + } + + /** + * 共享镜像给指定账号 + * + * 镜像共享,共享镜像给指定账号。 + * - 镜像只能共享给同region下的其他华为云账号(project_id)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddImageMemberRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker addImageMemberAsyncInvoker( + AddImageMemberRequest request) { + return new AsyncInvoker<>(request, CphMeta.addImageMember, hcClient); + } + /** * 批量添加标签 * @@ -227,6 +270,36 @@ public AsyncInvoker(request, CphMeta.batchImportCloudPhoneData, hcClient); } + /** + * 获取云手机连接信息 + * + * 获取云手机连接信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowPhoneConnectInfosRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchShowPhoneConnectInfosAsync( + BatchShowPhoneConnectInfosRequest request) { + return hcClient.asyncInvokeHttp(request, CphMeta.batchShowPhoneConnectInfos); + } + + /** + * 获取云手机连接信息 + * + * 获取云手机连接信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowPhoneConnectInfosRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchShowPhoneConnectInfosAsyncInvoker( + BatchShowPhoneConnectInfosRequest request) { + return new AsyncInvoker<>(request, CphMeta.batchShowPhoneConnectInfos, hcClient); + } + /** * 切换云手机服务器 * @@ -359,6 +432,63 @@ public AsyncInvoker(request, CphMeta.deleteCloudPhoneServer, hcClient); } + /** + * 删除镜像 + * + * 删除镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteImageAsync(DeleteImageRequest request) { + return hcClient.asyncInvokeHttp(request, CphMeta.deleteImage); + } + + /** + * 删除镜像 + * + * 删除镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteImageAsyncInvoker(DeleteImageRequest request) { + return new AsyncInvoker<>(request, CphMeta.deleteImage, hcClient); + } + + /** + * 删除共享镜像 + * + * 删除共享镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageMemberRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteImageMemberAsync(DeleteImageMemberRequest request) { + return hcClient.asyncInvokeHttp(request, CphMeta.deleteImageMember); + } + + /** + * 删除共享镜像 + * + * 删除共享镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageMemberRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteImageMemberAsyncInvoker( + DeleteImageMemberRequest request) { + return new AsyncInvoker<>(request, CphMeta.deleteImageMember, hcClient); + } + /** * 删除共享应用 * @@ -624,6 +754,67 @@ public AsyncInvoker listEnc return new AsyncInvoker<>(request, CphMeta.listEncodeServers, hcClient); } + /** + * 获取镜像已共享账号列表 + * + * 获取镜像已共享账号列表 + * - 路径中的project_id为共享账号的租户id + * - 路径中的image_id为共享账号的镜像id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageMembersRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listImageMembersAsync(ListImageMembersRequest request) { + return hcClient.asyncInvokeHttp(request, CphMeta.listImageMembers); + } + + /** + * 获取镜像已共享账号列表 + * + * 获取镜像已共享账号列表 + * - 路径中的project_id为共享账号的租户id + * - 路径中的image_id为共享账号的镜像id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageMembersRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listImageMembersAsyncInvoker( + ListImageMembersRequest request) { + return new AsyncInvoker<>(request, CphMeta.listImageMembers, hcClient); + } + + /** + * 查询镜像列表 + * + * 查询镜像列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImagesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listImagesAsync(ListImagesRequest request) { + return hcClient.asyncInvokeHttp(request, CphMeta.listImages); + } + + /** + * 查询镜像列表 + * + * 查询镜像列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImagesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listImagesAsyncInvoker(ListImagesRequest request) { + return new AsyncInvoker<>(request, CphMeta.listImages, hcClient); + } + /** * 查询任务执行状态列表 * @@ -951,7 +1142,7 @@ public AsyncInvoker res /** * 查询带宽信息 * - * 查询云手机使用的带宽信息。 + * 查询云手机使用的带宽信息,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -965,7 +1156,7 @@ public CompletableFuture showBandwidthDetailAsync(S /** * 查询带宽信息 * - * 查询云手机使用的带宽信息。 + * 查询云手机使用的带宽信息,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1097,7 +1288,7 @@ public AsyncInvoker stopCloudPhon /** * 修改共享带宽 * - * 修改云手机使用的共享带宽大小。 + * 修改云手机使用的共享带宽大小,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1111,7 +1302,7 @@ public CompletableFuture updateBandwidthAsync(UpdateBan /** * 修改共享带宽 * - * 修改云手机使用的共享带宽大小。 + * 修改云手机使用的共享带宽大小,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1244,7 +1435,7 @@ public AsyncInvoker updateSer * 安装apk * * 在云手机中安装apk。系统会将指定的apk文件下载后直接安装到云手机中。 - * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) + * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk,如果一次传多个apk只有第一个安装成功;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) * - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。 * - 建议通过开发应用市场的方式安装apk。允许安装的apk大小限制为2G(即不可将obs桶内大于2G的apk安装到手机中),超过限制将返回错误。 * @@ -1261,7 +1452,7 @@ public CompletableFuture installApkAsync(InstallApkRequest r * 安装apk * * 在云手机中安装apk。系统会将指定的apk文件下载后直接安装到云手机中。 - * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) + * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk,如果一次传多个apk只有第一个安装成功;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) * - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。 * - 建议通过开发应用市场的方式安装apk。允许安装的apk大小限制为2G(即不可将obs桶内大于2G的apk安装到手机中),超过限制将返回错误。 * diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphClient.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphClient.java index 51044b744b..28c7c2be14 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphClient.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.SyncInvoker; +import com.huaweicloud.sdk.cph.v1.model.AddImageMemberRequest; +import com.huaweicloud.sdk.cph.v1.model.AddImageMemberResponse; import com.huaweicloud.sdk.cph.v1.model.BatchCreateTagsRequest; import com.huaweicloud.sdk.cph.v1.model.BatchCreateTagsResponse; import com.huaweicloud.sdk.cph.v1.model.BatchDeleteTagsRequest; @@ -11,6 +13,8 @@ import com.huaweicloud.sdk.cph.v1.model.BatchExportCloudPhoneDataResponse; import com.huaweicloud.sdk.cph.v1.model.BatchImportCloudPhoneDataRequest; import com.huaweicloud.sdk.cph.v1.model.BatchImportCloudPhoneDataResponse; +import com.huaweicloud.sdk.cph.v1.model.BatchShowPhoneConnectInfosRequest; +import com.huaweicloud.sdk.cph.v1.model.BatchShowPhoneConnectInfosResponse; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerModelRequest; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerModelResponse; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerRequest; @@ -19,6 +23,10 @@ import com.huaweicloud.sdk.cph.v1.model.CreateNet2CloudPhoneServerResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteCloudPhoneServerRequest; import com.huaweicloud.sdk.cph.v1.model.DeleteCloudPhoneServerResponse; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageMemberRequest; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageMemberResponse; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageRequest; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteShareAppsRequest; import com.huaweicloud.sdk.cph.v1.model.DeleteShareAppsResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteShareFilesRequest; @@ -39,6 +47,10 @@ import com.huaweicloud.sdk.cph.v1.model.ListCloudPhonesResponse; import com.huaweicloud.sdk.cph.v1.model.ListEncodeServersRequest; import com.huaweicloud.sdk.cph.v1.model.ListEncodeServersResponse; +import com.huaweicloud.sdk.cph.v1.model.ListImageMembersRequest; +import com.huaweicloud.sdk.cph.v1.model.ListImageMembersResponse; +import com.huaweicloud.sdk.cph.v1.model.ListImagesRequest; +import com.huaweicloud.sdk.cph.v1.model.ListImagesResponse; import com.huaweicloud.sdk.cph.v1.model.ListJobsRequest; import com.huaweicloud.sdk.cph.v1.model.ListJobsResponse; import com.huaweicloud.sdk.cph.v1.model.ListProjectTagsRequest; @@ -103,6 +115,37 @@ public static ClientBuilder newBuilder() { return clientBuilder; } + /** + * 共享镜像给指定账号 + * + * 镜像共享,共享镜像给指定账号。 + * - 镜像只能共享给同region下的其他华为云账号(project_id)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddImageMemberRequest 请求对象 + * @return AddImageMemberResponse + */ + public AddImageMemberResponse addImageMember(AddImageMemberRequest request) { + return hcClient.syncInvokeHttp(request, CphMeta.addImageMember); + } + + /** + * 共享镜像给指定账号 + * + * 镜像共享,共享镜像给指定账号。 + * - 镜像只能共享给同region下的其他华为云账号(project_id)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddImageMemberRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker addImageMemberInvoker( + AddImageMemberRequest request) { + return new SyncInvoker<>(request, CphMeta.addImageMember, hcClient); + } + /** * 批量添加标签 * @@ -223,6 +266,35 @@ public SyncInvoker(request, CphMeta.batchImportCloudPhoneData, hcClient); } + /** + * 获取云手机连接信息 + * + * 获取云手机连接信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowPhoneConnectInfosRequest 请求对象 + * @return BatchShowPhoneConnectInfosResponse + */ + public BatchShowPhoneConnectInfosResponse batchShowPhoneConnectInfos(BatchShowPhoneConnectInfosRequest request) { + return hcClient.syncInvokeHttp(request, CphMeta.batchShowPhoneConnectInfos); + } + + /** + * 获取云手机连接信息 + * + * 获取云手机连接信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchShowPhoneConnectInfosRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchShowPhoneConnectInfosInvoker( + BatchShowPhoneConnectInfosRequest request) { + return new SyncInvoker<>(request, CphMeta.batchShowPhoneConnectInfos, hcClient); + } + /** * 切换云手机服务器 * @@ -351,6 +423,63 @@ public SyncInvoker(request, CphMeta.deleteCloudPhoneServer, hcClient); } + /** + * 删除镜像 + * + * 删除镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageRequest 请求对象 + * @return DeleteImageResponse + */ + public DeleteImageResponse deleteImage(DeleteImageRequest request) { + return hcClient.syncInvokeHttp(request, CphMeta.deleteImage); + } + + /** + * 删除镜像 + * + * 删除镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteImageInvoker(DeleteImageRequest request) { + return new SyncInvoker<>(request, CphMeta.deleteImage, hcClient); + } + + /** + * 删除共享镜像 + * + * 删除共享镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageMemberRequest 请求对象 + * @return DeleteImageMemberResponse + */ + public DeleteImageMemberResponse deleteImageMember(DeleteImageMemberRequest request) { + return hcClient.syncInvokeHttp(request, CphMeta.deleteImageMember); + } + + /** + * 删除共享镜像 + * + * 删除共享镜像 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteImageMemberRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteImageMemberInvoker( + DeleteImageMemberRequest request) { + return new SyncInvoker<>(request, CphMeta.deleteImageMember, hcClient); + } + /** * 删除共享应用 * @@ -611,6 +740,67 @@ public SyncInvoker listEnco return new SyncInvoker<>(request, CphMeta.listEncodeServers, hcClient); } + /** + * 获取镜像已共享账号列表 + * + * 获取镜像已共享账号列表 + * - 路径中的project_id为共享账号的租户id + * - 路径中的image_id为共享账号的镜像id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageMembersRequest 请求对象 + * @return ListImageMembersResponse + */ + public ListImageMembersResponse listImageMembers(ListImageMembersRequest request) { + return hcClient.syncInvokeHttp(request, CphMeta.listImageMembers); + } + + /** + * 获取镜像已共享账号列表 + * + * 获取镜像已共享账号列表 + * - 路径中的project_id为共享账号的租户id + * - 路径中的image_id为共享账号的镜像id + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImageMembersRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listImageMembersInvoker( + ListImageMembersRequest request) { + return new SyncInvoker<>(request, CphMeta.listImageMembers, hcClient); + } + + /** + * 查询镜像列表 + * + * 查询镜像列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImagesRequest 请求对象 + * @return ListImagesResponse + */ + public ListImagesResponse listImages(ListImagesRequest request) { + return hcClient.syncInvokeHttp(request, CphMeta.listImages); + } + + /** + * 查询镜像列表 + * + * 查询镜像列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListImagesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listImagesInvoker(ListImagesRequest request) { + return new SyncInvoker<>(request, CphMeta.listImages, hcClient); + } + /** * 查询任务执行状态列表 * @@ -935,7 +1125,7 @@ public SyncInvoker rest /** * 查询带宽信息 * - * 查询云手机使用的带宽信息。 + * 查询云手机使用的带宽信息,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -949,7 +1139,7 @@ public ShowBandwidthDetailResponse showBandwidthDetail(ShowBandwidthDetailReques /** * 查询带宽信息 * - * 查询云手机使用的带宽信息。 + * 查询云手机使用的带宽信息,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1079,7 +1269,7 @@ public SyncInvoker stopCloudPhone /** * 修改共享带宽 * - * 修改云手机使用的共享带宽大小。 + * 修改云手机使用的共享带宽大小,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1093,7 +1283,7 @@ public UpdateBandwidthResponse updateBandwidth(UpdateBandwidthRequest request) { /** * 修改共享带宽 * - * 修改云手机使用的共享带宽大小。 + * 修改云手机使用的共享带宽大小,本接口只适用于使用系统定义网络的服务器。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1224,7 +1414,7 @@ public SyncInvoker updateServ * 安装apk * * 在云手机中安装apk。系统会将指定的apk文件下载后直接安装到云手机中。 - * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) + * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk,如果一次传多个apk只有第一个安装成功;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) * - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。 * - 建议通过开发应用市场的方式安装apk。允许安装的apk大小限制为2G(即不可将obs桶内大于2G的apk安装到手机中),超过限制将返回错误。 * @@ -1241,7 +1431,7 @@ public InstallApkResponse installApk(InstallApkRequest request) { * 安装apk * * 在云手机中安装apk。系统会将指定的apk文件下载后直接安装到云手机中。 - * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) + * 支持安装单apk应用和多apk应用。可使用install命令安装单apk应用,一次只支持安装一个apk,如果一次传多个apk只有第一个安装成功;可使用install-multiple命令安装多apk应用(多apk应用为单个应用拆分成多个apk),一次只支持同一个应用的多个apk。该接口为异步接口。[接口调用前请先确保已完成CPH服务操作OBS桶的委托授权。委托CPH操作OBS桶请参见[委托CPH操作OBS桶](https://support.huaweicloud.com/bestpractice-cph/cph_bp_0050.html)。](tag:hws) * - 管理面性能有限,对相同服务器批量执行的ADB命令,将会阻塞云手机其他任务执行。 * - 建议通过开发应用市场的方式安装apk。允许安装的apk大小限制为2G(即不可将obs桶内大于2G的apk安装到手机中),超过限制将返回错误。 * diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphMeta.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphMeta.java index b723a06c8a..5187c1e952 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphMeta.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/CphMeta.java @@ -5,6 +5,9 @@ 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.cph.v1.model.AddImageMemberRequest; +import com.huaweicloud.sdk.cph.v1.model.AddImageMemberRequestBody; +import com.huaweicloud.sdk.cph.v1.model.AddImageMemberResponse; import com.huaweicloud.sdk.cph.v1.model.BatchCreateTagsRequest; import com.huaweicloud.sdk.cph.v1.model.BatchCreateTagsRequestBody; import com.huaweicloud.sdk.cph.v1.model.BatchCreateTagsResponse; @@ -17,18 +20,25 @@ import com.huaweicloud.sdk.cph.v1.model.BatchImportCloudPhoneDataRequest; import com.huaweicloud.sdk.cph.v1.model.BatchImportCloudPhoneDataRequestBody; import com.huaweicloud.sdk.cph.v1.model.BatchImportCloudPhoneDataResponse; +import com.huaweicloud.sdk.cph.v1.model.BatchShowPhoneConnectInfosRequest; +import com.huaweicloud.sdk.cph.v1.model.BatchShowPhoneConnectInfosResponse; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerModelRequest; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerModelRequestBody; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerModelResponse; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerRequest; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerRequestBody; import com.huaweicloud.sdk.cph.v1.model.ChangeCloudPhoneServerResponse; +import com.huaweicloud.sdk.cph.v1.model.ConnectionRequestBody; import com.huaweicloud.sdk.cph.v1.model.CreateNet2CloudPhoneServerRequest; import com.huaweicloud.sdk.cph.v1.model.CreateNet2CloudPhoneServerRequestBody; import com.huaweicloud.sdk.cph.v1.model.CreateNet2CloudPhoneServerResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteCloudPhoneServerRequest; import com.huaweicloud.sdk.cph.v1.model.DeleteCloudPhoneServerRequestBody; import com.huaweicloud.sdk.cph.v1.model.DeleteCloudPhoneServerResponse; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageMemberRequest; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageMemberResponse; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageRequest; +import com.huaweicloud.sdk.cph.v1.model.DeleteImageResponse; import com.huaweicloud.sdk.cph.v1.model.DeleteShareAppsRequest; import com.huaweicloud.sdk.cph.v1.model.DeleteShareAppsRequestBody; import com.huaweicloud.sdk.cph.v1.model.DeleteShareAppsResponse; @@ -53,6 +63,10 @@ import com.huaweicloud.sdk.cph.v1.model.ListCloudPhonesResponse; import com.huaweicloud.sdk.cph.v1.model.ListEncodeServersRequest; import com.huaweicloud.sdk.cph.v1.model.ListEncodeServersResponse; +import com.huaweicloud.sdk.cph.v1.model.ListImageMembersRequest; +import com.huaweicloud.sdk.cph.v1.model.ListImageMembersResponse; +import com.huaweicloud.sdk.cph.v1.model.ListImagesRequest; +import com.huaweicloud.sdk.cph.v1.model.ListImagesResponse; import com.huaweicloud.sdk.cph.v1.model.ListJobsRequest; import com.huaweicloud.sdk.cph.v1.model.ListJobsResponse; import com.huaweicloud.sdk.cph.v1.model.ListProjectTagsRequest; @@ -124,6 +138,34 @@ @SuppressWarnings("unchecked") public class CphMeta { + public static final HttpRequestDef addImageMember = + genForAddImageMember(); + + private static HttpRequestDef genForAddImageMember() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, AddImageMemberRequest.class, AddImageMemberResponse.class) + .withName("AddImageMember") + .withUri("/v1/{project_id}/cloud-phone/images/{image_id}/members") + .withContentType("application/json"); + + // requests + builder.withRequestField("image_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AddImageMemberRequest::getImageId, AddImageMemberRequest::setImageId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddImageMemberRequestBody.class), + f -> f.withMarshaller(AddImageMemberRequest::getBody, AddImageMemberRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef batchCreateTags = genForBatchCreateTags(); @@ -244,6 +286,33 @@ private static HttpRequestDef batchShowPhoneConnectInfos = + genForBatchShowPhoneConnectInfos(); + + private static HttpRequestDef genForBatchShowPhoneConnectInfos() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchShowPhoneConnectInfosRequest.class, + BatchShowPhoneConnectInfosResponse.class) + .withName("BatchShowPhoneConnectInfos") + .withUri("/v1/{project_id}/cloud-phone/phones/batch-connection") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ConnectionRequestBody.class), + f -> f.withMarshaller(BatchShowPhoneConnectInfosRequest::getBody, + BatchShowPhoneConnectInfosRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef changeCloudPhoneServer = genForChangeCloudPhoneServer(); @@ -350,6 +419,56 @@ private static HttpRequestDef deleteImage = genForDeleteImage(); + + private static HttpRequestDef genForDeleteImage() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteImageRequest.class, DeleteImageResponse.class) + .withName("DeleteImage") + .withUri("/v1/{project_id}/cloud-phone/images/{image_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("image_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteImageRequest::getImageId, DeleteImageRequest::setImageId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteImageMember = + genForDeleteImageMember(); + + private static HttpRequestDef genForDeleteImageMember() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteImageMemberRequest.class, DeleteImageMemberResponse.class) + .withName("DeleteImageMember") + .withUri("/v1/{project_id}/cloud-phone/images/{image_id}/members/{member_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("image_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteImageMemberRequest::getImageId, DeleteImageMemberRequest::setImageId)); + builder.withRequestField("member_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteImageMemberRequest::getMemberId, DeleteImageMemberRequest::setMemberId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef deleteShareApps = genForDeleteShareApps(); @@ -431,6 +550,12 @@ private static HttpRequestDefwithRequestField("image_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListCloudPhoneImagesRequest::getImageType, + ListCloudPhoneImagesRequest::setImageType)); // response @@ -657,6 +782,91 @@ private static HttpRequestDef listImageMembers = + genForListImageMembers(); + + private static HttpRequestDef genForListImageMembers() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListImageMembersRequest.class, ListImageMembersResponse.class) + .withName("ListImageMembers") + .withUri("/v1/{project_id}/cloud-phone/images/{image_id}/members") + .withContentType("application/json"); + + // requests + builder.withRequestField("image_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImageMembersRequest::getImageId, ListImageMembersRequest::setImageId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listImages = genForListImages(); + + private static HttpRequestDef genForListImages() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListImagesRequest.class, ListImagesResponse.class) + .withName("ListImages") + .withUri("/v1/{project_id}/cloud-phone/images") + .withContentType("application/json"); + + // requests + builder.withRequestField("image_type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImagesRequest::getImageType, ListImagesRequest::setImageType)); + builder.withRequestField("status", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListImagesRequest::getStatus, ListImagesRequest::setStatus)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListImagesRequest::getOffset, ListImagesRequest::setOffset)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListImagesRequest::getLimit, ListImagesRequest::setLimit)); + builder.withRequestField("image_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImagesRequest::getImageId, ListImagesRequest::setImageId)); + builder.withRequestField("image_name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImagesRequest::getImageName, ListImagesRequest::setImageName)); + builder.withRequestField("create_since", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListImagesRequest::getCreateSince, ListImagesRequest::setCreateSince)); + builder.withRequestField("create_until", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Long.class), + f -> f.withMarshaller(ListImagesRequest::getCreateUntil, ListImagesRequest::setCreateUntil)); + builder.withRequestField("src_project_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListImagesRequest::getSrcProjectId, ListImagesRequest::setSrcProjectId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listJobs = genForListJobs(); private static HttpRequestDef genForListJobs() { diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberRequest.java new file mode 100644 index 0000000000..05a42ded37 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cph.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 AddImageMemberRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_id") + + private String imageId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddImageMemberRequestBody body; + + public AddImageMemberRequest withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像id。 + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public AddImageMemberRequest withBody(AddImageMemberRequestBody body) { + this.body = body; + return this; + } + + public AddImageMemberRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddImageMemberRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddImageMemberRequestBody getBody() { + return body; + } + + public void setBody(AddImageMemberRequestBody 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; + } + AddImageMemberRequest that = (AddImageMemberRequest) obj; + return Objects.equals(this.imageId, that.imageId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(imageId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddImageMemberRequest {\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberRequestBody.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberRequestBody.java new file mode 100644 index 0000000000..000c6027ed --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberRequestBody.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 共享镜像成员请求体 + */ +public class AddImageMemberRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "member") + + private String member; + + public AddImageMemberRequestBody withMember(String member) { + this.member = member; + return this; + } + + /** + * 被共享账号的PROJECT_ID + * @return member + */ + public String getMember() { + return member; + } + + public void setMember(String member) { + this.member = member; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AddImageMemberRequestBody that = (AddImageMemberRequestBody) obj; + return Objects.equals(this.member, that.member); + } + + @Override + public int hashCode() { + return Objects.hash(member); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddImageMemberRequestBody {\n"); + sb.append(" member: ").append(toIndentedString(member)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberResponse.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberResponse.java new file mode 100644 index 0000000000..80ea68896e --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/AddImageMemberResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cph.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 AddImageMemberResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public AddImageMemberResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求id + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AddImageMemberResponse that = (AddImageMemberResponse) obj; + return Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddImageMemberResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/BatchShowPhoneConnectInfosRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/BatchShowPhoneConnectInfosRequest.java new file mode 100644 index 0000000000..eb9571bf4f --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/BatchShowPhoneConnectInfosRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.cph.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 BatchShowPhoneConnectInfosRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ConnectionRequestBody body; + + public BatchShowPhoneConnectInfosRequest withBody(ConnectionRequestBody body) { + this.body = body; + return this; + } + + public BatchShowPhoneConnectInfosRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ConnectionRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ConnectionRequestBody getBody() { + return body; + } + + public void setBody(ConnectionRequestBody 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; + } + BatchShowPhoneConnectInfosRequest that = (BatchShowPhoneConnectInfosRequest) 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 BatchShowPhoneConnectInfosRequest {\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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/BatchShowPhoneConnectInfosResponse.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/BatchShowPhoneConnectInfosResponse.java new file mode 100644 index 0000000000..b061a02b5c --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/BatchShowPhoneConnectInfosResponse.java @@ -0,0 +1,155 @@ +package com.huaweicloud.sdk.cph.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 BatchShowPhoneConnectInfosResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "connect_infos") + + private List connectInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "errors") + + private List errors = null; + + public BatchShowPhoneConnectInfosResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求的唯一标识ID。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public BatchShowPhoneConnectInfosResponse withConnectInfos(List connectInfos) { + this.connectInfos = connectInfos; + return this; + } + + public BatchShowPhoneConnectInfosResponse addConnectInfosItem(ConnectInfo connectInfosItem) { + if (this.connectInfos == null) { + this.connectInfos = new ArrayList<>(); + } + this.connectInfos.add(connectInfosItem); + return this; + } + + public BatchShowPhoneConnectInfosResponse withConnectInfos(Consumer> connectInfosSetter) { + if (this.connectInfos == null) { + this.connectInfos = new ArrayList<>(); + } + connectInfosSetter.accept(this.connectInfos); + return this; + } + + /** + * 云手机接入信息列表 + * @return connectInfos + */ + public List getConnectInfos() { + return connectInfos; + } + + public void setConnectInfos(List connectInfos) { + this.connectInfos = connectInfos; + } + + public BatchShowPhoneConnectInfosResponse withErrors(List errors) { + this.errors = errors; + return this; + } + + public BatchShowPhoneConnectInfosResponse addErrorsItem(ConnectErrorInfo errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + public BatchShowPhoneConnectInfosResponse withErrors(Consumer> errorsSetter) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + errorsSetter.accept(this.errors); + return this; + } + + /** + * 错误信息 + * @return errors + */ + public List getErrors() { + return errors; + } + + public void setErrors(List errors) { + this.errors = errors; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchShowPhoneConnectInfosResponse that = (BatchShowPhoneConnectInfosResponse) obj; + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.connectInfos, that.connectInfos) + && Objects.equals(this.errors, that.errors); + } + + @Override + public int hashCode() { + return Objects.hash(requestId, connectInfos, errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchShowPhoneConnectInfosResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" connectInfos: ").append(toIndentedString(connectInfos)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectErrorInfo.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectErrorInfo.java new file mode 100644 index 0000000000..18243a8a5d --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectErrorInfo.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 错误信息列表。 + */ +public class ConnectErrorInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone_id") + + private String phoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_code") + + private String errorCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_msg") + + private String errorMsg; + + public ConnectErrorInfo withPhoneId(String phoneId) { + this.phoneId = phoneId; + return this; + } + + /** + * 云手机的唯一标识ID。 + * @return phoneId + */ + public String getPhoneId() { + return phoneId; + } + + public void setPhoneId(String phoneId) { + this.phoneId = phoneId; + } + + public ConnectErrorInfo withErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * 错误码。 + * @return errorCode + */ + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public ConnectErrorInfo withErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + return this; + } + + /** + * 错误说明。 + * @return errorMsg + */ + public String getErrorMsg() { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConnectErrorInfo that = (ConnectErrorInfo) obj; + return Objects.equals(this.phoneId, that.phoneId) && Objects.equals(this.errorCode, that.errorCode) + && Objects.equals(this.errorMsg, that.errorMsg); + } + + @Override + public int hashCode() { + return Objects.hash(phoneId, errorCode, errorMsg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectErrorInfo {\n"); + sb.append(" phoneId: ").append(toIndentedString(phoneId)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" errorMsg: ").append(toIndentedString(errorMsg)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectInfo.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectInfo.java new file mode 100644 index 0000000000..8120205b27 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectInfo.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.cph.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 ConnectInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone_id") + + private String phoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_info") + + private ConnectInfoAccessInfo accessInfo; + + public ConnectInfo withPhoneId(String phoneId) { + this.phoneId = phoneId; + return this; + } + + /** + * 云手机的唯一标识。 + * @return phoneId + */ + public String getPhoneId() { + return phoneId; + } + + public void setPhoneId(String phoneId) { + this.phoneId = phoneId; + } + + public ConnectInfo withAccessInfo(ConnectInfoAccessInfo accessInfo) { + this.accessInfo = accessInfo; + return this; + } + + public ConnectInfo withAccessInfo(Consumer accessInfoSetter) { + if (this.accessInfo == null) { + this.accessInfo = new ConnectInfoAccessInfo(); + accessInfoSetter.accept(this.accessInfo); + } + + return this; + } + + /** + * Get accessInfo + * @return accessInfo + */ + public ConnectInfoAccessInfo getAccessInfo() { + return accessInfo; + } + + public void setAccessInfo(ConnectInfoAccessInfo 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; + } + ConnectInfo that = (ConnectInfo) obj; + return Objects.equals(this.phoneId, that.phoneId) && Objects.equals(this.accessInfo, that.accessInfo); + } + + @Override + public int hashCode() { + return Objects.hash(phoneId, accessInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectInfo {\n"); + sb.append(" phoneId: ").append(toIndentedString(phoneId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectInfoAccessInfo.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectInfoAccessInfo.java new file mode 100644 index 0000000000..9b200b259d --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectInfoAccessInfo.java @@ -0,0 +1,215 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 云手机接入信息 + */ +public class ConnectInfoAccessInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_ip") + + private String accessIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intranet_ip") + + private String intranetIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_ipv6") + + private String accessIpv6; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "access_port") + + private Integer accessPort; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "session_id") + + private String sessionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "timestamp") + + private String timestamp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ticket") + + private String ticket; + + public ConnectInfoAccessInfo withAccessIp(String accessIp) { + this.accessIp = accessIp; + return this; + } + + /** + * 云手机实例的访问IP + * @return accessIp + */ + public String getAccessIp() { + return accessIp; + } + + public void setAccessIp(String accessIp) { + this.accessIp = accessIp; + } + + public ConnectInfoAccessInfo withIntranetIp(String intranetIp) { + this.intranetIp = intranetIp; + return this; + } + + /** + * 云手机实例的内网访问IP + * @return intranetIp + */ + public String getIntranetIp() { + return intranetIp; + } + + public void setIntranetIp(String intranetIp) { + this.intranetIp = intranetIp; + } + + public ConnectInfoAccessInfo withAccessIpv6(String accessIpv6) { + this.accessIpv6 = accessIpv6; + return this; + } + + /** + * 云手机服务器IPv6 IP + * @return accessIpv6 + */ + public String getAccessIpv6() { + return accessIpv6; + } + + public void setAccessIpv6(String accessIpv6) { + this.accessIpv6 = accessIpv6; + } + + public ConnectInfoAccessInfo withAccessPort(Integer accessPort) { + this.accessPort = accessPort; + return this; + } + + /** + * 云手机实例的访问端口 + * minimum: 0 + * maximum: 8096 + * @return accessPort + */ + public Integer getAccessPort() { + return accessPort; + } + + public void setAccessPort(Integer accessPort) { + this.accessPort = accessPort; + } + + public ConnectInfoAccessInfo withSessionId(String sessionId) { + this.sessionId = sessionId; + return this; + } + + /** + * 本次接入的会话ID + * @return sessionId + */ + public String getSessionId() { + return sessionId; + } + + public void setSessionId(String sessionId) { + this.sessionId = sessionId; + } + + public ConnectInfoAccessInfo withTimestamp(String timestamp) { + this.timestamp = timestamp; + return this; + } + + /** + * 时间戳 + * @return timestamp + */ + public String getTimestamp() { + return timestamp; + } + + public void setTimestamp(String timestamp) { + this.timestamp = timestamp; + } + + public ConnectInfoAccessInfo withTicket(String ticket) { + this.ticket = ticket; + return this; + } + + /** + * 签名令牌 + * @return ticket + */ + public String getTicket() { + return ticket; + } + + public void setTicket(String ticket) { + this.ticket = ticket; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConnectInfoAccessInfo that = (ConnectInfoAccessInfo) obj; + return Objects.equals(this.accessIp, that.accessIp) && Objects.equals(this.intranetIp, that.intranetIp) + && Objects.equals(this.accessIpv6, that.accessIpv6) && Objects.equals(this.accessPort, that.accessPort) + && Objects.equals(this.sessionId, that.sessionId) && Objects.equals(this.timestamp, that.timestamp) + && Objects.equals(this.ticket, that.ticket); + } + + @Override + public int hashCode() { + return Objects.hash(accessIp, intranetIp, accessIpv6, accessPort, sessionId, timestamp, ticket); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectInfoAccessInfo {\n"); + sb.append(" accessIp: ").append(toIndentedString(accessIp)).append("\n"); + sb.append(" intranetIp: ").append(toIndentedString(intranetIp)).append("\n"); + sb.append(" accessIpv6: ").append(toIndentedString(accessIpv6)).append("\n"); + sb.append(" accessPort: ").append(toIndentedString(accessPort)).append("\n"); + sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); + sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); + sb.append(" ticket: ").append(toIndentedString(ticket)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectionRequestBody.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectionRequestBody.java new file mode 100644 index 0000000000..ce6b5abf88 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ConnectionRequestBody.java @@ -0,0 +1,207 @@ +package com.huaweicloud.sdk.cph.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.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 获取云手机连接信息请求体 + */ +public class ConnectionRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone_ids") + + private List phoneIds = null; + + /** + * 申请接入的客户端类型 - ANDROID: 安卓平台SDK - WINDOWS: Windows平台SDK - H5_MOBILE: H5移动端SDK - H5_PC: H5 PC端SDK - IOS: iOS平台SDK + */ + public static final class ClientTypeEnum { + + /** + * Enum ANDROID for value: "ANDROID" + */ + public static final ClientTypeEnum ANDROID = new ClientTypeEnum("ANDROID"); + + /** + * Enum WINDOWS for value: "WINDOWS" + */ + public static final ClientTypeEnum WINDOWS = new ClientTypeEnum("WINDOWS"); + + /** + * Enum H5_MOBILE for value: "H5_MOBILE" + */ + public static final ClientTypeEnum H5_MOBILE = new ClientTypeEnum("H5_MOBILE"); + + /** + * Enum H5_PC for value: "H5_PC" + */ + public static final ClientTypeEnum H5_PC = new ClientTypeEnum("H5_PC"); + + /** + * Enum IOS for value: "IOS" + */ + public static final ClientTypeEnum IOS = new ClientTypeEnum("IOS"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ANDROID", ANDROID); + map.put("WINDOWS", WINDOWS); + map.put("H5_MOBILE", H5_MOBILE); + map.put("H5_PC", H5_PC); + map.put("IOS", IOS); + return Collections.unmodifiableMap(map); + } + + private String value; + + ClientTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ClientTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ClientTypeEnum(value)); + } + + public static ClientTypeEnum 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 ClientTypeEnum) { + return this.value.equals(((ClientTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "client_type") + + private ClientTypeEnum clientType; + + public ConnectionRequestBody withPhoneIds(List phoneIds) { + this.phoneIds = phoneIds; + return this; + } + + public ConnectionRequestBody addPhoneIdsItem(String phoneIdsItem) { + if (this.phoneIds == null) { + this.phoneIds = new ArrayList<>(); + } + this.phoneIds.add(phoneIdsItem); + return this; + } + + public ConnectionRequestBody withPhoneIds(Consumer> phoneIdsSetter) { + if (this.phoneIds == null) { + this.phoneIds = new ArrayList<>(); + } + phoneIdsSetter.accept(this.phoneIds); + return this; + } + + /** + * phone_id数组,单次请求最大限制10 + * @return phoneIds + */ + public List getPhoneIds() { + return phoneIds; + } + + public void setPhoneIds(List phoneIds) { + this.phoneIds = phoneIds; + } + + public ConnectionRequestBody withClientType(ClientTypeEnum clientType) { + this.clientType = clientType; + return this; + } + + /** + * 申请接入的客户端类型 - ANDROID: 安卓平台SDK - WINDOWS: Windows平台SDK - H5_MOBILE: H5移动端SDK - H5_PC: H5 PC端SDK - IOS: iOS平台SDK + * @return clientType + */ + public ClientTypeEnum getClientType() { + return clientType; + } + + public void setClientType(ClientTypeEnum clientType) { + this.clientType = clientType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConnectionRequestBody that = (ConnectionRequestBody) obj; + return Objects.equals(this.phoneIds, that.phoneIds) && Objects.equals(this.clientType, that.clientType); + } + + @Override + public int hashCode() { + return Objects.hash(phoneIds, clientType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConnectionRequestBody {\n"); + sb.append(" phoneIds: ").append(toIndentedString(phoneIds)).append("\n"); + sb.append(" clientType: ").append(toIndentedString(clientType)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/CreateNet2CloudPhoneServerRequestBodyServerShareDataVolume.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/CreateNet2CloudPhoneServerRequestBodyServerShareDataVolume.java index 17c1c4b33e..61b9e58bca 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/CreateNet2CloudPhoneServerRequestBodyServerShareDataVolume.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/CreateNet2CloudPhoneServerRequestBodyServerShareDataVolume.java @@ -44,7 +44,7 @@ public CreateNet2CloudPhoneServerRequestBodyServerShareDataVolume withSize(Integ /** * 磁盘大小,单位GB,取值范围[0,32768]。 - * minimum: 0 + * minimum: 10 * maximum: 32768 * @return size */ diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageMemberRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageMemberRequest.java new file mode 100644 index 0000000000..49bd470053 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageMemberRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteImageMemberRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_id") + + private String imageId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "member_id") + + private String memberId; + + public DeleteImageMemberRequest withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像id。 + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public DeleteImageMemberRequest withMemberId(String memberId) { + this.memberId = memberId; + return this; + } + + /** + * 被共享账号的PROJECT_ID。 + * @return memberId + */ + public String getMemberId() { + return memberId; + } + + public void setMemberId(String memberId) { + this.memberId = memberId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteImageMemberRequest that = (DeleteImageMemberRequest) obj; + return Objects.equals(this.imageId, that.imageId) && Objects.equals(this.memberId, that.memberId); + } + + @Override + public int hashCode() { + return Objects.hash(imageId, memberId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteImageMemberRequest {\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" memberId: ").append(toIndentedString(memberId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageMemberResponse.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageMemberResponse.java new file mode 100644 index 0000000000..7c462c6463 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageMemberResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cph.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 DeleteImageMemberResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public DeleteImageMemberResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求id + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteImageMemberResponse that = (DeleteImageMemberResponse) obj; + return Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteImageMemberResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageRequest.java new file mode 100644 index 0000000000..3751bf6fb2 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteImageRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_id") + + private String imageId; + + public DeleteImageRequest withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像id。 + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteImageRequest that = (DeleteImageRequest) obj; + return Objects.equals(this.imageId, that.imageId); + } + + @Override + public int hashCode() { + return Objects.hash(imageId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteImageRequest {\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageResponse.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageResponse.java new file mode 100644 index 0000000000..81ba942862 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/DeleteImageResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.cph.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 DeleteImageResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public DeleteImageResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求id + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteImageResponse that = (DeleteImageResponse) obj; + return Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteImageResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneImagesRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneImagesRequest.java index 114a909bb8..16161c1274 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneImagesRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneImagesRequest.java @@ -1,5 +1,8 @@ package com.huaweicloud.sdk.cph.v1.model; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.Objects; /** @@ -7,6 +10,28 @@ */ public class ListCloudPhoneImagesRequest { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_type") + + private String imageType; + + public ListCloudPhoneImagesRequest withImageType(String imageType) { + this.imageType = imageType; + return this; + } + + /** + * 镜像类型 公共镜像:public 私有镜像:private 共享镜像:share 所有类型镜像:all + * @return imageType + */ + public String getImageType() { + return imageType; + } + + public void setImageType(String imageType) { + this.imageType = imageType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -15,20 +40,33 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - return true; + ListCloudPhoneImagesRequest that = (ListCloudPhoneImagesRequest) obj; + return Objects.equals(this.imageType, that.imageType); } @Override public int hashCode() { - return Objects.hash(); + return Objects.hash(imageType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListCloudPhoneImagesRequest {\n"); + sb.append(" imageType: ").append(toIndentedString(imageType)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneModelsRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneModelsRequest.java index 28cad66611..ced8c28f9b 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneModelsRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneModelsRequest.java @@ -50,7 +50,7 @@ public ListCloudPhoneModelsRequest withOffset(Integer offset) { } /** - * 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 * minimum: 0 * maximum: 8096 * @return offset diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneServersRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneServersRequest.java index 032b9b85ff..e9eada2e2a 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneServersRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhoneServersRequest.java @@ -61,7 +61,7 @@ public ListCloudPhoneServersRequest withOffset(Integer offset) { } /** - * 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 * minimum: 0 * maximum: 8096 * @return offset diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhonesRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhonesRequest.java index ec0589b8e9..aacd2fe1e2 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhonesRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListCloudPhonesRequest.java @@ -46,7 +46,7 @@ public ListCloudPhonesRequest withOffset(Integer offset) { } /** - * 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 * minimum: 0 * maximum: 8096 * @return offset diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListEncodeServersRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListEncodeServersRequest.java index 3646873cac..4161e91e56 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListEncodeServersRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListEncodeServersRequest.java @@ -41,7 +41,7 @@ public ListEncodeServersRequest withOffset(Integer offset) { } /** - * 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 * minimum: 0 * maximum: 8096 * @return offset diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersRequest.java new file mode 100644 index 0000000000..4b9baeb6d5 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListImageMembersRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_id") + + private String imageId; + + public ListImageMembersRequest withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像id。 + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImageMembersRequest that = (ListImageMembersRequest) obj; + return Objects.equals(this.imageId, that.imageId); + } + + @Override + public int hashCode() { + return Objects.hash(imageId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImageMembersRequest {\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersResponse.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersResponse.java new file mode 100644 index 0000000000..8f0114a698 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.cph.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 ListImageMembersResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "members") + + private List members = null; + + public ListImageMembersResponse withMembers(List members) { + this.members = members; + return this; + } + + public ListImageMembersResponse addMembersItem(ListImageMembersView membersItem) { + if (this.members == null) { + this.members = new ArrayList<>(); + } + this.members.add(membersItem); + return this; + } + + public ListImageMembersResponse withMembers(Consumer> membersSetter) { + if (this.members == null) { + this.members = new ArrayList<>(); + } + membersSetter.accept(this.members); + return this; + } + + /** + * 镜像成员详情 + * @return members + */ + public List getMembers() { + return members; + } + + public void setMembers(List members) { + this.members = members; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImageMembersResponse that = (ListImageMembersResponse) obj; + return Objects.equals(this.members, that.members); + } + + @Override + public int hashCode() { + return Objects.hash(members); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImageMembersResponse {\n"); + sb.append(" members: ").append(toIndentedString(members)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersView.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersView.java new file mode 100644 index 0000000000..4bb4dcf72c --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImageMembersView.java @@ -0,0 +1,146 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 列举镜像成员响应体 + */ +public class ListImageMembersView { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private Long updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_id") + + private String imageId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "member_id") + + private String memberId; + + public ListImageMembersView withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 共享时间 + * minimum: 0 + * maximum: 20000000000000 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public ListImageMembersView withUpdateTime(Long updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间 + * minimum: 0 + * maximum: 20000000000000 + * @return updateTime + */ + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public ListImageMembersView withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像ID + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public ListImageMembersView withMemberId(String memberId) { + this.memberId = memberId; + return this; + } + + /** + * 被共享账号的PROJECT_ID + * @return memberId + */ + public String getMemberId() { + return memberId; + } + + public void setMemberId(String memberId) { + this.memberId = memberId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImageMembersView that = (ListImageMembersView) obj; + return Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.imageId, that.imageId) && Objects.equals(this.memberId, that.memberId); + } + + @Override + public int hashCode() { + return Objects.hash(createTime, updateTime, imageId, memberId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImageMembersView {\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" memberId: ").append(toIndentedString(memberId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesRequest.java new file mode 100644 index 0000000000..19ff12fe4d --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesRequest.java @@ -0,0 +1,271 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListImagesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_type") + + private String imageType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + @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 = "image_id") + + private String imageId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_name") + + private String imageName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_since") + + private Long createSince; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_until") + + private Long createUntil; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "src_project_id") + + private String srcProjectId; + + public ListImagesRequest withImageType(String imageType) { + this.imageType = imageType; + return this; + } + + /** + * 镜像类型。 - public:公共镜像 - private:私有镜像 - share:共享镜像 + * @return imageType + */ + public String getImageType() { + return imageType; + } + + public void setImageType(String imageType) { + this.imageType = imageType; + } + + public ListImagesRequest withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 镜像状态。 - 0:CREATING 创建中 - 1:PRODUCTION 生产态,可使用 - 2:CREATE_FAILED 创建失败 + * minimum: -128 + * maximum: 128 + * @return status + */ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public ListImagesRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * minimum: 0 + * maximum: 8096 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListImagesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页返回的资源个数。取值范围:1~100(默认值为100),一般设置为10、20、50。 + * minimum: 0 + * maximum: 8096 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListImagesRequest withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像id + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public ListImagesRequest withImageName(String imageName) { + this.imageName = imageName; + return this; + } + + /** + * 镜像名称 + * @return imageName + */ + public String getImageName() { + return imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public ListImagesRequest withCreateSince(Long createSince) { + this.createSince = createSince; + return this; + } + + /** + * 起始时间 + * minimum: 0 + * maximum: 20000000000000 + * @return createSince + */ + public Long getCreateSince() { + return createSince; + } + + public void setCreateSince(Long createSince) { + this.createSince = createSince; + } + + public ListImagesRequest withCreateUntil(Long createUntil) { + this.createUntil = createUntil; + return this; + } + + /** + * 截止时间 + * minimum: 0 + * maximum: 20000000000000 + * @return createUntil + */ + public Long getCreateUntil() { + return createUntil; + } + + public void setCreateUntil(Long createUntil) { + this.createUntil = createUntil; + } + + public ListImagesRequest withSrcProjectId(String srcProjectId) { + this.srcProjectId = srcProjectId; + return this; + } + + /** + * 共享镜像账号的projectId + * @return srcProjectId + */ + public String getSrcProjectId() { + return srcProjectId; + } + + public void setSrcProjectId(String srcProjectId) { + this.srcProjectId = srcProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImagesRequest that = (ListImagesRequest) obj; + return Objects.equals(this.imageType, that.imageType) && Objects.equals(this.status, that.status) + && Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.imageId, that.imageId) && Objects.equals(this.imageName, that.imageName) + && Objects.equals(this.createSince, that.createSince) && Objects.equals(this.createUntil, that.createUntil) + && Objects.equals(this.srcProjectId, that.srcProjectId); + } + + @Override + public int hashCode() { + return Objects + .hash(imageType, status, offset, limit, imageId, imageName, createSince, createUntil, srcProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImagesRequest {\n"); + sb.append(" imageType: ").append(toIndentedString(imageType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n"); + sb.append(" createSince: ").append(toIndentedString(createSince)).append("\n"); + sb.append(" createUntil: ").append(toIndentedString(createUntil)).append("\n"); + sb.append(" srcProjectId: ").append(toIndentedString(srcProjectId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesResponse.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesResponse.java new file mode 100644 index 0000000000..8fb87a5478 --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesResponse.java @@ -0,0 +1,141 @@ +package com.huaweicloud.sdk.cph.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 ListImagesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_infos") + + private List imageInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public ListImagesResponse withImageInfos(List imageInfos) { + this.imageInfos = imageInfos; + return this; + } + + public ListImagesResponse addImageInfosItem(ListImagesView imageInfosItem) { + if (this.imageInfos == null) { + this.imageInfos = new ArrayList<>(); + } + this.imageInfos.add(imageInfosItem); + return this; + } + + public ListImagesResponse withImageInfos(Consumer> imageInfosSetter) { + if (this.imageInfos == null) { + this.imageInfos = new ArrayList<>(); + } + imageInfosSetter.accept(this.imageInfos); + return this; + } + + /** + * 镜像详情 + * @return imageInfos + */ + public List getImageInfos() { + return imageInfos; + } + + public void setImageInfos(List imageInfos) { + this.imageInfos = imageInfos; + } + + public ListImagesResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总条数 + * minimum: 0 + * maximum: 10000 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListImagesResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 请求的唯一标识ID。 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImagesResponse that = (ListImagesResponse) obj; + return Objects.equals(this.imageInfos, that.imageInfos) && Objects.equals(this.total, that.total) + && Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(imageInfos, total, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImagesResponse {\n"); + sb.append(" imageInfos: ").append(toIndentedString(imageInfos)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesView.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesView.java new file mode 100644 index 0000000000..57484d154c --- /dev/null +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListImagesView.java @@ -0,0 +1,321 @@ +package com.huaweicloud.sdk.cph.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 镜像详情 + */ +public class ListImagesView { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_id") + + private String domainId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_name") + + private String imageName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private String updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_size") + + private Long imageSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_id") + + private String imageId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_version") + + private String imageVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "image_type") + + private String imageType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Integer status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "src_project_id") + + private String srcProjectId; + + public ListImagesView withDomainId(String domainId) { + this.domainId = domainId; + return this; + } + + /** + * 镜像所属租户 + * @return domainId + */ + public String getDomainId() { + return domainId; + } + + public void setDomainId(String domainId) { + this.domainId = domainId; + } + + public ListImagesView withImageName(String imageName) { + this.imageName = imageName; + return this; + } + + /** + * 镜像名称 + * @return imageName + */ + public String getImageName() { + return imageName; + } + + public void setImageName(String imageName) { + this.imageName = imageName; + } + + public ListImagesView withUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 镜像更新时间 + * @return updateTime + */ + public String getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(String updateTime) { + this.updateTime = updateTime; + } + + public ListImagesView withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 镜像创建时间 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ListImagesView withImageSize(Long imageSize) { + this.imageSize = imageSize; + return this; + } + + /** + * 镜像大小,单位byte + * minimum: 0 + * maximum: 20000000000000 + * @return imageSize + */ + public Long getImageSize() { + return imageSize; + } + + public void setImageSize(Long imageSize) { + this.imageSize = imageSize; + } + + public ListImagesView withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * project_id(当image_type为private时,才会返回此字段) + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ListImagesView withImageId(String imageId) { + this.imageId = imageId; + return this; + } + + /** + * 镜像ID + * @return imageId + */ + public String getImageId() { + return imageId; + } + + public void setImageId(String imageId) { + this.imageId = imageId; + } + + public ListImagesView withImageVersion(String imageVersion) { + this.imageVersion = imageVersion; + return this; + } + + /** + * 镜像AOSP版本 + * @return imageVersion + */ + public String getImageVersion() { + return imageVersion; + } + + public void setImageVersion(String imageVersion) { + this.imageVersion = imageVersion; + } + + public ListImagesView withImageType(String imageType) { + this.imageType = imageType; + return this; + } + + /** + * 镜像类型 公共镜像:public 私有镜像:private 共享镜像:share + * @return imageType + */ + public String getImageType() { + return imageType; + } + + public void setImageType(String imageType) { + this.imageType = imageType; + } + + public ListImagesView withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 镜像状态。 - 0:CREATING 创建中 - 1:PRODUCTION 生产态,可使用 - 2:CREATE_FAILED 创建失败 + * minimum: 0 + * maximum: 10000 + * @return status + */ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public ListImagesView withSrcProjectId(String srcProjectId) { + this.srcProjectId = srcProjectId; + return this; + } + + /** + * 共享镜像账号的projectId(当image_type为share时,才会返回此字段) + * @return srcProjectId + */ + public String getSrcProjectId() { + return srcProjectId; + } + + public void setSrcProjectId(String srcProjectId) { + this.srcProjectId = srcProjectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListImagesView that = (ListImagesView) obj; + return Objects.equals(this.domainId, that.domainId) && Objects.equals(this.imageName, that.imageName) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.imageSize, that.imageSize) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.imageId, that.imageId) && Objects.equals(this.imageVersion, that.imageVersion) + && Objects.equals(this.imageType, that.imageType) && Objects.equals(this.status, that.status) + && Objects.equals(this.srcProjectId, that.srcProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(domainId, + imageName, + updateTime, + createTime, + imageSize, + projectId, + imageId, + imageVersion, + imageType, + status, + srcProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListImagesView {\n"); + sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); + sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" imageSize: ").append(toIndentedString(imageSize)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" imageId: ").append(toIndentedString(imageId)).append("\n"); + sb.append(" imageVersion: ").append(toIndentedString(imageVersion)).append("\n"); + sb.append(" imageType: ").append(toIndentedString(imageType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" srcProjectId: ").append(toIndentedString(srcProjectId)).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/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListJobsRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListJobsRequest.java index aceeb92402..660f73c546 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListJobsRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListJobsRequest.java @@ -70,7 +70,7 @@ public ListJobsRequest withOffset(Integer offset) { } /** - * 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 * minimum: 0 * maximum: 8096 * @return offset diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListShareFilesRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListShareFilesRequest.java index c9a0e7c1d1..5d89545367 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListShareFilesRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ListShareFilesRequest.java @@ -36,7 +36,7 @@ public ListShareFilesRequest withOffset(Integer offset) { } /** - * 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 * minimum: 0 * maximum: 8096 * @return offset diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PhoneDataVolume.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PhoneDataVolume.java index 85e581c3b0..5150c6db16 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PhoneDataVolume.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PhoneDataVolume.java @@ -44,7 +44,7 @@ public PhoneDataVolume withVolumeSize(Integer volumeSize) { /** * 云手机数据盘大小。 - * minimum: 0 + * minimum: 10 * maximum: 4096 * @return volumeSize */ diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PushFileRequestBody.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PushFileRequestBody.java index fbb86d81d7..edc3975130 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PushFileRequestBody.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/PushFileRequestBody.java @@ -56,7 +56,7 @@ public PushFileRequestBody withContent(String content) { } /** - * 推送的文件只支持tar文件类型,指定OBS桶中的tar文件。 最大长度为1024字节,只支持大小写字母、数字、下划线(_)、点(.)、斜线(/)、冒号(:)、中划线(-)。文件格式:obs://obs-bucket-name/obs-file-path/file.tar。 + * 推送的文件只支持tar文件类型,指定OBS桶中的tar文件。 最大长度为1024字节,只支持大小写字母、数字、下划线(_)、点(.)、斜线(/)、冒号(:)、中划线(-)。文件格式:obs://obs-bucket-name/obs-file-path/file.tar,文件路径与OBS桶对象路径对应。 * @return content */ public String getContent() { diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ShowBandwidthDetailRequest.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ShowBandwidthDetailRequest.java index a6c4e73945..61ed9060ea 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ShowBandwidthDetailRequest.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/ShowBandwidthDetailRequest.java @@ -26,7 +26,7 @@ public ShowBandwidthDetailRequest withOffset(Integer offset) { } /** - * 偏移量为一个大于0小于资源总个数的整数,表示查询该偏移量后面的所有的资源数,默认值为0。 + * 偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。 * minimum: 0 * maximum: 8096 * @return offset diff --git a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/Tag.java b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/Tag.java index 5fe2f24d5c..91d1740f37 100644 --- a/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/Tag.java +++ b/services/cph/src/main/java/com/huaweicloud/sdk/cph/v1/model/Tag.java @@ -26,7 +26,7 @@ public Tag withKey(String key) { } /** - * 键。 - 最大长度127个unicode字符。 - key不能为空。 + * 键。 - 最大长度127个unicode字符。 - 不能为空,可以包含任意语种字母、数字、空格和_.:=+-@,但首尾不能含有空所有服务均可在标签输入框下拉选择同一标格,不能以_sys_开头。 * @return key */ public String getKey() { @@ -43,7 +43,7 @@ public Tag withValue(String value) { } /** - * 值列表。 - 每个值最大长度255个unicode字符。 + * 值列表。 - 每个值最大长度255个unicode字符。 - 不能为空,可以包含任意语种字母、、数字、空格和_.:=+-@,但首尾不能含有空格。 * @return value */ public String getValue() { diff --git a/services/cpts/pom.xml b/services/cpts/pom.xml index 5a272bb81a..702736d224 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cpts - 3.1.97 + 3.1.98 Huawei Cloud SDK for CPTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cse/pom.xml b/services/cse/pom.xml index e1196e76b3..30229774c7 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cse - 3.1.97 + 3.1.98 Huawei Cloud SDK for CSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseAsyncClient.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseAsyncClient.java index 2bf5cc933e..57c95cd9d2 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseAsyncClient.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseAsyncClient.java @@ -90,9 +90,9 @@ public static ClientBuilder newBuilder() { } /** - * 创建微服务引擎专享版 + * 创建微服务引擎 * - * 创建微服务引擎专享版。 + * 创建微服务引擎,支持创建ServiceComb引擎专享版、注册配置中心、应用网关(公测)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -104,9 +104,9 @@ public CompletableFuture createEngineAsync(CreateEngineReq } /** - * 创建微服务引擎专享版 + * 创建微服务引擎 * - * 创建微服务引擎专享版。 + * 创建微服务引擎,支持创建ServiceComb引擎专享版、注册配置中心、应用网关(公测)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -179,9 +179,9 @@ public AsyncInvoker deleteEngineAsync(DeleteEngineReq } /** - * 删除微服务引擎专享版 + * 删除微服务引擎 * - * 删除微服务引擎专享版。 + * 删除微服务引擎。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -324,9 +324,9 @@ public AsyncInvoker listEnginesAsyncInv } /** - * 查询微服务引擎专享版的规格列表 + * 查询微服务引擎的规格列表 * - * 查询微服务引擎专享版的规格列表。 + * 查询微服务引擎的规格列表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -338,9 +338,9 @@ public CompletableFuture listFlavorsAsync(ListFlavorsReques } /** - * 查询微服务引擎专享版的规格列表 + * 查询微服务引擎的规格列表 * - * 查询微服务引擎专享版的规格列表。 + * 查询微服务引擎的规格列表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -501,9 +501,9 @@ public AsyncInvoker resizeEngineAsync } /** - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试 * - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试,当前支持ServiceComb专享版引擎 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -515,9 +515,9 @@ public CompletableFuture retryEngineAsync(RetryEngineReques } /** - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试 * - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试,当前支持ServiceComb专享版引擎 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -529,9 +529,9 @@ public AsyncInvoker retryEngineAsyncInv } /** - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -543,9 +543,9 @@ public CompletableFuture showEngineAsync(ShowEngineRequest r } /** - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -645,9 +645,9 @@ public AsyncInvoker upgradeEngineAsync(UpgradeEngine } /** - * 升级微服务引擎专享版 + * 升级微服务引擎 * - * 升级微服务引擎专享版 + * 升级微服务引擎 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -674,9 +674,9 @@ public AsyncInvoker upgradeEngineAs } /** - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置 * - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置,更新ServiceComb专享版引擎与注册配置中心引擎的配置 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -688,9 +688,9 @@ public CompletableFuture upgradeEngineConfigAsync(U } /** - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置 * - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置,更新ServiceComb专享版引擎与注册配置中心引擎的配置 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseClient.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseClient.java index 60dd872533..1cd57c82c3 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseClient.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseClient.java @@ -88,9 +88,9 @@ public static ClientBuilder newBuilder() { } /** - * 创建微服务引擎专享版 + * 创建微服务引擎 * - * 创建微服务引擎专享版。 + * 创建微服务引擎,支持创建ServiceComb引擎专享版、注册配置中心、应用网关(公测)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -102,9 +102,9 @@ public CreateEngineResponse createEngine(CreateEngineRequest request) { } /** - * 创建微服务引擎专享版 + * 创建微服务引擎 * - * 创建微服务引擎专享版。 + * 创建微服务引擎,支持创建ServiceComb引擎专享版、注册配置中心、应用网关(公测)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -174,9 +174,9 @@ public SyncInvoker listEnginesInvoker(L } /** - * 查询微服务引擎专享版的规格列表 + * 查询微服务引擎的规格列表 * - * 查询微服务引擎专享版的规格列表。 + * 查询微服务引擎的规格列表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -330,9 +330,9 @@ public ListFlavorsResponse listFlavors(ListFlavorsRequest request) { } /** - * 查询微服务引擎专享版的规格列表 + * 查询微服务引擎的规格列表 * - * 查询微服务引擎专享版的规格列表。 + * 查询微服务引擎的规格列表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -489,9 +489,9 @@ public SyncInvoker resizeEngineInvoke } /** - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试 * - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试,当前支持ServiceComb专享版引擎 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -503,9 +503,9 @@ public RetryEngineResponse retryEngine(RetryEngineRequest request) { } /** - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试 * - * 对微服务引擎专享版进行重试 + * 对微服务引擎进行重试,当前支持ServiceComb专享版引擎 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -517,9 +517,9 @@ public SyncInvoker retryEngineInvoker(R } /** - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -531,9 +531,9 @@ public ShowEngineResponse showEngine(ShowEngineRequest request) { } /** - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * - * 查询微服务引擎专享版详情 + * 查询微服务引擎详情 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -631,9 +631,9 @@ public SyncInvoker upgradeEngineInv } /** - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置 * - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置,更新ServiceComb专享版引擎与注册配置中心引擎的配置 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -673,9 +673,9 @@ public UpgradeEngineConfigResponse upgradeEngineConfig(UpgradeEngineConfigReques } /** - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置 * - * 更新微服务引擎专享版配置 + * 更新微服务引擎配置,更新ServiceComb专享版引擎与注册配置中心引擎的配置 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseMeta.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseMeta.java index 3413a1c0f0..9ebea30b0c 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseMeta.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/CseMeta.java @@ -416,6 +416,11 @@ private static HttpRequestDef genForLis FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListEnginesRequest::getLimit, ListEnginesRequest::setLimit)); + builder.withRequestField("type", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListEnginesRequest::getType, ListEnginesRequest::setType)); // response diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ClusterNode.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ClusterNode.java index 6d09704005..3e63a687ff 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ClusterNode.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ClusterNode.java @@ -41,7 +41,7 @@ public ClusterNode withId(String id) { } /** - * 微服务引擎专享版CCE节点ID + * 微服务引擎CCE节点ID * @return id */ public String getId() { @@ -58,7 +58,7 @@ public ClusterNode withAz(String az) { } /** - * 微服务引擎专享版CCE节点所属可用区 + * 微服务引擎CCE节点所属可用区 * @return az */ public String getAz() { @@ -75,7 +75,7 @@ public ClusterNode withIp(String ip) { } /** - * 微服务引擎专享版CCE节点IP + * 微服务引擎CCE节点IP * @return ip */ public String getIp() { @@ -92,7 +92,7 @@ public ClusterNode withLabel(String label) { } /** - * 微服务引擎专享版CCE节点标签 + * 微服务引擎CCE节点标签 * @return label */ public String getLabel() { @@ -109,7 +109,7 @@ public ClusterNode withStatus(String status) { } /** - * 微服务引擎专享版CCE节点状态 + * 微服务引擎CCE节点状态 * @return status */ public String getStatus() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateEngineResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateEngineResponse.java index c8c4bc2a1f..fe2b01f46a 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateEngineResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateEngineResponse.java @@ -32,7 +32,7 @@ public CreateEngineResponse withId(String id) { } /** - * 创建的微服务引擎专享版ID + * 创建的微服务引擎ID * @return id */ public String getId() { @@ -49,7 +49,7 @@ public CreateEngineResponse withName(String name) { } /** - * 创建的微服务引擎专享版名称 + * 创建的微服务引擎名称 * @return name */ public String getName() { @@ -66,7 +66,7 @@ public CreateEngineResponse withJobId(Integer jobId) { } /** - * 微服务引擎专享版执行的任务ID + * 微服务引擎执行的任务ID * @return jobId */ public Integer getJobId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateGovernancePolicyRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateGovernancePolicyRequest.java index 0e518d0485..371f2d4ab2 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateGovernancePolicyRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateGovernancePolicyRequest.java @@ -42,7 +42,7 @@ public CreateGovernancePolicyRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateMicroserviceRouteRuleRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateMicroserviceRouteRuleRequest.java index 3dcaf88b77..0cf1a1c220 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateMicroserviceRouteRuleRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateMicroserviceRouteRuleRequest.java @@ -49,7 +49,7 @@ public CreateMicroserviceRouteRuleRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateNacosNamespacesRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateNacosNamespacesRequest.java index 3ba767e628..ea59707c3a 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateNacosNamespacesRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/CreateNacosNamespacesRequest.java @@ -41,7 +41,7 @@ public CreateNacosNamespacesRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineRequest.java index 01b7d8fc77..0162e6805d 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineRequest.java @@ -45,7 +45,7 @@ public DeleteEngineRequest withEngineId(String engineId) { } /** - * 微服务引擎专享版ID + * 微服务引擎ID * @return engineId */ public String getEngineId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineResponse.java index 56c05146e4..bd1f673382 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteEngineResponse.java @@ -32,7 +32,7 @@ public DeleteEngineResponse withId(String id) { } /** - * 创建的微服务引擎专享版ID + * 创建的微服务引擎ID * @return id */ public String getId() { @@ -49,7 +49,7 @@ public DeleteEngineResponse withName(String name) { } /** - * 创建的微服务引擎专享版名称 + * 创建的微服务引擎名称 * @return name */ public String getName() { @@ -66,7 +66,7 @@ public DeleteEngineResponse withJobId(Integer jobId) { } /** - * 微服务引擎专享版执行的任务ID + * 微服务引擎执行的任务ID * @return jobId */ public Integer getJobId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteGovernancePolicyRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteGovernancePolicyRequest.java index 77e7136654..c36e843659 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteGovernancePolicyRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteGovernancePolicyRequest.java @@ -41,7 +41,7 @@ public DeleteGovernancePolicyRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteMicroserviceRouteRuleRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteMicroserviceRouteRuleRequest.java index c070710445..b5139f9d60 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteMicroserviceRouteRuleRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteMicroserviceRouteRuleRequest.java @@ -41,7 +41,7 @@ public DeleteMicroserviceRouteRuleRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteNacosNamespacesRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteNacosNamespacesRequest.java index 1e8a67973c..b41af4e1bb 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteNacosNamespacesRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DeleteNacosNamespacesRequest.java @@ -31,7 +31,7 @@ public DeleteNacosNamespacesRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DownloadKieRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DownloadKieRequest.java index 9604a23e66..8a03cf0d9b 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DownloadKieRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/DownloadKieRequest.java @@ -130,7 +130,7 @@ public DownloadKieRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版ID。 + * 微服务引擎ID。 * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineAdditionalActionReq.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineAdditionalActionReq.java index 9dcc550509..305a34d63d 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineAdditionalActionReq.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineAdditionalActionReq.java @@ -11,7 +11,7 @@ import java.util.Objects; /** - * 升级微服务引擎专享版请求体 + * 升级微服务引擎请求体 */ public class EngineAdditionalActionReq { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineConfigureReq.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineConfigureReq.java index 4b735ae641..4a2e5d48aa 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineConfigureReq.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineConfigureReq.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * 更新微服务引擎专享版配置请求体。 + * 更新微服务引擎配置请求体。 */ public class EngineConfigureReq { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReq.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReq.java index d527c700a0..e04dbba828 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReq.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReq.java @@ -14,7 +14,7 @@ import java.util.function.Consumer; /** - * 创建微服务引擎专享版请求结构体 + * 创建微服务引擎请求结构体 */ public class EngineCreateReq { @@ -29,7 +29,7 @@ public class EngineCreateReq { private String description; /** - * 微服务引擎专享版计费方式,1表示按需 + * 微服务引擎计费方式,1表示按需 */ public static final class PaymentEnum { @@ -98,7 +98,7 @@ public int hashCode() { private PaymentEnum payment; /** - * 微服务引擎专享版的规格 + * 微服务引擎的规格 */ public static final class FlavorEnum { @@ -122,6 +122,46 @@ public static final class FlavorEnum { */ public static final FlavorEnum CSE_S1_XLARGE2 = new FlavorEnum("cse.s1.xlarge2"); + /** + * Enum CSE_NACOS2_C1_LARGE_10 for value: "cse.nacos2.c1.large.10" + */ + public static final FlavorEnum CSE_NACOS2_C1_LARGE_10 = new FlavorEnum("cse.nacos2.c1.large.10"); + + /** + * Enum CSE_NACOS2_C1_XLARGE_20 for value: "cse.nacos2.c1.xlarge.20" + */ + public static final FlavorEnum CSE_NACOS2_C1_XLARGE_20 = new FlavorEnum("cse.nacos2.c1.xlarge.20"); + + /** + * Enum CSE_NACOS2_C1_XLARGE_50 for value: "cse.nacos2.c1.xlarge.50" + */ + public static final FlavorEnum CSE_NACOS2_C1_XLARGE_50 = new FlavorEnum("cse.nacos2.c1.xlarge.50"); + + /** + * Enum CSE_NACOS2_C1_XLARGE_60 for value: "cse.nacos2.c1.xlarge.60" + */ + public static final FlavorEnum CSE_NACOS2_C1_XLARGE_60 = new FlavorEnum("cse.nacos2.c1.xlarge.60"); + + /** + * Enum CSE_NACOS2_C1_2XLARGE_100 for value: "cse.nacos2.c1.2xlarge.100" + */ + public static final FlavorEnum CSE_NACOS2_C1_2XLARGE_100 = new FlavorEnum("cse.nacos2.c1.2xlarge.100"); + + /** + * Enum CSE_MICROGATEWAY_PRO_SMALL_1 for value: "cse.microgateway.pro.small.1" + */ + public static final FlavorEnum CSE_MICROGATEWAY_PRO_SMALL_1 = new FlavorEnum("cse.microgateway.pro.small.1"); + + /** + * Enum CSE_MICROGATEWAY_PRO_MEDIUM_1 for value: "cse.microgateway.pro.medium.1" + */ + public static final FlavorEnum CSE_MICROGATEWAY_PRO_MEDIUM_1 = new FlavorEnum("cse.microgateway.pro.medium.1"); + + /** + * Enum CSE_MICROGATEWAY_PRO_LARGE_1 for value: "cse.microgateway.pro.large.1" + */ + public static final FlavorEnum CSE_MICROGATEWAY_PRO_LARGE_1 = new FlavorEnum("cse.microgateway.pro.large.1"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -130,6 +170,14 @@ private static Map createStaticFields() { map.put("cse.s1.medium2", CSE_S1_MEDIUM2); map.put("cse.s1.large2", CSE_S1_LARGE2); map.put("cse.s1.xlarge2", CSE_S1_XLARGE2); + map.put("cse.nacos2.c1.large.10", CSE_NACOS2_C1_LARGE_10); + map.put("cse.nacos2.c1.xlarge.20", CSE_NACOS2_C1_XLARGE_20); + map.put("cse.nacos2.c1.xlarge.50", CSE_NACOS2_C1_XLARGE_50); + map.put("cse.nacos2.c1.xlarge.60", CSE_NACOS2_C1_XLARGE_60); + map.put("cse.nacos2.c1.2xlarge.100", CSE_NACOS2_C1_2XLARGE_100); + map.put("cse.microgateway.pro.small.1", CSE_MICROGATEWAY_PRO_SMALL_1); + map.put("cse.microgateway.pro.medium.1", CSE_MICROGATEWAY_PRO_MEDIUM_1); + map.put("cse.microgateway.pro.large.1", CSE_MICROGATEWAY_PRO_LARGE_1); return Collections.unmodifiableMap(map); } @@ -190,7 +238,7 @@ public int hashCode() { private List azList = null; /** - * 微服务引擎专享版认证方式,RBAC为安全认证,NONE为无认证。 + * ServiceComb引擎专享版与注册配置中心认证方式,RBAC为安全认证,NONE为无认证。 */ public static final class AuthTypeEnum { @@ -295,26 +343,32 @@ public int hashCode() { private EngineRbacPwd authCred; /** - * 微服务引擎专享版应用部署类型 + * 微服务引擎部署类型 */ public static final class SpecTypeEnum { /** - * Enum CSE for value: "CSE" + * Enum CSE2 for value: "CSE2" */ - public static final SpecTypeEnum CSE = new SpecTypeEnum("CSE"); + public static final SpecTypeEnum CSE2 = new SpecTypeEnum("CSE2"); /** - * Enum CSE2 for value: "CSE2" + * Enum NACOS2 for value: "Nacos2" */ - public static final SpecTypeEnum CSE2 = new SpecTypeEnum("CSE2"); + public static final SpecTypeEnum NACOS2 = new SpecTypeEnum("Nacos2"); + + /** + * Enum MICROGATEWAY for value: "MicroGateway" + */ + public static final SpecTypeEnum MICROGATEWAY = new SpecTypeEnum("MicroGateway"); private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); - map.put("CSE", CSE); map.put("CSE2", CSE2); + map.put("Nacos2", NACOS2); + map.put("MicroGateway", MICROGATEWAY); return Collections.unmodifiableMap(map); } @@ -374,13 +428,78 @@ public int hashCode() { private Map inputs = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enginestateInfo") + + private EngineCreateReqEnginestateInfo enginestateInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "periodType") + + private Integer periodType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavorType") + + private EngineCreateReqFlavorType flavorType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterpriseProject") + + private EngineCreateReqEnterpriseProject enterpriseProject; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpcCidr") + + private String vpcCidr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resourceParams") + + private EngineCreateReqResourceParams resourceParams; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "productId") + + private String productId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "capacityProductId") + + private String capacityProductId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "isFree") + + private Boolean isFree; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnetName") + + private String subnetName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "maintenanceConfig") + + private EngineCreateReqMaintenanceConfig maintenanceConfig; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "elbid") + + private String elbid; + public EngineCreateReq withName(String name) { this.name = name; return this; } /** - * 微服务引擎专享版的名称,名称为字母开头,字母、数字、-组成,且不能以-结尾,3-24个字符。 + * 微服务引擎的名称,名称为字母开头,字母、数字、-组成,且不能以-结尾,3-24个字符。 * @return name */ public String getName() { @@ -397,7 +516,7 @@ public EngineCreateReq withDescription(String description) { } /** - * 微服务引擎专享版描述,长度0~255。 + * 微服务引擎描述,长度0~255。 * @return description */ public String getDescription() { @@ -414,7 +533,7 @@ public EngineCreateReq withPayment(PaymentEnum payment) { } /** - * 微服务引擎专享版计费方式,1表示按需 + * 微服务引擎计费方式,1表示按需 * @return payment */ public PaymentEnum getPayment() { @@ -431,7 +550,7 @@ public EngineCreateReq withFlavor(FlavorEnum flavor) { } /** - * 微服务引擎专享版的规格 + * 微服务引擎的规格 * @return flavor */ public FlavorEnum getFlavor() { @@ -464,7 +583,7 @@ public EngineCreateReq withAzList(Consumer> azListSetter) { } /** - * 当前局点可用区列表。 + * 当前局点可用区列表,创建ServiceComb引擎专享版需要填写。 * @return azList */ public List getAzList() { @@ -481,7 +600,7 @@ public EngineCreateReq withAuthType(AuthTypeEnum authType) { } /** - * 微服务引擎专享版认证方式,RBAC为安全认证,NONE为无认证。 + * ServiceComb引擎专享版与注册配置中心认证方式,RBAC为安全认证,NONE为无认证。 * @return authType */ public AuthTypeEnum getAuthType() { @@ -532,7 +651,7 @@ public EngineCreateReq withNetworkId(String networkId) { } /** - * 微服务引擎专享版子网ID + * 微服务引擎子网ID * @return networkId */ public String getNetworkId() { @@ -549,7 +668,7 @@ public EngineCreateReq withSubnetCidr(String subnetCidr) { } /** - * 微服务引擎专享版子网划分 + * 微服务引擎子网划分 * @return subnetCidr */ public String getSubnetCidr() { @@ -566,7 +685,7 @@ public EngineCreateReq withPublicIpId(String publicIpId) { } /** - * 微服务引擎专享版公网地址ID,当前为null + * ServiceComb引擎专享版公网地址ID,当前为null * @return publicIpId */ public String getPublicIpId() { @@ -609,7 +728,7 @@ public EngineCreateReq withSpecType(SpecTypeEnum specType) { } /** - * 微服务引擎专享版应用部署类型 + * 微服务引擎部署类型 * @return specType */ public SpecTypeEnum getSpecType() { @@ -653,6 +772,288 @@ public void setInputs(Map inputs) { this.inputs = inputs; } + public EngineCreateReq withEnginestateInfo(EngineCreateReqEnginestateInfo enginestateInfo) { + this.enginestateInfo = enginestateInfo; + return this; + } + + public EngineCreateReq withEnginestateInfo(Consumer enginestateInfoSetter) { + if (this.enginestateInfo == null) { + this.enginestateInfo = new EngineCreateReqEnginestateInfo(); + enginestateInfoSetter.accept(this.enginestateInfo); + } + + return this; + } + + /** + * Get enginestateInfo + * @return enginestateInfo + */ + public EngineCreateReqEnginestateInfo getEnginestateInfo() { + return enginestateInfo; + } + + public void setEnginestateInfo(EngineCreateReqEnginestateInfo enginestateInfo) { + this.enginestateInfo = enginestateInfo; + } + + public EngineCreateReq withPeriodType(Integer periodType) { + this.periodType = periodType; + return this; + } + + /** + * 创建阶段类型 + * @return periodType + */ + public Integer getPeriodType() { + return periodType; + } + + public void setPeriodType(Integer periodType) { + this.periodType = periodType; + } + + public EngineCreateReq withFlavorType(EngineCreateReqFlavorType flavorType) { + this.flavorType = flavorType; + return this; + } + + public EngineCreateReq withFlavorType(Consumer flavorTypeSetter) { + if (this.flavorType == null) { + this.flavorType = new EngineCreateReqFlavorType(); + flavorTypeSetter.accept(this.flavorType); + } + + return this; + } + + /** + * Get flavorType + * @return flavorType + */ + public EngineCreateReqFlavorType getFlavorType() { + return flavorType; + } + + public void setFlavorType(EngineCreateReqFlavorType flavorType) { + this.flavorType = flavorType; + } + + public EngineCreateReq withEnterpriseProject(EngineCreateReqEnterpriseProject enterpriseProject) { + this.enterpriseProject = enterpriseProject; + return this; + } + + public EngineCreateReq withEnterpriseProject(Consumer enterpriseProjectSetter) { + if (this.enterpriseProject == null) { + this.enterpriseProject = new EngineCreateReqEnterpriseProject(); + enterpriseProjectSetter.accept(this.enterpriseProject); + } + + return this; + } + + /** + * Get enterpriseProject + * @return enterpriseProject + */ + public EngineCreateReqEnterpriseProject getEnterpriseProject() { + return enterpriseProject; + } + + public void setEnterpriseProject(EngineCreateReqEnterpriseProject enterpriseProject) { + this.enterpriseProject = enterpriseProject; + } + + public EngineCreateReq withVpcCidr(String vpcCidr) { + this.vpcCidr = vpcCidr; + return this; + } + + /** + * 网关vpc划分 + * @return vpcCidr + */ + public String getVpcCidr() { + return vpcCidr; + } + + public void setVpcCidr(String vpcCidr) { + this.vpcCidr = vpcCidr; + } + + public EngineCreateReq withResourceParams(EngineCreateReqResourceParams resourceParams) { + this.resourceParams = resourceParams; + return this; + } + + public EngineCreateReq withResourceParams(Consumer resourceParamsSetter) { + if (this.resourceParams == null) { + this.resourceParams = new EngineCreateReqResourceParams(); + resourceParamsSetter.accept(this.resourceParams); + } + + return this; + } + + /** + * Get resourceParams + * @return resourceParams + */ + public EngineCreateReqResourceParams getResourceParams() { + return resourceParams; + } + + public void setResourceParams(EngineCreateReqResourceParams resourceParams) { + this.resourceParams = resourceParams; + } + + public EngineCreateReq 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 EngineCreateReq withCapacityProductId(String capacityProductId) { + this.capacityProductId = capacityProductId; + return this; + } + + /** + * 容量产品ID + * @return capacityProductId + */ + public String getCapacityProductId() { + return capacityProductId; + } + + public void setCapacityProductId(String capacityProductId) { + this.capacityProductId = capacityProductId; + } + + public EngineCreateReq withIsFree(Boolean isFree) { + this.isFree = isFree; + return this; + } + + /** + * 微服务引擎是否免费 + * @return isFree + */ + public Boolean getIsFree() { + return isFree; + } + + public void setIsFree(Boolean isFree) { + this.isFree = isFree; + } + + public EngineCreateReq withSubnetName(String subnetName) { + this.subnetName = subnetName; + return this; + } + + /** + * 微服务引擎使用的子网名称 + * @return subnetName + */ + public String getSubnetName() { + return subnetName; + } + + public void setSubnetName(String subnetName) { + this.subnetName = subnetName; + } + + public EngineCreateReq withTags(List tags) { + this.tags = tags; + return this; + } + + public EngineCreateReq addTagsItem(String tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public EngineCreateReq 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 EngineCreateReq withMaintenanceConfig(EngineCreateReqMaintenanceConfig maintenanceConfig) { + this.maintenanceConfig = maintenanceConfig; + return this; + } + + public EngineCreateReq withMaintenanceConfig(Consumer maintenanceConfigSetter) { + if (this.maintenanceConfig == null) { + this.maintenanceConfig = new EngineCreateReqMaintenanceConfig(); + maintenanceConfigSetter.accept(this.maintenanceConfig); + } + + return this; + } + + /** + * Get maintenanceConfig + * @return maintenanceConfig + */ + public EngineCreateReqMaintenanceConfig getMaintenanceConfig() { + return maintenanceConfig; + } + + public void setMaintenanceConfig(EngineCreateReqMaintenanceConfig maintenanceConfig) { + this.maintenanceConfig = maintenanceConfig; + } + + public EngineCreateReq withElbid(String elbid) { + this.elbid = elbid; + return this; + } + + /** + * 微服务引擎使用的elb的id + * @return elbid + */ + public String getElbid() { + return elbid; + } + + public void setElbid(String elbid) { + this.elbid = elbid; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -668,7 +1069,16 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.vpc, that.vpc) && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.networkId, that.networkId) && Objects.equals(this.subnetCidr, that.subnetCidr) && Objects.equals(this.publicIpId, that.publicIpId) && Objects.equals(this.authCred, that.authCred) - && Objects.equals(this.specType, that.specType) && Objects.equals(this.inputs, that.inputs); + && Objects.equals(this.specType, that.specType) && Objects.equals(this.inputs, that.inputs) + && Objects.equals(this.enginestateInfo, that.enginestateInfo) + && Objects.equals(this.periodType, that.periodType) && Objects.equals(this.flavorType, that.flavorType) + && Objects.equals(this.enterpriseProject, that.enterpriseProject) + && Objects.equals(this.vpcCidr, that.vpcCidr) && Objects.equals(this.resourceParams, that.resourceParams) + && Objects.equals(this.productId, that.productId) + && Objects.equals(this.capacityProductId, that.capacityProductId) + && Objects.equals(this.isFree, that.isFree) && Objects.equals(this.subnetName, that.subnetName) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.maintenanceConfig, that.maintenanceConfig) + && Objects.equals(this.elbid, that.elbid); } @Override @@ -686,7 +1096,20 @@ public int hashCode() { publicIpId, authCred, specType, - inputs); + inputs, + enginestateInfo, + periodType, + flavorType, + enterpriseProject, + vpcCidr, + resourceParams, + productId, + capacityProductId, + isFree, + subnetName, + tags, + maintenanceConfig, + elbid); } @Override @@ -707,6 +1130,19 @@ public String toString() { sb.append(" authCred: ").append(toIndentedString(authCred)).append("\n"); sb.append(" specType: ").append(toIndentedString(specType)).append("\n"); sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n"); + sb.append(" enginestateInfo: ").append(toIndentedString(enginestateInfo)).append("\n"); + sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); + sb.append(" flavorType: ").append(toIndentedString(flavorType)).append("\n"); + sb.append(" enterpriseProject: ").append(toIndentedString(enterpriseProject)).append("\n"); + sb.append(" vpcCidr: ").append(toIndentedString(vpcCidr)).append("\n"); + sb.append(" resourceParams: ").append(toIndentedString(resourceParams)).append("\n"); + sb.append(" productId: ").append(toIndentedString(productId)).append("\n"); + sb.append(" capacityProductId: ").append(toIndentedString(capacityProductId)).append("\n"); + sb.append(" isFree: ").append(toIndentedString(isFree)).append("\n"); + sb.append(" subnetName: ").append(toIndentedString(subnetName)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" maintenanceConfig: ").append(toIndentedString(maintenanceConfig)).append("\n"); + sb.append(" elbid: ").append(toIndentedString(elbid)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqEnginestateInfo.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqEnginestateInfo.java new file mode 100644 index 0000000000..eb1d1498cc --- /dev/null +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqEnginestateInfo.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.cse.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 引擎状态信息 + */ +public class EngineCreateReqEnginestateInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cluster") + + private Boolean cluster; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "twinClusters") + + private Boolean twinClusters; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "singleEngine") + + private Boolean singleEngine; + + public EngineCreateReqEnginestateInfo withCluster(Boolean cluster) { + this.cluster = cluster; + return this; + } + + /** + * 集群 + * @return cluster + */ + public Boolean getCluster() { + return cluster; + } + + public void setCluster(Boolean cluster) { + this.cluster = cluster; + } + + public EngineCreateReqEnginestateInfo withTwinClusters(Boolean twinClusters) { + this.twinClusters = twinClusters; + return this; + } + + /** + * 双子集群 + * @return twinClusters + */ + public Boolean getTwinClusters() { + return twinClusters; + } + + public void setTwinClusters(Boolean twinClusters) { + this.twinClusters = twinClusters; + } + + public EngineCreateReqEnginestateInfo withSingleEngine(Boolean singleEngine) { + this.singleEngine = singleEngine; + return this; + } + + /** + * 单引擎 + * @return singleEngine + */ + public Boolean getSingleEngine() { + return singleEngine; + } + + public void setSingleEngine(Boolean singleEngine) { + this.singleEngine = singleEngine; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + EngineCreateReqEnginestateInfo that = (EngineCreateReqEnginestateInfo) obj; + return Objects.equals(this.cluster, that.cluster) && Objects.equals(this.twinClusters, that.twinClusters) + && Objects.equals(this.singleEngine, that.singleEngine); + } + + @Override + public int hashCode() { + return Objects.hash(cluster, twinClusters, singleEngine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EngineCreateReqEnginestateInfo {\n"); + sb.append(" cluster: ").append(toIndentedString(cluster)).append("\n"); + sb.append(" twinClusters: ").append(toIndentedString(twinClusters)).append("\n"); + sb.append(" singleEngine: ").append(toIndentedString(singleEngine)).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/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqEnterpriseProject.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqEnterpriseProject.java new file mode 100644 index 0000000000..6360e42ab9 --- /dev/null +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqEnterpriseProject.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.cse.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 企业项目信息 + */ +public class EngineCreateReqEnterpriseProject { + + @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 = "status") + + private Integer status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private String createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private String updatedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "label") + + private String label; + + public EngineCreateReqEnterpriseProject 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 EngineCreateReqEnterpriseProject withName(String name) { + this.name = name; + return this; + } + + /** + * 企业项目名称 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public EngineCreateReqEnterpriseProject withDescription(String description) { + this.description = description; + return this; + } + + /** + * 企业项目描述 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public EngineCreateReqEnterpriseProject withStatus(Integer status) { + this.status = status; + return this; + } + + /** + * 企业项目状态 + * @return status + */ + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public EngineCreateReqEnterpriseProject withCreatedAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 企业项目创建时间 + * @return createdAt + */ + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public EngineCreateReqEnterpriseProject withUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 企业项目升级时间 + * @return updatedAt + */ + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public EngineCreateReqEnterpriseProject withLabel(String label) { + this.label = label; + return this; + } + + /** + * 企业项目标签 + * @return label + */ + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + EngineCreateReqEnterpriseProject that = (EngineCreateReqEnterpriseProject) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) && Objects.equals(this.status, that.status) + && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt) + && Objects.equals(this.label, that.label); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, description, status, createdAt, updatedAt, label); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EngineCreateReqEnterpriseProject {\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(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" label: ").append(toIndentedString(label)).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/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqFlavorType.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqFlavorType.java new file mode 100644 index 0000000000..14b2f9ad44 --- /dev/null +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqFlavorType.java @@ -0,0 +1,411 @@ +package com.huaweicloud.sdk.cse.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 EngineCreateReqFlavorType { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nodeFlavor") + + private List nodeFlavor = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private String flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availablePrefix") + + private String availablePrefix; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availableCpuMemory") + + private String availableCpuMemory; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "specType") + + private String specType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "linear") + + private Boolean linear; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "licenseAmount") + + private Integer licenseAmount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "nodeLimit") + + private String nodeLimit; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "microGatewayFlavor") + + private String microGatewayFlavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "disable") + + private Boolean disable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "spec") + + private String spec; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cloudServiceType") + + private String cloudServiceType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "currentflavor") + + private String currentflavor; + + public EngineCreateReqFlavorType withNodeFlavor(List nodeFlavor) { + this.nodeFlavor = nodeFlavor; + return this; + } + + public EngineCreateReqFlavorType addNodeFlavorItem(String nodeFlavorItem) { + if (this.nodeFlavor == null) { + this.nodeFlavor = new ArrayList<>(); + } + this.nodeFlavor.add(nodeFlavorItem); + return this; + } + + public EngineCreateReqFlavorType withNodeFlavor(Consumer> nodeFlavorSetter) { + if (this.nodeFlavor == null) { + this.nodeFlavor = new ArrayList<>(); + } + nodeFlavorSetter.accept(this.nodeFlavor); + return this; + } + + /** + * 网关节点规格 + * @return nodeFlavor + */ + public List getNodeFlavor() { + return nodeFlavor; + } + + public void setNodeFlavor(List nodeFlavor) { + this.nodeFlavor = nodeFlavor; + } + + public EngineCreateReqFlavorType withFlavor(String flavor) { + this.flavor = flavor; + return this; + } + + /** + * 网关规格 + * @return flavor + */ + public String getFlavor() { + return flavor; + } + + public void setFlavor(String flavor) { + this.flavor = flavor; + } + + public EngineCreateReqFlavorType withAvailablePrefix(String availablePrefix) { + this.availablePrefix = availablePrefix; + return this; + } + + /** + * 可用区前缀 + * @return availablePrefix + */ + public String getAvailablePrefix() { + return availablePrefix; + } + + public void setAvailablePrefix(String availablePrefix) { + this.availablePrefix = availablePrefix; + } + + public EngineCreateReqFlavorType withAvailableCpuMemory(String availableCpuMemory) { + this.availableCpuMemory = availableCpuMemory; + return this; + } + + /** + * 可用区CPU内存 + * @return availableCpuMemory + */ + public String getAvailableCpuMemory() { + return availableCpuMemory; + } + + public void setAvailableCpuMemory(String availableCpuMemory) { + this.availableCpuMemory = availableCpuMemory; + } + + public EngineCreateReqFlavorType withSpecType(String specType) { + this.specType = specType; + return this; + } + + /** + * 引擎类型 + * @return specType + */ + public String getSpecType() { + return specType; + } + + public void setSpecType(String specType) { + this.specType = specType; + } + + public EngineCreateReqFlavorType withLinear(Boolean linear) { + this.linear = linear; + return this; + } + + /** + * 是否为线性 + * @return linear + */ + public Boolean getLinear() { + return linear; + } + + public void setLinear(Boolean linear) { + this.linear = linear; + } + + public EngineCreateReqFlavorType withLicenseAmount(Integer licenseAmount) { + this.licenseAmount = licenseAmount; + return this; + } + + /** + * 网关证书规模 + * @return licenseAmount + */ + public Integer getLicenseAmount() { + return licenseAmount; + } + + public void setLicenseAmount(Integer licenseAmount) { + this.licenseAmount = licenseAmount; + } + + public EngineCreateReqFlavorType withNodeLimit(String nodeLimit) { + this.nodeLimit = nodeLimit; + return this; + } + + /** + * 网关节点数限制 + * @return nodeLimit + */ + public String getNodeLimit() { + return nodeLimit; + } + + public void setNodeLimit(String nodeLimit) { + this.nodeLimit = nodeLimit; + } + + public EngineCreateReqFlavorType 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 EngineCreateReqFlavorType withMicroGatewayFlavor(String microGatewayFlavor) { + this.microGatewayFlavor = microGatewayFlavor; + return this; + } + + /** + * 网关规格 + * @return microGatewayFlavor + */ + public String getMicroGatewayFlavor() { + return microGatewayFlavor; + } + + public void setMicroGatewayFlavor(String microGatewayFlavor) { + this.microGatewayFlavor = microGatewayFlavor; + } + + public EngineCreateReqFlavorType withDisable(Boolean disable) { + this.disable = disable; + return this; + } + + /** + * 网关是否禁用 + * @return disable + */ + public Boolean getDisable() { + return disable; + } + + public void setDisable(Boolean disable) { + this.disable = disable; + } + + public EngineCreateReqFlavorType withSpec(String spec) { + this.spec = spec; + return this; + } + + /** + * 网关节点类型 + * @return spec + */ + public String getSpec() { + return spec; + } + + public void setSpec(String spec) { + this.spec = spec; + } + + public EngineCreateReqFlavorType withCloudServiceType(String cloudServiceType) { + this.cloudServiceType = cloudServiceType; + return this; + } + + /** + * 云服务类型 + * @return cloudServiceType + */ + public String getCloudServiceType() { + return cloudServiceType; + } + + public void setCloudServiceType(String cloudServiceType) { + this.cloudServiceType = cloudServiceType; + } + + public EngineCreateReqFlavorType withCurrentflavor(String currentflavor) { + this.currentflavor = currentflavor; + return this; + } + + /** + * 当前规格 + * @return currentflavor + */ + public String getCurrentflavor() { + return currentflavor; + } + + public void setCurrentflavor(String currentflavor) { + this.currentflavor = currentflavor; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + EngineCreateReqFlavorType that = (EngineCreateReqFlavorType) obj; + return Objects.equals(this.nodeFlavor, that.nodeFlavor) && Objects.equals(this.flavor, that.flavor) + && Objects.equals(this.availablePrefix, that.availablePrefix) + && Objects.equals(this.availableCpuMemory, that.availableCpuMemory) + && Objects.equals(this.specType, that.specType) && Objects.equals(this.linear, that.linear) + && Objects.equals(this.licenseAmount, that.licenseAmount) && Objects.equals(this.nodeLimit, that.nodeLimit) + && Objects.equals(this.id, that.id) && Objects.equals(this.microGatewayFlavor, that.microGatewayFlavor) + && Objects.equals(this.disable, that.disable) && Objects.equals(this.spec, that.spec) + && Objects.equals(this.cloudServiceType, that.cloudServiceType) + && Objects.equals(this.currentflavor, that.currentflavor); + } + + @Override + public int hashCode() { + return Objects.hash(nodeFlavor, + flavor, + availablePrefix, + availableCpuMemory, + specType, + linear, + licenseAmount, + nodeLimit, + id, + microGatewayFlavor, + disable, + spec, + cloudServiceType, + currentflavor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EngineCreateReqFlavorType {\n"); + sb.append(" nodeFlavor: ").append(toIndentedString(nodeFlavor)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" availablePrefix: ").append(toIndentedString(availablePrefix)).append("\n"); + sb.append(" availableCpuMemory: ").append(toIndentedString(availableCpuMemory)).append("\n"); + sb.append(" specType: ").append(toIndentedString(specType)).append("\n"); + sb.append(" linear: ").append(toIndentedString(linear)).append("\n"); + sb.append(" licenseAmount: ").append(toIndentedString(licenseAmount)).append("\n"); + sb.append(" nodeLimit: ").append(toIndentedString(nodeLimit)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" microGatewayFlavor: ").append(toIndentedString(microGatewayFlavor)).append("\n"); + sb.append(" disable: ").append(toIndentedString(disable)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" cloudServiceType: ").append(toIndentedString(cloudServiceType)).append("\n"); + sb.append(" currentflavor: ").append(toIndentedString(currentflavor)).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/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqMaintenanceConfig.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqMaintenanceConfig.java new file mode 100644 index 0000000000..3de0e7c1d7 --- /dev/null +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqMaintenanceConfig.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.cse.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 微服务引擎的维护时间窗 + */ +public class EngineCreateReqMaintenanceConfig { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time") + + private String time; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "zone") + + private String zone; + + public EngineCreateReqMaintenanceConfig withTime(String time) { + this.time = time; + return this; + } + + /** + * 维护时间 + * @return time + */ + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public EngineCreateReqMaintenanceConfig withZone(String zone) { + this.zone = zone; + return this; + } + + /** + * 维护时间的时区 + * @return zone + */ + public String getZone() { + return zone; + } + + public void setZone(String zone) { + this.zone = zone; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + EngineCreateReqMaintenanceConfig that = (EngineCreateReqMaintenanceConfig) obj; + return Objects.equals(this.time, that.time) && Objects.equals(this.zone, that.zone); + } + + @Override + public int hashCode() { + return Objects.hash(time, zone); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EngineCreateReqMaintenanceConfig {\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" zone: ").append(toIndentedString(zone)).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/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqResourceParams.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqResourceParams.java new file mode 100644 index 0000000000..7e1505a533 --- /dev/null +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineCreateReqResourceParams.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.cse.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 微服务引擎资源参数 + */ +public class EngineCreateReqResourceParams { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "isAutoRenew") + + private Integer isAutoRenew; + + public EngineCreateReqResourceParams withIsAutoRenew(Integer isAutoRenew) { + this.isAutoRenew = isAutoRenew; + return this; + } + + /** + * 是否自动刷新 + * @return isAutoRenew + */ + public Integer getIsAutoRenew() { + return isAutoRenew; + } + + public void setIsAutoRenew(Integer isAutoRenew) { + this.isAutoRenew = isAutoRenew; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + EngineCreateReqResourceParams that = (EngineCreateReqResourceParams) obj; + return Objects.equals(this.isAutoRenew, that.isAutoRenew); + } + + @Override + public int hashCode() { + return Objects.hash(isAutoRenew); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EngineCreateReqResourceParams {\n"); + sb.append(" isAutoRenew: ").append(toIndentedString(isAutoRenew)).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/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineExternalEntrypoint.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineExternalEntrypoint.java index 82ee674d66..f607712c40 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineExternalEntrypoint.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineExternalEntrypoint.java @@ -39,7 +39,7 @@ public EngineExternalEntrypoint withExternalAddress(String externalAddress) { } /** - * 微服务引擎专享版暴露的IP地址。 + * 微服务引擎暴露的IP地址。 * @return externalAddress */ public String getExternalAddress() { @@ -56,7 +56,7 @@ public EngineExternalEntrypoint withPublicAddress(String publicAddress) { } /** - * 微服务引擎专享版的公网地址。 + * 微服务引擎的公网地址。 * @return publicAddress */ public String getPublicAddress() { @@ -89,7 +89,7 @@ public EngineExternalEntrypoint withServiceEndpoint(Consumer getServiceEndpoint() { @@ -123,7 +123,7 @@ public EngineExternalEntrypoint withPublicServiceEndpoint( } /** - * 微服务引擎专享版组件的公网地址。 + * 微服务引擎组件的公网地址。 * @return publicServiceEndpoint */ public Map getPublicServiceEndpoint() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineRbacPwd.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineRbacPwd.java index 56aaf75ec3..d2cae64d6d 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineRbacPwd.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineRbacPwd.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * 操作微服务引擎专享版安全认证信息 + * 操作ServiceComb引擎专享版安全认证信息 */ public class EngineRbacPwd { @@ -21,7 +21,7 @@ public EngineRbacPwd withPwd(String pwd) { } /** - * 开启安全认证的微服务引擎专享版默认root帐号的密码 + * 开启安全认证的ServiceComb引擎专享版默认root帐号的密码 * @return pwd */ public String getPwd() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineReference.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineReference.java index 3972dbaf3a..849546c46a 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineReference.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineReference.java @@ -104,7 +104,7 @@ public EngineReference withAzList(Consumer> azListSetter) { } /** - * 微服务引擎专享版部署的可用区列表 + * 微服务引擎部署的可用区列表 * @return azList */ public List getAzList() { @@ -121,7 +121,7 @@ public EngineReference withNetworkId(String networkId) { } /** - * 微服务引擎专享版子网网络ID + * 微服务引擎子网网络ID * @return networkId */ public String getNetworkId() { @@ -138,7 +138,7 @@ public EngineReference withSubnetCidr(String subnetCidr) { } /** - * 微服务引擎专享版ipv4子网划分 + * 微服务引擎ipv4子网划分 * @return subnetCidr */ public String getSubnetCidr() { @@ -155,7 +155,7 @@ public EngineReference withSubnetCidrV6(String subnetCidrV6) { } /** - * 微服务引擎专享版ipv6子网划分 + * 微服务引擎ipv6子网划分 * @return subnetCidrV6 */ public String getSubnetCidrV6() { @@ -172,7 +172,7 @@ public EngineReference withSubnetGateway(String subnetGateway) { } /** - * 微服务引擎专享版子网网关 + * 微服务引擎子网网关 * @return subnetGateway */ public String getSubnetGateway() { @@ -189,7 +189,7 @@ public EngineReference withPublicIpId(String publicIpId) { } /** - * 微服务引擎专享版公网地址ID + * 微服务引擎公网地址ID * @return publicIpId */ public String getPublicIpId() { @@ -206,7 +206,7 @@ public EngineReference withServiceLimit(Integer serviceLimit) { } /** - * 微服务引擎专享版可支持的微服务总数 + * 微服务引擎可支持的微服务总数 * @return serviceLimit */ public Integer getServiceLimit() { @@ -223,7 +223,7 @@ public EngineReference withInstanceLimit(Integer instanceLimit) { } /** - * 微服务引擎专享版可支持的实例总数 + * 微服务引擎可支持的实例总数 * @return instanceLimit */ public Integer getInstanceLimit() { @@ -256,7 +256,7 @@ public EngineReference withInputs(Consumer> inputsSetter) { } /** - * 微服务引擎专享版附加参数 + * 微服务引擎附加参数 * @return inputs */ public Map getInputs() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSimpleInfo.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSimpleInfo.java index d95de109c2..83e653ad70 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSimpleInfo.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSimpleInfo.java @@ -39,7 +39,7 @@ public class EngineSimpleInfo { private String enterpriseProjectName; /** - * 微服务引擎专享版的类型,CSE为专享版引擎,CSE_Share表示为专业版引擎 + * 微服务引擎的类型,CSE为专享版引擎,CSE_Share表示为专业版引擎 */ public static final class TypeEnum { @@ -119,7 +119,7 @@ public int hashCode() { private String description; /** - * 微服务引擎专享版的规格 + * 微服务引擎的规格 */ public static final class FlavorEnum { @@ -143,6 +143,46 @@ public static final class FlavorEnum { */ public static final FlavorEnum CSE_S1_XLARGE2 = new FlavorEnum("cse.s1.xlarge2"); + /** + * Enum CSE_NACOS2_C1_LARGE_10 for value: "cse.nacos2.c1.large.10" + */ + public static final FlavorEnum CSE_NACOS2_C1_LARGE_10 = new FlavorEnum("cse.nacos2.c1.large.10"); + + /** + * Enum CSE_NACOS2_C1_XLARGE_20 for value: "cse.nacos2.c1.xlarge.20" + */ + public static final FlavorEnum CSE_NACOS2_C1_XLARGE_20 = new FlavorEnum("cse.nacos2.c1.xlarge.20"); + + /** + * Enum CSE_NACOS2_C1_XLARGE_50 for value: "cse.nacos2.c1.xlarge.50" + */ + public static final FlavorEnum CSE_NACOS2_C1_XLARGE_50 = new FlavorEnum("cse.nacos2.c1.xlarge.50"); + + /** + * Enum CSE_NACOS2_C1_XLARGE_60 for value: "cse.nacos2.c1.xlarge.60" + */ + public static final FlavorEnum CSE_NACOS2_C1_XLARGE_60 = new FlavorEnum("cse.nacos2.c1.xlarge.60"); + + /** + * Enum CSE_NACOS2_C1_2XLARGE_100 for value: "cse.nacos2.c1.2xlarge.100" + */ + public static final FlavorEnum CSE_NACOS2_C1_2XLARGE_100 = new FlavorEnum("cse.nacos2.c1.2xlarge.100"); + + /** + * Enum CSE_MICROGATEWAY_PRO_SMALL_1 for value: "cse.microgateway.pro.small.1" + */ + public static final FlavorEnum CSE_MICROGATEWAY_PRO_SMALL_1 = new FlavorEnum("cse.microgateway.pro.small.1"); + + /** + * Enum CSE_MICROGATEWAY_PRO_MEDIUM_1 for value: "cse.microgateway.pro.medium.1" + */ + public static final FlavorEnum CSE_MICROGATEWAY_PRO_MEDIUM_1 = new FlavorEnum("cse.microgateway.pro.medium.1"); + + /** + * Enum CSE_MICROGATEWAY_PRO_LARGE_1 for value: "cse.microgateway.pro.large.1" + */ + public static final FlavorEnum CSE_MICROGATEWAY_PRO_LARGE_1 = new FlavorEnum("cse.microgateway.pro.large.1"); + private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -151,6 +191,14 @@ private static Map createStaticFields() { map.put("cse.s1.medium2", CSE_S1_MEDIUM2); map.put("cse.s1.large2", CSE_S1_LARGE2); map.put("cse.s1.xlarge2", CSE_S1_XLARGE2); + map.put("cse.nacos2.c1.large.10", CSE_NACOS2_C1_LARGE_10); + map.put("cse.nacos2.c1.xlarge.20", CSE_NACOS2_C1_XLARGE_20); + map.put("cse.nacos2.c1.xlarge.50", CSE_NACOS2_C1_XLARGE_50); + map.put("cse.nacos2.c1.xlarge.60", CSE_NACOS2_C1_XLARGE_60); + map.put("cse.nacos2.c1.2xlarge.100", CSE_NACOS2_C1_2XLARGE_100); + map.put("cse.microgateway.pro.small.1", CSE_MICROGATEWAY_PRO_SMALL_1); + map.put("cse.microgateway.pro.medium.1", CSE_MICROGATEWAY_PRO_MEDIUM_1); + map.put("cse.microgateway.pro.large.1", CSE_MICROGATEWAY_PRO_LARGE_1); return Collections.unmodifiableMap(map); } @@ -211,7 +259,7 @@ public int hashCode() { private String payment; /** - * 微服务引擎专享版的认证方式,RBAC/NONE + * 微服务引擎的认证方式,RBAC/NONE */ public static final class AuthTypeEnum { @@ -286,7 +334,7 @@ public int hashCode() { private AuthTypeEnum authType; /** - * 微服务引擎专享版当前的状态 + * 微服务引擎当前的状态 */ public static final class StatusEnum { @@ -569,7 +617,7 @@ public int hashCode() { private List engineAdditionalActions = null; /** - * 微服务引擎专享版应用部署类型 + * 微服务引擎应用部署类型 */ public static final class SpecTypeEnum { @@ -660,7 +708,7 @@ public EngineSimpleInfo withId(String id) { } /** - * 微服务引擎专享版的ID + * 微服务引擎的ID * @return id */ public String getId() { @@ -694,7 +742,7 @@ public EngineSimpleInfo withEnterpriseProjectId(String enterpriseProjectId) { } /** - * 微服务引擎专享版所属企业项目ID + * 微服务引擎所属企业项目ID * @return enterpriseProjectId */ public String getEnterpriseProjectId() { @@ -711,7 +759,7 @@ public EngineSimpleInfo withEnterpriseProjectName(String enterpriseProjectName) } /** - * 微服务引擎专享版所属企业项目名称 + * 微服务引擎所属企业项目名称 * @return enterpriseProjectName */ public String getEnterpriseProjectName() { @@ -728,7 +776,7 @@ public EngineSimpleInfo withType(TypeEnum type) { } /** - * 微服务引擎专享版的类型,CSE为专享版引擎,CSE_Share表示为专业版引擎 + * 微服务引擎的类型,CSE为专享版引擎,CSE_Share表示为专业版引擎 * @return type */ public TypeEnum getType() { @@ -745,7 +793,7 @@ public EngineSimpleInfo withDescription(String description) { } /** - * 微服务引擎专享版的描述 + * 微服务引擎的描述 * @return description */ public String getDescription() { @@ -762,7 +810,7 @@ public EngineSimpleInfo withFlavor(FlavorEnum flavor) { } /** - * 微服务引擎专享版的规格 + * 微服务引擎的规格 * @return flavor */ public FlavorEnum getFlavor() { @@ -779,7 +827,7 @@ public EngineSimpleInfo withPayment(String payment) { } /** - * 微服务引擎专享版的计费方式,0表示包周期,1表示按需,2表示免费 + * 微服务引擎的计费方式,0表示包周期,1表示按需,2表示免费 * @return payment */ public String getPayment() { @@ -796,7 +844,7 @@ public EngineSimpleInfo withAuthType(AuthTypeEnum authType) { } /** - * 微服务引擎专享版的认证方式,RBAC/NONE + * 微服务引擎的认证方式,RBAC/NONE * @return authType */ public AuthTypeEnum getAuthType() { @@ -813,7 +861,7 @@ public EngineSimpleInfo withStatus(StatusEnum status) { } /** - * 微服务引擎专享版当前的状态 + * 微服务引擎当前的状态 * @return status */ public StatusEnum getStatus() { @@ -830,7 +878,7 @@ public EngineSimpleInfo withExternalAddress(String externalAddress) { } /** - * 微服务引擎专享版暴露的IP地址 + * 微服务引擎暴露的IP地址 * @return externalAddress */ public String getExternalAddress() { @@ -863,7 +911,7 @@ public EngineSimpleInfo withServiceEndpoint(Consumer } /** - * 微服务引擎专享版组件的访问地址。 + * 微服务引擎组件的访问地址。 * @return serviceEndpoint */ public Map getServiceEndpoint() { @@ -880,7 +928,7 @@ public EngineSimpleInfo withPublicAddress(String publicAddress) { } /** - * 微服务引擎专享版的公网IP地址 + * 微服务引擎的公网IP地址 * @return publicAddress */ public String getPublicAddress() { @@ -914,7 +962,7 @@ public EngineSimpleInfo withPublicServiceEndpoint( } /** - * 微服务引擎专享版的公网接入地址 + * 微服务引擎的公网接入地址 * @return publicServiceEndpoint */ public Map getPublicServiceEndpoint() { @@ -931,7 +979,7 @@ public EngineSimpleInfo withTotalInstance(Integer totalInstance) { } /** - * 微服务引擎专享版可支持的实例总数 + * 微服务引擎可支持的实例总数 * @return totalInstance */ public Integer getTotalInstance() { @@ -982,7 +1030,7 @@ public EngineSimpleInfo withVersion(String version) { } /** - * 微服务引擎专享版当前版本 + * 微服务引擎当前版本 * @return version */ public String getVersion() { @@ -999,7 +1047,7 @@ public EngineSimpleInfo withLatestVersion(String latestVersion) { } /** - * 微服务引擎专享版最新版本 + * 微服务引擎最新版本 * @return latestVersion */ public String getLatestVersion() { @@ -1016,7 +1064,7 @@ public EngineSimpleInfo withCreateTime(Long createTime) { } /** - * 微服务引擎专享版创建时间 + * 微服务引擎创建时间 * @return createTime */ public Long getCreateTime() { @@ -1033,7 +1081,7 @@ public EngineSimpleInfo withDueTo(Long dueTo) { } /** - * 微服务引擎专享版到期时间 + * 微服务引擎到期时间 * @return dueTo */ public Long getDueTo() { @@ -1050,7 +1098,7 @@ public EngineSimpleInfo withLatestJobId(Integer latestJobId) { } /** - * 微服务引擎专享版最近的任务ID + * 微服务引擎最近的任务ID * @return latestJobId */ public Integer getLatestJobId() { @@ -1084,7 +1132,7 @@ public EngineSimpleInfo withEngineAdditionalActions( } /** - * 微服务引擎专享版允许的附加操作 + * 微服务引擎允许的附加操作 * @return engineAdditionalActions */ public List getEngineAdditionalActions() { @@ -1101,7 +1149,7 @@ public EngineSimpleInfo withSpecType(SpecTypeEnum specType) { } /** - * 微服务引擎专享版应用部署类型 + * 微服务引擎应用部署类型 * @return specType */ public SpecTypeEnum getSpecType() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSpec.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSpec.java index 7143523db5..4c0384fb40 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSpec.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineSpec.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * 微服务引擎专享版相关参数。 + * 微服务引擎相关参数。 */ public class EngineSpec { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineUpdateReq.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineUpdateReq.java index d5f50f119b..f4adb1f3b3 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineUpdateReq.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EngineUpdateReq.java @@ -6,7 +6,7 @@ import java.util.Objects; /** - * 升级微服务引擎专享版请求体 + * 升级微服务引擎请求体 */ public class EngineUpdateReq { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EntrypointItem.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EntrypointItem.java index 9ea09eb302..bc83a3fa0b 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EntrypointItem.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/EntrypointItem.java @@ -36,7 +36,7 @@ public class EntrypointItem { private String slaveEntrypointIpv6; /** - * 微服务引擎专享版组件类型 + * 微服务引擎组件类型 */ public static final class TypeEnum { @@ -116,7 +116,7 @@ public EntrypointItem withMasterEntrypoint(String masterEntrypoint) { } /** - * 微服务引擎专享版组件的ipv4主接入地址 + * 微服务引擎组件的ipv4主接入地址 * @return masterEntrypoint */ public String getMasterEntrypoint() { @@ -133,7 +133,7 @@ public EntrypointItem withMasterEntrypointIpv6(String masterEntrypointIpv6) { } /** - * 微服务引擎专享版组件的ipv6主接入地址 + * 微服务引擎组件的ipv6主接入地址 * @return masterEntrypointIpv6 */ public String getMasterEntrypointIpv6() { @@ -150,7 +150,7 @@ public EntrypointItem withSlaveEntrypoint(String slaveEntrypoint) { } /** - * 微服务引擎专享版组件的ipv4备接入地址 + * 微服务引擎组件的ipv4备接入地址 * @return slaveEntrypoint */ public String getSlaveEntrypoint() { @@ -167,7 +167,7 @@ public EntrypointItem withSlaveEntrypointIpv6(String slaveEntrypointIpv6) { } /** - * 微服务引擎专享版组件的ipv6备接入地址 + * 微服务引擎组件的ipv6备接入地址 * @return slaveEntrypointIpv6 */ public String getSlaveEntrypointIpv6() { @@ -184,7 +184,7 @@ public EntrypointItem withType(TypeEnum type) { } /** - * 微服务引擎专享版组件类型 + * 微服务引擎组件类型 * @return type */ public TypeEnum getType() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/FlavorBrief.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/FlavorBrief.java index 1d7f0a282f..99008675be 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/FlavorBrief.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/FlavorBrief.java @@ -7,7 +7,7 @@ import java.util.function.Consumer; /** - * 微服务引擎专享版规格及描述 + * 微服务引擎规格及描述 */ public class FlavorBrief { @@ -32,7 +32,7 @@ public FlavorBrief withFlavor(String flavor) { } /** - * 微服务引擎专享版规格 + * 微服务引擎规格 * @return flavor */ public String getFlavor() { @@ -49,7 +49,7 @@ public FlavorBrief withDescription(String description) { } /** - * 微服务引擎专享版规格描述 + * 微服务引擎规格描述 * @return description */ public String getDescription() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesRequest.java index d002b8979a..e5ca838446 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesRequest.java @@ -20,6 +20,11 @@ public class ListEnginesRequest { private String limit; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + public ListEnginesRequest withOffset(Integer offset) { this.offset = offset; return this; @@ -54,6 +59,23 @@ public void setLimit(String limit) { this.limit = limit; } + public ListEnginesRequest withType(String type) { + this.type = type; + return this; + } + + /** + * 查询所有微服务引擎需要将该值设置为ALL,查询ServiceComb引擎专享版需要将该值设置为CSE,查询注册配置中心需要将该值设置为Nacos,查询网关需要将该值设置为MicroGateway。 + * @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) { @@ -63,12 +85,13 @@ public boolean equals(java.lang.Object obj) { return false; } ListEnginesRequest that = (ListEnginesRequest) obj; - return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit); + return Objects.equals(this.offset, that.offset) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.type, that.type); } @Override public int hashCode() { - return Objects.hash(offset, limit); + return Objects.hash(offset, limit, type); } @Override @@ -77,6 +100,7 @@ public String toString() { sb.append("class ListEnginesRequest {\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesResponse.java index 2bb90ec54c..1520778835 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListEnginesResponse.java @@ -30,7 +30,7 @@ public ListEnginesResponse withTotal(Integer total) { } /** - * 当前符合查询条件的微服务引擎专享版总个数 + * 当前符合查询条件的微服务引擎个数 * @return total */ public Integer getTotal() { @@ -63,7 +63,7 @@ public ListEnginesResponse withData(Consumer> dataSetter) } /** - * 微服务引擎专享版详情 + * 微服务引擎详情 * @return data */ public List getData() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsRequest.java index b54ee44b0f..704b11391e 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsRequest.java @@ -21,7 +21,7 @@ public ListFlavorsRequest withSpecType(String specType) { } /** - * 微服务引擎专享版应用部署类型,查询CSE微服务引擎专享版需要将该值设置为CSE2。 + * 微服务引擎应用部署类型,查询ServiceComb引擎专享版需要将该值设置为CSE2,查询注册配置中心需要将该值设置为Nacos2,查询网关需要将该值设置为MicroGateway。 * @return specType */ public String getSpecType() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsResponse.java index 32ede50616..cd343c9683 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListFlavorsResponse.java @@ -30,7 +30,7 @@ public ListFlavorsResponse withTotal(Integer total) { } /** - * 微服务引擎专享版规格总个数 + * 微服务引擎规格总个数 * @return total */ public Integer getTotal() { @@ -63,7 +63,7 @@ public ListFlavorsResponse withData(Consumer> dataSetter) { } /** - * 微服务引擎专享版规格详情 + * 微服务引擎规格详情 * @return data */ public List getData() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyByPolicyIdRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyByPolicyIdRequest.java index dbe2297d80..fe6622d8b9 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyByPolicyIdRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyByPolicyIdRequest.java @@ -41,7 +41,7 @@ public ListGovernancePolicyByPolicyIdRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyRequest.java index 9e331b559f..ecf10965e7 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicyRequest.java @@ -36,7 +36,7 @@ public ListGovernancePolicyRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicysRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicysRequest.java index 50c106ab4c..29ac1c938d 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicysRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListGovernancePolicysRequest.java @@ -36,7 +36,7 @@ public ListGovernancePolicysRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListMicroserviceRouteRuleRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListMicroserviceRouteRuleRequest.java index 1ffce448db..cf126c3b3a 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListMicroserviceRouteRuleRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListMicroserviceRouteRuleRequest.java @@ -41,7 +41,7 @@ public ListMicroserviceRouteRuleRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListNacosNamespacesRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListNacosNamespacesRequest.java index bf71444672..825b5a7543 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListNacosNamespacesRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ListNacosNamespacesRequest.java @@ -36,7 +36,7 @@ public ListNacosNamespacesRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/RetryEngineResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/RetryEngineResponse.java index 34e7ee2282..675f8a8d92 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/RetryEngineResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/RetryEngineResponse.java @@ -32,7 +32,7 @@ public RetryEngineResponse withId(String id) { } /** - * 创建的微服务引擎专享版ID + * 创建的微服务引擎ID * @return id */ public String getId() { @@ -49,7 +49,7 @@ public RetryEngineResponse withName(String name) { } /** - * 创建的微服务引擎专享版名称 + * 创建的微服务引擎名称 * @return name */ public String getName() { @@ -66,7 +66,7 @@ public RetryEngineResponse withJobId(Integer jobId) { } /** - * 微服务引擎专享版执行的任务ID + * 微服务引擎执行的任务ID * @return jobId */ public Integer getJobId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineJobRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineJobRequest.java index bfae6ea490..f0e662cc94 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineJobRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineJobRequest.java @@ -50,7 +50,7 @@ public ShowEngineJobRequest withEngineId(String engineId) { } /** - * 微服务引擎专享版ID。 + * 微服务引擎ID。 * @return engineId */ public String getEngineId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineRequest.java index 99ab9a9557..c61c08b2c1 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineRequest.java @@ -45,7 +45,7 @@ public ShowEngineRequest withEngineId(String engineId) { } /** - * 微服务引擎专享版ID。 + * 微服务引擎ID。 * @return engineId */ public String getEngineId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineResponse.java index e78847ed33..89569f3d85 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/ShowEngineResponse.java @@ -35,7 +35,7 @@ public class ShowEngineResponse extends SdkResponse { private String description; /** - * 微服务引擎专享版认证类型 + * 微服务引擎认证类型 */ public static final class AuthTypeEnum { @@ -130,7 +130,7 @@ public int hashCode() { private String latestVersion; /** - * 微服务引擎专享版状态 + * 微服务引擎状态 */ public static final class StatusEnum { @@ -398,32 +398,32 @@ public int hashCode() { private List engineAdditionalActions = null; /** - * 微服务引擎专享版应用部署类型 + * 微服务引擎应用部署类型 */ public static final class SpecTypeEnum { /** - * Enum CCE for value: "CCE" + * Enum CSE2 for value: "CSE2" */ - public static final SpecTypeEnum CCE = new SpecTypeEnum("CCE"); + public static final SpecTypeEnum CSE2 = new SpecTypeEnum("CSE2"); /** - * Enum CSE for value: "CSE" + * Enum NACOS2 for value: "Nacos2" */ - public static final SpecTypeEnum CSE = new SpecTypeEnum("CSE"); + public static final SpecTypeEnum NACOS2 = new SpecTypeEnum("Nacos2"); /** - * Enum SPRINGCLOUD for value: "SpringCloud" + * Enum MICROGATEWAY for value: "MicroGateway" */ - public static final SpecTypeEnum SPRINGCLOUD = new SpecTypeEnum("SpringCloud"); + public static final SpecTypeEnum MICROGATEWAY = new SpecTypeEnum("MicroGateway"); private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); - map.put("CCE", CCE); - map.put("CSE", CSE); - map.put("SpringCloud", SPRINGCLOUD); + map.put("CSE2", CSE2); + map.put("Nacos2", NACOS2); + map.put("MicroGateway", MICROGATEWAY); return Collections.unmodifiableMap(map); } @@ -479,7 +479,7 @@ public int hashCode() { private SpecTypeEnum specType; /** - * 微服务引擎类型,CSE表示专享版,CSE_Share表示专业版 + * 微服务引擎类型,CSE表示专享版,NACOS表示注册配置中心,MICROGATEWAY表示网关 */ public static final class TypeEnum { @@ -489,16 +489,22 @@ public static final class TypeEnum { public static final TypeEnum CSE = new TypeEnum("CSE"); /** - * Enum CSE_SHARE for value: "CSE_Share" + * Enum NACOS for value: "NACOS" + */ + public static final TypeEnum NACOS = new TypeEnum("NACOS"); + + /** + * Enum MICROGATEWAY for value: "MICROGATEWAY" */ - public static final TypeEnum CSE_SHARE = new TypeEnum("CSE_Share"); + public static final TypeEnum MICROGATEWAY = new TypeEnum("MICROGATEWAY"); private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); map.put("CSE", CSE); - map.put("CSE_Share", CSE_SHARE); + map.put("NACOS", NACOS); + map.put("MICROGATEWAY", MICROGATEWAY); return Collections.unmodifiableMap(map); } @@ -569,7 +575,7 @@ public ShowEngineResponse withId(String id) { } /** - * 微服务引擎专享版ID + * 微服务引擎ID * @return id */ public String getId() { @@ -586,7 +592,7 @@ public ShowEngineResponse withName(String name) { } /** - * 微服务引擎专享版名称 + * 微服务引擎名称 * @return name */ public String getName() { @@ -603,7 +609,7 @@ public ShowEngineResponse withDescription(String description) { } /** - * 微服务引擎专享版描述 + * 微服务引擎描述 * @return description */ public String getDescription() { @@ -620,7 +626,7 @@ public ShowEngineResponse withAuthType(AuthTypeEnum authType) { } /** - * 微服务引擎专享版认证类型 + * 微服务引擎认证类型 * @return authType */ public AuthTypeEnum getAuthType() { @@ -637,7 +643,7 @@ public ShowEngineResponse withFlavor(String flavor) { } /** - * 微服务引擎专享版规格 + * 微服务引擎规格 * @return flavor */ public String getFlavor() { @@ -654,7 +660,7 @@ public ShowEngineResponse withPayment(String payment) { } /** - * 微服务引擎专享版计费方式 + * 微服务引擎计费方式 * @return payment */ public String getPayment() { @@ -671,7 +677,7 @@ public ShowEngineResponse withVersion(String version) { } /** - * 微服务引擎专享版当前版本 + * 微服务引擎当前版本 * @return version */ public String getVersion() { @@ -688,7 +694,7 @@ public ShowEngineResponse withLatestVersion(String latestVersion) { } /** - * 微服务引擎专享版最新版本 + * 微服务引擎最新版本 * @return latestVersion */ public String getLatestVersion() { @@ -705,7 +711,7 @@ public ShowEngineResponse withStatus(StatusEnum status) { } /** - * 微服务引擎专享版状态 + * 微服务引擎状态 * @return status */ public StatusEnum getStatus() { @@ -739,7 +745,7 @@ public ShowEngineResponse withCreateUser(String createUser) { } /** - * 微服务引擎专享版创建者 + * 微服务引擎创建者 * @return createUser */ public String getCreateUser() { @@ -756,7 +762,7 @@ public ShowEngineResponse withCreateTime(Long createTime) { } /** - * 微服务引擎专享版创建时间 + * 微服务引擎创建时间 * @return createTime */ public Long getCreateTime() { @@ -851,7 +857,7 @@ public ShowEngineResponse withLatestJobId(Integer latestJobId) { } /** - * 微服务引擎专享版最近的任务ID + * 微服务引擎最近的任务ID * @return latestJobId */ public Integer getLatestJobId() { @@ -868,7 +874,7 @@ public ShowEngineResponse withEnterpriseProjectId(String enterpriseProjectId) { } /** - * 微服务引擎专享版所属企业项目ID + * 微服务引擎所属企业项目ID * @return enterpriseProjectId */ public String getEnterpriseProjectId() { @@ -885,7 +891,7 @@ public ShowEngineResponse withEnterpriseProjectName(String enterpriseProjectName } /** - * 微服务引擎专享版所属企业项目名称 + * 微服务引擎所属企业项目名称 * @return enterpriseProjectName */ public String getEnterpriseProjectName() { @@ -919,7 +925,7 @@ public ShowEngineResponse withEngineAdditionalActions( } /** - * 微服务引擎专享版允许的附加操作 + * 微服务引擎允许的附加操作 * @return engineAdditionalActions */ public List getEngineAdditionalActions() { @@ -936,7 +942,7 @@ public ShowEngineResponse withSpecType(SpecTypeEnum specType) { } /** - * 微服务引擎专享版应用部署类型 + * 微服务引擎应用部署类型 * @return specType */ public SpecTypeEnum getSpecType() { @@ -953,7 +959,7 @@ public ShowEngineResponse withType(TypeEnum type) { } /** - * 微服务引擎类型,CSE表示专享版,CSE_Share表示专业版 + * 微服务引擎类型,CSE表示专享版,NACOS表示注册配置中心,MICROGATEWAY表示网关 * @return type */ public TypeEnum getType() { @@ -970,7 +976,7 @@ public ShowEngineResponse withProjectId(String projectId) { } /** - * 微服务引擎专享版所属项目ID + * 微服务引擎所属项目ID * @return projectId */ public String getProjectId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/Spec.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/Spec.java index ddca624bc7..e4476f8246 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/Spec.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/Spec.java @@ -12,7 +12,7 @@ import java.util.function.Consumer; /** - * 微服务引擎专享版的CCE规格 + * 微服务引擎的CCE规格 */ public class Spec { @@ -27,32 +27,32 @@ public class Spec { private String engineId; /** - * 微服务引擎专享版CCE集群部署类型 + * 微服务引擎的集群部署类型 */ public static final class SpecTypeEnum { /** - * Enum CCE for value: "CCE" + * Enum CSE2 for value: "CSE2" */ - public static final SpecTypeEnum CCE = new SpecTypeEnum("CCE"); + public static final SpecTypeEnum CSE2 = new SpecTypeEnum("CSE2"); /** - * Enum CSE for value: "CSE" + * Enum NACOS2 for value: "Nacos2" */ - public static final SpecTypeEnum CSE = new SpecTypeEnum("CSE"); + public static final SpecTypeEnum NACOS2 = new SpecTypeEnum("Nacos2"); /** - * Enum SPRINGCLOUD for value: "SpringCloud" + * Enum MICROGATEWAY for value: "MicroGateway" */ - public static final SpecTypeEnum SPRINGCLOUD = new SpecTypeEnum("SpringCloud"); + public static final SpecTypeEnum MICROGATEWAY = new SpecTypeEnum("MicroGateway"); private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { Map map = new HashMap<>(); - map.put("CCE", CCE); - map.put("CSE", CSE); - map.put("SpringCloud", SPRINGCLOUD); + map.put("CSE2", CSE2); + map.put("Nacos2", NACOS2); + map.put("MicroGateway", MICROGATEWAY); return Collections.unmodifiableMap(map); } @@ -148,7 +148,7 @@ public Spec withId(Long id) { } /** - * 微服务引擎专享版CCE规格ID + * 微服务引擎CCE规格ID * @return id */ public Long getId() { @@ -165,7 +165,7 @@ public Spec withEngineId(String engineId) { } /** - * 微服务引擎专享版ID + * 微服务引擎ID * @return engineId */ public String getEngineId() { @@ -182,7 +182,7 @@ public Spec withSpecType(SpecTypeEnum specType) { } /** - * 微服务引擎专享版CCE集群部署类型 + * 微服务引擎的集群部署类型 * @return specType */ public SpecTypeEnum getSpecType() { @@ -199,7 +199,7 @@ public Spec withCluster(String cluster) { } /** - * 微服务引擎专享版CCE集群信息,目前为null + * 微服务引擎的CCE集群信息,目前为null * @return cluster */ public String getCluster() { @@ -216,7 +216,7 @@ public Spec withClusterId(String clusterId) { } /** - * 微服务引擎专享版CCE集群ID + * 微服务引擎的CCE集群ID * @return clusterId */ public String getClusterId() { @@ -259,7 +259,7 @@ public Spec withFlavor(String flavor) { } /** - * 微服务引擎专享版CCE集群规格 + * 微服务引擎的CCE集群规格 * @return flavor */ public String getFlavor() { @@ -276,7 +276,7 @@ public Spec withRegion(String region) { } /** - * 微服务引擎专享版CCE集群所在region + * 微服务引擎的CCE集群所在region * @return region */ public String getRegion() { @@ -293,7 +293,7 @@ public Spec withVersion(String version) { } /** - * 微服务引擎专享版CCE集群版本 + * 微服务引擎的CCE集群版本 * @return version */ public String getVersion() { @@ -310,7 +310,7 @@ public Spec withExtendParam(String extendParam) { } /** - * 微服务引擎专享版CCE集群附加参数 + * 微服务引擎的CCE集群附加参数 * @return extendParam */ public String getExtendParam() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/SpecClusterNode.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/SpecClusterNode.java index 7002b6b9cb..5362900809 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/SpecClusterNode.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/SpecClusterNode.java @@ -9,7 +9,7 @@ import java.util.function.Consumer; /** - * 微服务引擎专享版CCE节点列表 + * 微服务引擎的CCE节点列表 */ public class SpecClusterNode { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateGovernancePolicyRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateGovernancePolicyRequest.java index 280dff6e0b..fc743c90e0 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateGovernancePolicyRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateGovernancePolicyRequest.java @@ -47,7 +47,7 @@ public UpdateGovernancePolicyRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateNacosNamespacesRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateNacosNamespacesRequest.java index 1da2247ed7..4f33ba6db1 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateNacosNamespacesRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpdateNacosNamespacesRequest.java @@ -41,7 +41,7 @@ public UpdateNacosNamespacesRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版的实例ID + * 微服务引擎的实例ID * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineConfigResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineConfigResponse.java index 6aed59f5c0..e704cc0818 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineConfigResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineConfigResponse.java @@ -32,7 +32,7 @@ public UpgradeEngineConfigResponse withId(String id) { } /** - * 创建的微服务引擎专享版ID + * 创建的微服务引擎ID * @return id */ public String getId() { @@ -49,7 +49,7 @@ public UpgradeEngineConfigResponse withName(String name) { } /** - * 创建的微服务引擎专享版名称 + * 创建的微服务引擎名称 * @return name */ public String getName() { @@ -66,7 +66,7 @@ public UpgradeEngineConfigResponse withJobId(Integer jobId) { } /** - * 微服务引擎专享版执行的任务ID + * 微服务引擎执行的任务ID * @return jobId */ public Integer getJobId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineResponse.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineResponse.java index 7586f08cd9..6ceffb03fa 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineResponse.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UpgradeEngineResponse.java @@ -32,7 +32,7 @@ public UpgradeEngineResponse withId(String id) { } /** - * 创建的微服务引擎专享版ID + * 创建的微服务引擎ID * @return id */ public String getId() { @@ -49,7 +49,7 @@ public UpgradeEngineResponse withName(String name) { } /** - * 创建的微服务引擎专享版名称 + * 创建的微服务引擎名称 * @return name */ public String getName() { @@ -66,7 +66,7 @@ public UpgradeEngineResponse withJobId(Integer jobId) { } /** - * 微服务引擎专享版执行的任务ID + * 微服务引擎执行的任务ID * @return jobId */ public Integer getJobId() { diff --git a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UploadKieRequest.java b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UploadKieRequest.java index bf6650f139..88508bc1d2 100644 --- a/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UploadKieRequest.java +++ b/services/cse/src/main/java/com/huaweicloud/sdk/cse/v1/model/UploadKieRequest.java @@ -142,7 +142,7 @@ public UploadKieRequest withXEngineId(String xEngineId) { } /** - * 微服务引擎专享版ID。 + * 微服务引擎ID。 * @return xEngineId */ @JsonInclude(JsonInclude.Include.NON_NULL) diff --git a/services/csms/pom.xml b/services/csms/pom.xml index 11f8ca7bbf..485f330d90 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-csms - 3.1.97 + 3.1.98 Huawei Cloud SDK for CSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/css/pom.xml b/services/css/pom.xml index ca9cf34254..d70776bc69 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-css - 3.1.97 + 3.1.98 Huawei Cloud SDK for CSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/cts/pom.xml b/services/cts/pom.xml index bbb2fa5d2a..9c6ea74987 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-cts - 3.1.97 + 3.1.98 Huawei Cloud SDK for CTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/das/pom.xml b/services/das/pom.xml index e20d35fb07..957303868e 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-das - 3.1.97 + 3.1.98 Huawei Cloud SDK for DAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dataartsinsight/pom.xml b/services/dataartsinsight/pom.xml index 79f3984b72..1934e71db0 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsinsight - 3.1.97 + 3.1.98 Huawei Cloud SDK for DATAARTSINSIGHT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dataartsstudio/pom.xml b/services/dataartsstudio/pom.xml index b6ce55f3fb..0e2c532a70 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dataartsstudio - 3.1.97 + 3.1.98 Huawei Cloud SDK for DATAARTSSTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java index 4e1c545b5c..05f974939b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioAsyncClient.java @@ -269,6 +269,12 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListConsistencyTaskResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataArtsStudioInstancesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataArtsStudioInstancesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesDetailRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesDetailResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesOverviewRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesOverviewResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceMarketApisRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceMarketApisResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataTablesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataTablesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDatabasesRequest; @@ -465,6 +471,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataDetailResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataProfileRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataProfileResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataServiceInstanceRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataServiceInstanceResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataSetsRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataSetsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataconnectionRequest; @@ -1362,7 +1370,7 @@ public AsyncInvoker confirmMessag /** * 关系建模统计信息 * - * 关系建模统计信息。 + * 关系建模页面,外层的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1376,7 +1384,7 @@ public CompletableFuture countAllModelsAsync(CountAllMod /** * 关系建模统计信息 * - * 关系建模统计信息。 + * 关系建模页面,外层的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1420,7 +1428,7 @@ public AsyncInvoker countOverview /** * 标准覆盖率统计信息 * - * 标准覆盖率统计信息。 + * 查看某个数据标准在所有模型字段中的覆盖率,即使用该标准的字段占总字段的百分比。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1434,7 +1442,7 @@ public CompletableFuture countStandardsAsync(CountStanda /** * 标准覆盖率统计信息 * - * 标准覆盖率统计信息。 + * 查看某个数据标准在所有模型字段中的覆盖率,即使用该标准的字段占总字段的百分比。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1449,7 +1457,7 @@ public AsyncInvoker countStandard /** * 模型统计信息 * - * 模型统计信息。 + * 单个模型中的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1463,7 +1471,7 @@ public CompletableFuture countTableModelsAsync(CountTa /** * 模型统计信息 * - * 模型统计信息。 + * 单个模型中的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1653,7 +1661,7 @@ public AsyncInvoker createC /** * 新建汇总表 * - * 新建汇总表。 + * 根据入参,手动创建汇总表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1668,7 +1676,7 @@ public CompletableFuture createDesign /** * 新建汇总表 * - * 新建汇总表。 + * 根据入参,手动创建汇总表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1713,7 +1721,7 @@ public AsyncInvoker createDirectoryAsync(CreateDir /** * 创建目录 * - * 创建目录。 + * 创建目录(数据标准、码表)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2158,7 +2166,7 @@ public AsyncInvoker createStandar /** * 创建数据标准模板 * - * 创建数据标准模板。 + * 创建当前工作空间下的数据标准模板自定义项。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2173,7 +2181,7 @@ public CompletableFuture createStandardTemplateA /** * 创建数据标准模板 * - * 创建数据标准模板。 + * 创建当前工作空间下的数据标准模板自定义项。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2652,7 +2660,7 @@ public AsyncInvoker d /** * 删除汇总表 * - * 批量删除汇总表。 + * 批量删除汇总表,只能删除状态为草稿、已线下、已驳回的表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2667,7 +2675,7 @@ public CompletableFuture deleteDesign /** * 删除汇总表 * - * 批量删除汇总表。 + * 批量删除汇总表,只能删除状态为草稿、已线下、已驳回的表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2742,7 +2750,7 @@ public AsyncInvoker deleteDirectoryAsync(DeleteDir /** * 删除目录 * - * 删除目录。 + * 删除目录(数据标准、码表)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3305,7 +3313,7 @@ public AsyncInvoker expor /** * 获取excel导出结果 * - * 根据请求导出接口(/export-model)时返回的uuid,获取excel导出结果。 + * 根据请求导出业务数据(/export-model)时返回的uuid,获取excel导出结果。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3319,7 +3327,7 @@ public CompletableFuture exportDesignResultAsync(Exp /** * 获取excel导出结果 * - * 根据请求导出接口(/export-model)时返回的uuid,获取excel导出结果。 + * 根据请求导出业务数据(/export-model)时返回的uuid,获取excel导出结果。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3421,7 +3429,7 @@ public AsyncInvoker importModelsAsync /** * 查询导入结果 * - * 查询导入excel的处理结果。 + * 查询导入excel的处理结果(其中参数uuid获取为:/design/models/action或/design/catalogs/action接口返回结果)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3435,7 +3443,7 @@ public CompletableFuture importResultAsync(ImportResultReq /** * 查询导入结果 * - * 查询导入excel的处理结果。 + * 查询导入excel的处理结果(其中参数uuid获取为:/design/models/action或/design/catalogs/action接口返回结果)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3480,7 +3488,7 @@ public AsyncInvoker listAggregationLogi /** * 查找汇总表 * - * 通过中英文名称、创建者、审核人、状态、修改时间分页查找汇总表信息。 + * 通过中英文名称、创建者、审核人、状态、修改时间分页查找汇总表信息,中英文名称支持模糊查询。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3881,9 +3889,9 @@ public AsyncInvoker listBizMetricOwnersAsync(L } /** - * 查看指标指标责任人信息 + * 查看指标责任人信息 * - * 查看指标指标责任人信息。 + * 查看指标责任人信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -4199,6 +4207,96 @@ public AsyncInvoker(request, DataArtsStudioMeta.listDataArtsStudioInstances, hcClient); } + /** + * 查询集群详情信息列表 + * + * 查询集群详情信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesDetailRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDataServiceInstancesDetailAsync( + ListDataServiceInstancesDetailRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.listDataServiceInstancesDetail); + } + + /** + * 查询集群详情信息列表 + * + * 查询集群详情信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesDetailRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDataServiceInstancesDetailAsyncInvoker( + ListDataServiceInstancesDetailRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.listDataServiceInstancesDetail, hcClient); + } + + /** + * 查询集群概览信息列表 + * + * 查询集群概览信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesOverviewRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDataServiceInstancesOverviewAsync( + ListDataServiceInstancesOverviewRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.listDataServiceInstancesOverview); + } + + /** + * 查询集群概览信息列表 + * + * 查询集群概览信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesOverviewRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDataServiceInstancesOverviewAsyncInvoker( + ListDataServiceInstancesOverviewRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.listDataServiceInstancesOverview, hcClient); + } + + /** + * 查询服务目录API列表 + * + * 查询服务目录API列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceMarketApisRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDataServiceMarketApisAsync( + ListDataServiceMarketApisRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.listDataServiceMarketApis); + } + + /** + * 查询服务目录API列表 + * + * 查询服务目录API列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceMarketApisRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDataServiceMarketApisAsyncInvoker( + ListDataServiceMarketApisRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.listDataServiceMarketApis, hcClient); + } + /** * 获取数据源中的表 * @@ -4407,7 +4505,7 @@ public AsyncInvoker listDimension /** * 获取所有目录 * - * 获取所有目录。 + * 获取所有目录(数据标准、码表)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -4421,7 +4519,7 @@ public CompletableFuture listDirectoriesAsync(ListDirec /** * 获取所有目录 * - * 获取所有目录。 + * 获取所有目录(数据标准、码表)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -4845,9 +4943,9 @@ public AsyncInvoker l } /** - * 关系 + * 查询关系 * - * 通过名称、等分页查找关系信息。 + * 通过关系名称(支持模糊查询)、创建人、开始时间、结束时间等分页查找关系信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -4859,9 +4957,9 @@ public CompletableFuture listRelationsAsync(ListRelations } /** - * 关系 + * 查询关系 * - * 通过名称、等分页查找关系信息。 + * 通过关系名称(支持模糊查询)、创建人、开始时间、结束时间等分页查找关系信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5441,7 +5539,7 @@ public AsyncInvoker listW /** * 获取模型 * - * 获取模型。 + * 获取当前空间下的全部模型信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5455,7 +5553,7 @@ public CompletableFuture listWorkspacesAsync(ListWorkspa /** * 获取模型 * - * 获取模型。 + * 获取当前空间下的全部模型信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5558,7 +5656,7 @@ public AsyncInvoker migrateCatalo /** * 修改自定义项 * - * 修改自定义项。 + * 修改自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5573,7 +5671,7 @@ public CompletableFuture modifyCustomizedFieldsA /** * 修改自定义项 * - * 修改自定义项。 + * 修改自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5823,7 +5921,7 @@ public AsyncInvoker searchAppro /** * 查找原子指标 * - * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息。 + * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息看,中英文名称支持模糊查询。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5837,7 +5935,7 @@ public CompletableFuture searchAtomicIndexesAsync(S /** * 查找原子指标 * - * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息。 + * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息看,中英文名称支持模糊查询。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5998,7 +6096,7 @@ public AsyncInvoker searchCod /** * 查询自定义项 * - * 查询自定义项。 + * 查询自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6013,7 +6111,7 @@ public CompletableFuture searchCustomizedFieldsA /** * 查询自定义项 * - * 查询自定义项。 + * 查询自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6146,7 +6244,7 @@ public AsyncInvoker searchIdByPat /** * 查找主题列表 * - * 通过名称、创建者、责任人、状态、修改时间分页查找主题。 + * 通过名称(支持模糊查询)、创建者、责任人、状态、修改时间分页查找主题。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6160,7 +6258,7 @@ public CompletableFuture searchSubjectAsync(SearchSubject /** * 查找主题列表 * - * 通过名称、创建者、责任人、状态、修改时间分页查找主题。 + * 通过名称(支持模糊查询)、创建者、责任人、状态、修改时间分页查找主题。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6552,7 +6650,7 @@ public AsyncInvoker showAppsO /** * 查看原子指标详情 * - * 通过ID获取指标详情信息。 + * 通过ID获取原子指标详情信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6566,7 +6664,7 @@ public CompletableFuture showAtomicIndexByIdAsync(S /** * 查看原子指标详情 * - * 通过ID获取指标详情信息。 + * 通过ID获取原子指标详情信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6931,6 +7029,36 @@ public AsyncInvoker showDataPro return new AsyncInvoker<>(request, DataArtsStudioMeta.showDataProfile, hcClient); } + /** + * 查询集群详情信息 + * + * 查询集群详情信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDataServiceInstanceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showDataServiceInstanceAsync( + ShowDataServiceInstanceRequest request) { + return hcClient.asyncInvokeHttp(request, DataArtsStudioMeta.showDataServiceInstance); + } + + /** + * 查询集群详情信息 + * + * 查询集群详情信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDataServiceInstanceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showDataServiceInstanceAsyncInvoker( + ShowDataServiceInstanceRequest request) { + return new AsyncInvoker<>(request, DataArtsStudioMeta.showDataServiceInstance, hcClient); + } + /** * 资产搜索 * @@ -7874,7 +8002,7 @@ public AsyncInvoker showStand /** * 查询数据标准模板 * - * 查询数据标准模板。 + * 查询当前工作空间下的数据标准模板。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -7889,7 +8017,7 @@ public CompletableFuture showStandardTemplateAsync /** * 查询数据标准模板 * - * 查询数据标准模板。 + * 查询当前工作空间下的数据标准模板。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -8461,7 +8589,7 @@ public AsyncInvoker updateDirectoryAsync(UpdateDir /** * 修改目录 * - * 修改目录。 + * 修改目录(数据标准、码表)。 * * Please refer to HUAWEI cloud API Explorer for details. * diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java index 0c5e3dcc5e..a30cd67889 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/DataArtsStudioClient.java @@ -269,6 +269,12 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ListConsistencyTaskResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataArtsStudioInstancesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataArtsStudioInstancesResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesDetailRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesDetailResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesOverviewRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceInstancesOverviewResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceMarketApisRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataServiceMarketApisResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataTablesRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDataTablesResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ListDatabasesRequest; @@ -465,6 +471,8 @@ import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataDetailResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataProfileRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataProfileResponse; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataServiceInstanceRequest; +import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataServiceInstanceResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataSetsRequest; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataSetsResponse; import com.huaweicloud.sdk.dataartsstudio.v1.model.ShowDataconnectionRequest; @@ -1352,7 +1360,7 @@ public SyncInvoker confirmMessage /** * 关系建模统计信息 * - * 关系建模统计信息。 + * 关系建模页面,外层的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1366,7 +1374,7 @@ public CountAllModelsResponse countAllModels(CountAllModelsRequest request) { /** * 关系建模统计信息 * - * 关系建模统计信息。 + * 关系建模页面,外层的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1410,7 +1418,7 @@ public SyncInvoker countOverviews /** * 标准覆盖率统计信息 * - * 标准覆盖率统计信息。 + * 查看某个数据标准在所有模型字段中的覆盖率,即使用该标准的字段占总字段的百分比。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1424,7 +1432,7 @@ public CountStandardsResponse countStandards(CountStandardsRequest request) { /** * 标准覆盖率统计信息 * - * 标准覆盖率统计信息。 + * 查看某个数据标准在所有模型字段中的覆盖率,即使用该标准的字段占总字段的百分比。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1439,7 +1447,7 @@ public SyncInvoker countStandards /** * 模型统计信息 * - * 模型统计信息。 + * 单个模型中的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1453,7 +1461,7 @@ public CountTableModelsResponse countTableModels(CountTableModelsRequest request /** * 模型统计信息 * - * 模型统计信息。 + * 单个模型中的统计信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1642,7 +1650,7 @@ public SyncInvoker createCo /** * 新建汇总表 * - * 新建汇总表。 + * 根据入参,手动创建汇总表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1657,7 +1665,7 @@ public CreateDesignAggregationLogicTableResponse createDesignAggregationLogicTab /** * 新建汇总表 * - * 新建汇总表。 + * 根据入参,手动创建汇总表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -1701,7 +1709,7 @@ public SyncInvoker createStandard /** * 创建数据标准模板 * - * 创建数据标准模板。 + * 创建当前工作空间下的数据标准模板自定义项。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2154,7 +2162,7 @@ public CreateStandardTemplateResponse createStandardTemplate(CreateStandardTempl /** * 创建数据标准模板 * - * 创建数据标准模板。 + * 创建当前工作空间下的数据标准模板自定义项。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2630,7 +2638,7 @@ public SyncInvoker de /** * 删除汇总表 * - * 批量删除汇总表。 + * 批量删除汇总表,只能删除状态为草稿、已线下、已驳回的表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2645,7 +2653,7 @@ public DeleteDesignAggregationLogicTableResponse deleteDesignAggregationLogicTab /** * 删除汇总表 * - * 批量删除汇总表。 + * 批量删除汇总表,只能删除状态为草稿、已线下、已驳回的表。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -2718,7 +2726,7 @@ public SyncInvoker export /** * 获取excel导出结果 * - * 根据请求导出接口(/export-model)时返回的uuid,获取excel导出结果。 + * 根据请求导出业务数据(/export-model)时返回的uuid,获取excel导出结果。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3286,7 +3294,7 @@ public ExportDesignResultResponse exportDesignResult(ExportDesignResultRequest r /** * 获取excel导出结果 * - * 根据请求导出接口(/export-model)时返回的uuid,获取excel导出结果。 + * 根据请求导出业务数据(/export-model)时返回的uuid,获取excel导出结果。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3386,7 +3394,7 @@ public SyncInvoker importModelsInvoke /** * 查询导入结果 * - * 查询导入excel的处理结果。 + * 查询导入excel的处理结果(其中参数uuid获取为:/design/models/action或/design/catalogs/action接口返回结果)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3400,7 +3408,7 @@ public ImportResultResponse importResult(ImportResultRequest request) { /** * 查询导入结果 * - * 查询导入excel的处理结果。 + * 查询导入excel的处理结果(其中参数uuid获取为:/design/models/action或/design/catalogs/action接口返回结果)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3443,7 +3451,7 @@ public SyncInvoker(request, DataArtsStudioMeta.listDataArtsStudioInstances, hcClient); } + /** + * 查询集群详情信息列表 + * + * 查询集群详情信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesDetailRequest 请求对象 + * @return ListDataServiceInstancesDetailResponse + */ + public ListDataServiceInstancesDetailResponse listDataServiceInstancesDetail( + ListDataServiceInstancesDetailRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.listDataServiceInstancesDetail); + } + + /** + * 查询集群详情信息列表 + * + * 查询集群详情信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesDetailRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDataServiceInstancesDetailInvoker( + ListDataServiceInstancesDetailRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.listDataServiceInstancesDetail, hcClient); + } + + /** + * 查询集群概览信息列表 + * + * 查询集群概览信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesOverviewRequest 请求对象 + * @return ListDataServiceInstancesOverviewResponse + */ + public ListDataServiceInstancesOverviewResponse listDataServiceInstancesOverview( + ListDataServiceInstancesOverviewRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.listDataServiceInstancesOverview); + } + + /** + * 查询集群概览信息列表 + * + * 查询集群概览信息列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceInstancesOverviewRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDataServiceInstancesOverviewInvoker( + ListDataServiceInstancesOverviewRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.listDataServiceInstancesOverview, hcClient); + } + + /** + * 查询服务目录API列表 + * + * 查询服务目录API列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceMarketApisRequest 请求对象 + * @return ListDataServiceMarketApisResponse + */ + public ListDataServiceMarketApisResponse listDataServiceMarketApis(ListDataServiceMarketApisRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.listDataServiceMarketApis); + } + + /** + * 查询服务目录API列表 + * + * 查询服务目录API列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDataServiceMarketApisRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDataServiceMarketApisInvoker( + ListDataServiceMarketApisRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.listDataServiceMarketApis, hcClient); + } + /** * 获取数据源中的表 * @@ -4359,7 +4456,7 @@ public SyncInvoker listDimensions /** * 获取所有目录 * - * 获取所有目录。 + * 获取所有目录(数据标准、码表)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -4373,7 +4470,7 @@ public ListDirectoriesResponse listDirectories(ListDirectoriesRequest request) { /** * 获取所有目录 * - * 获取所有目录。 + * 获取所有目录(数据标准、码表)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -4789,9 +4886,9 @@ public SyncInvoker li } /** - * 关系 + * 查询关系 * - * 通过名称、等分页查找关系信息。 + * 通过关系名称(支持模糊查询)、创建人、开始时间、结束时间等分页查找关系信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -4803,9 +4900,9 @@ public ListRelationsResponse listRelations(ListRelationsRequest request) { } /** - * 关系 + * 查询关系 * - * 通过名称、等分页查找关系信息。 + * 通过关系名称(支持模糊查询)、创建人、开始时间、结束时间等分页查找关系信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5377,7 +5474,7 @@ public SyncInvoker listWo /** * 获取模型 * - * 获取模型。 + * 获取当前空间下的全部模型信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5391,7 +5488,7 @@ public ListWorkspacesResponse listWorkspaces(ListWorkspacesRequest request) { /** * 获取模型 * - * 获取模型。 + * 获取当前空间下的全部模型信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5494,7 +5591,7 @@ public SyncInvoker migrateCatalog /** * 修改自定义项 * - * 修改自定义项。 + * 修改自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5508,7 +5605,7 @@ public ModifyCustomizedFieldsResponse modifyCustomizedFields(ModifyCustomizedFie /** * 修改自定义项 * - * 修改自定义项。 + * 修改自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5756,7 +5853,7 @@ public SyncInvoker searchApprov /** * 查找原子指标 * - * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息。 + * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息看,中英文名称支持模糊查询。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5770,7 +5867,7 @@ public SearchAtomicIndexesResponse searchAtomicIndexes(SearchAtomicIndexesReques /** * 查找原子指标 * - * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息。 + * 通过中英文名称、创建者、审核人、状态、修改时间分页查找原子指标信息看,中英文名称支持模糊查询。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5929,7 +6026,7 @@ public SyncInvoker searchCode /** * 查询自定义项 * - * 查询自定义项。 + * 查询自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -5943,7 +6040,7 @@ public SearchCustomizedFieldsResponse searchCustomizedFields(SearchCustomizedFie /** * 查询自定义项 * - * 查询自定义项。 + * 查询自定义项(包括表自定义项、属性自定义项、主题自定义项、业务指标自定义项)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6075,7 +6172,7 @@ public SyncInvoker searchIdByPath /** * 查找主题列表 * - * 通过名称、创建者、责任人、状态、修改时间分页查找主题。 + * 通过名称(支持模糊查询)、创建者、责任人、状态、修改时间分页查找主题。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6089,7 +6186,7 @@ public SearchSubjectResponse searchSubject(SearchSubjectRequest request) { /** * 查找主题列表 * - * 通过名称、创建者、责任人、状态、修改时间分页查找主题。 + * 通过名称(支持模糊查询)、创建者、责任人、状态、修改时间分页查找主题。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6480,7 +6577,7 @@ public SyncInvoker showAppsOv /** * 查看原子指标详情 * - * 通过ID获取指标详情信息。 + * 通过ID获取原子指标详情信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6494,7 +6591,7 @@ public ShowAtomicIndexByIdResponse showAtomicIndexById(ShowAtomicIndexByIdReques /** * 查看原子指标详情 * - * 通过ID获取指标详情信息。 + * 通过ID获取原子指标详情信息。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -6854,6 +6951,35 @@ public SyncInvoker showDataProf return new SyncInvoker<>(request, DataArtsStudioMeta.showDataProfile, hcClient); } + /** + * 查询集群详情信息 + * + * 查询集群详情信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDataServiceInstanceRequest 请求对象 + * @return ShowDataServiceInstanceResponse + */ + public ShowDataServiceInstanceResponse showDataServiceInstance(ShowDataServiceInstanceRequest request) { + return hcClient.syncInvokeHttp(request, DataArtsStudioMeta.showDataServiceInstance); + } + + /** + * 查询集群详情信息 + * + * 查询集群详情信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowDataServiceInstanceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showDataServiceInstanceInvoker( + ShowDataServiceInstanceRequest request) { + return new SyncInvoker<>(request, DataArtsStudioMeta.showDataServiceInstance, hcClient); + } + /** * 资产搜索 * @@ -7784,7 +7910,7 @@ public SyncInvoker showStanda /** * 查询数据标准模板 * - * 查询数据标准模板。 + * 查询当前工作空间下的数据标准模板。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -7798,7 +7924,7 @@ public ShowStandardTemplateResponse showStandardTemplate(ShowStandardTemplateReq /** * 查询数据标准模板 * - * 查询数据标准模板。 + * 查询当前工作空间下的数据标准模板。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -8361,7 +8487,7 @@ public SyncInvoker .withContentType("application/json"); // requests - builder.withRequestField("model_id", + builder.withRequestField("model_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(CountTableModelsRequest::getModelId, CountTableModelsRequest::setModelId)); builder.withRequestField("workspace", LocationType.Header, @@ -3116,7 +3125,7 @@ private static HttpRequestDef g .withContentType("application/json"); // requests - builder.>withRequestField("ids", + builder.>withRequestField("ids", LocationType.Query, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(List.class), @@ -3542,7 +3551,7 @@ private static HttpRequestDef .withContentType("application/json"); // requests - builder.>withRequestField("ids", + builder.>withRequestField("ids", LocationType.Query, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(List.class), @@ -3890,6 +3899,11 @@ private static HttpRequestDef genForI FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ImportModelsRequest::getXProjectId, ImportModelsRequest::setXProjectId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ImportModelsRequest::getXLanguage, ImportModelsRequest::setXLanguage)); builder.withRequestField("body", LocationType.Body, FieldExistence.NON_NULL_NON_EMPTY, @@ -4035,10 +4049,10 @@ private static HttpRequestDef f.withMarshaller(ListAggregationLogicTablesRequest::getSyncKey, ListAggregationLogicTablesRequest::setSyncKey)); - builder.withRequestField("l3_id", + builder.withRequestField("l3_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListAggregationLogicTablesRequest::getL3Id, ListAggregationLogicTablesRequest::setL3Id)); builder.withRequestField("begin_time", @@ -4253,7 +4267,7 @@ private static HttpRequestDef genFo FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), f -> f.withMarshaller(ListAllTablesRequest::getOffset, ListAllTablesRequest::setOffset)); - builder.>withRequestField("biz_catalog_id_list", + builder.>withRequestField("biz_catalog_id_list", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), @@ -5116,16 +5130,16 @@ private static HttpRequestDef f.withMarshaller(ListCompoundMetricsRequest::getDimensionGroup, ListCompoundMetricsRequest::setDimensionGroup)); - builder.withRequestField("atomic_index_id", + builder.withRequestField("atomic_index_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListCompoundMetricsRequest::getAtomicIndexId, ListCompoundMetricsRequest::setAtomicIndexId)); - builder.withRequestField("l3_id", + builder.withRequestField("l3_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListCompoundMetricsRequest::getL3Id, ListCompoundMetricsRequest::setL3Id)); builder.withRequestField("begin_time", LocationType.Query, @@ -5330,6 +5344,159 @@ private static HttpRequestDef listDataServiceInstancesDetail = + genForListDataServiceInstancesDetail(); + + private static HttpRequestDef genForListDataServiceInstancesDetail() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListDataServiceInstancesDetailRequest.class, + ListDataServiceInstancesDetailResponse.class) + .withName("ListDataServiceInstancesDetail") + .withUri("/v1/{project_id}/service/instances") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDataServiceInstancesDetailRequest::getLimit, + ListDataServiceInstancesDetailRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDataServiceInstancesDetailRequest::getOffset, + ListDataServiceInstancesDetailRequest::setOffset)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDataServiceInstancesDetailRequest::getName, + ListDataServiceInstancesDetailRequest::setName)); + builder.withRequestField("create_user", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDataServiceInstancesDetailRequest::getCreateUser, + ListDataServiceInstancesDetailRequest::setCreateUser)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDataServiceInstancesDetailRequest::getWorkspace, + ListDataServiceInstancesDetailRequest::setWorkspace)); + builder.withRequestField("Dlm-Type", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListDataServiceInstancesDetailRequest.DlmTypeEnum.class), + f -> f.withMarshaller(ListDataServiceInstancesDetailRequest::getDlmType, + ListDataServiceInstancesDetailRequest::setDlmType)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listDataServiceInstancesOverview = + genForListDataServiceInstancesOverview(); + + private static HttpRequestDef genForListDataServiceInstancesOverview() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.GET, + ListDataServiceInstancesOverviewRequest.class, + ListDataServiceInstancesOverviewResponse.class) + .withName("ListDataServiceInstancesOverview") + .withUri("/v1/{project_id}/service/instances/overview") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDataServiceInstancesOverviewRequest::getLimit, + ListDataServiceInstancesOverviewRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListDataServiceInstancesOverviewRequest::getOffset, + ListDataServiceInstancesOverviewRequest::setOffset)); + builder.withRequestField("name", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDataServiceInstancesOverviewRequest::getName, + ListDataServiceInstancesOverviewRequest::setName)); + builder.withRequestField("create_user", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDataServiceInstancesOverviewRequest::getCreateUser, + ListDataServiceInstancesOverviewRequest::setCreateUser)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDataServiceInstancesOverviewRequest::getWorkspace, + ListDataServiceInstancesOverviewRequest::setWorkspace)); + builder.withRequestField("Dlm-Type", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListDataServiceInstancesOverviewRequest.DlmTypeEnum.class), + f -> f.withMarshaller(ListDataServiceInstancesOverviewRequest::getDlmType, + ListDataServiceInstancesOverviewRequest::setDlmType)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listDataServiceMarketApis = + genForListDataServiceMarketApis(); + + private static HttpRequestDef genForListDataServiceMarketApis() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + ListDataServiceMarketApisRequest.class, + ListDataServiceMarketApisResponse.class) + .withName("ListDataServiceMarketApis") + .withUri("/v1/{project_id}/service/market") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDataServiceMarketApisRequest::getWorkspace, + ListDataServiceMarketApisRequest::setWorkspace)); + builder.withRequestField("Dlm-Type", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ListDataServiceMarketApisRequest.DlmTypeEnum.class), + f -> f.withMarshaller(ListDataServiceMarketApisRequest::getDlmType, + ListDataServiceMarketApisRequest::setDlmType)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(MallParaDTO.class), + f -> f.withMarshaller(ListDataServiceMarketApisRequest::getBody, + ListDataServiceMarketApisRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listDataTables = genForListDataTables(); @@ -5493,10 +5660,10 @@ private static HttpRequestDef f.withMarshaller(ListDerivativeIndexesRequest::getStatus, ListDerivativeIndexesRequest::setStatus)); - builder.withRequestField("dimension_id", + builder.withRequestField("dimension_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDerivativeIndexesRequest::getDimensionId, ListDerivativeIndexesRequest::setDimensionId)); builder.withRequestField("dimension_group", @@ -5505,10 +5672,10 @@ private static HttpRequestDef f.withMarshaller(ListDerivativeIndexesRequest::getDimensionGroup, ListDerivativeIndexesRequest::setDimensionGroup)); - builder.withRequestField("atomic_index_id", + builder.withRequestField("atomic_index_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDerivativeIndexesRequest::getAtomicIndexId, ListDerivativeIndexesRequest::setAtomicIndexId)); builder.withRequestField("all_metrics", @@ -5522,10 +5689,10 @@ private static HttpRequestDef f.withMarshaller(ListDerivativeIndexesRequest::getDwType, ListDerivativeIndexesRequest::setDwType)); - builder.withRequestField("l3_id", + builder.withRequestField("l3_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDerivativeIndexesRequest::getL3Id, ListDerivativeIndexesRequest::setL3Id)); builder.withRequestField("begin_time", LocationType.Query, @@ -5578,10 +5745,10 @@ private static HttpRequestDefwithRequestField("table_id", + builder.withRequestField("table_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDimensionGroupsRequest::getTableId, ListDimensionGroupsRequest::setTableId)); builder.withRequestField("biz_type", LocationType.Query, @@ -5669,15 +5836,15 @@ private static HttpRequestDef f.withMarshaller(ListDimensionLogicTablesRequest::getSyncKey, ListDimensionLogicTablesRequest::setSyncKey)); - builder.withRequestField("l2_id", + builder.withRequestField("l2_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDimensionLogicTablesRequest::getL2Id, ListDimensionLogicTablesRequest::setL2Id)); - builder.withRequestField("dimension_id", + builder.withRequestField("dimension_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDimensionLogicTablesRequest::getDimensionId, ListDimensionLogicTablesRequest::setDimensionId)); builder.withRequestField("begin_time", @@ -5766,12 +5933,12 @@ private static HttpRequestDef gen FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(ListDimensionsRequest.StatusEnum.class), f -> f.withMarshaller(ListDimensionsRequest::getStatus, ListDimensionsRequest::setStatus)); - builder.withRequestField("l2_id", + builder.withRequestField("l2_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDimensionsRequest::getL2Id, ListDimensionsRequest::setL2Id)); - builder.>withRequestField("derivative_ids", + builder.>withRequestField("derivative_ids", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(List.class), @@ -5786,10 +5953,10 @@ private static HttpRequestDef gen FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDimensionsRequest::getEndTime, ListDimensionsRequest::setEndTime)); - builder.withRequestField("fact_logic_id", + builder.withRequestField("fact_logic_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListDimensionsRequest::getFactLogicId, ListDimensionsRequest::setFactLogicId)); builder.withRequestField("dimension_type", LocationType.Query, @@ -5918,10 +6085,10 @@ private static HttpRequestDef f.withMarshaller(ListFactLogicTablesRequest::getSyncKey, ListFactLogicTablesRequest::setSyncKey)); - builder.withRequestField("l3_id", + builder.withRequestField("l3_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(ListFactLogicTablesRequest::getL3Id, ListFactLogicTablesRequest::setL3Id)); builder.withRequestField("begin_time", LocationType.Query, @@ -8277,10 +8444,10 @@ private static HttpRequestDef g .withContentType("application/json"); // requests - builder.withRequestField("biz_id", + builder.withRequestField("biz_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchApprovalsRequest::getBizId, SearchApprovalsRequest::setBizId)); builder.withRequestField("name", LocationType.Query, @@ -8397,15 +8564,15 @@ private static HttpRequestDef f.withMarshaller(SearchAtomicIndexesRequest::getEndTime, SearchAtomicIndexesRequest::setEndTime)); - builder.withRequestField("l3_id", + builder.withRequestField("l3_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchAtomicIndexesRequest::getL3Id, SearchAtomicIndexesRequest::setL3Id)); - builder.withRequestField("table_id", + builder.withRequestField("table_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchAtomicIndexesRequest::getTableId, SearchAtomicIndexesRequest::setTableId)); builder.withRequestField("limit", LocationType.Query, @@ -8655,10 +8822,10 @@ private static HttpRequestDef FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchCodeTablesRequest::getApprover, SearchCodeTablesRequest::setApprover)); - builder.withRequestField("directory_id", + builder.withRequestField("directory_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchCodeTablesRequest::getDirectoryId, SearchCodeTablesRequest::setDirectoryId)); builder.withRequestField("status", LocationType.Query, @@ -8857,6 +9024,17 @@ private static HttpRequestDef f.withMarshaller(SearchFieldsForRelationRequest::getModelId, SearchFieldsForRelationRequest::setModelId)); + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(SearchFieldsForRelationRequest::getLimit, SearchFieldsForRelationRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(SearchFieldsForRelationRequest::getOffset, + SearchFieldsForRelationRequest::setOffset)); builder.withRequestField("workspace", LocationType.Header, FieldExistence.NON_NULL_NON_EMPTY, @@ -8970,10 +9148,10 @@ private static HttpRequestDef genFo FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), f -> f.withMarshaller(SearchSubjectRequest::getOffset, SearchSubjectRequest::setOffset)); - builder.withRequestField("parent_id", + builder.withRequestField("parent_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchSubjectRequest::getParentId, SearchSubjectRequest::setParentId)); builder.withRequestField("workspace", LocationType.Header, @@ -9043,10 +9221,10 @@ private static HttpRequestDef FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), f -> f.withMarshaller(SearchSubjectNewRequest::getOffset, SearchSubjectNewRequest::setOffset)); - builder.withRequestField("parent_id", + builder.withRequestField("parent_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchSubjectNewRequest::getParentId, SearchSubjectNewRequest::setParentId)); builder.withRequestField("workspace", LocationType.Header, @@ -9086,10 +9264,10 @@ private static HttpRequestDef gen FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchVersionsRequest::getCreateBy, SearchVersionsRequest::setCreateBy)); - builder.withRequestField("biz_id", + builder.withRequestField("biz_id", LocationType.Query, FieldExistence.NULL_IGNORE, - TypeCasts.uncheckedConversion(Long.class), + TypeCasts.uncheckedConversion(String.class), f -> f.withMarshaller(SearchVersionsRequest::getBizId, SearchVersionsRequest::setBizId)); builder.withRequestField("biz_type", LocationType.Query, @@ -10098,6 +10276,42 @@ private static HttpRequestDef g return builder.build(); } + public static final HttpRequestDef showDataServiceInstance = + genForShowDataServiceInstance(); + + private static HttpRequestDef genForShowDataServiceInstance() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowDataServiceInstanceRequest.class, ShowDataServiceInstanceResponse.class) + .withName("ShowDataServiceInstance") + .withUri("/v1/{project_id}/service/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(ShowDataServiceInstanceRequest::getInstanceId, + ShowDataServiceInstanceRequest::setInstanceId)); + builder.withRequestField("workspace", + LocationType.Header, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowDataServiceInstanceRequest::getWorkspace, + ShowDataServiceInstanceRequest::setWorkspace)); + builder.withRequestField("Dlm-Type", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(ShowDataServiceInstanceRequest.DlmTypeEnum.class), + f -> f.withMarshaller(ShowDataServiceInstanceRequest::getDlmType, + ShowDataServiceInstanceRequest::setDlmType)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showDataSets = genForShowDataSets(); private static HttpRequestDef genForShowDataSets() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AddDesignEntityTagsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AddDesignEntityTagsRequest.java index 1b3c122bd3..0698e38da0 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AddDesignEntityTagsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AddDesignEntityTagsRequest.java @@ -80,7 +80,7 @@ public AddDesignEntityTagsRequest withEntityId(String entityId) { } /** - * 表的ID。 + * 表的ID,填写String类型替代Long类型。 * @return entityId */ public String getEntityId() { @@ -97,7 +97,7 @@ public AddDesignEntityTagsRequest withAttrId(String attrId) { } /** - * 属性的ID。 + * 属性的ID,填写String类型替代Long类型。 * @return attrId */ public String getAttrId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AdvancedMallApiDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AdvancedMallApiDTO.java new file mode 100644 index 0000000000..285295f80d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AdvancedMallApiDTO.java @@ -0,0 +1,497 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * 服务目录API + */ +public class AdvancedMallApiDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + /** + * 认证类型。 + */ + public static final class AuthTypeEnum { + + /** + * Enum APP for value: "APP" + */ + public static final AuthTypeEnum APP = new AuthTypeEnum("APP"); + + /** + * Enum IAM for value: "IAM" + */ + public static final AuthTypeEnum IAM = new AuthTypeEnum("IAM"); + + /** + * Enum NONE for value: "NONE" + */ + public static final AuthTypeEnum NONE = new AuthTypeEnum("NONE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("APP", APP); + map.put("IAM", IAM); + map.put("NONE", NONE); + return Collections.unmodifiableMap(map); + } + + private String value; + + AuthTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AuthTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AuthTypeEnum(value)); + } + + public static AuthTypeEnum 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 AuthTypeEnum) { + return this.value.equals(((AuthTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_type") + + private AuthTypeEnum authType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "application_num") + + private Integer applicationNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "call_num") + + private Integer callNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private Long updateTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_owner") + + private Boolean isOwner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_authorized") + + private Boolean isAuthorized; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_update_recently") + + private Boolean isUpdateRecently; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_release_recently") + + private Boolean isReleaseRecently; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_hot_recently") + + private Boolean isHotRecently; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "success_rate") + + private String successRate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "failure_rate") + + private String failureRate; + + public AdvancedMallApiDTO withId(String id) { + this.id = id; + return this; + } + + /** + * API ID。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AdvancedMallApiDTO withName(String name) { + this.name = name; + return this; + } + + /** + * API名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AdvancedMallApiDTO withAuthType(AuthTypeEnum authType) { + this.authType = authType; + return this; + } + + /** + * 认证类型。 + * @return authType + */ + public AuthTypeEnum getAuthType() { + return authType; + } + + public void setAuthType(AuthTypeEnum authType) { + this.authType = authType; + } + + public AdvancedMallApiDTO withApplicationNum(Integer applicationNum) { + this.applicationNum = applicationNum; + return this; + } + + /** + * 授权使用的应用数量。 + * @return applicationNum + */ + public Integer getApplicationNum() { + return applicationNum; + } + + public void setApplicationNum(Integer applicationNum) { + this.applicationNum = applicationNum; + } + + public AdvancedMallApiDTO withCallNum(Integer callNum) { + this.callNum = callNum; + return this; + } + + /** + * 被调用量。 + * @return callNum + */ + public Integer getCallNum() { + return callNum; + } + + public void setCallNum(Integer callNum) { + this.callNum = callNum; + } + + public AdvancedMallApiDTO withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 创建者。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public AdvancedMallApiDTO withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间。 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public AdvancedMallApiDTO withUpdateTime(Long updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间。 + * @return updateTime + */ + public Long getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Long updateTime) { + this.updateTime = updateTime; + } + + public AdvancedMallApiDTO withIsOwner(Boolean isOwner) { + this.isOwner = isOwner; + return this; + } + + /** + * 是否当前空间的API。 + * @return isOwner + */ + public Boolean getIsOwner() { + return isOwner; + } + + public void setIsOwner(Boolean isOwner) { + this.isOwner = isOwner; + } + + public AdvancedMallApiDTO withIsAuthorized(Boolean isAuthorized) { + this.isAuthorized = isAuthorized; + return this; + } + + /** + * 是否已被授权。 + * @return isAuthorized + */ + public Boolean getIsAuthorized() { + return isAuthorized; + } + + public void setIsAuthorized(Boolean isAuthorized) { + this.isAuthorized = isAuthorized; + } + + public AdvancedMallApiDTO withIsUpdateRecently(Boolean isUpdateRecently) { + this.isUpdateRecently = isUpdateRecently; + return this; + } + + /** + * 是否最近更新(三天内更新过该API)。 + * @return isUpdateRecently + */ + public Boolean getIsUpdateRecently() { + return isUpdateRecently; + } + + public void setIsUpdateRecently(Boolean isUpdateRecently) { + this.isUpdateRecently = isUpdateRecently; + } + + public AdvancedMallApiDTO withIsReleaseRecently(Boolean isReleaseRecently) { + this.isReleaseRecently = isReleaseRecently; + return this; + } + + /** + * 是否新品上市(三天内新发布的API)。 + * @return isReleaseRecently + */ + public Boolean getIsReleaseRecently() { + return isReleaseRecently; + } + + public void setIsReleaseRecently(Boolean isReleaseRecently) { + this.isReleaseRecently = isReleaseRecently; + } + + public AdvancedMallApiDTO withIsHotRecently(Boolean isHotRecently) { + this.isHotRecently = isHotRecently; + return this; + } + + /** + * 是否热销产品(三天内有其他空间用户申请该API)。 + * @return isHotRecently + */ + public Boolean getIsHotRecently() { + return isHotRecently; + } + + public void setIsHotRecently(Boolean isHotRecently) { + this.isHotRecently = isHotRecently; + } + + public AdvancedMallApiDTO withSuccessRate(String successRate) { + this.successRate = successRate; + return this; + } + + /** + * 7天内调用成功率。 + * @return successRate + */ + public String getSuccessRate() { + return successRate; + } + + public void setSuccessRate(String successRate) { + this.successRate = successRate; + } + + public AdvancedMallApiDTO withFailureRate(String failureRate) { + this.failureRate = failureRate; + return this; + } + + /** + * 7天内调用失败率。 + * @return failureRate + */ + public String getFailureRate() { + return failureRate; + } + + public void setFailureRate(String failureRate) { + this.failureRate = failureRate; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AdvancedMallApiDTO that = (AdvancedMallApiDTO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.authType, that.authType) && Objects.equals(this.applicationNum, that.applicationNum) + && Objects.equals(this.callNum, that.callNum) && Objects.equals(this.userName, that.userName) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.isOwner, that.isOwner) && Objects.equals(this.isAuthorized, that.isAuthorized) + && Objects.equals(this.isUpdateRecently, that.isUpdateRecently) + && Objects.equals(this.isReleaseRecently, that.isReleaseRecently) + && Objects.equals(this.isHotRecently, that.isHotRecently) + && Objects.equals(this.successRate, that.successRate) && Objects.equals(this.failureRate, that.failureRate); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + authType, + applicationNum, + callNum, + userName, + createTime, + updateTime, + isOwner, + isAuthorized, + isUpdateRecently, + isReleaseRecently, + isHotRecently, + successRate, + failureRate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdvancedMallApiDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" applicationNum: ").append(toIndentedString(applicationNum)).append("\n"); + sb.append(" callNum: ").append(toIndentedString(callNum)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n"); + sb.append(" isAuthorized: ").append(toIndentedString(isAuthorized)).append("\n"); + sb.append(" isUpdateRecently: ").append(toIndentedString(isUpdateRecently)).append("\n"); + sb.append(" isReleaseRecently: ").append(toIndentedString(isReleaseRecently)).append("\n"); + sb.append(" isHotRecently: ").append(toIndentedString(isHotRecently)).append("\n"); + sb.append(" successRate: ").append(toIndentedString(successRate)).append("\n"); + sb.append(" failureRate: ").append(toIndentedString(failureRate)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableAttributeVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableAttributeVO.java index da6c4bf85e..24e0b7713b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableAttributeVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableAttributeVO.java @@ -53,6 +53,11 @@ public class AggregationLogicTableAttributeVO { private Boolean isPartitionKey; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecy_levels") + + private List secrecyLevels = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "not_null") @@ -83,6 +88,16 @@ public class AggregationLogicTableAttributeVO { private String refId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ref_name_ch") + + private String refNameCh; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ref_name_en") + + private String refNameEn; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stand_row_id") @@ -109,7 +124,7 @@ public AggregationLogicTableAttributeVO withId(String id) { } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -126,7 +141,7 @@ public AggregationLogicTableAttributeVO withAggregationLogicTableId(String aggre } /** - * 所属汇总表ID。 + * 所属汇总表ID,填写String类型替代Long类型。 * @return aggregationLogicTableId */ public String getAggregationLogicTableId() { @@ -239,6 +254,39 @@ public void setIsPartitionKey(Boolean isPartitionKey) { this.isPartitionKey = isPartitionKey; } + public AggregationLogicTableAttributeVO withSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + return this; + } + + public AggregationLogicTableAttributeVO addSecrecyLevelsItem(SecrecyLevelVO secrecyLevelsItem) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + this.secrecyLevels.add(secrecyLevelsItem); + return this; + } + + public AggregationLogicTableAttributeVO withSecrecyLevels(Consumer> secrecyLevelsSetter) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + secrecyLevelsSetter.accept(this.secrecyLevels); + return this; + } + + /** + * 密级 + * @return secrecyLevels + */ + public List getSecrecyLevels() { + return secrecyLevels; + } + + public void setSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + } + public AggregationLogicTableAttributeVO withNotNull(Boolean notNull) { this.notNull = notNull; return this; @@ -330,7 +378,7 @@ public AggregationLogicTableAttributeVO withRefId(String refId) { } /** - * 关联ID。 + * 属性关联对象的id * @return refId */ public String getRefId() { @@ -341,13 +389,47 @@ public void setRefId(String refId) { this.refId = refId; } + public AggregationLogicTableAttributeVO withRefNameCh(String refNameCh) { + this.refNameCh = refNameCh; + return this; + } + + /** + * 属性关联对象的中文名 + * @return refNameCh + */ + public String getRefNameCh() { + return refNameCh; + } + + public void setRefNameCh(String refNameCh) { + this.refNameCh = refNameCh; + } + + public AggregationLogicTableAttributeVO withRefNameEn(String refNameEn) { + this.refNameEn = refNameEn; + return this; + } + + /** + * 属性关联对象的英文名 + * @return refNameEn + */ + public String getRefNameEn() { + return refNameEn; + } + + public void setRefNameEn(String refNameEn) { + this.refNameEn = refNameEn; + } + public AggregationLogicTableAttributeVO withStandRowId(String standRowId) { this.standRowId = standRowId; return this; } /** - * 关联的数据标准的ID。 + * 关联的数据标准的ID,填写String类型替代Long类型。 * @return standRowId */ public String getStandRowId() { @@ -364,7 +446,7 @@ public AggregationLogicTableAttributeVO withStandRowName(String standRowName) { } /** - * 关联的数据标准名称。 + * 关联的数据标准名称,只读。 * @return standRowName */ public String getStandRowName() { @@ -397,7 +479,7 @@ public AggregationLogicTableAttributeVO withQualityInfos(Consumer getQualityInfos() { @@ -439,10 +521,12 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.ordinal, that.ordinal) && Objects.equals(this.nameEn, that.nameEn) && Objects.equals(this.nameCh, that.nameCh) && Objects.equals(this.attributeType, that.attributeType) && Objects.equals(this.isPrimaryKey, that.isPrimaryKey) - && Objects.equals(this.isPartitionKey, that.isPartitionKey) && Objects.equals(this.notNull, that.notNull) + && Objects.equals(this.isPartitionKey, that.isPartitionKey) + && Objects.equals(this.secrecyLevels, that.secrecyLevels) && Objects.equals(this.notNull, that.notNull) && Objects.equals(this.description, that.description) && Objects.equals(this.dataType, that.dataType) && Objects.equals(this.domainType, that.domainType) && Objects.equals(this.dataTypeExtend, that.dataTypeExtend) && Objects.equals(this.refId, that.refId) + && Objects.equals(this.refNameCh, that.refNameCh) && Objects.equals(this.refNameEn, that.refNameEn) && Objects.equals(this.standRowId, that.standRowId) && Objects.equals(this.standRowName, that.standRowName) && Objects.equals(this.qualityInfos, that.qualityInfos) && Objects.equals(this.alias, that.alias); } @@ -457,12 +541,15 @@ public int hashCode() { attributeType, isPrimaryKey, isPartitionKey, + secrecyLevels, notNull, description, dataType, domainType, dataTypeExtend, refId, + refNameCh, + refNameEn, standRowId, standRowName, qualityInfos, @@ -481,12 +568,15 @@ public String toString() { sb.append(" attributeType: ").append(toIndentedString(attributeType)).append("\n"); sb.append(" isPrimaryKey: ").append(toIndentedString(isPrimaryKey)).append("\n"); sb.append(" isPartitionKey: ").append(toIndentedString(isPartitionKey)).append("\n"); + sb.append(" secrecyLevels: ").append(toIndentedString(secrecyLevels)).append("\n"); sb.append(" notNull: ").append(toIndentedString(notNull)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); sb.append(" domainType: ").append(toIndentedString(domainType)).append("\n"); sb.append(" dataTypeExtend: ").append(toIndentedString(dataTypeExtend)).append("\n"); sb.append(" refId: ").append(toIndentedString(refId)).append("\n"); + sb.append(" refNameCh: ").append(toIndentedString(refNameCh)).append("\n"); + sb.append(" refNameEn: ").append(toIndentedString(refNameEn)).append("\n"); sb.append(" standRowId: ").append(toIndentedString(standRowId)).append("\n"); sb.append(" standRowName: ").append(toIndentedString(standRowName)).append("\n"); sb.append(" qualityInfos: ").append(toIndentedString(qualityInfos)).append("\n"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVO.java index 65a5c0da8f..b8d92057fa 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVO.java @@ -59,6 +59,16 @@ public class AggregationLogicTableVO { private String owner; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secret_type") + + private SecretTypeEnum secretType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "apply_bg") + + private ApplyBgEnum applyBg; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "create_by") @@ -220,7 +230,7 @@ public class AggregationLogicTableVO { private SyncStatusEnum summaryStatus; /** - * DISTRIBUTE BY [HASH(column)|REPLICATION]。HASH(对指定的列进行Hash,通过映射,把数据分布到指定DN)、REPLICATION(表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据)。 + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 */ public static final class DistributeEnum { @@ -300,7 +310,7 @@ public int hashCode() { private String distributeColumn; /** - * DWS数据压缩等级,列压缩等级为no/low/middle/high,行压缩等级为no/yes。 + * DWS数据压缩等级,列压缩等级为no/low/middle/high,行压缩等级为no/yes。 枚举值: - \"NO\": 不压缩 - \"YES\": 压缩 - \"LOW\": 低等级压缩 - \"MIDDLE\": 中等级压缩 - \"HIGH\": 高等级压缩 */ public static final class CompressionEnum { @@ -477,13 +487,38 @@ public int hashCode() { private String sql; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version") + + private String devVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version") + + private String prodVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version_name") + + private String devVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version_name") + + private String prodVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + public AggregationLogicTableVO withId(String id) { this.id = id; return this; } /** - * 汇总表的唯一系统ID,更新时必填,创建时不须填写。 + * 汇总表的唯一系统ID,更新时必填,创建时不须填写,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -534,7 +569,7 @@ public AggregationLogicTableVO withL1Id(String l1Id) { } /** - * 主题域分组ID,只读,创建和更新时无需填写。 + * 主题域分组ID,只读,创建和更新时无需填写,填写String类型替代Long类型。 * @return l1Id */ public String getL1Id() { @@ -568,7 +603,7 @@ public AggregationLogicTableVO withL3Id(String l3Id) { } /** - * 汇总表所属主题的ID,必填。 + * 汇总表所属主题的ID,必填,填写String类型替代Long类型。 * @return l3Id */ public String getL3Id() { @@ -613,6 +648,40 @@ public void setOwner(String owner) { this.owner = owner; } + public AggregationLogicTableVO withSecretType(SecretTypeEnum secretType) { + this.secretType = secretType; + return this; + } + + /** + * Get secretType + * @return secretType + */ + public SecretTypeEnum getSecretType() { + return secretType; + } + + public void setSecretType(SecretTypeEnum secretType) { + this.secretType = secretType; + } + + public AggregationLogicTableVO withApplyBg(ApplyBgEnum applyBg) { + this.applyBg = applyBg; + return this; + } + + /** + * Get applyBg + * @return applyBg + */ + public ApplyBgEnum getApplyBg() { + return applyBg; + } + + public void setApplyBg(ApplyBgEnum applyBg) { + this.applyBg = applyBg; + } + public AggregationLogicTableVO withCreateBy(String createBy) { this.createBy = createBy; return this; @@ -960,7 +1029,7 @@ public AggregationLogicTableVO withGroupName(String groupName) { } /** - * 颗粒度名称。 + * 颗粒度名称,只读。 * @return groupName */ public String getGroupName() { @@ -977,7 +1046,7 @@ public AggregationLogicTableVO withGroupCode(String groupCode) { } /** - * 颗粒度编码。 + * 颗粒度编码,只读。 * @return groupCode */ public String getGroupCode() { @@ -1207,7 +1276,7 @@ public AggregationLogicTableVO withDistribute(DistributeEnum distribute) { } /** - * DISTRIBUTE BY [HASH(column)|REPLICATION]。HASH(对指定的列进行Hash,通过映射,把数据分布到指定DN)、REPLICATION(表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据)。 + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 * @return distribute */ public DistributeEnum getDistribute() { @@ -1241,7 +1310,7 @@ public AggregationLogicTableVO withCompression(CompressionEnum compression) { } /** - * DWS数据压缩等级,列压缩等级为no/low/middle/high,行压缩等级为no/yes。 + * DWS数据压缩等级,列压缩等级为no/low/middle/high,行压缩等级为no/yes。 枚举值: - \"NO\": 不压缩 - \"YES\": 压缩 - \"LOW\": 低等级压缩 - \"MIDDLE\": 中等级压缩 - \"HIGH\": 高等级压缩 * @return compression */ public CompressionEnum getCompression() { @@ -1326,7 +1395,7 @@ public AggregationLogicTableVO withQualityId(String qualityId) { } /** - * 质量ID。 + * 质量ID,填写String类型替代Long类型。 * @return qualityId */ public String getQualityId() { @@ -1343,7 +1412,7 @@ public AggregationLogicTableVO withReversed(Boolean reversed) { } /** - * 是否是逆向的。 + * 是否是逆向的,只读。 * @return reversed */ public Boolean getReversed() { @@ -1360,7 +1429,7 @@ public AggregationLogicTableVO withTableVersion(Integer tableVersion) { } /** - * 为2时,表示汇总表是汇总生成的。 + * 为2时,表示汇总表是汇总生成的,只读。 * @return tableVersion */ public Integer getTableVersion() { @@ -1557,6 +1626,91 @@ public void setSql(String sql) { this.sql = sql; } + public AggregationLogicTableVO withDevVersion(String devVersion) { + this.devVersion = devVersion; + return this; + } + + /** + * 开发环境版本,填写String类型替代Long类型。 + * @return devVersion + */ + public String getDevVersion() { + return devVersion; + } + + public void setDevVersion(String devVersion) { + this.devVersion = devVersion; + } + + public AggregationLogicTableVO withProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + return this; + } + + /** + * 生产环境版本,填写String类型替代Long类型。 + * @return prodVersion + */ + public String getProdVersion() { + return prodVersion; + } + + public void setProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + } + + public AggregationLogicTableVO withDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + return this; + } + + /** + * 开发环境版本名称 + * @return devVersionName + */ + public String getDevVersionName() { + return devVersionName; + } + + public void setDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + } + + public AggregationLogicTableVO withProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + return this; + } + + /** + * 生产环境版本名称 + * @return prodVersionName + */ + public String getProdVersionName() { + return prodVersionName; + } + + public void setProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + } + + public AggregationLogicTableVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1570,6 +1724,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.tbLogicName, that.tbLogicName) && Objects.equals(this.l1Id, that.l1Id) && Objects.equals(this.l2Id, that.l2Id) && Objects.equals(this.l3Id, that.l3Id) && Objects.equals(this.description, that.description) && Objects.equals(this.owner, that.owner) + && Objects.equals(this.secretType, that.secretType) && Objects.equals(this.applyBg, that.applyBg) && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.dwId, that.dwId) && Objects.equals(this.dbName, that.dbName) && Objects.equals(this.tbId, that.tbId) && Objects.equals(this.schema, that.schema) @@ -1605,7 +1760,10 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.dirtyOutSuffix, that.dirtyOutSuffix) && Objects.equals(this.alias, that.alias) && Objects.equals(this.configs, that.configs) && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) && Objects.equals(this.apiId, that.apiId) - && Objects.equals(this.sql, that.sql); + && Objects.equals(this.sql, that.sql) && Objects.equals(this.devVersion, that.devVersion) + && Objects.equals(this.prodVersion, that.prodVersion) + && Objects.equals(this.devVersionName, that.devVersionName) + && Objects.equals(this.prodVersionName, that.prodVersionName) && Objects.equals(this.envType, that.envType); } @Override @@ -1618,6 +1776,8 @@ public int hashCode() { l3Id, description, owner, + secretType, + applyBg, createBy, queueName, dwId, @@ -1669,7 +1829,12 @@ public int hashCode() { configs, selfDefinedFields, apiId, - sql); + sql, + devVersion, + prodVersion, + devVersionName, + prodVersionName, + envType); } @Override @@ -1684,6 +1849,8 @@ public String toString() { sb.append(" l3Id: ").append(toIndentedString(l3Id)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" secretType: ").append(toIndentedString(secretType)).append("\n"); + sb.append(" applyBg: ").append(toIndentedString(applyBg)).append("\n"); sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); sb.append(" dwId: ").append(toIndentedString(dwId)).append("\n"); @@ -1736,6 +1903,11 @@ public String toString() { sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); sb.append(" apiId: ").append(toIndentedString(apiId)).append("\n"); sb.append(" sql: ").append(toIndentedString(sql)).append("\n"); + sb.append(" devVersion: ").append(toIndentedString(devVersion)).append("\n"); + sb.append(" prodVersion: ").append(toIndentedString(prodVersion)).append("\n"); + sb.append(" devVersionName: ").append(toIndentedString(devVersionName)).append("\n"); + sb.append(" prodVersionName: ").append(toIndentedString(prodVersionName)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVOSearchResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVOSearchResultDataValue.java index 2d9405d727..5b90d1ba52 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVOSearchResultDataValue.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AggregationLogicTableVOSearchResultDataValue.java @@ -46,7 +46,7 @@ public AggregationLogicTableVOSearchResultDataValue withRecords( } /** - * 查询到的的汇总表值对象(AggregationLogicTableVO)数组。 + * 查询到的汇总表值对象(AggregationLogicTableVO)数组。 * @return records */ public List getRecords() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AllModelStatisticVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AllModelStatisticVO.java new file mode 100644 index 0000000000..84fbe27174 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AllModelStatisticVO.java @@ -0,0 +1,274 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * AllModelStatisticVO + */ +public class AllModelStatisticVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "frequent") + + private List frequent = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "top") + + private List top = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "logic") + + private List logic = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "physical") + + private List physical = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dwr") + + private ModelStatisticVO dwr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dm") + + private ModelStatisticVO dm; + + public AllModelStatisticVO withFrequent(List frequent) { + this.frequent = frequent; + return this; + } + + public AllModelStatisticVO addFrequentItem(ModelStatisticVO frequentItem) { + if (this.frequent == null) { + this.frequent = new ArrayList<>(); + } + this.frequent.add(frequentItem); + return this; + } + + public AllModelStatisticVO withFrequent(Consumer> frequentSetter) { + if (this.frequent == null) { + this.frequent = new ArrayList<>(); + } + frequentSetter.accept(this.frequent); + return this; + } + + /** + * 是否为常用。 + * @return frequent + */ + public List getFrequent() { + return frequent; + } + + public void setFrequent(List frequent) { + this.frequent = frequent; + } + + public AllModelStatisticVO withTop(List top) { + this.top = top; + return this; + } + + public AllModelStatisticVO addTopItem(ModelStatisticVO topItem) { + if (this.top == null) { + this.top = new ArrayList<>(); + } + this.top.add(topItem); + return this; + } + + public AllModelStatisticVO withTop(Consumer> topSetter) { + if (this.top == null) { + this.top = new ArrayList<>(); + } + topSetter.accept(this.top); + return this; + } + + /** + * 首层模型。 + * @return top + */ + public List getTop() { + return top; + } + + public void setTop(List top) { + this.top = top; + } + + public AllModelStatisticVO withLogic(List logic) { + this.logic = logic; + return this; + } + + public AllModelStatisticVO addLogicItem(ModelStatisticVO logicItem) { + if (this.logic == null) { + this.logic = new ArrayList<>(); + } + this.logic.add(logicItem); + return this; + } + + public AllModelStatisticVO withLogic(Consumer> logicSetter) { + if (this.logic == null) { + this.logic = new ArrayList<>(); + } + logicSetter.accept(this.logic); + return this; + } + + /** + * 逻辑模型。 + * @return logic + */ + public List getLogic() { + return logic; + } + + public void setLogic(List logic) { + this.logic = logic; + } + + public AllModelStatisticVO withPhysical(List physical) { + this.physical = physical; + return this; + } + + public AllModelStatisticVO addPhysicalItem(ModelStatisticVO physicalItem) { + if (this.physical == null) { + this.physical = new ArrayList<>(); + } + this.physical.add(physicalItem); + return this; + } + + public AllModelStatisticVO withPhysical(Consumer> physicalSetter) { + if (this.physical == null) { + this.physical = new ArrayList<>(); + } + physicalSetter.accept(this.physical); + return this; + } + + /** + * 物理模型。 + * @return physical + */ + public List getPhysical() { + return physical; + } + + public void setPhysical(List physical) { + this.physical = physical; + } + + public AllModelStatisticVO withDwr(ModelStatisticVO dwr) { + this.dwr = dwr; + return this; + } + + public AllModelStatisticVO withDwr(Consumer dwrSetter) { + if (this.dwr == null) { + this.dwr = new ModelStatisticVO(); + dwrSetter.accept(this.dwr); + } + + return this; + } + + /** + * Get dwr + * @return dwr + */ + public ModelStatisticVO getDwr() { + return dwr; + } + + public void setDwr(ModelStatisticVO dwr) { + this.dwr = dwr; + } + + public AllModelStatisticVO withDm(ModelStatisticVO dm) { + this.dm = dm; + return this; + } + + public AllModelStatisticVO withDm(Consumer dmSetter) { + if (this.dm == null) { + this.dm = new ModelStatisticVO(); + dmSetter.accept(this.dm); + } + + return this; + } + + /** + * Get dm + * @return dm + */ + public ModelStatisticVO getDm() { + return dm; + } + + public void setDm(ModelStatisticVO dm) { + this.dm = dm; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AllModelStatisticVO that = (AllModelStatisticVO) obj; + return Objects.equals(this.frequent, that.frequent) && Objects.equals(this.top, that.top) + && Objects.equals(this.logic, that.logic) && Objects.equals(this.physical, that.physical) + && Objects.equals(this.dwr, that.dwr) && Objects.equals(this.dm, that.dm); + } + + @Override + public int hashCode() { + return Objects.hash(frequent, top, logic, physical, dwr, dm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AllModelStatisticVO {\n"); + sb.append(" frequent: ").append(toIndentedString(frequent)).append("\n"); + sb.append(" top: ").append(toIndentedString(top)).append("\n"); + sb.append(" logic: ").append(toIndentedString(logic)).append("\n"); + sb.append(" physical: ").append(toIndentedString(physical)).append("\n"); + sb.append(" dwr: ").append(toIndentedString(dwr)).append("\n"); + sb.append(" dm: ").append(toIndentedString(dm)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AllTableVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AllTableVO.java new file mode 100644 index 0000000000..8be77e0f45 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AllTableVO.java @@ -0,0 +1,1289 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * 总览表。 + */ +public class AllTableVO { + + @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 = "tb_logic_guid") + + private String tbLogicGuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "quality_id") + + private String qualityId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reversed") + + private Boolean reversed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "partition_conf") + + private String partitionConf; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_switch") + + private Boolean dirtyOutSwitch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_database") + + private String dirtyOutDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_prefix") + + private String dirtyOutPrefix; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_suffix") + + private String dirtyOutSuffix; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_guid") + + private String tbGuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tenant_id") + + private String tenantId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private BizStatusEnum status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "biz_type") + + private BizTypeEnum bizType; + + @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 = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_type") + + private String dwType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private String queueName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1") + + private String l1; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2") + + private String l2; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3") + + private String l3; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1_id") + + private String l1Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2_id") + + private String l2Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3_id") + + private String l3Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_biz") + + private BizVersionManageVO newBiz; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "physical_table") + + private SyncStatusEnum physicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_physical_table") + + private SyncStatusEnum devPhysicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "technical_asset") + + private SyncStatusEnum technicalAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "business_asset") + + private SyncStatusEnum businessAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "meta_data_link") + + private SyncStatusEnum metaDataLink; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_quality") + + private SyncStatusEnum dataQuality; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dlf_task") + + private SyncStatusEnum dlfTask; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "materialization") + + private SyncStatusEnum materialization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "publish_to_dlm") + + private SyncStatusEnum publishToDlm; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "summary_status") + + private SyncStatusEnum summaryStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "standard_count") + + private String standardCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_id") + + private String apiId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace_id") + + private String workspaceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace_name") + + private String workspaceName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version") + + private String devVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version") + + private String prodVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version_name") + + private String devVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version_name") + + private String prodVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + + public AllTableVO withId(String id) { + this.id = id; + return this; + } + + /** + * l1的ID,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AllTableVO withName(String name) { + this.name = name; + return this; + } + + /** + * l1名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AllTableVO withTbLogicGuid(String tbLogicGuid) { + this.tbLogicGuid = tbLogicGuid; + return this; + } + + /** + * 表发布后对应的逻辑实体guid。 + * @return tbLogicGuid + */ + public String getTbLogicGuid() { + return tbLogicGuid; + } + + public void setTbLogicGuid(String tbLogicGuid) { + this.tbLogicGuid = tbLogicGuid; + } + + public AllTableVO withQualityId(String qualityId) { + this.qualityId = qualityId; + return this; + } + + /** + * 质量ID。 + * @return qualityId + */ + public String getQualityId() { + return qualityId; + } + + public void setQualityId(String qualityId) { + this.qualityId = qualityId; + } + + public AllTableVO withReversed(Boolean reversed) { + this.reversed = reversed; + return this; + } + + /** + * 是否是逆向的。 + * @return reversed + */ + public Boolean getReversed() { + return reversed; + } + + public void setReversed(Boolean reversed) { + this.reversed = reversed; + } + + public AllTableVO withPartitionConf(String partitionConf) { + this.partitionConf = partitionConf; + return this; + } + + /** + * 分区表达式。 + * @return partitionConf + */ + public String getPartitionConf() { + return partitionConf; + } + + public void setPartitionConf(String partitionConf) { + this.partitionConf = partitionConf; + } + + public AllTableVO withDirtyOutSwitch(Boolean dirtyOutSwitch) { + this.dirtyOutSwitch = dirtyOutSwitch; + return this; + } + + /** + * 异常数据输出开关。 + * @return dirtyOutSwitch + */ + public Boolean getDirtyOutSwitch() { + return dirtyOutSwitch; + } + + public void setDirtyOutSwitch(Boolean dirtyOutSwitch) { + this.dirtyOutSwitch = dirtyOutSwitch; + } + + public AllTableVO withDirtyOutDatabase(String dirtyOutDatabase) { + this.dirtyOutDatabase = dirtyOutDatabase; + return this; + } + + /** + * 异常数据输出库。 + * @return dirtyOutDatabase + */ + public String getDirtyOutDatabase() { + return dirtyOutDatabase; + } + + public void setDirtyOutDatabase(String dirtyOutDatabase) { + this.dirtyOutDatabase = dirtyOutDatabase; + } + + public AllTableVO withDirtyOutPrefix(String dirtyOutPrefix) { + this.dirtyOutPrefix = dirtyOutPrefix; + return this; + } + + /** + * 异常表前缀。 + * @return dirtyOutPrefix + */ + public String getDirtyOutPrefix() { + return dirtyOutPrefix; + } + + public void setDirtyOutPrefix(String dirtyOutPrefix) { + this.dirtyOutPrefix = dirtyOutPrefix; + } + + public AllTableVO withDirtyOutSuffix(String dirtyOutSuffix) { + this.dirtyOutSuffix = dirtyOutSuffix; + return this; + } + + /** + * 异常表后缀。 + * @return dirtyOutSuffix + */ + public String getDirtyOutSuffix() { + return dirtyOutSuffix; + } + + public void setDirtyOutSuffix(String dirtyOutSuffix) { + this.dirtyOutSuffix = dirtyOutSuffix; + } + + public AllTableVO withTbGuid(String tbGuid) { + this.tbGuid = tbGuid; + return this; + } + + /** + * 表发布后对应的物理表guid。 + * @return tbGuid + */ + public String getTbGuid() { + return tbGuid; + } + + public void setTbGuid(String tbGuid) { + this.tbGuid = tbGuid; + } + + public AllTableVO withCode(String code) { + this.code = code; + return this; + } + + /** + * 编码。 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public AllTableVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public AllTableVO 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 AllTableVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AllTableVO withStatus(BizStatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public BizStatusEnum getStatus() { + return status; + } + + public void setStatus(BizStatusEnum status) { + this.status = status; + } + + public AllTableVO withBizType(BizTypeEnum bizType) { + this.bizType = bizType; + return this; + } + + /** + * Get bizType + * @return bizType + */ + public BizTypeEnum getBizType() { + return bizType; + } + + public void setBizType(BizTypeEnum bizType) { + this.bizType = bizType; + } + + public AllTableVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public AllTableVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public AllTableVO withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 数据库名。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public AllTableVO withDwType(String dwType) { + this.dwType = dwType; + return this; + } + + /** + * 数据连接类型,对应表所在的数仓类型,取值可以为DLI、DWS、MRS_HIVE、POSTGRESQL、MRS_SPARK、CLICKHOUSE、MYSQL、ORACLE和DORIS等。 + * @return dwType + */ + public String getDwType() { + return dwType; + } + + public void setDwType(String dwType) { + this.dwType = dwType; + } + + public AllTableVO withQueueName(String queueName) { + this.queueName = queueName; + return this; + } + + /** + * dli数据连接执行sql所需的队列,数据连接类型为DLI时必须。 + * @return queueName + */ + public String getQueueName() { + return queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + } + + public AllTableVO withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * DWS类型需要。 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public AllTableVO withL1(String l1) { + this.l1 = l1; + return this; + } + + /** + * 主题域分组中文名,只读,创建和更新时无需填写。 + * @return l1 + */ + public String getL1() { + return l1; + } + + public void setL1(String l1) { + this.l1 = l1; + } + + public AllTableVO withL2(String l2) { + this.l2 = l2; + return this; + } + + /** + * 主题域中文名,只读,创建和更新时无需填写。 + * @return l2 + */ + public String getL2() { + return l2; + } + + public void setL2(String l2) { + this.l2 = l2; + } + + public AllTableVO withL3(String l3) { + this.l3 = l3; + return this; + } + + /** + * 业务对象中文名,只读,创建和更新时无需填写。 + * @return l3 + */ + public String getL3() { + return l3; + } + + public void setL3(String l3) { + this.l3 = l3; + } + + public AllTableVO withL1Id(String l1Id) { + this.l1Id = l1Id; + return this; + } + + /** + * 主题域分组ID,只读,填写String类型替代Long类型。 + * @return l1Id + */ + public String getL1Id() { + return l1Id; + } + + public void setL1Id(String l1Id) { + this.l1Id = l1Id; + } + + public AllTableVO withL2Id(String l2Id) { + this.l2Id = l2Id; + return this; + } + + /** + * 主题域ID,只读,创建和更新时无需填写。 + * @return l2Id + */ + public String getL2Id() { + return l2Id; + } + + public void setL2Id(String l2Id) { + this.l2Id = l2Id; + } + + public AllTableVO withL3Id(String l3Id) { + this.l3Id = l3Id; + return this; + } + + /** + * 业务对象ID,只读,填写String类型替代Long类型。 + * @return l3Id + */ + public String getL3Id() { + return l3Id; + } + + public void setL3Id(String l3Id) { + this.l3Id = l3Id; + } + + public AllTableVO withNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + return this; + } + + public AllTableVO withNewBiz(Consumer newBizSetter) { + if (this.newBiz == null) { + this.newBiz = new BizVersionManageVO(); + newBizSetter.accept(this.newBiz); + } + + return this; + } + + /** + * Get newBiz + * @return newBiz + */ + public BizVersionManageVO getNewBiz() { + return newBiz; + } + + public void setNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + } + + public AllTableVO withPhysicalTable(SyncStatusEnum physicalTable) { + this.physicalTable = physicalTable; + return this; + } + + /** + * Get physicalTable + * @return physicalTable + */ + public SyncStatusEnum getPhysicalTable() { + return physicalTable; + } + + public void setPhysicalTable(SyncStatusEnum physicalTable) { + this.physicalTable = physicalTable; + } + + public AllTableVO withDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + return this; + } + + /** + * Get devPhysicalTable + * @return devPhysicalTable + */ + public SyncStatusEnum getDevPhysicalTable() { + return devPhysicalTable; + } + + public void setDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + } + + public AllTableVO withTechnicalAsset(SyncStatusEnum technicalAsset) { + this.technicalAsset = technicalAsset; + return this; + } + + /** + * Get technicalAsset + * @return technicalAsset + */ + public SyncStatusEnum getTechnicalAsset() { + return technicalAsset; + } + + public void setTechnicalAsset(SyncStatusEnum technicalAsset) { + this.technicalAsset = technicalAsset; + } + + public AllTableVO withBusinessAsset(SyncStatusEnum businessAsset) { + this.businessAsset = businessAsset; + return this; + } + + /** + * Get businessAsset + * @return businessAsset + */ + public SyncStatusEnum getBusinessAsset() { + return businessAsset; + } + + public void setBusinessAsset(SyncStatusEnum businessAsset) { + this.businessAsset = businessAsset; + } + + public AllTableVO withMetaDataLink(SyncStatusEnum metaDataLink) { + this.metaDataLink = metaDataLink; + return this; + } + + /** + * Get metaDataLink + * @return metaDataLink + */ + public SyncStatusEnum getMetaDataLink() { + return metaDataLink; + } + + public void setMetaDataLink(SyncStatusEnum metaDataLink) { + this.metaDataLink = metaDataLink; + } + + public AllTableVO withDataQuality(SyncStatusEnum dataQuality) { + this.dataQuality = dataQuality; + return this; + } + + /** + * Get dataQuality + * @return dataQuality + */ + public SyncStatusEnum getDataQuality() { + return dataQuality; + } + + public void setDataQuality(SyncStatusEnum dataQuality) { + this.dataQuality = dataQuality; + } + + public AllTableVO withDlfTask(SyncStatusEnum dlfTask) { + this.dlfTask = dlfTask; + return this; + } + + /** + * Get dlfTask + * @return dlfTask + */ + public SyncStatusEnum getDlfTask() { + return dlfTask; + } + + public void setDlfTask(SyncStatusEnum dlfTask) { + this.dlfTask = dlfTask; + } + + public AllTableVO withMaterialization(SyncStatusEnum materialization) { + this.materialization = materialization; + return this; + } + + /** + * Get materialization + * @return materialization + */ + public SyncStatusEnum getMaterialization() { + return materialization; + } + + public void setMaterialization(SyncStatusEnum materialization) { + this.materialization = materialization; + } + + public AllTableVO withPublishToDlm(SyncStatusEnum publishToDlm) { + this.publishToDlm = publishToDlm; + return this; + } + + /** + * Get publishToDlm + * @return publishToDlm + */ + public SyncStatusEnum getPublishToDlm() { + return publishToDlm; + } + + public void setPublishToDlm(SyncStatusEnum publishToDlm) { + this.publishToDlm = publishToDlm; + } + + public AllTableVO withSummaryStatus(SyncStatusEnum summaryStatus) { + this.summaryStatus = summaryStatus; + return this; + } + + /** + * Get summaryStatus + * @return summaryStatus + */ + public SyncStatusEnum getSummaryStatus() { + return summaryStatus; + } + + public void setSummaryStatus(SyncStatusEnum summaryStatus) { + this.summaryStatus = summaryStatus; + } + + public AllTableVO withStandardCount(String standardCount) { + this.standardCount = standardCount; + return this; + } + + /** + * 标准数量,只读,填写String类型替代Long类型。 + * @return standardCount + */ + public String getStandardCount() { + return standardCount; + } + + public void setStandardCount(String standardCount) { + this.standardCount = standardCount; + } + + public AllTableVO withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 别名。 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public AllTableVO withApiId(String apiId) { + this.apiId = apiId; + return this; + } + + /** + * 汇总表API ID。 + * @return apiId + */ + public String getApiId() { + return apiId; + } + + public void setApiId(String apiId) { + this.apiId = apiId; + } + + public AllTableVO withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * 工作空间ID。 + * @return workspaceId + */ + public String getWorkspaceId() { + return workspaceId; + } + + public void setWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + } + + public AllTableVO withWorkspaceName(String workspaceName) { + this.workspaceName = workspaceName; + return this; + } + + /** + * 工作空间名称。 + * @return workspaceName + */ + public String getWorkspaceName() { + return workspaceName; + } + + public void setWorkspaceName(String workspaceName) { + this.workspaceName = workspaceName; + } + + public AllTableVO withDevVersion(String devVersion) { + this.devVersion = devVersion; + return this; + } + + /** + * 开发环境版本,填写String类型替代Long类型。 + * @return devVersion + */ + public String getDevVersion() { + return devVersion; + } + + public void setDevVersion(String devVersion) { + this.devVersion = devVersion; + } + + public AllTableVO withProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + return this; + } + + /** + * 生产环境版本,填写String类型替代Long类型。 + * @return prodVersion + */ + public String getProdVersion() { + return prodVersion; + } + + public void setProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + } + + public AllTableVO withDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + return this; + } + + /** + * 开发环境版本名称 + * @return devVersionName + */ + public String getDevVersionName() { + return devVersionName; + } + + public void setDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + } + + public AllTableVO withProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + return this; + } + + /** + * 生产环境版本名称 + * @return prodVersionName + */ + public String getProdVersionName() { + return prodVersionName; + } + + public void setProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + } + + public AllTableVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AllTableVO that = (AllTableVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.tbLogicGuid, that.tbLogicGuid) && Objects.equals(this.qualityId, that.qualityId) + && Objects.equals(this.reversed, that.reversed) && Objects.equals(this.partitionConf, that.partitionConf) + && Objects.equals(this.dirtyOutSwitch, that.dirtyOutSwitch) + && Objects.equals(this.dirtyOutDatabase, that.dirtyOutDatabase) + && Objects.equals(this.dirtyOutPrefix, that.dirtyOutPrefix) + && Objects.equals(this.dirtyOutSuffix, that.dirtyOutSuffix) && Objects.equals(this.tbGuid, that.tbGuid) + && Objects.equals(this.code, that.code) && Objects.equals(this.createBy, that.createBy) + && Objects.equals(this.tenantId, that.tenantId) && Objects.equals(this.description, that.description) + && Objects.equals(this.status, that.status) && Objects.equals(this.bizType, that.bizType) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.dbName, that.dbName) && Objects.equals(this.dwType, that.dwType) + && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.l1, that.l1) && Objects.equals(this.l2, that.l2) && Objects.equals(this.l3, that.l3) + && Objects.equals(this.l1Id, that.l1Id) && Objects.equals(this.l2Id, that.l2Id) + && Objects.equals(this.l3Id, that.l3Id) && Objects.equals(this.newBiz, that.newBiz) + && Objects.equals(this.physicalTable, that.physicalTable) + && Objects.equals(this.devPhysicalTable, that.devPhysicalTable) + && Objects.equals(this.technicalAsset, that.technicalAsset) + && Objects.equals(this.businessAsset, that.businessAsset) + && Objects.equals(this.metaDataLink, that.metaDataLink) + && Objects.equals(this.dataQuality, that.dataQuality) && Objects.equals(this.dlfTask, that.dlfTask) + && Objects.equals(this.materialization, that.materialization) + && Objects.equals(this.publishToDlm, that.publishToDlm) + && Objects.equals(this.summaryStatus, that.summaryStatus) + && Objects.equals(this.standardCount, that.standardCount) && Objects.equals(this.alias, that.alias) + && Objects.equals(this.apiId, that.apiId) && Objects.equals(this.workspaceId, that.workspaceId) + && Objects.equals(this.workspaceName, that.workspaceName) + && Objects.equals(this.devVersion, that.devVersion) && Objects.equals(this.prodVersion, that.prodVersion) + && Objects.equals(this.devVersionName, that.devVersionName) + && Objects.equals(this.prodVersionName, that.prodVersionName) && Objects.equals(this.envType, that.envType); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + tbLogicGuid, + qualityId, + reversed, + partitionConf, + dirtyOutSwitch, + dirtyOutDatabase, + dirtyOutPrefix, + dirtyOutSuffix, + tbGuid, + code, + createBy, + tenantId, + description, + status, + bizType, + createTime, + updateTime, + dbName, + dwType, + queueName, + schema, + l1, + l2, + l3, + l1Id, + l2Id, + l3Id, + newBiz, + physicalTable, + devPhysicalTable, + technicalAsset, + businessAsset, + metaDataLink, + dataQuality, + dlfTask, + materialization, + publishToDlm, + summaryStatus, + standardCount, + alias, + apiId, + workspaceId, + workspaceName, + devVersion, + prodVersion, + devVersionName, + prodVersionName, + envType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AllTableVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tbLogicGuid: ").append(toIndentedString(tbLogicGuid)).append("\n"); + sb.append(" qualityId: ").append(toIndentedString(qualityId)).append("\n"); + sb.append(" reversed: ").append(toIndentedString(reversed)).append("\n"); + sb.append(" partitionConf: ").append(toIndentedString(partitionConf)).append("\n"); + sb.append(" dirtyOutSwitch: ").append(toIndentedString(dirtyOutSwitch)).append("\n"); + sb.append(" dirtyOutDatabase: ").append(toIndentedString(dirtyOutDatabase)).append("\n"); + sb.append(" dirtyOutPrefix: ").append(toIndentedString(dirtyOutPrefix)).append("\n"); + sb.append(" dirtyOutSuffix: ").append(toIndentedString(dirtyOutSuffix)).append("\n"); + sb.append(" tbGuid: ").append(toIndentedString(tbGuid)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" bizType: ").append(toIndentedString(bizType)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" dwType: ").append(toIndentedString(dwType)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" l1: ").append(toIndentedString(l1)).append("\n"); + sb.append(" l2: ").append(toIndentedString(l2)).append("\n"); + sb.append(" l3: ").append(toIndentedString(l3)).append("\n"); + sb.append(" l1Id: ").append(toIndentedString(l1Id)).append("\n"); + sb.append(" l2Id: ").append(toIndentedString(l2Id)).append("\n"); + sb.append(" l3Id: ").append(toIndentedString(l3Id)).append("\n"); + sb.append(" newBiz: ").append(toIndentedString(newBiz)).append("\n"); + sb.append(" physicalTable: ").append(toIndentedString(physicalTable)).append("\n"); + sb.append(" devPhysicalTable: ").append(toIndentedString(devPhysicalTable)).append("\n"); + sb.append(" technicalAsset: ").append(toIndentedString(technicalAsset)).append("\n"); + sb.append(" businessAsset: ").append(toIndentedString(businessAsset)).append("\n"); + sb.append(" metaDataLink: ").append(toIndentedString(metaDataLink)).append("\n"); + sb.append(" dataQuality: ").append(toIndentedString(dataQuality)).append("\n"); + sb.append(" dlfTask: ").append(toIndentedString(dlfTask)).append("\n"); + sb.append(" materialization: ").append(toIndentedString(materialization)).append("\n"); + sb.append(" publishToDlm: ").append(toIndentedString(publishToDlm)).append("\n"); + sb.append(" summaryStatus: ").append(toIndentedString(summaryStatus)).append("\n"); + sb.append(" standardCount: ").append(toIndentedString(standardCount)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" apiId: ").append(toIndentedString(apiId)).append("\n"); + sb.append(" workspaceId: ").append(toIndentedString(workspaceId)).append("\n"); + sb.append(" workspaceName: ").append(toIndentedString(workspaceName)).append("\n"); + sb.append(" devVersion: ").append(toIndentedString(devVersion)).append("\n"); + sb.append(" prodVersion: ").append(toIndentedString(prodVersion)).append("\n"); + sb.append(" devVersionName: ").append(toIndentedString(devVersionName)).append("\n"); + sb.append(" prodVersionName: ").append(toIndentedString(prodVersionName)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApplyBgEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApplyBgEnum.java new file mode 100644 index 0000000000..b9b7e86b3b --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApplyBgEnum.java @@ -0,0 +1,90 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * 适用bg。 + */ +public class ApplyBgEnum { + + /** + * Enum CLOUD_BU for value: "CLOUD_BU" + */ + public static final ApplyBgEnum CLOUD_BU = new ApplyBgEnum("CLOUD_BU"); + + /** + * Enum BG1 for value: "BG1" + */ + public static final ApplyBgEnum BG1 = new ApplyBgEnum("BG1"); + + /** + * Enum BG2 for value: "BG2" + */ + public static final ApplyBgEnum BG2 = new ApplyBgEnum("BG2"); + + /** + * Enum BG3 for value: "BG3" + */ + public static final ApplyBgEnum BG3 = new ApplyBgEnum("BG3"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("CLOUD_BU", CLOUD_BU); + map.put("BG1", BG1); + map.put("BG2", BG2); + map.put("BG3", BG3); + return Collections.unmodifiableMap(map); + } + + private String value; + + ApplyBgEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ApplyBgEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ApplyBgEnum(value)); + } + + public static ApplyBgEnum 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 ApplyBgEnum) { + return this.value.equals(((ApplyBgEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalBatchParam.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalBatchParam.java index 7dd2f20722..96a8ceeaf6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalBatchParam.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalBatchParam.java @@ -43,6 +43,11 @@ public class ApprovalBatchParam { private String scheduleTime; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + public ApprovalBatchParam withBizInfos(List bizInfos) { this.bizInfos = bizInfos; return this; @@ -116,7 +121,7 @@ public ApprovalBatchParam withEmail(String email) { } /** - * 审批人邮箱。 + * 审批人邮箱,仅在创建审批人时填写。 * @return email */ public String getEmail() { @@ -150,7 +155,7 @@ public ApprovalBatchParam withScheduleTime(String scheduleTime) { } /** - * 作业调度时间。 + * 作业调度时间。格式参照:30_18,表示18点30分。 * @return scheduleTime */ public String getScheduleTime() { @@ -161,6 +166,23 @@ public void setScheduleTime(String scheduleTime) { this.scheduleTime = scheduleTime; } + public ApprovalBatchParam withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -173,12 +195,12 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.bizInfos, that.bizInfos) && Objects.equals(this.approverUserId, that.approverUserId) && Objects.equals(this.approverUserName, that.approverUserName) && Objects.equals(this.email, that.email) && Objects.equals(this.fastApproval, that.fastApproval) - && Objects.equals(this.scheduleTime, that.scheduleTime); + && Objects.equals(this.scheduleTime, that.scheduleTime) && Objects.equals(this.envType, that.envType); } @Override public int hashCode() { - return Objects.hash(bizInfos, approverUserId, approverUserName, email, fastApproval, scheduleTime); + return Objects.hash(bizInfos, approverUserId, approverUserName, email, fastApproval, scheduleTime, envType); } @Override @@ -191,6 +213,7 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" fastApproval: ").append(toIndentedString(fastApproval)).append("\n"); sb.append(" scheduleTime: ").append(toIndentedString(scheduleTime)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalInfoParam.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalInfoParam.java index 42cb292cab..7e83b74ca6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalInfoParam.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalInfoParam.java @@ -16,19 +16,19 @@ public class ApprovalInfoParam { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ids") - private List ids = null; + private List ids = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "msg") private String msg; - public ApprovalInfoParam withIds(List ids) { + public ApprovalInfoParam withIds(List ids) { this.ids = ids; return this; } - public ApprovalInfoParam addIdsItem(Long idsItem) { + public ApprovalInfoParam addIdsItem(String idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -36,7 +36,7 @@ public ApprovalInfoParam addIdsItem(Long idsItem) { return this; } - public ApprovalInfoParam withIds(Consumer> idsSetter) { + public ApprovalInfoParam withIds(Consumer> idsSetter) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -45,14 +45,14 @@ public ApprovalInfoParam withIds(Consumer> idsSetter) { } /** - * 审批单ID列表。 + * 审批单ID列表,填写String类型替代Long类型。 * @return ids */ - public List getIds() { + public List getIds() { return ids; } - public void setIds(List ids) { + public void setIds(List ids) { this.ids = ids; } @@ -62,7 +62,7 @@ public ApprovalInfoParam withMsg(String msg) { } /** - * 审批单信息。 + * 审批单信息,审批人填写的审批意见。 * @return msg */ public String getMsg() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalStatusEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalStatusEnum.java index 76a25a99f8..8c657b7e55 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalStatusEnum.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalStatusEnum.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 业务审批状态。DEVELOPING(审核中)、APPROVED(审核通过)、REJECT(审核驳回)、WITHDREW(审核撤销)。 + * 业务审批状态,只读。 枚举值: - DEVELOPING: 审核中 - APPROVED: 审核通过 - REJECT: 审核驳回 - WITHDREW: 审核撤销 */ public class ApprovalStatusEnum { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalTypeEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalTypeEnum.java index 41374314c3..e6c32f86ea 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalTypeEnum.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalTypeEnum.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 业务审核类型。PUBLISH(发布)、OFFLINE(下线)。 + * 业务审核类型。 枚举值: - PUBLISH: 发布 - OFFLINE: 下线 */ public class ApprovalTypeEnum { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalVO.java index 6135eff529..a0b5ec0bbd 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApprovalVO.java @@ -127,7 +127,7 @@ public ApprovalVO withId(String id) { } /** - * 审批单ID。 + * 审批单ID,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -144,7 +144,7 @@ public ApprovalVO withTenantId(String tenantId) { } /** - * 项目ID。 + * 项目ID,获取方式参考接口路径参数“project_id”。 * @return tenantId */ public String getTenantId() { @@ -195,7 +195,7 @@ public ApprovalVO withBizId(String bizId) { } /** - * 业务ID。 + * 业务ID,填写String类型替代Long类型。 * @return bizId */ public String getBizId() { @@ -229,7 +229,7 @@ public ApprovalVO withBizInfo(String bizInfo) { } /** - * 业务详情。 + * 序列化之后的业务详情,类型是string。 * @return bizInfo */ public String getBizInfo() { @@ -246,7 +246,7 @@ public ApprovalVO withBizInfoObj(Object bizInfoObj) { } /** - * 业务详情。 + * 业务详情,类型是object。 * @return bizInfoObj */ public Object getBizInfoObj() { @@ -365,7 +365,7 @@ public ApprovalVO withL1(String l1) { } /** - * 主题域分组。 + * 主题域分组中文名,只读,创建和更新时无需填写。 * @return l1 */ public String getL1() { @@ -382,7 +382,7 @@ public ApprovalVO withL2(String l2) { } /** - * 主题域。 + * 主题域中文名,只读,创建和更新时无需填写。 * @return l2 */ public String getL2() { @@ -399,7 +399,7 @@ public ApprovalVO withL3(String l3) { } /** - * 业务对象。 + * 业务对象中文名,只读,创建和更新时无需填写。 * @return l3 */ public String getL3() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApproverParam.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApproverParam.java index d3c225abd7..1702dd79e5 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApproverParam.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApproverParam.java @@ -10,6 +10,11 @@ */ public class ApproverParam { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "approver_name") @@ -40,6 +45,23 @@ public class ApproverParam { private Boolean smsNotify; + public ApproverParam withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 调用审核系统的应用名称,开发人员自己定。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + public ApproverParam withApproverName(String approverName) { this.approverName = approverName; return this; @@ -151,20 +173,22 @@ public boolean equals(java.lang.Object obj) { return false; } ApproverParam that = (ApproverParam) obj; - return Objects.equals(this.approverName, that.approverName) && Objects.equals(this.userId, that.userId) - && Objects.equals(this.email, that.email) && Objects.equals(this.phoneNumber, that.phoneNumber) - && Objects.equals(this.emailNotify, that.emailNotify) && Objects.equals(this.smsNotify, that.smsNotify); + return Objects.equals(this.appName, that.appName) && Objects.equals(this.approverName, that.approverName) + && Objects.equals(this.userId, that.userId) && Objects.equals(this.email, that.email) + && Objects.equals(this.phoneNumber, that.phoneNumber) && Objects.equals(this.emailNotify, that.emailNotify) + && Objects.equals(this.smsNotify, that.smsNotify); } @Override public int hashCode() { - return Objects.hash(approverName, userId, email, phoneNumber, emailNotify, smsNotify); + return Objects.hash(appName, approverName, userId, email, phoneNumber, emailNotify, smsNotify); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApproverParam {\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); sb.append(" approverName: ").append(toIndentedString(approverName)).append("\n"); sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApproverVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApproverVO.java new file mode 100644 index 0000000000..f0c300a597 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ApproverVO.java @@ -0,0 +1,423 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * ApproverVO + */ +public class ApproverVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "approver_name") + + private String approverName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_id") + + private String userId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_name") + + private String userName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "email") + + private String email; + + /** + * 用户类型。 枚举值: - BIZ_METRIC_OWNER: 业务指标责任人 - APPROVER: 审批人 - BIZ_METRIC_OWNER_AND_APPROVER: 业务指标责任人是审核人 + */ + public static final class UserTypeEnum { + + /** + * Enum BIZ_METRIC_OWNER for value: "BIZ_METRIC_OWNER" + */ + public static final UserTypeEnum BIZ_METRIC_OWNER = new UserTypeEnum("BIZ_METRIC_OWNER"); + + /** + * Enum APPROVER for value: "APPROVER" + */ + public static final UserTypeEnum APPROVER = new UserTypeEnum("APPROVER"); + + /** + * Enum BIZ_METRIC_OWNER_AND_APPROVER for value: "BIZ_METRIC_OWNER_AND_APPROVER" + */ + public static final UserTypeEnum BIZ_METRIC_OWNER_AND_APPROVER = + new UserTypeEnum("BIZ_METRIC_OWNER_AND_APPROVER"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("BIZ_METRIC_OWNER", BIZ_METRIC_OWNER); + map.put("APPROVER", APPROVER); + map.put("BIZ_METRIC_OWNER_AND_APPROVER", BIZ_METRIC_OWNER_AND_APPROVER); + return Collections.unmodifiableMap(map); + } + + private String value; + + UserTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static UserTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new UserTypeEnum(value)); + } + + public static UserTypeEnum 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 UserTypeEnum) { + return this.value.equals(((UserTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "user_type") + + private UserTypeEnum userType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "phone_number") + + private String phoneNumber; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "app_name") + + private String appName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "topic_urn") + + private String topicUrn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + public ApproverVO withId(String id) { + this.id = id; + return this; + } + + /** + * 审批单ID,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ApproverVO withApproverName(String approverName) { + this.approverName = approverName; + return this; + } + + /** + * 审批人姓名。 + * @return approverName + */ + public String getApproverName() { + return approverName; + } + + public void setApproverName(String approverName) { + this.approverName = approverName; + } + + public ApproverVO withUserId(String userId) { + this.userId = userId; + return this; + } + + /** + * 审批人ID。 + * @return userId + */ + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public ApproverVO withUserName(String userName) { + this.userName = userName; + return this; + } + + /** + * 审批人名称。 + * @return userName + */ + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public ApproverVO withEmail(String email) { + this.email = email; + return this; + } + + /** + * email信息。 + * @return email + */ + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public ApproverVO withUserType(UserTypeEnum userType) { + this.userType = userType; + return this; + } + + /** + * 用户类型。 枚举值: - BIZ_METRIC_OWNER: 业务指标责任人 - APPROVER: 审批人 - BIZ_METRIC_OWNER_AND_APPROVER: 业务指标责任人是审核人 + * @return userType + */ + public UserTypeEnum getUserType() { + return userType; + } + + public void setUserType(UserTypeEnum userType) { + this.userType = userType; + } + + public ApproverVO withPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * 电话号码。 + * @return phoneNumber + */ + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + public ApproverVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public ApproverVO withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public ApproverVO withAppName(String appName) { + this.appName = appName; + return this; + } + + /** + * 业务系统名称。 + * @return appName + */ + public String getAppName() { + return appName; + } + + public void setAppName(String appName) { + this.appName = appName; + } + + public ApproverVO withTopicUrn(String topicUrn) { + this.topicUrn = topicUrn; + return this; + } + + /** + * smn主题urn。 + * @return topicUrn + */ + public String getTopicUrn() { + return topicUrn; + } + + public void setTopicUrn(String topicUrn) { + this.topicUrn = topicUrn; + } + + public ApproverVO withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 项目ID。 + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ApproverVO that = (ApproverVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.approverName, that.approverName) + && Objects.equals(this.userId, that.userId) && Objects.equals(this.userName, that.userName) + && Objects.equals(this.email, that.email) && Objects.equals(this.userType, that.userType) + && Objects.equals(this.phoneNumber, that.phoneNumber) && Objects.equals(this.createBy, that.createBy) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.appName, that.appName) + && Objects.equals(this.topicUrn, that.topicUrn) && Objects.equals(this.projectId, that.projectId); + } + + @Override + public int hashCode() { + return Objects.hash(id, + approverName, + userId, + userName, + email, + userType, + phoneNumber, + createBy, + createTime, + appName, + topicUrn, + projectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApproverVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" approverName: ").append(toIndentedString(approverName)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" userType: ").append(toIndentedString(userType)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" appName: ").append(toIndentedString(appName)).append("\n"); + sb.append(" topicUrn: ").append(toIndentedString(topicUrn)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AtomicIndexVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AtomicIndexVO.java index 9a8b225496..94afcbcd99 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AtomicIndexVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/AtomicIndexVO.java @@ -47,12 +47,12 @@ public class AtomicIndexVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cal_fn_ids") - private List calFnIds = null; + private List calFnIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l1_id") - private Long l1Id; + private String l1Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l2_id") @@ -82,7 +82,7 @@ public class AtomicIndexVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "field_ids") - private List fieldIds = null; + private List fieldIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "field_names") @@ -140,7 +140,7 @@ public AtomicIndexVO withId(String id) { } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -157,7 +157,7 @@ public AtomicIndexVO withNameEn(String nameEn) { } /** - * 字段名。 + * 原子指标英文名。 * @return nameEn */ public String getNameEn() { @@ -174,7 +174,7 @@ public AtomicIndexVO withNameCh(String nameCh) { } /** - * 业务属性。 + * 原子指标英文名。 * @return nameCh */ public String getNameCh() { @@ -236,12 +236,12 @@ public void setCalExp(String calExp) { this.calExp = calExp; } - public AtomicIndexVO withCalFnIds(List calFnIds) { + public AtomicIndexVO withCalFnIds(List calFnIds) { this.calFnIds = calFnIds; return this; } - public AtomicIndexVO addCalFnIdsItem(Long calFnIdsItem) { + public AtomicIndexVO addCalFnIdsItem(String calFnIdsItem) { if (this.calFnIds == null) { this.calFnIds = new ArrayList<>(); } @@ -249,7 +249,7 @@ public AtomicIndexVO addCalFnIdsItem(Long calFnIdsItem) { return this; } - public AtomicIndexVO withCalFnIds(Consumer> calFnIdsSetter) { + public AtomicIndexVO withCalFnIds(Consumer> calFnIdsSetter) { if (this.calFnIds == null) { this.calFnIds = new ArrayList<>(); } @@ -258,31 +258,31 @@ public AtomicIndexVO withCalFnIds(Consumer> calFnIdsSetter) { } /** - * 引用函数ID。 + * 引用函数ID,填写String类型替代Long类型。 * @return calFnIds */ - public List getCalFnIds() { + public List getCalFnIds() { return calFnIds; } - public void setCalFnIds(List calFnIds) { + public void setCalFnIds(List calFnIds) { this.calFnIds = calFnIds; } - public AtomicIndexVO withL1Id(Long l1Id) { + public AtomicIndexVO withL1Id(String l1Id) { this.l1Id = l1Id; return this; } /** - * 主题域分组ID。 + * 主题域分组ID,只读,填写String类型替代Long类型。 * @return l1Id */ - public Long getL1Id() { + public String getL1Id() { return l1Id; } - public void setL1Id(Long l1Id) { + public void setL1Id(String l1Id) { this.l1Id = l1Id; } @@ -309,7 +309,7 @@ public AtomicIndexVO withL3Id(String l3Id) { } /** - * 业务对象guid。 + * 业务对象guid,填写String类型替代Long类型。 * @return l3Id */ public String getL3Id() { @@ -326,7 +326,7 @@ public AtomicIndexVO withTableId(String tableId) { } /** - * 表ID。 + * 事实表ID,填写String类型替代Long类型。 * @return tableId */ public String getTableId() { @@ -343,7 +343,7 @@ public AtomicIndexVO withTbName(String tbName) { } /** - * 表名称。 + * 事实表名称。 * @return tbName */ public String getTbName() { @@ -371,12 +371,12 @@ public void setDwType(String dwType) { this.dwType = dwType; } - public AtomicIndexVO withFieldIds(List fieldIds) { + public AtomicIndexVO withFieldIds(List fieldIds) { this.fieldIds = fieldIds; return this; } - public AtomicIndexVO addFieldIdsItem(Long fieldIdsItem) { + public AtomicIndexVO addFieldIdsItem(String fieldIdsItem) { if (this.fieldIds == null) { this.fieldIds = new ArrayList<>(); } @@ -384,7 +384,7 @@ public AtomicIndexVO addFieldIdsItem(Long fieldIdsItem) { return this; } - public AtomicIndexVO withFieldIds(Consumer> fieldIdsSetter) { + public AtomicIndexVO withFieldIds(Consumer> fieldIdsSetter) { if (this.fieldIds == null) { this.fieldIds = new ArrayList<>(); } @@ -393,14 +393,14 @@ public AtomicIndexVO withFieldIds(Consumer> fieldIdsSetter) { } /** - * 字段ID信息。 + * 字段ID信息,填写String类型替代Long类型。 * @return fieldIds */ - public List getFieldIds() { + public List getFieldIds() { return fieldIds; } - public void setFieldIds(List fieldIds) { + public void setFieldIds(List fieldIds) { this.fieldIds = fieldIds; } @@ -477,7 +477,7 @@ public AtomicIndexVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -494,7 +494,7 @@ public AtomicIndexVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOfflineResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOfflineResponse.java index f19b1af3c3..7bc7c2ccc6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOfflineResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOfflineResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class BatchOfflineResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private BatchOfflineResultData data; - public BatchOfflineResponse withData(Object data) { + public BatchOfflineResponse withData(BatchOfflineResultData data) { this.data = data; return this; } + public BatchOfflineResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new BatchOfflineResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public BatchOfflineResultData getData() { return data; } - public void setData(Object data) { + public void setData(BatchOfflineResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOfflineResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOfflineResultData.java new file mode 100644 index 0000000000..c1a6dd5a53 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOfflineResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.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 BatchOfflineResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private BatchOperationVO value; + + public BatchOfflineResultData withValue(BatchOperationVO value) { + this.value = value; + return this; + } + + public BatchOfflineResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new BatchOperationVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public BatchOperationVO getValue() { + return value; + } + + public void setValue(BatchOperationVO 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; + } + BatchOfflineResultData that = (BatchOfflineResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchOfflineResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOperationVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOperationVO.java index 7b4390baba..947246d943 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOperationVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchOperationVO.java @@ -14,14 +14,14 @@ import java.util.function.Consumer; /** - * BatchOperationVO + * 批量操作对象,只读。 */ public class BatchOperationVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tenant_id") @@ -31,7 +31,7 @@ public class BatchOperationVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "group_id") - private Long groupId; + private String groupId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_name") @@ -41,10 +41,10 @@ public class BatchOperationVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_id") - private Long bizId; + private String bizId; /** - * 操作结果类型枚举。RUNNING(运行中)、SUCCESS(操作成功)、FAILED(操作失败)。 + * 操作结果类型枚举。RUNNING(运行中)、SUCCESS(操作成功)、FAILED(操作失败)。 枚举值: - RUNNING: 运行中 - SUCCESS: 操作成功 - FAILED: 操作失败 */ public static final class OperationStatusEnum { @@ -174,20 +174,20 @@ public int hashCode() { private List groups = null; - public BatchOperationVO withId(Long id) { + public BatchOperationVO withId(String id) { this.id = id; return this; } /** - * 批量审批ID。 + * 批量审批ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -208,20 +208,20 @@ public void setTenantId(String tenantId) { this.tenantId = tenantId; } - public BatchOperationVO withGroupId(Long groupId) { + public BatchOperationVO withGroupId(String groupId) { this.groupId = groupId; return this; } /** - * 组ID。 + * 组ID,填写String类型替代Long类型。 * @return groupId */ - public Long getGroupId() { + public String getGroupId() { return groupId; } - public void setGroupId(Long groupId) { + public void setGroupId(String groupId) { this.groupId = groupId; } @@ -242,20 +242,20 @@ public void setBizName(String bizName) { this.bizName = bizName; } - public BatchOperationVO withBizId(Long bizId) { + public BatchOperationVO withBizId(String bizId) { this.bizId = bizId; return this; } /** - * 业务ID。 + * 业务ID,填写String类型替代Long类型。 * @return bizId */ - public Long getBizId() { + public String getBizId() { return bizId; } - public void setBizId(Long bizId) { + public void setBizId(String bizId) { this.bizId = bizId; } @@ -265,7 +265,7 @@ public BatchOperationVO withOperationStatus(OperationStatusEnum operationStatus) } /** - * 操作结果类型枚举。RUNNING(运行中)、SUCCESS(操作成功)、FAILED(操作失败)。 + * 操作结果类型枚举。RUNNING(运行中)、SUCCESS(操作成功)、FAILED(操作失败)。 枚举值: - RUNNING: 运行中 - SUCCESS: 操作成功 - FAILED: 操作失败 * @return operationStatus */ public OperationStatusEnum getOperationStatus() { @@ -367,7 +367,7 @@ public BatchOperationVO withSuccess(Integer success) { } /** - * 成功个数。 + * 操作成功个数。 * @return success */ public Integer getSuccess() { @@ -384,7 +384,7 @@ public BatchOperationVO withFailed(Integer failed) { } /** - * 失败个数。 + * 操作失败个数。 * @return failed */ public Integer getFailed() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchPublishResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchPublishResponse.java index 26dd0cea12..a89d84e634 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchPublishResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchPublishResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class BatchPublishResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private BatchPublishResultData data; - public BatchPublishResponse withData(Object data) { + public BatchPublishResponse withData(BatchPublishResultData data) { this.data = data; return this; } + public BatchPublishResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new BatchPublishResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public BatchPublishResultData getData() { return data; } - public void setData(Object data) { + public void setData(BatchPublishResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchPublishResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchPublishResultData.java new file mode 100644 index 0000000000..06c690aba8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BatchPublishResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.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 BatchPublishResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private BatchOperationVO value; + + public BatchPublishResultData withValue(BatchOperationVO value) { + this.value = value; + return this; + } + + public BatchPublishResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new BatchOperationVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public BatchOperationVO getValue() { + return value; + } + + public void setValue(BatchOperationVO 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; + } + BatchPublishResultData that = (BatchPublishResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchPublishResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizCatalogVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizCatalogVO.java index 438713999e..94ed566698 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizCatalogVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizCatalogVO.java @@ -37,22 +37,22 @@ public class BizCatalogVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "parent_id") - private Long parentId; + private String parentId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "prev_id") - private Long prevId; + private String prevId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "next_id") - private Long nextId; + private String nextId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "qualified_id") @@ -162,71 +162,71 @@ public void setOwner(String owner) { this.owner = owner; } - public BizCatalogVO withParentId(Long parentId) { + public BizCatalogVO withParentId(String parentId) { this.parentId = parentId; return this; } /** - * 父目录ID,没有则为根目录。 + * 父目录ID,没有则为根目录。填写String类型替代Long类型。 * @return parentId */ - public Long getParentId() { + public String getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(String parentId) { this.parentId = parentId; } - public BizCatalogVO withPrevId(Long prevId) { + public BizCatalogVO withPrevId(String prevId) { this.prevId = prevId; return this; } /** - * 上个节点ID,没有则为首节点。 + * 上个节点ID,没有则为首节点。填写String类型替代Long类型。 * @return prevId */ - public Long getPrevId() { + public String getPrevId() { return prevId; } - public void setPrevId(Long prevId) { + public void setPrevId(String prevId) { this.prevId = prevId; } - public BizCatalogVO withNextId(Long nextId) { + public BizCatalogVO withNextId(String nextId) { this.nextId = nextId; return this; } /** - * 下个节点ID,没有则为尾节点。 + * 下个节点ID,没有则为尾节点。填写String类型替代Long类型。 * @return nextId */ - public Long getNextId() { + public String getNextId() { return nextId; } - public void setNextId(Long nextId) { + public void setNextId(String nextId) { this.nextId = nextId; } - public BizCatalogVO withId(Long id) { + public BizCatalogVO withId(String id) { this.id = id; return this; } /** - * 创建时传空,更新时必填。 + * 创建时传空,更新时必填。填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -287,7 +287,7 @@ public BizCatalogVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -304,7 +304,7 @@ public BizCatalogVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -371,7 +371,7 @@ public BizCatalogVO withChildren(Consumer> childrenSetter) { } /** - * 下层子目录。 + * 下层子目录,只读。 * @return children */ public List getChildren() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizDatasourceRelationVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizDatasourceRelationVO.java new file mode 100644 index 0000000000..3a130ac7f5 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizDatasourceRelationVO.java @@ -0,0 +1,260 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 数据源信息。 + */ +public class BizDatasourceRelationVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "biz_id") + + private String bizId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "biz_type") + + private BizTypeEnum bizType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_type") + + private String dwType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_id") + + private String dwId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_name") + + private String dwName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private String queueName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + public BizDatasourceRelationVO withId(String id) { + this.id = id; + return this; + } + + /** + * 编码,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BizDatasourceRelationVO withBizId(String bizId) { + this.bizId = bizId; + return this; + } + + /** + * 业务对象信息,填写String类型替代Long类型。 + * @return bizId + */ + public String getBizId() { + return bizId; + } + + public void setBizId(String bizId) { + this.bizId = bizId; + } + + public BizDatasourceRelationVO withBizType(BizTypeEnum bizType) { + this.bizType = bizType; + return this; + } + + /** + * Get bizType + * @return bizType + */ + public BizTypeEnum getBizType() { + return bizType; + } + + public void setBizType(BizTypeEnum bizType) { + this.bizType = bizType; + } + + public BizDatasourceRelationVO withDwType(String dwType) { + this.dwType = dwType; + return this; + } + + /** + * 数据连接类型,对应表所在的数仓类型,取值可以为DLI、DWS、MRS_HIVE、POSTGRESQL、MRS_SPARK、CLICKHOUSE、MYSQL、ORACLE和DORIS等。 + * @return dwType + */ + public String getDwType() { + return dwType; + } + + public void setDwType(String dwType) { + this.dwType = dwType; + } + + public BizDatasourceRelationVO withDwId(String dwId) { + this.dwId = dwId; + return this; + } + + /** + * 数据连接ID。 + * @return dwId + */ + public String getDwId() { + return dwId; + } + + public void setDwId(String dwId) { + this.dwId = dwId; + } + + public BizDatasourceRelationVO withDwName(String dwName) { + this.dwName = dwName; + return this; + } + + /** + * 数据连接名,只读。 + * @return dwName + */ + public String getDwName() { + return dwName; + } + + public void setDwName(String dwName) { + this.dwName = dwName; + } + + public BizDatasourceRelationVO withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 数据库名。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public BizDatasourceRelationVO withQueueName(String queueName) { + this.queueName = queueName; + return this; + } + + /** + * dli数据连接执行sql所需的队列,数据连接类型为DLI时必须。 + * @return queueName + */ + public String getQueueName() { + return queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + } + + public BizDatasourceRelationVO withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * DWS类型需要。 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BizDatasourceRelationVO that = (BizDatasourceRelationVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.bizId, that.bizId) + && Objects.equals(this.bizType, that.bizType) && Objects.equals(this.dwType, that.dwType) + && Objects.equals(this.dwId, that.dwId) && Objects.equals(this.dwName, that.dwName) + && Objects.equals(this.dbName, that.dbName) && Objects.equals(this.queueName, that.queueName) + && Objects.equals(this.schema, that.schema); + } + + @Override + public int hashCode() { + return Objects.hash(id, bizId, bizType, dwType, dwId, dwName, dbName, queueName, schema); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BizDatasourceRelationVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" bizId: ").append(toIndentedString(bizId)).append("\n"); + sb.append(" bizType: ").append(toIndentedString(bizType)).append("\n"); + sb.append(" dwType: ").append(toIndentedString(dwType)).append("\n"); + sb.append(" dwId: ").append(toIndentedString(dwId)).append("\n"); + sb.append(" dwName: ").append(toIndentedString(dwName)).append("\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizInfoVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizInfoVO.java index da1c4112af..ba96180240 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizInfoVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizInfoVO.java @@ -13,27 +13,32 @@ public class BizInfoVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_id") - private Long bizId; + private String bizId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_type") private BizTypeEnum bizType; - public BizInfoVO withBizId(Long bizId) { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + + public BizInfoVO withBizId(String bizId) { this.bizId = bizId; return this; } /** - * 业务ID。 + * 业务ID,填写String类型替代Long类型。 * @return bizId */ - public Long getBizId() { + public String getBizId() { return bizId; } - public void setBizId(Long bizId) { + public void setBizId(String bizId) { this.bizId = bizId; } @@ -54,6 +59,23 @@ public void setBizType(BizTypeEnum bizType) { this.bizType = bizType; } + public BizInfoVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -63,12 +85,13 @@ public boolean equals(java.lang.Object obj) { return false; } BizInfoVO that = (BizInfoVO) obj; - return Objects.equals(this.bizId, that.bizId) && Objects.equals(this.bizType, that.bizType); + return Objects.equals(this.bizId, that.bizId) && Objects.equals(this.bizType, that.bizType) + && Objects.equals(this.envType, that.envType); } @Override public int hashCode() { - return Objects.hash(bizId, bizType); + return Objects.hash(bizId, bizType, envType); } @Override @@ -77,6 +100,7 @@ public String toString() { sb.append("class BizInfoVO {\n"); sb.append(" bizId: ").append(toIndentedString(bizId)).append("\n"); sb.append(" bizType: ").append(toIndentedString(bizType)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizMetricVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizMetricVO.java index b07e08bc8f..3b4655b9dd 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizMetricVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizMetricVO.java @@ -6,8 +6,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -20,7 +22,7 @@ public class BizMetricVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -50,7 +52,7 @@ public class BizMetricVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_catalog_id") - private Long bizCatalogId; + private String bizCatalogId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_catalog_path") @@ -93,7 +95,7 @@ public class BizMetricVO { private String generalFilters; /** - * 刷新频率。MINUTE(每分钟)、HOUR(每小时)、DAY(每天)、WEEK(每周)、MONTH(每月)、YEAR(每年)、REAL_TIME(实时)、HALF_HOUR(每半小时)、QUART(每15分钟)、DOUBLE_WEEK(每两周)、HALF_YEAR(每半年)、HALF_DAY(每半天)。 + * 刷新频率。 枚举值: - MINUTE: 每分钟 - HOUR: 每小时 - DAY: 每天 - WEEK: 每周 - MONTH: 每月 - YEAR: 每年 - REAL_TIME: 实时 - HALF_HOUR: 每半小时 - QUART: 每15分钟 - DOUBLE_WEEK: 每两周 - HALF_YEAR: 每半年 - HALF_DAY: 每半天 */ public static final class IntervalTypeEnum { @@ -235,7 +237,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "technical_metric") - private Long technicalMetric; + private String technicalMetric; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "technical_metric_name") @@ -332,20 +334,25 @@ public int hashCode() { private SyncStatusEnum summaryStatus; - public BizMetricVO withId(Long id) { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "self_defined_fields") + + private List selfDefinedFields = null; + + public BizMetricVO withId(String id) { this.id = id; return this; } /** - * 编码,更新时必填,创建是为空。 + * 编码,更新时必填,创建时为空,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -372,7 +379,7 @@ public BizMetricVO withCode(String code) { } /** - * 指标编码。 + * 指标编码,只读。 * @return code */ public String getCode() { @@ -434,20 +441,20 @@ public void setStatus(BizStatusEnum status) { this.status = status; } - public BizMetricVO withBizCatalogId(Long bizCatalogId) { + public BizMetricVO withBizCatalogId(String bizCatalogId) { this.bizCatalogId = bizCatalogId; return this; } /** - * 归属的流程架构的ID。 + * 归属的流程架构的ID,填写String类型替代Long类型。 * @return bizCatalogId */ - public Long getBizCatalogId() { + public String getBizCatalogId() { return bizCatalogId; } - public void setBizCatalogId(Long bizCatalogId) { + public void setBizCatalogId(String bizCatalogId) { this.bizCatalogId = bizCatalogId; } @@ -457,7 +464,7 @@ public BizMetricVO withBizCatalogPath(String bizCatalogPath) { } /** - * 归属的流程架构路径。 + * 归属的流程架构路径,只读。 * @return bizCatalogPath */ public String getBizCatalogPath() { @@ -474,7 +481,7 @@ public BizMetricVO withCreateBy(String createBy) { } /** - * 创建人。 + * 创建人,只读。 * @return createBy */ public String getCreateBy() { @@ -491,7 +498,7 @@ public BizMetricVO withUpdateBy(String updateBy) { } /** - * 更新人。 + * 更新人,只读。 * @return updateBy */ public String getUpdateBy() { @@ -593,7 +600,7 @@ public BizMetricVO withIntervalType(IntervalTypeEnum intervalType) { } /** - * 刷新频率。MINUTE(每分钟)、HOUR(每小时)、DAY(每天)、WEEK(每周)、MONTH(每月)、YEAR(每年)、REAL_TIME(实时)、HALF_HOUR(每半小时)、QUART(每15分钟)、DOUBLE_WEEK(每两周)、HALF_YEAR(每半年)、HALF_DAY(每半天)。 + * 刷新频率。 枚举值: - MINUTE: 每分钟 - HOUR: 每小时 - DAY: 每天 - WEEK: 每周 - MONTH: 每月 - YEAR: 每年 - REAL_TIME: 实时 - HALF_HOUR: 每半小时 - QUART: 每15分钟 - DOUBLE_WEEK: 每两周 - HALF_YEAR: 每半年 - HALF_DAY: 每半天 * @return intervalType */ public IntervalTypeEnum getIntervalType() { @@ -621,20 +628,20 @@ public void setApplyScenario(String applyScenario) { this.applyScenario = applyScenario; } - public BizMetricVO withTechnicalMetric(Long technicalMetric) { + public BizMetricVO withTechnicalMetric(String technicalMetric) { this.technicalMetric = technicalMetric; return this; } /** - * 关联技术指标。 + * 关联技术指标,填写String类型替代Long类型。 * @return technicalMetric */ - public Long getTechnicalMetric() { + public String getTechnicalMetric() { return technicalMetric; } - public void setTechnicalMetric(Long technicalMetric) { + public void setTechnicalMetric(String technicalMetric) { this.technicalMetric = technicalMetric; } @@ -644,7 +651,7 @@ public BizMetricVO withTechnicalMetricName(String technicalMetricName) { } /** - * 关联技术指标名称。 + * 关联技术指标名称,只读。 * @return technicalMetricName */ public String getTechnicalMetricName() { @@ -746,7 +753,7 @@ public BizMetricVO withGuid(String guid) { } /** - * 资产同步后的guid。 + * 资产同步后的guid,只读。 * @return guid */ public String getGuid() { @@ -866,7 +873,7 @@ public BizMetricVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -883,7 +890,7 @@ public BizMetricVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -979,6 +986,39 @@ public void setSummaryStatus(SyncStatusEnum summaryStatus) { this.summaryStatus = summaryStatus; } + public BizMetricVO withSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + return this; + } + + public BizMetricVO addSelfDefinedFieldsItem(SelfDefinedFieldVO selfDefinedFieldsItem) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + this.selfDefinedFields.add(selfDefinedFieldsItem); + return this; + } + + public BizMetricVO withSelfDefinedFields(Consumer> selfDefinedFieldsSetter) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + selfDefinedFieldsSetter.accept(this.selfDefinedFields); + return this; + } + + /** + * 自定义项 + * @return selfDefinedFields + */ + public List getSelfDefinedFields() { + return selfDefinedFields; + } + + public void setSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1010,7 +1050,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.newBiz, that.newBiz) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.l1, that.l1) && Objects.equals(this.l2, that.l2) && Objects.equals(this.l3, that.l3) - && Objects.equals(this.bizMetric, that.bizMetric) && Objects.equals(this.summaryStatus, that.summaryStatus); + && Objects.equals(this.bizMetric, that.bizMetric) && Objects.equals(this.summaryStatus, that.summaryStatus) + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields); } @Override @@ -1051,7 +1092,8 @@ public int hashCode() { l2, l3, bizMetric, - summaryStatus); + summaryStatus, + selfDefinedFields); } @Override @@ -1095,6 +1137,7 @@ public String toString() { sb.append(" l3: ").append(toIndentedString(l3)).append("\n"); sb.append(" bizMetric: ").append(toIndentedString(bizMetric)).append("\n"); sb.append(" summaryStatus: ").append(toIndentedString(summaryStatus)).append("\n"); + sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizStatusEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizStatusEnum.java index 6418a6f463..acf7204d04 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizStatusEnum.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizStatusEnum.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 实体的发布状态,只读,创建和更新时无需填写。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审核)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审核)、OFFLINE(已下线)、REJECT(已驳回)。 + * 实体的发布状态,只读,创建和更新时无需填写。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审核 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审核 - OFFLINE: 已下线 - REJECT: 已驳回 */ public class BizStatusEnum { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizTypeEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizTypeEnum.java index 5cd4944ed8..17842946f0 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizTypeEnum.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizTypeEnum.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 业务实体类型。AGGREGATION_LOGIC_TABL(汇总表)、ATOMIC_INDE(原子指标)、ATOMIC_METRI(原子指标(新))、BIZ_CATALO(流程架构目录)、BIZ_METRI(业务指标)、CODE_TABL(码表)、COMMON_CONDITIO(通用限定)、COMPOSITE_METRI(复合指标(新))、COMPOUND_METRI(复合指标)、CONDITION_GROU(限定分组)、DEGENERATE_DIMENSIO(退化维度)、DERIVATIVE_INDE(衍生指标)、DERIVED_METRI(衍生指标(新))、DIMENSIO(维度)、DIMENSION_ATTRIBUT(维度属性)、DIMENSION_HIERARCHIE(维度层级)、DIMENSION_LOGIC_TABL(维度表)、DIMENSION_TABLE_ATTRIBUT(维度属性)、DIRECTOR(目录)、FACT_ATTRIBUT(事实表属性)、FACT_DIMENSIO(事实表维度)、FACT_LOGIC_TABL(事实表)、FACT_MEASUR(事实表度量)、FUNCTIO(函数)、INFO_ARC(信息架构(批量修改主题使用))、MODE(模型)、QUALITY_RUL(质量规则)、SECRECY_LEVE(密级)、STANDARD_ELEMEN(数据标准)、STANDARD_ELEMENT_TEMPLAT(数据标准模板)、SUBJEC(主题)、SUMMARY_DIMENSION_ATTRIBUT(汇总表维度属性)、SUMMARY_INDE(汇总表指标属性)、SUMMARY_TIM(汇总表时间周期属性)、TABLE_MODE(关系模型(逻辑模型/物理模型))、TABLE_MODEL_ATTRIBUT(关系模型属性(逻辑模型/物理模型))、TABLE_MODEL_LOGI(逻辑实体)、TABLE_TYP(表类型)、TA(标签)、TIME_CONDITIO(时间限定)。 + * 业务实体类型。 枚举值: - AGGREGATION_LOGIC_TABLE: 汇总表 - ATOMIC_INDEX: 原子指标 - ATOMIC_METRIC: 原子指标(新) - BIZ_CATALOG: 流程架构目录 - BIZ_METRIC: 业务指标 - CODE_TABLE: 码表 - COMMON_CONDITION: 通用限定 - COMPOSITE_METRIC: 复合指标(新) - COMPOUND_METRIC: 复合指标 - CONDITION_GROUP: 限定分组 - DEGENERATE_DIMENSION: 退化维度 - DERIVATIVE_INDEX: 衍生指标 - DERIVED_METRIC: 衍生指标(新) - DIMENSION: 维度 - DIMENSION_ATTRIBUTE: 维度属性 - DIMENSION_HIERARCHIES: 维度层级 - DIMENSION_LOGIC_TABLE: 维度表 - DIMENSION_TABLE_ATTRIBUTE: 维度属性 - DIRECTORY: 目录 - FACT_ATTRIBUTE: 事实表属性 - FACT_DIMENSION: 事实表维度 - FACT_LOGIC_TABLE: 事实表 - FACT_MEASURE: 事实表度量 - FUNCTION: 函数 - INFO_ARCH: 信息架构(批量修改主题使用) - MODEL: 模型 - QUALITY_RULE: 质量规则 - SECRECY_LEVEL: 密级 - STANDARD_ELEMENT: 数据标准 - STANDARD_ELEMENT_TEMPLATE: 数据标准模板 - SUBJECT: 主题 - SUMMARY_DIMENSION_ATTRIBUTE: 汇总表维度属性 - SUMMARY_INDEX: 汇总表指标属性 - SUMMARY_TIME: 汇总表时间周期属性 - TABLE_MODEL: 关系模型(逻辑模型/物理模型) - TABLE_MODEL_ATTRIBUTE: 关系模型属性(逻辑模型/物理模型) - TABLE_MODEL_LOGIC: 逻辑实体 - TABLE_TYPE: 表类型 - TAG: 标签 - TIME_CONDITION: 时间限定 */ public class BizTypeEnum { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizVersionManageVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizVersionManageVO.java index efa1dd230f..bad04e0242 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizVersionManageVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/BizVersionManageVO.java @@ -7,14 +7,14 @@ import java.util.Objects; /** - * 业务版本管理。 + * 业务版本管理,只读。 */ public class BizVersionManageVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_type") @@ -24,7 +24,7 @@ public class BizVersionManageVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_id") - private Long bizId; + private String bizId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_info") @@ -51,20 +51,20 @@ public class BizVersionManageVO { private OffsetDateTime updateTime; - public BizVersionManageVO withId(Long id) { + public BizVersionManageVO withId(String id) { this.id = id; return this; } /** - * ID信息。 + * ID信息,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -85,20 +85,20 @@ public void setBizType(BizTypeEnum bizType) { this.bizType = bizType; } - public BizVersionManageVO withBizId(Long bizId) { + public BizVersionManageVO withBizId(String bizId) { this.bizId = bizId; return this; } /** - * 业务ID。 + * 业务ID,填写String类型替代Long类型。 * @return bizId */ - public Long getBizId() { + public String getBizId() { return bizId; } - public void setBizId(Long bizId) { + public void setBizId(String bizId) { this.bizId = bizId; } @@ -142,7 +142,7 @@ public BizVersionManageVO withBizVersion(Integer bizVersion) { } /** - * 业务版本。 + * 业务版本,只读。 * @return bizVersion */ public Integer getBizVersion() { @@ -159,7 +159,7 @@ public BizVersionManageVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -176,7 +176,7 @@ public BizVersionManageVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogAttributeVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogAttributeVO.java index 643c7d72e4..dc62e3685b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogAttributeVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogAttributeVO.java @@ -129,7 +129,7 @@ public CatalogAttributeVO withPath(String path) { } /** - * 路径。 + * 路径。用“/”作为分隔,如:运营领域/云学院/云学院培训方案。 * @return path */ public String getPath() { @@ -146,7 +146,7 @@ public CatalogAttributeVO withQualifiedName(String qualifiedName) { } /** - * 名称。 + * 资产名称。 * @return qualifiedName */ public String getQualifiedName() { @@ -426,7 +426,7 @@ public CatalogAttributeVO withL1(Boolean l1) { } /** - * 是否为L1层。 + * 是否为L1层。主题域分组。 * @return l1 */ public Boolean getL1() { @@ -443,7 +443,7 @@ public CatalogAttributeVO withL2(Boolean l2) { } /** - * 是否为L2层。 + * 是否为L2层。主题域。 * @return l2 */ public Boolean getL2() { @@ -460,7 +460,7 @@ public CatalogAttributeVO withL3(Boolean l3) { } /** - * 是否为L3层。 + * 是否为L3层。业务对象。 * @return l3 */ public Boolean getL3() { @@ -477,7 +477,7 @@ public CatalogAttributeVO withOrdinal(Integer ordinal) { } /** - * 顺序编号。 + * 顺序编号。主题返回时根据此编号由小到大排序。 * @return ordinal */ public Integer getOrdinal() { @@ -494,7 +494,7 @@ public CatalogAttributeVO withTenantId(String tenantId) { } /** - * 租户ID。 + * 租户ID。获取方式参考此接口的路径参数“project_id”获取。 * @return tenantId */ public String getTenantId() { @@ -527,7 +527,7 @@ public CatalogAttributeVO withSelfDefinedFields(Consumer getSelfDefinedFields() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogEntityVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogEntityVO.java index b6cb1b859d..d2d7a499d8 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogEntityVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogEntityVO.java @@ -27,7 +27,7 @@ public CatalogEntityVO withTypeName(String typeName) { } /** - * 类型名称,填写“BusinessCatalog”即可。 + * 类型名称,填写“BusinessCatalog”即可(业务分层)。 * @return typeName */ public String getTypeName() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogLevelVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogLevelVO.java index 430e38287d..6e5ccc78e2 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogLevelVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogLevelVO.java @@ -13,7 +13,7 @@ public class CatalogLevelVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "level") @@ -30,20 +30,20 @@ public class CatalogLevelVO { private String nameEn; - public CatalogLevelVO withId(Long id) { + public CatalogLevelVO withId(String id) { this.id = id; return this; } /** - * 编号。 + * 编号,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -53,7 +53,7 @@ public CatalogLevelVO withLevel(Integer level) { } /** - * 层级。 + * 层级。取值范围为1-7。 * @return level */ public Integer getLevel() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogVO.java new file mode 100644 index 0000000000..0f92bb2dc5 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CatalogVO.java @@ -0,0 +1,779 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * 主题目录。 + */ +public class CatalogVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_ch") + + private String nameCh; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_en") + + private String nameEn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "qualified_name") + + private String qualifiedName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "guid") + + private String guid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private BizStatusEnum status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_biz") + + private BizVersionManageVO newBiz; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_owner") + + private String dataOwner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_owner_list") + + private String dataOwnerList; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_department") + + private String dataDepartment; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "path") + + private String path; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "level") + + private Integer level; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ordinal") + + private Integer ordinal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "parent_id") + + private String parentId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "swap_order_id") + + private String swapOrderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "qualified_id") + + private String qualifiedId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "from_public") + + private Boolean fromPublic; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_by") + + private String updateBy; + + @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 = "children_num") + + private Integer childrenNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "children") + + private List children = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "self_defined_fields") + + private List selfDefinedFields = null; + + public CatalogVO withNameCh(String nameCh) { + this.nameCh = nameCh; + return this; + } + + /** + * 中文名称。 + * @return nameCh + */ + public String getNameCh() { + return nameCh; + } + + public void setNameCh(String nameCh) { + this.nameCh = nameCh; + } + + public CatalogVO withNameEn(String nameEn) { + this.nameEn = nameEn; + return this; + } + + /** + * 英文名称。 + * @return nameEn + */ + public String getNameEn() { + return nameEn; + } + + public void setNameEn(String nameEn) { + this.nameEn = nameEn; + } + + public CatalogVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述信息。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CatalogVO withQualifiedName(String qualifiedName) { + this.qualifiedName = qualifiedName; + return this; + } + + /** + * 扩展名。 + * @return qualifiedName + */ + public String getQualifiedName() { + return qualifiedName; + } + + public void setQualifiedName(String qualifiedName) { + this.qualifiedName = qualifiedName; + } + + public CatalogVO withGuid(String guid) { + this.guid = guid; + return this; + } + + /** + * guid,自动生成。 + * @return guid + */ + public String getGuid() { + return guid; + } + + public void setGuid(String guid) { + this.guid = guid; + } + + public CatalogVO withCode(String code) { + this.code = code; + return this; + } + + /** + * 编码。 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public CatalogVO withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 别名。 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public CatalogVO withStatus(BizStatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public BizStatusEnum getStatus() { + return status; + } + + public void setStatus(BizStatusEnum status) { + this.status = status; + } + + public CatalogVO withNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + return this; + } + + public CatalogVO withNewBiz(Consumer newBizSetter) { + if (this.newBiz == null) { + this.newBiz = new BizVersionManageVO(); + newBizSetter.accept(this.newBiz); + } + + return this; + } + + /** + * Get newBiz + * @return newBiz + */ + public BizVersionManageVO getNewBiz() { + return newBiz; + } + + public void setNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + } + + public CatalogVO withDataOwner(String dataOwner) { + this.dataOwner = dataOwner; + return this; + } + + /** + * 数据所有者。 + * @return dataOwner + */ + public String getDataOwner() { + return dataOwner; + } + + public void setDataOwner(String dataOwner) { + this.dataOwner = dataOwner; + } + + public CatalogVO withDataOwnerList(String dataOwnerList) { + this.dataOwnerList = dataOwnerList; + return this; + } + + /** + * 数据所有者集合。 + * @return dataOwnerList + */ + public String getDataOwnerList() { + return dataOwnerList; + } + + public void setDataOwnerList(String dataOwnerList) { + this.dataOwnerList = dataOwnerList; + } + + public CatalogVO withDataDepartment(String dataDepartment) { + this.dataDepartment = dataDepartment; + return this; + } + + /** + * 数据域。 + * @return dataDepartment + */ + public String getDataDepartment() { + return dataDepartment; + } + + public void setDataDepartment(String dataDepartment) { + this.dataDepartment = dataDepartment; + } + + public CatalogVO withPath(String path) { + this.path = path; + return this; + } + + /** + * 路径信息。 + * @return path + */ + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public CatalogVO withLevel(Integer level) { + this.level = level; + return this; + } + + /** + * 层级信息。 + * @return level + */ + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public CatalogVO withOrdinal(Integer ordinal) { + this.ordinal = ordinal; + return this; + } + + /** + * 序号。 + * @return ordinal + */ + public Integer getOrdinal() { + return ordinal; + } + + public void setOrdinal(Integer ordinal) { + this.ordinal = ordinal; + } + + public CatalogVO withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 责任人。 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public CatalogVO withParentId(String parentId) { + this.parentId = parentId; + return this; + } + + /** + * 父目录ID,木有则为根目录,填写String类型替代Long类型。 + * @return parentId + */ + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public CatalogVO withSwapOrderId(String swapOrderId) { + this.swapOrderId = swapOrderId; + return this; + } + + /** + * 同层排序,目标节点的ID,填写String类型替代Long类型。 + * @return swapOrderId + */ + public String getSwapOrderId() { + return swapOrderId; + } + + public void setSwapOrderId(String swapOrderId) { + this.swapOrderId = swapOrderId; + } + + public CatalogVO withId(String id) { + this.id = id; + return this; + } + + /** + * 主题ID,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CatalogVO withQualifiedId(String qualifiedId) { + this.qualifiedId = qualifiedId; + return this; + } + + /** + * 认证ID,自动生成。 + * @return qualifiedId + */ + public String getQualifiedId() { + return qualifiedId; + } + + public void setQualifiedId(String qualifiedId) { + this.qualifiedId = qualifiedId; + } + + public CatalogVO withFromPublic(Boolean fromPublic) { + this.fromPublic = fromPublic; + return this; + } + + /** + * 是否来自公共层。 + * @return fromPublic + */ + public Boolean getFromPublic() { + return fromPublic; + } + + public void setFromPublic(Boolean fromPublic) { + this.fromPublic = fromPublic; + } + + public CatalogVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public CatalogVO withUpdateBy(String updateBy) { + this.updateBy = updateBy; + return this; + } + + /** + * 更新人。 + * @return updateBy + */ + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public CatalogVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public CatalogVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public CatalogVO withChildrenNum(Integer childrenNum) { + this.childrenNum = childrenNum; + return this; + } + + /** + * 拥有子流程的数量,不包括子流程的子流程,前端不传。 + * @return childrenNum + */ + public Integer getChildrenNum() { + return childrenNum; + } + + public void setChildrenNum(Integer childrenNum) { + this.childrenNum = childrenNum; + } + + public CatalogVO withChildren(List children) { + this.children = children; + return this; + } + + public CatalogVO addChildrenItem(CatalogVO childrenItem) { + if (this.children == null) { + this.children = new ArrayList<>(); + } + this.children.add(childrenItem); + return this; + } + + public CatalogVO withChildren(Consumer> childrenSetter) { + if (this.children == null) { + this.children = new ArrayList<>(); + } + childrenSetter.accept(this.children); + return this; + } + + /** + * 下层子目录,只读。 + * @return children + */ + public List getChildren() { + return children; + } + + public void setChildren(List children) { + this.children = children; + } + + public CatalogVO withSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + return this; + } + + public CatalogVO addSelfDefinedFieldsItem(SelfDefinedFieldVO selfDefinedFieldsItem) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + this.selfDefinedFields.add(selfDefinedFieldsItem); + return this; + } + + public CatalogVO withSelfDefinedFields(Consumer> selfDefinedFieldsSetter) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + selfDefinedFieldsSetter.accept(this.selfDefinedFields); + return this; + } + + /** + * 属性自定义项。 + * @return selfDefinedFields + */ + public List getSelfDefinedFields() { + return selfDefinedFields; + } + + public void setSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CatalogVO that = (CatalogVO) obj; + return Objects.equals(this.nameCh, that.nameCh) && Objects.equals(this.nameEn, that.nameEn) + && Objects.equals(this.description, that.description) + && Objects.equals(this.qualifiedName, that.qualifiedName) && Objects.equals(this.guid, that.guid) + && Objects.equals(this.code, that.code) && Objects.equals(this.alias, that.alias) + && Objects.equals(this.status, that.status) && Objects.equals(this.newBiz, that.newBiz) + && Objects.equals(this.dataOwner, that.dataOwner) && Objects.equals(this.dataOwnerList, that.dataOwnerList) + && Objects.equals(this.dataDepartment, that.dataDepartment) && Objects.equals(this.path, that.path) + && Objects.equals(this.level, that.level) && Objects.equals(this.ordinal, that.ordinal) + && Objects.equals(this.owner, that.owner) && Objects.equals(this.parentId, that.parentId) + && Objects.equals(this.swapOrderId, that.swapOrderId) && Objects.equals(this.id, that.id) + && Objects.equals(this.qualifiedId, that.qualifiedId) && Objects.equals(this.fromPublic, that.fromPublic) + && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.updateBy, that.updateBy) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.childrenNum, that.childrenNum) && Objects.equals(this.children, that.children) + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields); + } + + @Override + public int hashCode() { + return Objects.hash(nameCh, + nameEn, + description, + qualifiedName, + guid, + code, + alias, + status, + newBiz, + dataOwner, + dataOwnerList, + dataDepartment, + path, + level, + ordinal, + owner, + parentId, + swapOrderId, + id, + qualifiedId, + fromPublic, + createBy, + updateBy, + createTime, + updateTime, + childrenNum, + children, + selfDefinedFields); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CatalogVO {\n"); + sb.append(" nameCh: ").append(toIndentedString(nameCh)).append("\n"); + sb.append(" nameEn: ").append(toIndentedString(nameEn)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" qualifiedName: ").append(toIndentedString(qualifiedName)).append("\n"); + sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" newBiz: ").append(toIndentedString(newBiz)).append("\n"); + sb.append(" dataOwner: ").append(toIndentedString(dataOwner)).append("\n"); + sb.append(" dataOwnerList: ").append(toIndentedString(dataOwnerList)).append("\n"); + sb.append(" dataDepartment: ").append(toIndentedString(dataDepartment)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" ordinal: ").append(toIndentedString(ordinal)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append(" swapOrderId: ").append(toIndentedString(swapOrderId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" qualifiedId: ").append(toIndentedString(qualifiedId)).append("\n"); + sb.append(" fromPublic: ").append(toIndentedString(fromPublic)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" updateBy: ").append(toIndentedString(updateBy)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" childrenNum: ").append(toIndentedString(childrenNum)).append("\n"); + sb.append(" children: ").append(toIndentedString(children)).append("\n"); + sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeCatalogResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeCatalogResponse.java index cf99818e5f..2ae63b197b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeCatalogResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeCatalogResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ChangeCatalogResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateCatalogResultData data; - public ChangeCatalogResponse withData(Object data) { + public ChangeCatalogResponse withData(CreateCatalogResultData data) { this.data = data; return this; } + public ChangeCatalogResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateCatalogResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateCatalogResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateCatalogResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeSubjectsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeSubjectsResponse.java index 29aea2fa16..e7fcd56a3a 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeSubjectsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeSubjectsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ChangeSubjectsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ChangeSubjectsResultData data; - public ChangeSubjectsResponse withData(Object data) { + public ChangeSubjectsResponse withData(ChangeSubjectsResultData data) { this.data = data; return this; } + public ChangeSubjectsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ChangeSubjectsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ChangeSubjectsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ChangeSubjectsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeSubjectsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeSubjectsResultData.java new file mode 100644 index 0000000000..5e4f46bf4b --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ChangeSubjectsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ChangeSubjectsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private CatalogLevelVOList value; + + public ChangeSubjectsResultData withValue(CatalogLevelVOList value) { + this.value = value; + return this; + } + + public ChangeSubjectsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new CatalogLevelVOList(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public CatalogLevelVOList getValue() { + return value; + } + + public void setValue(CatalogLevelVOList 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; + } + ChangeSubjectsResultData that = (ChangeSubjectsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeSubjectsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckDimensionStatusResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckDimensionStatusResponse.java index 894e4642a0..d2296feab3 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckDimensionStatusResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckDimensionStatusResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CheckDimensionStatusResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CheckDimensionStatusResultData data; - public CheckDimensionStatusResponse withData(Object data) { + public CheckDimensionStatusResponse withData(CheckDimensionStatusResultData data) { this.data = data; return this; } + public CheckDimensionStatusResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CheckDimensionStatusResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CheckDimensionStatusResultData getData() { return data; } - public void setData(Object data) { + public void setData(CheckDimensionStatusResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckDimensionStatusResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckDimensionStatusResultData.java new file mode 100644 index 0000000000..3a3e0e0f11 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckDimensionStatusResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CheckDimensionStatusResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private BatchOperationVO value; + + public CheckDimensionStatusResultData withValue(BatchOperationVO value) { + this.value = value; + return this; + } + + public CheckDimensionStatusResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new BatchOperationVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public BatchOperationVO getValue() { + return value; + } + + public void setValue(BatchOperationVO 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; + } + CheckDimensionStatusResultData that = (CheckDimensionStatusResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckDimensionStatusResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckFactLogicTableStatusResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckFactLogicTableStatusResponse.java index ab89cfe171..8b8f499927 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckFactLogicTableStatusResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CheckFactLogicTableStatusResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CheckFactLogicTableStatusResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CheckDimensionStatusResultData data; - public CheckFactLogicTableStatusResponse withData(Object data) { + public CheckFactLogicTableStatusResponse withData(CheckDimensionStatusResultData data) { this.data = data; return this; } + public CheckFactLogicTableStatusResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CheckDimensionStatusResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CheckDimensionStatusResultData getData() { return data; } - public void setData(Object data) { + public void setData(CheckDimensionStatusResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldVO.java index 90a71f5428..5c8a2b2c5d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldVO.java @@ -16,12 +16,12 @@ public class CodeTableFieldVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "code_table_id") - private Long codeTableId; + private String codeTableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ordinal") @@ -73,37 +73,37 @@ public class CodeTableFieldVO { private Integer countFieldValues; - public CodeTableFieldVO withId(Long id) { + public CodeTableFieldVO withId(String id) { this.id = id; return this; } /** - * 码表字段ID。 + * 码表字段ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public CodeTableFieldVO withCodeTableId(Long codeTableId) { + public CodeTableFieldVO withCodeTableId(String codeTableId) { this.codeTableId = codeTableId; return this; } /** - * 所属码表ID。 + * 所属码表ID,填写String类型替代Long类型。 * @return codeTableId */ - public Long getCodeTableId() { + public String getCodeTableId() { return codeTableId; } - public void setCodeTableId(Long codeTableId) { + public void setCodeTableId(String codeTableId) { this.codeTableId = codeTableId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldValueVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldValueVO.java index c9c8cc7ab3..dd17127d90 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldValueVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableFieldValueVO.java @@ -13,12 +13,12 @@ public class CodeTableFieldValueVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fd_id") - private Long fdId; + private String fdId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fd_value") @@ -35,37 +35,37 @@ public class CodeTableFieldValueVO { private String description; - public CodeTableFieldValueVO withId(Long id) { + public CodeTableFieldValueVO withId(String id) { this.id = id; return this; } /** - * ID + * 码表字段ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public CodeTableFieldValueVO withFdId(Long fdId) { + public CodeTableFieldValueVO withFdId(String fdId) { this.fdId = fdId; return this; } /** - * 所属码表属性ID。 + * 所属码表属性ID,填写String类型替代Long类型。 * @return fdId */ - public Long getFdId() { + public String getFdId() { return fdId; } - public void setFdId(Long fdId) { + public void setFdId(String fdId) { this.fdId = fdId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableVO.java index 89c089735a..bf86e69ada 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CodeTableVO.java @@ -17,7 +17,7 @@ public class CodeTableVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name_en") @@ -37,7 +37,7 @@ public class CodeTableVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "directory_id") - private Long directoryId; + private String directoryId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "directory_path") @@ -84,20 +84,20 @@ public class CodeTableVO { private List codeTableFields = null; - public CodeTableVO withId(Long id) { + public CodeTableVO withId(String id) { this.id = id; return this; } /** - * 码表ID。 + * 码表ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -152,20 +152,20 @@ public void setTbVersion(Integer tbVersion) { this.tbVersion = tbVersion; } - public CodeTableVO withDirectoryId(Long directoryId) { + public CodeTableVO withDirectoryId(String directoryId) { this.directoryId = directoryId; return this; } /** - * 目录ID。 + * 目录ID,填写String类型替代Long类型。 * @return directoryId */ - public Long getDirectoryId() { + public String getDirectoryId() { return directoryId; } - public void setDirectoryId(Long directoryId) { + public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } @@ -243,7 +243,7 @@ public CodeTableVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -260,7 +260,7 @@ public CodeTableVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CommonConditionVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CommonConditionVO.java index 7c7f2ff3b6..0e4eedb5be 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CommonConditionVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CommonConditionVO.java @@ -36,7 +36,7 @@ public class CommonConditionVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cal_fn_ids") - private List calFnIds = null; + private List calFnIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "front_configs") @@ -46,7 +46,7 @@ public class CommonConditionVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; public CommonConditionVO withName(String name) { this.name = name; @@ -148,12 +148,12 @@ public void setCalExp(String calExp) { this.calExp = calExp; } - public CommonConditionVO withCalFnIds(List calFnIds) { + public CommonConditionVO withCalFnIds(List calFnIds) { this.calFnIds = calFnIds; return this; } - public CommonConditionVO addCalFnIdsItem(Long calFnIdsItem) { + public CommonConditionVO addCalFnIdsItem(String calFnIdsItem) { if (this.calFnIds == null) { this.calFnIds = new ArrayList<>(); } @@ -161,7 +161,7 @@ public CommonConditionVO addCalFnIdsItem(Long calFnIdsItem) { return this; } - public CommonConditionVO withCalFnIds(Consumer> calFnIdsSetter) { + public CommonConditionVO withCalFnIds(Consumer> calFnIdsSetter) { if (this.calFnIds == null) { this.calFnIds = new ArrayList<>(); } @@ -170,14 +170,14 @@ public CommonConditionVO withCalFnIds(Consumer> calFnIdsSetter) { } /** - * 引用函数ID。 + * 引用函数ID,填写String类型替代Long类型。 * @return calFnIds */ - public List getCalFnIds() { + public List getCalFnIds() { return calFnIds; } - public void setCalFnIds(List calFnIds) { + public void setCalFnIds(List calFnIds) { this.calFnIds = calFnIds; } @@ -198,20 +198,20 @@ public void setFrontConfigs(String frontConfigs) { this.frontConfigs = frontConfigs; } - public CommonConditionVO withId(Long id) { + public CommonConditionVO withId(String id) { this.id = id; return this; } /** - * id + * 通用限定ID,只读,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CompoundMetricVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CompoundMetricVO.java index 5b1c6323dc..920c45f17c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CompoundMetricVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CompoundMetricVO.java @@ -1,11 +1,16 @@ package com.huaweicloud.sdk.dataartsstudio.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.time.OffsetDateTime; import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; import java.util.function.Consumer; @@ -17,7 +22,7 @@ public class CompoundMetricVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name_en") @@ -49,20 +54,194 @@ public class CompoundMetricVO { private String groupCode; + /** + * 复合指标类型。 枚举值: - EXPRESSION: 表达式 - PERIODICITY_VALUED_COMPARISON: 环比 - INTERVAL_VALUED_COMPARISON: 同比 + */ + public static final class CompoundTypeEnum { + + /** + * Enum EXPRESSION for value: "EXPRESSION" + */ + public static final CompoundTypeEnum EXPRESSION = new CompoundTypeEnum("EXPRESSION"); + + /** + * Enum PERIODICITY_VALUED_COMPARISON for value: "PERIODICITY_VALUED_COMPARISON" + */ + public static final CompoundTypeEnum PERIODICITY_VALUED_COMPARISON = + new CompoundTypeEnum("PERIODICITY_VALUED_COMPARISON"); + + /** + * Enum INTERVAL_VALUED_COMPARISON for value: "INTERVAL_VALUED_COMPARISON" + */ + public static final CompoundTypeEnum INTERVAL_VALUED_COMPARISON = + new CompoundTypeEnum("INTERVAL_VALUED_COMPARISON"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("EXPRESSION", EXPRESSION); + map.put("PERIODICITY_VALUED_COMPARISON", PERIODICITY_VALUED_COMPARISON); + map.put("INTERVAL_VALUED_COMPARISON", INTERVAL_VALUED_COMPARISON); + return Collections.unmodifiableMap(map); + } + + private String value; + + CompoundTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CompoundTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new CompoundTypeEnum(value)); + } + + public static CompoundTypeEnum 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 CompoundTypeEnum) { + return this.value.equals(((CompoundTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compound_type") + + private CompoundTypeEnum compoundType; + + /** + * 比较类型。 枚举值: - YEAR_TO_YEAR: 年同比 - MONTH_TO_MONTH: 月同比 - WEEK_TO_WEEK: 周同比 + */ + public static final class ComparisonTypeEnum { + + /** + * Enum YEAR_TO_YEAR for value: "YEAR_TO_YEAR" + */ + public static final ComparisonTypeEnum YEAR_TO_YEAR = new ComparisonTypeEnum("YEAR_TO_YEAR"); + + /** + * Enum MONTH_TO_MONTH for value: "MONTH_TO_MONTH" + */ + public static final ComparisonTypeEnum MONTH_TO_MONTH = new ComparisonTypeEnum("MONTH_TO_MONTH"); + + /** + * Enum WEEK_TO_WEEK for value: "WEEK_TO_WEEK" + */ + public static final ComparisonTypeEnum WEEK_TO_WEEK = new ComparisonTypeEnum("WEEK_TO_WEEK"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("YEAR_TO_YEAR", YEAR_TO_YEAR); + map.put("MONTH_TO_MONTH", MONTH_TO_MONTH); + map.put("WEEK_TO_WEEK", WEEK_TO_WEEK); + return Collections.unmodifiableMap(map); + } + + private String value; + + ComparisonTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ComparisonTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ComparisonTypeEnum(value)); + } + + public static ComparisonTypeEnum 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 ComparisonTypeEnum) { + return this.value.equals(((ComparisonTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "comparison_type") + + private ComparisonTypeEnum comparisonType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "metric_ids") - private List metricIds = null; + private List metricIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "metric_names") private List metricNames = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compound_metric_ids") + + private List compoundMetricIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compound_metric_names") + + private List compoundMetricNames = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cal_fn_ids") - private List calFnIds = null; + private List calFnIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "cal_exp") @@ -72,7 +251,7 @@ public class CompoundMetricVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l1_id") - private Long l1Id; + private String l1Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l2_id") @@ -82,7 +261,7 @@ public class CompoundMetricVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data_type") @@ -147,22 +326,22 @@ public class CompoundMetricVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "summary_table_id") - private Long summaryTableId; + private String summaryTableId; - public CompoundMetricVO withId(Long id) { + public CompoundMetricVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -240,7 +419,7 @@ public CompoundMetricVO withGroupName(String groupName) { } /** - * 颗粒度名称。 + * 颗粒度名称,只读。 * @return groupName */ public String getGroupName() { @@ -257,7 +436,7 @@ public CompoundMetricVO withGroupCode(String groupCode) { } /** - * 颗粒度编码。 + * 颗粒度编码,只读。 * @return groupCode */ public String getGroupCode() { @@ -268,12 +447,46 @@ public void setGroupCode(String groupCode) { this.groupCode = groupCode; } - public CompoundMetricVO withMetricIds(List metricIds) { + public CompoundMetricVO withCompoundType(CompoundTypeEnum compoundType) { + this.compoundType = compoundType; + return this; + } + + /** + * 复合指标类型。 枚举值: - EXPRESSION: 表达式 - PERIODICITY_VALUED_COMPARISON: 环比 - INTERVAL_VALUED_COMPARISON: 同比 + * @return compoundType + */ + public CompoundTypeEnum getCompoundType() { + return compoundType; + } + + public void setCompoundType(CompoundTypeEnum compoundType) { + this.compoundType = compoundType; + } + + public CompoundMetricVO withComparisonType(ComparisonTypeEnum comparisonType) { + this.comparisonType = comparisonType; + return this; + } + + /** + * 比较类型。 枚举值: - YEAR_TO_YEAR: 年同比 - MONTH_TO_MONTH: 月同比 - WEEK_TO_WEEK: 周同比 + * @return comparisonType + */ + public ComparisonTypeEnum getComparisonType() { + return comparisonType; + } + + public void setComparisonType(ComparisonTypeEnum comparisonType) { + this.comparisonType = comparisonType; + } + + public CompoundMetricVO withMetricIds(List metricIds) { this.metricIds = metricIds; return this; } - public CompoundMetricVO addMetricIdsItem(Long metricIdsItem) { + public CompoundMetricVO addMetricIdsItem(String metricIdsItem) { if (this.metricIds == null) { this.metricIds = new ArrayList<>(); } @@ -281,7 +494,7 @@ public CompoundMetricVO addMetricIdsItem(Long metricIdsItem) { return this; } - public CompoundMetricVO withMetricIds(Consumer> metricIdsSetter) { + public CompoundMetricVO withMetricIds(Consumer> metricIdsSetter) { if (this.metricIds == null) { this.metricIds = new ArrayList<>(); } @@ -290,14 +503,14 @@ public CompoundMetricVO withMetricIds(Consumer> metricIdsSetter) { } /** - * 指标信息。 + * 指标信息,填写String类型替代Long类型。 * @return metricIds */ - public List getMetricIds() { + public List getMetricIds() { return metricIds; } - public void setMetricIds(List metricIds) { + public void setMetricIds(List metricIds) { this.metricIds = metricIds; } @@ -334,12 +547,78 @@ public void setMetricNames(List metricNames) { this.metricNames = metricNames; } - public CompoundMetricVO withCalFnIds(List calFnIds) { + public CompoundMetricVO withCompoundMetricIds(List compoundMetricIds) { + this.compoundMetricIds = compoundMetricIds; + return this; + } + + public CompoundMetricVO addCompoundMetricIdsItem(String compoundMetricIdsItem) { + if (this.compoundMetricIds == null) { + this.compoundMetricIds = new ArrayList<>(); + } + this.compoundMetricIds.add(compoundMetricIdsItem); + return this; + } + + public CompoundMetricVO withCompoundMetricIds(Consumer> compoundMetricIdsSetter) { + if (this.compoundMetricIds == null) { + this.compoundMetricIds = new ArrayList<>(); + } + compoundMetricIdsSetter.accept(this.compoundMetricIds); + return this; + } + + /** + * 复合指标信息,填写String类型替代Long类型。 + * @return compoundMetricIds + */ + public List getCompoundMetricIds() { + return compoundMetricIds; + } + + public void setCompoundMetricIds(List compoundMetricIds) { + this.compoundMetricIds = compoundMetricIds; + } + + public CompoundMetricVO withCompoundMetricNames(List compoundMetricNames) { + this.compoundMetricNames = compoundMetricNames; + return this; + } + + public CompoundMetricVO addCompoundMetricNamesItem(String compoundMetricNamesItem) { + if (this.compoundMetricNames == null) { + this.compoundMetricNames = new ArrayList<>(); + } + this.compoundMetricNames.add(compoundMetricNamesItem); + return this; + } + + public CompoundMetricVO withCompoundMetricNames(Consumer> compoundMetricNamesSetter) { + if (this.compoundMetricNames == null) { + this.compoundMetricNames = new ArrayList<>(); + } + compoundMetricNamesSetter.accept(this.compoundMetricNames); + return this; + } + + /** + * 复合指标名称信息 + * @return compoundMetricNames + */ + public List getCompoundMetricNames() { + return compoundMetricNames; + } + + public void setCompoundMetricNames(List compoundMetricNames) { + this.compoundMetricNames = compoundMetricNames; + } + + public CompoundMetricVO withCalFnIds(List calFnIds) { this.calFnIds = calFnIds; return this; } - public CompoundMetricVO addCalFnIdsItem(Long calFnIdsItem) { + public CompoundMetricVO addCalFnIdsItem(String calFnIdsItem) { if (this.calFnIds == null) { this.calFnIds = new ArrayList<>(); } @@ -347,7 +626,7 @@ public CompoundMetricVO addCalFnIdsItem(Long calFnIdsItem) { return this; } - public CompoundMetricVO withCalFnIds(Consumer> calFnIdsSetter) { + public CompoundMetricVO withCalFnIds(Consumer> calFnIdsSetter) { if (this.calFnIds == null) { this.calFnIds = new ArrayList<>(); } @@ -356,14 +635,14 @@ public CompoundMetricVO withCalFnIds(Consumer> calFnIdsSetter) { } /** - * 引用函数ID。 + * 引用函数ID,填写String类型替代Long类型。 * @return calFnIds */ - public List getCalFnIds() { + public List getCalFnIds() { return calFnIds; } - public void setCalFnIds(List calFnIds) { + public void setCalFnIds(List calFnIds) { this.calFnIds = calFnIds; } @@ -384,20 +663,20 @@ public void setCalExp(String calExp) { this.calExp = calExp; } - public CompoundMetricVO withL1Id(Long l1Id) { + public CompoundMetricVO withL1Id(String l1Id) { this.l1Id = l1Id; return this; } /** - * 主题域分组ID。 + * 主题域分组ID,只读,填写String类型替代Long类型。 * @return l1Id */ - public Long getL1Id() { + public String getL1Id() { return l1Id; } - public void setL1Id(Long l1Id) { + public void setL1Id(String l1Id) { this.l1Id = l1Id; } @@ -418,20 +697,20 @@ public void setL2Id(String l2Id) { this.l2Id = l2Id; } - public CompoundMetricVO withL3Id(Long l3Id) { + public CompoundMetricVO withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象ID。 + * 业务对象ID,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -509,7 +788,7 @@ public CompoundMetricVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -526,7 +805,7 @@ public CompoundMetricVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -666,20 +945,20 @@ public void setL3(String l3) { this.l3 = l3; } - public CompoundMetricVO withSummaryTableId(Long summaryTableId) { + public CompoundMetricVO withSummaryTableId(String summaryTableId) { this.summaryTableId = summaryTableId; return this; } /** - * 汇总表ID。 + * 汇总表ID,只读,填写String类型替代Long类型。 * @return summaryTableId */ - public Long getSummaryTableId() { + public String getSummaryTableId() { return summaryTableId; } - public void setSummaryTableId(Long summaryTableId) { + public void setSummaryTableId(String summaryTableId) { this.summaryTableId = summaryTableId; } @@ -696,7 +975,11 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.nameCh, that.nameCh) && Objects.equals(this.description, that.description) && Objects.equals(this.dimensionGroup, that.dimensionGroup) && Objects.equals(this.groupName, that.groupName) && Objects.equals(this.groupCode, that.groupCode) + && Objects.equals(this.compoundType, that.compoundType) + && Objects.equals(this.comparisonType, that.comparisonType) && Objects.equals(this.metricIds, that.metricIds) && Objects.equals(this.metricNames, that.metricNames) + && Objects.equals(this.compoundMetricIds, that.compoundMetricIds) + && Objects.equals(this.compoundMetricNames, that.compoundMetricNames) && Objects.equals(this.calFnIds, that.calFnIds) && Objects.equals(this.calExp, that.calExp) && Objects.equals(this.l1Id, that.l1Id) && Objects.equals(this.l2Id, that.l2Id) && Objects.equals(this.l3Id, that.l3Id) && Objects.equals(this.dataType, that.dataType) @@ -717,8 +1000,12 @@ public int hashCode() { dimensionGroup, groupName, groupCode, + compoundType, + comparisonType, metricIds, metricNames, + compoundMetricIds, + compoundMetricNames, calFnIds, calExp, l1Id, @@ -750,8 +1037,12 @@ public String toString() { sb.append(" dimensionGroup: ").append(toIndentedString(dimensionGroup)).append("\n"); sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n"); sb.append(" groupCode: ").append(toIndentedString(groupCode)).append("\n"); + sb.append(" compoundType: ").append(toIndentedString(compoundType)).append("\n"); + sb.append(" comparisonType: ").append(toIndentedString(comparisonType)).append("\n"); sb.append(" metricIds: ").append(toIndentedString(metricIds)).append("\n"); sb.append(" metricNames: ").append(toIndentedString(metricNames)).append("\n"); + sb.append(" compoundMetricIds: ").append(toIndentedString(compoundMetricIds)).append("\n"); + sb.append(" compoundMetricNames: ").append(toIndentedString(compoundMetricNames)).append("\n"); sb.append(" calFnIds: ").append(toIndentedString(calFnIds)).append("\n"); sb.append(" calExp: ").append(toIndentedString(calExp)).append("\n"); sb.append(" l1Id: ").append(toIndentedString(l1Id)).append("\n"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConditionVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConditionVO.java new file mode 100644 index 0000000000..8667897d44 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConditionVO.java @@ -0,0 +1,539 @@ +package com.huaweicloud.sdk.dataartsstudio.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.time.OffsetDateTime; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ConditionVO + */ +public class ConditionVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_en") + + private String nameEn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_ch") + + private String nameCh; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + /** + * 限定计算方法。 枚举值: - LAST_YEAR: 前一年 - CURRENT_YEAR: 本年 - BETWEEN_YEAR: 自定义年区间 - LAST_MONTH: 前一月 - CURRENT_MONTH: 本月 - BETWEEN_MONTH: 自定义月区间 - LAST_DAY: 前一天 - CURRENT_DAY: 本日 - BETWEEN_DAY: 自定义日区间 - LAST_HOUR: 上一小时 - CURRENT_HOUR: 当前小时 - BETWEEN_HOUR: 自定义小时区间 - LAST_MINUTE: 上一分钟 - CURRENT_MINUTE: 当前分钟 - BETWEEN_MINUTE: 自定义分钟区间 + */ + public static final class ConditionFnEnum { + + /** + * Enum LAST_YEAR for value: "LAST_YEAR" + */ + public static final ConditionFnEnum LAST_YEAR = new ConditionFnEnum("LAST_YEAR"); + + /** + * Enum CURRENT_YEAR for value: "CURRENT_YEAR" + */ + public static final ConditionFnEnum CURRENT_YEAR = new ConditionFnEnum("CURRENT_YEAR"); + + /** + * Enum BETWEEN_YEAR for value: "BETWEEN_YEAR" + */ + public static final ConditionFnEnum BETWEEN_YEAR = new ConditionFnEnum("BETWEEN_YEAR"); + + /** + * Enum LAST_MONTH for value: "LAST_MONTH" + */ + public static final ConditionFnEnum LAST_MONTH = new ConditionFnEnum("LAST_MONTH"); + + /** + * Enum CURRENT_MONTH for value: "CURRENT_MONTH" + */ + public static final ConditionFnEnum CURRENT_MONTH = new ConditionFnEnum("CURRENT_MONTH"); + + /** + * Enum BETWEEN_MONTH for value: "BETWEEN_MONTH" + */ + public static final ConditionFnEnum BETWEEN_MONTH = new ConditionFnEnum("BETWEEN_MONTH"); + + /** + * Enum LAST_DAY for value: "LAST_DAY" + */ + public static final ConditionFnEnum LAST_DAY = new ConditionFnEnum("LAST_DAY"); + + /** + * Enum CURRENT_DAY for value: "CURRENT_DAY" + */ + public static final ConditionFnEnum CURRENT_DAY = new ConditionFnEnum("CURRENT_DAY"); + + /** + * Enum BETWEEN_DAY for value: "BETWEEN_DAY" + */ + public static final ConditionFnEnum BETWEEN_DAY = new ConditionFnEnum("BETWEEN_DAY"); + + /** + * Enum LAST_HOUR for value: "LAST_HOUR" + */ + public static final ConditionFnEnum LAST_HOUR = new ConditionFnEnum("LAST_HOUR"); + + /** + * Enum CURRENT_HOUR for value: "CURRENT_HOUR" + */ + public static final ConditionFnEnum CURRENT_HOUR = new ConditionFnEnum("CURRENT_HOUR"); + + /** + * Enum BETWEEN_HOUR for value: "BETWEEN_HOUR" + */ + public static final ConditionFnEnum BETWEEN_HOUR = new ConditionFnEnum("BETWEEN_HOUR"); + + /** + * Enum LAST_MINUTE for value: "LAST_MINUTE" + */ + public static final ConditionFnEnum LAST_MINUTE = new ConditionFnEnum("LAST_MINUTE"); + + /** + * Enum CURRENT_MINUTE for value: "CURRENT_MINUTE" + */ + public static final ConditionFnEnum CURRENT_MINUTE = new ConditionFnEnum("CURRENT_MINUTE"); + + /** + * Enum BETWEEN_MINUTE for value: "BETWEEN_MINUTE" + */ + public static final ConditionFnEnum BETWEEN_MINUTE = new ConditionFnEnum("BETWEEN_MINUTE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("LAST_YEAR", LAST_YEAR); + map.put("CURRENT_YEAR", CURRENT_YEAR); + map.put("BETWEEN_YEAR", BETWEEN_YEAR); + map.put("LAST_MONTH", LAST_MONTH); + map.put("CURRENT_MONTH", CURRENT_MONTH); + map.put("BETWEEN_MONTH", BETWEEN_MONTH); + map.put("LAST_DAY", LAST_DAY); + map.put("CURRENT_DAY", CURRENT_DAY); + map.put("BETWEEN_DAY", BETWEEN_DAY); + map.put("LAST_HOUR", LAST_HOUR); + map.put("CURRENT_HOUR", CURRENT_HOUR); + map.put("BETWEEN_HOUR", BETWEEN_HOUR); + map.put("LAST_MINUTE", LAST_MINUTE); + map.put("CURRENT_MINUTE", CURRENT_MINUTE); + map.put("BETWEEN_MINUTE", BETWEEN_MINUTE); + return Collections.unmodifiableMap(map); + } + + private String value; + + ConditionFnEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ConditionFnEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new ConditionFnEnum(value)); + } + + public static ConditionFnEnum 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 ConditionFnEnum) { + return this.value.equals(((ConditionFnEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "condition_fn") + + private ConditionFnEnum conditionFn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "condition_fn_param") + + private String conditionFnParam; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private BizStatusEnum status; + + @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 = "approval_info") + + private ApprovalVO approvalInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_biz") + + private BizVersionManageVO newBiz; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "base_time") + + private Integer baseTime; + + public ConditionVO withId(String id) { + this.id = id; + return this; + } + + /** + * 编码,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ConditionVO withNameEn(String nameEn) { + this.nameEn = nameEn; + return this; + } + + /** + * 字段名 + * @return nameEn + */ + public String getNameEn() { + return nameEn; + } + + public void setNameEn(String nameEn) { + this.nameEn = nameEn; + } + + public ConditionVO withNameCh(String nameCh) { + this.nameCh = nameCh; + return this; + } + + /** + * 业务属性。 + * @return nameCh + */ + public String getNameCh() { + return nameCh; + } + + public void setNameCh(String nameCh) { + this.nameCh = nameCh; + } + + public ConditionVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ConditionVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public ConditionVO withConditionFn(ConditionFnEnum conditionFn) { + this.conditionFn = conditionFn; + return this; + } + + /** + * 限定计算方法。 枚举值: - LAST_YEAR: 前一年 - CURRENT_YEAR: 本年 - BETWEEN_YEAR: 自定义年区间 - LAST_MONTH: 前一月 - CURRENT_MONTH: 本月 - BETWEEN_MONTH: 自定义月区间 - LAST_DAY: 前一天 - CURRENT_DAY: 本日 - BETWEEN_DAY: 自定义日区间 - LAST_HOUR: 上一小时 - CURRENT_HOUR: 当前小时 - BETWEEN_HOUR: 自定义小时区间 - LAST_MINUTE: 上一分钟 - CURRENT_MINUTE: 当前分钟 - BETWEEN_MINUTE: 自定义分钟区间 + * @return conditionFn + */ + public ConditionFnEnum getConditionFn() { + return conditionFn; + } + + public void setConditionFn(ConditionFnEnum conditionFn) { + this.conditionFn = conditionFn; + } + + public ConditionVO withConditionFnParam(String conditionFnParam) { + this.conditionFnParam = conditionFnParam; + return this; + } + + /** + * 限定计算参数。 + * @return conditionFnParam + */ + public String getConditionFnParam() { + return conditionFnParam; + } + + public void setConditionFnParam(String conditionFnParam) { + this.conditionFnParam = conditionFnParam; + } + + public ConditionVO withStatus(BizStatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public BizStatusEnum getStatus() { + return status; + } + + public void setStatus(BizStatusEnum status) { + this.status = status; + } + + public ConditionVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public ConditionVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public ConditionVO withApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + return this; + } + + public ConditionVO withApprovalInfo(Consumer approvalInfoSetter) { + if (this.approvalInfo == null) { + this.approvalInfo = new ApprovalVO(); + approvalInfoSetter.accept(this.approvalInfo); + } + + return this; + } + + /** + * Get approvalInfo + * @return approvalInfo + */ + public ApprovalVO getApprovalInfo() { + return approvalInfo; + } + + public void setApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + } + + public ConditionVO withNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + return this; + } + + public ConditionVO withNewBiz(Consumer newBizSetter) { + if (this.newBiz == null) { + this.newBiz = new BizVersionManageVO(); + newBizSetter.accept(this.newBiz); + } + + return this; + } + + /** + * Get newBiz + * @return newBiz + */ + public BizVersionManageVO getNewBiz() { + return newBiz; + } + + public void setNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + } + + public ConditionVO withBaseTime(Integer baseTime) { + this.baseTime = baseTime; + return this; + } + + /** + * 基准时间。 + * @return baseTime + */ + public Integer getBaseTime() { + return baseTime; + } + + public void setBaseTime(Integer baseTime) { + this.baseTime = baseTime; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ConditionVO that = (ConditionVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.nameEn, that.nameEn) + && Objects.equals(this.nameCh, that.nameCh) && Objects.equals(this.description, that.description) + && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.conditionFn, that.conditionFn) + && Objects.equals(this.conditionFnParam, that.conditionFnParam) && Objects.equals(this.status, that.status) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.approvalInfo, that.approvalInfo) && Objects.equals(this.newBiz, that.newBiz) + && Objects.equals(this.baseTime, that.baseTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, + nameEn, + nameCh, + description, + createBy, + conditionFn, + conditionFnParam, + status, + createTime, + updateTime, + approvalInfo, + newBiz, + baseTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConditionVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" nameEn: ").append(toIndentedString(nameEn)).append("\n"); + sb.append(" nameCh: ").append(toIndentedString(nameCh)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" conditionFn: ").append(toIndentedString(conditionFn)).append("\n"); + sb.append(" conditionFnParam: ").append(toIndentedString(conditionFnParam)).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(" approvalInfo: ").append(toIndentedString(approvalInfo)).append("\n"); + sb.append(" newBiz: ").append(toIndentedString(newBiz)).append("\n"); + sb.append(" baseTime: ").append(toIndentedString(baseTime)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsRequest.java index 08027c3713..eeb97b6213 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsRequest.java @@ -27,7 +27,7 @@ public class ConfirmApprovalsRequest { private String xProjectId; /** - * 处理审批单结果类型。reject(审批驳回)、resolve(审批通过)。 + * 处理审批单结果类型。 枚举值: - reject: 审批驳回 - resolve: 审批通过 */ public static final class ActionIdEnum { @@ -148,7 +148,7 @@ public ConfirmApprovalsRequest withActionId(ActionIdEnum actionId) { } /** - * 处理审批单结果类型。reject(审批驳回)、resolve(审批通过)。 + * 处理审批单结果类型。 枚举值: - reject: 审批驳回 - resolve: 审批通过 * @return actionId */ public ActionIdEnum getActionId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsResponse.java index 24f9a10007..9e1df0e2dc 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ConfirmApprovalsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ConfirmApprovalsResultData data; - public ConfirmApprovalsResponse withData(Object data) { + public ConfirmApprovalsResponse withData(ConfirmApprovalsResultData data) { this.data = data; return this; } + public ConfirmApprovalsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ConfirmApprovalsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ConfirmApprovalsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ConfirmApprovalsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsResultData.java new file mode 100644 index 0000000000..df2a81d206 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ConfirmApprovalsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ConfirmApprovalsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private BatchOperationVO value; + + public ConfirmApprovalsResultData withValue(BatchOperationVO value) { + this.value = value; + return this; + } + + public ConfirmApprovalsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new BatchOperationVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public BatchOperationVO getValue() { + return value; + } + + public void setValue(BatchOperationVO 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; + } + ConfirmApprovalsResultData that = (ConfirmApprovalsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfirmApprovalsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountAllModelsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountAllModelsResponse.java index e48b779559..a9bf0fcb9e 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountAllModelsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountAllModelsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CountAllModelsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CountAllModelsResultData data; - public CountAllModelsResponse withData(Object data) { + public CountAllModelsResponse withData(CountAllModelsResultData data) { this.data = data; return this; } + public CountAllModelsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CountAllModelsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CountAllModelsResultData getData() { return data; } - public void setData(Object data) { + public void setData(CountAllModelsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountAllModelsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountAllModelsResultData.java new file mode 100644 index 0000000000..9d4bc42237 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountAllModelsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CountAllModelsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private AllModelStatisticVO value; + + public CountAllModelsResultData withValue(AllModelStatisticVO value) { + this.value = value; + return this; + } + + public CountAllModelsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new AllModelStatisticVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public AllModelStatisticVO getValue() { + return value; + } + + public void setValue(AllModelStatisticVO 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; + } + CountAllModelsResultData that = (CountAllModelsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CountAllModelsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountOverviewsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountOverviewsResponse.java index 6741e5eb54..49ef58d4da 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountOverviewsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountOverviewsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CountOverviewsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CountOverviewsResultData data; - public CountOverviewsResponse withData(Object data) { + public CountOverviewsResponse withData(CountOverviewsResultData data) { this.data = data; return this; } + public CountOverviewsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CountOverviewsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CountOverviewsResultData getData() { return data; } - public void setData(Object data) { + public void setData(CountOverviewsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountOverviewsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountOverviewsResultData.java new file mode 100644 index 0000000000..aa3c6ffc0a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountOverviewsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CountOverviewsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private StatisticInfo value; + + public CountOverviewsResultData withValue(StatisticInfo value) { + this.value = value; + return this; + } + + public CountOverviewsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new StatisticInfo(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public StatisticInfo getValue() { + return value; + } + + public void setValue(StatisticInfo 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; + } + CountOverviewsResultData that = (CountOverviewsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CountOverviewsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsRequest.java index b176e3d90d..c0c18ba124 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsRequest.java @@ -72,7 +72,7 @@ public CountStandardsRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -89,7 +89,7 @@ public CountStandardsRequest withBizType(String bizType) { } /** - * 按业务类型查询。 + * 按业务类型查询,可选业务类型有:ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、TIME_CONDITION(时间限定)、DIMENSION_LOGIC_TABLE(维度表)、FACT_LOGIC_TABLE(事实表)、AGGREGATION_LOGIC_TABLE(汇总表)、TABLE_MODEL(关系建模表)、CODE_TABLE(码表)、STANDARD_ELEMENT)(数据标准)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)、SUBJECT(主题)、ATOMIC_METRIC(原子指标(新))、DERIVED_METRIC(衍生指标(新))、COMPOSITE_METRIC(复合指标(新))。 * @return bizType */ public String getBizType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsResponse.java index 98f23931f8..55fbc31214 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CountStandardsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CountStandardsResultData data; - public CountStandardsResponse withData(Object data) { + public CountStandardsResponse withData(CountStandardsResultData data) { this.data = data; return this; } + public CountStandardsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CountStandardsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CountStandardsResultData getData() { return data; } - public void setData(Object data) { + public void setData(CountStandardsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsResultData.java new file mode 100644 index 0000000000..462e6e7800 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountStandardsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CountStandardsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private StatisticStandardCoverageVO value; + + public CountStandardsResultData withValue(StatisticStandardCoverageVO value) { + this.value = value; + return this; + } + + public CountStandardsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new StatisticStandardCoverageVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public StatisticStandardCoverageVO getValue() { + return value; + } + + public void setValue(StatisticStandardCoverageVO 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; + } + CountStandardsResultData that = (CountStandardsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CountStandardsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsRequest.java index 4133156c1d..e35df0e50b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsRequest.java @@ -23,7 +23,7 @@ public class CountTableModelsRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_id") - private Long modelId; + private String modelId; public CountTableModelsRequest withWorkspace(String workspace) { this.workspace = workspace; @@ -61,20 +61,20 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } - public CountTableModelsRequest withModelId(Long modelId) { + public CountTableModelsRequest withModelId(String modelId) { this.modelId = modelId; return this; } /** - * 依据关系建模的模型ID查询统计信息。 + * 依据关系建模的模型ID查询统计信息,填写String类型替代Long类型。 * @return modelId */ - public Long getModelId() { + public String getModelId() { return modelId; } - public void setModelId(Long modelId) { + public void setModelId(String modelId) { this.modelId = modelId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsResponse.java index afafe336da..92a63109c6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CountTableModelsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CountTableModelsResultData data; - public CountTableModelsResponse withData(Object data) { + public CountTableModelsResponse withData(CountTableModelsResultData data) { this.data = data; return this; } + public CountTableModelsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CountTableModelsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CountTableModelsResultData getData() { return data; } - public void setData(Object data) { + public void setData(CountTableModelsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsResultData.java new file mode 100644 index 0000000000..e01deb4009 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CountTableModelsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CountTableModelsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private TableModelStatisticVO value; + + public CountTableModelsResultData withValue(TableModelStatisticVO value) { + this.value = value; + return this; + } + + public CountTableModelsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new TableModelStatisticVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public TableModelStatisticVO getValue() { + return value; + } + + public void setValue(TableModelStatisticVO 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; + } + CountTableModelsResultData that = (CountTableModelsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CountTableModelsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateApproverResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateApproverResponse.java index cb0dfe993f..ce12ce236b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateApproverResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateApproverResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateApproverResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateApproverResultData data; - public CreateApproverResponse withData(Object data) { + public CreateApproverResponse withData(CreateApproverResultData data) { this.data = data; return this; } + public CreateApproverResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateApproverResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateApproverResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateApproverResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateApproverResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateApproverResultData.java new file mode 100644 index 0000000000..2a7868e2e0 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateApproverResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateApproverResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ApproverVO value; + + public CreateApproverResultData withValue(ApproverVO value) { + this.value = value; + return this; + } + + public CreateApproverResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ApproverVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ApproverVO getValue() { + return value; + } + + public void setValue(ApproverVO 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; + } + CreateApproverResultData that = (CreateApproverResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateApproverResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateBizMetricResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateBizMetricResponse.java index 24eb6a129d..9939660fd8 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateBizMetricResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateBizMetricResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateBizMetricResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateBizMetricResultData data; - public CreateBizMetricResponse withData(Object data) { + public CreateBizMetricResponse withData(CreateBizMetricResultData data) { this.data = data; return this; } + public CreateBizMetricResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateBizMetricResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateBizMetricResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateBizMetricResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateBizMetricResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateBizMetricResultData.java new file mode 100644 index 0000000000..4989363ab8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateBizMetricResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateBizMetricResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private BizMetricVO value; + + public CreateBizMetricResultData withValue(BizMetricVO value) { + this.value = value; + return this; + } + + public CreateBizMetricResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new BizMetricVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public BizMetricVO getValue() { + return value; + } + + public void setValue(BizMetricVO 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; + } + CreateBizMetricResultData that = (CreateBizMetricResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBizMetricResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCatalogResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCatalogResponse.java index 495b2b60cb..68104fdffd 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCatalogResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCatalogResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateCatalogResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateCatalogResultData data; - public CreateCatalogResponse withData(Object data) { + public CreateCatalogResponse withData(CreateCatalogResultData data) { this.data = data; return this; } + public CreateCatalogResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateCatalogResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateCatalogResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateCatalogResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCatalogResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCatalogResultData.java new file mode 100644 index 0000000000..9b525b8954 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCatalogResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateCatalogResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private BizCatalogVO value; + + public CreateCatalogResultData withValue(BizCatalogVO value) { + this.value = value; + return this; + } + + public CreateCatalogResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new BizCatalogVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public BizCatalogVO getValue() { + return value; + } + + public void setValue(BizCatalogVO 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; + } + CreateCatalogResultData that = (CreateCatalogResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCatalogResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCodeTableResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCodeTableResponse.java index a23b16fae4..6bf9252f22 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCodeTableResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCodeTableResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateCodeTableResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateCodeTableResultData data; - public CreateCodeTableResponse withData(Object data) { + public CreateCodeTableResponse withData(CreateCodeTableResultData data) { this.data = data; return this; } + public CreateCodeTableResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateCodeTableResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateCodeTableResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateCodeTableResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCodeTableResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCodeTableResultData.java new file mode 100644 index 0000000000..3ada01d303 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateCodeTableResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateCodeTableResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private CodeTableVO value; + + public CreateCodeTableResultData withValue(CodeTableVO value) { + this.value = value; + return this; + } + + public CreateCodeTableResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new CodeTableVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public CodeTableVO getValue() { + return value; + } + + public void setValue(CodeTableVO 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; + } + CreateCodeTableResultData that = (CreateCodeTableResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCodeTableResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateDirectoryResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateDirectoryResponse.java index 2fb32e6754..b03511f51f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateDirectoryResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateDirectoryResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateDirectoryResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateDirectoryResultData data; - public CreateDirectoryResponse withData(Object data) { + public CreateDirectoryResponse withData(CreateDirectoryResultData data) { this.data = data; return this; } + public CreateDirectoryResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateDirectoryResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateDirectoryResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateDirectoryResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateDirectoryResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateDirectoryResultData.java new file mode 100644 index 0000000000..11bb7b7eae --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateDirectoryResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateDirectoryResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private DirectoryVO value; + + public CreateDirectoryResultData withValue(DirectoryVO value) { + this.value = value; + return this; + } + + public CreateDirectoryResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new DirectoryVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public DirectoryVO getValue() { + return value; + } + + public void setValue(DirectoryVO 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; + } + CreateDirectoryResultData that = (CreateDirectoryResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDirectoryResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardResponse.java index 0e051dac7c..78e68c0e0c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateStandardResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateStandardResultData data; - public CreateStandardResponse withData(Object data) { + public CreateStandardResponse withData(CreateStandardResultData data) { this.data = data; return this; } + public CreateStandardResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateStandardResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateStandardResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateStandardResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardResultData.java new file mode 100644 index 0000000000..9845b5fcef --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 数据标准创建返回data结果。 + */ +public class CreateStandardResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private StandElementValueVOList value; + + public CreateStandardResultData withValue(StandElementValueVOList value) { + this.value = value; + return this; + } + + public CreateStandardResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new StandElementValueVOList(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public StandElementValueVOList getValue() { + return value; + } + + public void setValue(StandElementValueVOList 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; + } + CreateStandardResultData that = (CreateStandardResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStandardResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardTemplateResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardTemplateResponse.java index 52e12bb7d5..8a6677002c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardTemplateResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardTemplateResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateStandardTemplateResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateStandardTemplateResultData data; - public CreateStandardTemplateResponse withData(Object data) { + public CreateStandardTemplateResponse withData(CreateStandardTemplateResultData data) { this.data = data; return this; } + public CreateStandardTemplateResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateStandardTemplateResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateStandardTemplateResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateStandardTemplateResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardTemplateResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardTemplateResultData.java new file mode 100644 index 0000000000..4b4faa4cf8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateStandardTemplateResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateStandardTemplateResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private StandElementFieldVO value; + + public CreateStandardTemplateResultData withValue(StandElementFieldVO value) { + this.value = value; + return this; + } + + public CreateStandardTemplateResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new StandElementFieldVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public StandElementFieldVO getValue() { + return value; + } + + public void setValue(StandElementFieldVO 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; + } + CreateStandardTemplateResultData that = (CreateStandardTemplateResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateStandardTemplateResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectNewResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectNewResponse.java index e25369db20..e7d3d92fa3 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectNewResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectNewResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateSubjectNewResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateSubjectResultData data; - public CreateSubjectNewResponse withData(Object data) { + public CreateSubjectNewResponse withData(CreateSubjectResultData data) { this.data = data; return this; } + public CreateSubjectNewResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateSubjectResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateSubjectResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateSubjectResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectResponse.java index 5393e645ab..d57ff4cc6c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateSubjectResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateSubjectResultData data; - public CreateSubjectResponse withData(Object data) { + public CreateSubjectResponse withData(CreateSubjectResultData data) { this.data = data; return this; } + public CreateSubjectResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateSubjectResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateSubjectResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateSubjectResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectResultData.java new file mode 100644 index 0000000000..3cb9b997a2 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateSubjectResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateSubjectResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private CatalogVO value; + + public CreateSubjectResultData withValue(CatalogVO value) { + this.value = value; + return this; + } + + public CreateSubjectResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new CatalogVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public CatalogVO getValue() { + return value; + } + + public void setValue(CatalogVO 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; + } + CreateSubjectResultData that = (CreateSubjectResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSubjectResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateTableModelResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateTableModelResponse.java index 5efc812632..34faa529d7 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateTableModelResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateTableModelResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateTableModelResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateTableModelResultData data; - public CreateTableModelResponse withData(Object data) { + public CreateTableModelResponse withData(CreateTableModelResultData data) { this.data = data; return this; } + public CreateTableModelResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateTableModelResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateTableModelResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateTableModelResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateTableModelResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateTableModelResultData.java new file mode 100644 index 0000000000..6f29c9cdd0 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateTableModelResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateTableModelResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private TableModelVO value; + + public CreateTableModelResultData withValue(TableModelVO value) { + this.value = value; + return this; + } + + public CreateTableModelResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new TableModelVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public TableModelVO getValue() { + return value; + } + + public void setValue(TableModelVO 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; + } + CreateTableModelResultData that = (CreateTableModelResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTableModelResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateWorkspaceResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateWorkspaceResponse.java index 95b4ef1431..6505d2255c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateWorkspaceResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateWorkspaceResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class CreateWorkspaceResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateWorkspaceResultData data; - public CreateWorkspaceResponse withData(Object data) { + public CreateWorkspaceResponse withData(CreateWorkspaceResultData data) { this.data = data; return this; } + public CreateWorkspaceResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateWorkspaceResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateWorkspaceResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateWorkspaceResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateWorkspaceResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateWorkspaceResultData.java new file mode 100644 index 0000000000..e084b1ad95 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CreateWorkspaceResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class CreateWorkspaceResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private WorkspaceVO value; + + public CreateWorkspaceResultData withValue(WorkspaceVO value) { + this.value = value; + return this; + } + + public CreateWorkspaceResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new WorkspaceVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public WorkspaceVO getValue() { + return value; + } + + public void setValue(WorkspaceVO 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; + } + CreateWorkspaceResultData that = (CreateWorkspaceResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWorkspaceResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVO.java index b7ef1c8f04..ce37c8236f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVO.java @@ -19,7 +19,7 @@ public class CustomizedFieldsVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name_ch") @@ -42,7 +42,7 @@ public class CustomizedFieldsVO { private String optionalValues; /** - * 自定义项类型。TABLE(表自定义项)、ATTRIBUTE(属性自定义项)、SUBJECT(主题自定义项)、METRIC(业务指标自定义项)。 + * 自定义项类型。 枚举值: - TABLE: 表自定义项 - ATTRIBUTE: 属性自定义项 - SUBJECT: 主题自定义项 - METRIC: 业务指标自定义项 */ public static final class TypeEnum { @@ -158,20 +158,20 @@ public int hashCode() { private OffsetDateTime updateTime; - public CustomizedFieldsVO withId(Long id) { + public CustomizedFieldsVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -181,7 +181,7 @@ public CustomizedFieldsVO withNameCh(String nameCh) { } /** - * 中文名称。 + * 自定义项中文名称。 * @return nameCh */ public String getNameCh() { @@ -198,7 +198,7 @@ public CustomizedFieldsVO withNameEn(String nameEn) { } /** - * 英文名称。 + * 自定义项英文名称。 * @return nameEn */ public String getNameEn() { @@ -232,7 +232,7 @@ public CustomizedFieldsVO withOptionalValues(String optionalValues) { } /** - * 可选值。分号分隔。 + * 可选值。当可选值有多个时,用分号分隔。 * @return optionalValues */ public String getOptionalValues() { @@ -249,7 +249,7 @@ public CustomizedFieldsVO withType(TypeEnum type) { } /** - * 自定义项类型。TABLE(表自定义项)、ATTRIBUTE(属性自定义项)、SUBJECT(主题自定义项)、METRIC(业务指标自定义项)。 + * 自定义项类型。 枚举值: - TABLE: 表自定义项 - ATTRIBUTE: 属性自定义项 - SUBJECT: 主题自定义项 - METRIC: 业务指标自定义项 * @return type */ public TypeEnum getType() { @@ -266,7 +266,7 @@ public CustomizedFieldsVO withOrdinal(Integer ordinal) { } /** - * 顺序。 + * 系统排序字段,新建、修改时不需要填写。 * @return ordinal */ public Integer getOrdinal() { @@ -283,7 +283,7 @@ public CustomizedFieldsVO withDescription(String description) { } /** - * 描述。 + * 自定义项描述。 * @return description */ public String getDescription() { @@ -300,7 +300,7 @@ public CustomizedFieldsVO withCreateBy(String createBy) { } /** - * 创建人。 + * 创建人,只读。 * @return createBy */ public String getCreateBy() { @@ -317,7 +317,7 @@ public CustomizedFieldsVO withUpdateBy(String updateBy) { } /** - * 更新人。 + * 更新人,只读。 * @return updateBy */ public String getUpdateBy() { @@ -334,7 +334,7 @@ public CustomizedFieldsVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -351,7 +351,7 @@ public CustomizedFieldsVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVOList.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVOList.java index 133ddff678..c0aae952fe 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVOList.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/CustomizedFieldsVOList.java @@ -19,7 +19,7 @@ public class CustomizedFieldsVOList { /** - * 自定义项类型。TABLE(表自定义项)、ATTRIBUTE(属性自定义项)、SUBJECT(主题自定义项)、METRIC(业务指标自定义项)。 + * 自定义项类型。 枚举值: - TABLE: 表自定义项 - ATTRIBUTE: 属性自定义项 - SUBJECT: 主题自定义项 - METRIC: 业务指标自定义项 */ public static final class TypeEnum { @@ -116,7 +116,7 @@ public CustomizedFieldsVOList withType(TypeEnum type) { } /** - * 自定义项类型。TABLE(表自定义项)、ATTRIBUTE(属性自定义项)、SUBJECT(主题自定义项)、METRIC(业务指标自定义项)。 + * 自定义项类型。 枚举值: - TABLE: 表自定义项 - ATTRIBUTE: 属性自定义项 - SUBJECT: 主题自定义项 - METRIC: 业务指标自定义项 * @return type */ public TypeEnum getType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DataConnectionVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DataConnectionVO.java new file mode 100644 index 0000000000..97faaed70d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DataConnectionVO.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * DataConnectionVO + */ +public class DataConnectionVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_name") + + private String dwName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_id") + + private String dwId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "display_name") + + private String displayName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_type") + + private String dwType; + + public DataConnectionVO withDwName(String dwName) { + this.dwName = dwName; + return this; + } + + /** + * 数据连接名称。 + * @return dwName + */ + public String getDwName() { + return dwName; + } + + public void setDwName(String dwName) { + this.dwName = dwName; + } + + public DataConnectionVO withDwId(String dwId) { + this.dwId = dwId; + return this; + } + + /** + * 数据连接ID。 + * @return dwId + */ + public String getDwId() { + return dwId; + } + + public void setDwId(String dwId) { + this.dwId = dwId; + } + + public DataConnectionVO withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * 数据连接名称,适配现有实现。 + * @return displayName + */ + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public DataConnectionVO withDwType(String dwType) { + this.dwType = dwType; + return this; + } + + /** + * 数据连接类型。 + * @return dwType + */ + public String getDwType() { + return dwType; + } + + public void setDwType(String dwType) { + this.dwType = dwType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DataConnectionVO that = (DataConnectionVO) obj; + return Objects.equals(this.dwName, that.dwName) && Objects.equals(this.dwId, that.dwId) + && Objects.equals(this.displayName, that.displayName) && Objects.equals(this.dwType, that.dwType); + } + + @Override + public int hashCode() { + return Objects.hash(dwName, dwId, displayName, dwType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataConnectionVO {\n"); + sb.append(" dwName: ").append(toIndentedString(dwName)).append("\n"); + sb.append(" dwId: ").append(toIndentedString(dwId)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" dwType: ").append(toIndentedString(dwType)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DataTypeDomainEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DataTypeDomainEnum.java index c9a666ba61..9b475fe1a2 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DataTypeDomainEnum.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DataTypeDomainEnum.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 字段类型所属域。NUMBER(数字类型)、STRING(字符类型)、DATETIME(日期类型)、BLOB(大对象(BLOB))、OTHER(其它类型)。 + * 字段类型所属域。 枚举值: - NUMBER: 数字类型 - STRING: 字符类型 - DATETIME: 日期类型 - BLOB: 大对象(BLOB) - OTHER: 其它类型 */ public class DataTypeDomainEnum { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteApproverResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteApproverResponse.java index b5a17d92d9..8356c3043f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteApproverResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteApproverResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteApproverResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteApproverResponse withData(Object data) { + public DeleteApproverResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteApproverResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteBizMetricResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteBizMetricResponse.java index 9bbe1f665c..385d1dcf17 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteBizMetricResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteBizMetricResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteBizMetricResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteBizMetricResponse withData(Object data) { + public DeleteBizMetricResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteBizMetricResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCatalogResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCatalogResponse.java index e75614d884..2c93e55317 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCatalogResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCatalogResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteCatalogResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteCatalogResponse withData(Object data) { + public DeleteCatalogResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteCatalogResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCodeTableResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCodeTableResponse.java index b317832705..ee2fa9d760 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCodeTableResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteCodeTableResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteCodeTableResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteCodeTableResponse withData(Object data) { + public DeleteCodeTableResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteCodeTableResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAggregationLogicTableResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAggregationLogicTableResponse.java index 954a28cc94..6603b8ef04 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAggregationLogicTableResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAggregationLogicTableResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteDesignAggregationLogicTableResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteDesignAggregationLogicTableResponse withData(Object data) { + public DeleteDesignAggregationLogicTableResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteDesignAggregationLogicTableResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAtomicIndexResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAtomicIndexResponse.java index 7298930eef..672c73531a 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAtomicIndexResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignAtomicIndexResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteDesignAtomicIndexResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteDesignAtomicIndexResponse withData(Object data) { + public DeleteDesignAtomicIndexResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteDesignAtomicIndexResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalRequest.java index 65f3fcda40..9c66c9c2e1 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalRequest.java @@ -31,7 +31,7 @@ public class DeleteDesignLatestApprovalRequest { private String bizId; /** - * 待删除下展的实体类型。ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、FACT_LOGIC_TABLE(事实表)、TABLE_MODEL(业务表:逻辑实体/物理表)、STANDARD_ELEMENT(数据标准)、AGGREGATION_LOGIC_TABLE(汇总表)、CODE_TABLE(码表)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)。 + * 待删除下展的实体类型。 枚举值: - ATOMIC_INDEX: 原子指标 - DERIVATIVE_INDEX: 衍生指标 - DIMENSION: 维度 - FACT_LOGIC_TABLE: 事实表 - TABLE_MODEL: 关系建模:逻辑实体/物理表 - STANDARD_ELEMENT: 数据标准 - AGGREGATION_LOGIC_TABLE: 汇总表 - CODE_TABLE: 码表 - BIZ_METRIC: 业务指标 - COMPOUND_METRIC: 复合指标 */ public static final class BizTypeEnum { @@ -195,7 +195,7 @@ public DeleteDesignLatestApprovalRequest withBizId(String bizId) { } /** - * 待删除下展的实体ID。 + * 待删除下展的实体ID,填写String类型替代Long类型。 * @return bizId */ public String getBizId() { @@ -212,7 +212,7 @@ public DeleteDesignLatestApprovalRequest withBizType(BizTypeEnum bizType) { } /** - * 待删除下展的实体类型。ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、FACT_LOGIC_TABLE(事实表)、TABLE_MODEL(业务表:逻辑实体/物理表)、STANDARD_ELEMENT(数据标准)、AGGREGATION_LOGIC_TABLE(汇总表)、CODE_TABLE(码表)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)。 + * 待删除下展的实体类型。 枚举值: - ATOMIC_INDEX: 原子指标 - DERIVATIVE_INDEX: 衍生指标 - DIMENSION: 维度 - FACT_LOGIC_TABLE: 事实表 - TABLE_MODEL: 关系建模:逻辑实体/物理表 - STANDARD_ELEMENT: 数据标准 - AGGREGATION_LOGIC_TABLE: 汇总表 - CODE_TABLE: 码表 - BIZ_METRIC: 业务指标 - COMPOUND_METRIC: 复合指标 * @return bizType */ public BizTypeEnum getBizType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalResponse.java index 2e74e157ff..3ccfd0550b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDesignLatestApprovalResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteDesignLatestApprovalResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteDesignLatestApprovalResponse withData(Object data) { + public DeleteDesignLatestApprovalResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteDesignLatestApprovalResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryRequest.java index f755d7c9ae..628cd5d6d4 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryRequest.java @@ -26,7 +26,7 @@ public class DeleteDirectoryRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ids") - private List ids = null; + private List ids = null; public DeleteDirectoryRequest withWorkspace(String workspace) { this.workspace = workspace; @@ -64,12 +64,12 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } - public DeleteDirectoryRequest withIds(List ids) { + public DeleteDirectoryRequest withIds(List ids) { this.ids = ids; return this; } - public DeleteDirectoryRequest addIdsItem(Long idsItem) { + public DeleteDirectoryRequest addIdsItem(String idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -77,7 +77,7 @@ public DeleteDirectoryRequest addIdsItem(Long idsItem) { return this; } - public DeleteDirectoryRequest withIds(Consumer> idsSetter) { + public DeleteDirectoryRequest withIds(Consumer> idsSetter) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -86,14 +86,14 @@ public DeleteDirectoryRequest withIds(Consumer> idsSetter) { } /** - * 实体ID数组。 + * 实体ID数组,填写String类型替代Long类型。 * @return ids */ - public List getIds() { + public List getIds() { return ids; } - public void setIds(List ids) { + public void setIds(List ids) { this.ids = ids; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryResponse.java index 72ea1b8dcd..656df45e02 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteDirectoryResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteDirectoryResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteDirectoryResponse withData(Object data) { + public DeleteDirectoryResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteDirectoryResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteResultData.java new file mode 100644 index 0000000000..814e46077d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteResultData.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 删除的最终返回结果,返回成功删除的对象个数。 + */ +public class DeleteResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public DeleteResultData withValue(String value) { + this.value = value; + return this; + } + + /** + * 成功删除的对象个数 + * @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; + } + DeleteResultData that = (DeleteResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardResponse.java index 21fbcadeb0..1291309d13 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteStandardResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteStandardResponse withData(Object data) { + public DeleteStandardResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteStandardResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateRequest.java index ad3df6ede1..376d8110a5 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateRequest.java @@ -67,7 +67,7 @@ public DeleteStandardTemplateRequest withIds(String ids) { } /** - * 实体ID。 + * 待删除的数据标准的ID集合。 * @return ids */ public String getIds() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateResponse.java index a9347502bd..1e5752bd3f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteStandardTemplateResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteStandardTemplateResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteStandardTemplateResponse withData(Object data) { + public DeleteStandardTemplateResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteStandardTemplateResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectNewResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectNewResponse.java index 4df411dddc..f8b303f2dd 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectNewResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectNewResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteSubjectNewResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteSubjectNewResponse withData(Object data) { + public DeleteSubjectNewResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteSubjectNewResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectResponse.java index edc274576b..0c08ee967a 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteSubjectResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteSubjectResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteSubjectResponse withData(Object data) { + public DeleteSubjectResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteSubjectResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteTableModelResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteTableModelResponse.java index 87833b5f1d..6673653e56 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteTableModelResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteTableModelResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteTableModelResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteTableModelResponse withData(Object data) { + public DeleteTableModelResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteTableModelResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesRequest.java index 79088854e5..1a1ac212ac 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesRequest.java @@ -26,7 +26,7 @@ public class DeleteWorkspacesRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ids") - private List ids = null; + private List ids = null; public DeleteWorkspacesRequest withWorkspace(String workspace) { this.workspace = workspace; @@ -64,12 +64,12 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } - public DeleteWorkspacesRequest withIds(List ids) { + public DeleteWorkspacesRequest withIds(List ids) { this.ids = ids; return this; } - public DeleteWorkspacesRequest addIdsItem(Long idsItem) { + public DeleteWorkspacesRequest addIdsItem(String idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -77,7 +77,7 @@ public DeleteWorkspacesRequest addIdsItem(Long idsItem) { return this; } - public DeleteWorkspacesRequest withIds(Consumer> idsSetter) { + public DeleteWorkspacesRequest withIds(Consumer> idsSetter) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -86,14 +86,14 @@ public DeleteWorkspacesRequest withIds(Consumer> idsSetter) { } /** - * 实体ID数组。 + * 实体ID数组,填写String类型替代Long类型。 * @return ids */ - public List getIds() { + public List getIds() { return ids; } - public void setIds(List ids) { + public void setIds(List ids) { this.ids = ids; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesResponse.java index d505da2c5a..b388ca4215 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DeleteWorkspacesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class DeleteWorkspacesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DeleteResultData data; - public DeleteWorkspacesResponse withData(Object data) { + public DeleteWorkspacesResponse withData(DeleteResultData data) { this.data = data; return this; } + public DeleteWorkspacesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DeleteResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DeleteResultData getData() { return data; } - public void setData(Object data) { + public void setData(DeleteResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexDimensionVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexDimensionVO.java index 45dd7f6301..a87f41d1f7 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexDimensionVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexDimensionVO.java @@ -26,12 +26,12 @@ public class DerivativeIndexDimensionVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "dimension_id") - private Long dimensionId; + private String dimensionId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "hierarchies_id") - private Long hierarchiesId; + private String hierarchiesId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ordinal") @@ -76,7 +76,7 @@ public class DerivativeIndexDimensionVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l1_id") - private Long l1Id; + private String l1Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l2_id") @@ -86,7 +86,7 @@ public class DerivativeIndexDimensionVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "dw_type") @@ -96,7 +96,7 @@ public class DerivativeIndexDimensionVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; public DerivativeIndexDimensionVO withGroupId(String groupId) { this.groupId = groupId; @@ -132,37 +132,37 @@ public void setRole(String role) { this.role = role; } - public DerivativeIndexDimensionVO withDimensionId(Long dimensionId) { + public DerivativeIndexDimensionVO withDimensionId(String dimensionId) { this.dimensionId = dimensionId; return this; } /** - * 维度ID。 + * 维度ID,填写String类型替代Long类型。 * @return dimensionId */ - public Long getDimensionId() { + public String getDimensionId() { return dimensionId; } - public void setDimensionId(Long dimensionId) { + public void setDimensionId(String dimensionId) { this.dimensionId = dimensionId; } - public DerivativeIndexDimensionVO withHierarchiesId(Long hierarchiesId) { + public DerivativeIndexDimensionVO withHierarchiesId(String hierarchiesId) { this.hierarchiesId = hierarchiesId; return this; } /** - * 维度层级ID。 + * 维度层级ID,填写String类型替代Long类型。 * @return hierarchiesId */ - public Long getHierarchiesId() { + public String getHierarchiesId() { return hierarchiesId; } - public void setHierarchiesId(Long hierarchiesId) { + public void setHierarchiesId(String hierarchiesId) { this.hierarchiesId = hierarchiesId; } @@ -172,7 +172,7 @@ public DerivativeIndexDimensionVO withOrdinal(Integer ordinal) { } /** - * 序号。 + * 序号,只读。 * @return ordinal */ public Integer getOrdinal() { @@ -256,7 +256,7 @@ public DerivativeIndexDimensionVO withHierarchies(Consumer getHierarchies() { @@ -318,20 +318,20 @@ public void setL3(String l3) { this.l3 = l3; } - public DerivativeIndexDimensionVO withL1Id(Long l1Id) { + public DerivativeIndexDimensionVO withL1Id(String l1Id) { this.l1Id = l1Id; return this; } /** - * 主题域分组ID。 + * 主题域分组ID,只读,填写String类型替代Long类型。 * @return l1Id */ - public Long getL1Id() { + public String getL1Id() { return l1Id; } - public void setL1Id(Long l1Id) { + public void setL1Id(String l1Id) { this.l1Id = l1Id; } @@ -352,20 +352,20 @@ public void setL2Id(String l2Id) { this.l2Id = l2Id; } - public DerivativeIndexDimensionVO withL3Id(Long l3Id) { + public DerivativeIndexDimensionVO withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象ID。 + * 业务对象ID,只读,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -386,20 +386,20 @@ public void setDwType(String dwType) { this.dwType = dwType; } - public DerivativeIndexDimensionVO withId(Long id) { + public DerivativeIndexDimensionVO withId(String id) { this.id = id; return this; } /** - * id + * 层级的ID,只读,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexVO.java index 7314105af8..67105fbae2 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DerivativeIndexVO.java @@ -17,7 +17,7 @@ public class DerivativeIndexVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name_en") @@ -47,7 +47,7 @@ public class DerivativeIndexVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l1_id") - private Long l1Id; + private String l1Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l2_id") @@ -57,7 +57,7 @@ public class DerivativeIndexVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") @@ -67,17 +67,17 @@ public class DerivativeIndexVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "atomic_index_id") - private Long atomicIndexId; + private String atomicIndexId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "time_condition_id") - private Long timeConditionId; + private String timeConditionId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "time_field_id") - private Long timeFieldId; + private String timeFieldId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "time_field_name") @@ -137,7 +137,7 @@ public class DerivativeIndexVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "summary_table_id") - private Long summaryTableId; + private String summaryTableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "approval_info") @@ -149,20 +149,20 @@ public class DerivativeIndexVO { private BizVersionManageVO newBiz; - public DerivativeIndexVO withId(Long id) { + public DerivativeIndexVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -206,7 +206,7 @@ public DerivativeIndexVO withDescription(String description) { } /** - * 描述。 + * 描述,只读。 * @return description */ public String getDescription() { @@ -251,20 +251,20 @@ public void setDataType(String dataType) { this.dataType = dataType; } - public DerivativeIndexVO withL1Id(Long l1Id) { + public DerivativeIndexVO withL1Id(String l1Id) { this.l1Id = l1Id; return this; } /** - * 主题域分组ID。 + * 主题域分组ID,只读,填写String类型替代Long类型。 * @return l1Id */ - public Long getL1Id() { + public String getL1Id() { return l1Id; } - public void setL1Id(Long l1Id) { + public void setL1Id(String l1Id) { this.l1Id = l1Id; } @@ -285,20 +285,20 @@ public void setL2Id(String l2Id) { this.l2Id = l2Id; } - public DerivativeIndexVO withL3Id(Long l3Id) { + public DerivativeIndexVO withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象guid。 + * 业务对象guid,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -319,54 +319,54 @@ public void setStatus(BizStatusEnum status) { this.status = status; } - public DerivativeIndexVO withAtomicIndexId(Long atomicIndexId) { + public DerivativeIndexVO withAtomicIndexId(String atomicIndexId) { this.atomicIndexId = atomicIndexId; return this; } /** - * 原子指标ID。 + * 原子指标ID,填写String类型替代Long类型。 * @return atomicIndexId */ - public Long getAtomicIndexId() { + public String getAtomicIndexId() { return atomicIndexId; } - public void setAtomicIndexId(Long atomicIndexId) { + public void setAtomicIndexId(String atomicIndexId) { this.atomicIndexId = atomicIndexId; } - public DerivativeIndexVO withTimeConditionId(Long timeConditionId) { + public DerivativeIndexVO withTimeConditionId(String timeConditionId) { this.timeConditionId = timeConditionId; return this; } /** - * 时间限定ID。 + * 时间限定ID,填写String类型替代Long类型。 * @return timeConditionId */ - public Long getTimeConditionId() { + public String getTimeConditionId() { return timeConditionId; } - public void setTimeConditionId(Long timeConditionId) { + public void setTimeConditionId(String timeConditionId) { this.timeConditionId = timeConditionId; } - public DerivativeIndexVO withTimeFieldId(Long timeFieldId) { + public DerivativeIndexVO withTimeFieldId(String timeFieldId) { this.timeFieldId = timeFieldId; return this; } /** - * 时间限定关联字段ID。 + * 时间限定关联字段ID,填写String类型替代Long类型。 * @return timeFieldId */ - public Long getTimeFieldId() { + public String getTimeFieldId() { return timeFieldId; } - public void setTimeFieldId(Long timeFieldId) { + public void setTimeFieldId(String timeFieldId) { this.timeFieldId = timeFieldId; } @@ -376,7 +376,7 @@ public DerivativeIndexVO withTimeFieldName(String timeFieldName) { } /** - * 时间限定关联字段名称。 + * 时间限定关联字段名称,只读。 * @return timeFieldName */ public String getTimeFieldName() { @@ -511,7 +511,7 @@ public DerivativeIndexVO withTimeConditionName(String timeConditionName) { } /** - * 时间限定名称。 + * 时间限定名称,只读。 * @return timeConditionName */ public String getTimeConditionName() { @@ -528,7 +528,7 @@ public DerivativeIndexVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -545,7 +545,7 @@ public DerivativeIndexVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -607,20 +607,20 @@ public void setL3(String l3) { this.l3 = l3; } - public DerivativeIndexVO withSummaryTableId(Long summaryTableId) { + public DerivativeIndexVO withSummaryTableId(String summaryTableId) { this.summaryTableId = summaryTableId; return this; } /** - * 汇总表ID。 + * 汇总表ID,只读,填写String类型替代Long类型。 * @return summaryTableId */ - public Long getSummaryTableId() { + public String getSummaryTableId() { return summaryTableId; } - public void setSummaryTableId(Long summaryTableId) { + public void setSummaryTableId(String summaryTableId) { this.summaryTableId = summaryTableId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionAttributeVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionAttributeVO.java index fec4c65ae9..a9cfa15d29 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionAttributeVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionAttributeVO.java @@ -17,17 +17,17 @@ public class DimensionAttributeVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "dimension_id") - private Long dimensionId; + private String dimensionId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "code_table_field_id") - private Long codeTableFieldId; + private String codeTableFieldId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name_en") @@ -92,7 +92,7 @@ public class DimensionAttributeVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stand_row_id") - private Long standRowId; + private String standRowId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stand_row_name") @@ -104,6 +104,11 @@ public class DimensionAttributeVO { private List qualityInfos = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecy_levels") + + private List secrecyLevels = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") @@ -129,54 +134,54 @@ public class DimensionAttributeVO { private List selfDefinedFields = null; - public DimensionAttributeVO withId(Long id) { + public DimensionAttributeVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public DimensionAttributeVO withDimensionId(Long dimensionId) { + public DimensionAttributeVO withDimensionId(String dimensionId) { this.dimensionId = dimensionId; return this; } /** - * 维度ID。 + * 维度ID,只读,填写String类型替代Long类型。 * @return dimensionId */ - public Long getDimensionId() { + public String getDimensionId() { return dimensionId; } - public void setDimensionId(Long dimensionId) { + public void setDimensionId(String dimensionId) { this.dimensionId = dimensionId; } - public DimensionAttributeVO withCodeTableFieldId(Long codeTableFieldId) { + public DimensionAttributeVO withCodeTableFieldId(String codeTableFieldId) { this.codeTableFieldId = codeTableFieldId; return this; } /** - * 码表属性ID。 + * 码表属性ID,填写String类型替代Long类型。 * @return codeTableFieldId */ - public Long getCodeTableFieldId() { + public String getCodeTableFieldId() { return codeTableFieldId; } - public void setCodeTableFieldId(Long codeTableFieldId) { + public void setCodeTableFieldId(String codeTableFieldId) { this.codeTableFieldId = codeTableFieldId; } @@ -384,20 +389,20 @@ public void setNotNull(Boolean notNull) { this.notNull = notNull; } - public DimensionAttributeVO withStandRowId(Long standRowId) { + public DimensionAttributeVO withStandRowId(String standRowId) { this.standRowId = standRowId; return this; } /** - * 关联的数据标准的ID。 + * 关联的数据标准的ID,填写String类型替代Long类型。 * @return standRowId */ - public Long getStandRowId() { + public String getStandRowId() { return standRowId; } - public void setStandRowId(Long standRowId) { + public void setStandRowId(String standRowId) { this.standRowId = standRowId; } @@ -407,7 +412,7 @@ public DimensionAttributeVO withStandRowName(String standRowName) { } /** - * 关联的数据标准名称。 + * 关联的数据标准名称,只读。 * @return standRowName */ public String getStandRowName() { @@ -440,7 +445,7 @@ public DimensionAttributeVO withQualityInfos(Consumer> quali } /** - * 质量信息。 + * 质量信息,只读。 * @return qualityInfos */ public List getQualityInfos() { @@ -451,6 +456,39 @@ public void setQualityInfos(List qualityInfos) { this.qualityInfos = qualityInfos; } + public DimensionAttributeVO withSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + return this; + } + + public DimensionAttributeVO addSecrecyLevelsItem(SecrecyLevelVO secrecyLevelsItem) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + this.secrecyLevels.add(secrecyLevelsItem); + return this; + } + + public DimensionAttributeVO withSecrecyLevels(Consumer> secrecyLevelsSetter) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + secrecyLevelsSetter.accept(this.secrecyLevels); + return this; + } + + /** + * 密级 + * @return secrecyLevels + */ + public List getSecrecyLevels() { + return secrecyLevels; + } + + public void setSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + } + public DimensionAttributeVO withStatus(BizStatusEnum status) { this.status = status; return this; @@ -474,7 +512,7 @@ public DimensionAttributeVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -491,7 +529,7 @@ public DimensionAttributeVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -572,7 +610,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.isPartitionKey, that.isPartitionKey) && Objects.equals(this.ordinal, that.ordinal) && Objects.equals(this.notNull, that.notNull) && Objects.equals(this.standRowId, that.standRowId) && Objects.equals(this.standRowName, that.standRowName) - && Objects.equals(this.qualityInfos, that.qualityInfos) && Objects.equals(this.status, that.status) + && Objects.equals(this.qualityInfos, that.qualityInfos) + && Objects.equals(this.secrecyLevels, that.secrecyLevels) && Objects.equals(this.status, that.status) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.alias, that.alias) && Objects.equals(this.selfDefinedFields, that.selfDefinedFields); } @@ -597,6 +636,7 @@ public int hashCode() { standRowId, standRowName, qualityInfos, + secrecyLevels, status, createTime, updateTime, @@ -626,6 +666,7 @@ public String toString() { sb.append(" standRowId: ").append(toIndentedString(standRowId)).append("\n"); sb.append(" standRowName: ").append(toIndentedString(standRowName)).append("\n"); sb.append(" qualityInfos: ").append(toIndentedString(qualityInfos)).append("\n"); + sb.append(" secrecyLevels: ").append(toIndentedString(secrecyLevels)).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"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionHierarchiesVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionHierarchiesVO.java index 5d79d58d30..ae963b4450 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionHierarchiesVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionHierarchiesVO.java @@ -17,7 +17,7 @@ public class DimensionHierarchiesVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -49,20 +49,20 @@ public class DimensionHierarchiesVO { private String updateBy; - public DimensionHierarchiesVO withId(Long id) { + public DimensionHierarchiesVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -122,7 +122,7 @@ public DimensionHierarchiesVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -139,7 +139,7 @@ public DimensionHierarchiesVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionLogicTableAttributeVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionLogicTableAttributeVO.java new file mode 100644 index 0000000000..d02765841e --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionLogicTableAttributeVO.java @@ -0,0 +1,594 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * DimensionLogicTableAttributeVO + */ +public class DimensionLogicTableAttributeVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_logic_table_id") + + private String dimensionLogicTableId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ordinal") + + private Integer ordinal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_attribute_id") + + private String dimensionAttributeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_en") + + private String nameEn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_ch") + + private String nameCh; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_type") + + private String dataType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_type") + + private DataTypeDomainEnum domainType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_type_extend") + + private String dataTypeExtend; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_primary_key") + + private Boolean isPrimaryKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_biz_primary") + + private Boolean isBizPrimary; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_partition_key") + + private Boolean isPartitionKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "not_null") + + private Boolean notNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stand_row_id") + + private String standRowId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stand_row_name") + + private String standRowName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "quality_infos") + + private List qualityInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "self_defined_fields") + + private List selfDefinedFields = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecy_levels") + + private List secrecyLevels = null; + + public DimensionLogicTableAttributeVO withId(String id) { + this.id = id; + return this; + } + + /** + * 维度表ID,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DimensionLogicTableAttributeVO withDimensionLogicTableId(String dimensionLogicTableId) { + this.dimensionLogicTableId = dimensionLogicTableId; + return this; + } + + /** + * 所属维表ID。 + * @return dimensionLogicTableId + */ + public String getDimensionLogicTableId() { + return dimensionLogicTableId; + } + + public void setDimensionLogicTableId(String dimensionLogicTableId) { + this.dimensionLogicTableId = dimensionLogicTableId; + } + + public DimensionLogicTableAttributeVO withOrdinal(Integer ordinal) { + this.ordinal = ordinal; + return this; + } + + /** + * 序号 + * @return ordinal + */ + public Integer getOrdinal() { + return ordinal; + } + + public void setOrdinal(Integer ordinal) { + this.ordinal = ordinal; + } + + public DimensionLogicTableAttributeVO withDimensionAttributeId(String dimensionAttributeId) { + this.dimensionAttributeId = dimensionAttributeId; + return this; + } + + /** + * 维度属性ID,填写String类型替代Long类型。 + * @return dimensionAttributeId + */ + public String getDimensionAttributeId() { + return dimensionAttributeId; + } + + public void setDimensionAttributeId(String dimensionAttributeId) { + this.dimensionAttributeId = dimensionAttributeId; + } + + public DimensionLogicTableAttributeVO withNameEn(String nameEn) { + this.nameEn = nameEn; + return this; + } + + /** + * 字段名,只读。 + * @return nameEn + */ + public String getNameEn() { + return nameEn; + } + + public void setNameEn(String nameEn) { + this.nameEn = nameEn; + } + + public DimensionLogicTableAttributeVO withNameCh(String nameCh) { + this.nameCh = nameCh; + return this; + } + + /** + * 业务属性,只读。 + * @return nameCh + */ + public String getNameCh() { + return nameCh; + } + + public void setNameCh(String nameCh) { + this.nameCh = nameCh; + } + + public DimensionLogicTableAttributeVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述,只读。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DimensionLogicTableAttributeVO withDataType(String dataType) { + this.dataType = dataType; + return this; + } + + /** + * 字段类型。 + * @return dataType + */ + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + + public DimensionLogicTableAttributeVO withDomainType(DataTypeDomainEnum domainType) { + this.domainType = domainType; + return this; + } + + /** + * Get domainType + * @return domainType + */ + public DataTypeDomainEnum getDomainType() { + return domainType; + } + + public void setDomainType(DataTypeDomainEnum domainType) { + this.domainType = domainType; + } + + public DimensionLogicTableAttributeVO withDataTypeExtend(String dataTypeExtend) { + this.dataTypeExtend = dataTypeExtend; + return this; + } + + /** + * 数据类型扩展字段。 + * @return dataTypeExtend + */ + public String getDataTypeExtend() { + return dataTypeExtend; + } + + public void setDataTypeExtend(String dataTypeExtend) { + this.dataTypeExtend = dataTypeExtend; + } + + public DimensionLogicTableAttributeVO withIsPrimaryKey(Boolean isPrimaryKey) { + this.isPrimaryKey = isPrimaryKey; + return this; + } + + /** + * 是否主键,只读。 + * @return isPrimaryKey + */ + public Boolean getIsPrimaryKey() { + return isPrimaryKey; + } + + public void setIsPrimaryKey(Boolean isPrimaryKey) { + this.isPrimaryKey = isPrimaryKey; + } + + public DimensionLogicTableAttributeVO withIsBizPrimary(Boolean isBizPrimary) { + this.isBizPrimary = isBizPrimary; + return this; + } + + /** + * 是否业务主键。 + * @return isBizPrimary + */ + public Boolean getIsBizPrimary() { + return isBizPrimary; + } + + public void setIsBizPrimary(Boolean isBizPrimary) { + this.isBizPrimary = isBizPrimary; + } + + public DimensionLogicTableAttributeVO withIsPartitionKey(Boolean isPartitionKey) { + this.isPartitionKey = isPartitionKey; + return this; + } + + /** + * 是否主键分区,只读。 + * @return isPartitionKey + */ + public Boolean getIsPartitionKey() { + return isPartitionKey; + } + + public void setIsPartitionKey(Boolean isPartitionKey) { + this.isPartitionKey = isPartitionKey; + } + + public DimensionLogicTableAttributeVO withNotNull(Boolean notNull) { + this.notNull = notNull; + return this; + } + + /** + * 是否不为空。 + * @return notNull + */ + public Boolean getNotNull() { + return notNull; + } + + public void setNotNull(Boolean notNull) { + this.notNull = notNull; + } + + public DimensionLogicTableAttributeVO withStandRowId(String standRowId) { + this.standRowId = standRowId; + return this; + } + + /** + * 关联的数据标准的ID,填写String类型替代Long类型。 + * @return standRowId + */ + public String getStandRowId() { + return standRowId; + } + + public void setStandRowId(String standRowId) { + this.standRowId = standRowId; + } + + public DimensionLogicTableAttributeVO withStandRowName(String standRowName) { + this.standRowName = standRowName; + return this; + } + + /** + * 关联的数据标准名称,只读。 + * @return standRowName + */ + public String getStandRowName() { + return standRowName; + } + + public void setStandRowName(String standRowName) { + this.standRowName = standRowName; + } + + public DimensionLogicTableAttributeVO withQualityInfos(List qualityInfos) { + this.qualityInfos = qualityInfos; + return this; + } + + public DimensionLogicTableAttributeVO addQualityInfosItem(QualityInfoVO qualityInfosItem) { + if (this.qualityInfos == null) { + this.qualityInfos = new ArrayList<>(); + } + this.qualityInfos.add(qualityInfosItem); + return this; + } + + public DimensionLogicTableAttributeVO withQualityInfos(Consumer> qualityInfosSetter) { + if (this.qualityInfos == null) { + this.qualityInfos = new ArrayList<>(); + } + qualityInfosSetter.accept(this.qualityInfos); + return this; + } + + /** + * 质量信息,只读。 + * @return qualityInfos + */ + public List getQualityInfos() { + return qualityInfos; + } + + public void setQualityInfos(List qualityInfos) { + this.qualityInfos = qualityInfos; + } + + public DimensionLogicTableAttributeVO withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 别名。 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public DimensionLogicTableAttributeVO withSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + return this; + } + + public DimensionLogicTableAttributeVO addSelfDefinedFieldsItem(SelfDefinedFieldVO selfDefinedFieldsItem) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + this.selfDefinedFields.add(selfDefinedFieldsItem); + return this; + } + + public DimensionLogicTableAttributeVO withSelfDefinedFields( + Consumer> selfDefinedFieldsSetter) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + selfDefinedFieldsSetter.accept(this.selfDefinedFields); + return this; + } + + /** + * 自定义项。 + * @return selfDefinedFields + */ + public List getSelfDefinedFields() { + return selfDefinedFields; + } + + public void setSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + } + + public DimensionLogicTableAttributeVO withSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + return this; + } + + public DimensionLogicTableAttributeVO addSecrecyLevelsItem(SecrecyLevelVO secrecyLevelsItem) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + this.secrecyLevels.add(secrecyLevelsItem); + return this; + } + + public DimensionLogicTableAttributeVO withSecrecyLevels(Consumer> secrecyLevelsSetter) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + secrecyLevelsSetter.accept(this.secrecyLevels); + return this; + } + + /** + * 密级 + * @return secrecyLevels + */ + public List getSecrecyLevels() { + return secrecyLevels; + } + + public void setSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DimensionLogicTableAttributeVO that = (DimensionLogicTableAttributeVO) obj; + return Objects.equals(this.id, that.id) + && Objects.equals(this.dimensionLogicTableId, that.dimensionLogicTableId) + && Objects.equals(this.ordinal, that.ordinal) + && Objects.equals(this.dimensionAttributeId, that.dimensionAttributeId) + && Objects.equals(this.nameEn, that.nameEn) && Objects.equals(this.nameCh, that.nameCh) + && Objects.equals(this.description, that.description) && Objects.equals(this.dataType, that.dataType) + && Objects.equals(this.domainType, that.domainType) + && Objects.equals(this.dataTypeExtend, that.dataTypeExtend) + && Objects.equals(this.isPrimaryKey, that.isPrimaryKey) + && Objects.equals(this.isBizPrimary, that.isBizPrimary) + && Objects.equals(this.isPartitionKey, that.isPartitionKey) && Objects.equals(this.notNull, that.notNull) + && Objects.equals(this.standRowId, that.standRowId) && Objects.equals(this.standRowName, that.standRowName) + && Objects.equals(this.qualityInfos, that.qualityInfos) && Objects.equals(this.alias, that.alias) + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) + && Objects.equals(this.secrecyLevels, that.secrecyLevels); + } + + @Override + public int hashCode() { + return Objects.hash(id, + dimensionLogicTableId, + ordinal, + dimensionAttributeId, + nameEn, + nameCh, + description, + dataType, + domainType, + dataTypeExtend, + isPrimaryKey, + isBizPrimary, + isPartitionKey, + notNull, + standRowId, + standRowName, + qualityInfos, + alias, + selfDefinedFields, + secrecyLevels); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DimensionLogicTableAttributeVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" dimensionLogicTableId: ").append(toIndentedString(dimensionLogicTableId)).append("\n"); + sb.append(" ordinal: ").append(toIndentedString(ordinal)).append("\n"); + sb.append(" dimensionAttributeId: ").append(toIndentedString(dimensionAttributeId)).append("\n"); + sb.append(" nameEn: ").append(toIndentedString(nameEn)).append("\n"); + sb.append(" nameCh: ").append(toIndentedString(nameCh)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); + sb.append(" domainType: ").append(toIndentedString(domainType)).append("\n"); + sb.append(" dataTypeExtend: ").append(toIndentedString(dataTypeExtend)).append("\n"); + sb.append(" isPrimaryKey: ").append(toIndentedString(isPrimaryKey)).append("\n"); + sb.append(" isBizPrimary: ").append(toIndentedString(isBizPrimary)).append("\n"); + sb.append(" isPartitionKey: ").append(toIndentedString(isPartitionKey)).append("\n"); + sb.append(" notNull: ").append(toIndentedString(notNull)).append("\n"); + sb.append(" standRowId: ").append(toIndentedString(standRowId)).append("\n"); + sb.append(" standRowName: ").append(toIndentedString(standRowName)).append("\n"); + sb.append(" qualityInfos: ").append(toIndentedString(qualityInfos)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); + sb.append(" secrecyLevels: ").append(toIndentedString(secrecyLevels)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionLogicTableVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionLogicTableVO.java new file mode 100644 index 0000000000..ab1d8e6945 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionLogicTableVO.java @@ -0,0 +1,1715 @@ +package com.huaweicloud.sdk.dataartsstudio.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.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * DimensionLogicTableVO + */ +public class DimensionLogicTableVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_name") + + private String tbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_logic_name") + + private String tbLogicName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1_id") + + private String l1Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2_id") + + private String l2Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3_id") + + private String l3Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_id") + + private String dimensionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + /** + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 + */ + public static final class DimensionTypeEnum { + + /** + * Enum COMMON for value: "COMMON" + */ + public static final DimensionTypeEnum COMMON = new DimensionTypeEnum("COMMON"); + + /** + * Enum LOOKUP for value: "LOOKUP" + */ + public static final DimensionTypeEnum LOOKUP = new DimensionTypeEnum("LOOKUP"); + + /** + * Enum HIERARCHIES for value: "HIERARCHIES" + */ + public static final DimensionTypeEnum HIERARCHIES = new DimensionTypeEnum("HIERARCHIES"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("COMMON", COMMON); + map.put("LOOKUP", LOOKUP); + map.put("HIERARCHIES", HIERARCHIES); + return Collections.unmodifiableMap(map); + } + + private String value; + + DimensionTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DimensionTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DimensionTypeEnum(value)); + } + + public static DimensionTypeEnum 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 DimensionTypeEnum) { + return this.value.equals(((DimensionTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_type") + + private DimensionTypeEnum dimensionType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code_table_id") + + private String codeTableId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code_table") + + private CodeTableVO codeTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private String queueName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_id") + + private String dwId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reversed") + + private Boolean reversed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "partition_conf") + + private String partitionConf; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_switch") + + private Boolean dirtyOutSwitch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_database") + + private String dirtyOutDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_prefix") + + private String dirtyOutPrefix; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_suffix") + + private String dirtyOutSuffix; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_id") + + private String tbId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_type") + + private String tableType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private BizStatusEnum status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_guid") + + private String tbGuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_logic_guid") + + private String tbLogicGuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_name") + + private String dimensionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attributes") + + private List attributes = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_type") + + private String dwType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_name") + + private String dwName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1") + + private String l1; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2") + + private String l2; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3") + + private String l3; + + @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 = "approval_info") + + private ApprovalVO approvalInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_biz") + + private BizVersionManageVO newBiz; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "physical_table") + + private SyncStatusEnum physicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_physical_table") + + private SyncStatusEnum devPhysicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "technical_asset") + + private SyncStatusEnum technicalAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "business_asset") + + private SyncStatusEnum businessAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "meta_data_link") + + private SyncStatusEnum metaDataLink; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_quality") + + private SyncStatusEnum dataQuality; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "materialization") + + private SyncStatusEnum materialization; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "summary_status") + + private SyncStatusEnum summaryStatus; + + /** + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 + */ + public static final class DistributeEnum { + + /** + * Enum HASH for value: "HASH" + */ + public static final DistributeEnum HASH = new DistributeEnum("HASH"); + + /** + * Enum REPLICATION for value: "REPLICATION" + */ + public static final DistributeEnum REPLICATION = new DistributeEnum("REPLICATION"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("HASH", HASH); + map.put("REPLICATION", REPLICATION); + return Collections.unmodifiableMap(map); + } + + private String value; + + DistributeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DistributeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DistributeEnum(value)); + } + + public static DistributeEnum 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 DistributeEnum) { + return this.value.equals(((DistributeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "distribute") + + private DistributeEnum distribute; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "distribute_column") + + private String distributeColumn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "quality_id") + + private String qualityId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "self_defined_fields") + + private List selfDefinedFields = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_location") + + private String obsLocation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configs") + + private String configs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version") + + private String devVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version") + + private String prodVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version_name") + + private String devVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version_name") + + private String prodVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + + public DimensionLogicTableVO 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 DimensionLogicTableVO withTbName(String tbName) { + this.tbName = tbName; + return this; + } + + /** + * 表名称。 + * @return tbName + */ + public String getTbName() { + return tbName; + } + + public void setTbName(String tbName) { + this.tbName = tbName; + } + + public DimensionLogicTableVO withTbLogicName(String tbLogicName) { + this.tbLogicName = tbLogicName; + return this; + } + + /** + * 逻辑实体名。 + * @return tbLogicName + */ + public String getTbLogicName() { + return tbLogicName; + } + + public void setTbLogicName(String tbLogicName) { + this.tbLogicName = tbLogicName; + } + + public DimensionLogicTableVO withL1Id(String l1Id) { + this.l1Id = l1Id; + return this; + } + + /** + * 主题域分组ID,只读,填写String类型替代Long类型。 + * @return l1Id + */ + public String getL1Id() { + return l1Id; + } + + public void setL1Id(String l1Id) { + this.l1Id = l1Id; + } + + public DimensionLogicTableVO withL2Id(String l2Id) { + this.l2Id = l2Id; + return this; + } + + /** + * 主题域ID,只读,创建和更新时无需填写。 + * @return l2Id + */ + public String getL2Id() { + return l2Id; + } + + public void setL2Id(String l2Id) { + this.l2Id = l2Id; + } + + public DimensionLogicTableVO withL3Id(String l3Id) { + this.l3Id = l3Id; + return this; + } + + /** + * 业务对象ID,填写String类型替代Long类型。 + * @return l3Id + */ + public String getL3Id() { + return l3Id; + } + + public void setL3Id(String l3Id) { + this.l3Id = l3Id; + } + + public DimensionLogicTableVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public DimensionLogicTableVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DimensionLogicTableVO withDimensionId(String dimensionId) { + this.dimensionId = dimensionId; + return this; + } + + /** + * 所属维度ID,填写String类型替代Long类型。 + * @return dimensionId + */ + public String getDimensionId() { + return dimensionId; + } + + public void setDimensionId(String dimensionId) { + this.dimensionId = dimensionId; + } + + public DimensionLogicTableVO withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 资产责任人。 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public DimensionLogicTableVO withDimensionType(DimensionTypeEnum dimensionType) { + this.dimensionType = dimensionType; + return this; + } + + /** + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 + * @return dimensionType + */ + public DimensionTypeEnum getDimensionType() { + return dimensionType; + } + + public void setDimensionType(DimensionTypeEnum dimensionType) { + this.dimensionType = dimensionType; + } + + public DimensionLogicTableVO withCodeTableId(String codeTableId) { + this.codeTableId = codeTableId; + return this; + } + + /** + * 引用码表ID,填写String类型替代Long类型。 + * @return codeTableId + */ + public String getCodeTableId() { + return codeTableId; + } + + public void setCodeTableId(String codeTableId) { + this.codeTableId = codeTableId; + } + + public DimensionLogicTableVO withCodeTable(CodeTableVO codeTable) { + this.codeTable = codeTable; + return this; + } + + public DimensionLogicTableVO withCodeTable(Consumer codeTableSetter) { + if (this.codeTable == null) { + this.codeTable = new CodeTableVO(); + codeTableSetter.accept(this.codeTable); + } + + return this; + } + + /** + * Get codeTable + * @return codeTable + */ + public CodeTableVO getCodeTable() { + return codeTable; + } + + public void setCodeTable(CodeTableVO codeTable) { + this.codeTable = codeTable; + } + + public DimensionLogicTableVO withQueueName(String queueName) { + this.queueName = queueName; + return this; + } + + /** + * dli数据连接执行sql所需的队列,数据连接类型为DLI时必须。 + * @return queueName + */ + public String getQueueName() { + return queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + } + + public DimensionLogicTableVO withDwId(String dwId) { + this.dwId = dwId; + return this; + } + + /** + * 数据连接ID。 + * @return dwId + */ + public String getDwId() { + return dwId; + } + + public void setDwId(String dwId) { + this.dwId = dwId; + } + + public DimensionLogicTableVO withReversed(Boolean reversed) { + this.reversed = reversed; + return this; + } + + /** + * 是否是逆向的。 + * @return reversed + */ + public Boolean getReversed() { + return reversed; + } + + public void setReversed(Boolean reversed) { + this.reversed = reversed; + } + + public DimensionLogicTableVO withPartitionConf(String partitionConf) { + this.partitionConf = partitionConf; + return this; + } + + /** + * 分区表达式。 + * @return partitionConf + */ + public String getPartitionConf() { + return partitionConf; + } + + public void setPartitionConf(String partitionConf) { + this.partitionConf = partitionConf; + } + + public DimensionLogicTableVO withDirtyOutSwitch(Boolean dirtyOutSwitch) { + this.dirtyOutSwitch = dirtyOutSwitch; + return this; + } + + /** + * 异常数据输出开关。 + * @return dirtyOutSwitch + */ + public Boolean getDirtyOutSwitch() { + return dirtyOutSwitch; + } + + public void setDirtyOutSwitch(Boolean dirtyOutSwitch) { + this.dirtyOutSwitch = dirtyOutSwitch; + } + + public DimensionLogicTableVO withDirtyOutDatabase(String dirtyOutDatabase) { + this.dirtyOutDatabase = dirtyOutDatabase; + return this; + } + + /** + * 异常数据输出库。 + * @return dirtyOutDatabase + */ + public String getDirtyOutDatabase() { + return dirtyOutDatabase; + } + + public void setDirtyOutDatabase(String dirtyOutDatabase) { + this.dirtyOutDatabase = dirtyOutDatabase; + } + + public DimensionLogicTableVO withDirtyOutPrefix(String dirtyOutPrefix) { + this.dirtyOutPrefix = dirtyOutPrefix; + return this; + } + + /** + * 异常表前缀。 + * @return dirtyOutPrefix + */ + public String getDirtyOutPrefix() { + return dirtyOutPrefix; + } + + public void setDirtyOutPrefix(String dirtyOutPrefix) { + this.dirtyOutPrefix = dirtyOutPrefix; + } + + public DimensionLogicTableVO withDirtyOutSuffix(String dirtyOutSuffix) { + this.dirtyOutSuffix = dirtyOutSuffix; + return this; + } + + /** + * 异常表后缀。 + * @return dirtyOutSuffix + */ + public String getDirtyOutSuffix() { + return dirtyOutSuffix; + } + + public void setDirtyOutSuffix(String dirtyOutSuffix) { + this.dirtyOutSuffix = dirtyOutSuffix; + } + + public DimensionLogicTableVO withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 库名。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public DimensionLogicTableVO withTbId(String tbId) { + this.tbId = tbId; + return this; + } + + /** + * 数据表ID,只读。 + * @return tbId + */ + public String getTbId() { + return tbId; + } + + public void setTbId(String tbId) { + this.tbId = tbId; + } + + public DimensionLogicTableVO withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * DWS类型需要。 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public DimensionLogicTableVO withTableType(String tableType) { + this.tableType = tableType; + return this; + } + + /** + * 表类型。 + * @return tableType + */ + public String getTableType() { + return tableType; + } + + public void setTableType(String tableType) { + this.tableType = tableType; + } + + public DimensionLogicTableVO withStatus(BizStatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public BizStatusEnum getStatus() { + return status; + } + + public void setStatus(BizStatusEnum status) { + this.status = status; + } + + public DimensionLogicTableVO withTbGuid(String tbGuid) { + this.tbGuid = tbGuid; + return this; + } + + /** + * 表发布后,创建的数据目录技术资产guid,只读,创建和更新时无需填写。 + * @return tbGuid + */ + public String getTbGuid() { + return tbGuid; + } + + public void setTbGuid(String tbGuid) { + this.tbGuid = tbGuid; + } + + public DimensionLogicTableVO withTbLogicGuid(String tbLogicGuid) { + this.tbLogicGuid = tbLogicGuid; + return this; + } + + /** + * 表发布后,创建的数据目录业务资产guid,只读,创建和更新时无需填写。 + * @return tbLogicGuid + */ + public String getTbLogicGuid() { + return tbLogicGuid; + } + + public void setTbLogicGuid(String tbLogicGuid) { + this.tbLogicGuid = tbLogicGuid; + } + + public DimensionLogicTableVO withDimensionName(String dimensionName) { + this.dimensionName = dimensionName; + return this; + } + + /** + * 关联维度名称,只读。 + * @return dimensionName + */ + public String getDimensionName() { + return dimensionName; + } + + public void setDimensionName(String dimensionName) { + this.dimensionName = dimensionName; + } + + public DimensionLogicTableVO withAttributes(List attributes) { + this.attributes = attributes; + return this; + } + + public DimensionLogicTableVO addAttributesItem(DimensionLogicTableAttributeVO attributesItem) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.add(attributesItem); + return this; + } + + public DimensionLogicTableVO withAttributes(Consumer> attributesSetter) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + attributesSetter.accept(this.attributes); + return this; + } + + /** + * 字段属性。 + * @return attributes + */ + public List getAttributes() { + return attributes; + } + + public void setAttributes(List attributes) { + this.attributes = attributes; + } + + public DimensionLogicTableVO withDwType(String dwType) { + this.dwType = dwType; + return this; + } + + /** + * 数据连接类型,对应表所在的数仓类型,取值可以为DLI、DWS、MRS_HIVE、POSTGRESQL、MRS_SPARK、CLICKHOUSE、MYSQL、ORACLE和DORIS等。 + * @return dwType + */ + public String getDwType() { + return dwType; + } + + public void setDwType(String dwType) { + this.dwType = dwType; + } + + public DimensionLogicTableVO withDwName(String dwName) { + this.dwName = dwName; + return this; + } + + /** + * 数据连接名称,只读,创建和更新时无需填写。 + * @return dwName + */ + public String getDwName() { + return dwName; + } + + public void setDwName(String dwName) { + this.dwName = dwName; + } + + public DimensionLogicTableVO withL1(String l1) { + this.l1 = l1; + return this; + } + + /** + * 主题域分组中文名,只读,创建和更新时无需填写。 + * @return l1 + */ + public String getL1() { + return l1; + } + + public void setL1(String l1) { + this.l1 = l1; + } + + public DimensionLogicTableVO withL2(String l2) { + this.l2 = l2; + return this; + } + + /** + * 主题域中文名,只读,创建和更新时无需填写。 + * @return l2 + */ + public String getL2() { + return l2; + } + + public void setL2(String l2) { + this.l2 = l2; + } + + public DimensionLogicTableVO withL3(String l3) { + this.l3 = l3; + return this; + } + + /** + * 业务对象中文名,只读,创建和更新时无需填写。 + * @return l3 + */ + public String getL3() { + return l3; + } + + public void setL3(String l3) { + this.l3 = l3; + } + + public DimensionLogicTableVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public DimensionLogicTableVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public DimensionLogicTableVO withApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + return this; + } + + public DimensionLogicTableVO withApprovalInfo(Consumer approvalInfoSetter) { + if (this.approvalInfo == null) { + this.approvalInfo = new ApprovalVO(); + approvalInfoSetter.accept(this.approvalInfo); + } + + return this; + } + + /** + * Get approvalInfo + * @return approvalInfo + */ + public ApprovalVO getApprovalInfo() { + return approvalInfo; + } + + public void setApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + } + + public DimensionLogicTableVO withNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + return this; + } + + public DimensionLogicTableVO withNewBiz(Consumer newBizSetter) { + if (this.newBiz == null) { + this.newBiz = new BizVersionManageVO(); + newBizSetter.accept(this.newBiz); + } + + return this; + } + + /** + * Get newBiz + * @return newBiz + */ + public BizVersionManageVO getNewBiz() { + return newBiz; + } + + public void setNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + } + + public DimensionLogicTableVO withPhysicalTable(SyncStatusEnum physicalTable) { + this.physicalTable = physicalTable; + return this; + } + + /** + * Get physicalTable + * @return physicalTable + */ + public SyncStatusEnum getPhysicalTable() { + return physicalTable; + } + + public void setPhysicalTable(SyncStatusEnum physicalTable) { + this.physicalTable = physicalTable; + } + + public DimensionLogicTableVO withDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + return this; + } + + /** + * Get devPhysicalTable + * @return devPhysicalTable + */ + public SyncStatusEnum getDevPhysicalTable() { + return devPhysicalTable; + } + + public void setDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + } + + public DimensionLogicTableVO withTechnicalAsset(SyncStatusEnum technicalAsset) { + this.technicalAsset = technicalAsset; + return this; + } + + /** + * Get technicalAsset + * @return technicalAsset + */ + public SyncStatusEnum getTechnicalAsset() { + return technicalAsset; + } + + public void setTechnicalAsset(SyncStatusEnum technicalAsset) { + this.technicalAsset = technicalAsset; + } + + public DimensionLogicTableVO withBusinessAsset(SyncStatusEnum businessAsset) { + this.businessAsset = businessAsset; + return this; + } + + /** + * Get businessAsset + * @return businessAsset + */ + public SyncStatusEnum getBusinessAsset() { + return businessAsset; + } + + public void setBusinessAsset(SyncStatusEnum businessAsset) { + this.businessAsset = businessAsset; + } + + public DimensionLogicTableVO withMetaDataLink(SyncStatusEnum metaDataLink) { + this.metaDataLink = metaDataLink; + return this; + } + + /** + * Get metaDataLink + * @return metaDataLink + */ + public SyncStatusEnum getMetaDataLink() { + return metaDataLink; + } + + public void setMetaDataLink(SyncStatusEnum metaDataLink) { + this.metaDataLink = metaDataLink; + } + + public DimensionLogicTableVO withDataQuality(SyncStatusEnum dataQuality) { + this.dataQuality = dataQuality; + return this; + } + + /** + * Get dataQuality + * @return dataQuality + */ + public SyncStatusEnum getDataQuality() { + return dataQuality; + } + + public void setDataQuality(SyncStatusEnum dataQuality) { + this.dataQuality = dataQuality; + } + + public DimensionLogicTableVO withMaterialization(SyncStatusEnum materialization) { + this.materialization = materialization; + return this; + } + + /** + * Get materialization + * @return materialization + */ + public SyncStatusEnum getMaterialization() { + return materialization; + } + + public void setMaterialization(SyncStatusEnum materialization) { + this.materialization = materialization; + } + + public DimensionLogicTableVO withSummaryStatus(SyncStatusEnum summaryStatus) { + this.summaryStatus = summaryStatus; + return this; + } + + /** + * Get summaryStatus + * @return summaryStatus + */ + public SyncStatusEnum getSummaryStatus() { + return summaryStatus; + } + + public void setSummaryStatus(SyncStatusEnum summaryStatus) { + this.summaryStatus = summaryStatus; + } + + public DimensionLogicTableVO withDistribute(DistributeEnum distribute) { + this.distribute = distribute; + return this; + } + + /** + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 + * @return distribute + */ + public DistributeEnum getDistribute() { + return distribute; + } + + public void setDistribute(DistributeEnum distribute) { + this.distribute = distribute; + } + + public DimensionLogicTableVO withDistributeColumn(String distributeColumn) { + this.distributeColumn = distributeColumn; + return this; + } + + /** + * DISTRIBUTE BY HASH column. + * @return distributeColumn + */ + public String getDistributeColumn() { + return distributeColumn; + } + + public void setDistributeColumn(String distributeColumn) { + this.distributeColumn = distributeColumn; + } + + public DimensionLogicTableVO withQualityId(String qualityId) { + this.qualityId = qualityId; + return this; + } + + /** + * 质量ID,填写String类型替代Long类型。 + * @return qualityId + */ + public String getQualityId() { + return qualityId; + } + + public void setQualityId(String qualityId) { + this.qualityId = qualityId; + } + + public DimensionLogicTableVO withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 别名。 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public DimensionLogicTableVO withSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + return this; + } + + public DimensionLogicTableVO addSelfDefinedFieldsItem(SelfDefinedFieldVO selfDefinedFieldsItem) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + this.selfDefinedFields.add(selfDefinedFieldsItem); + return this; + } + + public DimensionLogicTableVO withSelfDefinedFields(Consumer> selfDefinedFieldsSetter) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + selfDefinedFieldsSetter.accept(this.selfDefinedFields); + return this; + } + + /** + * 自定义项。 + * @return selfDefinedFields + */ + public List getSelfDefinedFields() { + return selfDefinedFields; + } + + public void setSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + } + + public DimensionLogicTableVO withObsLocation(String obsLocation) { + this.obsLocation = obsLocation; + return this; + } + + /** + * 外表路径 + * @return obsLocation + */ + public String getObsLocation() { + return obsLocation; + } + + public void setObsLocation(String obsLocation) { + this.obsLocation = obsLocation; + } + + public DimensionLogicTableVO withConfigs(String configs) { + this.configs = configs; + return this; + } + + /** + * 其他配置 + * @return configs + */ + public String getConfigs() { + return configs; + } + + public void setConfigs(String configs) { + this.configs = configs; + } + + public DimensionLogicTableVO withDevVersion(String devVersion) { + this.devVersion = devVersion; + return this; + } + + /** + * 开发环境版本,填写String类型替代Long类型。 + * @return devVersion + */ + public String getDevVersion() { + return devVersion; + } + + public void setDevVersion(String devVersion) { + this.devVersion = devVersion; + } + + public DimensionLogicTableVO withProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + return this; + } + + /** + * 生产环境版本,填写String类型替代Long类型 + * @return prodVersion + */ + public String getProdVersion() { + return prodVersion; + } + + public void setProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + } + + public DimensionLogicTableVO withDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + return this; + } + + /** + * 开发环境版本名称 + * @return devVersionName + */ + public String getDevVersionName() { + return devVersionName; + } + + public void setDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + } + + public DimensionLogicTableVO withProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + return this; + } + + /** + * 生产环境版本名称 + * @return prodVersionName + */ + public String getProdVersionName() { + return prodVersionName; + } + + public void setProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + } + + public DimensionLogicTableVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DimensionLogicTableVO that = (DimensionLogicTableVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.tbName, that.tbName) + && Objects.equals(this.tbLogicName, that.tbLogicName) && Objects.equals(this.l1Id, that.l1Id) + && Objects.equals(this.l2Id, that.l2Id) && Objects.equals(this.l3Id, that.l3Id) + && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.description, that.description) + && Objects.equals(this.dimensionId, that.dimensionId) && Objects.equals(this.owner, that.owner) + && Objects.equals(this.dimensionType, that.dimensionType) + && Objects.equals(this.codeTableId, that.codeTableId) && Objects.equals(this.codeTable, that.codeTable) + && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.dwId, that.dwId) + && Objects.equals(this.reversed, that.reversed) && Objects.equals(this.partitionConf, that.partitionConf) + && Objects.equals(this.dirtyOutSwitch, that.dirtyOutSwitch) + && Objects.equals(this.dirtyOutDatabase, that.dirtyOutDatabase) + && Objects.equals(this.dirtyOutPrefix, that.dirtyOutPrefix) + && Objects.equals(this.dirtyOutSuffix, that.dirtyOutSuffix) && Objects.equals(this.dbName, that.dbName) + && Objects.equals(this.tbId, that.tbId) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.tableType, that.tableType) && Objects.equals(this.status, that.status) + && Objects.equals(this.tbGuid, that.tbGuid) && Objects.equals(this.tbLogicGuid, that.tbLogicGuid) + && Objects.equals(this.dimensionName, that.dimensionName) + && Objects.equals(this.attributes, that.attributes) && Objects.equals(this.dwType, that.dwType) + && Objects.equals(this.dwName, that.dwName) && Objects.equals(this.l1, that.l1) + && Objects.equals(this.l2, that.l2) && Objects.equals(this.l3, that.l3) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.approvalInfo, that.approvalInfo) && Objects.equals(this.newBiz, that.newBiz) + && Objects.equals(this.physicalTable, that.physicalTable) + && Objects.equals(this.devPhysicalTable, that.devPhysicalTable) + && Objects.equals(this.technicalAsset, that.technicalAsset) + && Objects.equals(this.businessAsset, that.businessAsset) + && Objects.equals(this.metaDataLink, that.metaDataLink) + && Objects.equals(this.dataQuality, that.dataQuality) + && Objects.equals(this.materialization, that.materialization) + && Objects.equals(this.summaryStatus, that.summaryStatus) + && Objects.equals(this.distribute, that.distribute) + && Objects.equals(this.distributeColumn, that.distributeColumn) + && Objects.equals(this.qualityId, that.qualityId) && Objects.equals(this.alias, that.alias) + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) + && Objects.equals(this.obsLocation, that.obsLocation) && Objects.equals(this.configs, that.configs) + && Objects.equals(this.devVersion, that.devVersion) && Objects.equals(this.prodVersion, that.prodVersion) + && Objects.equals(this.devVersionName, that.devVersionName) + && Objects.equals(this.prodVersionName, that.prodVersionName) && Objects.equals(this.envType, that.envType); + } + + @Override + public int hashCode() { + return Objects.hash(id, + tbName, + tbLogicName, + l1Id, + l2Id, + l3Id, + createBy, + description, + dimensionId, + owner, + dimensionType, + codeTableId, + codeTable, + queueName, + dwId, + reversed, + partitionConf, + dirtyOutSwitch, + dirtyOutDatabase, + dirtyOutPrefix, + dirtyOutSuffix, + dbName, + tbId, + schema, + tableType, + status, + tbGuid, + tbLogicGuid, + dimensionName, + attributes, + dwType, + dwName, + l1, + l2, + l3, + createTime, + updateTime, + approvalInfo, + newBiz, + physicalTable, + devPhysicalTable, + technicalAsset, + businessAsset, + metaDataLink, + dataQuality, + materialization, + summaryStatus, + distribute, + distributeColumn, + qualityId, + alias, + selfDefinedFields, + obsLocation, + configs, + devVersion, + prodVersion, + devVersionName, + prodVersionName, + envType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DimensionLogicTableVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" tbName: ").append(toIndentedString(tbName)).append("\n"); + sb.append(" tbLogicName: ").append(toIndentedString(tbLogicName)).append("\n"); + sb.append(" l1Id: ").append(toIndentedString(l1Id)).append("\n"); + sb.append(" l2Id: ").append(toIndentedString(l2Id)).append("\n"); + sb.append(" l3Id: ").append(toIndentedString(l3Id)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dimensionId: ").append(toIndentedString(dimensionId)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" dimensionType: ").append(toIndentedString(dimensionType)).append("\n"); + sb.append(" codeTableId: ").append(toIndentedString(codeTableId)).append("\n"); + sb.append(" codeTable: ").append(toIndentedString(codeTable)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append(" dwId: ").append(toIndentedString(dwId)).append("\n"); + sb.append(" reversed: ").append(toIndentedString(reversed)).append("\n"); + sb.append(" partitionConf: ").append(toIndentedString(partitionConf)).append("\n"); + sb.append(" dirtyOutSwitch: ").append(toIndentedString(dirtyOutSwitch)).append("\n"); + sb.append(" dirtyOutDatabase: ").append(toIndentedString(dirtyOutDatabase)).append("\n"); + sb.append(" dirtyOutPrefix: ").append(toIndentedString(dirtyOutPrefix)).append("\n"); + sb.append(" dirtyOutSuffix: ").append(toIndentedString(dirtyOutSuffix)).append("\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" tbId: ").append(toIndentedString(tbId)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" tableType: ").append(toIndentedString(tableType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tbGuid: ").append(toIndentedString(tbGuid)).append("\n"); + sb.append(" tbLogicGuid: ").append(toIndentedString(tbLogicGuid)).append("\n"); + sb.append(" dimensionName: ").append(toIndentedString(dimensionName)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" dwType: ").append(toIndentedString(dwType)).append("\n"); + sb.append(" dwName: ").append(toIndentedString(dwName)).append("\n"); + sb.append(" l1: ").append(toIndentedString(l1)).append("\n"); + sb.append(" l2: ").append(toIndentedString(l2)).append("\n"); + sb.append(" l3: ").append(toIndentedString(l3)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" approvalInfo: ").append(toIndentedString(approvalInfo)).append("\n"); + sb.append(" newBiz: ").append(toIndentedString(newBiz)).append("\n"); + sb.append(" physicalTable: ").append(toIndentedString(physicalTable)).append("\n"); + sb.append(" devPhysicalTable: ").append(toIndentedString(devPhysicalTable)).append("\n"); + sb.append(" technicalAsset: ").append(toIndentedString(technicalAsset)).append("\n"); + sb.append(" businessAsset: ").append(toIndentedString(businessAsset)).append("\n"); + sb.append(" metaDataLink: ").append(toIndentedString(metaDataLink)).append("\n"); + sb.append(" dataQuality: ").append(toIndentedString(dataQuality)).append("\n"); + sb.append(" materialization: ").append(toIndentedString(materialization)).append("\n"); + sb.append(" summaryStatus: ").append(toIndentedString(summaryStatus)).append("\n"); + sb.append(" distribute: ").append(toIndentedString(distribute)).append("\n"); + sb.append(" distributeColumn: ").append(toIndentedString(distributeColumn)).append("\n"); + sb.append(" qualityId: ").append(toIndentedString(qualityId)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); + sb.append(" obsLocation: ").append(toIndentedString(obsLocation)).append("\n"); + sb.append(" configs: ").append(toIndentedString(configs)).append("\n"); + sb.append(" devVersion: ").append(toIndentedString(devVersion)).append("\n"); + sb.append(" prodVersion: ").append(toIndentedString(prodVersion)).append("\n"); + sb.append(" devVersionName: ").append(toIndentedString(devVersionName)).append("\n"); + sb.append(" prodVersionName: ").append(toIndentedString(prodVersionName)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionVO.java new file mode 100644 index 0000000000..aab9fa7320 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DimensionVO.java @@ -0,0 +1,1210 @@ +package com.huaweicloud.sdk.dataartsstudio.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.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * DimensionVO + */ +public class DimensionVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_en") + + private String nameEn; + + /** + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 + */ + public static final class DimensionTypeEnum { + + /** + * Enum COMMON for value: "COMMON" + */ + public static final DimensionTypeEnum COMMON = new DimensionTypeEnum("COMMON"); + + /** + * Enum LOOKUP for value: "LOOKUP" + */ + public static final DimensionTypeEnum LOOKUP = new DimensionTypeEnum("LOOKUP"); + + /** + * Enum HIERARCHIES for value: "HIERARCHIES" + */ + public static final DimensionTypeEnum HIERARCHIES = new DimensionTypeEnum("HIERARCHIES"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("COMMON", COMMON); + map.put("LOOKUP", LOOKUP); + map.put("HIERARCHIES", HIERARCHIES); + return Collections.unmodifiableMap(map); + } + + private String value; + + DimensionTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DimensionTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DimensionTypeEnum(value)); + } + + public static DimensionTypeEnum 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 DimensionTypeEnum) { + return this.value.equals(((DimensionTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_type") + + private DimensionTypeEnum dimensionType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_ch") + + private String nameCh; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_by") + + private String updateBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code_table_id") + + private String codeTableId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code_table") + + private CodeTableVO codeTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1_id") + + private String l1Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2_id") + + private String l2Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3_id") + + private String l3Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hierarchies") + + private List hierarchies = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private BizStatusEnum status; + + @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 = "approval_info") + + private ApprovalVO approvalInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_biz") + + private BizVersionManageVO newBiz; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1") + + private String l1; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2") + + private String l2; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3") + + private String l3; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attributes") + + private List attributes = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mappings") + + private List mappings = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datasource") + + private BizDatasourceRelationVO datasource; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_location") + + private String obsLocation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_type") + + private String tableType; + + /** + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 + */ + public static final class DistributeEnum { + + /** + * Enum HASH for value: "HASH" + */ + public static final DistributeEnum HASH = new DistributeEnum("HASH"); + + /** + * Enum REPLICATION for value: "REPLICATION" + */ + public static final DistributeEnum REPLICATION = new DistributeEnum("REPLICATION"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("HASH", HASH); + map.put("REPLICATION", REPLICATION); + return Collections.unmodifiableMap(map); + } + + private String value; + + DistributeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DistributeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DistributeEnum(value)); + } + + public static DistributeEnum 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 DistributeEnum) { + return this.value.equals(((DistributeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "distribute") + + private DistributeEnum distribute; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "distribute_column") + + private String distributeColumn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "self_defined_fields") + + private List selfDefinedFields = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configs") + + private String configs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version") + + private String devVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version") + + private String prodVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version_name") + + private String devVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version_name") + + private String prodVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + + public DimensionVO withId(String id) { + this.id = id; + return this; + } + + /** + * 编码,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DimensionVO withNameEn(String nameEn) { + this.nameEn = nameEn; + return this; + } + + /** + * 字段名。 + * @return nameEn + */ + public String getNameEn() { + return nameEn; + } + + public void setNameEn(String nameEn) { + this.nameEn = nameEn; + } + + public DimensionVO withDimensionType(DimensionTypeEnum dimensionType) { + this.dimensionType = dimensionType; + return this; + } + + /** + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 + * @return dimensionType + */ + public DimensionTypeEnum getDimensionType() { + return dimensionType; + } + + public void setDimensionType(DimensionTypeEnum dimensionType) { + this.dimensionType = dimensionType; + } + + public DimensionVO withNameCh(String nameCh) { + this.nameCh = nameCh; + return this; + } + + /** + * 业务属性。 + * @return nameCh + */ + public String getNameCh() { + return nameCh; + } + + public void setNameCh(String nameCh) { + this.nameCh = nameCh; + } + + public DimensionVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DimensionVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public DimensionVO withUpdateBy(String updateBy) { + this.updateBy = updateBy; + return this; + } + + /** + * 更新人。 + * @return updateBy + */ + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public DimensionVO withCodeTableId(String codeTableId) { + this.codeTableId = codeTableId; + return this; + } + + /** + * 引用码表ID,填写String类型替代Long类型。 + * @return codeTableId + */ + public String getCodeTableId() { + return codeTableId; + } + + public void setCodeTableId(String codeTableId) { + this.codeTableId = codeTableId; + } + + public DimensionVO withCodeTable(CodeTableVO codeTable) { + this.codeTable = codeTable; + return this; + } + + public DimensionVO withCodeTable(Consumer codeTableSetter) { + if (this.codeTable == null) { + this.codeTable = new CodeTableVO(); + codeTableSetter.accept(this.codeTable); + } + + return this; + } + + /** + * Get codeTable + * @return codeTable + */ + public CodeTableVO getCodeTable() { + return codeTable; + } + + public void setCodeTable(CodeTableVO codeTable) { + this.codeTable = codeTable; + } + + public DimensionVO withL1Id(String l1Id) { + this.l1Id = l1Id; + return this; + } + + /** + * 主题域分组ID,只读,填写String类型替代Long类型。 + * @return l1Id + */ + public String getL1Id() { + return l1Id; + } + + public void setL1Id(String l1Id) { + this.l1Id = l1Id; + } + + public DimensionVO withL2Id(String l2Id) { + this.l2Id = l2Id; + return this; + } + + /** + * 主题域ID,只读,创建和更新时无需填写。 + * @return l2Id + */ + public String getL2Id() { + return l2Id; + } + + public void setL2Id(String l2Id) { + this.l2Id = l2Id; + } + + public DimensionVO withL3Id(String l3Id) { + this.l3Id = l3Id; + return this; + } + + /** + * 业务对象ID,填写String类型替代Long类型。 + * @return l3Id + */ + public String getL3Id() { + return l3Id; + } + + public void setL3Id(String l3Id) { + this.l3Id = l3Id; + } + + public DimensionVO withHierarchies(List hierarchies) { + this.hierarchies = hierarchies; + return this; + } + + public DimensionVO addHierarchiesItem(DimensionHierarchiesVO hierarchiesItem) { + if (this.hierarchies == null) { + this.hierarchies = new ArrayList<>(); + } + this.hierarchies.add(hierarchiesItem); + return this; + } + + public DimensionVO withHierarchies(Consumer> hierarchiesSetter) { + if (this.hierarchies == null) { + this.hierarchies = new ArrayList<>(); + } + hierarchiesSetter.accept(this.hierarchies); + return this; + } + + /** + * 层级属性。 + * @return hierarchies + */ + public List getHierarchies() { + return hierarchies; + } + + public void setHierarchies(List hierarchies) { + this.hierarchies = hierarchies; + } + + public DimensionVO withStatus(BizStatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public BizStatusEnum getStatus() { + return status; + } + + public void setStatus(BizStatusEnum status) { + this.status = status; + } + + public DimensionVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public DimensionVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public DimensionVO withApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + return this; + } + + public DimensionVO withApprovalInfo(Consumer approvalInfoSetter) { + if (this.approvalInfo == null) { + this.approvalInfo = new ApprovalVO(); + approvalInfoSetter.accept(this.approvalInfo); + } + + return this; + } + + /** + * Get approvalInfo + * @return approvalInfo + */ + public ApprovalVO getApprovalInfo() { + return approvalInfo; + } + + public void setApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + } + + public DimensionVO withNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + return this; + } + + public DimensionVO withNewBiz(Consumer newBizSetter) { + if (this.newBiz == null) { + this.newBiz = new BizVersionManageVO(); + newBizSetter.accept(this.newBiz); + } + + return this; + } + + /** + * Get newBiz + * @return newBiz + */ + public BizVersionManageVO getNewBiz() { + return newBiz; + } + + public void setNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + } + + public DimensionVO withL1(String l1) { + this.l1 = l1; + return this; + } + + /** + * 主题域分组中文名,只读,创建和更新时无需填写。 + * @return l1 + */ + public String getL1() { + return l1; + } + + public void setL1(String l1) { + this.l1 = l1; + } + + public DimensionVO withL2(String l2) { + this.l2 = l2; + return this; + } + + /** + * 主题域中文名,只读,创建和更新时无需填写。 + * @return l2 + */ + public String getL2() { + return l2; + } + + public void setL2(String l2) { + this.l2 = l2; + } + + public DimensionVO withL3(String l3) { + this.l3 = l3; + return this; + } + + /** + * 业务对象中文名,只读,创建和更新时无需填写。 + * @return l3 + */ + public String getL3() { + return l3; + } + + public void setL3(String l3) { + this.l3 = l3; + } + + public DimensionVO withAttributes(List attributes) { + this.attributes = attributes; + return this; + } + + public DimensionVO addAttributesItem(DimensionAttributeVO attributesItem) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.add(attributesItem); + return this; + } + + public DimensionVO withAttributes(Consumer> attributesSetter) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + attributesSetter.accept(this.attributes); + return this; + } + + /** + * 维度属性信息。 + * @return attributes + */ + public List getAttributes() { + return attributes; + } + + public void setAttributes(List attributes) { + this.attributes = attributes; + } + + public DimensionVO withMappings(List mappings) { + this.mappings = mappings; + return this; + } + + public DimensionVO addMappingsItem(TableMappingVO mappingsItem) { + if (this.mappings == null) { + this.mappings = new ArrayList<>(); + } + this.mappings.add(mappingsItem); + return this; + } + + public DimensionVO withMappings(Consumer> mappingsSetter) { + if (this.mappings == null) { + this.mappings = new ArrayList<>(); + } + mappingsSetter.accept(this.mappings); + return this; + } + + /** + * 表映射信息。 + * @return mappings + */ + public List getMappings() { + return mappings; + } + + public void setMappings(List mappings) { + this.mappings = mappings; + } + + public DimensionVO withDatasource(BizDatasourceRelationVO datasource) { + this.datasource = datasource; + return this; + } + + public DimensionVO withDatasource(Consumer datasourceSetter) { + if (this.datasource == null) { + this.datasource = new BizDatasourceRelationVO(); + datasourceSetter.accept(this.datasource); + } + + return this; + } + + /** + * Get datasource + * @return datasource + */ + public BizDatasourceRelationVO getDatasource() { + return datasource; + } + + public void setDatasource(BizDatasourceRelationVO datasource) { + this.datasource = datasource; + } + + public DimensionVO withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 资产责任人。 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public DimensionVO withObsLocation(String obsLocation) { + this.obsLocation = obsLocation; + return this; + } + + /** + * 外表路径 + * @return obsLocation + */ + public String getObsLocation() { + return obsLocation; + } + + public void setObsLocation(String obsLocation) { + this.obsLocation = obsLocation; + } + + public DimensionVO withTableType(String tableType) { + this.tableType = tableType; + return this; + } + + /** + * 表类型。 + * @return tableType + */ + public String getTableType() { + return tableType; + } + + public void setTableType(String tableType) { + this.tableType = tableType; + } + + public DimensionVO withDistribute(DistributeEnum distribute) { + this.distribute = distribute; + return this; + } + + /** + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 + * @return distribute + */ + public DistributeEnum getDistribute() { + return distribute; + } + + public void setDistribute(DistributeEnum distribute) { + this.distribute = distribute; + } + + public DimensionVO withDistributeColumn(String distributeColumn) { + this.distributeColumn = distributeColumn; + return this; + } + + /** + * DISTRIBUTE BY HASH column. + * @return distributeColumn + */ + public String getDistributeColumn() { + return distributeColumn; + } + + public void setDistributeColumn(String distributeColumn) { + this.distributeColumn = distributeColumn; + } + + public DimensionVO withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 别名。 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public DimensionVO withSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + return this; + } + + public DimensionVO addSelfDefinedFieldsItem(SelfDefinedFieldVO selfDefinedFieldsItem) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + this.selfDefinedFields.add(selfDefinedFieldsItem); + return this; + } + + public DimensionVO withSelfDefinedFields(Consumer> selfDefinedFieldsSetter) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + selfDefinedFieldsSetter.accept(this.selfDefinedFields); + return this; + } + + /** + * 自定义项。 + * @return selfDefinedFields + */ + public List getSelfDefinedFields() { + return selfDefinedFields; + } + + public void setSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + } + + public DimensionVO withConfigs(String configs) { + this.configs = configs; + return this; + } + + /** + * 其他配置 + * @return configs + */ + public String getConfigs() { + return configs; + } + + public void setConfigs(String configs) { + this.configs = configs; + } + + public DimensionVO withDevVersion(String devVersion) { + this.devVersion = devVersion; + return this; + } + + /** + * 开发环境版本,填写String类型替代Long类型。 + * @return devVersion + */ + public String getDevVersion() { + return devVersion; + } + + public void setDevVersion(String devVersion) { + this.devVersion = devVersion; + } + + public DimensionVO withProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + return this; + } + + /** + * 生产环境版本,填写String类型替代Long类型。 + * @return prodVersion + */ + public String getProdVersion() { + return prodVersion; + } + + public void setProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + } + + public DimensionVO withDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + return this; + } + + /** + * 开发环境版本名称 + * @return devVersionName + */ + public String getDevVersionName() { + return devVersionName; + } + + public void setDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + } + + public DimensionVO withProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + return this; + } + + /** + * 生产环境版本名称 + * @return prodVersionName + */ + public String getProdVersionName() { + return prodVersionName; + } + + public void setProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + } + + public DimensionVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DimensionVO that = (DimensionVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.nameEn, that.nameEn) + && Objects.equals(this.dimensionType, that.dimensionType) && Objects.equals(this.nameCh, that.nameCh) + && Objects.equals(this.description, that.description) && Objects.equals(this.createBy, that.createBy) + && Objects.equals(this.updateBy, that.updateBy) && Objects.equals(this.codeTableId, that.codeTableId) + && Objects.equals(this.codeTable, that.codeTable) && Objects.equals(this.l1Id, that.l1Id) + && Objects.equals(this.l2Id, that.l2Id) && Objects.equals(this.l3Id, that.l3Id) + && Objects.equals(this.hierarchies, that.hierarchies) && Objects.equals(this.status, that.status) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.approvalInfo, that.approvalInfo) && Objects.equals(this.newBiz, that.newBiz) + && Objects.equals(this.l1, that.l1) && Objects.equals(this.l2, that.l2) && Objects.equals(this.l3, that.l3) + && Objects.equals(this.attributes, that.attributes) && Objects.equals(this.mappings, that.mappings) + && Objects.equals(this.datasource, that.datasource) && Objects.equals(this.owner, that.owner) + && Objects.equals(this.obsLocation, that.obsLocation) && Objects.equals(this.tableType, that.tableType) + && Objects.equals(this.distribute, that.distribute) + && Objects.equals(this.distributeColumn, that.distributeColumn) && Objects.equals(this.alias, that.alias) + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) + && Objects.equals(this.configs, that.configs) && Objects.equals(this.devVersion, that.devVersion) + && Objects.equals(this.prodVersion, that.prodVersion) + && Objects.equals(this.devVersionName, that.devVersionName) + && Objects.equals(this.prodVersionName, that.prodVersionName) && Objects.equals(this.envType, that.envType); + } + + @Override + public int hashCode() { + return Objects.hash(id, + nameEn, + dimensionType, + nameCh, + description, + createBy, + updateBy, + codeTableId, + codeTable, + l1Id, + l2Id, + l3Id, + hierarchies, + status, + createTime, + updateTime, + approvalInfo, + newBiz, + l1, + l2, + l3, + attributes, + mappings, + datasource, + owner, + obsLocation, + tableType, + distribute, + distributeColumn, + alias, + selfDefinedFields, + configs, + devVersion, + prodVersion, + devVersionName, + prodVersionName, + envType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DimensionVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" nameEn: ").append(toIndentedString(nameEn)).append("\n"); + sb.append(" dimensionType: ").append(toIndentedString(dimensionType)).append("\n"); + sb.append(" nameCh: ").append(toIndentedString(nameCh)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" updateBy: ").append(toIndentedString(updateBy)).append("\n"); + sb.append(" codeTableId: ").append(toIndentedString(codeTableId)).append("\n"); + sb.append(" codeTable: ").append(toIndentedString(codeTable)).append("\n"); + sb.append(" l1Id: ").append(toIndentedString(l1Id)).append("\n"); + sb.append(" l2Id: ").append(toIndentedString(l2Id)).append("\n"); + sb.append(" l3Id: ").append(toIndentedString(l3Id)).append("\n"); + sb.append(" hierarchies: ").append(toIndentedString(hierarchies)).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(" approvalInfo: ").append(toIndentedString(approvalInfo)).append("\n"); + sb.append(" newBiz: ").append(toIndentedString(newBiz)).append("\n"); + sb.append(" l1: ").append(toIndentedString(l1)).append("\n"); + sb.append(" l2: ").append(toIndentedString(l2)).append("\n"); + sb.append(" l3: ").append(toIndentedString(l3)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" mappings: ").append(toIndentedString(mappings)).append("\n"); + sb.append(" datasource: ").append(toIndentedString(datasource)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" obsLocation: ").append(toIndentedString(obsLocation)).append("\n"); + sb.append(" tableType: ").append(toIndentedString(tableType)).append("\n"); + sb.append(" distribute: ").append(toIndentedString(distribute)).append("\n"); + sb.append(" distributeColumn: ").append(toIndentedString(distributeColumn)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); + sb.append(" configs: ").append(toIndentedString(configs)).append("\n"); + sb.append(" devVersion: ").append(toIndentedString(devVersion)).append("\n"); + sb.append(" prodVersion: ").append(toIndentedString(prodVersion)).append("\n"); + sb.append(" devVersionName: ").append(toIndentedString(devVersionName)).append("\n"); + sb.append(" prodVersionName: ").append(toIndentedString(prodVersionName)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DirectoryVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DirectoryVO.java index f10e3ac47f..4ba5ff3add 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DirectoryVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DirectoryVO.java @@ -30,7 +30,7 @@ public class DirectoryVO { private String description; /** - * 目录类型。STANDARD_ELEMENT(数据标准)、CODE(码表)。 + * 目录类型。 枚举值: - STANDARD_ELEMENT: 数据标准 - CODE: 码表 */ public static final class TypeEnum { @@ -107,28 +107,33 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "parent_id") - private Long parentId; + private String parentId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "prev_id") - private Long prevId; + private String prevId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "root_id") - private Long rootId; + private String rootId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "qualified_name") private String qualifiedName; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "from_public") + + private String fromPublic; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "create_time") @@ -149,6 +154,11 @@ public int hashCode() { private String updateBy; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ref_id") + + private String refId; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "children") @@ -160,7 +170,7 @@ public DirectoryVO withName(String name) { } /** - * 名称。 + * 目录名称。 * @return name */ public String getName() { @@ -194,7 +204,7 @@ public DirectoryVO withType(TypeEnum type) { } /** - * 目录类型。STANDARD_ELEMENT(数据标准)、CODE(码表)。 + * 目录类型。 枚举值: - STANDARD_ELEMENT: 数据标准 - CODE: 码表 * @return type */ public TypeEnum getType() { @@ -205,71 +215,71 @@ public void setType(TypeEnum type) { this.type = type; } - public DirectoryVO withId(Long id) { + public DirectoryVO withId(String id) { this.id = id; return this; } /** - * ID,创建时可不传,更新时必填。 + * ID,创建时可不传,更新时必填。填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public DirectoryVO withParentId(Long parentId) { + public DirectoryVO withParentId(String parentId) { this.parentId = parentId; return this; } /** - * 父目录ID,首层传null。 + * 父目录ID,首层传null。填写String类型替代Long类型。 * @return parentId */ - public Long getParentId() { + public String getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(String parentId) { this.parentId = parentId; } - public DirectoryVO withPrevId(Long prevId) { + public DirectoryVO withPrevId(String prevId) { this.prevId = prevId; return this; } /** - * 上个节点ID,首节点传null。 + * 上个节点ID,首节点传null。填写String类型替代Long类型。 * @return prevId */ - public Long getPrevId() { + public String getPrevId() { return prevId; } - public void setPrevId(Long prevId) { + public void setPrevId(String prevId) { this.prevId = prevId; } - public DirectoryVO withRootId(Long rootId) { + public DirectoryVO withRootId(String rootId) { this.rootId = rootId; return this; } /** - * 根节点ID,根节点此ID为自身ID。 + * 根节点ID,根节点此ID为自身ID,只读。填写String类型替代Long类型。 * @return rootId */ - public Long getRootId() { + public String getRootId() { return rootId; } - public void setRootId(Long rootId) { + public void setRootId(String rootId) { this.rootId = rootId; } @@ -279,7 +289,7 @@ public DirectoryVO withQualifiedName(String qualifiedName) { } /** - * 所属目录。 + * 目录的资产名称,只读。 * @return qualifiedName */ public String getQualifiedName() { @@ -290,13 +300,30 @@ public void setQualifiedName(String qualifiedName) { this.qualifiedName = qualifiedName; } + public DirectoryVO withFromPublic(String fromPublic) { + this.fromPublic = fromPublic; + return this; + } + + /** + * 是否来自公共层,只读。 + * @return fromPublic + */ + public String getFromPublic() { + return fromPublic; + } + + public void setFromPublic(String fromPublic) { + this.fromPublic = fromPublic; + } + public DirectoryVO withCreateTime(OffsetDateTime createTime) { this.createTime = createTime; return this; } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -313,7 +340,7 @@ public DirectoryVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -330,7 +357,7 @@ public DirectoryVO withCreateBy(String createBy) { } /** - * 创建人。 + * 创建人,只读。 * @return createBy */ public String getCreateBy() { @@ -347,7 +374,7 @@ public DirectoryVO withUpdateBy(String updateBy) { } /** - * 更新人。 + * 更新人,只读。 * @return updateBy */ public String getUpdateBy() { @@ -358,6 +385,23 @@ public void setUpdateBy(String updateBy) { this.updateBy = updateBy; } + public DirectoryVO withRefId(String refId) { + this.refId = refId; + return this; + } + + /** + * 关联的主题ID,填写String类型替代Long类型。 + * @return refId + */ + public String getRefId() { + return refId; + } + + public void setRefId(String refId) { + this.refId = refId; + } + public DirectoryVO withChildren(List children) { this.children = children; return this; @@ -404,8 +448,9 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.type, that.type) && Objects.equals(this.id, that.id) && Objects.equals(this.parentId, that.parentId) && Objects.equals(this.prevId, that.prevId) && Objects.equals(this.rootId, that.rootId) && Objects.equals(this.qualifiedName, that.qualifiedName) - && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) - && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.updateBy, that.updateBy) + && Objects.equals(this.fromPublic, that.fromPublic) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.createBy, that.createBy) + && Objects.equals(this.updateBy, that.updateBy) && Objects.equals(this.refId, that.refId) && Objects.equals(this.children, that.children); } @@ -419,10 +464,12 @@ public int hashCode() { prevId, rootId, qualifiedName, + fromPublic, createTime, updateTime, createBy, updateBy, + refId, children); } @@ -438,10 +485,12 @@ public String toString() { sb.append(" prevId: ").append(toIndentedString(prevId)).append("\n"); sb.append(" rootId: ").append(toIndentedString(rootId)).append("\n"); sb.append(" qualifiedName: ").append(toIndentedString(qualifiedName)).append("\n"); + sb.append(" fromPublic: ").append(toIndentedString(fromPublic)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); sb.append(" updateBy: ").append(toIndentedString(updateBy)).append("\n"); + sb.append(" refId: ").append(toIndentedString(refId)).append("\n"); sb.append(" children: ").append(toIndentedString(children)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DsExportResultVOData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DsExportResultVOData.java index 2d0b81039a..94f6a1d43c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DsExportResultVOData.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DsExportResultVOData.java @@ -17,7 +17,7 @@ public class DsExportResultVOData { /** - * 标识本次导出的唯一值,用于查询导入结果。importing(导出中)、fail(导出失败)、success(导出成功)。 + * 标识本次导出的唯一值,用于查询导入结果。importing(导出中)、fail(导出失败)、success(导出成功)。 枚举值: - importing: 导出中 - fail: 导出失败 - success: 导出成功 */ public static final class StatusEnum { @@ -113,7 +113,7 @@ public DsExportResultVOData withStatus(StatusEnum status) { } /** - * 标识本次导出的唯一值,用于查询导入结果。importing(导出中)、fail(导出失败)、success(导出成功)。 + * 标识本次导出的唯一值,用于查询导入结果。importing(导出中)、fail(导出失败)、success(导出成功)。 枚举值: - importing: 导出中 - fail: 导出失败 - success: 导出成功 * @return status */ public StatusEnum getStatus() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DsProcessImportResultVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DsProcessImportResultVO.java new file mode 100644 index 0000000000..1463c41f6c --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/DsProcessImportResultVO.java @@ -0,0 +1,210 @@ +package com.huaweicloud.sdk.dataartsstudio.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; +import java.util.function.Consumer; + +/** + * DsProcessImportResultVO + */ +public class DsProcessImportResultVO { + + /** + * 标识本次导入的唯一值,用于查询导入结果。 枚举值: - importing: 导入中 - fail: 导入失败 - success: 导入成功 + */ + public static final class StatusEnum { + + /** + * Enum IMPORTING for value: "importing" + */ + public static final StatusEnum IMPORTING = new StatusEnum("importing"); + + /** + * Enum FAIL for value: "fail" + */ + public static final StatusEnum FAIL = new StatusEnum("fail"); + + /** + * Enum SUCCESS for value: "success" + */ + public static final StatusEnum SUCCESS = new StatusEnum("success"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("importing", IMPORTING); + map.put("fail", FAIL); + map.put("success", SUCCESS); + return Collections.unmodifiableMap(map); + } + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value)); + } + + public static StatusEnum 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 StatusEnum) { + return this.value.equals(((StatusEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private StatusEnum status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group") + + private BatchOperationVO group; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "rate") + + private String rate; + + public DsProcessImportResultVO withStatus(StatusEnum status) { + this.status = status; + return this; + } + + /** + * 标识本次导入的唯一值,用于查询导入结果。 枚举值: - importing: 导入中 - fail: 导入失败 - success: 导入成功 + * @return status + */ + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public DsProcessImportResultVO withGroup(BatchOperationVO group) { + this.group = group; + return this; + } + + public DsProcessImportResultVO withGroup(Consumer groupSetter) { + if (this.group == null) { + this.group = new BatchOperationVO(); + groupSetter.accept(this.group); + } + + return this; + } + + /** + * Get group + * @return group + */ + public BatchOperationVO getGroup() { + return group; + } + + public void setGroup(BatchOperationVO group) { + this.group = group; + } + + public DsProcessImportResultVO withRate(String rate) { + this.rate = rate; + return this; + } + + /** + * 当前进度。 + * @return rate + */ + public String getRate() { + return rate; + } + + public void setRate(String rate) { + this.rate = rate; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DsProcessImportResultVO that = (DsProcessImportResultVO) obj; + return Objects.equals(this.status, that.status) && Objects.equals(this.group, that.group) + && Objects.equals(this.rate, that.rate); + } + + @Override + public int hashCode() { + return Objects.hash(status, group, rate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DsProcessImportResultVO {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" rate: ").append(toIndentedString(rate)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/EnvTypeEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/EnvTypeEnum.java new file mode 100644 index 0000000000..de38f02bfc --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/EnvTypeEnum.java @@ -0,0 +1,90 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * 开发生产环境类型。 枚举值: - INVALID_TYPE: 无效环境 - DEV_TYPE: 开发环境 - PROD_TYPE: 生产环境 - DEV_PROD_TYPE: 开发生产环境 + */ +public class EnvTypeEnum { + + /** + * Enum INVALID_TYPE for value: "INVALID_TYPE" + */ + public static final EnvTypeEnum INVALID_TYPE = new EnvTypeEnum("INVALID_TYPE"); + + /** + * Enum DEV_TYPE for value: "DEV_TYPE" + */ + public static final EnvTypeEnum DEV_TYPE = new EnvTypeEnum("DEV_TYPE"); + + /** + * Enum PROD_TYPE for value: "PROD_TYPE" + */ + public static final EnvTypeEnum PROD_TYPE = new EnvTypeEnum("PROD_TYPE"); + + /** + * Enum DEV_PROD_TYPE for value: "DEV_PROD_TYPE" + */ + public static final EnvTypeEnum DEV_PROD_TYPE = new EnvTypeEnum("DEV_PROD_TYPE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("INVALID_TYPE", INVALID_TYPE); + map.put("DEV_TYPE", DEV_TYPE); + map.put("PROD_TYPE", PROD_TYPE); + map.put("DEV_PROD_TYPE", DEV_PROD_TYPE); + return Collections.unmodifiableMap(map); + } + + private String value; + + EnvTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static EnvTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new EnvTypeEnum(value)); + } + + public static EnvTypeEnum 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 EnvTypeEnum) { + return this.value.equals(((EnvTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportDesignModelTableDdlRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportDesignModelTableDdlRequest.java index bfd2e56910..6cc6235921 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportDesignModelTableDdlRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportDesignModelTableDdlRequest.java @@ -80,7 +80,7 @@ public ExportDesignModelTableDdlRequest withModelId(String modelId) { } /** - * 所属关系建模的模型ID。 + * 所属关系建模的模型ID,填写String类型替代Long类型。 * @return modelId */ public String getModelId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportParam.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportParam.java index 23cb653f11..2361dd7882 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportParam.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ExportParam.java @@ -16,7 +16,7 @@ public class ExportParam { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ids") - private List ids = null; + private List ids = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "asyn") @@ -31,29 +31,29 @@ public class ExportParam { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "directory_id") - private Long directoryId; + private String directoryId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_catalog_id") - private Long bizCatalogId; + private String bizCatalogId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_catalog_id_list") - private List bizCatalogIdList = null; + private List bizCatalogIdList = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_id") - private Long modelId; + private String modelId; - public ExportParam withIds(List ids) { + public ExportParam withIds(List ids) { this.ids = ids; return this; } - public ExportParam addIdsItem(Long idsItem) { + public ExportParam addIdsItem(String idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -61,7 +61,7 @@ public ExportParam addIdsItem(Long idsItem) { return this; } - public ExportParam withIds(Consumer> idsSetter) { + public ExportParam withIds(Consumer> idsSetter) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -70,14 +70,14 @@ public ExportParam withIds(Consumer> idsSetter) { } /** - * 导出对象ID的列表,如:某几个逻辑模型的ID。 + * 导出对象ID的列表,如:某几个逻辑模型的ID,填写String类型替代Long类型。 * @return ids */ - public List getIds() { + public List getIds() { return ids; } - public void setIds(List ids) { + public void setIds(List ids) { this.ids = ids; } @@ -115,46 +115,46 @@ public void setType(String type) { this.type = type; } - public ExportParam withDirectoryId(Long directoryId) { + public ExportParam withDirectoryId(String directoryId) { this.directoryId = directoryId; return this; } /** - * 所属目录ID。 + * 所属目录ID,填写String类型替代Long类型。 * @return directoryId */ - public Long getDirectoryId() { + public String getDirectoryId() { return directoryId; } - public void setDirectoryId(Long directoryId) { + public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } - public ExportParam withBizCatalogId(Long bizCatalogId) { + public ExportParam withBizCatalogId(String bizCatalogId) { this.bizCatalogId = bizCatalogId; return this; } /** - * 所属业务分层的ID。 + * 所属业务分层的ID,填写String类型替代Long类型。 * @return bizCatalogId */ - public Long getBizCatalogId() { + public String getBizCatalogId() { return bizCatalogId; } - public void setBizCatalogId(Long bizCatalogId) { + public void setBizCatalogId(String bizCatalogId) { this.bizCatalogId = bizCatalogId; } - public ExportParam withBizCatalogIdList(List bizCatalogIdList) { + public ExportParam withBizCatalogIdList(List bizCatalogIdList) { this.bizCatalogIdList = bizCatalogIdList; return this; } - public ExportParam addBizCatalogIdListItem(Long bizCatalogIdListItem) { + public ExportParam addBizCatalogIdListItem(String bizCatalogIdListItem) { if (this.bizCatalogIdList == null) { this.bizCatalogIdList = new ArrayList<>(); } @@ -162,7 +162,7 @@ public ExportParam addBizCatalogIdListItem(Long bizCatalogIdListItem) { return this; } - public ExportParam withBizCatalogIdList(Consumer> bizCatalogIdListSetter) { + public ExportParam withBizCatalogIdList(Consumer> bizCatalogIdListSetter) { if (this.bizCatalogIdList == null) { this.bizCatalogIdList = new ArrayList<>(); } @@ -174,28 +174,28 @@ public ExportParam withBizCatalogIdList(Consumer> bizCatalogIdListSet * 所属的业务分层的ID列表。 * @return bizCatalogIdList */ - public List getBizCatalogIdList() { + public List getBizCatalogIdList() { return bizCatalogIdList; } - public void setBizCatalogIdList(List bizCatalogIdList) { + public void setBizCatalogIdList(List bizCatalogIdList) { this.bizCatalogIdList = bizCatalogIdList; } - public ExportParam withModelId(Long modelId) { + public ExportParam withModelId(String modelId) { this.modelId = modelId; return this; } /** - * 所属关系建模的模型ID,导出关系模型需要此参数。 + * 所属关系建模的模型ID,导出关系模型需要此参数,填写String类型替代Long类型。 * @return modelId */ - public Long getModelId() { + public String getModelId() { return modelId; } - public void setModelId(Long modelId) { + public void setModelId(String modelId) { this.modelId = modelId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FactLogicTableVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FactLogicTableVO.java new file mode 100644 index 0000000000..326c0dbf5a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FactLogicTableVO.java @@ -0,0 +1,1725 @@ +package com.huaweicloud.sdk.dataartsstudio.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.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; + +/** + * FactLogicTableVO + */ +public class FactLogicTableVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_name") + + private String tbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_logic_name") + + private String tbLogicName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1_id") + + private String l1Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2_id") + + private String l2Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3_id") + + private String l3Id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_name") + + private String dwName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "queue_name") + + private String queueName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_id") + + private String dwId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db_name") + + private String dbName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_id") + + private String tbId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dim_table_ids") + + private List dimTableIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "reversed") + + private Boolean reversed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "partition_conf") + + private String partitionConf; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_switch") + + private Boolean dirtyOutSwitch; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_database") + + private String dirtyOutDatabase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_prefix") + + private String dirtyOutPrefix; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dirty_out_suffix") + + private String dirtyOutSuffix; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "schema") + + private String schema; + + /** + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 + */ + public static final class DistributeEnum { + + /** + * Enum HASH for value: "HASH" + */ + public static final DistributeEnum HASH = new DistributeEnum("HASH"); + + /** + * Enum REPLICATION for value: "REPLICATION" + */ + public static final DistributeEnum REPLICATION = new DistributeEnum("REPLICATION"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("HASH", HASH); + map.put("REPLICATION", REPLICATION); + return Collections.unmodifiableMap(map); + } + + private String value; + + DistributeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DistributeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DistributeEnum(value)); + } + + public static DistributeEnum 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 DistributeEnum) { + return this.value.equals(((DistributeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "distribute") + + private DistributeEnum distribute; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "distribute_column") + + private String distributeColumn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_type") + + private String tableType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private BizStatusEnum status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_guid") + + private String tbGuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_logic_guid") + + private String tbLogicGuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dw_type") + + private String dwType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l1") + + private String l1; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l2") + + private String l2; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "l3") + + private String l3; + + @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 = "approval_info") + + private ApprovalVO approvalInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "new_biz") + + private BizVersionManageVO newBiz; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimensions") + + private List dimensions = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attributes") + + private List attributes = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mappings") + + private List mappings = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "measures") + + private List measures = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_attributes") + + private List tableAttributes = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "configs") + + private String configs; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "physical_table") + + private SyncStatusEnum physicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_physical_table") + + private SyncStatusEnum devPhysicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "technical_asset") + + private SyncStatusEnum technicalAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "business_asset") + + private SyncStatusEnum businessAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "meta_data_link") + + private SyncStatusEnum metaDataLink; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_quality") + + private SyncStatusEnum dataQuality; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "summary_status") + + private SyncStatusEnum summaryStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "quality_id") + + private String qualityId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "self_defined_fields") + + private List selfDefinedFields = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "obs_location") + + private String obsLocation; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version") + + private String devVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version") + + private String prodVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version_name") + + private String devVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version_name") + + private String prodVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecy_levels") + + private List secrecyLevels = null; + + public FactLogicTableVO withId(String id) { + this.id = id; + return this; + } + + /** + * 事实表ID,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FactLogicTableVO withTbName(String tbName) { + this.tbName = tbName; + return this; + } + + /** + * 表名称。 + * @return tbName + */ + public String getTbName() { + return tbName; + } + + public void setTbName(String tbName) { + this.tbName = tbName; + } + + public FactLogicTableVO withTbLogicName(String tbLogicName) { + this.tbLogicName = tbLogicName; + return this; + } + + /** + * 逻辑实体名。 + * @return tbLogicName + */ + public String getTbLogicName() { + return tbLogicName; + } + + public void setTbLogicName(String tbLogicName) { + this.tbLogicName = tbLogicName; + } + + public FactLogicTableVO withL1Id(String l1Id) { + this.l1Id = l1Id; + return this; + } + + /** + * 主题域分组ID,只读,填写String类型替代Long类型。 + * @return l1Id + */ + public String getL1Id() { + return l1Id; + } + + public void setL1Id(String l1Id) { + this.l1Id = l1Id; + } + + public FactLogicTableVO withL2Id(String l2Id) { + this.l2Id = l2Id; + return this; + } + + /** + * 主题域ID,只读,创建和更新时无需填写。 + * @return l2Id + */ + public String getL2Id() { + return l2Id; + } + + public void setL2Id(String l2Id) { + this.l2Id = l2Id; + } + + public FactLogicTableVO withL3Id(String l3Id) { + this.l3Id = l3Id; + return this; + } + + /** + * 业务对象guid,填写String类型替代Long类型。 + * @return l3Id + */ + public String getL3Id() { + return l3Id; + } + + public void setL3Id(String l3Id) { + this.l3Id = l3Id; + } + + public FactLogicTableVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public FactLogicTableVO withDwName(String dwName) { + this.dwName = dwName; + return this; + } + + /** + * 数据连接名称,只读,创建和更新时无需填写。 + * @return dwName + */ + public String getDwName() { + return dwName; + } + + public void setDwName(String dwName) { + this.dwName = dwName; + } + + public FactLogicTableVO withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * 资产责任人。 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public FactLogicTableVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public FactLogicTableVO withQueueName(String queueName) { + this.queueName = queueName; + return this; + } + + /** + * dli数据连接执行sql所需的队列,数据连接类型为DLI时必须。 + * @return queueName + */ + public String getQueueName() { + return queueName; + } + + public void setQueueName(String queueName) { + this.queueName = queueName; + } + + public FactLogicTableVO withDwId(String dwId) { + this.dwId = dwId; + return this; + } + + /** + * 数据连接ID。 + * @return dwId + */ + public String getDwId() { + return dwId; + } + + public void setDwId(String dwId) { + this.dwId = dwId; + } + + public FactLogicTableVO withDbName(String dbName) { + this.dbName = dbName; + return this; + } + + /** + * 库名。 + * @return dbName + */ + public String getDbName() { + return dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public FactLogicTableVO withTbId(String tbId) { + this.tbId = tbId; + return this; + } + + /** + * 数据表ID,只读。 + * @return tbId + */ + public String getTbId() { + return tbId; + } + + public void setTbId(String tbId) { + this.tbId = tbId; + } + + public FactLogicTableVO withDimTableIds(List dimTableIds) { + this.dimTableIds = dimTableIds; + return this; + } + + public FactLogicTableVO addDimTableIdsItem(String dimTableIdsItem) { + if (this.dimTableIds == null) { + this.dimTableIds = new ArrayList<>(); + } + this.dimTableIds.add(dimTableIdsItem); + return this; + } + + public FactLogicTableVO withDimTableIds(Consumer> dimTableIdsSetter) { + if (this.dimTableIds == null) { + this.dimTableIds = new ArrayList<>(); + } + dimTableIdsSetter.accept(this.dimTableIds); + return this; + } + + /** + * 关联维度表ID。 + * @return dimTableIds + */ + public List getDimTableIds() { + return dimTableIds; + } + + public void setDimTableIds(List dimTableIds) { + this.dimTableIds = dimTableIds; + } + + public FactLogicTableVO withReversed(Boolean reversed) { + this.reversed = reversed; + return this; + } + + /** + * 是否是逆向的。 + * @return reversed + */ + public Boolean getReversed() { + return reversed; + } + + public void setReversed(Boolean reversed) { + this.reversed = reversed; + } + + public FactLogicTableVO withPartitionConf(String partitionConf) { + this.partitionConf = partitionConf; + return this; + } + + /** + * 分区表达式。 + * @return partitionConf + */ + public String getPartitionConf() { + return partitionConf; + } + + public void setPartitionConf(String partitionConf) { + this.partitionConf = partitionConf; + } + + public FactLogicTableVO withDirtyOutSwitch(Boolean dirtyOutSwitch) { + this.dirtyOutSwitch = dirtyOutSwitch; + return this; + } + + /** + * 异常数据输出开关。 + * @return dirtyOutSwitch + */ + public Boolean getDirtyOutSwitch() { + return dirtyOutSwitch; + } + + public void setDirtyOutSwitch(Boolean dirtyOutSwitch) { + this.dirtyOutSwitch = dirtyOutSwitch; + } + + public FactLogicTableVO withDirtyOutDatabase(String dirtyOutDatabase) { + this.dirtyOutDatabase = dirtyOutDatabase; + return this; + } + + /** + * 异常数据输出库。 + * @return dirtyOutDatabase + */ + public String getDirtyOutDatabase() { + return dirtyOutDatabase; + } + + public void setDirtyOutDatabase(String dirtyOutDatabase) { + this.dirtyOutDatabase = dirtyOutDatabase; + } + + public FactLogicTableVO withDirtyOutPrefix(String dirtyOutPrefix) { + this.dirtyOutPrefix = dirtyOutPrefix; + return this; + } + + /** + * 异常表前缀。 + * @return dirtyOutPrefix + */ + public String getDirtyOutPrefix() { + return dirtyOutPrefix; + } + + public void setDirtyOutPrefix(String dirtyOutPrefix) { + this.dirtyOutPrefix = dirtyOutPrefix; + } + + public FactLogicTableVO withDirtyOutSuffix(String dirtyOutSuffix) { + this.dirtyOutSuffix = dirtyOutSuffix; + return this; + } + + /** + * 异常表后缀。 + * @return dirtyOutSuffix + */ + public String getDirtyOutSuffix() { + return dirtyOutSuffix; + } + + public void setDirtyOutSuffix(String dirtyOutSuffix) { + this.dirtyOutSuffix = dirtyOutSuffix; + } + + public FactLogicTableVO withSchema(String schema) { + this.schema = schema; + return this; + } + + /** + * DWS类型需要。 + * @return schema + */ + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public FactLogicTableVO withDistribute(DistributeEnum distribute) { + this.distribute = distribute; + return this; + } + + /** + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 + * @return distribute + */ + public DistributeEnum getDistribute() { + return distribute; + } + + public void setDistribute(DistributeEnum distribute) { + this.distribute = distribute; + } + + public FactLogicTableVO withDistributeColumn(String distributeColumn) { + this.distributeColumn = distributeColumn; + return this; + } + + /** + * DISTRIBUTE BY HASH column. + * @return distributeColumn + */ + public String getDistributeColumn() { + return distributeColumn; + } + + public void setDistributeColumn(String distributeColumn) { + this.distributeColumn = distributeColumn; + } + + public FactLogicTableVO withTableType(String tableType) { + this.tableType = tableType; + return this; + } + + /** + * 表类型。 + * @return tableType + */ + public String getTableType() { + return tableType; + } + + public void setTableType(String tableType) { + this.tableType = tableType; + } + + public FactLogicTableVO withStatus(BizStatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + public BizStatusEnum getStatus() { + return status; + } + + public void setStatus(BizStatusEnum status) { + this.status = status; + } + + public FactLogicTableVO withTbGuid(String tbGuid) { + this.tbGuid = tbGuid; + return this; + } + + /** + * 表发布后,创建的数据目录技术资产guid,只读,创建和更新时无需填写。 + * @return tbGuid + */ + public String getTbGuid() { + return tbGuid; + } + + public void setTbGuid(String tbGuid) { + this.tbGuid = tbGuid; + } + + public FactLogicTableVO withTbLogicGuid(String tbLogicGuid) { + this.tbLogicGuid = tbLogicGuid; + return this; + } + + /** + * 表发布后,创建的数据目录业务资产guid,只读,创建和更新时无需填写。 + * @return tbLogicGuid + */ + public String getTbLogicGuid() { + return tbLogicGuid; + } + + public void setTbLogicGuid(String tbLogicGuid) { + this.tbLogicGuid = tbLogicGuid; + } + + public FactLogicTableVO withDwType(String dwType) { + this.dwType = dwType; + return this; + } + + /** + * 数据连接类型,对应表所在的数仓类型,取值可以为DLI、DWS、MRS_HIVE、POSTGRESQL、MRS_SPARK、CLICKHOUSE、MYSQL、ORACLE和DORIS等。 + * @return dwType + */ + public String getDwType() { + return dwType; + } + + public void setDwType(String dwType) { + this.dwType = dwType; + } + + public FactLogicTableVO withL1(String l1) { + this.l1 = l1; + return this; + } + + /** + * 主题域分组中文名,只读,创建和更新时无需填写。 + * @return l1 + */ + public String getL1() { + return l1; + } + + public void setL1(String l1) { + this.l1 = l1; + } + + public FactLogicTableVO withL2(String l2) { + this.l2 = l2; + return this; + } + + /** + * 主题域中文名,只读,创建和更新时无需填写。 + * @return l2 + */ + public String getL2() { + return l2; + } + + public void setL2(String l2) { + this.l2 = l2; + } + + public FactLogicTableVO withL3(String l3) { + this.l3 = l3; + return this; + } + + /** + * 业务对象中文名,只读,创建和更新时无需填写。 + * @return l3 + */ + public String getL3() { + return l3; + } + + public void setL3(String l3) { + this.l3 = l3; + } + + public FactLogicTableVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public FactLogicTableVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public FactLogicTableVO withApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + return this; + } + + public FactLogicTableVO withApprovalInfo(Consumer approvalInfoSetter) { + if (this.approvalInfo == null) { + this.approvalInfo = new ApprovalVO(); + approvalInfoSetter.accept(this.approvalInfo); + } + + return this; + } + + /** + * Get approvalInfo + * @return approvalInfo + */ + public ApprovalVO getApprovalInfo() { + return approvalInfo; + } + + public void setApprovalInfo(ApprovalVO approvalInfo) { + this.approvalInfo = approvalInfo; + } + + public FactLogicTableVO withNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + return this; + } + + public FactLogicTableVO withNewBiz(Consumer newBizSetter) { + if (this.newBiz == null) { + this.newBiz = new BizVersionManageVO(); + newBizSetter.accept(this.newBiz); + } + + return this; + } + + /** + * Get newBiz + * @return newBiz + */ + public BizVersionManageVO getNewBiz() { + return newBiz; + } + + public void setNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + } + + public FactLogicTableVO withDimensions(List dimensions) { + this.dimensions = dimensions; + return this; + } + + public FactLogicTableVO addDimensionsItem(FactTableAttributeVO dimensionsItem) { + if (this.dimensions == null) { + this.dimensions = new ArrayList<>(); + } + this.dimensions.add(dimensionsItem); + return this; + } + + public FactLogicTableVO withDimensions(Consumer> dimensionsSetter) { + if (this.dimensions == null) { + this.dimensions = new ArrayList<>(); + } + dimensionsSetter.accept(this.dimensions); + return this; + } + + /** + * 事实表维度信息,只读。 + * @return dimensions + */ + public List getDimensions() { + return dimensions; + } + + public void setDimensions(List dimensions) { + this.dimensions = dimensions; + } + + public FactLogicTableVO withAttributes(List attributes) { + this.attributes = attributes; + return this; + } + + public FactLogicTableVO addAttributesItem(FactTableAttributeVO attributesItem) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + this.attributes.add(attributesItem); + return this; + } + + public FactLogicTableVO withAttributes(Consumer> attributesSetter) { + if (this.attributes == null) { + this.attributes = new ArrayList<>(); + } + attributesSetter.accept(this.attributes); + return this; + } + + /** + * 事实表事实属性信息,只读。 + * @return attributes + */ + public List getAttributes() { + return attributes; + } + + public void setAttributes(List attributes) { + this.attributes = attributes; + } + + public FactLogicTableVO withMappings(List mappings) { + this.mappings = mappings; + return this; + } + + public FactLogicTableVO addMappingsItem(TableMappingVO mappingsItem) { + if (this.mappings == null) { + this.mappings = new ArrayList<>(); + } + this.mappings.add(mappingsItem); + return this; + } + + public FactLogicTableVO withMappings(Consumer> mappingsSetter) { + if (this.mappings == null) { + this.mappings = new ArrayList<>(); + } + mappingsSetter.accept(this.mappings); + return this; + } + + /** + * 表映射信息。 + * @return mappings + */ + public List getMappings() { + return mappings; + } + + public void setMappings(List mappings) { + this.mappings = mappings; + } + + public FactLogicTableVO withMeasures(List measures) { + this.measures = measures; + return this; + } + + public FactLogicTableVO addMeasuresItem(FactTableAttributeVO measuresItem) { + if (this.measures == null) { + this.measures = new ArrayList<>(); + } + this.measures.add(measuresItem); + return this; + } + + public FactLogicTableVO withMeasures(Consumer> measuresSetter) { + if (this.measures == null) { + this.measures = new ArrayList<>(); + } + measuresSetter.accept(this.measures); + return this; + } + + /** + * 事实表度量信息,只读。 + * @return measures + */ + public List getMeasures() { + return measures; + } + + public void setMeasures(List measures) { + this.measures = measures; + } + + public FactLogicTableVO withTableAttributes(List tableAttributes) { + this.tableAttributes = tableAttributes; + return this; + } + + public FactLogicTableVO addTableAttributesItem(FactTableAttributeVO tableAttributesItem) { + if (this.tableAttributes == null) { + this.tableAttributes = new ArrayList<>(); + } + this.tableAttributes.add(tableAttributesItem); + return this; + } + + public FactLogicTableVO withTableAttributes(Consumer> tableAttributesSetter) { + if (this.tableAttributes == null) { + this.tableAttributes = new ArrayList<>(); + } + tableAttributesSetter.accept(this.tableAttributes); + return this; + } + + /** + * 事实表所有属性。 + * @return tableAttributes + */ + public List getTableAttributes() { + return tableAttributes; + } + + public void setTableAttributes(List tableAttributes) { + this.tableAttributes = tableAttributes; + } + + public FactLogicTableVO withConfigs(String configs) { + this.configs = configs; + return this; + } + + /** + * 其他配置 + * @return configs + */ + public String getConfigs() { + return configs; + } + + public void setConfigs(String configs) { + this.configs = configs; + } + + public FactLogicTableVO withPhysicalTable(SyncStatusEnum physicalTable) { + this.physicalTable = physicalTable; + return this; + } + + /** + * Get physicalTable + * @return physicalTable + */ + public SyncStatusEnum getPhysicalTable() { + return physicalTable; + } + + public void setPhysicalTable(SyncStatusEnum physicalTable) { + this.physicalTable = physicalTable; + } + + public FactLogicTableVO withDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + return this; + } + + /** + * Get devPhysicalTable + * @return devPhysicalTable + */ + public SyncStatusEnum getDevPhysicalTable() { + return devPhysicalTable; + } + + public void setDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + } + + public FactLogicTableVO withTechnicalAsset(SyncStatusEnum technicalAsset) { + this.technicalAsset = technicalAsset; + return this; + } + + /** + * Get technicalAsset + * @return technicalAsset + */ + public SyncStatusEnum getTechnicalAsset() { + return technicalAsset; + } + + public void setTechnicalAsset(SyncStatusEnum technicalAsset) { + this.technicalAsset = technicalAsset; + } + + public FactLogicTableVO withBusinessAsset(SyncStatusEnum businessAsset) { + this.businessAsset = businessAsset; + return this; + } + + /** + * Get businessAsset + * @return businessAsset + */ + public SyncStatusEnum getBusinessAsset() { + return businessAsset; + } + + public void setBusinessAsset(SyncStatusEnum businessAsset) { + this.businessAsset = businessAsset; + } + + public FactLogicTableVO withMetaDataLink(SyncStatusEnum metaDataLink) { + this.metaDataLink = metaDataLink; + return this; + } + + /** + * Get metaDataLink + * @return metaDataLink + */ + public SyncStatusEnum getMetaDataLink() { + return metaDataLink; + } + + public void setMetaDataLink(SyncStatusEnum metaDataLink) { + this.metaDataLink = metaDataLink; + } + + public FactLogicTableVO withDataQuality(SyncStatusEnum dataQuality) { + this.dataQuality = dataQuality; + return this; + } + + /** + * Get dataQuality + * @return dataQuality + */ + public SyncStatusEnum getDataQuality() { + return dataQuality; + } + + public void setDataQuality(SyncStatusEnum dataQuality) { + this.dataQuality = dataQuality; + } + + public FactLogicTableVO withSummaryStatus(SyncStatusEnum summaryStatus) { + this.summaryStatus = summaryStatus; + return this; + } + + /** + * Get summaryStatus + * @return summaryStatus + */ + public SyncStatusEnum getSummaryStatus() { + return summaryStatus; + } + + public void setSummaryStatus(SyncStatusEnum summaryStatus) { + this.summaryStatus = summaryStatus; + } + + public FactLogicTableVO withQualityId(String qualityId) { + this.qualityId = qualityId; + return this; + } + + /** + * 质量ID,填写String类型替代Long类型。 + * @return qualityId + */ + public String getQualityId() { + return qualityId; + } + + public void setQualityId(String qualityId) { + this.qualityId = qualityId; + } + + public FactLogicTableVO withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 别名。 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public FactLogicTableVO withSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + return this; + } + + public FactLogicTableVO addSelfDefinedFieldsItem(SelfDefinedFieldVO selfDefinedFieldsItem) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + this.selfDefinedFields.add(selfDefinedFieldsItem); + return this; + } + + public FactLogicTableVO withSelfDefinedFields(Consumer> selfDefinedFieldsSetter) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + selfDefinedFieldsSetter.accept(this.selfDefinedFields); + return this; + } + + /** + * 自定义项。 + * @return selfDefinedFields + */ + public List getSelfDefinedFields() { + return selfDefinedFields; + } + + public void setSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + } + + public FactLogicTableVO withObsLocation(String obsLocation) { + this.obsLocation = obsLocation; + return this; + } + + /** + * 外表路径 + * @return obsLocation + */ + public String getObsLocation() { + return obsLocation; + } + + public void setObsLocation(String obsLocation) { + this.obsLocation = obsLocation; + } + + public FactLogicTableVO withDevVersion(String devVersion) { + this.devVersion = devVersion; + return this; + } + + /** + * 开发环境版本,填写String类型替代Long类型。 + * @return devVersion + */ + public String getDevVersion() { + return devVersion; + } + + public void setDevVersion(String devVersion) { + this.devVersion = devVersion; + } + + public FactLogicTableVO withProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + return this; + } + + /** + * 生产环境版本,填写String类型替代Long类型。 + * @return prodVersion + */ + public String getProdVersion() { + return prodVersion; + } + + public void setProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + } + + public FactLogicTableVO withDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + return this; + } + + /** + * 开发环境版本名称 + * @return devVersionName + */ + public String getDevVersionName() { + return devVersionName; + } + + public void setDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + } + + public FactLogicTableVO withProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + return this; + } + + /** + * 生产环境版本名称 + * @return prodVersionName + */ + public String getProdVersionName() { + return prodVersionName; + } + + public void setProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + } + + public FactLogicTableVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + + public FactLogicTableVO withSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + return this; + } + + public FactLogicTableVO addSecrecyLevelsItem(SecrecyLevelVO secrecyLevelsItem) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + this.secrecyLevels.add(secrecyLevelsItem); + return this; + } + + public FactLogicTableVO withSecrecyLevels(Consumer> secrecyLevelsSetter) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + secrecyLevelsSetter.accept(this.secrecyLevels); + return this; + } + + /** + * 密级 + * @return secrecyLevels + */ + public List getSecrecyLevels() { + return secrecyLevels; + } + + public void setSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FactLogicTableVO that = (FactLogicTableVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.tbName, that.tbName) + && Objects.equals(this.tbLogicName, that.tbLogicName) && Objects.equals(this.l1Id, that.l1Id) + && Objects.equals(this.l2Id, that.l2Id) && Objects.equals(this.l3Id, that.l3Id) + && Objects.equals(this.description, that.description) && Objects.equals(this.dwName, that.dwName) + && Objects.equals(this.owner, that.owner) && Objects.equals(this.createBy, that.createBy) + && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.dwId, that.dwId) + && Objects.equals(this.dbName, that.dbName) && Objects.equals(this.tbId, that.tbId) + && Objects.equals(this.dimTableIds, that.dimTableIds) && Objects.equals(this.reversed, that.reversed) + && Objects.equals(this.partitionConf, that.partitionConf) + && Objects.equals(this.dirtyOutSwitch, that.dirtyOutSwitch) + && Objects.equals(this.dirtyOutDatabase, that.dirtyOutDatabase) + && Objects.equals(this.dirtyOutPrefix, that.dirtyOutPrefix) + && Objects.equals(this.dirtyOutSuffix, that.dirtyOutSuffix) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.distribute, that.distribute) + && Objects.equals(this.distributeColumn, that.distributeColumn) + && Objects.equals(this.tableType, that.tableType) && Objects.equals(this.status, that.status) + && Objects.equals(this.tbGuid, that.tbGuid) && Objects.equals(this.tbLogicGuid, that.tbLogicGuid) + && Objects.equals(this.dwType, that.dwType) && Objects.equals(this.l1, that.l1) + && Objects.equals(this.l2, that.l2) && Objects.equals(this.l3, that.l3) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) + && Objects.equals(this.approvalInfo, that.approvalInfo) && Objects.equals(this.newBiz, that.newBiz) + && Objects.equals(this.dimensions, that.dimensions) && Objects.equals(this.attributes, that.attributes) + && Objects.equals(this.mappings, that.mappings) && Objects.equals(this.measures, that.measures) + && Objects.equals(this.tableAttributes, that.tableAttributes) && Objects.equals(this.configs, that.configs) + && Objects.equals(this.physicalTable, that.physicalTable) + && Objects.equals(this.devPhysicalTable, that.devPhysicalTable) + && Objects.equals(this.technicalAsset, that.technicalAsset) + && Objects.equals(this.businessAsset, that.businessAsset) + && Objects.equals(this.metaDataLink, that.metaDataLink) + && Objects.equals(this.dataQuality, that.dataQuality) + && Objects.equals(this.summaryStatus, that.summaryStatus) && Objects.equals(this.qualityId, that.qualityId) + && Objects.equals(this.alias, that.alias) && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) + && Objects.equals(this.obsLocation, that.obsLocation) && Objects.equals(this.devVersion, that.devVersion) + && Objects.equals(this.prodVersion, that.prodVersion) + && Objects.equals(this.devVersionName, that.devVersionName) + && Objects.equals(this.prodVersionName, that.prodVersionName) && Objects.equals(this.envType, that.envType) + && Objects.equals(this.secrecyLevels, that.secrecyLevels); + } + + @Override + public int hashCode() { + return Objects.hash(id, + tbName, + tbLogicName, + l1Id, + l2Id, + l3Id, + description, + dwName, + owner, + createBy, + queueName, + dwId, + dbName, + tbId, + dimTableIds, + reversed, + partitionConf, + dirtyOutSwitch, + dirtyOutDatabase, + dirtyOutPrefix, + dirtyOutSuffix, + schema, + distribute, + distributeColumn, + tableType, + status, + tbGuid, + tbLogicGuid, + dwType, + l1, + l2, + l3, + createTime, + updateTime, + approvalInfo, + newBiz, + dimensions, + attributes, + mappings, + measures, + tableAttributes, + configs, + physicalTable, + devPhysicalTable, + technicalAsset, + businessAsset, + metaDataLink, + dataQuality, + summaryStatus, + qualityId, + alias, + selfDefinedFields, + obsLocation, + devVersion, + prodVersion, + devVersionName, + prodVersionName, + envType, + secrecyLevels); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FactLogicTableVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" tbName: ").append(toIndentedString(tbName)).append("\n"); + sb.append(" tbLogicName: ").append(toIndentedString(tbLogicName)).append("\n"); + sb.append(" l1Id: ").append(toIndentedString(l1Id)).append("\n"); + sb.append(" l2Id: ").append(toIndentedString(l2Id)).append("\n"); + sb.append(" l3Id: ").append(toIndentedString(l3Id)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dwName: ").append(toIndentedString(dwName)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" queueName: ").append(toIndentedString(queueName)).append("\n"); + sb.append(" dwId: ").append(toIndentedString(dwId)).append("\n"); + sb.append(" dbName: ").append(toIndentedString(dbName)).append("\n"); + sb.append(" tbId: ").append(toIndentedString(tbId)).append("\n"); + sb.append(" dimTableIds: ").append(toIndentedString(dimTableIds)).append("\n"); + sb.append(" reversed: ").append(toIndentedString(reversed)).append("\n"); + sb.append(" partitionConf: ").append(toIndentedString(partitionConf)).append("\n"); + sb.append(" dirtyOutSwitch: ").append(toIndentedString(dirtyOutSwitch)).append("\n"); + sb.append(" dirtyOutDatabase: ").append(toIndentedString(dirtyOutDatabase)).append("\n"); + sb.append(" dirtyOutPrefix: ").append(toIndentedString(dirtyOutPrefix)).append("\n"); + sb.append(" dirtyOutSuffix: ").append(toIndentedString(dirtyOutSuffix)).append("\n"); + sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" distribute: ").append(toIndentedString(distribute)).append("\n"); + sb.append(" distributeColumn: ").append(toIndentedString(distributeColumn)).append("\n"); + sb.append(" tableType: ").append(toIndentedString(tableType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tbGuid: ").append(toIndentedString(tbGuid)).append("\n"); + sb.append(" tbLogicGuid: ").append(toIndentedString(tbLogicGuid)).append("\n"); + sb.append(" dwType: ").append(toIndentedString(dwType)).append("\n"); + sb.append(" l1: ").append(toIndentedString(l1)).append("\n"); + sb.append(" l2: ").append(toIndentedString(l2)).append("\n"); + sb.append(" l3: ").append(toIndentedString(l3)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" approvalInfo: ").append(toIndentedString(approvalInfo)).append("\n"); + sb.append(" newBiz: ").append(toIndentedString(newBiz)).append("\n"); + sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" mappings: ").append(toIndentedString(mappings)).append("\n"); + sb.append(" measures: ").append(toIndentedString(measures)).append("\n"); + sb.append(" tableAttributes: ").append(toIndentedString(tableAttributes)).append("\n"); + sb.append(" configs: ").append(toIndentedString(configs)).append("\n"); + sb.append(" physicalTable: ").append(toIndentedString(physicalTable)).append("\n"); + sb.append(" devPhysicalTable: ").append(toIndentedString(devPhysicalTable)).append("\n"); + sb.append(" technicalAsset: ").append(toIndentedString(technicalAsset)).append("\n"); + sb.append(" businessAsset: ").append(toIndentedString(businessAsset)).append("\n"); + sb.append(" metaDataLink: ").append(toIndentedString(metaDataLink)).append("\n"); + sb.append(" dataQuality: ").append(toIndentedString(dataQuality)).append("\n"); + sb.append(" summaryStatus: ").append(toIndentedString(summaryStatus)).append("\n"); + sb.append(" qualityId: ").append(toIndentedString(qualityId)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); + sb.append(" obsLocation: ").append(toIndentedString(obsLocation)).append("\n"); + sb.append(" devVersion: ").append(toIndentedString(devVersion)).append("\n"); + sb.append(" prodVersion: ").append(toIndentedString(prodVersion)).append("\n"); + sb.append(" devVersionName: ").append(toIndentedString(devVersionName)).append("\n"); + sb.append(" prodVersionName: ").append(toIndentedString(prodVersionName)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); + sb.append(" secrecyLevels: ").append(toIndentedString(secrecyLevels)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FactTableAttributeVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FactTableAttributeVO.java new file mode 100644 index 0000000000..4cd483aef1 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FactTableAttributeVO.java @@ -0,0 +1,674 @@ +package com.huaweicloud.sdk.dataartsstudio.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 FactTableAttributeVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fact_logic_table_id") + + private String factLogicTableId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ordinal") + + private Integer ordinal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_id") + + private String dimensionId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "role") + + private String role; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension") + + private DimensionVO dimension; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_primary_key") + + private Boolean isPrimaryKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_partition_key") + + private Boolean isPartitionKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_foreign_key") + + private Boolean isForeignKey; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecy_levels") + + private List secrecyLevels = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_type") + + private String dataType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "domain_type") + + private DataTypeDomainEnum domainType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_type_extend") + + private String dataTypeExtend; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_en") + + private String nameEn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name_ch") + + private String nameCh; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "not_null") + + private Boolean notNull; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "attribute_type") + + private BizTypeEnum attributeType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stand_row_id") + + private String standRowId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "stand_row_name") + + private String standRowName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "quality_infos") + + private List qualityInfos = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "self_defined_fields") + + private List selfDefinedFields = null; + + public FactTableAttributeVO withId(String id) { + this.id = id; + return this; + } + + /** + * 编码,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FactTableAttributeVO withFactLogicTableId(String factLogicTableId) { + this.factLogicTableId = factLogicTableId; + return this; + } + + /** + * 所属事实表ID,只读,填写String类型替代Long类型。 + * @return factLogicTableId + */ + public String getFactLogicTableId() { + return factLogicTableId; + } + + public void setFactLogicTableId(String factLogicTableId) { + this.factLogicTableId = factLogicTableId; + } + + public FactTableAttributeVO withOrdinal(Integer ordinal) { + this.ordinal = ordinal; + return this; + } + + /** + * 序号。 + * @return ordinal + */ + public Integer getOrdinal() { + return ordinal; + } + + public void setOrdinal(Integer ordinal) { + this.ordinal = ordinal; + } + + public FactTableAttributeVO withDimensionId(String dimensionId) { + this.dimensionId = dimensionId; + return this; + } + + /** + * 维度ID,填写String类型替代Long类型。 + * @return dimensionId + */ + public String getDimensionId() { + return dimensionId; + } + + public void setDimensionId(String dimensionId) { + this.dimensionId = dimensionId; + } + + public FactTableAttributeVO withRole(String role) { + this.role = role; + return this; + } + + /** + * 维度角色。 + * @return role + */ + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public FactTableAttributeVO withDimension(DimensionVO dimension) { + this.dimension = dimension; + return this; + } + + public FactTableAttributeVO withDimension(Consumer dimensionSetter) { + if (this.dimension == null) { + this.dimension = new DimensionVO(); + dimensionSetter.accept(this.dimension); + } + + return this; + } + + /** + * Get dimension + * @return dimension + */ + public DimensionVO getDimension() { + return dimension; + } + + public void setDimension(DimensionVO dimension) { + this.dimension = dimension; + } + + public FactTableAttributeVO withIsPrimaryKey(Boolean isPrimaryKey) { + this.isPrimaryKey = isPrimaryKey; + return this; + } + + /** + * 是否主键。 + * @return isPrimaryKey + */ + public Boolean getIsPrimaryKey() { + return isPrimaryKey; + } + + public void setIsPrimaryKey(Boolean isPrimaryKey) { + this.isPrimaryKey = isPrimaryKey; + } + + public FactTableAttributeVO withIsPartitionKey(Boolean isPartitionKey) { + this.isPartitionKey = isPartitionKey; + return this; + } + + /** + * 是否分区键。 + * @return isPartitionKey + */ + public Boolean getIsPartitionKey() { + return isPartitionKey; + } + + public void setIsPartitionKey(Boolean isPartitionKey) { + this.isPartitionKey = isPartitionKey; + } + + public FactTableAttributeVO withIsForeignKey(Boolean isForeignKey) { + this.isForeignKey = isForeignKey; + return this; + } + + /** + * 是否外键,只读。 + * @return isForeignKey + */ + public Boolean getIsForeignKey() { + return isForeignKey; + } + + public void setIsForeignKey(Boolean isForeignKey) { + this.isForeignKey = isForeignKey; + } + + public FactTableAttributeVO withSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + return this; + } + + public FactTableAttributeVO addSecrecyLevelsItem(SecrecyLevelRecordVO secrecyLevelsItem) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + this.secrecyLevels.add(secrecyLevelsItem); + return this; + } + + public FactTableAttributeVO withSecrecyLevels(Consumer> secrecyLevelsSetter) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + secrecyLevelsSetter.accept(this.secrecyLevels); + return this; + } + + /** + * 密级 + * @return secrecyLevels + */ + public List getSecrecyLevels() { + return secrecyLevels; + } + + public void setSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + } + + public FactTableAttributeVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public FactTableAttributeVO withDataType(String dataType) { + this.dataType = dataType; + return this; + } + + /** + * 字段类型。 + * @return dataType + */ + public String getDataType() { + return dataType; + } + + public void setDataType(String dataType) { + this.dataType = dataType; + } + + public FactTableAttributeVO withDomainType(DataTypeDomainEnum domainType) { + this.domainType = domainType; + return this; + } + + /** + * Get domainType + * @return domainType + */ + public DataTypeDomainEnum getDomainType() { + return domainType; + } + + public void setDomainType(DataTypeDomainEnum domainType) { + this.domainType = domainType; + } + + public FactTableAttributeVO withDataTypeExtend(String dataTypeExtend) { + this.dataTypeExtend = dataTypeExtend; + return this; + } + + /** + * 数据类型扩展字段。 + * @return dataTypeExtend + */ + public String getDataTypeExtend() { + return dataTypeExtend; + } + + public void setDataTypeExtend(String dataTypeExtend) { + this.dataTypeExtend = dataTypeExtend; + } + + public FactTableAttributeVO withNameEn(String nameEn) { + this.nameEn = nameEn; + return this; + } + + /** + * 英文名。 + * @return nameEn + */ + public String getNameEn() { + return nameEn; + } + + public void setNameEn(String nameEn) { + this.nameEn = nameEn; + } + + public FactTableAttributeVO withNameCh(String nameCh) { + this.nameCh = nameCh; + return this; + } + + /** + * 中文名。 + * @return nameCh + */ + public String getNameCh() { + return nameCh; + } + + public void setNameCh(String nameCh) { + this.nameCh = nameCh; + } + + public FactTableAttributeVO withNotNull(Boolean notNull) { + this.notNull = notNull; + return this; + } + + /** + * 是否不为空。 + * @return notNull + */ + public Boolean getNotNull() { + return notNull; + } + + public void setNotNull(Boolean notNull) { + this.notNull = notNull; + } + + public FactTableAttributeVO withAttributeType(BizTypeEnum attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * Get attributeType + * @return attributeType + */ + public BizTypeEnum getAttributeType() { + return attributeType; + } + + public void setAttributeType(BizTypeEnum attributeType) { + this.attributeType = attributeType; + } + + public FactTableAttributeVO withStandRowId(String standRowId) { + this.standRowId = standRowId; + return this; + } + + /** + * 关联的数据标准的ID,填写String类型替代Long类型。 + * @return standRowId + */ + public String getStandRowId() { + return standRowId; + } + + public void setStandRowId(String standRowId) { + this.standRowId = standRowId; + } + + public FactTableAttributeVO withStandRowName(String standRowName) { + this.standRowName = standRowName; + return this; + } + + /** + * 关联的数据标准名称,只读。 + * @return standRowName + */ + public String getStandRowName() { + return standRowName; + } + + public void setStandRowName(String standRowName) { + this.standRowName = standRowName; + } + + public FactTableAttributeVO withQualityInfos(List qualityInfos) { + this.qualityInfos = qualityInfos; + return this; + } + + public FactTableAttributeVO addQualityInfosItem(QualityInfoVO qualityInfosItem) { + if (this.qualityInfos == null) { + this.qualityInfos = new ArrayList<>(); + } + this.qualityInfos.add(qualityInfosItem); + return this; + } + + public FactTableAttributeVO withQualityInfos(Consumer> qualityInfosSetter) { + if (this.qualityInfos == null) { + this.qualityInfos = new ArrayList<>(); + } + qualityInfosSetter.accept(this.qualityInfos); + return this; + } + + /** + * 质量信息,只读。 + * @return qualityInfos + */ + public List getQualityInfos() { + return qualityInfos; + } + + public void setQualityInfos(List qualityInfos) { + this.qualityInfos = qualityInfos; + } + + public FactTableAttributeVO withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 别名。 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + public FactTableAttributeVO withSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + return this; + } + + public FactTableAttributeVO addSelfDefinedFieldsItem(SelfDefinedFieldVO selfDefinedFieldsItem) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + this.selfDefinedFields.add(selfDefinedFieldsItem); + return this; + } + + public FactTableAttributeVO withSelfDefinedFields(Consumer> selfDefinedFieldsSetter) { + if (this.selfDefinedFields == null) { + this.selfDefinedFields = new ArrayList<>(); + } + selfDefinedFieldsSetter.accept(this.selfDefinedFields); + return this; + } + + /** + * 自定义项。 + * @return selfDefinedFields + */ + public List getSelfDefinedFields() { + return selfDefinedFields; + } + + public void setSelfDefinedFields(List selfDefinedFields) { + this.selfDefinedFields = selfDefinedFields; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FactTableAttributeVO that = (FactTableAttributeVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.factLogicTableId, that.factLogicTableId) + && Objects.equals(this.ordinal, that.ordinal) && Objects.equals(this.dimensionId, that.dimensionId) + && Objects.equals(this.role, that.role) && Objects.equals(this.dimension, that.dimension) + && Objects.equals(this.isPrimaryKey, that.isPrimaryKey) + && Objects.equals(this.isPartitionKey, that.isPartitionKey) + && Objects.equals(this.isForeignKey, that.isForeignKey) + && Objects.equals(this.secrecyLevels, that.secrecyLevels) + && Objects.equals(this.description, that.description) && Objects.equals(this.dataType, that.dataType) + && Objects.equals(this.domainType, that.domainType) + && Objects.equals(this.dataTypeExtend, that.dataTypeExtend) && Objects.equals(this.nameEn, that.nameEn) + && Objects.equals(this.nameCh, that.nameCh) && Objects.equals(this.notNull, that.notNull) + && Objects.equals(this.attributeType, that.attributeType) + && Objects.equals(this.standRowId, that.standRowId) && Objects.equals(this.standRowName, that.standRowName) + && Objects.equals(this.qualityInfos, that.qualityInfos) && Objects.equals(this.alias, that.alias) + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields); + } + + @Override + public int hashCode() { + return Objects.hash(id, + factLogicTableId, + ordinal, + dimensionId, + role, + dimension, + isPrimaryKey, + isPartitionKey, + isForeignKey, + secrecyLevels, + description, + dataType, + domainType, + dataTypeExtend, + nameEn, + nameCh, + notNull, + attributeType, + standRowId, + standRowName, + qualityInfos, + alias, + selfDefinedFields); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FactTableAttributeVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" factLogicTableId: ").append(toIndentedString(factLogicTableId)).append("\n"); + sb.append(" ordinal: ").append(toIndentedString(ordinal)).append("\n"); + sb.append(" dimensionId: ").append(toIndentedString(dimensionId)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" dimension: ").append(toIndentedString(dimension)).append("\n"); + sb.append(" isPrimaryKey: ").append(toIndentedString(isPrimaryKey)).append("\n"); + sb.append(" isPartitionKey: ").append(toIndentedString(isPartitionKey)).append("\n"); + sb.append(" isForeignKey: ").append(toIndentedString(isForeignKey)).append("\n"); + sb.append(" secrecyLevels: ").append(toIndentedString(secrecyLevels)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); + sb.append(" domainType: ").append(toIndentedString(domainType)).append("\n"); + sb.append(" dataTypeExtend: ").append(toIndentedString(dataTypeExtend)).append("\n"); + sb.append(" nameEn: ").append(toIndentedString(nameEn)).append("\n"); + sb.append(" nameCh: ").append(toIndentedString(nameCh)).append("\n"); + sb.append(" notNull: ").append(toIndentedString(notNull)).append("\n"); + sb.append(" attributeType: ").append(toIndentedString(attributeType)).append("\n"); + sb.append(" standRowId: ").append(toIndentedString(standRowId)).append("\n"); + sb.append(" standRowName: ").append(toIndentedString(standRowName)).append("\n"); + sb.append(" qualityInfos: ").append(toIndentedString(qualityInfos)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FlavorDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FlavorDTO.java new file mode 100644 index 0000000000..a8fe3abb9f --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/FlavorDTO.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 集群节点规格 + */ +public class FlavorDTO { + + @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 = "disk") + + private Integer disk; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cpu") + + private Integer cpu; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "mem") + + private Integer mem; + + public FlavorDTO 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 FlavorDTO withName(String name) { + this.name = name; + return this; + } + + /** + * 规格名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public FlavorDTO withDisk(Integer disk) { + this.disk = disk; + return this; + } + + /** + * 磁盘大小。 + * @return disk + */ + public Integer getDisk() { + return disk; + } + + public void setDisk(Integer disk) { + this.disk = disk; + } + + public FlavorDTO withCpu(Integer cpu) { + this.cpu = cpu; + return this; + } + + /** + * CPU大小。 + * @return cpu + */ + public Integer getCpu() { + return cpu; + } + + public void setCpu(Integer cpu) { + this.cpu = cpu; + } + + public FlavorDTO withMem(Integer mem) { + this.mem = mem; + return this; + } + + /** + * 内存大小。 + * @return mem + */ + public Integer getMem() { + return mem; + } + + public void setMem(Integer mem) { + this.mem = mem; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + FlavorDTO that = (FlavorDTO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.disk, that.disk) && Objects.equals(this.cpu, that.cpu) + && Objects.equals(this.mem, that.mem); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, disk, cpu, mem); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FlavorDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" disk: ").append(toIndentedString(disk)).append("\n"); + sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); + sb.append(" mem: ").append(toIndentedString(mem)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/HierarchiesAttrVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/HierarchiesAttrVO.java index 8b6514c7f3..32f5ed2fdf 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/HierarchiesAttrVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/HierarchiesAttrVO.java @@ -16,17 +16,17 @@ public class HierarchiesAttrVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "hierarchies_id") - private Long hierarchiesId; + private String hierarchiesId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "attr_id") - private Long attrId; + private String attrId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "level") @@ -46,7 +46,7 @@ public class HierarchiesAttrVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "detail_attr_ids") - private List detailAttrIds = null; + private List detailAttrIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "detail_attr_name_ens") @@ -68,54 +68,54 @@ public class HierarchiesAttrVO { private List detailAttrs = null; - public HierarchiesAttrVO withId(Long id) { + public HierarchiesAttrVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public HierarchiesAttrVO withHierarchiesId(Long hierarchiesId) { + public HierarchiesAttrVO withHierarchiesId(String hierarchiesId) { this.hierarchiesId = hierarchiesId; return this; } /** - * 层级ID。 + * 层级ID,填写String类型替代Long类型。 * @return hierarchiesId */ - public Long getHierarchiesId() { + public String getHierarchiesId() { return hierarchiesId; } - public void setHierarchiesId(Long hierarchiesId) { + public void setHierarchiesId(String hierarchiesId) { this.hierarchiesId = hierarchiesId; } - public HierarchiesAttrVO withAttrId(Long attrId) { + public HierarchiesAttrVO withAttrId(String attrId) { this.attrId = attrId; return this; } /** - * 属性ID。 + * 属性ID,填写String类型替代Long类型。 * @return attrId */ - public Long getAttrId() { + public String getAttrId() { return attrId; } - public void setAttrId(Long attrId) { + public void setAttrId(String attrId) { this.attrId = attrId; } @@ -159,7 +159,7 @@ public HierarchiesAttrVO withAttrNameCh(String attrNameCh) { } /** - * 引用属性名称。 + * 引用属性名称,只读。 * @return attrNameCh */ public String getAttrNameCh() { @@ -170,12 +170,12 @@ public void setAttrNameCh(String attrNameCh) { this.attrNameCh = attrNameCh; } - public HierarchiesAttrVO withDetailAttrIds(List detailAttrIds) { + public HierarchiesAttrVO withDetailAttrIds(List detailAttrIds) { this.detailAttrIds = detailAttrIds; return this; } - public HierarchiesAttrVO addDetailAttrIdsItem(Long detailAttrIdsItem) { + public HierarchiesAttrVO addDetailAttrIdsItem(String detailAttrIdsItem) { if (this.detailAttrIds == null) { this.detailAttrIds = new ArrayList<>(); } @@ -183,7 +183,7 @@ public HierarchiesAttrVO addDetailAttrIdsItem(Long detailAttrIdsItem) { return this; } - public HierarchiesAttrVO withDetailAttrIds(Consumer> detailAttrIdsSetter) { + public HierarchiesAttrVO withDetailAttrIds(Consumer> detailAttrIdsSetter) { if (this.detailAttrIds == null) { this.detailAttrIds = new ArrayList<>(); } @@ -192,14 +192,14 @@ public HierarchiesAttrVO withDetailAttrIds(Consumer> detailAttrIdsSet } /** - * 详情属性ID。 + * 详情属性ID,填写String类型替代Long类型。 * @return detailAttrIds */ - public List getDetailAttrIds() { + public List getDetailAttrIds() { return detailAttrIds; } - public void setDetailAttrIds(List detailAttrIds) { + public void setDetailAttrIds(List detailAttrIds) { this.detailAttrIds = detailAttrIds; } @@ -258,7 +258,7 @@ public HierarchiesAttrVO withDetailAttrNameChs(Consumer> detailAttr } /** - * 详情属性中文。 + * 详情属性中文,只读。 * @return detailAttrNameChs */ public List getDetailAttrNameChs() { @@ -317,7 +317,7 @@ public HierarchiesAttrVO withDetailAttrs(Consumer> de } /** - * 详情字段。 + * 详情字段,只读。 * @return detailAttrs */ public List getDetailAttrs() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/IdsParam.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/IdsParam.java index d4889707d5..9c40c59ebe 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/IdsParam.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/IdsParam.java @@ -24,7 +24,7 @@ public class IdsParam { private List ids = null; /** - * 删除物理表。PHYSICAL_TABLE(关系建模)。 + * 删除物理表。 枚举值: - PHYSICAL_TABLE: 关系建模 */ public static final class DelTypesEnum { @@ -114,7 +114,7 @@ public IdsParam withIds(Consumer> idsSetter) { } /** - * ID列表。 + * ID列表,填写String类型替代Long类型。 * @return ids */ public List getIds() { @@ -131,7 +131,7 @@ public IdsParam withDelTypes(DelTypesEnum delTypes) { } /** - * 删除物理表。PHYSICAL_TABLE(关系建模)。 + * 删除物理表。 枚举值: - PHYSICAL_TABLE: 关系建模 * @return delTypes */ public DelTypesEnum getDelTypes() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsRequest.java index 378e9d5e08..11aa55af75 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsRequest.java @@ -78,7 +78,7 @@ public ImportCatalogsRequest withActionId(String actionId) { } /** - * 需要执行的动作。start-import(开始导入)。 + * 需要执行的动作。 枚举值: - start-import: 开始导入 * @return actionId */ public String getActionId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsResponse.java index bf8ccd8106..408c94434b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportCatalogsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ImportCatalogsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ExportDesignModelsResultData data; - public ImportCatalogsResponse withData(Object data) { + public ImportCatalogsResponse withData(ExportDesignModelsResultData data) { this.data = data; return this; } + public ImportCatalogsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ExportDesignModelsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ExportDesignModelsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ExportDesignModelsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsRequest.java index 3da4105a78..4803de6795 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsRequest.java @@ -26,8 +26,13 @@ public class ImportModelsRequest { private String xProjectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + /** - * 需要执行的动作,根据导入的对象不同而选择不同的导入动作。import_relation(导入关系模型:逻辑实体/物理表)、import_dimension( 导入维度表、事实表)、import_codetable(导入码表)、import_datastandard(导入数据标准)、import_bizmetric(导入业务指标)、import_bizcatalog(导入流程架构)、import_atomic(导入原子指标)、import_derivative(导入衍生指标)、import_compound(导入复合指标)、import_aggregation(导入汇总表)。 + * 需要执行的动作,根据导入的对象不同而选择不同的导入动作。 枚举值: - import_relation: 导入关系模型:逻辑实体/物理表 - import_dimension: 导入维度表、事实表 - import_codetable: 导入码表 - import_datastandard: 导入数据标准 - import_bizmetric: 导入业务指标 - import_bizcatalog: 导入流程架构 - import_atomic: 导入原子指标 - import_derivative: 导入衍生指标 - import_compound: 导入复合指标 - import_aggregation: 导入汇总表 */ public static final class ActionIdEnum { @@ -205,13 +210,32 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } + public ImportModelsRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 默认值:en-us 可选,导入导出接口必填,可选值有:zh-cn、en-us,分别表示中文、英文。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + public ImportModelsRequest withActionId(ActionIdEnum actionId) { this.actionId = actionId; return this; } /** - * 需要执行的动作,根据导入的对象不同而选择不同的导入动作。import_relation(导入关系模型:逻辑实体/物理表)、import_dimension( 导入维度表、事实表)、import_codetable(导入码表)、import_datastandard(导入数据标准)、import_bizmetric(导入业务指标)、import_bizcatalog(导入流程架构)、import_atomic(导入原子指标)、import_derivative(导入衍生指标)、import_compound(导入复合指标)、import_aggregation(导入汇总表)。 + * 需要执行的动作,根据导入的对象不同而选择不同的导入动作。 枚举值: - import_relation: 导入关系模型:逻辑实体/物理表 - import_dimension: 导入维度表、事实表 - import_codetable: 导入码表 - import_datastandard: 导入数据标准 - import_bizmetric: 导入业务指标 - import_bizcatalog: 导入流程架构 - import_atomic: 导入原子指标 - import_derivative: 导入衍生指标 - import_compound: 导入复合指标 - import_aggregation: 导入汇总表 * @return actionId */ public ActionIdEnum getActionId() { @@ -245,7 +269,7 @@ public ImportModelsRequest withDirectoryId(String directoryId) { } /** - * 导入的目录id,在导入码表(import_datastandard)和数据标准(import_datastandard)时生效,选填。 + * 导入的目录id,在导入码表(import_codetable)和数据标准(import_datastandard)时生效,选填。 * @return directoryId */ public String getDirectoryId() { @@ -309,14 +333,14 @@ public boolean equals(java.lang.Object obj) { } ImportModelsRequest that = (ImportModelsRequest) obj; return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.xProjectId, that.xProjectId) - && Objects.equals(this.actionId, that.actionId) && Objects.equals(this.modelId, that.modelId) - && Objects.equals(this.directoryId, that.directoryId) && Objects.equals(this.skipExist, that.skipExist) - && Objects.equals(this.body, that.body); + && Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.actionId, that.actionId) + && Objects.equals(this.modelId, that.modelId) && Objects.equals(this.directoryId, that.directoryId) + && Objects.equals(this.skipExist, that.skipExist) && Objects.equals(this.body, that.body); } @Override public int hashCode() { - return Objects.hash(workspace, xProjectId, actionId, modelId, directoryId, skipExist, body); + return Objects.hash(workspace, xProjectId, xLanguage, actionId, modelId, directoryId, skipExist, body); } @Override @@ -325,6 +349,7 @@ public String toString() { sb.append("class ImportModelsRequest {\n"); sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); sb.append(" actionId: ").append(toIndentedString(actionId)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); sb.append(" directoryId: ").append(toIndentedString(directoryId)).append("\n"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsResponse.java index 08b05971db..c9687f9f33 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportModelsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ImportModelsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ExportDesignModelsResultData data; - public ImportModelsResponse withData(Object data) { + public ImportModelsResponse withData(ExportDesignModelsResultData data) { this.data = data; return this; } + public ImportModelsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ExportDesignModelsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ExportDesignModelsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ExportDesignModelsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportResultResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportResultResponse.java index 8ec93501ed..92cdb72b5f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportResultResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ImportResultResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ImportResultResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private DsProcessImportResultVO data; - public ImportResultResponse withData(Object data) { + public ImportResultResponse withData(DsProcessImportResultVO data) { this.data = data; return this; } + public ImportResultResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new DsProcessImportResultVO(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public DsProcessImportResultVO getData() { return data; } - public void setData(Object data) { + public void setData(DsProcessImportResultVO data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateRequest.java index 8377228555..32b3cb0fd1 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateRequest.java @@ -73,7 +73,7 @@ public InitializeStandardTemplateRequest withActionId(String actionId) { } /** - * action-id=init + * action-id=init,初始化数据标准模板时固定参数。 * @return actionId */ public String getActionId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateResponse.java index 50bf0a9116..43e71b6eae 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class InitializeStandardTemplateResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private InitializeStandardTemplateResultData data; - public InitializeStandardTemplateResponse withData(Object data) { + public InitializeStandardTemplateResponse withData(InitializeStandardTemplateResultData data) { this.data = data; return this; } + public InitializeStandardTemplateResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new InitializeStandardTemplateResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public InitializeStandardTemplateResultData getData() { return data; } - public void setData(Object data) { + public void setData(InitializeStandardTemplateResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateResultData.java new file mode 100644 index 0000000000..568b72fb4e --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InitializeStandardTemplateResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class InitializeStandardTemplateResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public InitializeStandardTemplateResultData withValue(List value) { + this.value = value; + return this; + } + + public InitializeStandardTemplateResultData addValueItem(StandElementFieldVO valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public InitializeStandardTemplateResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 数据标准模板字段详情数组。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + InitializeStandardTemplateResultData that = (InitializeStandardTemplateResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InitializeStandardTemplateResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceDetailDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceDetailDTO.java new file mode 100644 index 0000000000..bb7bdb358e --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceDetailDTO.java @@ -0,0 +1,844 @@ +package com.huaweicloud.sdk.dataartsstudio.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 InstanceDetailDTO { + + @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 = "external_address") + + private String externalAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intranet_address") + + private String intranetAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intranet_address_ipv6") + + private String intranetAddressIpv6; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_zone_id") + + private String publicZoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_zone_name") + + private String publicZoneName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_zone_id") + + private String privateZoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_zone_name") + + private String privateZoneName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_namespace_publish_api_num") + + private Integer currentNamespacePublishApiNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "all_namespace_publish_api_num") + + private Integer allNamespacePublishApiNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_publishable_num") + + private Integer apiPublishableNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "deletable") + + private Boolean deletable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_status") + + private String chargeStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_type") + + private String orderType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period_type") + + private String periodType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_status") + + private String instanceStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_num") + + private Integer nodeNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private FlavorDTO flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_version") + + private String gatewayVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone_name") + + private String availabilityZoneName; + + @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 = "nodes") + + private List nodes = null; + + public InstanceDetailDTO 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 InstanceDetailDTO withName(String name) { + this.name = name; + return this; + } + + /** + * 集群名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public InstanceDetailDTO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 集群描述信息。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public InstanceDetailDTO withExternalAddress(String externalAddress) { + this.externalAddress = externalAddress; + return this; + } + + /** + * 公网IP地址。 + * @return externalAddress + */ + public String getExternalAddress() { + return externalAddress; + } + + public void setExternalAddress(String externalAddress) { + this.externalAddress = externalAddress; + } + + public InstanceDetailDTO withIntranetAddress(String intranetAddress) { + this.intranetAddress = intranetAddress; + return this; + } + + /** + * 内网IPv4地址。 + * @return intranetAddress + */ + public String getIntranetAddress() { + return intranetAddress; + } + + public void setIntranetAddress(String intranetAddress) { + this.intranetAddress = intranetAddress; + } + + public InstanceDetailDTO withIntranetAddressIpv6(String intranetAddressIpv6) { + this.intranetAddressIpv6 = intranetAddressIpv6; + return this; + } + + /** + * 内网IPv6地址。 + * @return intranetAddressIpv6 + */ + public String getIntranetAddressIpv6() { + return intranetAddressIpv6; + } + + public void setIntranetAddressIpv6(String intranetAddressIpv6) { + this.intranetAddressIpv6 = intranetAddressIpv6; + } + + public InstanceDetailDTO withPublicZoneId(String publicZoneId) { + this.publicZoneId = publicZoneId; + return this; + } + + /** + * 公网域名ID。 + * @return publicZoneId + */ + public String getPublicZoneId() { + return publicZoneId; + } + + public void setPublicZoneId(String publicZoneId) { + this.publicZoneId = publicZoneId; + } + + public InstanceDetailDTO withPublicZoneName(String publicZoneName) { + this.publicZoneName = publicZoneName; + return this; + } + + /** + * 公网域名名称。 + * @return publicZoneName + */ + public String getPublicZoneName() { + return publicZoneName; + } + + public void setPublicZoneName(String publicZoneName) { + this.publicZoneName = publicZoneName; + } + + public InstanceDetailDTO withPrivateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + return this; + } + + /** + * 内网域名ID。 + * @return privateZoneId + */ + public String getPrivateZoneId() { + return privateZoneId; + } + + public void setPrivateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + } + + public InstanceDetailDTO withPrivateZoneName(String privateZoneName) { + this.privateZoneName = privateZoneName; + return this; + } + + /** + * 内网域名名称。 + * @return privateZoneName + */ + public String getPrivateZoneName() { + return privateZoneName; + } + + public void setPrivateZoneName(String privateZoneName) { + this.privateZoneName = privateZoneName; + } + + public InstanceDetailDTO 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 InstanceDetailDTO withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间。 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public InstanceDetailDTO withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public InstanceDetailDTO withCurrentNamespacePublishApiNum(Integer currentNamespacePublishApiNum) { + this.currentNamespacePublishApiNum = currentNamespacePublishApiNum; + return this; + } + + /** + * 当前工作空间已发布的API数量。 + * @return currentNamespacePublishApiNum + */ + public Integer getCurrentNamespacePublishApiNum() { + return currentNamespacePublishApiNum; + } + + public void setCurrentNamespacePublishApiNum(Integer currentNamespacePublishApiNum) { + this.currentNamespacePublishApiNum = currentNamespacePublishApiNum; + } + + public InstanceDetailDTO withAllNamespacePublishApiNum(Integer allNamespacePublishApiNum) { + this.allNamespacePublishApiNum = allNamespacePublishApiNum; + return this; + } + + /** + * 所有工作空间已发布的API数量。 + * @return allNamespacePublishApiNum + */ + public Integer getAllNamespacePublishApiNum() { + return allNamespacePublishApiNum; + } + + public void setAllNamespacePublishApiNum(Integer allNamespacePublishApiNum) { + this.allNamespacePublishApiNum = allNamespacePublishApiNum; + } + + public InstanceDetailDTO withApiPublishableNum(Integer apiPublishableNum) { + this.apiPublishableNum = apiPublishableNum; + return this; + } + + /** + * 集群API总配额。 + * @return apiPublishableNum + */ + public Integer getApiPublishableNum() { + return apiPublishableNum; + } + + public void setApiPublishableNum(Integer apiPublishableNum) { + this.apiPublishableNum = apiPublishableNum; + } + + public InstanceDetailDTO withDeletable(Boolean deletable) { + this.deletable = deletable; + return this; + } + + /** + * 集群是否可以删除。 + * @return deletable + */ + public Boolean getDeletable() { + return deletable; + } + + public void setDeletable(Boolean deletable) { + this.deletable = deletable; + } + + public InstanceDetailDTO withChargeStatus(String chargeStatus) { + this.chargeStatus = chargeStatus; + return this; + } + + /** + * 集群计费状态,NO_CHARGE:未计费、CHARGED:已计费,GRACE:宽限期、RETENTION:保留期。 + * @return chargeStatus + */ + public String getChargeStatus() { + return chargeStatus; + } + + public void setChargeStatus(String chargeStatus) { + this.chargeStatus = chargeStatus; + } + + public InstanceDetailDTO withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 订单ID。 + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public InstanceDetailDTO withOrderType(String orderType) { + this.orderType = orderType; + return this; + } + + /** + * 订单类型,PERIOD:包周期、ON_DEMAND:按需。 + * @return orderType + */ + public String getOrderType() { + return orderType; + } + + public void setOrderType(String orderType) { + this.orderType = orderType; + } + + public InstanceDetailDTO withPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + + /** + * 集群订购周期类型。 + * @return periodType + */ + public String getPeriodType() { + return periodType; + } + + public void setPeriodType(String periodType) { + this.periodType = periodType; + } + + public InstanceDetailDTO withInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + return this; + } + + /** + * 集群状态。 + * @return instanceStatus + */ + public String getInstanceStatus() { + return instanceStatus; + } + + public void setInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + } + + public InstanceDetailDTO withNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + return this; + } + + /** + * 节点数量。 + * @return nodeNum + */ + public Integer getNodeNum() { + return nodeNum; + } + + public void setNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + } + + public InstanceDetailDTO withFlavor(FlavorDTO flavor) { + this.flavor = flavor; + return this; + } + + public InstanceDetailDTO withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new FlavorDTO(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public FlavorDTO getFlavor() { + return flavor; + } + + public void setFlavor(FlavorDTO flavor) { + this.flavor = flavor; + } + + public InstanceDetailDTO withGatewayVersion(String gatewayVersion) { + this.gatewayVersion = gatewayVersion; + return this; + } + + /** + * 集群版本号。 + * @return gatewayVersion + */ + public String getGatewayVersion() { + return gatewayVersion; + } + + public void setGatewayVersion(String gatewayVersion) { + this.gatewayVersion = gatewayVersion; + } + + public InstanceDetailDTO withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 集群所在可用区编码。 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public InstanceDetailDTO withAvailabilityZoneName(String availabilityZoneName) { + this.availabilityZoneName = availabilityZoneName; + return this; + } + + /** + * 集群所在可用区名称。 + * @return availabilityZoneName + */ + public String getAvailabilityZoneName() { + return availabilityZoneName; + } + + public void setAvailabilityZoneName(String availabilityZoneName) { + this.availabilityZoneName = availabilityZoneName; + } + + public InstanceDetailDTO withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 集群所在虚拟私有云ID。 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public InstanceDetailDTO 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 InstanceDetailDTO 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 InstanceDetailDTO withNodes(List nodes) { + this.nodes = nodes; + return this; + } + + public InstanceDetailDTO addNodesItem(InstanceNodeDTO nodesItem) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + this.nodes.add(nodesItem); + return this; + } + + public InstanceDetailDTO withNodes(Consumer> nodesSetter) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + nodesSetter.accept(this.nodes); + return this; + } + + /** + * 集群节点列表。 + * @return nodes + */ + public List getNodes() { + return nodes; + } + + public void setNodes(List nodes) { + this.nodes = nodes; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + InstanceDetailDTO that = (InstanceDetailDTO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) + && Objects.equals(this.externalAddress, that.externalAddress) + && Objects.equals(this.intranetAddress, that.intranetAddress) + && Objects.equals(this.intranetAddressIpv6, that.intranetAddressIpv6) + && Objects.equals(this.publicZoneId, that.publicZoneId) + && Objects.equals(this.publicZoneName, that.publicZoneName) + && Objects.equals(this.privateZoneId, that.privateZoneId) + && Objects.equals(this.privateZoneName, that.privateZoneName) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.createUser, that.createUser) + && Objects.equals(this.currentNamespacePublishApiNum, that.currentNamespacePublishApiNum) + && Objects.equals(this.allNamespacePublishApiNum, that.allNamespacePublishApiNum) + && Objects.equals(this.apiPublishableNum, that.apiPublishableNum) + && Objects.equals(this.deletable, that.deletable) && Objects.equals(this.chargeStatus, that.chargeStatus) + && Objects.equals(this.orderId, that.orderId) && Objects.equals(this.orderType, that.orderType) + && Objects.equals(this.periodType, that.periodType) + && Objects.equals(this.instanceStatus, that.instanceStatus) && Objects.equals(this.nodeNum, that.nodeNum) + && Objects.equals(this.flavor, that.flavor) && Objects.equals(this.gatewayVersion, that.gatewayVersion) + && Objects.equals(this.availabilityZone, that.availabilityZone) + && Objects.equals(this.availabilityZoneName, that.availabilityZoneName) + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.securityGroupId, that.securityGroupId) && Objects.equals(this.nodes, that.nodes); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + description, + externalAddress, + intranetAddress, + intranetAddressIpv6, + publicZoneId, + publicZoneName, + privateZoneId, + privateZoneName, + enterpriseProjectId, + createTime, + createUser, + currentNamespacePublishApiNum, + allNamespacePublishApiNum, + apiPublishableNum, + deletable, + chargeStatus, + orderId, + orderType, + periodType, + instanceStatus, + nodeNum, + flavor, + gatewayVersion, + availabilityZone, + availabilityZoneName, + vpcId, + subnetId, + securityGroupId, + nodes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InstanceDetailDTO {\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(" externalAddress: ").append(toIndentedString(externalAddress)).append("\n"); + sb.append(" intranetAddress: ").append(toIndentedString(intranetAddress)).append("\n"); + sb.append(" intranetAddressIpv6: ").append(toIndentedString(intranetAddressIpv6)).append("\n"); + sb.append(" publicZoneId: ").append(toIndentedString(publicZoneId)).append("\n"); + sb.append(" publicZoneName: ").append(toIndentedString(publicZoneName)).append("\n"); + sb.append(" privateZoneId: ").append(toIndentedString(privateZoneId)).append("\n"); + sb.append(" privateZoneName: ").append(toIndentedString(privateZoneName)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" currentNamespacePublishApiNum: ") + .append(toIndentedString(currentNamespacePublishApiNum)) + .append("\n"); + sb.append(" allNamespacePublishApiNum: ").append(toIndentedString(allNamespacePublishApiNum)).append("\n"); + sb.append(" apiPublishableNum: ").append(toIndentedString(apiPublishableNum)).append("\n"); + sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n"); + sb.append(" chargeStatus: ").append(toIndentedString(chargeStatus)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" orderType: ").append(toIndentedString(orderType)).append("\n"); + sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); + sb.append(" instanceStatus: ").append(toIndentedString(instanceStatus)).append("\n"); + sb.append(" nodeNum: ").append(toIndentedString(nodeNum)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" gatewayVersion: ").append(toIndentedString(gatewayVersion)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); + sb.append(" availabilityZoneName: ").append(toIndentedString(availabilityZoneName)).append("\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(" nodes: ").append(toIndentedString(nodes)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceNodeDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceNodeDTO.java new file mode 100644 index 0000000000..d607a71f90 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceNodeDTO.java @@ -0,0 +1,213 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 集群节点信息 + */ +public class InstanceNodeDTO { + + @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 = "private_ip") + + private String privateIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_version") + + private String gatewayVersion; + + public InstanceNodeDTO 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 InstanceNodeDTO withName(String name) { + this.name = name; + return this; + } + + /** + * 节点名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public InstanceNodeDTO withPrivateIp(String privateIp) { + this.privateIp = privateIp; + return this; + } + + /** + * 节点IP地址。 + * @return privateIp + */ + public String getPrivateIp() { + return privateIp; + } + + public void setPrivateIp(String privateIp) { + this.privateIp = privateIp; + } + + public InstanceNodeDTO withStatus(String status) { + this.status = status; + return this; + } + + /** + * 节点状态。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public InstanceNodeDTO withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 节点创建人。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public InstanceNodeDTO withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 节点创建时间。 + * @return createTime + */ + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public InstanceNodeDTO withGatewayVersion(String gatewayVersion) { + this.gatewayVersion = gatewayVersion; + return this; + } + + /** + * 节点版本号。 + * @return gatewayVersion + */ + public String getGatewayVersion() { + return gatewayVersion; + } + + public void setGatewayVersion(String gatewayVersion) { + this.gatewayVersion = gatewayVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + InstanceNodeDTO that = (InstanceNodeDTO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.privateIp, that.privateIp) && Objects.equals(this.status, that.status) + && Objects.equals(this.createUser, that.createUser) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.gatewayVersion, that.gatewayVersion); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, privateIp, status, createUser, createTime, gatewayVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InstanceNodeDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" privateIp: ").append(toIndentedString(privateIp)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" gatewayVersion: ").append(toIndentedString(gatewayVersion)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceOverviewDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceOverviewDTO.java new file mode 100644 index 0000000000..fc30d9b16a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/InstanceOverviewDTO.java @@ -0,0 +1,521 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 集群概览信息 + */ +public class InstanceOverviewDTO { + + @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 = "external_address") + + private String externalAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intranet_address") + + private String intranetAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intranet_address_ipv6") + + private String intranetAddressIpv6; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_zone_id") + + private String publicZoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_zone_name") + + private String publicZoneName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_zone_id") + + private String privateZoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_zone_name") + + private String privateZoneName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_namespace_publish_api_num") + + private Integer currentNamespacePublishApiNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "all_namespace_publish_api_num") + + private Integer allNamespacePublishApiNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_publishable_num") + + private Integer apiPublishableNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "deletable") + + private Boolean deletable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_status") + + private String chargeStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + public InstanceOverviewDTO 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 InstanceOverviewDTO withName(String name) { + this.name = name; + return this; + } + + /** + * 集群名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public InstanceOverviewDTO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 集群描述信息。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public InstanceOverviewDTO withExternalAddress(String externalAddress) { + this.externalAddress = externalAddress; + return this; + } + + /** + * 公网IP地址。 + * @return externalAddress + */ + public String getExternalAddress() { + return externalAddress; + } + + public void setExternalAddress(String externalAddress) { + this.externalAddress = externalAddress; + } + + public InstanceOverviewDTO withIntranetAddress(String intranetAddress) { + this.intranetAddress = intranetAddress; + return this; + } + + /** + * 内网IPv4地址。 + * @return intranetAddress + */ + public String getIntranetAddress() { + return intranetAddress; + } + + public void setIntranetAddress(String intranetAddress) { + this.intranetAddress = intranetAddress; + } + + public InstanceOverviewDTO withIntranetAddressIpv6(String intranetAddressIpv6) { + this.intranetAddressIpv6 = intranetAddressIpv6; + return this; + } + + /** + * 内网IPv6地址。 + * @return intranetAddressIpv6 + */ + public String getIntranetAddressIpv6() { + return intranetAddressIpv6; + } + + public void setIntranetAddressIpv6(String intranetAddressIpv6) { + this.intranetAddressIpv6 = intranetAddressIpv6; + } + + public InstanceOverviewDTO withPublicZoneId(String publicZoneId) { + this.publicZoneId = publicZoneId; + return this; + } + + /** + * 公网域名ID。 + * @return publicZoneId + */ + public String getPublicZoneId() { + return publicZoneId; + } + + public void setPublicZoneId(String publicZoneId) { + this.publicZoneId = publicZoneId; + } + + public InstanceOverviewDTO withPublicZoneName(String publicZoneName) { + this.publicZoneName = publicZoneName; + return this; + } + + /** + * 公网域名名称。 + * @return publicZoneName + */ + public String getPublicZoneName() { + return publicZoneName; + } + + public void setPublicZoneName(String publicZoneName) { + this.publicZoneName = publicZoneName; + } + + public InstanceOverviewDTO withPrivateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + return this; + } + + /** + * 内网域名ID。 + * @return privateZoneId + */ + public String getPrivateZoneId() { + return privateZoneId; + } + + public void setPrivateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + } + + public InstanceOverviewDTO withPrivateZoneName(String privateZoneName) { + this.privateZoneName = privateZoneName; + return this; + } + + /** + * 内网域名名称。 + * @return privateZoneName + */ + public String getPrivateZoneName() { + return privateZoneName; + } + + public void setPrivateZoneName(String privateZoneName) { + this.privateZoneName = privateZoneName; + } + + public InstanceOverviewDTO 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 InstanceOverviewDTO withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间。 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public InstanceOverviewDTO withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public InstanceOverviewDTO withCurrentNamespacePublishApiNum(Integer currentNamespacePublishApiNum) { + this.currentNamespacePublishApiNum = currentNamespacePublishApiNum; + return this; + } + + /** + * 当前工作空间已发布的API数量。 + * @return currentNamespacePublishApiNum + */ + public Integer getCurrentNamespacePublishApiNum() { + return currentNamespacePublishApiNum; + } + + public void setCurrentNamespacePublishApiNum(Integer currentNamespacePublishApiNum) { + this.currentNamespacePublishApiNum = currentNamespacePublishApiNum; + } + + public InstanceOverviewDTO withAllNamespacePublishApiNum(Integer allNamespacePublishApiNum) { + this.allNamespacePublishApiNum = allNamespacePublishApiNum; + return this; + } + + /** + * 所有工作空间已发布的API数量。 + * @return allNamespacePublishApiNum + */ + public Integer getAllNamespacePublishApiNum() { + return allNamespacePublishApiNum; + } + + public void setAllNamespacePublishApiNum(Integer allNamespacePublishApiNum) { + this.allNamespacePublishApiNum = allNamespacePublishApiNum; + } + + public InstanceOverviewDTO withApiPublishableNum(Integer apiPublishableNum) { + this.apiPublishableNum = apiPublishableNum; + return this; + } + + /** + * 集群API总配额。 + * @return apiPublishableNum + */ + public Integer getApiPublishableNum() { + return apiPublishableNum; + } + + public void setApiPublishableNum(Integer apiPublishableNum) { + this.apiPublishableNum = apiPublishableNum; + } + + public InstanceOverviewDTO withDeletable(Boolean deletable) { + this.deletable = deletable; + return this; + } + + /** + * 集群是否可以删除。 + * @return deletable + */ + public Boolean getDeletable() { + return deletable; + } + + public void setDeletable(Boolean deletable) { + this.deletable = deletable; + } + + public InstanceOverviewDTO withChargeStatus(String chargeStatus) { + this.chargeStatus = chargeStatus; + return this; + } + + /** + * 集群计费状态,NO_CHARGE:未计费、CHARGED:已计费,GRACE:宽限期、RETENTION:保留期。 + * @return chargeStatus + */ + public String getChargeStatus() { + return chargeStatus; + } + + public void setChargeStatus(String chargeStatus) { + this.chargeStatus = chargeStatus; + } + + public InstanceOverviewDTO withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 订单ID。 + * @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; + } + InstanceOverviewDTO that = (InstanceOverviewDTO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) + && Objects.equals(this.externalAddress, that.externalAddress) + && Objects.equals(this.intranetAddress, that.intranetAddress) + && Objects.equals(this.intranetAddressIpv6, that.intranetAddressIpv6) + && Objects.equals(this.publicZoneId, that.publicZoneId) + && Objects.equals(this.publicZoneName, that.publicZoneName) + && Objects.equals(this.privateZoneId, that.privateZoneId) + && Objects.equals(this.privateZoneName, that.privateZoneName) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.createUser, that.createUser) + && Objects.equals(this.currentNamespacePublishApiNum, that.currentNamespacePublishApiNum) + && Objects.equals(this.allNamespacePublishApiNum, that.allNamespacePublishApiNum) + && Objects.equals(this.apiPublishableNum, that.apiPublishableNum) + && Objects.equals(this.deletable, that.deletable) && Objects.equals(this.chargeStatus, that.chargeStatus) + && Objects.equals(this.orderId, that.orderId); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + description, + externalAddress, + intranetAddress, + intranetAddressIpv6, + publicZoneId, + publicZoneName, + privateZoneId, + privateZoneName, + enterpriseProjectId, + createTime, + createUser, + currentNamespacePublishApiNum, + allNamespacePublishApiNum, + apiPublishableNum, + deletable, + chargeStatus, + orderId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InstanceOverviewDTO {\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(" externalAddress: ").append(toIndentedString(externalAddress)).append("\n"); + sb.append(" intranetAddress: ").append(toIndentedString(intranetAddress)).append("\n"); + sb.append(" intranetAddressIpv6: ").append(toIndentedString(intranetAddressIpv6)).append("\n"); + sb.append(" publicZoneId: ").append(toIndentedString(publicZoneId)).append("\n"); + sb.append(" publicZoneName: ").append(toIndentedString(publicZoneName)).append("\n"); + sb.append(" privateZoneId: ").append(toIndentedString(privateZoneId)).append("\n"); + sb.append(" privateZoneName: ").append(toIndentedString(privateZoneName)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" currentNamespacePublishApiNum: ") + .append(toIndentedString(currentNamespacePublishApiNum)) + .append("\n"); + sb.append(" allNamespacePublishApiNum: ").append(toIndentedString(allNamespacePublishApiNum)).append("\n"); + sb.append(" apiPublishableNum: ").append(toIndentedString(apiPublishableNum)).append("\n"); + sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n"); + sb.append(" chargeStatus: ").append(toIndentedString(chargeStatus)).append("\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/LinkAttributeAndElementVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/LinkAttributeAndElementVO.java index 08b96cf8ad..6d21c4eabd 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/LinkAttributeAndElementVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/LinkAttributeAndElementVO.java @@ -21,20 +21,20 @@ public class LinkAttributeAndElementVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "ids") - private List ids = null; + private List ids = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stand_row_id") - private Long standRowId; + private String standRowId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table_id") - private Long tableId; + private String tableId; /** - * 表类型,默认是TABLE_MODEL。TABLE_MODEL(关系模型(逻辑模型/物理模型))、AGGREGATION_LOGIC_TABLE(汇总表)、FACT_LOGIC_TABLE(事实表)、DIMENSION(维度)、DIMENSION_LOGIC_TABLE(维度表)。 + * 表类型,默认是TABLE_MODEL。 枚举值: - TABLE_MODEL: 关系模型(逻辑模型/物理模型) - AGGREGATION_LOGIC_TABLE: 汇总表 - FACT_LOGIC_TABLE: 事实表 - DIMENSION: 维度 - DIMENSION_LOGIC_TABLE: 维度表 */ public static final class BizTypeEnum { @@ -126,12 +126,12 @@ public int hashCode() { private BizTypeEnum bizType; - public LinkAttributeAndElementVO withIds(List ids) { + public LinkAttributeAndElementVO withIds(List ids) { this.ids = ids; return this; } - public LinkAttributeAndElementVO addIdsItem(Long idsItem) { + public LinkAttributeAndElementVO addIdsItem(String idsItem) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -139,7 +139,7 @@ public LinkAttributeAndElementVO addIdsItem(Long idsItem) { return this; } - public LinkAttributeAndElementVO withIds(Consumer> idsSetter) { + public LinkAttributeAndElementVO withIds(Consumer> idsSetter) { if (this.ids == null) { this.ids = new ArrayList<>(); } @@ -148,48 +148,48 @@ public LinkAttributeAndElementVO withIds(Consumer> idsSetter) { } /** - * 属性ID列表。 + * 属性ID列表,填写String类型替代Long类型。 * @return ids */ - public List getIds() { + public List getIds() { return ids; } - public void setIds(List ids) { + public void setIds(List ids) { this.ids = ids; } - public LinkAttributeAndElementVO withStandRowId(Long standRowId) { + public LinkAttributeAndElementVO withStandRowId(String standRowId) { this.standRowId = standRowId; return this; } /** - * 关联的数据标准的ID。 + * 关联的数据标准的ID,填写String类型替代Long类型。 * @return standRowId */ - public Long getStandRowId() { + public String getStandRowId() { return standRowId; } - public void setStandRowId(Long standRowId) { + public void setStandRowId(String standRowId) { this.standRowId = standRowId; } - public LinkAttributeAndElementVO withTableId(Long tableId) { + public LinkAttributeAndElementVO withTableId(String tableId) { this.tableId = tableId; return this; } /** - * 表ID。 + * 表ID,填写String类型替代Long类型。 * @return tableId */ - public Long getTableId() { + public String getTableId() { return tableId; } - public void setTableId(Long tableId) { + public void setTableId(String tableId) { this.tableId = tableId; } @@ -199,7 +199,7 @@ public LinkAttributeAndElementVO withBizType(BizTypeEnum bizType) { } /** - * 表类型,默认是TABLE_MODEL。TABLE_MODEL(关系模型(逻辑模型/物理模型))、AGGREGATION_LOGIC_TABLE(汇总表)、FACT_LOGIC_TABLE(事实表)、DIMENSION(维度)、DIMENSION_LOGIC_TABLE(维度表)。 + * 表类型,默认是TABLE_MODEL。 枚举值: - TABLE_MODEL: 关系模型(逻辑模型/物理模型) - AGGREGATION_LOGIC_TABLE: 汇总表 - FACT_LOGIC_TABLE: 事实表 - DIMENSION: 维度 - DIMENSION_LOGIC_TABLE: 维度表 * @return bizType */ public BizTypeEnum getBizType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAggregationLogicTablesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAggregationLogicTablesRequest.java index 9296c126e6..d0ec75d4a6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAggregationLogicTablesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAggregationLogicTablesRequest.java @@ -49,7 +49,7 @@ public class ListAggregationLogicTablesRequest { private String owner; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -148,7 +148,7 @@ public int hashCode() { private StatusEnum status; /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 */ public static final class SyncStatusEnum { @@ -360,7 +360,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "begin_time") @@ -502,7 +502,7 @@ public ListAggregationLogicTablesRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -519,7 +519,7 @@ public ListAggregationLogicTablesRequest withSyncStatus(SyncStatusEnum syncStatu } /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 * @return syncStatus */ public SyncStatusEnum getSyncStatus() { @@ -552,7 +552,7 @@ public ListAggregationLogicTablesRequest withSyncKey(Consumer> } /** - * 同步任务类型枚举。BUSINESS_ASSET(同步业务资产)、DATA_QUALITY(创建质量作业)、TECHNICAL_ASSET(同步技术资产)、META_DATA_LINK(资产关联)、PHYSICAL_TABLE(创建表(生产环境))、DEV_PHYSICAL_TABLE(创建表(开发环境))、DLF_TASK(创建数据开发作业)、MATERIALIZATION(数值落库(码表))、PUBLISH_TO_DLM(发布数据服务API)、SUMMARY_STATUS(整体状态)。 + * 同步任务类型枚举。 枚举值: - BUSINESS_ASSET: 同步业务资产 - DATA_QUALITY: 创建质量作业 - TECHNICAL_ASSET: 同步技术资产 - META_DATA_LINK: 资产关联 - PHYSICAL_TABLE: 创建表(生产环境) - DEV_PHYSICAL_TABLE: 创建表(开发环境) - DLF_TASK: 创建数据开发作业 - MATERIALIZATION: 数值落库(码表) - PUBLISH_TO_DLM: 发布数据服务API - SUMMARY_STATUS: 整体状态 * @return syncKey */ public List getSyncKey() { @@ -563,20 +563,20 @@ public void setSyncKey(List syncKey) { this.syncKey = syncKey; } - public ListAggregationLogicTablesRequest withL3Id(Long l3Id) { + public ListAggregationLogicTablesRequest withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象l3的ID。 + * 业务对象l3的ID,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -620,7 +620,7 @@ public ListAggregationLogicTablesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllStandardsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllStandardsRequest.java index 7a2c54e950..3ee57b3139 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllStandardsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllStandardsRequest.java @@ -138,7 +138,7 @@ public ListAllStandardsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesRequest.java index c1a73fa9b5..ba18cc24e8 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesRequest.java @@ -39,7 +39,7 @@ public class ListAllTablesRequest { private String createBy; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -138,7 +138,7 @@ public int hashCode() { private StatusEnum status; /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 */ public static final class SyncStatusEnum { @@ -375,7 +375,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_catalog_id_list") - private List bizCatalogIdList = null; + private List bizCatalogIdList = null; /** * Gets or Sets bizTypeList @@ -546,7 +546,7 @@ public ListAllTablesRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -563,7 +563,7 @@ public ListAllTablesRequest withSyncStatus(SyncStatusEnum syncStatus) { } /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 * @return syncStatus */ public SyncStatusEnum getSyncStatus() { @@ -596,7 +596,7 @@ public ListAllTablesRequest withSyncKey(Consumer> syncKeySette } /** - * 同步任务类型枚举。BUSINESS_ASSET(同步业务资产)、DATA_QUALITY(创建质量作业)、TECHNICAL_ASSET(同步技术资产)、META_DATA_LINK(资产关联)、PHYSICAL_TABLE(创建表(生产环境))、DEV_PHYSICAL_TABLE(创建表(开发环境))、DLF_TASK(创建数据开发作业)、MATERIALIZATION(数值落库(码表))、PUBLISH_TO_DLM(发布数据服务API)、SUMMARY_STATUS(整体状态)。 + * 同步任务类型枚举。 枚举值: - BUSINESS_ASSET: 同步业务资产 - DATA_QUALITY: 创建质量作业 - TECHNICAL_ASSET: 同步技术资产 - META_DATA_LINK: 资产关联 - PHYSICAL_TABLE: 创建表(生产环境) - DEV_PHYSICAL_TABLE: 创建表(开发环境) - DLF_TASK: 创建数据开发作业 - MATERIALIZATION: 数值落库(码表) - PUBLISH_TO_DLM: 发布数据服务API - SUMMARY_STATUS: 整体状态 * @return syncKey */ public List getSyncKey() { @@ -664,7 +664,7 @@ public ListAllTablesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ @@ -693,12 +693,12 @@ public void setOffset(Integer offset) { this.offset = offset; } - public ListAllTablesRequest withBizCatalogIdList(List bizCatalogIdList) { + public ListAllTablesRequest withBizCatalogIdList(List bizCatalogIdList) { this.bizCatalogIdList = bizCatalogIdList; return this; } - public ListAllTablesRequest addBizCatalogIdListItem(Long bizCatalogIdListItem) { + public ListAllTablesRequest addBizCatalogIdListItem(String bizCatalogIdListItem) { if (this.bizCatalogIdList == null) { this.bizCatalogIdList = new ArrayList<>(); } @@ -706,7 +706,7 @@ public ListAllTablesRequest addBizCatalogIdListItem(Long bizCatalogIdListItem) { return this; } - public ListAllTablesRequest withBizCatalogIdList(Consumer> bizCatalogIdListSetter) { + public ListAllTablesRequest withBizCatalogIdList(Consumer> bizCatalogIdListSetter) { if (this.bizCatalogIdList == null) { this.bizCatalogIdList = new ArrayList<>(); } @@ -715,14 +715,14 @@ public ListAllTablesRequest withBizCatalogIdList(Consumer> bizCatalog } /** - * 所属主题的ID列表。 + * 所属主题的ID列表,填写String类型替代Long类型。 * @return bizCatalogIdList */ - public List getBizCatalogIdList() { + public List getBizCatalogIdList() { return bizCatalogIdList; } - public void setBizCatalogIdList(List bizCatalogIdList) { + public void setBizCatalogIdList(List bizCatalogIdList) { this.bizCatalogIdList = bizCatalogIdList; } @@ -748,7 +748,7 @@ public ListAllTablesRequest withBizTypeList(Consumer> bizT } /** - * 查询的表类型,必填。TABLE_MODEL_LOGIC(逻辑实体)、TABLE_MODEL(物理表)、DIMENSION_LOGIC_TABLE(维度表)、FACT_LOGIC_TABLE(事实表)、AGGREGATION_LOGIC_TABLE(汇总表)。 + * 查询的表类型,必填。 枚举值: - TABLE_MODEL_LOGIC: 逻辑实体 - TABLE_MODEL: 物理表 - DIMENSION_LOGIC_TABLE: 维度表 - FACT_LOGIC_TABLE: 事实表 - AGGREGATION_LOGIC_TABLE: 汇总表 * @return bizTypeList */ public List getBizTypeList() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResponse.java index 83bb38b958..5d91fe488d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListAllTablesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListAllTablesResultData data; - public ListAllTablesResponse withData(Object data) { + public ListAllTablesResponse withData(ListAllTablesResultData data) { this.data = data; return this; } + public ListAllTablesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListAllTablesResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListAllTablesResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListAllTablesResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResultData.java new file mode 100644 index 0000000000..74160d7786 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListAllTablesResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListAllTablesResultDataValue value; + + public ListAllTablesResultData withValue(ListAllTablesResultDataValue value) { + this.value = value; + return this; + } + + public ListAllTablesResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListAllTablesResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListAllTablesResultDataValue getValue() { + return value; + } + + public void setValue(ListAllTablesResultDataValue 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; + } + ListAllTablesResultData that = (ListAllTablesResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllTablesResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResultDataValue.java new file mode 100644 index 0000000000..dc3da94104 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListAllTablesResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListAllTablesResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListAllTablesResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListAllTablesResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListAllTablesResultDataValue addRecordsItem(AllTableVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListAllTablesResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * 查询到的审批单对象(AllTableVO)数组。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListAllTablesResultDataValue that = (ListAllTablesResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllTablesResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversRequest.java index 1a9ece7aa3..21ba1afb52 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversRequest.java @@ -77,7 +77,7 @@ public ListApproversRequest withApproverName(String approverName) { } /** - * 审核人名字 + * 审核人姓名。 * @return approverName */ public String getApproverName() { @@ -94,7 +94,7 @@ public ListApproversRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResponse.java index 3b0aa64903..4c88577fda 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListApproversResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListApproversResultData data; - public ListApproversResponse withData(Object data) { + public ListApproversResponse withData(ListApproversResultData data) { this.data = data; return this; } + public ListApproversResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListApproversResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListApproversResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListApproversResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResultData.java new file mode 100644 index 0000000000..1b9e49f5cb --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListApproversResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListApproversResultDataValue value; + + public ListApproversResultData withValue(ListApproversResultDataValue value) { + this.value = value; + return this; + } + + public ListApproversResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListApproversResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListApproversResultDataValue getValue() { + return value; + } + + public void setValue(ListApproversResultDataValue 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; + } + ListApproversResultData that = (ListApproversResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListApproversResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResultDataValue.java new file mode 100644 index 0000000000..e7ebcea2c8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListApproversResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListApproversResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListApproversResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListApproversResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListApproversResultDataValue addRecordsItem(ApproverVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListApproversResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * 查询到的审批人对象(ApproverVO)数组。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListApproversResultDataValue that = (ListApproversResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListApproversResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsRequest.java index 0e69c39a07..cb1d137521 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsRequest.java @@ -72,7 +72,7 @@ public ListBizMetricDimensionsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsResponse.java index c6b538c6a8..b9031cd262 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListBizMetricDimensionsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListBizMetricDimensionsResultData data; - public ListBizMetricDimensionsResponse withData(Object data) { + public ListBizMetricDimensionsResponse withData(ListBizMetricDimensionsResultData data) { this.data = data; return this; } + public ListBizMetricDimensionsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListBizMetricDimensionsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListBizMetricDimensionsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListBizMetricDimensionsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsResultData.java new file mode 100644 index 0000000000..9e7b4ed52a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricDimensionsResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListBizMetricDimensionsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListBizMetricDimensionsResultData withValue(List value) { + this.value = value; + return this; + } + + public ListBizMetricDimensionsResultData addValueItem(String valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListBizMetricDimensionsResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * value,统一的返回结果的外层数据结构。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + ListBizMetricDimensionsResultData that = (ListBizMetricDimensionsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBizMetricDimensionsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricOwnersRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricOwnersRequest.java index 29ff29c9db..8f1505746a 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricOwnersRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricOwnersRequest.java @@ -72,7 +72,7 @@ public ListBizMetricOwnersRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsRequest.java index 42b5ab953e..906efaaffc 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsRequest.java @@ -44,7 +44,7 @@ public class ListBizMetricsRequest { private String owner; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -143,7 +143,7 @@ public int hashCode() { private StatusEnum status; /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 */ public static final class SyncStatusEnum { @@ -470,7 +470,7 @@ public ListBizMetricsRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -487,7 +487,7 @@ public ListBizMetricsRequest withSyncStatus(SyncStatusEnum syncStatus) { } /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 * @return syncStatus */ public SyncStatusEnum getSyncStatus() { @@ -520,7 +520,7 @@ public ListBizMetricsRequest withSyncKey(Consumer> syncKeySett } /** - * 同步任务类型枚举。BUSINESS_ASSET(同步业务资产)、DATA_QUALITY(创建质量作业)、TECHNICAL_ASSET(同步技术资产)、META_DATA_LINK(资产关联)、PHYSICAL_TABLE(创建表(生产环境))、DEV_PHYSICAL_TABLE(创建表(开发环境))、DLF_TASK(创建数据开发作业)、MATERIALIZATION(数值落库(码表))、PUBLISH_TO_DLM(发布数据服务API)、SUMMARY_STATUS(整体状态)。 + * 同步任务类型枚举。 枚举值: - BUSINESS_ASSET: 同步业务资产 - DATA_QUALITY: 创建质量作业 - TECHNICAL_ASSET: 同步技术资产 - META_DATA_LINK: 资产关联 - PHYSICAL_TABLE: 创建表(生产环境) - DEV_PHYSICAL_TABLE: 创建表(开发环境) - DLF_TASK: 创建数据开发作业 - MATERIALIZATION: 数值落库(码表) - PUBLISH_TO_DLM: 发布数据服务API - SUMMARY_STATUS: 整体状态 * @return syncKey */ public List getSyncKey() { @@ -588,7 +588,7 @@ public ListBizMetricsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResponse.java index 2d38911a1f..b607f104f8 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListBizMetricsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListBizMetricsResultData data; - public ListBizMetricsResponse withData(Object data) { + public ListBizMetricsResponse withData(ListBizMetricsResultData data) { this.data = data; return this; } + public ListBizMetricsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListBizMetricsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListBizMetricsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListBizMetricsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResultData.java new file mode 100644 index 0000000000..4d8eca813d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListBizMetricsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListBizMetricsResultDataValue value; + + public ListBizMetricsResultData withValue(ListBizMetricsResultDataValue value) { + this.value = value; + return this; + } + + public ListBizMetricsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListBizMetricsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListBizMetricsResultDataValue getValue() { + return value; + } + + public void setValue(ListBizMetricsResultDataValue 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; + } + ListBizMetricsResultData that = (ListBizMetricsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBizMetricsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResultDataValue.java new file mode 100644 index 0000000000..c278fee9b8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBizMetricsResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListBizMetricsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListBizMetricsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListBizMetricsResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListBizMetricsResultDataValue addRecordsItem(BizMetricVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListBizMetricsResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * BizMetricVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBizMetricsResultDataValue that = (ListBizMetricsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBizMetricsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBusinessRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBusinessRequest.java index c7094ba974..d3a7ff32b4 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBusinessRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListBusinessRequest.java @@ -72,7 +72,7 @@ public ListBusinessRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCatalogTreeResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCatalogTreeResponse.java index c2ef5e3c14..8c6712d57d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCatalogTreeResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCatalogTreeResponse.java @@ -4,9 +4,6 @@ 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; @@ -16,371 +13,34 @@ public class ListCatalogTreeResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "name") + @JsonProperty(value = "data") - private String name; + private ListCatalogTreeResultData data; - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "description") - - private String description; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "guid") - - private String guid; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "owner") - - private String owner; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "parent_id") - - private Long parentId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "prev_id") - - private Long prevId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "next_id") - - private Long nextId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "id") - - private Long id; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "qualified_id") - - private String qualifiedId; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "create_by") - - private String createBy; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "update_by") - - private String updateBy; - - @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 = "bizmetric_num") - - private Integer bizmetricNum; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "children_num") - - private Integer childrenNum; - - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "children") - - private List children = null; - - public ListCatalogTreeResponse withName(String name) { - this.name = name; - return this; - } - - /** - * 流程名称。 - * @return name - */ - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public ListCatalogTreeResponse withDescription(String description) { - this.description = description; - return this; - } - - /** - * 描述。 - * @return description - */ - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public ListCatalogTreeResponse withGuid(String guid) { - this.guid = guid; - return this; - } - - /** - * 对应资产中ID。 - * @return guid - */ - public String getGuid() { - return guid; - } - - public void setGuid(String guid) { - this.guid = guid; - } - - public ListCatalogTreeResponse withOwner(String owner) { - this.owner = owner; - return this; - } - - /** - * 责任人。 - * @return owner - */ - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - public ListCatalogTreeResponse withParentId(Long parentId) { - this.parentId = parentId; + public ListCatalogTreeResponse withData(ListCatalogTreeResultData data) { + this.data = data; return this; } - /** - * 父目录ID,没有则为根目录。 - * @return parentId - */ - public Long getParentId() { - return parentId; - } - - public void setParentId(Long parentId) { - this.parentId = parentId; - } - - public ListCatalogTreeResponse withPrevId(Long prevId) { - this.prevId = prevId; - return this; - } - - /** - * 上个节点ID,没有则为首节点。 - * @return prevId - */ - public Long getPrevId() { - return prevId; - } - - public void setPrevId(Long prevId) { - this.prevId = prevId; - } - - public ListCatalogTreeResponse withNextId(Long nextId) { - this.nextId = nextId; - return this; - } - - /** - * 下个节点ID,没有则为尾节点。 - * @return nextId - */ - public Long getNextId() { - return nextId; - } - - public void setNextId(Long nextId) { - this.nextId = nextId; - } - - public ListCatalogTreeResponse withId(Long id) { - this.id = id; - return this; - } - - /** - * 创建时传空,更新时必填。 - * @return id - */ - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public ListCatalogTreeResponse withQualifiedId(String qualifiedId) { - this.qualifiedId = qualifiedId; - return this; - } - - /** - * 认证ID,自动生成。 - * @return qualifiedId - */ - public String getQualifiedId() { - return qualifiedId; - } - - public void setQualifiedId(String qualifiedId) { - this.qualifiedId = qualifiedId; - } - - public ListCatalogTreeResponse withCreateBy(String createBy) { - this.createBy = createBy; - return this; - } - - /** - * 创建人。 - * @return createBy - */ - public String getCreateBy() { - return createBy; - } - - public void setCreateBy(String createBy) { - this.createBy = createBy; - } - - public ListCatalogTreeResponse withUpdateBy(String updateBy) { - this.updateBy = updateBy; - return this; - } - - /** - * 更新人。 - * @return updateBy - */ - public String getUpdateBy() { - return updateBy; - } - - public void setUpdateBy(String updateBy) { - this.updateBy = updateBy; - } - - public ListCatalogTreeResponse withCreateTime(OffsetDateTime createTime) { - this.createTime = createTime; - return this; - } - - /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 - * @return createTime - */ - public OffsetDateTime getCreateTime() { - return createTime; - } - - public void setCreateTime(OffsetDateTime createTime) { - this.createTime = createTime; - } - - public ListCatalogTreeResponse withUpdateTime(OffsetDateTime updateTime) { - this.updateTime = updateTime; - return this; - } - - /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 - * @return updateTime - */ - public OffsetDateTime getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(OffsetDateTime updateTime) { - this.updateTime = updateTime; - } - - public ListCatalogTreeResponse withBizmetricNum(Integer bizmetricNum) { - this.bizmetricNum = bizmetricNum; - return this; - } - - /** - * 拥有业务指标数量,前端不传。 - * @return bizmetricNum - */ - public Integer getBizmetricNum() { - return bizmetricNum; - } - - public void setBizmetricNum(Integer bizmetricNum) { - this.bizmetricNum = bizmetricNum; - } - - public ListCatalogTreeResponse withChildrenNum(Integer childrenNum) { - this.childrenNum = childrenNum; - return this; - } - - /** - * 拥有子流程的数量,不包括子流程的子流程。 - * @return childrenNum - */ - public Integer getChildrenNum() { - return childrenNum; - } - - public void setChildrenNum(Integer childrenNum) { - this.childrenNum = childrenNum; - } - - public ListCatalogTreeResponse withChildren(List children) { - this.children = children; - return this; - } - - public ListCatalogTreeResponse addChildrenItem(BizCatalogVO childrenItem) { - if (this.children == null) { - this.children = new ArrayList<>(); + public ListCatalogTreeResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListCatalogTreeResultData(); + dataSetter.accept(this.data); } - this.children.add(childrenItem); - return this; - } - public ListCatalogTreeResponse withChildren(Consumer> childrenSetter) { - if (this.children == null) { - this.children = new ArrayList<>(); - } - childrenSetter.accept(this.children); return this; } /** - * 下层子目录。 - * @return children + * Get data + * @return data */ - public List getChildren() { - return children; + public ListCatalogTreeResultData getData() { + return data; } - public void setChildren(List children) { - this.children = children; + public void setData(ListCatalogTreeResultData data) { + this.data = data; } @Override @@ -392,56 +52,19 @@ public boolean equals(java.lang.Object obj) { return false; } ListCatalogTreeResponse that = (ListCatalogTreeResponse) obj; - return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.guid, that.guid) && Objects.equals(this.owner, that.owner) - && Objects.equals(this.parentId, that.parentId) && Objects.equals(this.prevId, that.prevId) - && Objects.equals(this.nextId, that.nextId) && Objects.equals(this.id, that.id) - && Objects.equals(this.qualifiedId, that.qualifiedId) && Objects.equals(this.createBy, that.createBy) - && Objects.equals(this.updateBy, that.updateBy) && Objects.equals(this.createTime, that.createTime) - && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.bizmetricNum, that.bizmetricNum) - && Objects.equals(this.childrenNum, that.childrenNum) && Objects.equals(this.children, that.children); + return Objects.equals(this.data, that.data); } @Override public int hashCode() { - return Objects.hash(name, - description, - guid, - owner, - parentId, - prevId, - nextId, - id, - qualifiedId, - createBy, - updateBy, - createTime, - updateTime, - bizmetricNum, - childrenNum, - children); + return Objects.hash(data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListCatalogTreeResponse {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" guid: ").append(toIndentedString(guid)).append("\n"); - sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); - sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); - sb.append(" prevId: ").append(toIndentedString(prevId)).append("\n"); - sb.append(" nextId: ").append(toIndentedString(nextId)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" qualifiedId: ").append(toIndentedString(qualifiedId)).append("\n"); - sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); - sb.append(" updateBy: ").append(toIndentedString(updateBy)).append("\n"); - sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); - sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); - sb.append(" bizmetricNum: ").append(toIndentedString(bizmetricNum)).append("\n"); - sb.append(" childrenNum: ").append(toIndentedString(childrenNum)).append("\n"); - sb.append(" children: ").append(toIndentedString(children)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCatalogTreeResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCatalogTreeResultData.java new file mode 100644 index 0000000000..6eb38d88f7 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCatalogTreeResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListCatalogTreeResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListCatalogTreeResultData withValue(List value) { + this.value = value; + return this; + } + + public ListCatalogTreeResultData addValueItem(BizCatalogVO valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListCatalogTreeResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * value,统一的返回结果的外层数据结构。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + ListCatalogTreeResultData that = (ListCatalogTreeResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCatalogTreeResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCompoundMetricsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCompoundMetricsRequest.java index 9f8505e6fb..286eccb1e3 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCompoundMetricsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListCompoundMetricsRequest.java @@ -41,7 +41,7 @@ public class ListCompoundMetricsRequest { private String approver; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -147,12 +147,12 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "atomic_index_id") - private Long atomicIndexId; + private String atomicIndexId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "begin_time") @@ -267,7 +267,7 @@ public ListCompoundMetricsRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -295,37 +295,37 @@ public void setDimensionGroup(String dimensionGroup) { this.dimensionGroup = dimensionGroup; } - public ListCompoundMetricsRequest withAtomicIndexId(Long atomicIndexId) { + public ListCompoundMetricsRequest withAtomicIndexId(String atomicIndexId) { this.atomicIndexId = atomicIndexId; return this; } /** - * 依据原子指标ID查维度属性。 + * 依据原子指标ID查维度属性,填写String类型替代Long类型。 * @return atomicIndexId */ - public Long getAtomicIndexId() { + public String getAtomicIndexId() { return atomicIndexId; } - public void setAtomicIndexId(Long atomicIndexId) { + public void setAtomicIndexId(String atomicIndexId) { this.atomicIndexId = atomicIndexId; } - public ListCompoundMetricsRequest withL3Id(Long l3Id) { + public ListCompoundMetricsRequest withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象l3的ID。 + * 业务对象l3的ID,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -369,7 +369,7 @@ public ListCompoundMetricsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionRequest.java index 18754a196f..f2829ea716 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionRequest.java @@ -41,7 +41,7 @@ public class ListConditionRequest { private String approver; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -252,7 +252,7 @@ public ListConditionRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -303,7 +303,7 @@ public ListConditionRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResponse.java index f326be41de..788f29bda3 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListConditionResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListConditionResultData data; - public ListConditionResponse withData(Object data) { + public ListConditionResponse withData(ListConditionResultData data) { this.data = data; return this; } + public ListConditionResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListConditionResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListConditionResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListConditionResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResultData.java new file mode 100644 index 0000000000..bc41ce4d1e --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListConditionResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListConditionResultDataValue value; + + public ListConditionResultData withValue(ListConditionResultDataValue value) { + this.value = value; + return this; + } + + public ListConditionResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListConditionResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListConditionResultDataValue getValue() { + return value; + } + + public void setValue(ListConditionResultDataValue 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; + } + ListConditionResultData that = (ListConditionResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListConditionResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResultDataValue.java new file mode 100644 index 0000000000..c9d1eb71f9 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListConditionResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListConditionResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListConditionResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListConditionResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListConditionResultDataValue addRecordsItem(ConditionVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListConditionResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * ConditionVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListConditionResultDataValue that = (ListConditionResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListConditionResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesDetailRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesDetailRequest.java new file mode 100644 index 0000000000..0851637ecb --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesDetailRequest.java @@ -0,0 +1,264 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * Request Object + */ +public class ListDataServiceInstancesDetailRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + */ + public static final class DlmTypeEnum { + + /** + * Enum SHARED for value: "SHARED" + */ + public static final DlmTypeEnum SHARED = new DlmTypeEnum("SHARED"); + + /** + * Enum EXCLUSIVE for value: "EXCLUSIVE" + */ + public static final DlmTypeEnum EXCLUSIVE = new DlmTypeEnum("EXCLUSIVE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("SHARED", SHARED); + map.put("EXCLUSIVE", EXCLUSIVE); + return Collections.unmodifiableMap(map); + } + + private String value; + + DlmTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DlmTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DlmTypeEnum(value)); + } + + public static DlmTypeEnum 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 DlmTypeEnum) { + return this.value.equals(((DlmTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Dlm-Type") + + private DlmTypeEnum dlmType; + + @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 = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + public ListDataServiceInstancesDetailRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public ListDataServiceInstancesDetailRequest withDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + return this; + } + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + * @return dlmType + */ + public DlmTypeEnum getDlmType() { + return dlmType; + } + + public void setDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + } + + public ListDataServiceInstancesDetailRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询条数限制。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListDataServiceInstancesDetailRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询起始坐标。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListDataServiceInstancesDetailRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 集群名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListDataServiceInstancesDetailRequest withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人名称。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDataServiceInstancesDetailRequest that = (ListDataServiceInstancesDetailRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.dlmType, that.dlmType) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.name, that.name) && Objects.equals(this.createUser, that.createUser); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, dlmType, limit, offset, name, createUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDataServiceInstancesDetailRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" dlmType: ").append(toIndentedString(dlmType)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesDetailResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesDetailResponse.java new file mode 100644 index 0000000000..ce6d092828 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesDetailResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ListDataServiceInstancesDetailResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + public ListDataServiceInstancesDetailResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 集群数量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListDataServiceInstancesDetailResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListDataServiceInstancesDetailResponse addInstancesItem(InstanceDetailDTO instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListDataServiceInstancesDetailResponse 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; + } + ListDataServiceInstancesDetailResponse that = (ListDataServiceInstancesDetailResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.instances, that.instances); + } + + @Override + public int hashCode() { + return Objects.hash(total, instances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDataServiceInstancesDetailResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesOverviewRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesOverviewRequest.java new file mode 100644 index 0000000000..b94ace3310 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesOverviewRequest.java @@ -0,0 +1,264 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * Request Object + */ +public class ListDataServiceInstancesOverviewRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + */ + public static final class DlmTypeEnum { + + /** + * Enum SHARED for value: "SHARED" + */ + public static final DlmTypeEnum SHARED = new DlmTypeEnum("SHARED"); + + /** + * Enum EXCLUSIVE for value: "EXCLUSIVE" + */ + public static final DlmTypeEnum EXCLUSIVE = new DlmTypeEnum("EXCLUSIVE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("SHARED", SHARED); + map.put("EXCLUSIVE", EXCLUSIVE); + return Collections.unmodifiableMap(map); + } + + private String value; + + DlmTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DlmTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DlmTypeEnum(value)); + } + + public static DlmTypeEnum 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 DlmTypeEnum) { + return this.value.equals(((DlmTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Dlm-Type") + + private DlmTypeEnum dlmType; + + @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 = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + public ListDataServiceInstancesOverviewRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public ListDataServiceInstancesOverviewRequest withDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + return this; + } + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + * @return dlmType + */ + public DlmTypeEnum getDlmType() { + return dlmType; + } + + public void setDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + } + + public ListDataServiceInstancesOverviewRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询条数限制。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListDataServiceInstancesOverviewRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询起始坐标。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListDataServiceInstancesOverviewRequest withName(String name) { + this.name = name; + return this; + } + + /** + * 集群名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListDataServiceInstancesOverviewRequest withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人名称。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDataServiceInstancesOverviewRequest that = (ListDataServiceInstancesOverviewRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.dlmType, that.dlmType) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.name, that.name) && Objects.equals(this.createUser, that.createUser); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, dlmType, limit, offset, name, createUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDataServiceInstancesOverviewRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" dlmType: ").append(toIndentedString(dlmType)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesOverviewResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesOverviewResponse.java new file mode 100644 index 0000000000..d7d9c1828d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceInstancesOverviewResponse.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ListDataServiceInstancesOverviewResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_down") + + private Boolean scaleDown; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "scale_out") + + private Boolean scaleOut; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instances") + + private List instances = null; + + public ListDataServiceInstancesOverviewResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 集群数量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListDataServiceInstancesOverviewResponse withScaleDown(Boolean scaleDown) { + this.scaleDown = scaleDown; + return this; + } + + /** + * 是否支持缩容。 + * @return scaleDown + */ + public Boolean getScaleDown() { + return scaleDown; + } + + public void setScaleDown(Boolean scaleDown) { + this.scaleDown = scaleDown; + } + + public ListDataServiceInstancesOverviewResponse withScaleOut(Boolean scaleOut) { + this.scaleOut = scaleOut; + return this; + } + + /** + * 是否支持扩容。 + * @return scaleOut + */ + public Boolean getScaleOut() { + return scaleOut; + } + + public void setScaleOut(Boolean scaleOut) { + this.scaleOut = scaleOut; + } + + public ListDataServiceInstancesOverviewResponse withInstances(List instances) { + this.instances = instances; + return this; + } + + public ListDataServiceInstancesOverviewResponse addInstancesItem(InstanceOverviewDTO instancesItem) { + if (this.instances == null) { + this.instances = new ArrayList<>(); + } + this.instances.add(instancesItem); + return this; + } + + public ListDataServiceInstancesOverviewResponse 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; + } + ListDataServiceInstancesOverviewResponse that = (ListDataServiceInstancesOverviewResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.scaleDown, that.scaleDown) + && Objects.equals(this.scaleOut, that.scaleOut) && Objects.equals(this.instances, that.instances); + } + + @Override + public int hashCode() { + return Objects.hash(total, scaleDown, scaleOut, instances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDataServiceInstancesOverviewResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" scaleDown: ").append(toIndentedString(scaleDown)).append("\n"); + sb.append(" scaleOut: ").append(toIndentedString(scaleOut)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceMarketApisRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceMarketApisRequest.java new file mode 100644 index 0000000000..4e05f8a89b --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceMarketApisRequest.java @@ -0,0 +1,204 @@ +package com.huaweicloud.sdk.dataartsstudio.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; +import java.util.function.Consumer; + +/** + * Request Object + */ +public class ListDataServiceMarketApisRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + */ + public static final class DlmTypeEnum { + + /** + * Enum SHARED for value: "SHARED" + */ + public static final DlmTypeEnum SHARED = new DlmTypeEnum("SHARED"); + + /** + * Enum EXCLUSIVE for value: "EXCLUSIVE" + */ + public static final DlmTypeEnum EXCLUSIVE = new DlmTypeEnum("EXCLUSIVE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("SHARED", SHARED); + map.put("EXCLUSIVE", EXCLUSIVE); + return Collections.unmodifiableMap(map); + } + + private String value; + + DlmTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DlmTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DlmTypeEnum(value)); + } + + public static DlmTypeEnum 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 DlmTypeEnum) { + return this.value.equals(((DlmTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Dlm-Type") + + private DlmTypeEnum dlmType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private MallParaDTO body; + + public ListDataServiceMarketApisRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public ListDataServiceMarketApisRequest withDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + return this; + } + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + * @return dlmType + */ + public DlmTypeEnum getDlmType() { + return dlmType; + } + + public void setDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + } + + public ListDataServiceMarketApisRequest withBody(MallParaDTO body) { + this.body = body; + return this; + } + + public ListDataServiceMarketApisRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new MallParaDTO(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public MallParaDTO getBody() { + return body; + } + + public void setBody(MallParaDTO 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; + } + ListDataServiceMarketApisRequest that = (ListDataServiceMarketApisRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.dlmType, that.dlmType) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, dlmType, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDataServiceMarketApisRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" dlmType: ").append(toIndentedString(dlmType)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceMarketApisResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceMarketApisResponse.java new file mode 100644 index 0000000000..48b15b8cd9 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDataServiceMarketApisResponse.java @@ -0,0 +1,115 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ListDataServiceMarketApisResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "apis") + + private List apis = null; + + public ListDataServiceMarketApisResponse withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * API总条数。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListDataServiceMarketApisResponse withApis(List apis) { + this.apis = apis; + return this; + } + + public ListDataServiceMarketApisResponse addApisItem(AdvancedMallApiDTO apisItem) { + if (this.apis == null) { + this.apis = new ArrayList<>(); + } + this.apis.add(apisItem); + return this; + } + + public ListDataServiceMarketApisResponse withApis(Consumer> apisSetter) { + if (this.apis == null) { + this.apis = new ArrayList<>(); + } + apisSetter.accept(this.apis); + return this; + } + + /** + * API列表。 + * @return apis + */ + public List getApis() { + return apis; + } + + public void setApis(List apis) { + this.apis = apis; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDataServiceMarketApisResponse that = (ListDataServiceMarketApisResponse) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.apis, that.apis); + } + + @Override + public int hashCode() { + return Objects.hash(total, apis); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDataServiceMarketApisResponse {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" apis: ").append(toIndentedString(apis)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDerivativeIndexesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDerivativeIndexesRequest.java index 74df5956c7..b7a1f99713 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDerivativeIndexesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDerivativeIndexesRequest.java @@ -41,7 +41,7 @@ public class ListDerivativeIndexesRequest { private String approver; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -142,7 +142,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "dimension_id") - private Long dimensionId; + private String dimensionId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "dimension_group") @@ -152,7 +152,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "atomic_index_id") - private Long atomicIndexId; + private String atomicIndexId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "all_metrics") @@ -167,7 +167,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "begin_time") @@ -282,7 +282,7 @@ public ListDerivativeIndexesRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -293,20 +293,20 @@ public void setStatus(StatusEnum status) { this.status = status; } - public ListDerivativeIndexesRequest withDimensionId(Long dimensionId) { + public ListDerivativeIndexesRequest withDimensionId(String dimensionId) { this.dimensionId = dimensionId; return this; } /** - * 依据维度ID查维度属性。 + * 依据维度ID查维度属性,填写String类型替代Long类型。 * @return dimensionId */ - public Long getDimensionId() { + public String getDimensionId() { return dimensionId; } - public void setDimensionId(Long dimensionId) { + public void setDimensionId(String dimensionId) { this.dimensionId = dimensionId; } @@ -327,20 +327,20 @@ public void setDimensionGroup(String dimensionGroup) { this.dimensionGroup = dimensionGroup; } - public ListDerivativeIndexesRequest withAtomicIndexId(Long atomicIndexId) { + public ListDerivativeIndexesRequest withAtomicIndexId(String atomicIndexId) { this.atomicIndexId = atomicIndexId; return this; } /** - * 依据原子指标ID查维度属性。 + * 依据原子指标ID查维度属性,填写String类型替代Long类型。 * @return atomicIndexId */ - public Long getAtomicIndexId() { + public String getAtomicIndexId() { return atomicIndexId; } - public void setAtomicIndexId(Long atomicIndexId) { + public void setAtomicIndexId(String atomicIndexId) { this.atomicIndexId = atomicIndexId; } @@ -378,20 +378,20 @@ public void setDwType(String dwType) { this.dwType = dwType; } - public ListDerivativeIndexesRequest withL3Id(Long l3Id) { + public ListDerivativeIndexesRequest withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象l3的ID。 + * 业务对象l3的ID,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -435,7 +435,7 @@ public ListDerivativeIndexesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsRequest.java index 12a4d7ce49..35930b58dc 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsRequest.java @@ -23,7 +23,7 @@ public class ListDimensionGroupsRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table_id") - private Long tableId; + private String tableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_type") @@ -76,20 +76,20 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } - public ListDimensionGroupsRequest withTableId(Long tableId) { + public ListDimensionGroupsRequest withTableId(String tableId) { this.tableId = tableId; return this; } /** - * 关联表的ID。 + * 关联表的ID,填写String类型替代Long类型。 * @return tableId */ - public Long getTableId() { + public String getTableId() { return tableId; } - public void setTableId(Long tableId) { + public void setTableId(String tableId) { this.tableId = tableId; } @@ -99,7 +99,7 @@ public ListDimensionGroupsRequest withBizType(String bizType) { } /** - * 按业务类型查询。 + * 按业务类型查询,可选业务类型有:ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、TIME_CONDITION(时间限定)、DIMENSION_LOGIC_TABLE(维度表)、FACT_LOGIC_TABLE(事实表)、AGGREGATION_LOGIC_TABLE(汇总表)、TABLE_MODEL(关系建模表)、CODE_TABLE(码表)、STANDARD_ELEMENT)(数据标准)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)、SUBJECT(主题)、ATOMIC_METRIC(原子指标(新))、DERIVED_METRIC(衍生指标(新))、COMPOSITE_METRIC(复合指标(新))。 * @return bizType */ public String getBizType() { @@ -116,7 +116,7 @@ public ListDimensionGroupsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResponse.java index 521707b0ec..b19e2715d3 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListDimensionGroupsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListDimensionGroupsResultData data; - public ListDimensionGroupsResponse withData(Object data) { + public ListDimensionGroupsResponse withData(ListDimensionGroupsResultData data) { this.data = data; return this; } + public ListDimensionGroupsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListDimensionGroupsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListDimensionGroupsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListDimensionGroupsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResultData.java new file mode 100644 index 0000000000..c034acc847 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListDimensionGroupsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListDimensionGroupsResultDataValue value; + + public ListDimensionGroupsResultData withValue(ListDimensionGroupsResultDataValue value) { + this.value = value; + return this; + } + + public ListDimensionGroupsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListDimensionGroupsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListDimensionGroupsResultDataValue getValue() { + return value; + } + + public void setValue(ListDimensionGroupsResultDataValue 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; + } + ListDimensionGroupsResultData that = (ListDimensionGroupsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDimensionGroupsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResultDataValue.java new file mode 100644 index 0000000000..9104b3d8ad --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionGroupsResultDataValue.java @@ -0,0 +1,125 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListDimensionGroupsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "main_table") + + private FactLogicTableVO mainTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_tables") + + private List dimensionTables = null; + + public ListDimensionGroupsResultDataValue withMainTable(FactLogicTableVO mainTable) { + this.mainTable = mainTable; + return this; + } + + public ListDimensionGroupsResultDataValue withMainTable(Consumer mainTableSetter) { + if (this.mainTable == null) { + this.mainTable = new FactLogicTableVO(); + mainTableSetter.accept(this.mainTable); + } + + return this; + } + + /** + * Get mainTable + * @return mainTable + */ + public FactLogicTableVO getMainTable() { + return mainTable; + } + + public void setMainTable(FactLogicTableVO mainTable) { + this.mainTable = mainTable; + } + + public ListDimensionGroupsResultDataValue withDimensionTables(List dimensionTables) { + this.dimensionTables = dimensionTables; + return this; + } + + public ListDimensionGroupsResultDataValue addDimensionTablesItem(DimensionLogicTableVO dimensionTablesItem) { + if (this.dimensionTables == null) { + this.dimensionTables = new ArrayList<>(); + } + this.dimensionTables.add(dimensionTablesItem); + return this; + } + + public ListDimensionGroupsResultDataValue withDimensionTables( + Consumer> dimensionTablesSetter) { + if (this.dimensionTables == null) { + this.dimensionTables = new ArrayList<>(); + } + dimensionTablesSetter.accept(this.dimensionTables); + return this; + } + + /** + * 维度。 + * @return dimensionTables + */ + public List getDimensionTables() { + return dimensionTables; + } + + public void setDimensionTables(List dimensionTables) { + this.dimensionTables = dimensionTables; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDimensionGroupsResultDataValue that = (ListDimensionGroupsResultDataValue) obj; + return Objects.equals(this.mainTable, that.mainTable) + && Objects.equals(this.dimensionTables, that.dimensionTables); + } + + @Override + public int hashCode() { + return Objects.hash(mainTable, dimensionTables); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDimensionGroupsResultDataValue {\n"); + sb.append(" mainTable: ").append(toIndentedString(mainTable)).append("\n"); + sb.append(" dimensionTables: ").append(toIndentedString(dimensionTables)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesRequest.java index f73b55c724..0c2c611205 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesRequest.java @@ -49,7 +49,7 @@ public class ListDimensionLogicTablesRequest { private String owner; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -148,7 +148,7 @@ public int hashCode() { private StatusEnum status; /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 */ public static final class SyncStatusEnum { @@ -360,12 +360,12 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l2_id") - private Long l2Id; + private String l2Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "dimension_id") - private Long dimensionId; + private String dimensionId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "begin_time") @@ -393,7 +393,7 @@ public int hashCode() { private String bizCatalogId; /** - * 维度类型。COMMON(普通维度)、LOOKUP(码表维度)、HIERARCHIES(层级维度)。 + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 */ public static final class DimensionTypeEnum { @@ -583,7 +583,7 @@ public ListDimensionLogicTablesRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -600,7 +600,7 @@ public ListDimensionLogicTablesRequest withSyncStatus(SyncStatusEnum syncStatus) } /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 * @return syncStatus */ public SyncStatusEnum getSyncStatus() { @@ -633,7 +633,7 @@ public ListDimensionLogicTablesRequest withSyncKey(Consumer> s } /** - * 同步任务类型枚举。BUSINESS_ASSET(同步业务资产)、DATA_QUALITY(创建质量作业)、TECHNICAL_ASSET(同步技术资产)、META_DATA_LINK(资产关联)、PHYSICAL_TABLE(创建表(生产环境))、DEV_PHYSICAL_TABLE(创建表(开发环境))、DLF_TASK(创建数据开发作业)、MATERIALIZATION(数值落库(码表))、PUBLISH_TO_DLM(发布数据服务API)、SUMMARY_STATUS(整体状态)。 + * 同步任务类型枚举。 枚举值: - BUSINESS_ASSET: 同步业务资产 - DATA_QUALITY: 创建质量作业 - TECHNICAL_ASSET: 同步技术资产 - META_DATA_LINK: 资产关联 - PHYSICAL_TABLE: 创建表(生产环境) - DEV_PHYSICAL_TABLE: 创建表(开发环境) - DLF_TASK: 创建数据开发作业 - MATERIALIZATION: 数值落库(码表) - PUBLISH_TO_DLM: 发布数据服务API - SUMMARY_STATUS: 整体状态 * @return syncKey */ public List getSyncKey() { @@ -644,37 +644,37 @@ public void setSyncKey(List syncKey) { this.syncKey = syncKey; } - public ListDimensionLogicTablesRequest withL2Id(Long l2Id) { + public ListDimensionLogicTablesRequest withL2Id(String l2Id) { this.l2Id = l2Id; return this; } /** - * 主题域l2的ID。 + * 主题域l2的ID,填写String类型替代Long类型。 * @return l2Id */ - public Long getL2Id() { + public String getL2Id() { return l2Id; } - public void setL2Id(Long l2Id) { + public void setL2Id(String l2Id) { this.l2Id = l2Id; } - public ListDimensionLogicTablesRequest withDimensionId(Long dimensionId) { + public ListDimensionLogicTablesRequest withDimensionId(String dimensionId) { this.dimensionId = dimensionId; return this; } /** - * 依据维度ID查维度属性。 + * 依据维度ID查维度属性,填写String类型替代Long类型。 * @return dimensionId */ - public Long getDimensionId() { + public String getDimensionId() { return dimensionId; } - public void setDimensionId(Long dimensionId) { + public void setDimensionId(String dimensionId) { this.dimensionId = dimensionId; } @@ -718,7 +718,7 @@ public ListDimensionLogicTablesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ @@ -770,7 +770,7 @@ public ListDimensionLogicTablesRequest withDimensionType(DimensionTypeEnum dimen } /** - * 维度类型。COMMON(普通维度)、LOOKUP(码表维度)、HIERARCHIES(层级维度)。 + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 * @return dimensionType */ public DimensionTypeEnum getDimensionType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResponse.java index 4b82f79606..7a8ec768b2 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListDimensionLogicTablesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListDimensionLogicTablesResultData data; - public ListDimensionLogicTablesResponse withData(Object data) { + public ListDimensionLogicTablesResponse withData(ListDimensionLogicTablesResultData data) { this.data = data; return this; } + public ListDimensionLogicTablesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListDimensionLogicTablesResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListDimensionLogicTablesResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListDimensionLogicTablesResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResultData.java new file mode 100644 index 0000000000..c9aff687a2 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListDimensionLogicTablesResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListDimensionLogicTablesResultDataValue value; + + public ListDimensionLogicTablesResultData withValue(ListDimensionLogicTablesResultDataValue value) { + this.value = value; + return this; + } + + public ListDimensionLogicTablesResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListDimensionLogicTablesResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListDimensionLogicTablesResultDataValue getValue() { + return value; + } + + public void setValue(ListDimensionLogicTablesResultDataValue 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; + } + ListDimensionLogicTablesResultData that = (ListDimensionLogicTablesResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDimensionLogicTablesResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResultDataValue.java new file mode 100644 index 0000000000..5070771130 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionLogicTablesResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListDimensionLogicTablesResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListDimensionLogicTablesResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListDimensionLogicTablesResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListDimensionLogicTablesResultDataValue addRecordsItem(DimensionLogicTableVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListDimensionLogicTablesResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * DimensionVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDimensionLogicTablesResultDataValue that = (ListDimensionLogicTablesResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDimensionLogicTablesResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsRequest.java index 43dd125a5c..b0a6e27c65 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsRequest.java @@ -44,7 +44,7 @@ public class ListDimensionsRequest { private String approver; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -145,12 +145,12 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l2_id") - private Long l2Id; + private String l2Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "derivative_ids") - private List derivativeIds = null; + private List derivativeIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "begin_time") @@ -165,10 +165,10 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fact_logic_id") - private Long factLogicId; + private String factLogicId; /** - * 维度类型。COMMON(普通维度)、LOOKUP(码表维度)、HIERARCHIES(层级维度)。 + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 */ public static final class DimensionTypeEnum { @@ -356,7 +356,7 @@ public ListDimensionsRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -367,29 +367,29 @@ public void setStatus(StatusEnum status) { this.status = status; } - public ListDimensionsRequest withL2Id(Long l2Id) { + public ListDimensionsRequest withL2Id(String l2Id) { this.l2Id = l2Id; return this; } /** - * 主题域l2的ID。 + * 主题域l2的ID,填写String类型替代Long类型。 * @return l2Id */ - public Long getL2Id() { + public String getL2Id() { return l2Id; } - public void setL2Id(Long l2Id) { + public void setL2Id(String l2Id) { this.l2Id = l2Id; } - public ListDimensionsRequest withDerivativeIds(List derivativeIds) { + public ListDimensionsRequest withDerivativeIds(List derivativeIds) { this.derivativeIds = derivativeIds; return this; } - public ListDimensionsRequest addDerivativeIdsItem(Long derivativeIdsItem) { + public ListDimensionsRequest addDerivativeIdsItem(String derivativeIdsItem) { if (this.derivativeIds == null) { this.derivativeIds = new ArrayList<>(); } @@ -397,7 +397,7 @@ public ListDimensionsRequest addDerivativeIdsItem(Long derivativeIdsItem) { return this; } - public ListDimensionsRequest withDerivativeIds(Consumer> derivativeIdsSetter) { + public ListDimensionsRequest withDerivativeIds(Consumer> derivativeIdsSetter) { if (this.derivativeIds == null) { this.derivativeIds = new ArrayList<>(); } @@ -406,14 +406,14 @@ public ListDimensionsRequest withDerivativeIds(Consumer> derivativeId } /** - * 依据复合指标ID列表查维度。 + * 依据复合指标ID列表查维度,填写String类型替代Long类型。 * @return derivativeIds */ - public List getDerivativeIds() { + public List getDerivativeIds() { return derivativeIds; } - public void setDerivativeIds(List derivativeIds) { + public void setDerivativeIds(List derivativeIds) { this.derivativeIds = derivativeIds; } @@ -451,20 +451,20 @@ public void setEndTime(String endTime) { this.endTime = endTime; } - public ListDimensionsRequest withFactLogicId(Long factLogicId) { + public ListDimensionsRequest withFactLogicId(String factLogicId) { this.factLogicId = factLogicId; return this; } /** - * 事实表ID。 + * 事实表ID,填写String类型替代Long类型。 * @return factLogicId */ - public Long getFactLogicId() { + public String getFactLogicId() { return factLogicId; } - public void setFactLogicId(Long factLogicId) { + public void setFactLogicId(String factLogicId) { this.factLogicId = factLogicId; } @@ -474,7 +474,7 @@ public ListDimensionsRequest withDimensionType(DimensionTypeEnum dimensionType) } /** - * 维度类型。COMMON(普通维度)、LOOKUP(码表维度)、HIERARCHIES(层级维度)。 + * 维度类型。 枚举值: - COMMON: 普通维度 - LOOKUP: 码表维度 - HIERARCHIES: 层级维度 * @return dimensionType */ public DimensionTypeEnum getDimensionType() { @@ -491,7 +491,7 @@ public ListDimensionsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResponse.java index 0291d46863..9e46d7aa51 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListDimensionsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListDimensionsResultData data; - public ListDimensionsResponse withData(Object data) { + public ListDimensionsResponse withData(ListDimensionsResultData data) { this.data = data; return this; } + public ListDimensionsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListDimensionsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListDimensionsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListDimensionsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResultData.java new file mode 100644 index 0000000000..b4f71b8075 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListDimensionsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListDimensionsResultDataValue value; + + public ListDimensionsResultData withValue(ListDimensionsResultDataValue value) { + this.value = value; + return this; + } + + public ListDimensionsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListDimensionsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListDimensionsResultDataValue getValue() { + return value; + } + + public void setValue(ListDimensionsResultDataValue 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; + } + ListDimensionsResultData that = (ListDimensionsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDimensionsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResultDataValue.java new file mode 100644 index 0000000000..e63a48fac1 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDimensionsResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListDimensionsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListDimensionsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListDimensionsResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListDimensionsResultDataValue addRecordsItem(DimensionVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListDimensionsResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * DimensionVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDimensionsResultDataValue that = (ListDimensionsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDimensionsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesRequest.java index a679f45fe9..0a3e7d1cb2 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesRequest.java @@ -36,7 +36,7 @@ public class ListDirectoriesRequest { private Integer offset; /** - * 获取该目录下的数据,如果有子目录,获取所有子目录的数据。CODE(码表目录)、STANDARD_ELEMENT(数据标准目录)。 + * 获取该目录下的数据,如果有子目录,获取所有子目录的数据。 枚举值: - CODE: 码表目录 - STANDARD_ELEMENT: 数据标准目录 */ public static final class TypeEnum { @@ -152,7 +152,7 @@ public ListDirectoriesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ @@ -187,7 +187,7 @@ public ListDirectoriesRequest withType(TypeEnum type) { } /** - * 获取该目录下的数据,如果有子目录,获取所有子目录的数据。CODE(码表目录)、STANDARD_ELEMENT(数据标准目录)。 + * 获取该目录下的数据,如果有子目录,获取所有子目录的数据。 枚举值: - CODE: 码表目录 - STANDARD_ELEMENT: 数据标准目录 * @return type */ public TypeEnum getType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesResponse.java index 92958466ec..34da4122ff 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListDirectoriesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListDirectoriesResultData data; - public ListDirectoriesResponse withData(Object data) { + public ListDirectoriesResponse withData(ListDirectoriesResultData data) { this.data = data; return this; } + public ListDirectoriesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListDirectoriesResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListDirectoriesResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListDirectoriesResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesResultData.java new file mode 100644 index 0000000000..50a33e0c2a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListDirectoriesResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListDirectoriesResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListDirectoriesResultData withValue(List value) { + this.value = value; + return this; + } + + public ListDirectoriesResultData addValueItem(DirectoryVO valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListDirectoriesResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * value,统一的返回结果的外层数据结构。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + ListDirectoriesResultData that = (ListDirectoriesResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDirectoriesResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesRequest.java index cbaa36cd9a..6d3c9565c4 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesRequest.java @@ -49,7 +49,7 @@ public class ListFactLogicTablesRequest { private String owner; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -148,7 +148,7 @@ public int hashCode() { private StatusEnum status; /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 */ public static final class SyncStatusEnum { @@ -360,7 +360,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "begin_time") @@ -497,7 +497,7 @@ public ListFactLogicTablesRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -514,7 +514,7 @@ public ListFactLogicTablesRequest withSyncStatus(SyncStatusEnum syncStatus) { } /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 * @return syncStatus */ public SyncStatusEnum getSyncStatus() { @@ -547,7 +547,7 @@ public ListFactLogicTablesRequest withSyncKey(Consumer> syncKe } /** - * 同步任务类型枚举。BUSINESS_ASSET(同步业务资产)、DATA_QUALITY(创建质量作业)、TECHNICAL_ASSET(同步技术资产)、META_DATA_LINK(资产关联)、PHYSICAL_TABLE(创建表(生产环境))、DEV_PHYSICAL_TABLE(创建表(开发环境))、DLF_TASK(创建数据开发作业)、MATERIALIZATION(数值落库(码表))、PUBLISH_TO_DLM(发布数据服务API)、SUMMARY_STATUS(整体状态)。 + * 同步任务类型枚举。 枚举值: - BUSINESS_ASSET: 同步业务资产 - DATA_QUALITY: 创建质量作业 - TECHNICAL_ASSET: 同步技术资产 - META_DATA_LINK: 资产关联 - PHYSICAL_TABLE: 创建表(生产环境) - DEV_PHYSICAL_TABLE: 创建表(开发环境) - DLF_TASK: 创建数据开发作业 - MATERIALIZATION: 数值落库(码表) - PUBLISH_TO_DLM: 发布数据服务API - SUMMARY_STATUS: 整体状态 * @return syncKey */ public List getSyncKey() { @@ -558,20 +558,20 @@ public void setSyncKey(List syncKey) { this.syncKey = syncKey; } - public ListFactLogicTablesRequest withL3Id(Long l3Id) { + public ListFactLogicTablesRequest withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象l3的ID。 + * 业务对象l3的ID,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -615,7 +615,7 @@ public ListFactLogicTablesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResponse.java index 10eca69fd2..e9c3ab0476 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListFactLogicTablesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListFactLogicTablesResultData data; - public ListFactLogicTablesResponse withData(Object data) { + public ListFactLogicTablesResponse withData(ListFactLogicTablesResultData data) { this.data = data; return this; } + public ListFactLogicTablesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListFactLogicTablesResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListFactLogicTablesResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListFactLogicTablesResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResultData.java new file mode 100644 index 0000000000..8fceecf4b8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListFactLogicTablesResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListFactLogicTablesResultDataValue value; + + public ListFactLogicTablesResultData withValue(ListFactLogicTablesResultDataValue value) { + this.value = value; + return this; + } + + public ListFactLogicTablesResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListFactLogicTablesResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListFactLogicTablesResultDataValue getValue() { + return value; + } + + public void setValue(ListFactLogicTablesResultDataValue 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; + } + ListFactLogicTablesResultData that = (ListFactLogicTablesResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFactLogicTablesResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResultDataValue.java new file mode 100644 index 0000000000..aafb2d20b2 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListFactLogicTablesResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListFactLogicTablesResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListFactLogicTablesResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListFactLogicTablesResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListFactLogicTablesResultDataValue addRecordsItem(FactLogicTableVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListFactLogicTablesResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * FactLogicTableVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListFactLogicTablesResultDataValue that = (ListFactLogicTablesResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListFactLogicTablesResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsRequest.java index 1a3dabcf0e..07dc756a7b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsRequest.java @@ -72,7 +72,7 @@ public ListMetricRelationsRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResponse.java index d184027aa9..a5330fc7eb 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListMetricRelationsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListMetricRelationsResultData data; - public ListMetricRelationsResponse withData(Object data) { + public ListMetricRelationsResponse withData(ListMetricRelationsResultData data) { this.data = data; return this; } + public ListMetricRelationsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListMetricRelationsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListMetricRelationsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListMetricRelationsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResultData.java new file mode 100644 index 0000000000..377d8a973a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListMetricRelationsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListMetricRelationsResultDataValue value; + + public ListMetricRelationsResultData withValue(ListMetricRelationsResultDataValue value) { + this.value = value; + return this; + } + + public ListMetricRelationsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListMetricRelationsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListMetricRelationsResultDataValue getValue() { + return value; + } + + public void setValue(ListMetricRelationsResultDataValue 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; + } + ListMetricRelationsResultData that = (ListMetricRelationsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListMetricRelationsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResultDataValue.java new file mode 100644 index 0000000000..660ea9a8a1 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListMetricRelationsResultDataValue.java @@ -0,0 +1,161 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListMetricRelationsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "all") + + private List all = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "links") + + private Object links; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "groups") + + private Object groups; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + public ListMetricRelationsResultDataValue withAll(List all) { + this.all = all; + return this; + } + + public ListMetricRelationsResultDataValue addAllItem(Object allItem) { + if (this.all == null) { + this.all = new ArrayList<>(); + } + this.all.add(allItem); + return this; + } + + public ListMetricRelationsResultDataValue withAll(Consumer> allSetter) { + if (this.all == null) { + this.all = new ArrayList<>(); + } + allSetter.accept(this.all); + return this; + } + + /** + * 所有的业务指标信息。 + * @return all + */ + public List getAll() { + return all; + } + + public void setAll(List all) { + this.all = all; + } + + public ListMetricRelationsResultDataValue withLinks(Object links) { + this.links = links; + return this; + } + + /** + * 指标关联。 + * @return links + */ + public Object getLinks() { + return links; + } + + public void setLinks(Object links) { + this.links = links; + } + + public ListMetricRelationsResultDataValue withGroups(Object groups) { + this.groups = groups; + return this; + } + + /** + * 分组。 + * @return groups + */ + public Object getGroups() { + return groups; + } + + public void setGroups(Object groups) { + this.groups = groups; + } + + public ListMetricRelationsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总数。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListMetricRelationsResultDataValue that = (ListMetricRelationsResultDataValue) obj; + return Objects.equals(this.all, that.all) && Objects.equals(this.links, that.links) + && Objects.equals(this.groups, that.groups) && Objects.equals(this.total, that.total); + } + + @Override + public int hashCode() { + return Objects.hash(all, links, groups, total); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListMetricRelationsResultDataValue {\n"); + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsRequest.java index b7a50d3648..be5cd58ce8 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsRequest.java @@ -160,7 +160,7 @@ public ListRelationsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResponse.java index b29213974c..a2a9a071e1 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListRelationsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListRelationsResultData data; - public ListRelationsResponse withData(Object data) { + public ListRelationsResponse withData(ListRelationsResultData data) { this.data = data; return this; } + public ListRelationsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListRelationsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListRelationsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListRelationsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResultData.java new file mode 100644 index 0000000000..3075c13fca --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListRelationsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListRelationsResultDataValue value; + + public ListRelationsResultData withValue(ListRelationsResultDataValue value) { + this.value = value; + return this; + } + + public ListRelationsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListRelationsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListRelationsResultDataValue getValue() { + return value; + } + + public void setValue(ListRelationsResultDataValue 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; + } + ListRelationsResultData that = (ListRelationsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRelationsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResultDataValue.java new file mode 100644 index 0000000000..ecaa7e5b4e --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListRelationsResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListRelationsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListRelationsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListRelationsResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListRelationsResultDataValue addRecordsItem(RelationVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListRelationsResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * RelationVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListRelationsResultDataValue that = (ListRelationsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRelationsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsRequest.java index 82c8584a8d..24eaa6844b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsRequest.java @@ -72,7 +72,7 @@ public ListSubjectLevelsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsResponse.java index 158211071c..d63afb9cf7 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsResponse.java @@ -4,8 +4,6 @@ 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; @@ -15,41 +13,34 @@ public class ListSubjectLevelsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "levels") + @JsonProperty(value = "data") - private List levels = null; + private ListSubjectLevelsResultData data; - public ListSubjectLevelsResponse withLevels(List levels) { - this.levels = levels; + public ListSubjectLevelsResponse withData(ListSubjectLevelsResultData data) { + this.data = data; return this; } - public ListSubjectLevelsResponse addLevelsItem(CatalogLevelVO levelsItem) { - if (this.levels == null) { - this.levels = new ArrayList<>(); + public ListSubjectLevelsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListSubjectLevelsResultData(); + dataSetter.accept(this.data); } - this.levels.add(levelsItem); - return this; - } - public ListSubjectLevelsResponse withLevels(Consumer> levelsSetter) { - if (this.levels == null) { - this.levels = new ArrayList<>(); - } - levelsSetter.accept(this.levels); return this; } /** - * 主题层级信息。 - * @return levels + * Get data + * @return data */ - public List getLevels() { - return levels; + public ListSubjectLevelsResultData getData() { + return data; } - public void setLevels(List levels) { - this.levels = levels; + public void setData(ListSubjectLevelsResultData data) { + this.data = data; } @Override @@ -61,19 +52,19 @@ public boolean equals(java.lang.Object obj) { return false; } ListSubjectLevelsResponse that = (ListSubjectLevelsResponse) obj; - return Objects.equals(this.levels, that.levels); + return Objects.equals(this.data, that.data); } @Override public int hashCode() { - return Objects.hash(levels); + return Objects.hash(data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ListSubjectLevelsResponse {\n"); - sb.append(" levels: ").append(toIndentedString(levels)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsResultData.java new file mode 100644 index 0000000000..b8ccdb2952 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListSubjectLevelsResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListSubjectLevelsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ListSubjectLevelsResultData withValue(List value) { + this.value = value; + return this; + } + + public ListSubjectLevelsResultData addValueItem(CatalogLevelVO valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ListSubjectLevelsResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * value,统一的返回结果的外层数据结构。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + ListSubjectLevelsResultData that = (ListSubjectLevelsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSubjectLevelsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsRequest.java index 1477759aea..1aa40b6ce8 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsRequest.java @@ -36,7 +36,7 @@ public class ListTableModelRelationsRequest { private String tableIds; /** - * 表类型。TABLE_MODEL(关系建模:逻辑实体/物理表)、FACT_LOGIC_TABLE(事实表)。 + * 表类型。 枚举值: - TABLE_MODEL: 关系建模:逻辑实体/物理表 - FACT_LOGIC_TABLE: 事实表 */ public static final class BizTypeEnum { @@ -162,7 +162,7 @@ public ListTableModelRelationsRequest withModelId(String modelId) { } /** - * 所属关系建模的模型ID。 + * 所属关系建模的模型ID,填写String类型替代Long类型。 * @return modelId */ public String getModelId() { @@ -179,7 +179,7 @@ public ListTableModelRelationsRequest withTableIds(String tableIds) { } /** - * 表模型ids + * 表模型ids,填写String类型替代Long类型。 * @return tableIds */ public String getTableIds() { @@ -196,7 +196,7 @@ public ListTableModelRelationsRequest withBizType(BizTypeEnum bizType) { } /** - * 表类型。TABLE_MODEL(关系建模:逻辑实体/物理表)、FACT_LOGIC_TABLE(事实表)。 + * 表类型。 枚举值: - TABLE_MODEL: 关系建模:逻辑实体/物理表 - FACT_LOGIC_TABLE: 事实表 * @return bizType */ public BizTypeEnum getBizType() { @@ -213,7 +213,7 @@ public ListTableModelRelationsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResponse.java index 633c183415..602b991e5f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListTableModelRelationsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListTableModelRelationsResultData data; - public ListTableModelRelationsResponse withData(Object data) { + public ListTableModelRelationsResponse withData(ListTableModelRelationsResultData data) { this.data = data; return this; } + public ListTableModelRelationsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListTableModelRelationsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListTableModelRelationsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListTableModelRelationsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultData.java new file mode 100644 index 0000000000..6e3544fc2a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListTableModelRelationsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListTableModelRelationsResultDataValue value; + + public ListTableModelRelationsResultData withValue(ListTableModelRelationsResultDataValue value) { + this.value = value; + return this; + } + + public ListTableModelRelationsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListTableModelRelationsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListTableModelRelationsResultDataValue getValue() { + return value; + } + + public void setValue(ListTableModelRelationsResultDataValue 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; + } + ListTableModelRelationsResultData that = (ListTableModelRelationsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTableModelRelationsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultDataValue.java new file mode 100644 index 0000000000..a30836a639 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultDataValue.java @@ -0,0 +1,117 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListTableModelRelationsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListTableModelRelationsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListTableModelRelationsResultDataValue withRecords( + List records) { + this.records = records; + return this; + } + + public ListTableModelRelationsResultDataValue addRecordsItem( + ListTableModelRelationsResultDataValueRecords recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListTableModelRelationsResultDataValue withRecords( + Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * RelationVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTableModelRelationsResultDataValue that = (ListTableModelRelationsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTableModelRelationsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultDataValueRecords.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultDataValueRecords.java new file mode 100644 index 0000000000..252df934a4 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelRelationsResultDataValueRecords.java @@ -0,0 +1,170 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ListTableModelRelationsResultDataValueRecords { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tables") + + private List tables = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "inheritances") + + private List inheritances = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "relations") + + private List relations = null; + + public ListTableModelRelationsResultDataValueRecords withTables(List tables) { + this.tables = tables; + return this; + } + + public ListTableModelRelationsResultDataValueRecords addTablesItem(TableModelVO tablesItem) { + if (this.tables == null) { + this.tables = new ArrayList<>(); + } + this.tables.add(tablesItem); + return this; + } + + public ListTableModelRelationsResultDataValueRecords withTables(Consumer> tablesSetter) { + if (this.tables == null) { + this.tables = new ArrayList<>(); + } + tablesSetter.accept(this.tables); + return this; + } + + /** + * TableModelVO信息。 + * @return tables + */ + public List getTables() { + return tables; + } + + public void setTables(List tables) { + this.tables = tables; + } + + public ListTableModelRelationsResultDataValueRecords withInheritances(List inheritances) { + this.inheritances = inheritances; + return this; + } + + public ListTableModelRelationsResultDataValueRecords addInheritancesItem(Object inheritancesItem) { + if (this.inheritances == null) { + this.inheritances = new ArrayList<>(); + } + this.inheritances.add(inheritancesItem); + return this; + } + + public ListTableModelRelationsResultDataValueRecords withInheritances(Consumer> inheritancesSetter) { + if (this.inheritances == null) { + this.inheritances = new ArrayList<>(); + } + inheritancesSetter.accept(this.inheritances); + return this; + } + + /** + * 层级信息信息。 + * @return inheritances + */ + public List getInheritances() { + return inheritances; + } + + public void setInheritances(List inheritances) { + this.inheritances = inheritances; + } + + public ListTableModelRelationsResultDataValueRecords withRelations(List relations) { + this.relations = relations; + return this; + } + + public ListTableModelRelationsResultDataValueRecords addRelationsItem(RelationVO relationsItem) { + if (this.relations == null) { + this.relations = new ArrayList<>(); + } + this.relations.add(relationsItem); + return this; + } + + public ListTableModelRelationsResultDataValueRecords withRelations(Consumer> relationsSetter) { + if (this.relations == null) { + this.relations = new ArrayList<>(); + } + relationsSetter.accept(this.relations); + return this; + } + + /** + * RelationVO信息。 + * @return relations + */ + public List getRelations() { + return relations; + } + + public void setRelations(List relations) { + this.relations = relations; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTableModelRelationsResultDataValueRecords that = (ListTableModelRelationsResultDataValueRecords) obj; + return Objects.equals(this.tables, that.tables) && Objects.equals(this.inheritances, that.inheritances) + && Objects.equals(this.relations, that.relations); + } + + @Override + public int hashCode() { + return Objects.hash(tables, inheritances, relations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTableModelRelationsResultDataValueRecords {\n"); + sb.append(" tables: ").append(toIndentedString(tables)).append("\n"); + sb.append(" inheritances: ").append(toIndentedString(inheritances)).append("\n"); + sb.append(" relations: ").append(toIndentedString(relations)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsRequest.java index 9cd849ab3d..6fec453b84 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsRequest.java @@ -44,7 +44,7 @@ public class ListTableModelsRequest { private String approver; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -143,7 +143,7 @@ public int hashCode() { private StatusEnum status; /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 */ public static final class SyncStatusEnum { @@ -475,7 +475,7 @@ public ListTableModelsRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -492,7 +492,7 @@ public ListTableModelsRequest withSyncStatus(SyncStatusEnum syncStatus) { } /** - * 同步状态枚举。RUNNING(同步中)、NO_NEED(未同步)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)。 + * 同步状态枚举。 枚举值: - RUNNING: 同步中 - NO_NEED: 未同步 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 * @return syncStatus */ public SyncStatusEnum getSyncStatus() { @@ -525,7 +525,7 @@ public ListTableModelsRequest withSyncKey(Consumer> syncKeySet } /** - * 同步任务类型枚举。BUSINESS_ASSET(同步业务资产)、DATA_QUALITY(创建质量作业)、TECHNICAL_ASSET(同步技术资产)、META_DATA_LINK(资产关联)、PHYSICAL_TABLE(创建表(生产环境))、DEV_PHYSICAL_TABLE(创建表(开发环境))、DLF_TASK(创建数据开发作业)、MATERIALIZATION(数值落库(码表))、PUBLISH_TO_DLM(发布数据服务API)、SUMMARY_STATUS(整体状态)。 + * 同步任务类型枚举。 枚举值: - BUSINESS_ASSET: 同步业务资产 - DATA_QUALITY: 创建质量作业 - TECHNICAL_ASSET: 同步技术资产 - META_DATA_LINK: 资产关联 - PHYSICAL_TABLE: 创建表(生产环境) - DEV_PHYSICAL_TABLE: 创建表(开发环境) - DLF_TASK: 创建数据开发作业 - MATERIALIZATION: 数值落库(码表) - PUBLISH_TO_DLM: 发布数据服务API - SUMMARY_STATUS: 整体状态 * @return syncKey */ public List getSyncKey() { @@ -576,7 +576,7 @@ public ListTableModelsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResponse.java index 5bbfbc23b9..024ae6857b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListTableModelsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListTableModelsResultData data; - public ListTableModelsResponse withData(Object data) { + public ListTableModelsResponse withData(ListTableModelsResultData data) { this.data = data; return this; } + public ListTableModelsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListTableModelsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListTableModelsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListTableModelsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResultData.java new file mode 100644 index 0000000000..78211fb7b7 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListTableModelsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListTableModelsResultDataValue value; + + public ListTableModelsResultData withValue(ListTableModelsResultDataValue value) { + this.value = value; + return this; + } + + public ListTableModelsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListTableModelsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListTableModelsResultDataValue getValue() { + return value; + } + + public void setValue(ListTableModelsResultDataValue 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; + } + ListTableModelsResultData that = (ListTableModelsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTableModelsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResultDataValue.java new file mode 100644 index 0000000000..12a4521eda --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListTableModelsResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListTableModelsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListTableModelsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListTableModelsResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListTableModelsResultDataValue addRecordsItem(TableModelVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListTableModelsResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * TableModelVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListTableModelsResultDataValue that = (ListTableModelsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTableModelsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesRequest.java index 99ea0855fa..1e21f652f4 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesRequest.java @@ -26,7 +26,7 @@ public class ListWorkspacesRequest { private String xProjectId; /** - * 模型工作区类型枚举。THIRD_NF(关系建模)、DIMENSION(维度建模)。 + * 模型工作区类型枚举。 枚举值: - THIRD_NF: 关系建模 - DIMENSION: 维度建模 */ public static final class WorkspaceTypeEnum { @@ -157,7 +157,7 @@ public ListWorkspacesRequest withWorkspaceType(WorkspaceTypeEnum workspaceType) } /** - * 模型工作区类型枚举。THIRD_NF(关系建模)、DIMENSION(维度建模)。 + * 模型工作区类型枚举。 枚举值: - THIRD_NF: 关系建模 - DIMENSION: 维度建模 * @return workspaceType */ public WorkspaceTypeEnum getWorkspaceType() { @@ -174,7 +174,7 @@ public ListWorkspacesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResponse.java index 2a8153efad..1bbd4b341e 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ListWorkspacesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ListWorkspacesResultData data; - public ListWorkspacesResponse withData(Object data) { + public ListWorkspacesResponse withData(ListWorkspacesResultData data) { this.data = data; return this; } + public ListWorkspacesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ListWorkspacesResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ListWorkspacesResultData getData() { return data; } - public void setData(Object data) { + public void setData(ListWorkspacesResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResultData.java new file mode 100644 index 0000000000..f5125314b8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ListWorkspacesResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ListWorkspacesResultDataValue value; + + public ListWorkspacesResultData withValue(ListWorkspacesResultDataValue value) { + this.value = value; + return this; + } + + public ListWorkspacesResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ListWorkspacesResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ListWorkspacesResultDataValue getValue() { + return value; + } + + public void setValue(ListWorkspacesResultDataValue 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; + } + ListWorkspacesResultData that = (ListWorkspacesResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWorkspacesResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResultDataValue.java new file mode 100644 index 0000000000..1bd790e03b --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ListWorkspacesResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class ListWorkspacesResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public ListWorkspacesResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListWorkspacesResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public ListWorkspacesResultDataValue addRecordsItem(WorkspaceVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public ListWorkspacesResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * WorkspaceVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListWorkspacesResultDataValue that = (ListWorkspacesResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWorkspacesResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MallParaDTO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MallParaDTO.java new file mode 100644 index 0000000000..49ce8a8883 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MallParaDTO.java @@ -0,0 +1,647 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * 查询服务目录API列表请求参数 + */ +public class MallParaDTO { + + /** + * 认证类型。 + */ + public static final class AuthTypeEnum { + + /** + * Enum APP for value: "APP" + */ + public static final AuthTypeEnum APP = new AuthTypeEnum("APP"); + + /** + * Enum IAM for value: "IAM" + */ + public static final AuthTypeEnum IAM = new AuthTypeEnum("IAM"); + + /** + * Enum NONE for value: "NONE" + */ + public static final AuthTypeEnum NONE = new AuthTypeEnum("NONE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("APP", APP); + map.put("IAM", IAM); + map.put("NONE", NONE); + return Collections.unmodifiableMap(map); + } + + private String value; + + AuthTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AuthTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AuthTypeEnum(value)); + } + + public static AuthTypeEnum 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 AuthTypeEnum) { + return this.value.equals(((AuthTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_type") + + private AuthTypeEnum authType; + + /** + * API可见性,WORKSPACE:工作空间可见,PROJECT: 项目可见,DOMAIN:租户可见,SPECIFIC_PROJECT:指定项目可见。 + */ + public static final class VisibilityEnum { + + /** + * Enum WORKSPACE for value: "WORKSPACE" + */ + public static final VisibilityEnum WORKSPACE = new VisibilityEnum("WORKSPACE"); + + /** + * Enum PROJECT for value: "PROJECT" + */ + public static final VisibilityEnum PROJECT = new VisibilityEnum("PROJECT"); + + /** + * Enum DOMAIN for value: "DOMAIN" + */ + public static final VisibilityEnum DOMAIN = new VisibilityEnum("DOMAIN"); + + /** + * Enum SPECIFIC_PROJECT for value: "SPECIFIC_PROJECT" + */ + public static final VisibilityEnum SPECIFIC_PROJECT = new VisibilityEnum("SPECIFIC_PROJECT"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("WORKSPACE", WORKSPACE); + map.put("PROJECT", PROJECT); + map.put("DOMAIN", DOMAIN); + map.put("SPECIFIC_PROJECT", SPECIFIC_PROJECT); + return Collections.unmodifiableMap(map); + } + + private String value; + + VisibilityEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static VisibilityEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new VisibilityEnum(value)); + } + + public static VisibilityEnum 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 VisibilityEnum) { + return this.value.equals(((VisibilityEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "visibility") + + private VisibilityEnum visibility; + + /** + * 排序参数。 + */ + public static final class MarketSortTypeEnum { + + /** + * Enum UPDATETIME for value: "updateTime" + */ + public static final MarketSortTypeEnum UPDATETIME = new MarketSortTypeEnum("updateTime"); + + /** + * Enum CREATETIME for value: "createTime" + */ + public static final MarketSortTypeEnum CREATETIME = new MarketSortTypeEnum("createTime"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("updateTime", UPDATETIME); + map.put("createTime", CREATETIME); + return Collections.unmodifiableMap(map); + } + + private String value; + + MarketSortTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static MarketSortTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new MarketSortTypeEnum(value)); + } + + public static MarketSortTypeEnum 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 MarketSortTypeEnum) { + return this.value.equals(((MarketSortTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "market_sort_type") + + private MarketSortTypeEnum marketSortType; + + /** + * 升序、降序。 + */ + public static final class AscOrDescEnum { + + /** + * Enum ASC for value: "asc" + */ + public static final AscOrDescEnum ASC = new AscOrDescEnum("asc"); + + /** + * Enum DESC for value: "desc" + */ + public static final AscOrDescEnum DESC = new AscOrDescEnum("desc"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("asc", ASC); + map.put("desc", DESC); + return Collections.unmodifiableMap(map); + } + + private String value; + + AscOrDescEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AscOrDescEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new AscOrDescEnum(value)); + } + + public static AscOrDescEnum 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 AscOrDescEnum) { + return this.value.equals(((AscOrDescEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "asc_or_desc") + + private AscOrDescEnum ascOrDesc; + + @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 = "is_owner") + + private Boolean isOwner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_authorized") + + private Boolean isAuthorized; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_update_recently") + + private Boolean isUpdateRecently; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_release_recently") + + private Boolean isReleaseRecently; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_hot_recently") + + private Boolean isHotRecently; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "success_and_failure_rate") + + private Boolean successAndFailureRate; + + public MallParaDTO withAuthType(AuthTypeEnum authType) { + this.authType = authType; + return this; + } + + /** + * 认证类型。 + * @return authType + */ + public AuthTypeEnum getAuthType() { + return authType; + } + + public void setAuthType(AuthTypeEnum authType) { + this.authType = authType; + } + + public MallParaDTO withVisibility(VisibilityEnum visibility) { + this.visibility = visibility; + return this; + } + + /** + * API可见性,WORKSPACE:工作空间可见,PROJECT: 项目可见,DOMAIN:租户可见,SPECIFIC_PROJECT:指定项目可见。 + * @return visibility + */ + public VisibilityEnum getVisibility() { + return visibility; + } + + public void setVisibility(VisibilityEnum visibility) { + this.visibility = visibility; + } + + public MallParaDTO withMarketSortType(MarketSortTypeEnum marketSortType) { + this.marketSortType = marketSortType; + return this; + } + + /** + * 排序参数。 + * @return marketSortType + */ + public MarketSortTypeEnum getMarketSortType() { + return marketSortType; + } + + public void setMarketSortType(MarketSortTypeEnum marketSortType) { + this.marketSortType = marketSortType; + } + + public MallParaDTO withAscOrDesc(AscOrDescEnum ascOrDesc) { + this.ascOrDesc = ascOrDesc; + return this; + } + + /** + * 升序、降序。 + * @return ascOrDesc + */ + public AscOrDescEnum getAscOrDesc() { + return ascOrDesc; + } + + public void setAscOrDesc(AscOrDescEnum ascOrDesc) { + this.ascOrDesc = ascOrDesc; + } + + public MallParaDTO withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询起始坐标。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public MallParaDTO withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 查询条数。 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public MallParaDTO withIsOwner(Boolean isOwner) { + this.isOwner = isOwner; + return this; + } + + /** + * 是否显示拥有者。 + * @return isOwner + */ + public Boolean getIsOwner() { + return isOwner; + } + + public void setIsOwner(Boolean isOwner) { + this.isOwner = isOwner; + } + + public MallParaDTO withIsAuthorized(Boolean isAuthorized) { + this.isAuthorized = isAuthorized; + return this; + } + + /** + * 是否显示已被授权。 + * @return isAuthorized + */ + public Boolean getIsAuthorized() { + return isAuthorized; + } + + public void setIsAuthorized(Boolean isAuthorized) { + this.isAuthorized = isAuthorized; + } + + public MallParaDTO withIsUpdateRecently(Boolean isUpdateRecently) { + this.isUpdateRecently = isUpdateRecently; + return this; + } + + /** + * 是否显示最近更新。 + * @return isUpdateRecently + */ + public Boolean getIsUpdateRecently() { + return isUpdateRecently; + } + + public void setIsUpdateRecently(Boolean isUpdateRecently) { + this.isUpdateRecently = isUpdateRecently; + } + + public MallParaDTO withIsReleaseRecently(Boolean isReleaseRecently) { + this.isReleaseRecently = isReleaseRecently; + return this; + } + + /** + * 是否显示最近发布。 + * @return isReleaseRecently + */ + public Boolean getIsReleaseRecently() { + return isReleaseRecently; + } + + public void setIsReleaseRecently(Boolean isReleaseRecently) { + this.isReleaseRecently = isReleaseRecently; + } + + public MallParaDTO withIsHotRecently(Boolean isHotRecently) { + this.isHotRecently = isHotRecently; + return this; + } + + /** + * 是否显示热销状态。 + * @return isHotRecently + */ + public Boolean getIsHotRecently() { + return isHotRecently; + } + + public void setIsHotRecently(Boolean isHotRecently) { + this.isHotRecently = isHotRecently; + } + + public MallParaDTO withSuccessAndFailureRate(Boolean successAndFailureRate) { + this.successAndFailureRate = successAndFailureRate; + return this; + } + + /** + * 是否显示7天内成功率与失败率。 + * @return successAndFailureRate + */ + public Boolean getSuccessAndFailureRate() { + return successAndFailureRate; + } + + public void setSuccessAndFailureRate(Boolean successAndFailureRate) { + this.successAndFailureRate = successAndFailureRate; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + MallParaDTO that = (MallParaDTO) obj; + return Objects.equals(this.authType, that.authType) && Objects.equals(this.visibility, that.visibility) + && Objects.equals(this.marketSortType, that.marketSortType) + && Objects.equals(this.ascOrDesc, that.ascOrDesc) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.isOwner, that.isOwner) + && Objects.equals(this.isAuthorized, that.isAuthorized) + && Objects.equals(this.isUpdateRecently, that.isUpdateRecently) + && Objects.equals(this.isReleaseRecently, that.isReleaseRecently) + && Objects.equals(this.isHotRecently, that.isHotRecently) + && Objects.equals(this.successAndFailureRate, that.successAndFailureRate); + } + + @Override + public int hashCode() { + return Objects.hash(authType, + visibility, + marketSortType, + ascOrDesc, + offset, + limit, + isOwner, + isAuthorized, + isUpdateRecently, + isReleaseRecently, + isHotRecently, + successAndFailureRate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MallParaDTO {\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" visibility: ").append(toIndentedString(visibility)).append("\n"); + sb.append(" marketSortType: ").append(toIndentedString(marketSortType)).append("\n"); + sb.append(" ascOrDesc: ").append(toIndentedString(ascOrDesc)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" isOwner: ").append(toIndentedString(isOwner)).append("\n"); + sb.append(" isAuthorized: ").append(toIndentedString(isAuthorized)).append("\n"); + sb.append(" isUpdateRecently: ").append(toIndentedString(isUpdateRecently)).append("\n"); + sb.append(" isReleaseRecently: ").append(toIndentedString(isReleaseRecently)).append("\n"); + sb.append(" isHotRecently: ").append(toIndentedString(isHotRecently)).append("\n"); + sb.append(" successAndFailureRate: ").append(toIndentedString(successAndFailureRate)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingJoinFieldVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingJoinFieldVO.java index 5ddd994be4..c241723490 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingJoinFieldVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingJoinFieldVO.java @@ -13,12 +13,12 @@ public class MappingJoinFieldVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "field1_id") - private Long field1Id; + private String field1Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "field2_id") - private Long field2Id; + private String field2Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "field1_name") @@ -30,37 +30,37 @@ public class MappingJoinFieldVO { private String field2Name; - public MappingJoinFieldVO withField1Id(Long field1Id) { + public MappingJoinFieldVO withField1Id(String field1Id) { this.field1Id = field1Id; return this; } /** - * 属性1ID。 + * 属性1ID,填写String类型替代Long类型。 * @return field1Id */ - public Long getField1Id() { + public String getField1Id() { return field1Id; } - public void setField1Id(Long field1Id) { + public void setField1Id(String field1Id) { this.field1Id = field1Id; } - public MappingJoinFieldVO withField2Id(Long field2Id) { + public MappingJoinFieldVO withField2Id(String field2Id) { this.field2Id = field2Id; return this; } /** - * 属性2ID。 + * 属性2ID,填写String类型替代Long类型。 * @return field2Id */ - public Long getField2Id() { + public String getField2Id() { return field2Id; } - public void setField2Id(Long field2Id) { + public void setField2Id(String field2Id) { this.field2Id = field2Id; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceFieldVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceFieldVO.java index 216d23bb40..3bb6d75985 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceFieldVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceFieldVO.java @@ -16,7 +16,7 @@ public class MappingSourceFieldVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "target_field_id") - private Long targetFieldId; + private String targetFieldId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "target_field_name") @@ -43,20 +43,20 @@ public class MappingSourceFieldVO { private Boolean changed; - public MappingSourceFieldVO withTargetFieldId(Long targetFieldId) { + public MappingSourceFieldVO withTargetFieldId(String targetFieldId) { this.targetFieldId = targetFieldId; return this; } /** - * 目标字段ID,当前表的某个字段。 + * 目标字段ID,当前表的某个字段,填写String类型替代Long类型。 * @return targetFieldId */ - public Long getTargetFieldId() { + public String getTargetFieldId() { return targetFieldId; } - public void setTargetFieldId(Long targetFieldId) { + public void setTargetFieldId(String targetFieldId) { this.targetFieldId = targetFieldId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceTableVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceTableVO.java index ddfa709da5..e601371181 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceTableVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MappingSourceTableVO.java @@ -21,12 +21,12 @@ public class MappingSourceTableVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table1_id") - private Long table1Id; + private String table1Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table2_id") - private Long table2Id; + private String table2Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table1_name") @@ -39,7 +39,7 @@ public class MappingSourceTableVO { private String table2Name; /** - * 关联类型。LEFT(左外连接)、RIGHT(右外连接)、INNER(内连接)、FULL(全连接)。 + * 关联类型。 枚举值: - LEFT: 左外连接 - RIGHT: 右外连接 - INNER: 内连接 - FULL: 全连接 */ public static final class JoinTypeEnum { @@ -130,37 +130,37 @@ public int hashCode() { private List joinFields = null; - public MappingSourceTableVO withTable1Id(Long table1Id) { + public MappingSourceTableVO withTable1Id(String table1Id) { this.table1Id = table1Id; return this; } /** - * 表1ID。 + * 表1ID,填写String类型替代Long类型。 * @return table1Id */ - public Long getTable1Id() { + public String getTable1Id() { return table1Id; } - public void setTable1Id(Long table1Id) { + public void setTable1Id(String table1Id) { this.table1Id = table1Id; } - public MappingSourceTableVO withTable2Id(Long table2Id) { + public MappingSourceTableVO withTable2Id(String table2Id) { this.table2Id = table2Id; return this; } /** - * 表2ID。 + * 表2ID,填写String类型替代Long类型。 * @return table2Id */ - public Long getTable2Id() { + public String getTable2Id() { return table2Id; } - public void setTable2Id(Long table2Id) { + public void setTable2Id(String table2Id) { this.table2Id = table2Id; } @@ -204,7 +204,7 @@ public MappingSourceTableVO withJoinType(JoinTypeEnum joinType) { } /** - * 关联类型。LEFT(左外连接)、RIGHT(右外连接)、INNER(内连接)、FULL(全连接)。 + * 关联类型。 枚举值: - LEFT: 左外连接 - RIGHT: 右外连接 - INNER: 内连接 - FULL: 全连接 * @return joinType */ public JoinTypeEnum getJoinType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MetricMonitorVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MetricMonitorVO.java index 04e5adea7e..3bef9ce645 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MetricMonitorVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/MetricMonitorVO.java @@ -16,18 +16,28 @@ public class MetricMonitorVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "other_metric_ids") - private List otherMetricIds = null; + private List otherMetricIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "other_metric_names") private List otherMetricNames = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "other_compound_metric_ids") + + private List otherCompoundMetricIds = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "other_compound_metric_names") + + private List otherCompoundMetricNames = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "expression") @@ -36,7 +46,7 @@ public class MetricMonitorVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "metric_id") - private Long metricId; + private String metricId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "front_configs") @@ -48,29 +58,29 @@ public class MetricMonitorVO { private BizTypeEnum metricType; - public MetricMonitorVO withId(Long id) { + public MetricMonitorVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public MetricMonitorVO withOtherMetricIds(List otherMetricIds) { + public MetricMonitorVO withOtherMetricIds(List otherMetricIds) { this.otherMetricIds = otherMetricIds; return this; } - public MetricMonitorVO addOtherMetricIdsItem(Long otherMetricIdsItem) { + public MetricMonitorVO addOtherMetricIdsItem(String otherMetricIdsItem) { if (this.otherMetricIds == null) { this.otherMetricIds = new ArrayList<>(); } @@ -78,7 +88,7 @@ public MetricMonitorVO addOtherMetricIdsItem(Long otherMetricIdsItem) { return this; } - public MetricMonitorVO withOtherMetricIds(Consumer> otherMetricIdsSetter) { + public MetricMonitorVO withOtherMetricIds(Consumer> otherMetricIdsSetter) { if (this.otherMetricIds == null) { this.otherMetricIds = new ArrayList<>(); } @@ -87,14 +97,14 @@ public MetricMonitorVO withOtherMetricIds(Consumer> otherMetricIdsSet } /** - * 其他指标ID。 + * 其他指标ID,填写String类型替代Long类型。 * @return otherMetricIds */ - public List getOtherMetricIds() { + public List getOtherMetricIds() { return otherMetricIds; } - public void setOtherMetricIds(List otherMetricIds) { + public void setOtherMetricIds(List otherMetricIds) { this.otherMetricIds = otherMetricIds; } @@ -120,7 +130,7 @@ public MetricMonitorVO withOtherMetricNames(Consumer> otherMetricNa } /** - * 其他指标名称。 + * 其他指标名称,只读。 * @return otherMetricNames */ public List getOtherMetricNames() { @@ -131,6 +141,72 @@ public void setOtherMetricNames(List otherMetricNames) { this.otherMetricNames = otherMetricNames; } + public MetricMonitorVO withOtherCompoundMetricIds(List otherCompoundMetricIds) { + this.otherCompoundMetricIds = otherCompoundMetricIds; + return this; + } + + public MetricMonitorVO addOtherCompoundMetricIdsItem(String otherCompoundMetricIdsItem) { + if (this.otherCompoundMetricIds == null) { + this.otherCompoundMetricIds = new ArrayList<>(); + } + this.otherCompoundMetricIds.add(otherCompoundMetricIdsItem); + return this; + } + + public MetricMonitorVO withOtherCompoundMetricIds(Consumer> otherCompoundMetricIdsSetter) { + if (this.otherCompoundMetricIds == null) { + this.otherCompoundMetricIds = new ArrayList<>(); + } + otherCompoundMetricIdsSetter.accept(this.otherCompoundMetricIds); + return this; + } + + /** + * 其他复合指标ID。 + * @return otherCompoundMetricIds + */ + public List getOtherCompoundMetricIds() { + return otherCompoundMetricIds; + } + + public void setOtherCompoundMetricIds(List otherCompoundMetricIds) { + this.otherCompoundMetricIds = otherCompoundMetricIds; + } + + public MetricMonitorVO withOtherCompoundMetricNames(List otherCompoundMetricNames) { + this.otherCompoundMetricNames = otherCompoundMetricNames; + return this; + } + + public MetricMonitorVO addOtherCompoundMetricNamesItem(String otherCompoundMetricNamesItem) { + if (this.otherCompoundMetricNames == null) { + this.otherCompoundMetricNames = new ArrayList<>(); + } + this.otherCompoundMetricNames.add(otherCompoundMetricNamesItem); + return this; + } + + public MetricMonitorVO withOtherCompoundMetricNames(Consumer> otherCompoundMetricNamesSetter) { + if (this.otherCompoundMetricNames == null) { + this.otherCompoundMetricNames = new ArrayList<>(); + } + otherCompoundMetricNamesSetter.accept(this.otherCompoundMetricNames); + return this; + } + + /** + * 其他复合指标名称。 + * @return otherCompoundMetricNames + */ + public List getOtherCompoundMetricNames() { + return otherCompoundMetricNames; + } + + public void setOtherCompoundMetricNames(List otherCompoundMetricNames) { + this.otherCompoundMetricNames = otherCompoundMetricNames; + } + public MetricMonitorVO withExpression(String expression) { this.expression = expression; return this; @@ -148,20 +224,20 @@ public void setExpression(String expression) { this.expression = expression; } - public MetricMonitorVO withMetricId(Long metricId) { + public MetricMonitorVO withMetricId(String metricId) { this.metricId = metricId; return this; } /** - * 挂载指ID。 + * 挂载指ID,填写String类型替代Long类型。 * @return metricId */ - public Long getMetricId() { + public String getMetricId() { return metricId; } - public void setMetricId(Long metricId) { + public void setMetricId(String metricId) { this.metricId = metricId; } @@ -210,13 +286,23 @@ public boolean equals(java.lang.Object obj) { MetricMonitorVO that = (MetricMonitorVO) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.otherMetricIds, that.otherMetricIds) && Objects.equals(this.otherMetricNames, that.otherMetricNames) + && Objects.equals(this.otherCompoundMetricIds, that.otherCompoundMetricIds) + && Objects.equals(this.otherCompoundMetricNames, that.otherCompoundMetricNames) && Objects.equals(this.expression, that.expression) && Objects.equals(this.metricId, that.metricId) && Objects.equals(this.frontConfigs, that.frontConfigs) && Objects.equals(this.metricType, that.metricType); } @Override public int hashCode() { - return Objects.hash(id, otherMetricIds, otherMetricNames, expression, metricId, frontConfigs, metricType); + return Objects.hash(id, + otherMetricIds, + otherMetricNames, + otherCompoundMetricIds, + otherCompoundMetricNames, + expression, + metricId, + frontConfigs, + metricType); } @Override @@ -226,6 +312,8 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" otherMetricIds: ").append(toIndentedString(otherMetricIds)).append("\n"); sb.append(" otherMetricNames: ").append(toIndentedString(otherMetricNames)).append("\n"); + sb.append(" otherCompoundMetricIds: ").append(toIndentedString(otherCompoundMetricIds)).append("\n"); + sb.append(" otherCompoundMetricNames: ").append(toIndentedString(otherCompoundMetricNames)).append("\n"); sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); sb.append(" metricId: ").append(toIndentedString(metricId)).append("\n"); sb.append(" frontConfigs: ").append(toIndentedString(frontConfigs)).append("\n"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModelLevel.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModelLevel.java index 14e88f8e4d..54fd85ac9c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModelLevel.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModelLevel.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 数据治理分层。SDI(贴源数据层)、DWI(数据整合层)、DWR(数据报告层)、DM(数据集市层)。 + * 数据治理分层。 枚举值: - SDI: 贴源数据层 - DWI: 数据整合层 - DWR: 数据报告层 - DM: 数据集市层 */ public class ModelLevel { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModelStatisticVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModelStatisticVO.java new file mode 100644 index 0000000000..8be5ff60e8 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModelStatisticVO.java @@ -0,0 +1,293 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * ModelStatisticVO + */ +public class ModelStatisticVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "biz_type") + + private BizTypeEnum bizType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "level") + + private ModelLevel level; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "db") + + private Integer db; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb") + + private Integer tb; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tb_published") + + private Integer tbPublished; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fd") + + private Integer fd; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fd_published") + + private Integer fdPublished; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "st") + + private Double st; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "st_published") + + private Double stPublished; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "model") + + private WorkspaceVO model; + + public ModelStatisticVO withBizType(BizTypeEnum bizType) { + this.bizType = bizType; + return this; + } + + /** + * Get bizType + * @return bizType + */ + public BizTypeEnum getBizType() { + return bizType; + } + + public void setBizType(BizTypeEnum bizType) { + this.bizType = bizType; + } + + public ModelStatisticVO withLevel(ModelLevel level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + */ + public ModelLevel getLevel() { + return level; + } + + public void setLevel(ModelLevel level) { + this.level = level; + } + + public ModelStatisticVO withDb(Integer db) { + this.db = db; + return this; + } + + /** + * 数据库。 + * @return db + */ + public Integer getDb() { + return db; + } + + public void setDb(Integer db) { + this.db = db; + } + + public ModelStatisticVO withTb(Integer tb) { + this.tb = tb; + return this; + } + + /** + * 数据表。 + * @return tb + */ + public Integer getTb() { + return tb; + } + + public void setTb(Integer tb) { + this.tb = tb; + } + + public ModelStatisticVO withTbPublished(Integer tbPublished) { + this.tbPublished = tbPublished; + return this; + } + + /** + * 已发布的数据表。 + * @return tbPublished + */ + public Integer getTbPublished() { + return tbPublished; + } + + public void setTbPublished(Integer tbPublished) { + this.tbPublished = tbPublished; + } + + public ModelStatisticVO withFd(Integer fd) { + this.fd = fd; + return this; + } + + /** + * 字段。 + * @return fd + */ + public Integer getFd() { + return fd; + } + + public void setFd(Integer fd) { + this.fd = fd; + } + + public ModelStatisticVO withFdPublished(Integer fdPublished) { + this.fdPublished = fdPublished; + return this; + } + + /** + * 已发布的字段。 + * @return fdPublished + */ + public Integer getFdPublished() { + return fdPublished; + } + + public void setFdPublished(Integer fdPublished) { + this.fdPublished = fdPublished; + } + + public ModelStatisticVO withSt(Double st) { + this.st = st; + return this; + } + + /** + * 标准覆盖率。 + * @return st + */ + public Double getSt() { + return st; + } + + public void setSt(Double st) { + this.st = st; + } + + public ModelStatisticVO withStPublished(Double stPublished) { + this.stPublished = stPublished; + return this; + } + + /** + * 已发布的标准覆盖率。 + * @return stPublished + */ + public Double getStPublished() { + return stPublished; + } + + public void setStPublished(Double stPublished) { + this.stPublished = stPublished; + } + + public ModelStatisticVO withModel(WorkspaceVO model) { + this.model = model; + return this; + } + + public ModelStatisticVO withModel(Consumer modelSetter) { + if (this.model == null) { + this.model = new WorkspaceVO(); + modelSetter.accept(this.model); + } + + return this; + } + + /** + * Get model + * @return model + */ + public WorkspaceVO getModel() { + return model; + } + + public void setModel(WorkspaceVO model) { + this.model = model; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ModelStatisticVO that = (ModelStatisticVO) obj; + return Objects.equals(this.bizType, that.bizType) && Objects.equals(this.level, that.level) + && Objects.equals(this.db, that.db) && Objects.equals(this.tb, that.tb) + && Objects.equals(this.tbPublished, that.tbPublished) && Objects.equals(this.fd, that.fd) + && Objects.equals(this.fdPublished, that.fdPublished) && Objects.equals(this.st, that.st) + && Objects.equals(this.stPublished, that.stPublished) && Objects.equals(this.model, that.model); + } + + @Override + public int hashCode() { + return Objects.hash(bizType, level, db, tb, tbPublished, fd, fdPublished, st, stPublished, model); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelStatisticVO {\n"); + sb.append(" bizType: ").append(toIndentedString(bizType)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" db: ").append(toIndentedString(db)).append("\n"); + sb.append(" tb: ").append(toIndentedString(tb)).append("\n"); + sb.append(" tbPublished: ").append(toIndentedString(tbPublished)).append("\n"); + sb.append(" fd: ").append(toIndentedString(fd)).append("\n"); + sb.append(" fdPublished: ").append(toIndentedString(fdPublished)).append("\n"); + sb.append(" st: ").append(toIndentedString(st)).append("\n"); + sb.append(" stPublished: ").append(toIndentedString(stPublished)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModifyCustomizedFieldsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModifyCustomizedFieldsResponse.java index 9eecec302f..f68e3daa39 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModifyCustomizedFieldsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModifyCustomizedFieldsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ModifyCustomizedFieldsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ModifyCustomizedFieldsResultData data; - public ModifyCustomizedFieldsResponse withData(Object data) { + public ModifyCustomizedFieldsResponse withData(ModifyCustomizedFieldsResultData data) { this.data = data; return this; } + public ModifyCustomizedFieldsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ModifyCustomizedFieldsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ModifyCustomizedFieldsResultData getData() { return data; } - public void setData(Object data) { + public void setData(ModifyCustomizedFieldsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModifyCustomizedFieldsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModifyCustomizedFieldsResultData.java new file mode 100644 index 0000000000..2dad74226d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ModifyCustomizedFieldsResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ModifyCustomizedFieldsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public ModifyCustomizedFieldsResultData withValue(List value) { + this.value = value; + return this; + } + + public ModifyCustomizedFieldsResultData addValueItem(CustomizedFieldsVO valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public ModifyCustomizedFieldsResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 数据连接信息数组 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + ModifyCustomizedFieldsResultData that = (ModifyCustomizedFieldsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyCustomizedFieldsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVO.java index a3b7ca630e..bed84a98f4 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVO.java @@ -71,6 +71,11 @@ public class PublishVersionVO { private SyncStatusEnum physicalTable; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_physical_table") + + private SyncStatusEnum devPhysicalTable; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "technical_asset") @@ -137,7 +142,7 @@ public PublishVersionVO withId(String id) { } /** - * 版本ID。 + * 版本ID,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -171,7 +176,7 @@ public PublishVersionVO withVersionTag(String versionTag) { } /** - * 版本标记。 + * 版本标记,只读。 * @return versionTag */ public String getVersionTag() { @@ -205,7 +210,7 @@ public PublishVersionVO withBizId(String bizId) { } /** - * 业务对象ID。 + * 业务对象ID,填写String类型替代Long类型。 * @return bizId */ public String getBizId() { @@ -239,7 +244,7 @@ public PublishVersionVO withBizInfo(String bizInfo) { } /** - * 业务详情。 + * 业务详情,只读。 * @return bizInfo */ public String getBizInfo() { @@ -273,7 +278,7 @@ public PublishVersionVO withEffectObjs(String effectObjs) { } /** - * 影响信息。 + * 影响信息,只读。 * @return effectObjs */ public String getEffectObjs() { @@ -290,7 +295,7 @@ public PublishVersionVO withChangeProps(String changeProps) { } /** - * 变化信息。 + * 变化信息,只读。 * @return changeProps */ public String getChangeProps() { @@ -307,7 +312,7 @@ public PublishVersionVO withSqlDdl(String sqlDdl) { } /** - * SQL脚本。 + * SQL脚本,只读。 * @return sqlDdl */ public String getSqlDdl() { @@ -335,6 +340,23 @@ public void setPhysicalTable(SyncStatusEnum physicalTable) { this.physicalTable = physicalTable; } + public PublishVersionVO withDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + return this; + } + + /** + * Get devPhysicalTable + * @return devPhysicalTable + */ + public SyncStatusEnum getDevPhysicalTable() { + return devPhysicalTable; + } + + public void setDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + } + public PublishVersionVO withTechnicalAsset(SyncStatusEnum technicalAsset) { this.technicalAsset = technicalAsset; return this; @@ -494,7 +516,7 @@ public PublishVersionVO withIsCurrentVersion(Boolean isCurrentVersion) { } /** - * 是否为当前版本。 + * 是否为当前版本,只读。 * @return isCurrentVersion */ public Boolean getIsCurrentVersion() { @@ -511,7 +533,7 @@ public PublishVersionVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -528,7 +550,7 @@ public PublishVersionVO withCreateBy(String createBy) { } /** - * 创建人。 + * 创建人,只读。 * @return createBy */ public String getCreateBy() { @@ -554,6 +576,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.bizInfo, that.bizInfo) && Objects.equals(this.bizInfoVo, that.bizInfoVo) && Objects.equals(this.effectObjs, that.effectObjs) && Objects.equals(this.changeProps, that.changeProps) && Objects.equals(this.sqlDdl, that.sqlDdl) && Objects.equals(this.physicalTable, that.physicalTable) + && Objects.equals(this.devPhysicalTable, that.devPhysicalTable) && Objects.equals(this.technicalAsset, that.technicalAsset) && Objects.equals(this.businessAsset, that.businessAsset) && Objects.equals(this.metaDataLink, that.metaDataLink) @@ -579,6 +602,7 @@ public int hashCode() { changeProps, sqlDdl, physicalTable, + devPhysicalTable, technicalAsset, businessAsset, metaDataLink, @@ -609,6 +633,7 @@ public String toString() { sb.append(" changeProps: ").append(toIndentedString(changeProps)).append("\n"); sb.append(" sqlDdl: ").append(toIndentedString(sqlDdl)).append("\n"); sb.append(" physicalTable: ").append(toIndentedString(physicalTable)).append("\n"); + sb.append(" devPhysicalTable: ").append(toIndentedString(devPhysicalTable)).append("\n"); sb.append(" technicalAsset: ").append(toIndentedString(technicalAsset)).append("\n"); sb.append(" businessAsset: ").append(toIndentedString(businessAsset)).append("\n"); sb.append(" metaDataLink: ").append(toIndentedString(metaDataLink)).append("\n"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVODetailData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVODetailData.java index cb64ec986c..45a9c970fa 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVODetailData.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVODetailData.java @@ -7,7 +7,7 @@ import java.util.function.Consumer; /** - * 返回数据。 + * 接口返回的数据。 */ public class PublishVersionVODetailData { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVOSearchResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVOSearchResultDataValue.java index 00d085dd28..9a15956c0c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVOSearchResultDataValue.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/PublishVersionVOSearchResultDataValue.java @@ -45,7 +45,7 @@ public PublishVersionVOSearchResultDataValue withRecords(Consumer getRecords() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QualityInfoVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QualityInfoVO.java index 8ff2937b80..52140708c6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QualityInfoVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/QualityInfoVO.java @@ -14,17 +14,17 @@ public class QualityInfoVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table_id") - private Long tableId; + private String tableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "attr_id") - private Long attrId; + private String attrId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_type") @@ -34,7 +34,7 @@ public class QualityInfoVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data_quality_id") - private Long dataQualityId; + private String dataQualityId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "show_control") @@ -91,54 +91,54 @@ public class QualityInfoVO { private OffsetDateTime updateTime; - public QualityInfoVO withId(Long id) { + public QualityInfoVO withId(String id) { this.id = id; return this; } /** - * 编码ID。 + * 编码ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public QualityInfoVO withTableId(Long tableId) { + public QualityInfoVO withTableId(String tableId) { this.tableId = tableId; return this; } /** - * 表ID。 + * 表ID,只读,填写String类型替代Long类型。 * @return tableId */ - public Long getTableId() { + public String getTableId() { return tableId; } - public void setTableId(Long tableId) { + public void setTableId(String tableId) { this.tableId = tableId; } - public QualityInfoVO withAttrId(Long attrId) { + public QualityInfoVO withAttrId(String attrId) { this.attrId = attrId; return this; } /** - * 属性ID。 + * 属性ID,只读,填写String类型替代Long类型。 * @return attrId */ - public Long getAttrId() { + public String getAttrId() { return attrId; } - public void setAttrId(Long attrId) { + public void setAttrId(String attrId) { this.attrId = attrId; } @@ -159,20 +159,20 @@ public void setBizType(BizTypeEnum bizType) { this.bizType = bizType; } - public QualityInfoVO withDataQualityId(Long dataQualityId) { + public QualityInfoVO withDataQualityId(String dataQualityId) { this.dataQualityId = dataQualityId; return this; } /** - * 质量ID。 + * 质量ID,填写String类型替代Long类型。 * @return dataQualityId */ - public Long getDataQualityId() { + public String getDataQualityId() { return dataQualityId; } - public void setDataQualityId(Long dataQualityId) { + public void setDataQualityId(String dataQualityId) { this.dataQualityId = dataQualityId; } @@ -267,7 +267,7 @@ public QualityInfoVO withFromStandard(Boolean fromStandard) { } /** - * 是否来源于数据标准质量配置。 + * 是否来源于数据标准质量配置,只读。 * @return fromStandard */ public Boolean getFromStandard() { @@ -301,7 +301,7 @@ public QualityInfoVO withCreateBy(String createBy) { } /** - * 创建人。 + * 创建人,只读。 * @return createBy */ public String getCreateBy() { @@ -318,7 +318,7 @@ public QualityInfoVO withUpdateBy(String updateBy) { } /** - * 更新人。 + * 更新人,只读。 * @return updateBy */ public String getUpdateBy() { @@ -335,7 +335,7 @@ public QualityInfoVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -352,7 +352,7 @@ public QualityInfoVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationMappingVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationMappingVO.java index 7d08ae99d9..000a5a152d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationMappingVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationMappingVO.java @@ -14,22 +14,22 @@ public class RelationMappingVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "relation_id") - private Long relationId; + private String relationId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "source_field_id") - private Long sourceFieldId; + private String sourceFieldId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "target_field_id") - private Long targetFieldId; + private String targetFieldId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "source_field_name") @@ -61,71 +61,71 @@ public class RelationMappingVO { private OffsetDateTime updateTime; - public RelationMappingVO withId(Long id) { + public RelationMappingVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public RelationMappingVO withRelationId(Long relationId) { + public RelationMappingVO withRelationId(String relationId) { this.relationId = relationId; return this; } /** - * 关系ID。 + * 关系ID,填写String类型替代Long类型。 * @return relationId */ - public Long getRelationId() { + public String getRelationId() { return relationId; } - public void setRelationId(Long relationId) { + public void setRelationId(String relationId) { this.relationId = relationId; } - public RelationMappingVO withSourceFieldId(Long sourceFieldId) { + public RelationMappingVO withSourceFieldId(String sourceFieldId) { this.sourceFieldId = sourceFieldId; return this; } /** - * 源字段ID。 + * 源字段ID,填写String类型替代Long类型。 * @return sourceFieldId */ - public Long getSourceFieldId() { + public String getSourceFieldId() { return sourceFieldId; } - public void setSourceFieldId(Long sourceFieldId) { + public void setSourceFieldId(String sourceFieldId) { this.sourceFieldId = sourceFieldId; } - public RelationMappingVO withTargetFieldId(Long targetFieldId) { + public RelationMappingVO withTargetFieldId(String targetFieldId) { this.targetFieldId = targetFieldId; return this; } /** - * 目标字段ID。 + * 目标字段ID,填写String类型替代Long类型。 * @return targetFieldId */ - public Long getTargetFieldId() { + public String getTargetFieldId() { return targetFieldId; } - public void setTargetFieldId(Long targetFieldId) { + public void setTargetFieldId(String targetFieldId) { this.targetFieldId = targetFieldId; } @@ -203,7 +203,7 @@ public RelationMappingVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -220,7 +220,7 @@ public RelationMappingVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationType.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationType.java index 0ddf802c32..99ec1bb987 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationType.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationType.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 关系类型。ONE(表示每条子(父)逻辑实体数据在父(子)逻辑实体中有且只有一条数据与之对应。)、ZERO_OR_ONE(表示每条子(父)逻辑实体数据在父(子)逻辑实体中最多有一条数据与之对应。)、ZERO_OR_N(表示每条子(父)逻辑实体数据在父(子)逻辑实体中可能有多条数据与之对应。)、ONE_OR_N(表示每条子(父)逻辑实体数据在父(子)逻辑实体中至少有一条数据与之对应。)。 + * 关系类型,只读。 枚举值: - ONE: 表示每条子(父)逻辑实体数据在父(子)逻辑实体中有且只有一条数据与之对应。 - ZERO_OR_ONE: 表示每条子(父)逻辑实体数据在父(子)逻辑实体中最多有一条数据与之对应。 - ZERO_OR_N: 表示每条子(父)逻辑实体数据在父(子)逻辑实体中可能有多条数据与之对应。 - ONE_OR_N: 表示每条子(父)逻辑实体数据在父(子)逻辑实体中至少有一条数据与之对应。 */ public class RelationType { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationVO.java index f06bbc5146..c72dd4c38d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RelationVO.java @@ -17,17 +17,17 @@ public class RelationVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "source_table_id") - private Long sourceTableId; + private String sourceTableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "target_table_id") - private Long targetTableId; + private String targetTableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -89,54 +89,54 @@ public class RelationVO { private List mappings = null; - public RelationVO withId(Long id) { + public RelationVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public RelationVO withSourceTableId(Long sourceTableId) { + public RelationVO withSourceTableId(String sourceTableId) { this.sourceTableId = sourceTableId; return this; } /** - * 源表ID。 + * 源表ID,填写String类型替代Long类型。 * @return sourceTableId */ - public Long getSourceTableId() { + public String getSourceTableId() { return sourceTableId; } - public void setSourceTableId(Long sourceTableId) { + public void setSourceTableId(String sourceTableId) { this.sourceTableId = sourceTableId; } - public RelationVO withTargetTableId(Long targetTableId) { + public RelationVO withTargetTableId(String targetTableId) { this.targetTableId = targetTableId; return this; } /** - * 目标表ID。 + * 目标表ID,填写String类型替代Long类型。 * @return targetTableId */ - public Long getTargetTableId() { + public String getTargetTableId() { return targetTableId; } - public void setTargetTableId(Long targetTableId) { + public void setTargetTableId(String targetTableId) { this.targetTableId = targetTableId; } @@ -299,7 +299,7 @@ public RelationVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -316,7 +316,7 @@ public RelationVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -349,7 +349,7 @@ public RelationVO withMappings(Consumer> mappingsSetter) } /** - * 表属性信息。 + * 表属性信息,只读。 * @return mappings */ public List getMappings() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignEntityTagsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignEntityTagsRequest.java index bb4293634b..3fc986b604 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignEntityTagsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignEntityTagsRequest.java @@ -77,7 +77,7 @@ public RemoveDesignEntityTagsRequest withEntityId(String entityId) { } /** - * 表的ID。 + * 表的ID,填写String类型替代Long类型。 * @return entityId */ public String getEntityId() { @@ -94,7 +94,7 @@ public RemoveDesignEntityTagsRequest withAttrId(String attrId) { } /** - * 属性的ID。 + * 属性的ID,填写String类型替代Long类型。 * @return attrId */ public String getAttrId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignQualityInfosRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignQualityInfosRequest.java index 390bfaddd8..e32b6c576c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignQualityInfosRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RemoveDesignQualityInfosRequest.java @@ -72,7 +72,7 @@ public RemoveDesignQualityInfosRequest withTableId(String tableId) { } /** - * 表的ID。 + * 表的ID,填写String类型替代Long类型。 * @return tableId */ public String getTableId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ResetLinkAttributeAndStandardResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ResetLinkAttributeAndStandardResponse.java index d1947512e7..b57c18d34d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ResetLinkAttributeAndStandardResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ResetLinkAttributeAndStandardResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,32 @@ public class ResetLinkAttributeAndStandardResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ResetLinkAttributeAndStandardResultData data; - public ResetLinkAttributeAndStandardResponse withData(Object data) { + public ResetLinkAttributeAndStandardResponse withData(ResetLinkAttributeAndStandardResultData data) { this.data = data; return this; } + public ResetLinkAttributeAndStandardResponse withData( + Consumer dataSetter) { + if (this.data == null) { + this.data = new ResetLinkAttributeAndStandardResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ResetLinkAttributeAndStandardResultData getData() { return data; } - public void setData(Object data) { + public void setData(ResetLinkAttributeAndStandardResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ResetLinkAttributeAndStandardResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ResetLinkAttributeAndStandardResultData.java new file mode 100644 index 0000000000..49b4537415 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ResetLinkAttributeAndStandardResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ResetLinkAttributeAndStandardResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private LinkAttributeAndElementVO value; + + public ResetLinkAttributeAndStandardResultData withValue(LinkAttributeAndElementVO value) { + this.value = value; + return this; + } + + public ResetLinkAttributeAndStandardResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new LinkAttributeAndElementVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public LinkAttributeAndElementVO getValue() { + return value; + } + + public void setValue(LinkAttributeAndElementVO 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; + } + ResetLinkAttributeAndStandardResultData that = (ResetLinkAttributeAndStandardResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResetLinkAttributeAndStandardResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalRequest.java index b86517d93c..d09f388c3a 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalRequest.java @@ -67,7 +67,7 @@ public RollbackApprovalRequest withIds(String ids) { } /** - * 审批单ID。 + * 审批单ID数组。 * @return ids */ public String getIds() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalResponse.java index f4ff563036..e25485010e 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class RollbackApprovalResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private RollbackApprovalResultData data; - public RollbackApprovalResponse withData(Object data) { + public RollbackApprovalResponse withData(RollbackApprovalResultData data) { this.data = data; return this; } + public RollbackApprovalResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new RollbackApprovalResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public RollbackApprovalResultData getData() { return data; } - public void setData(Object data) { + public void setData(RollbackApprovalResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalResultData.java new file mode 100644 index 0000000000..4ac6c875f2 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/RollbackApprovalResultData.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 审批单撤回的返回结果,成功的个数。 + */ +public class RollbackApprovalResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public RollbackApprovalResultData withValue(String value) { + this.value = value; + return this; + } + + /** + * 审批单撤回的对象个数 + * @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; + } + RollbackApprovalResultData that = (RollbackApprovalResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollbackApprovalResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsRequest.java index 25e1d0b57a..c56077a9e8 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsRequest.java @@ -28,7 +28,7 @@ public class SearchApprovalsRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_id") - private Long bizId; + private String bizId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -46,7 +46,7 @@ public class SearchApprovalsRequest { private String approver; /** - * 审批单状态。DEVELOPING(待审批)、FINISHED(已审批)。 + * 审批单状态。 枚举值: - DEVELOPING: 待审批 - FINISHED: 已审批 */ public static final class ApprovalStatusEnum { @@ -121,7 +121,7 @@ public int hashCode() { private ApprovalStatusEnum approvalStatus; /** - * 审批单状态。DEVELOPING(待审批)、APPROVED(审批通过)、REJECT(审批驳回)。 + * 审批单状态。 枚举值: - DEVELOPING: 待审批 - APPROVED: 审批通过 - REJECT: 审批驳回 */ public static final class ApprovalStatusDetailEnum { @@ -202,7 +202,7 @@ public int hashCode() { private ApprovalStatusDetailEnum approvalStatusDetail; /** - * 业务审核类型。PUBLISH(发布)、OFFLINE(下线)。 + * 业务审核类型。 枚举值: - PUBLISH: 发布 - OFFLINE: 下线 */ public static final class ApprovalTypeEnum { @@ -337,20 +337,20 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } - public SearchApprovalsRequest withBizId(Long bizId) { + public SearchApprovalsRequest withBizId(String bizId) { this.bizId = bizId; return this; } /** - * 业务定义ID。 + * 业务定义ID,填写String类型替代Long类型。 * @return bizId */ - public Long getBizId() { + public String getBizId() { return bizId; } - public void setBizId(Long bizId) { + public void setBizId(String bizId) { this.bizId = bizId; } @@ -411,7 +411,7 @@ public SearchApprovalsRequest withApprovalStatus(ApprovalStatusEnum approvalStat } /** - * 审批单状态。DEVELOPING(待审批)、FINISHED(已审批)。 + * 审批单状态。 枚举值: - DEVELOPING: 待审批 - FINISHED: 已审批 * @return approvalStatus */ public ApprovalStatusEnum getApprovalStatus() { @@ -428,7 +428,7 @@ public SearchApprovalsRequest withApprovalStatusDetail(ApprovalStatusDetailEnum } /** - * 审批单状态。DEVELOPING(待审批)、APPROVED(审批通过)、REJECT(审批驳回)。 + * 审批单状态。 枚举值: - DEVELOPING: 待审批 - APPROVED: 审批通过 - REJECT: 审批驳回 * @return approvalStatusDetail */ public ApprovalStatusDetailEnum getApprovalStatusDetail() { @@ -445,7 +445,7 @@ public SearchApprovalsRequest withApprovalType(ApprovalTypeEnum approvalType) { } /** - * 业务审核类型。PUBLISH(发布)、OFFLINE(下线)。 + * 业务审核类型。 枚举值: - PUBLISH: 发布 - OFFLINE: 下线 * @return approvalType */ public ApprovalTypeEnum getApprovalType() { @@ -462,7 +462,7 @@ public SearchApprovalsRequest withBizType(String bizType) { } /** - * 按业务类型查询。 + * 按业务类型查询,可选业务类型有:ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、TIME_CONDITION(时间限定)、DIMENSION_LOGIC_TABLE(维度表)、FACT_LOGIC_TABLE(事实表)、AGGREGATION_LOGIC_TABLE(汇总表)、TABLE_MODEL(关系建模表)、CODE_TABLE(码表)、STANDARD_ELEMENT)(数据标准)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)、SUBJECT(主题)、ATOMIC_METRIC(原子指标(新))、DERIVED_METRIC(衍生指标(新))、COMPOSITE_METRIC(复合指标(新))。 * @return bizType */ public String getBizType() { @@ -513,7 +513,7 @@ public SearchApprovalsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResponse.java index b4425729e3..9dfe72b8d9 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class SearchApprovalsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private SearchApprovalsResultData data; - public SearchApprovalsResponse withData(Object data) { + public SearchApprovalsResponse withData(SearchApprovalsResultData data) { this.data = data; return this; } + public SearchApprovalsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new SearchApprovalsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public SearchApprovalsResultData getData() { return data; } - public void setData(Object data) { + public void setData(SearchApprovalsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResultData.java new file mode 100644 index 0000000000..4ad62452ac --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class SearchApprovalsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private SearchApprovalsResultDataValue value; + + public SearchApprovalsResultData withValue(SearchApprovalsResultDataValue value) { + this.value = value; + return this; + } + + public SearchApprovalsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new SearchApprovalsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public SearchApprovalsResultDataValue getValue() { + return value; + } + + public void setValue(SearchApprovalsResultDataValue 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; + } + SearchApprovalsResultData that = (SearchApprovalsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchApprovalsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResultDataValue.java new file mode 100644 index 0000000000..c3c1a70595 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchApprovalsResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class SearchApprovalsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public SearchApprovalsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public SearchApprovalsResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public SearchApprovalsResultDataValue addRecordsItem(ApprovalVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public SearchApprovalsResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * 查询到的审批单对象(ApprovalVO)数组。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SearchApprovalsResultDataValue that = (SearchApprovalsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchApprovalsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchAtomicIndexesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchAtomicIndexesRequest.java index b7722add88..9a01a60524 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchAtomicIndexesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchAtomicIndexesRequest.java @@ -41,7 +41,7 @@ public class SearchAtomicIndexesRequest { private String approver; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -152,12 +152,12 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table_id") - private Long tableId; + private String tableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "limit") @@ -262,7 +262,7 @@ public SearchAtomicIndexesRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -307,37 +307,37 @@ public void setEndTime(String endTime) { this.endTime = endTime; } - public SearchAtomicIndexesRequest withL3Id(Long l3Id) { + public SearchAtomicIndexesRequest withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象l3的ID。 + * 业务对象l3的ID,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } - public SearchAtomicIndexesRequest withTableId(Long tableId) { + public SearchAtomicIndexesRequest withTableId(String tableId) { this.tableId = tableId; return this; } /** - * 关联表的ID。 + * 关联表的ID,填写String类型替代Long类型。 * @return tableId */ - public Long getTableId() { + public String getTableId() { return tableId; } - public void setTableId(Long tableId) { + public void setTableId(String tableId) { this.tableId = tableId; } @@ -347,7 +347,7 @@ public SearchAtomicIndexesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsRequest.java index f84fc54194..1bdb746c2e 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsRequest.java @@ -182,7 +182,7 @@ public SearchCatalogsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResponse.java index 8906eb8c78..fafdd92595 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class SearchCatalogsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private SearchCatalogsResultData data; - public SearchCatalogsResponse withData(Object data) { + public SearchCatalogsResponse withData(SearchCatalogsResultData data) { this.data = data; return this; } + public SearchCatalogsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new SearchCatalogsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public SearchCatalogsResultData getData() { return data; } - public void setData(Object data) { + public void setData(SearchCatalogsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResultData.java new file mode 100644 index 0000000000..942b1c94df --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class SearchCatalogsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private SearchCatalogsResultDataValue value; + + public SearchCatalogsResultData withValue(SearchCatalogsResultDataValue value) { + this.value = value; + return this; + } + + public SearchCatalogsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new SearchCatalogsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public SearchCatalogsResultDataValue getValue() { + return value; + } + + public void setValue(SearchCatalogsResultDataValue 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; + } + SearchCatalogsResultData that = (SearchCatalogsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchCatalogsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResultDataValue.java new file mode 100644 index 0000000000..61992b5ca0 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCatalogsResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class SearchCatalogsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public SearchCatalogsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public SearchCatalogsResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public SearchCatalogsResultDataValue addRecordsItem(BizCatalogVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public SearchCatalogsResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * 流程架构详情。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SearchCatalogsResultDataValue that = (SearchCatalogsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchCatalogsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTableValuesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTableValuesRequest.java index c189fcfa11..04ed09ad8c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTableValuesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTableValuesRequest.java @@ -77,7 +77,7 @@ public SearchCodeTableValuesRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -94,7 +94,7 @@ public SearchCodeTableValuesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesRequest.java index 2036e1dc6b..ee866775ca 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesRequest.java @@ -43,10 +43,10 @@ public class SearchCodeTablesRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "directory_id") - private Long directoryId; + private String directoryId; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -251,20 +251,20 @@ public void setApprover(String approver) { this.approver = approver; } - public SearchCodeTablesRequest withDirectoryId(Long directoryId) { + public SearchCodeTablesRequest withDirectoryId(String directoryId) { this.directoryId = directoryId; return this; } /** - * 目录ID + * 目录ID,填写String类型替代Long类型。 * @return directoryId */ - public Long getDirectoryId() { + public String getDirectoryId() { return directoryId; } - public void setDirectoryId(Long directoryId) { + public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } @@ -274,7 +274,7 @@ public SearchCodeTablesRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -325,7 +325,7 @@ public SearchCodeTablesRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResponse.java index cdf917939a..b63d7d17d2 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class SearchCodeTablesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private SearchCodeTablesResultData data; - public SearchCodeTablesResponse withData(Object data) { + public SearchCodeTablesResponse withData(SearchCodeTablesResultData data) { this.data = data; return this; } + public SearchCodeTablesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new SearchCodeTablesResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public SearchCodeTablesResultData getData() { return data; } - public void setData(Object data) { + public void setData(SearchCodeTablesResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResultData.java new file mode 100644 index 0000000000..e1dc3f61bd --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class SearchCodeTablesResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private SearchCodeTablesResultDataValue value; + + public SearchCodeTablesResultData withValue(SearchCodeTablesResultDataValue value) { + this.value = value; + return this; + } + + public SearchCodeTablesResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new SearchCodeTablesResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public SearchCodeTablesResultDataValue getValue() { + return value; + } + + public void setValue(SearchCodeTablesResultDataValue 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; + } + SearchCodeTablesResultData that = (SearchCodeTablesResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchCodeTablesResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResultDataValue.java new file mode 100644 index 0000000000..365e9370b6 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCodeTablesResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class SearchCodeTablesResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public SearchCodeTablesResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public SearchCodeTablesResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public SearchCodeTablesResultDataValue addRecordsItem(CodeTableVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public SearchCodeTablesResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * 查询到的码表对象(CodeTableVO)数组。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SearchCodeTablesResultDataValue that = (SearchCodeTablesResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchCodeTablesResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsRequest.java index 80ff22fd79..c32b835354 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsRequest.java @@ -36,7 +36,7 @@ public class SearchCustomizedFieldsRequest { private Integer offset; /** - * 自定义项类型。TABLE(表自定义项)、ATTRIBUTE(属性自定义项)、SUBJECT(主题自定义项)、METRIC(业务指标自定义项)。 + * 自定义项类型。 枚举值: - TABLE: 表自定义项 - ATTRIBUTE: 属性自定义项 - SUBJECT: 主题自定义项 - METRIC: 业务指标自定义项 */ public static final class TypeEnum { @@ -164,7 +164,7 @@ public SearchCustomizedFieldsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ @@ -199,7 +199,7 @@ public SearchCustomizedFieldsRequest withType(TypeEnum type) { } /** - * 自定义项类型。TABLE(表自定义项)、ATTRIBUTE(属性自定义项)、SUBJECT(主题自定义项)、METRIC(业务指标自定义项)。 + * 自定义项类型。 枚举值: - TABLE: 表自定义项 - ATTRIBUTE: 属性自定义项 - SUBJECT: 主题自定义项 - METRIC: 业务指标自定义项 * @return type */ public TypeEnum getType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResponse.java index fe079c6654..c30fcd70bd 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class SearchCustomizedFieldsResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private SearchCustomizedFieldsResultData data; - public SearchCustomizedFieldsResponse withData(Object data) { + public SearchCustomizedFieldsResponse withData(SearchCustomizedFieldsResultData data) { this.data = data; return this; } + public SearchCustomizedFieldsResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new SearchCustomizedFieldsResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public SearchCustomizedFieldsResultData getData() { return data; } - public void setData(Object data) { + public void setData(SearchCustomizedFieldsResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResultData.java new file mode 100644 index 0000000000..7b5dab9640 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class SearchCustomizedFieldsResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private SearchCustomizedFieldsResultDataValue value; + + public SearchCustomizedFieldsResultData withValue(SearchCustomizedFieldsResultDataValue value) { + this.value = value; + return this; + } + + public SearchCustomizedFieldsResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new SearchCustomizedFieldsResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public SearchCustomizedFieldsResultDataValue getValue() { + return value; + } + + public void setValue(SearchCustomizedFieldsResultDataValue 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; + } + SearchCustomizedFieldsResultData that = (SearchCustomizedFieldsResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchCustomizedFieldsResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResultDataValue.java new file mode 100644 index 0000000000..ea139f9b7d --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchCustomizedFieldsResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class SearchCustomizedFieldsResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public SearchCustomizedFieldsResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public SearchCustomizedFieldsResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public SearchCustomizedFieldsResultDataValue addRecordsItem(CustomizedFieldsVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public SearchCustomizedFieldsResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * CustomizedFieldsVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SearchCustomizedFieldsResultDataValue that = (SearchCustomizedFieldsResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchCustomizedFieldsResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDesignLatestApprovalDiffRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDesignLatestApprovalDiffRequest.java index c1af7c2d34..2da47494ef 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDesignLatestApprovalDiffRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDesignLatestApprovalDiffRequest.java @@ -31,7 +31,7 @@ public class SearchDesignLatestApprovalDiffRequest { private String bizId; /** - * 待比较下展的实体类型。ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、FACT_LOGIC_TABLE(事实表)、TABLE_MODEL(业务表:逻辑实体/物理表)、STANDARD_ELEMENT(数据标准)、AGGREGATION_LOGIC_TABLE(汇总表)、CODE_TABLE(码表)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)。 + * 待删除下展的实体类型。 枚举值: - ATOMIC_INDEX: 原子指标 - DERIVATIVE_INDEX: 衍生指标 - DIMENSION: 维度 - FACT_LOGIC_TABLE: 事实表 - TABLE_MODEL:关系建模:逻辑实体/物理表 - STANDARD_ELEMENT: 数据标准 - AGGREGATION_LOGIC_TABLE: 汇总表 - CODE_TABLE: 码表 - BIZ_METRIC: 业务指标 - COMPOUND_METRIC: 复合指标 */ public static final class BizTypeEnum { @@ -195,7 +195,7 @@ public SearchDesignLatestApprovalDiffRequest withBizId(String bizId) { } /** - * 待比较下展的实体ID。 + * 待比较下展的实体ID,填写String类型替代Long类型。 * @return bizId */ public String getBizId() { @@ -212,7 +212,7 @@ public SearchDesignLatestApprovalDiffRequest withBizType(BizTypeEnum bizType) { } /** - * 待比较下展的实体类型。ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、FACT_LOGIC_TABLE(事实表)、TABLE_MODEL(业务表:逻辑实体/物理表)、STANDARD_ELEMENT(数据标准)、AGGREGATION_LOGIC_TABLE(汇总表)、CODE_TABLE(码表)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)。 + * 待删除下展的实体类型。 枚举值: - ATOMIC_INDEX: 原子指标 - DERIVATIVE_INDEX: 衍生指标 - DIMENSION: 维度 - FACT_LOGIC_TABLE: 事实表 - TABLE_MODEL:关系建模:逻辑实体/物理表 - STANDARD_ELEMENT: 数据标准 - AGGREGATION_LOGIC_TABLE: 汇总表 - CODE_TABLE: 码表 - BIZ_METRIC: 业务指标 - COMPOUND_METRIC: 复合指标 * @return bizType */ public BizTypeEnum getBizType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDwByTypeResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDwByTypeResponse.java index acb7a8d23e..a5a2741b79 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDwByTypeResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDwByTypeResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class SearchDwByTypeResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private SearchDwByTypeResultData data; - public SearchDwByTypeResponse withData(Object data) { + public SearchDwByTypeResponse withData(SearchDwByTypeResultData data) { this.data = data; return this; } + public SearchDwByTypeResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new SearchDwByTypeResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public SearchDwByTypeResultData getData() { return data; } - public void setData(Object data) { + public void setData(SearchDwByTypeResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDwByTypeResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDwByTypeResultData.java new file mode 100644 index 0000000000..de86898044 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchDwByTypeResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class SearchDwByTypeResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public SearchDwByTypeResultData withValue(List value) { + this.value = value; + return this; + } + + public SearchDwByTypeResultData addValueItem(DataConnectionVO valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public SearchDwByTypeResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 数据连接信息数组 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + SearchDwByTypeResultData that = (SearchDwByTypeResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchDwByTypeResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchFieldsForRelationRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchFieldsForRelationRequest.java index 32ec00e413..cbd0009e19 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchFieldsForRelationRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchFieldsForRelationRequest.java @@ -20,6 +20,16 @@ public class SearchFieldsForRelationRequest { private String xProjectId; + @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 = "model_id") @@ -61,13 +71,48 @@ public void setXProjectId(String xProjectId) { this.xProjectId = xProjectId; } + public SearchFieldsForRelationRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * maximum: 100 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public SearchFieldsForRelationRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 查询起始坐标,即跳过X条数据,仅支持0或limit的整数倍,不满足则向下取整,默认值0。 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + public SearchFieldsForRelationRequest withModelId(String modelId) { this.modelId = modelId; return this; } /** - * 所属关系建模的模型ID。 + * 所属关系建模的模型ID,填写String类型替代Long类型。 * @return modelId */ public String getModelId() { @@ -88,12 +133,13 @@ public boolean equals(java.lang.Object obj) { } SearchFieldsForRelationRequest that = (SearchFieldsForRelationRequest) obj; return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.xProjectId, that.xProjectId) + && Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) && Objects.equals(this.modelId, that.modelId); } @Override public int hashCode() { - return Objects.hash(workspace, xProjectId, modelId); + return Objects.hash(workspace, xProjectId, limit, offset, modelId); } @Override @@ -102,6 +148,8 @@ public String toString() { sb.append("class SearchFieldsForRelationRequest {\n"); sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); sb.append(" xProjectId: ").append(toIndentedString(xProjectId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewRequest.java index 68359c15c2..7318234168 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewRequest.java @@ -41,7 +41,7 @@ public class SearchSubjectNewRequest { private String owner; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -162,7 +162,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "parent_id") - private Long parentId; + private String parentId; public SearchSubjectNewRequest withWorkspace(String workspace) { this.workspace = workspace; @@ -257,7 +257,7 @@ public SearchSubjectNewRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -308,7 +308,7 @@ public SearchSubjectNewRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ @@ -337,20 +337,20 @@ public void setOffset(Integer offset) { this.offset = offset; } - public SearchSubjectNewRequest withParentId(Long parentId) { + public SearchSubjectNewRequest withParentId(String parentId) { this.parentId = parentId; return this; } /** - * 父目录ID,根节点没有此ID,空值为所有,-1为根节点下节点。 + * 父目录ID,根节点没有此ID,空值为所有,-1为根节点下节点。填写String类型替代Long类型。 * @return parentId */ - public Long getParentId() { + public String getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(String parentId) { this.parentId = parentId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResponse.java index 7360a35a4b..5872c91e96 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class SearchSubjectNewResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private SearchSubjectNewResultData data; - public SearchSubjectNewResponse withData(Object data) { + public SearchSubjectNewResponse withData(SearchSubjectNewResultData data) { this.data = data; return this; } + public SearchSubjectNewResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new SearchSubjectNewResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public SearchSubjectNewResultData getData() { return data; } - public void setData(Object data) { + public void setData(SearchSubjectNewResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResultData.java new file mode 100644 index 0000000000..f91f982da9 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class SearchSubjectNewResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private SearchSubjectNewResultDataValue value; + + public SearchSubjectNewResultData withValue(SearchSubjectNewResultDataValue value) { + this.value = value; + return this; + } + + public SearchSubjectNewResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new SearchSubjectNewResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public SearchSubjectNewResultDataValue getValue() { + return value; + } + + public void setValue(SearchSubjectNewResultDataValue 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; + } + SearchSubjectNewResultData that = (SearchSubjectNewResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchSubjectNewResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResultDataValue.java new file mode 100644 index 0000000000..5a157543cf --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectNewResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class SearchSubjectNewResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public SearchSubjectNewResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public SearchSubjectNewResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public SearchSubjectNewResultDataValue addRecordsItem(CatalogVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public SearchSubjectNewResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * CatalogVO信息。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SearchSubjectNewResultDataValue that = (SearchSubjectNewResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchSubjectNewResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectRequest.java index 0b7278bc46..38bba5d1eb 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectRequest.java @@ -41,7 +41,7 @@ public class SearchSubjectRequest { private String owner; /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 */ public static final class StatusEnum { @@ -162,7 +162,7 @@ public int hashCode() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "parent_id") - private Long parentId; + private String parentId; public SearchSubjectRequest withWorkspace(String workspace) { this.workspace = workspace; @@ -257,7 +257,7 @@ public SearchSubjectRequest withStatus(StatusEnum status) { } /** - * 业务状态。DRAFT(草稿)、PUBLISH_DEVELOPING(发布待审批)、PUBLISHED(已发布)、OFFLINE_DEVELOPING(下线待审批)、OFFLINE(已下线)、REJECT(已驳回)。 + * 业务状态。 枚举值: - DRAFT: 草稿 - PUBLISH_DEVELOPING: 发布待审批 - PUBLISHED: 已发布 - OFFLINE_DEVELOPING: 下线待审批 - OFFLINE: 已下线 - REJECT: 已驳回 * @return status */ public StatusEnum getStatus() { @@ -308,7 +308,7 @@ public SearchSubjectRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ @@ -337,20 +337,20 @@ public void setOffset(Integer offset) { this.offset = offset; } - public SearchSubjectRequest withParentId(Long parentId) { + public SearchSubjectRequest withParentId(String parentId) { this.parentId = parentId; return this; } /** - * 父目录ID,根节点没有此ID,空值为所有,-1为根节点下节点。 + * 父目录ID,根节点没有此ID,空值为所有,-1为根节点下节点。填写String类型替代Long类型。 * @return parentId */ - public Long getParentId() { + public String getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(String parentId) { this.parentId = parentId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResponse.java index 158c208a86..34fff2b790 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class SearchSubjectResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private SearchSubjectResultData data; - public SearchSubjectResponse withData(Object data) { + public SearchSubjectResponse withData(SearchSubjectResultData data) { this.data = data; return this; } + public SearchSubjectResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new SearchSubjectResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public SearchSubjectResultData getData() { return data; } - public void setData(Object data) { + public void setData(SearchSubjectResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResultData.java new file mode 100644 index 0000000000..324a53d4bf --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class SearchSubjectResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private SearchSubjectResultDataValue value; + + public SearchSubjectResultData withValue(SearchSubjectResultDataValue value) { + this.value = value; + return this; + } + + public SearchSubjectResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new SearchSubjectResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public SearchSubjectResultDataValue getValue() { + return value; + } + + public void setValue(SearchSubjectResultDataValue 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; + } + SearchSubjectResultData that = (SearchSubjectResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchSubjectResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResultDataValue.java new file mode 100644 index 0000000000..bed74e26b9 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchSubjectResultDataValue.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * value,统一的返回结果的外层数据结构。 + */ +public class SearchSubjectResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "records") + + private List records = null; + + public SearchSubjectResultDataValue withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public SearchSubjectResultDataValue withRecords(List records) { + this.records = records; + return this; + } + + public SearchSubjectResultDataValue addRecordsItem(CatalogVO recordsItem) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + this.records.add(recordsItem); + return this; + } + + public SearchSubjectResultDataValue withRecords(Consumer> recordsSetter) { + if (this.records == null) { + this.records = new ArrayList<>(); + } + recordsSetter.accept(this.records); + return this; + } + + /** + * 查询到的审批单对象(CatalogVO)数组。 + * @return records + */ + public List getRecords() { + return records; + } + + public void setRecords(List records) { + this.records = records; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SearchSubjectResultDataValue that = (SearchSubjectResultDataValue) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.records, that.records); + } + + @Override + public int hashCode() { + return Objects.hash(total, records); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchSubjectResultDataValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" records: ").append(toIndentedString(records)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchVersionsRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchVersionsRequest.java index ca932b0397..5b682a0671 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchVersionsRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SearchVersionsRequest.java @@ -33,7 +33,7 @@ public class SearchVersionsRequest { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_id") - private Long bizId; + private String bizId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_type") @@ -130,20 +130,20 @@ public void setCreateBy(String createBy) { this.createBy = createBy; } - public SearchVersionsRequest withBizId(Long bizId) { + public SearchVersionsRequest withBizId(String bizId) { this.bizId = bizId; return this; } /** - * 业务定义ID。 + * 业务定义ID,填写String类型替代Long类型。 * @return bizId */ - public Long getBizId() { + public String getBizId() { return bizId; } - public void setBizId(Long bizId) { + public void setBizId(String bizId) { this.bizId = bizId; } @@ -153,7 +153,7 @@ public SearchVersionsRequest withBizType(String bizType) { } /** - * 按业务类型查询。 + * 按业务类型查询,可选业务类型有:ATOMIC_INDEX(原子指标)、DERIVATIVE_INDEX(衍生指标)、DIMENSION(维度)、TIME_CONDITION(时间限定)、DIMENSION_LOGIC_TABLE(维度表)、FACT_LOGIC_TABLE(事实表)、AGGREGATION_LOGIC_TABLE(汇总表)、TABLE_MODEL(关系建模表)、CODE_TABLE(码表)、STANDARD_ELEMENT)(数据标准)、BIZ_METRIC(业务指标)、COMPOUND_METRIC(复合指标)、SUBJECT(主题)、ATOMIC_METRIC(原子指标(新))、DERIVED_METRIC(衍生指标(新))、COMPOSITE_METRIC(复合指标(新))。 * @return bizType */ public String getBizType() { @@ -204,7 +204,7 @@ public SearchVersionsRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecrecyLevelRecordVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecrecyLevelRecordVO.java new file mode 100644 index 0000000000..c4d60f9bea --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecrecyLevelRecordVO.java @@ -0,0 +1,342 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * SecrecyLevelRecordVO + */ +public class SecrecyLevelRecordVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecyLevel_id") + + private String secrecyLevelId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecyLevel_name") + + private String secrecyLevelName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uuid") + + private String uuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "slevel") + + private Integer slevel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "biz_id") + + private String bizId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "biz_type") + + private BizTypeEnum bizType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_by") + + private String updateBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private OffsetDateTime createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_time") + + private OffsetDateTime updateTime; + + public SecrecyLevelRecordVO withId(String id) { + this.id = id; + return this; + } + + /** + * 属性关联密级的ID,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SecrecyLevelRecordVO withSecrecyLevelId(String secrecyLevelId) { + this.secrecyLevelId = secrecyLevelId; + return this; + } + + /** + * 密级的ID,填写String类型替代Long类型。 + * @return secrecyLevelId + */ + public String getSecrecyLevelId() { + return secrecyLevelId; + } + + public void setSecrecyLevelId(String secrecyLevelId) { + this.secrecyLevelId = secrecyLevelId; + } + + public SecrecyLevelRecordVO withSecrecyLevelName(String secrecyLevelName) { + this.secrecyLevelName = secrecyLevelName; + return this; + } + + /** + * 密级名称。 + * @return secrecyLevelName + */ + public String getSecrecyLevelName() { + return secrecyLevelName; + } + + public void setSecrecyLevelName(String secrecyLevelName) { + this.secrecyLevelName = secrecyLevelName; + } + + public SecrecyLevelRecordVO withUuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * 数据安全主键。 + * @return uuid + */ + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public SecrecyLevelRecordVO withSlevel(Integer slevel) { + this.slevel = slevel; + return this; + } + + /** + * 密级等级。 + * @return slevel + */ + public Integer getSlevel() { + return slevel; + } + + public void setSlevel(Integer slevel) { + this.slevel = slevel; + } + + public SecrecyLevelRecordVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 密级描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public SecrecyLevelRecordVO withBizId(String bizId) { + this.bizId = bizId; + return this; + } + + /** + * 业务对象ID,填写String类型替代Long类型。 + * @return bizId + */ + public String getBizId() { + return bizId; + } + + public void setBizId(String bizId) { + this.bizId = bizId; + } + + public SecrecyLevelRecordVO withBizType(BizTypeEnum bizType) { + this.bizType = bizType; + return this; + } + + /** + * Get bizType + * @return bizType + */ + public BizTypeEnum getBizType() { + return bizType; + } + + public void setBizType(BizTypeEnum bizType) { + this.bizType = bizType; + } + + public SecrecyLevelRecordVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建者。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public SecrecyLevelRecordVO withUpdateBy(String updateBy) { + this.updateBy = updateBy; + return this; + } + + /** + * 更新者。 + * @return updateBy + */ + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public SecrecyLevelRecordVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public SecrecyLevelRecordVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime 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; + } + SecrecyLevelRecordVO that = (SecrecyLevelRecordVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.secrecyLevelId, that.secrecyLevelId) + && Objects.equals(this.secrecyLevelName, that.secrecyLevelName) && Objects.equals(this.uuid, that.uuid) + && Objects.equals(this.slevel, that.slevel) && Objects.equals(this.description, that.description) + && Objects.equals(this.bizId, that.bizId) && Objects.equals(this.bizType, that.bizType) + && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.updateBy, that.updateBy) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, + secrecyLevelId, + secrecyLevelName, + uuid, + slevel, + description, + bizId, + bizType, + createBy, + updateBy, + createTime, + updateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecrecyLevelRecordVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" secrecyLevelId: ").append(toIndentedString(secrecyLevelId)).append("\n"); + sb.append(" secrecyLevelName: ").append(toIndentedString(secrecyLevelName)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" slevel: ").append(toIndentedString(slevel)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" bizId: ").append(toIndentedString(bizId)).append("\n"); + sb.append(" bizType: ").append(toIndentedString(bizType)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" updateBy: ").append(toIndentedString(updateBy)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecrecyLevelVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecrecyLevelVO.java new file mode 100644 index 0000000000..9cffdf54d6 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecrecyLevelVO.java @@ -0,0 +1,294 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * SecrecyLevelVO + */ +public class SecrecyLevelVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "uuid") + + private String uuid; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "slevel") + + private Integer slevel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_by") + + private String createBy; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_by") + + private String updateBy; + + @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 = "new_biz") + + private BizVersionManageVO newBiz; + + public SecrecyLevelVO withId(String id) { + this.id = id; + return this; + } + + /** + * 密级ID,填写String类型替代Long类型。 + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SecrecyLevelVO withUuid(String uuid) { + this.uuid = uuid; + return this; + } + + /** + * 数据安全主键。 + * @return uuid + */ + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public SecrecyLevelVO withName(String name) { + this.name = name; + return this; + } + + /** + * 密级名。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SecrecyLevelVO withSlevel(Integer slevel) { + this.slevel = slevel; + return this; + } + + /** + * 密级等级。 + * @return slevel + */ + public Integer getSlevel() { + return slevel; + } + + public void setSlevel(Integer slevel) { + this.slevel = slevel; + } + + public SecrecyLevelVO withDescription(String description) { + this.description = description; + return this; + } + + /** + * 密级描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public SecrecyLevelVO withCreateBy(String createBy) { + this.createBy = createBy; + return this; + } + + /** + * 创建人。 + * @return createBy + */ + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public SecrecyLevelVO withUpdateBy(String updateBy) { + this.updateBy = updateBy; + return this; + } + + /** + * 更新人。 + * @return updateBy + */ + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public SecrecyLevelVO withCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return createTime + */ + public OffsetDateTime getCreateTime() { + return createTime; + } + + public void setCreateTime(OffsetDateTime createTime) { + this.createTime = createTime; + } + + public SecrecyLevelVO withUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * @return updateTime + */ + public OffsetDateTime getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(OffsetDateTime updateTime) { + this.updateTime = updateTime; + } + + public SecrecyLevelVO withNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + return this; + } + + public SecrecyLevelVO withNewBiz(Consumer newBizSetter) { + if (this.newBiz == null) { + this.newBiz = new BizVersionManageVO(); + newBizSetter.accept(this.newBiz); + } + + return this; + } + + /** + * Get newBiz + * @return newBiz + */ + public BizVersionManageVO getNewBiz() { + return newBiz; + } + + public void setNewBiz(BizVersionManageVO newBiz) { + this.newBiz = newBiz; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SecrecyLevelVO that = (SecrecyLevelVO) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.uuid, that.uuid) + && Objects.equals(this.name, that.name) && Objects.equals(this.slevel, that.slevel) + && Objects.equals(this.description, that.description) && Objects.equals(this.createBy, that.createBy) + && Objects.equals(this.updateBy, that.updateBy) && Objects.equals(this.createTime, that.createTime) + && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.newBiz, that.newBiz); + } + + @Override + public int hashCode() { + return Objects.hash(id, uuid, name, slevel, description, createBy, updateBy, createTime, updateTime, newBiz); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecrecyLevelVO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" slevel: ").append(toIndentedString(slevel)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createBy: ").append(toIndentedString(createBy)).append("\n"); + sb.append(" updateBy: ").append(toIndentedString(updateBy)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); + sb.append(" newBiz: ").append(toIndentedString(newBiz)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecretTypeEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecretTypeEnum.java new file mode 100644 index 0000000000..8a227f7559 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SecretTypeEnum.java @@ -0,0 +1,90 @@ +package com.huaweicloud.sdk.dataartsstudio.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: 公开 - SECRET: 秘密 - CONFIDENTIAL: 机密 - SUPER_SECRET: 绝密 + */ +public class SecretTypeEnum { + + /** + * Enum PUBLIC for value: "PUBLIC" + */ + public static final SecretTypeEnum PUBLIC = new SecretTypeEnum("PUBLIC"); + + /** + * Enum SECRET for value: "SECRET" + */ + public static final SecretTypeEnum SECRET = new SecretTypeEnum("SECRET"); + + /** + * Enum CONFIDENTIAL for value: "CONFIDENTIAL" + */ + public static final SecretTypeEnum CONFIDENTIAL = new SecretTypeEnum("CONFIDENTIAL"); + + /** + * Enum SUPER_SECRET for value: "SUPER_SECRET" + */ + public static final SecretTypeEnum SUPER_SECRET = new SecretTypeEnum("SUPER_SECRET"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("PUBLIC", PUBLIC); + map.put("SECRET", SECRET); + map.put("CONFIDENTIAL", CONFIDENTIAL); + map.put("SUPER_SECRET", SUPER_SECRET); + return Collections.unmodifiableMap(map); + } + + private String value; + + SecretTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SecretTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SecretTypeEnum(value)); + } + + public static SecretTypeEnum 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 SecretTypeEnum) { + return this.value.equals(((SecretTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } +} diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAggregationLogicTableByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAggregationLogicTableByIdRequest.java index 4274de744a..86303f42cb 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAggregationLogicTableByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAggregationLogicTableByIdRequest.java @@ -72,7 +72,7 @@ public ShowAggregationLogicTableByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAtomicIndexByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAtomicIndexByIdRequest.java index 48ca2e816d..dd51f3589e 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAtomicIndexByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowAtomicIndexByIdRequest.java @@ -72,7 +72,7 @@ public ShowAtomicIndexByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailRequest.java index 8747e2829f..dc498d5ec6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailRequest.java @@ -67,7 +67,7 @@ public ShowBizCatalogDetailRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailResponse.java index 4fa02f7407..529f9698e4 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizCatalogDetailResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowBizCatalogDetailResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateCatalogResultData data; - public ShowBizCatalogDetailResponse withData(Object data) { + public ShowBizCatalogDetailResponse withData(CreateCatalogResultData data) { this.data = data; return this; } + public ShowBizCatalogDetailResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateCatalogResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateCatalogResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateCatalogResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdRequest.java index 6088ab5df7..6ba6e5fdc1 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdRequest.java @@ -72,7 +72,7 @@ public ShowBizMetricByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdResponse.java index 674dcfd148..20b459e079 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowBizMetricByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowBizMetricByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateBizMetricResultData data; - public ShowBizMetricByIdResponse withData(Object data) { + public ShowBizMetricByIdResponse withData(CreateBizMetricResultData data) { this.data = data; return this; } + public ShowBizMetricByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateBizMetricResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateBizMetricResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateBizMetricResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdRequest.java index 1bf63d079d..acdaab9710 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdRequest.java @@ -67,7 +67,7 @@ public ShowCodeTableByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdResponse.java index 30f851e557..809f307f17 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCodeTableByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowCodeTableByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateCodeTableResultData data; - public ShowCodeTableByIdResponse withData(Object data) { + public ShowCodeTableByIdResponse withData(CreateCodeTableResultData data) { this.data = data; return this; } + public ShowCodeTableByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateCodeTableResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateCodeTableResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateCodeTableResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCompoundMetricByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCompoundMetricByIdRequest.java index 0a5a8a4771..74057f50c3 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCompoundMetricByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowCompoundMetricByIdRequest.java @@ -72,7 +72,7 @@ public ShowCompoundMetricByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdRequest.java index c1c45b0052..a8fac04d52 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdRequest.java @@ -72,7 +72,7 @@ public ShowConditionByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdResponse.java index 110cf16bc5..22ce5345ee 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowConditionByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ShowConditionByIdResultData data; - public ShowConditionByIdResponse withData(Object data) { + public ShowConditionByIdResponse withData(ShowConditionByIdResultData data) { this.data = data; return this; } + public ShowConditionByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ShowConditionByIdResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ShowConditionByIdResultData getData() { return data; } - public void setData(Object data) { + public void setData(ShowConditionByIdResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdResultData.java new file mode 100644 index 0000000000..0bf37ef626 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConditionByIdResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ShowConditionByIdResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ConditionVO value; + + public ShowConditionByIdResultData withValue(ConditionVO value) { + this.value = value; + return this; + } + + public ShowConditionByIdResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ConditionVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ConditionVO getValue() { + return value; + } + + public void setValue(ConditionVO 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; + } + ShowConditionByIdResultData that = (ShowConditionByIdResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowConditionByIdResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConsistencyTaskDetailResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConsistencyTaskDetailResponse.java index fa69ad5266..a355003794 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConsistencyTaskDetailResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowConsistencyTaskDetailResponse.java @@ -292,7 +292,7 @@ public ShowConsistencyTaskDetailResponse withScheduleInterval(String scheduleInt } /** - * 调度间隔,注意:当调度周期为分钟、小时、天时,间隔时间为数字;而当调度周期为周时,调度间隔为星期的英文,如:每周一、周二调度时,schedule_interval为\"MONDAY,TUESDAY\" + * 调度间隔,注意:当调度周期为分钟、小时、天时,间隔时间为数字;而当调度周期为周时,调度间隔为星期的英文,如:每周一、周二调度时,schedule_interval为MONDAY,TUESDAY * @return scheduleInterval */ public String getScheduleInterval() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDataServiceInstanceRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDataServiceInstanceRequest.java new file mode 100644 index 0000000000..0d9fb85d51 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDataServiceInstanceRequest.java @@ -0,0 +1,194 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * Request Object + */ +public class ShowDataServiceInstanceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workspace") + + private String workspace; + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + */ + public static final class DlmTypeEnum { + + /** + * Enum SHARED for value: "SHARED" + */ + public static final DlmTypeEnum SHARED = new DlmTypeEnum("SHARED"); + + /** + * Enum EXCLUSIVE for value: "EXCLUSIVE" + */ + public static final DlmTypeEnum EXCLUSIVE = new DlmTypeEnum("EXCLUSIVE"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("SHARED", SHARED); + map.put("EXCLUSIVE", EXCLUSIVE); + return Collections.unmodifiableMap(map); + } + + private String value; + + DlmTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DlmTypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new DlmTypeEnum(value)); + } + + public static DlmTypeEnum 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 DlmTypeEnum) { + return this.value.equals(((DlmTypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Dlm-Type") + + private DlmTypeEnum dlmType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + public ShowDataServiceInstanceRequest withWorkspace(String workspace) { + this.workspace = workspace; + return this; + } + + /** + * 工作空间ID,获取方法请参见[实例ID和工作空间ID](dataartsstudio_02_0350.xml)。 + * @return workspace + */ + public String getWorkspace() { + return workspace; + } + + public void setWorkspace(String workspace) { + this.workspace = workspace; + } + + public ShowDataServiceInstanceRequest withDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + return this; + } + + /** + * 数据服务的版本类型,指定SHARED共享版或EXCLUSIVE专享版。 + * @return dlmType + */ + public DlmTypeEnum getDlmType() { + return dlmType; + } + + public void setDlmType(DlmTypeEnum dlmType) { + this.dlmType = dlmType; + } + + public ShowDataServiceInstanceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 集群ID。 + * @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; + } + ShowDataServiceInstanceRequest that = (ShowDataServiceInstanceRequest) obj; + return Objects.equals(this.workspace, that.workspace) && Objects.equals(this.dlmType, that.dlmType) + && Objects.equals(this.instanceId, that.instanceId); + } + + @Override + public int hashCode() { + return Objects.hash(workspace, dlmType, instanceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDataServiceInstanceRequest {\n"); + sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); + sb.append(" dlmType: ").append(toIndentedString(dlmType)).append("\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDataServiceInstanceResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDataServiceInstanceResponse.java new file mode 100644 index 0000000000..6b91291389 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDataServiceInstanceResponse.java @@ -0,0 +1,845 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ShowDataServiceInstanceResponse extends SdkResponse { + + @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 = "external_address") + + private String externalAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intranet_address") + + private String intranetAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "intranet_address_ipv6") + + private String intranetAddressIpv6; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_zone_id") + + private String publicZoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "public_zone_name") + + private String publicZoneName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_zone_id") + + private String privateZoneId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "private_zone_name") + + private String privateZoneName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enterprise_project_id") + + private String enterpriseProjectId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private Long createTime; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_user") + + private String createUser; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_namespace_publish_api_num") + + private Integer currentNamespacePublishApiNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "all_namespace_publish_api_num") + + private Integer allNamespacePublishApiNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "api_publishable_num") + + private Integer apiPublishableNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "deletable") + + private Boolean deletable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "charge_status") + + private String chargeStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_id") + + private String orderId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "order_type") + + private String orderType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "period_type") + + private String periodType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_status") + + private String instanceStatus; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "node_num") + + private Integer nodeNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "flavor") + + private FlavorDTO flavor; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_version") + + private String gatewayVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone_name") + + private String availabilityZoneName; + + @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 = "nodes") + + private List nodes = null; + + public ShowDataServiceInstanceResponse 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 ShowDataServiceInstanceResponse withName(String name) { + this.name = name; + return this; + } + + /** + * 集群名称。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ShowDataServiceInstanceResponse withDescription(String description) { + this.description = description; + return this; + } + + /** + * 集群描述信息。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ShowDataServiceInstanceResponse withExternalAddress(String externalAddress) { + this.externalAddress = externalAddress; + return this; + } + + /** + * 公网IP地址。 + * @return externalAddress + */ + public String getExternalAddress() { + return externalAddress; + } + + public void setExternalAddress(String externalAddress) { + this.externalAddress = externalAddress; + } + + public ShowDataServiceInstanceResponse withIntranetAddress(String intranetAddress) { + this.intranetAddress = intranetAddress; + return this; + } + + /** + * 内网IPv4地址。 + * @return intranetAddress + */ + public String getIntranetAddress() { + return intranetAddress; + } + + public void setIntranetAddress(String intranetAddress) { + this.intranetAddress = intranetAddress; + } + + public ShowDataServiceInstanceResponse withIntranetAddressIpv6(String intranetAddressIpv6) { + this.intranetAddressIpv6 = intranetAddressIpv6; + return this; + } + + /** + * 内网IPv6地址。 + * @return intranetAddressIpv6 + */ + public String getIntranetAddressIpv6() { + return intranetAddressIpv6; + } + + public void setIntranetAddressIpv6(String intranetAddressIpv6) { + this.intranetAddressIpv6 = intranetAddressIpv6; + } + + public ShowDataServiceInstanceResponse withPublicZoneId(String publicZoneId) { + this.publicZoneId = publicZoneId; + return this; + } + + /** + * 公网域名ID。 + * @return publicZoneId + */ + public String getPublicZoneId() { + return publicZoneId; + } + + public void setPublicZoneId(String publicZoneId) { + this.publicZoneId = publicZoneId; + } + + public ShowDataServiceInstanceResponse withPublicZoneName(String publicZoneName) { + this.publicZoneName = publicZoneName; + return this; + } + + /** + * 公网域名名称。 + * @return publicZoneName + */ + public String getPublicZoneName() { + return publicZoneName; + } + + public void setPublicZoneName(String publicZoneName) { + this.publicZoneName = publicZoneName; + } + + public ShowDataServiceInstanceResponse withPrivateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + return this; + } + + /** + * 内网域名ID。 + * @return privateZoneId + */ + public String getPrivateZoneId() { + return privateZoneId; + } + + public void setPrivateZoneId(String privateZoneId) { + this.privateZoneId = privateZoneId; + } + + public ShowDataServiceInstanceResponse withPrivateZoneName(String privateZoneName) { + this.privateZoneName = privateZoneName; + return this; + } + + /** + * 内网域名名称。 + * @return privateZoneName + */ + public String getPrivateZoneName() { + return privateZoneName; + } + + public void setPrivateZoneName(String privateZoneName) { + this.privateZoneName = privateZoneName; + } + + public ShowDataServiceInstanceResponse 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 ShowDataServiceInstanceResponse withCreateTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * 创建时间。 + * @return createTime + */ + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public ShowDataServiceInstanceResponse withCreateUser(String createUser) { + this.createUser = createUser; + return this; + } + + /** + * 创建人。 + * @return createUser + */ + public String getCreateUser() { + return createUser; + } + + public void setCreateUser(String createUser) { + this.createUser = createUser; + } + + public ShowDataServiceInstanceResponse withCurrentNamespacePublishApiNum(Integer currentNamespacePublishApiNum) { + this.currentNamespacePublishApiNum = currentNamespacePublishApiNum; + return this; + } + + /** + * 当前工作空间已发布的API数量。 + * @return currentNamespacePublishApiNum + */ + public Integer getCurrentNamespacePublishApiNum() { + return currentNamespacePublishApiNum; + } + + public void setCurrentNamespacePublishApiNum(Integer currentNamespacePublishApiNum) { + this.currentNamespacePublishApiNum = currentNamespacePublishApiNum; + } + + public ShowDataServiceInstanceResponse withAllNamespacePublishApiNum(Integer allNamespacePublishApiNum) { + this.allNamespacePublishApiNum = allNamespacePublishApiNum; + return this; + } + + /** + * 所有工作空间已发布的API数量。 + * @return allNamespacePublishApiNum + */ + public Integer getAllNamespacePublishApiNum() { + return allNamespacePublishApiNum; + } + + public void setAllNamespacePublishApiNum(Integer allNamespacePublishApiNum) { + this.allNamespacePublishApiNum = allNamespacePublishApiNum; + } + + public ShowDataServiceInstanceResponse withApiPublishableNum(Integer apiPublishableNum) { + this.apiPublishableNum = apiPublishableNum; + return this; + } + + /** + * 集群API总配额。 + * @return apiPublishableNum + */ + public Integer getApiPublishableNum() { + return apiPublishableNum; + } + + public void setApiPublishableNum(Integer apiPublishableNum) { + this.apiPublishableNum = apiPublishableNum; + } + + public ShowDataServiceInstanceResponse withDeletable(Boolean deletable) { + this.deletable = deletable; + return this; + } + + /** + * 集群是否可以删除。 + * @return deletable + */ + public Boolean getDeletable() { + return deletable; + } + + public void setDeletable(Boolean deletable) { + this.deletable = deletable; + } + + public ShowDataServiceInstanceResponse withChargeStatus(String chargeStatus) { + this.chargeStatus = chargeStatus; + return this; + } + + /** + * 集群计费状态,NO_CHARGE:未计费、CHARGED:已计费,GRACE:宽限期、RETENTION:保留期。 + * @return chargeStatus + */ + public String getChargeStatus() { + return chargeStatus; + } + + public void setChargeStatus(String chargeStatus) { + this.chargeStatus = chargeStatus; + } + + public ShowDataServiceInstanceResponse withOrderId(String orderId) { + this.orderId = orderId; + return this; + } + + /** + * 订单ID。 + * @return orderId + */ + public String getOrderId() { + return orderId; + } + + public void setOrderId(String orderId) { + this.orderId = orderId; + } + + public ShowDataServiceInstanceResponse withOrderType(String orderType) { + this.orderType = orderType; + return this; + } + + /** + * 订单类型,PERIOD:包周期、ON_DEMAND:按需。 + * @return orderType + */ + public String getOrderType() { + return orderType; + } + + public void setOrderType(String orderType) { + this.orderType = orderType; + } + + public ShowDataServiceInstanceResponse withPeriodType(String periodType) { + this.periodType = periodType; + return this; + } + + /** + * 集群订购周期类型。 + * @return periodType + */ + public String getPeriodType() { + return periodType; + } + + public void setPeriodType(String periodType) { + this.periodType = periodType; + } + + public ShowDataServiceInstanceResponse withInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + return this; + } + + /** + * 集群状态。 + * @return instanceStatus + */ + public String getInstanceStatus() { + return instanceStatus; + } + + public void setInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + } + + public ShowDataServiceInstanceResponse withNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + return this; + } + + /** + * 节点数量。 + * @return nodeNum + */ + public Integer getNodeNum() { + return nodeNum; + } + + public void setNodeNum(Integer nodeNum) { + this.nodeNum = nodeNum; + } + + public ShowDataServiceInstanceResponse withFlavor(FlavorDTO flavor) { + this.flavor = flavor; + return this; + } + + public ShowDataServiceInstanceResponse withFlavor(Consumer flavorSetter) { + if (this.flavor == null) { + this.flavor = new FlavorDTO(); + flavorSetter.accept(this.flavor); + } + + return this; + } + + /** + * Get flavor + * @return flavor + */ + public FlavorDTO getFlavor() { + return flavor; + } + + public void setFlavor(FlavorDTO flavor) { + this.flavor = flavor; + } + + public ShowDataServiceInstanceResponse withGatewayVersion(String gatewayVersion) { + this.gatewayVersion = gatewayVersion; + return this; + } + + /** + * 集群版本号。 + * @return gatewayVersion + */ + public String getGatewayVersion() { + return gatewayVersion; + } + + public void setGatewayVersion(String gatewayVersion) { + this.gatewayVersion = gatewayVersion; + } + + public ShowDataServiceInstanceResponse withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 集群所在可用区编码。 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public ShowDataServiceInstanceResponse withAvailabilityZoneName(String availabilityZoneName) { + this.availabilityZoneName = availabilityZoneName; + return this; + } + + /** + * 集群所在可用区名称。 + * @return availabilityZoneName + */ + public String getAvailabilityZoneName() { + return availabilityZoneName; + } + + public void setAvailabilityZoneName(String availabilityZoneName) { + this.availabilityZoneName = availabilityZoneName; + } + + public ShowDataServiceInstanceResponse withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 集群所在虚拟私有云ID。 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public ShowDataServiceInstanceResponse 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 ShowDataServiceInstanceResponse 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 ShowDataServiceInstanceResponse withNodes(List nodes) { + this.nodes = nodes; + return this; + } + + public ShowDataServiceInstanceResponse addNodesItem(InstanceNodeDTO nodesItem) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + this.nodes.add(nodesItem); + return this; + } + + public ShowDataServiceInstanceResponse withNodes(Consumer> nodesSetter) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + nodesSetter.accept(this.nodes); + return this; + } + + /** + * 集群节点列表。 + * @return nodes + */ + public List getNodes() { + return nodes; + } + + public void setNodes(List nodes) { + this.nodes = nodes; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowDataServiceInstanceResponse that = (ShowDataServiceInstanceResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) + && Objects.equals(this.externalAddress, that.externalAddress) + && Objects.equals(this.intranetAddress, that.intranetAddress) + && Objects.equals(this.intranetAddressIpv6, that.intranetAddressIpv6) + && Objects.equals(this.publicZoneId, that.publicZoneId) + && Objects.equals(this.publicZoneName, that.publicZoneName) + && Objects.equals(this.privateZoneId, that.privateZoneId) + && Objects.equals(this.privateZoneName, that.privateZoneName) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.createUser, that.createUser) + && Objects.equals(this.currentNamespacePublishApiNum, that.currentNamespacePublishApiNum) + && Objects.equals(this.allNamespacePublishApiNum, that.allNamespacePublishApiNum) + && Objects.equals(this.apiPublishableNum, that.apiPublishableNum) + && Objects.equals(this.deletable, that.deletable) && Objects.equals(this.chargeStatus, that.chargeStatus) + && Objects.equals(this.orderId, that.orderId) && Objects.equals(this.orderType, that.orderType) + && Objects.equals(this.periodType, that.periodType) + && Objects.equals(this.instanceStatus, that.instanceStatus) && Objects.equals(this.nodeNum, that.nodeNum) + && Objects.equals(this.flavor, that.flavor) && Objects.equals(this.gatewayVersion, that.gatewayVersion) + && Objects.equals(this.availabilityZone, that.availabilityZone) + && Objects.equals(this.availabilityZoneName, that.availabilityZoneName) + && Objects.equals(this.vpcId, that.vpcId) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.securityGroupId, that.securityGroupId) && Objects.equals(this.nodes, that.nodes); + } + + @Override + public int hashCode() { + return Objects.hash(id, + name, + description, + externalAddress, + intranetAddress, + intranetAddressIpv6, + publicZoneId, + publicZoneName, + privateZoneId, + privateZoneName, + enterpriseProjectId, + createTime, + createUser, + currentNamespacePublishApiNum, + allNamespacePublishApiNum, + apiPublishableNum, + deletable, + chargeStatus, + orderId, + orderType, + periodType, + instanceStatus, + nodeNum, + flavor, + gatewayVersion, + availabilityZone, + availabilityZoneName, + vpcId, + subnetId, + securityGroupId, + nodes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDataServiceInstanceResponse {\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(" externalAddress: ").append(toIndentedString(externalAddress)).append("\n"); + sb.append(" intranetAddress: ").append(toIndentedString(intranetAddress)).append("\n"); + sb.append(" intranetAddressIpv6: ").append(toIndentedString(intranetAddressIpv6)).append("\n"); + sb.append(" publicZoneId: ").append(toIndentedString(publicZoneId)).append("\n"); + sb.append(" publicZoneName: ").append(toIndentedString(publicZoneName)).append("\n"); + sb.append(" privateZoneId: ").append(toIndentedString(privateZoneId)).append("\n"); + sb.append(" privateZoneName: ").append(toIndentedString(privateZoneName)).append("\n"); + sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" createUser: ").append(toIndentedString(createUser)).append("\n"); + sb.append(" currentNamespacePublishApiNum: ") + .append(toIndentedString(currentNamespacePublishApiNum)) + .append("\n"); + sb.append(" allNamespacePublishApiNum: ").append(toIndentedString(allNamespacePublishApiNum)).append("\n"); + sb.append(" apiPublishableNum: ").append(toIndentedString(apiPublishableNum)).append("\n"); + sb.append(" deletable: ").append(toIndentedString(deletable)).append("\n"); + sb.append(" chargeStatus: ").append(toIndentedString(chargeStatus)).append("\n"); + sb.append(" orderId: ").append(toIndentedString(orderId)).append("\n"); + sb.append(" orderType: ").append(toIndentedString(orderType)).append("\n"); + sb.append(" periodType: ").append(toIndentedString(periodType)).append("\n"); + sb.append(" instanceStatus: ").append(toIndentedString(instanceStatus)).append("\n"); + sb.append(" nodeNum: ").append(toIndentedString(nodeNum)).append("\n"); + sb.append(" flavor: ").append(toIndentedString(flavor)).append("\n"); + sb.append(" gatewayVersion: ").append(toIndentedString(gatewayVersion)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); + sb.append(" availabilityZoneName: ").append(toIndentedString(availabilityZoneName)).append("\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(" nodes: ").append(toIndentedString(nodes)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDerivativeIndexByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDerivativeIndexByIdRequest.java index 69d85be344..2925ae17a3 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDerivativeIndexByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDerivativeIndexByIdRequest.java @@ -72,7 +72,7 @@ public ShowDerivativeIndexByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdRequest.java index 9ba72d014f..292b8a970d 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdRequest.java @@ -72,7 +72,7 @@ public ShowDimensionByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdResponse.java index 0f72cbbb99..4b2e3cb796 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowDimensionByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ShowDimensionByIdResultData data; - public ShowDimensionByIdResponse withData(Object data) { + public ShowDimensionByIdResponse withData(ShowDimensionByIdResultData data) { this.data = data; return this; } + public ShowDimensionByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ShowDimensionByIdResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ShowDimensionByIdResultData getData() { return data; } - public void setData(Object data) { + public void setData(ShowDimensionByIdResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdResultData.java new file mode 100644 index 0000000000..7d8d201c8b --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionByIdResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ShowDimensionByIdResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private DimensionVO value; + + public ShowDimensionByIdResultData withValue(DimensionVO value) { + this.value = value; + return this; + } + + public ShowDimensionByIdResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new DimensionVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public DimensionVO getValue() { + return value; + } + + public void setValue(DimensionVO 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; + } + ShowDimensionByIdResultData that = (ShowDimensionByIdResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDimensionByIdResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdRequest.java index 22184593d9..09694fc008 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdRequest.java @@ -72,7 +72,7 @@ public ShowDimensionLogicTableByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdResponse.java index 030769a232..39d13d1604 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowDimensionLogicTableByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ShowDimensionLogicTableByIdResultData data; - public ShowDimensionLogicTableByIdResponse withData(Object data) { + public ShowDimensionLogicTableByIdResponse withData(ShowDimensionLogicTableByIdResultData data) { this.data = data; return this; } + public ShowDimensionLogicTableByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ShowDimensionLogicTableByIdResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ShowDimensionLogicTableByIdResultData getData() { return data; } - public void setData(Object data) { + public void setData(ShowDimensionLogicTableByIdResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdResultData.java new file mode 100644 index 0000000000..3816bb59e0 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowDimensionLogicTableByIdResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ShowDimensionLogicTableByIdResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private DimensionLogicTableVO value; + + public ShowDimensionLogicTableByIdResultData withValue(DimensionLogicTableVO value) { + this.value = value; + return this; + } + + public ShowDimensionLogicTableByIdResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new DimensionLogicTableVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public DimensionLogicTableVO getValue() { + return value; + } + + public void setValue(DimensionLogicTableVO 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; + } + ShowDimensionLogicTableByIdResultData that = (ShowDimensionLogicTableByIdResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowDimensionLogicTableByIdResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdRequest.java index 9a2849a68b..7aa7b7fe0c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdRequest.java @@ -72,7 +72,7 @@ public ShowFactLogicTableByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdResponse.java index 431396f060..7f82bb9329 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowFactLogicTableByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ShowFactLogicTableByIdResultData data; - public ShowFactLogicTableByIdResponse withData(Object data) { + public ShowFactLogicTableByIdResponse withData(ShowFactLogicTableByIdResultData data) { this.data = data; return this; } + public ShowFactLogicTableByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ShowFactLogicTableByIdResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ShowFactLogicTableByIdResultData getData() { return data; } - public void setData(Object data) { + public void setData(ShowFactLogicTableByIdResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdResultData.java new file mode 100644 index 0000000000..6d7181c35a --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowFactLogicTableByIdResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ShowFactLogicTableByIdResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private FactLogicTableVO value; + + public ShowFactLogicTableByIdResultData withValue(FactLogicTableVO value) { + this.value = value; + return this; + } + + public ShowFactLogicTableByIdResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new FactLogicTableVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public FactLogicTableVO getValue() { + return value; + } + + public void setValue(FactLogicTableVO 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; + } + ShowFactLogicTableByIdResultData that = (ShowFactLogicTableByIdResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowFactLogicTableByIdResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowQualityTaskDetailResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowQualityTaskDetailResponse.java index 57ca53a5b5..150af3cf47 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowQualityTaskDetailResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowQualityTaskDetailResponse.java @@ -341,7 +341,7 @@ public ShowQualityTaskDetailResponse withScheduleInterval(String scheduleInterva } /** - * 调度间隔,注意:当调度周期为分钟、小时、天时,间隔时间为数字;而当调度周期为周时,调度间隔为星期的英文,如:每周一、周二调度时,schedule_interval为\"MONDAY,TUESDAY\" + * 调度间隔,注意:当调度周期为分钟、小时、天时,间隔时间为数字;而当调度周期为周时,调度间隔为星期的英文,如:每周一、周二调度时,schedule_interval为MONDAY,TUESDAY * @return scheduleInterval */ public String getScheduleInterval() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdRequest.java index 7c8b8be649..81daa46069 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdRequest.java @@ -72,7 +72,7 @@ public ShowRelationByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdResponse.java index 08bb2d4dae..3e72235ccf 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowRelationByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ShowRelationByIdResultData data; - public ShowRelationByIdResponse withData(Object data) { + public ShowRelationByIdResponse withData(ShowRelationByIdResultData data) { this.data = data; return this; } + public ShowRelationByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ShowRelationByIdResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ShowRelationByIdResultData getData() { return data; } - public void setData(Object data) { + public void setData(ShowRelationByIdResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdResultData.java new file mode 100644 index 0000000000..3643f981f5 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowRelationByIdResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class ShowRelationByIdResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private RelationVO value; + + public ShowRelationByIdResultData withValue(RelationVO value) { + this.value = value; + return this; + } + + public ShowRelationByIdResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new RelationVO(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public RelationVO getValue() { + return value; + } + + public void setValue(RelationVO 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; + } + ShowRelationByIdResultData that = (ShowRelationByIdResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowRelationByIdResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdRequest.java index db60f422d1..9922dbc505 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdRequest.java @@ -67,7 +67,7 @@ public ShowStandardByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdResponse.java index dee4ddb0b5..f57f7f5728 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowStandardByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ShowStandardByIdResultData data; - public ShowStandardByIdResponse withData(Object data) { + public ShowStandardByIdResponse withData(ShowStandardByIdResultData data) { this.data = data; return this; } + public ShowStandardByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ShowStandardByIdResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ShowStandardByIdResultData getData() { return data; } - public void setData(Object data) { + public void setData(ShowStandardByIdResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdResultData.java new file mode 100644 index 0000000000..656fc73f5e --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardByIdResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 数据标准查询返回data结果。 + */ +public class ShowStandardByIdResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private StandElementValueVOList value; + + public ShowStandardByIdResultData withValue(StandElementValueVOList value) { + this.value = value; + return this; + } + + public ShowStandardByIdResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new StandElementValueVOList(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public StandElementValueVOList getValue() { + return value; + } + + public void setValue(StandElementValueVOList 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; + } + ShowStandardByIdResultData that = (ShowStandardByIdResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowStandardByIdResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateRequest.java index 378fb6bb3e..247f8b8c95 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateRequest.java @@ -72,7 +72,7 @@ public ShowStandardTemplateRequest withLimit(Integer limit) { } /** - * 查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 + * 每页查询条数,即查询Y条数据。默认值50,取值范围[1,100]。 * maximum: 100 * @return limit */ diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResponse.java index c55890a55f..5de7d8affb 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowStandardTemplateResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private ShowStandardTemplateResultData data; - public ShowStandardTemplateResponse withData(Object data) { + public ShowStandardTemplateResponse withData(ShowStandardTemplateResultData data) { this.data = data; return this; } + public ShowStandardTemplateResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new ShowStandardTemplateResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public ShowStandardTemplateResultData getData() { return data; } - public void setData(Object data) { + public void setData(ShowStandardTemplateResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResultData.java new file mode 100644 index 0000000000..4aee7c1f28 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ShowStandardTemplateResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private ShowStandardTemplateResultDataValue value; + + public ShowStandardTemplateResultData withValue(ShowStandardTemplateResultDataValue value) { + this.value = value; + return this; + } + + public ShowStandardTemplateResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new ShowStandardTemplateResultDataValue(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public ShowStandardTemplateResultDataValue getValue() { + return value; + } + + public void setValue(ShowStandardTemplateResultDataValue 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; + } + ShowStandardTemplateResultData that = (ShowStandardTemplateResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowStandardTemplateResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResultDataValue.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResultDataValue.java new file mode 100644 index 0000000000..9acf407fa5 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowStandardTemplateResultDataValue.java @@ -0,0 +1,234 @@ +package com.huaweicloud.sdk.dataartsstudio.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 ShowStandardTemplateResultDataValue { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "allFields") + + private List allFields = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "optional") + + private List optional = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "system_default") + + private List systemDefault = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "custom") + + private List custom = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "hasTemplate") + + private Boolean hasTemplate; + + public ShowStandardTemplateResultDataValue withAllFields(List allFields) { + this.allFields = allFields; + return this; + } + + public ShowStandardTemplateResultDataValue addAllFieldsItem(StandElementFieldVO allFieldsItem) { + if (this.allFields == null) { + this.allFields = new ArrayList<>(); + } + this.allFields.add(allFieldsItem); + return this; + } + + public ShowStandardTemplateResultDataValue withAllFields(Consumer> allFieldsSetter) { + if (this.allFields == null) { + this.allFields = new ArrayList<>(); + } + allFieldsSetter.accept(this.allFields); + return this; + } + + /** + * 数据标准全部属性,集合中是单个StandElementFieldVO对象 + * @return allFields + */ + public List getAllFields() { + return allFields; + } + + public void setAllFields(List allFields) { + this.allFields = allFields; + } + + public ShowStandardTemplateResultDataValue withOptional(List optional) { + this.optional = optional; + return this; + } + + public ShowStandardTemplateResultDataValue addOptionalItem(StandElementFieldVO optionalItem) { + if (this.optional == null) { + this.optional = new ArrayList<>(); + } + this.optional.add(optionalItem); + return this; + } + + public ShowStandardTemplateResultDataValue withOptional(Consumer> optionalSetter) { + if (this.optional == null) { + this.optional = new ArrayList<>(); + } + optionalSetter.accept(this.optional); + return this; + } + + /** + * 可选项,集合中是单个StandElementFieldVO对象 + * @return optional + */ + public List getOptional() { + return optional; + } + + public void setOptional(List optional) { + this.optional = optional; + } + + public ShowStandardTemplateResultDataValue withSystemDefault(List systemDefault) { + this.systemDefault = systemDefault; + return this; + } + + public ShowStandardTemplateResultDataValue addSystemDefaultItem(StandElementFieldVO systemDefaultItem) { + if (this.systemDefault == null) { + this.systemDefault = new ArrayList<>(); + } + this.systemDefault.add(systemDefaultItem); + return this; + } + + public ShowStandardTemplateResultDataValue withSystemDefault( + Consumer> systemDefaultSetter) { + if (this.systemDefault == null) { + this.systemDefault = new ArrayList<>(); + } + systemDefaultSetter.accept(this.systemDefault); + return this; + } + + /** + * 系统默认项,集合中是单个StandElementFieldVO对象 + * @return systemDefault + */ + public List getSystemDefault() { + return systemDefault; + } + + public void setSystemDefault(List systemDefault) { + this.systemDefault = systemDefault; + } + + public ShowStandardTemplateResultDataValue withCustom(List custom) { + this.custom = custom; + return this; + } + + public ShowStandardTemplateResultDataValue addCustomItem(StandElementFieldVO customItem) { + if (this.custom == null) { + this.custom = new ArrayList<>(); + } + this.custom.add(customItem); + return this; + } + + public ShowStandardTemplateResultDataValue withCustom(Consumer> customSetter) { + if (this.custom == null) { + this.custom = new ArrayList<>(); + } + customSetter.accept(this.custom); + return this; + } + + /** + * 自定义项,集合中是单个StandElementFieldVO对象 + * @return custom + */ + public List getCustom() { + return custom; + } + + public void setCustom(List custom) { + this.custom = custom; + } + + public ShowStandardTemplateResultDataValue withHasTemplate(Boolean hasTemplate) { + this.hasTemplate = hasTemplate; + return this; + } + + /** + * 是否使用模板 + * @return hasTemplate + */ + public Boolean getHasTemplate() { + return hasTemplate; + } + + public void setHasTemplate(Boolean hasTemplate) { + this.hasTemplate = hasTemplate; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowStandardTemplateResultDataValue that = (ShowStandardTemplateResultDataValue) obj; + return Objects.equals(this.allFields, that.allFields) && Objects.equals(this.optional, that.optional) + && Objects.equals(this.systemDefault, that.systemDefault) && Objects.equals(this.custom, that.custom) + && Objects.equals(this.hasTemplate, that.hasTemplate); + } + + @Override + public int hashCode() { + return Objects.hash(allFields, optional, systemDefault, custom, hasTemplate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowStandardTemplateResultDataValue {\n"); + sb.append(" allFields: ").append(toIndentedString(allFields)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append(" systemDefault: ").append(toIndentedString(systemDefault)).append("\n"); + sb.append(" custom: ").append(toIndentedString(custom)).append("\n"); + sb.append(" hasTemplate: ").append(toIndentedString(hasTemplate)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdRequest.java index f4936d0e0f..2fd3bbd679 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdRequest.java @@ -72,7 +72,7 @@ public ShowTableModelByIdRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdResponse.java index 11d9b3104f..af5b4954aa 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowTableModelByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowTableModelByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateTableModelResultData data; - public ShowTableModelByIdResponse withData(Object data) { + public ShowTableModelByIdResponse withData(CreateTableModelResultData data) { this.data = data; return this; } + public ShowTableModelByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateTableModelResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateTableModelResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateTableModelResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdRequest.java index 2b4d4491d2..22ba434513 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdRequest.java @@ -67,7 +67,7 @@ public ShowWorkspaceDetailByIdRequest withModelId(String modelId) { } /** - * 所属关系建模的模型ID。 + * 所属关系建模的模型ID,填写String类型替代Long类型。 * @return modelId */ public String getModelId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdResponse.java index d8da89e74d..7bc29a3a63 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/ShowWorkspaceDetailByIdResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class ShowWorkspaceDetailByIdResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateWorkspaceResultData data; - public ShowWorkspaceDetailByIdResponse withData(Object data) { + public ShowWorkspaceDetailByIdResponse withData(CreateWorkspaceResultData data) { this.data = data; return this; } + public ShowWorkspaceDetailByIdResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateWorkspaceResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateWorkspaceResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateWorkspaceResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVO.java index 038cb7a30d..d6bf7ace7b 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVO.java @@ -16,15 +16,35 @@ public class StandElementFieldVO { private String fdName; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fd_name_en") + + private String fdNameEn; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "description") private String description; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "descriptionEn") + + private String descriptionEn; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "label") + + private String label; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "disabled") + + private Boolean disabled; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "actived") @@ -41,6 +61,16 @@ public class StandElementFieldVO { private Boolean searchable; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "optional_values") + + private String optionalValues; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "field_type") + + private Integer fieldType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "displayed_name") @@ -88,6 +118,23 @@ public void setFdName(String fdName) { this.fdName = fdName; } + public StandElementFieldVO withFdNameEn(String fdNameEn) { + this.fdNameEn = fdNameEn; + return this; + } + + /** + * 属性英文名称。 + * @return fdNameEn + */ + public String getFdNameEn() { + return fdNameEn; + } + + public void setFdNameEn(String fdNameEn) { + this.fdNameEn = fdNameEn; + } + public StandElementFieldVO withDescription(String description) { this.description = description; return this; @@ -105,20 +152,71 @@ public void setDescription(String description) { this.description = description; } - public StandElementFieldVO withId(Long id) { + public StandElementFieldVO withDescriptionEn(String descriptionEn) { + this.descriptionEn = descriptionEn; + return this; + } + + /** + * 属性英文描述。 + * @return descriptionEn + */ + public String getDescriptionEn() { + return descriptionEn; + } + + public void setDescriptionEn(String descriptionEn) { + this.descriptionEn = descriptionEn; + } + + public StandElementFieldVO withLabel(String label) { + this.label = label; + return this; + } + + /** + * 属性标签。 + * @return label + */ + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public StandElementFieldVO withDisabled(Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * 是否禁用。 + * @return disabled + */ + public Boolean getDisabled() { + return disabled; + } + + public void setDisabled(Boolean disabled) { + this.disabled = disabled; + } + + public StandElementFieldVO withId(String id) { this.id = id; return this; } /** - * 数据标准ID。 + * 数据标准ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -128,7 +226,7 @@ public StandElementFieldVO withActived(Boolean actived) { } /** - * 是否显示,系统默认项必然显示不允许修改。 + * 是否显示,系统默认项必然显示不允许修改。true表示使用数据标准时体现(增改查的时候可以操作该属性),false表示使用数据标准时不体现。 * @return actived */ public Boolean getActived() { @@ -145,7 +243,7 @@ public StandElementFieldVO withRequired(Boolean required) { } /** - * 是否必填。 + * 是否必填。true:必填,false:非必填。 * @return required */ public Boolean getRequired() { @@ -162,7 +260,7 @@ public StandElementFieldVO withSearchable(Boolean searchable) { } /** - * 是否可搜索。 + * 是否可搜索。true表示在数据标准列表页面可搜索,false表示在数据标准列表页面不可搜索。 * @return searchable */ public Boolean getSearchable() { @@ -173,6 +271,40 @@ public void setSearchable(Boolean searchable) { this.searchable = searchable; } + public StandElementFieldVO withOptionalValues(String optionalValues) { + this.optionalValues = optionalValues; + return this; + } + + /** + * 允许值。 + * @return optionalValues + */ + public String getOptionalValues() { + return optionalValues; + } + + public void setOptionalValues(String optionalValues) { + this.optionalValues = optionalValues; + } + + public StandElementFieldVO withFieldType(Integer fieldType) { + this.fieldType = fieldType; + return this; + } + + /** + * 字段类型,0表示系统字段, 1表示自定义字段。 + * @return fieldType + */ + public Integer getFieldType() { + return fieldType; + } + + public void setFieldType(Integer fieldType) { + this.fieldType = fieldType; + } + public StandElementFieldVO withDisplayedName(String displayedName) { this.displayedName = displayedName; return this; @@ -213,7 +345,7 @@ public StandElementFieldVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -230,7 +362,7 @@ public StandElementFieldVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -284,10 +416,14 @@ public boolean equals(java.lang.Object obj) { return false; } StandElementFieldVO that = (StandElementFieldVO) obj; - return Objects.equals(this.fdName, that.fdName) && Objects.equals(this.description, that.description) - && Objects.equals(this.id, that.id) && Objects.equals(this.actived, that.actived) - && Objects.equals(this.required, that.required) && Objects.equals(this.searchable, that.searchable) - && Objects.equals(this.displayedName, that.displayedName) + return Objects.equals(this.fdName, that.fdName) && Objects.equals(this.fdNameEn, that.fdNameEn) + && Objects.equals(this.description, that.description) + && Objects.equals(this.descriptionEn, that.descriptionEn) && Objects.equals(this.label, that.label) + && Objects.equals(this.disabled, that.disabled) && Objects.equals(this.id, that.id) + && Objects.equals(this.actived, that.actived) && Objects.equals(this.required, that.required) + && Objects.equals(this.searchable, that.searchable) + && Objects.equals(this.optionalValues, that.optionalValues) + && Objects.equals(this.fieldType, that.fieldType) && Objects.equals(this.displayedName, that.displayedName) && Objects.equals(this.displayedNameEn, that.displayedNameEn) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.updateBy, that.updateBy); @@ -296,11 +432,17 @@ public boolean equals(java.lang.Object obj) { @Override public int hashCode() { return Objects.hash(fdName, + fdNameEn, description, + descriptionEn, + label, + disabled, id, actived, required, searchable, + optionalValues, + fieldType, displayedName, displayedNameEn, createTime, @@ -314,11 +456,17 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StandElementFieldVO {\n"); sb.append(" fdName: ").append(toIndentedString(fdName)).append("\n"); + sb.append(" fdNameEn: ").append(toIndentedString(fdNameEn)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" descriptionEn: ").append(toIndentedString(descriptionEn)).append("\n"); + sb.append(" label: ").append(toIndentedString(label)).append("\n"); + sb.append(" disabled: ").append(toIndentedString(disabled)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" actived: ").append(toIndentedString(actived)).append("\n"); sb.append(" required: ").append(toIndentedString(required)).append("\n"); sb.append(" searchable: ").append(toIndentedString(searchable)).append("\n"); + sb.append(" optionalValues: ").append(toIndentedString(optionalValues)).append("\n"); + sb.append(" fieldType: ").append(toIndentedString(fieldType)).append("\n"); sb.append(" displayedName: ").append(toIndentedString(displayedName)).append("\n"); sb.append(" displayedNameEn: ").append(toIndentedString(displayedNameEn)).append("\n"); sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVOList.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVOList.java index 83aee42168..a7361332bd 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVOList.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementFieldVOList.java @@ -40,7 +40,7 @@ public StandElementFieldVOList withFields(Consumer> fi } /** - * 属性信息。 + * 属性信息,只读。 * @return fields */ public List getFields() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVO.java index f135a7b1ff..a7a5544eed 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVO.java @@ -24,22 +24,22 @@ public class StandElementValueVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fd_id") - private Long fdId; + private String fdId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "directory_id") - private Long directoryId; + private String directoryId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "row_id") - private Long rowId; + private String rowId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") @@ -100,71 +100,71 @@ public void setFdValue(String fdValue) { this.fdValue = fdValue; } - public StandElementValueVO withFdId(Long fdId) { + public StandElementValueVO withFdId(String fdId) { this.fdId = fdId; return this; } /** - * 属性定义的ID。 + * 属性定义的ID,填写String类型替代Long类型。 * @return fdId */ - public Long getFdId() { + public String getFdId() { return fdId; } - public void setFdId(Long fdId) { + public void setFdId(String fdId) { this.fdId = fdId; } - public StandElementValueVO withDirectoryId(Long directoryId) { + public StandElementValueVO withDirectoryId(String directoryId) { this.directoryId = directoryId; return this; } /** - * 标准所属目录。 + * 标准所属目录,填写String类型替代Long类型。 * @return directoryId */ - public Long getDirectoryId() { + public String getDirectoryId() { return directoryId; } - public void setDirectoryId(Long directoryId) { + public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } - public StandElementValueVO withRowId(Long rowId) { + public StandElementValueVO withRowId(String rowId) { this.rowId = rowId; return this; } /** - * 标准所属行。 + * 标准所属行,填写String类型替代Long类型。 * @return rowId */ - public Long getRowId() { + public String getRowId() { return rowId; } - public void setRowId(Long rowId) { + public void setRowId(String rowId) { this.rowId = rowId; } - public StandElementValueVO withId(Long id) { + public StandElementValueVO withId(String id) { this.id = id; return this; } /** - * 数据标准的ID。 + * 数据标准的ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -225,7 +225,7 @@ public StandElementValueVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -242,7 +242,7 @@ public StandElementValueVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVOList.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVOList.java index f099f1b2e6..a143f8fae0 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVOList.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StandElementValueVOList.java @@ -22,12 +22,12 @@ public class StandElementValueVOList { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "directory_id") - private Long directoryId; + private String directoryId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "directory_path") @@ -37,7 +37,7 @@ public class StandElementValueVOList { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "row_id") - private Long rowId; + private String rowId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "status") @@ -112,37 +112,37 @@ public void setValues(List values) { this.values = values; } - public StandElementValueVOList withId(Long id) { + public StandElementValueVOList withId(String id) { this.id = id; return this; } /** - * ID + * 数据标准的ID,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public StandElementValueVOList withDirectoryId(Long directoryId) { + public StandElementValueVOList withDirectoryId(String directoryId) { this.directoryId = directoryId; return this; } /** - * 标准所属目录。 + * 标准所属目录,填写String类型替代Long类型。 * @return directoryId */ - public Long getDirectoryId() { + public String getDirectoryId() { return directoryId; } - public void setDirectoryId(Long directoryId) { + public void setDirectoryId(String directoryId) { this.directoryId = directoryId; } @@ -163,20 +163,20 @@ public void setDirectoryPath(String directoryPath) { this.directoryPath = directoryPath; } - public StandElementValueVOList withRowId(Long rowId) { + public StandElementValueVOList withRowId(String rowId) { this.rowId = rowId; return this; } /** - * 标准行的ID。 + * 标准行的ID,填写String类型替代Long类型。 * @return rowId */ - public Long getRowId() { + public String getRowId() { return rowId; } - public void setRowId(Long rowId) { + public void setRowId(String rowId) { this.rowId = rowId; } @@ -306,7 +306,7 @@ public StandElementValueVOList withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -323,7 +323,7 @@ public StandElementValueVOList withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticInfo.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticInfo.java new file mode 100644 index 0000000000..4045ade580 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticInfo.java @@ -0,0 +1,572 @@ +package com.huaweicloud.sdk.dataartsstudio.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 StatisticInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "atomic_index") + + private StatisticSchema atomicIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "derivative_index") + + private StatisticSchema derivativeIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compound_metric") + + private StatisticSchema compoundMetric; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "biz_index") + + private StatisticSchema bizIndex; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension") + + private StatisticSchema dimension; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "condition_group") + + private StatisticSchema conditionGroup; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "time_condition") + + private StatisticSchema timeCondition; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "common_condition") + + private StatisticSchema commonCondition; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dimension_logic_table") + + private StatisticSchema dimensionLogicTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "fact_logic_table") + + private StatisticSchema factLogicTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "aggregation_logic_table") + + private StatisticSchema aggregationLogicTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_standard") + + private StatisticSchema dataStandard; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_model") + + private StatisticSchema tableModel; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "lookup_table") + + private StatisticSchema lookupTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "pending_review") + + private Integer pendingReview; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "my_applications") + + private Integer myApplications; + + public StatisticInfo withAtomicIndex(StatisticSchema atomicIndex) { + this.atomicIndex = atomicIndex; + return this; + } + + public StatisticInfo withAtomicIndex(Consumer atomicIndexSetter) { + if (this.atomicIndex == null) { + this.atomicIndex = new StatisticSchema(); + atomicIndexSetter.accept(this.atomicIndex); + } + + return this; + } + + /** + * Get atomicIndex + * @return atomicIndex + */ + public StatisticSchema getAtomicIndex() { + return atomicIndex; + } + + public void setAtomicIndex(StatisticSchema atomicIndex) { + this.atomicIndex = atomicIndex; + } + + public StatisticInfo withDerivativeIndex(StatisticSchema derivativeIndex) { + this.derivativeIndex = derivativeIndex; + return this; + } + + public StatisticInfo withDerivativeIndex(Consumer derivativeIndexSetter) { + if (this.derivativeIndex == null) { + this.derivativeIndex = new StatisticSchema(); + derivativeIndexSetter.accept(this.derivativeIndex); + } + + return this; + } + + /** + * Get derivativeIndex + * @return derivativeIndex + */ + public StatisticSchema getDerivativeIndex() { + return derivativeIndex; + } + + public void setDerivativeIndex(StatisticSchema derivativeIndex) { + this.derivativeIndex = derivativeIndex; + } + + public StatisticInfo withCompoundMetric(StatisticSchema compoundMetric) { + this.compoundMetric = compoundMetric; + return this; + } + + public StatisticInfo withCompoundMetric(Consumer compoundMetricSetter) { + if (this.compoundMetric == null) { + this.compoundMetric = new StatisticSchema(); + compoundMetricSetter.accept(this.compoundMetric); + } + + return this; + } + + /** + * Get compoundMetric + * @return compoundMetric + */ + public StatisticSchema getCompoundMetric() { + return compoundMetric; + } + + public void setCompoundMetric(StatisticSchema compoundMetric) { + this.compoundMetric = compoundMetric; + } + + public StatisticInfo withBizIndex(StatisticSchema bizIndex) { + this.bizIndex = bizIndex; + return this; + } + + public StatisticInfo withBizIndex(Consumer bizIndexSetter) { + if (this.bizIndex == null) { + this.bizIndex = new StatisticSchema(); + bizIndexSetter.accept(this.bizIndex); + } + + return this; + } + + /** + * Get bizIndex + * @return bizIndex + */ + public StatisticSchema getBizIndex() { + return bizIndex; + } + + public void setBizIndex(StatisticSchema bizIndex) { + this.bizIndex = bizIndex; + } + + public StatisticInfo withDimension(StatisticSchema dimension) { + this.dimension = dimension; + return this; + } + + public StatisticInfo withDimension(Consumer dimensionSetter) { + if (this.dimension == null) { + this.dimension = new StatisticSchema(); + dimensionSetter.accept(this.dimension); + } + + return this; + } + + /** + * Get dimension + * @return dimension + */ + public StatisticSchema getDimension() { + return dimension; + } + + public void setDimension(StatisticSchema dimension) { + this.dimension = dimension; + } + + public StatisticInfo withConditionGroup(StatisticSchema conditionGroup) { + this.conditionGroup = conditionGroup; + return this; + } + + public StatisticInfo withConditionGroup(Consumer conditionGroupSetter) { + if (this.conditionGroup == null) { + this.conditionGroup = new StatisticSchema(); + conditionGroupSetter.accept(this.conditionGroup); + } + + return this; + } + + /** + * Get conditionGroup + * @return conditionGroup + */ + public StatisticSchema getConditionGroup() { + return conditionGroup; + } + + public void setConditionGroup(StatisticSchema conditionGroup) { + this.conditionGroup = conditionGroup; + } + + public StatisticInfo withTimeCondition(StatisticSchema timeCondition) { + this.timeCondition = timeCondition; + return this; + } + + public StatisticInfo withTimeCondition(Consumer timeConditionSetter) { + if (this.timeCondition == null) { + this.timeCondition = new StatisticSchema(); + timeConditionSetter.accept(this.timeCondition); + } + + return this; + } + + /** + * Get timeCondition + * @return timeCondition + */ + public StatisticSchema getTimeCondition() { + return timeCondition; + } + + public void setTimeCondition(StatisticSchema timeCondition) { + this.timeCondition = timeCondition; + } + + public StatisticInfo withCommonCondition(StatisticSchema commonCondition) { + this.commonCondition = commonCondition; + return this; + } + + public StatisticInfo withCommonCondition(Consumer commonConditionSetter) { + if (this.commonCondition == null) { + this.commonCondition = new StatisticSchema(); + commonConditionSetter.accept(this.commonCondition); + } + + return this; + } + + /** + * Get commonCondition + * @return commonCondition + */ + public StatisticSchema getCommonCondition() { + return commonCondition; + } + + public void setCommonCondition(StatisticSchema commonCondition) { + this.commonCondition = commonCondition; + } + + public StatisticInfo withDimensionLogicTable(StatisticSchema dimensionLogicTable) { + this.dimensionLogicTable = dimensionLogicTable; + return this; + } + + public StatisticInfo withDimensionLogicTable(Consumer dimensionLogicTableSetter) { + if (this.dimensionLogicTable == null) { + this.dimensionLogicTable = new StatisticSchema(); + dimensionLogicTableSetter.accept(this.dimensionLogicTable); + } + + return this; + } + + /** + * Get dimensionLogicTable + * @return dimensionLogicTable + */ + public StatisticSchema getDimensionLogicTable() { + return dimensionLogicTable; + } + + public void setDimensionLogicTable(StatisticSchema dimensionLogicTable) { + this.dimensionLogicTable = dimensionLogicTable; + } + + public StatisticInfo withFactLogicTable(StatisticSchema factLogicTable) { + this.factLogicTable = factLogicTable; + return this; + } + + public StatisticInfo withFactLogicTable(Consumer factLogicTableSetter) { + if (this.factLogicTable == null) { + this.factLogicTable = new StatisticSchema(); + factLogicTableSetter.accept(this.factLogicTable); + } + + return this; + } + + /** + * Get factLogicTable + * @return factLogicTable + */ + public StatisticSchema getFactLogicTable() { + return factLogicTable; + } + + public void setFactLogicTable(StatisticSchema factLogicTable) { + this.factLogicTable = factLogicTable; + } + + public StatisticInfo withAggregationLogicTable(StatisticSchema aggregationLogicTable) { + this.aggregationLogicTable = aggregationLogicTable; + return this; + } + + public StatisticInfo withAggregationLogicTable(Consumer aggregationLogicTableSetter) { + if (this.aggregationLogicTable == null) { + this.aggregationLogicTable = new StatisticSchema(); + aggregationLogicTableSetter.accept(this.aggregationLogicTable); + } + + return this; + } + + /** + * Get aggregationLogicTable + * @return aggregationLogicTable + */ + public StatisticSchema getAggregationLogicTable() { + return aggregationLogicTable; + } + + public void setAggregationLogicTable(StatisticSchema aggregationLogicTable) { + this.aggregationLogicTable = aggregationLogicTable; + } + + public StatisticInfo withDataStandard(StatisticSchema dataStandard) { + this.dataStandard = dataStandard; + return this; + } + + public StatisticInfo withDataStandard(Consumer dataStandardSetter) { + if (this.dataStandard == null) { + this.dataStandard = new StatisticSchema(); + dataStandardSetter.accept(this.dataStandard); + } + + return this; + } + + /** + * Get dataStandard + * @return dataStandard + */ + public StatisticSchema getDataStandard() { + return dataStandard; + } + + public void setDataStandard(StatisticSchema dataStandard) { + this.dataStandard = dataStandard; + } + + public StatisticInfo withTableModel(StatisticSchema tableModel) { + this.tableModel = tableModel; + return this; + } + + public StatisticInfo withTableModel(Consumer tableModelSetter) { + if (this.tableModel == null) { + this.tableModel = new StatisticSchema(); + tableModelSetter.accept(this.tableModel); + } + + return this; + } + + /** + * Get tableModel + * @return tableModel + */ + public StatisticSchema getTableModel() { + return tableModel; + } + + public void setTableModel(StatisticSchema tableModel) { + this.tableModel = tableModel; + } + + public StatisticInfo withLookupTable(StatisticSchema lookupTable) { + this.lookupTable = lookupTable; + return this; + } + + public StatisticInfo withLookupTable(Consumer lookupTableSetter) { + if (this.lookupTable == null) { + this.lookupTable = new StatisticSchema(); + lookupTableSetter.accept(this.lookupTable); + } + + return this; + } + + /** + * Get lookupTable + * @return lookupTable + */ + public StatisticSchema getLookupTable() { + return lookupTable; + } + + public void setLookupTable(StatisticSchema lookupTable) { + this.lookupTable = lookupTable; + } + + public StatisticInfo withPendingReview(Integer pendingReview) { + this.pendingReview = pendingReview; + return this; + } + + /** + * 待我审核。 + * @return pendingReview + */ + public Integer getPendingReview() { + return pendingReview; + } + + public void setPendingReview(Integer pendingReview) { + this.pendingReview = pendingReview; + } + + public StatisticInfo withMyApplications(Integer myApplications) { + this.myApplications = myApplications; + return this; + } + + /** + * 我的申请。 + * @return myApplications + */ + public Integer getMyApplications() { + return myApplications; + } + + public void setMyApplications(Integer myApplications) { + this.myApplications = myApplications; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StatisticInfo that = (StatisticInfo) obj; + return Objects.equals(this.atomicIndex, that.atomicIndex) + && Objects.equals(this.derivativeIndex, that.derivativeIndex) + && Objects.equals(this.compoundMetric, that.compoundMetric) && Objects.equals(this.bizIndex, that.bizIndex) + && Objects.equals(this.dimension, that.dimension) + && Objects.equals(this.conditionGroup, that.conditionGroup) + && Objects.equals(this.timeCondition, that.timeCondition) + && Objects.equals(this.commonCondition, that.commonCondition) + && Objects.equals(this.dimensionLogicTable, that.dimensionLogicTable) + && Objects.equals(this.factLogicTable, that.factLogicTable) + && Objects.equals(this.aggregationLogicTable, that.aggregationLogicTable) + && Objects.equals(this.dataStandard, that.dataStandard) && Objects.equals(this.tableModel, that.tableModel) + && Objects.equals(this.lookupTable, that.lookupTable) + && Objects.equals(this.pendingReview, that.pendingReview) + && Objects.equals(this.myApplications, that.myApplications); + } + + @Override + public int hashCode() { + return Objects.hash(atomicIndex, + derivativeIndex, + compoundMetric, + bizIndex, + dimension, + conditionGroup, + timeCondition, + commonCondition, + dimensionLogicTable, + factLogicTable, + aggregationLogicTable, + dataStandard, + tableModel, + lookupTable, + pendingReview, + myApplications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StatisticInfo {\n"); + sb.append(" atomicIndex: ").append(toIndentedString(atomicIndex)).append("\n"); + sb.append(" derivativeIndex: ").append(toIndentedString(derivativeIndex)).append("\n"); + sb.append(" compoundMetric: ").append(toIndentedString(compoundMetric)).append("\n"); + sb.append(" bizIndex: ").append(toIndentedString(bizIndex)).append("\n"); + sb.append(" dimension: ").append(toIndentedString(dimension)).append("\n"); + sb.append(" conditionGroup: ").append(toIndentedString(conditionGroup)).append("\n"); + sb.append(" timeCondition: ").append(toIndentedString(timeCondition)).append("\n"); + sb.append(" commonCondition: ").append(toIndentedString(commonCondition)).append("\n"); + sb.append(" dimensionLogicTable: ").append(toIndentedString(dimensionLogicTable)).append("\n"); + sb.append(" factLogicTable: ").append(toIndentedString(factLogicTable)).append("\n"); + sb.append(" aggregationLogicTable: ").append(toIndentedString(aggregationLogicTable)).append("\n"); + sb.append(" dataStandard: ").append(toIndentedString(dataStandard)).append("\n"); + sb.append(" tableModel: ").append(toIndentedString(tableModel)).append("\n"); + sb.append(" lookupTable: ").append(toIndentedString(lookupTable)).append("\n"); + sb.append(" pendingReview: ").append(toIndentedString(pendingReview)).append("\n"); + sb.append(" myApplications: ").append(toIndentedString(myApplications)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticSchema.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticSchema.java new file mode 100644 index 0000000000..edcdcee388 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticSchema.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * StatisticSchema + */ +public class StatisticSchema { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "increase") + + private Integer increase; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private Integer total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "standard_coverage") + + private Double standardCoverage; + + public StatisticSchema withIncrease(Integer increase) { + this.increase = increase; + return this; + } + + /** + * 本月新增。 + * @return increase + */ + public Integer getIncrease() { + return increase; + } + + public void setIncrease(Integer increase) { + this.increase = increase; + } + + public StatisticSchema withTotal(Integer total) { + this.total = total; + return this; + } + + /** + * 总量。 + * @return total + */ + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public StatisticSchema withStandardCoverage(Double standardCoverage) { + this.standardCoverage = standardCoverage; + return this; + } + + /** + * 标准覆盖率。 + * @return standardCoverage + */ + public Double getStandardCoverage() { + return standardCoverage; + } + + public void setStandardCoverage(Double standardCoverage) { + this.standardCoverage = standardCoverage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StatisticSchema that = (StatisticSchema) obj; + return Objects.equals(this.increase, that.increase) && Objects.equals(this.total, that.total) + && Objects.equals(this.standardCoverage, that.standardCoverage); + } + + @Override + public int hashCode() { + return Objects.hash(increase, total, standardCoverage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StatisticSchema {\n"); + sb.append(" increase: ").append(toIndentedString(increase)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" standardCoverage: ").append(toIndentedString(standardCoverage)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticStandardCoverageVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticStandardCoverageVO.java new file mode 100644 index 0000000000..9e0d51ce51 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/StatisticStandardCoverageVO.java @@ -0,0 +1,161 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * StatisticStandardCoverageVO + */ +public class StatisticStandardCoverageVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "all_col_num") + + private String allColNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "col_num") + + private String colNum; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "coverage") + + private Double coverage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "details") + + private List details = null; + + public StatisticStandardCoverageVO withAllColNum(String allColNum) { + this.allColNum = allColNum; + return this; + } + + /** + * 字段总数,填写String类型替代Long类型。 + * @return allColNum + */ + public String getAllColNum() { + return allColNum; + } + + public void setAllColNum(String allColNum) { + this.allColNum = allColNum; + } + + public StatisticStandardCoverageVO withColNum(String colNum) { + this.colNum = colNum; + return this; + } + + /** + * 关联标准字段数,填写String类型替代Long类型。 + * @return colNum + */ + public String getColNum() { + return colNum; + } + + public void setColNum(String colNum) { + this.colNum = colNum; + } + + public StatisticStandardCoverageVO withCoverage(Double coverage) { + this.coverage = coverage; + return this; + } + + /** + * 标准覆盖率。 + * @return coverage + */ + public Double getCoverage() { + return coverage; + } + + public void setCoverage(Double coverage) { + this.coverage = coverage; + } + + public StatisticStandardCoverageVO withDetails(List details) { + this.details = details; + return this; + } + + public StatisticStandardCoverageVO addDetailsItem(AllTableVO detailsItem) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + this.details.add(detailsItem); + return this; + } + + public StatisticStandardCoverageVO withDetails(Consumer> detailsSetter) { + if (this.details == null) { + this.details = new ArrayList<>(); + } + detailsSetter.accept(this.details); + return this; + } + + /** + * 引用表数组。 + * @return details + */ + public List getDetails() { + return details; + } + + public void setDetails(List details) { + this.details = details; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + StatisticStandardCoverageVO that = (StatisticStandardCoverageVO) obj; + return Objects.equals(this.allColNum, that.allColNum) && Objects.equals(this.colNum, that.colNum) + && Objects.equals(this.coverage, that.coverage) && Objects.equals(this.details, that.details); + } + + @Override + public int hashCode() { + return Objects.hash(allColNum, colNum, coverage, details); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StatisticStandardCoverageVO {\n"); + sb.append(" allColNum: ").append(toIndentedString(allColNum)).append("\n"); + sb.append(" colNum: ").append(toIndentedString(colNum)).append("\n"); + sb.append(" coverage: ").append(toIndentedString(coverage)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SubjectParamsVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SubjectParamsVO.java index 1302f89656..fc8cf49db6 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SubjectParamsVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SubjectParamsVO.java @@ -16,7 +16,7 @@ public class SubjectParamsVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name_ch") @@ -56,27 +56,27 @@ public class SubjectParamsVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "parent_id") - private Long parentId; + private String parentId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "self_defined_fields") private List selfDefinedFields = null; - public SubjectParamsVO withId(Long id) { + public SubjectParamsVO withId(String id) { this.id = id; return this; } /** - * 编码。更新时必填,创建时可以为空。 + * 编码。更新时必填,创建时可以为空,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -171,7 +171,7 @@ public SubjectParamsVO withDataOwnerList(String dataOwnerList) { } /** - * 数据owner人员。 + * 数据owner人员。拼接成数组格式:[\"user_1\",\"user_2\"]。 * @return dataOwnerList */ public String getDataOwnerList() { @@ -188,7 +188,7 @@ public SubjectParamsVO withLevel(Integer level) { } /** - * 层级。 + * 层级。取值范围1-7。 * @return level */ public Integer getLevel() { @@ -199,20 +199,20 @@ public void setLevel(Integer level) { this.level = level; } - public SubjectParamsVO withParentId(Long parentId) { + public SubjectParamsVO withParentId(String parentId) { this.parentId = parentId; return this; } /** - * 上层主题ID,首层则为空。 + * 上层主题ID,首层则为空,填写String类型替代Long类型。 * @return parentId */ - public Long getParentId() { + public String getParentId() { return parentId; } - public void setParentId(Long parentId) { + public void setParentId(String parentId) { this.parentId = parentId; } @@ -238,7 +238,7 @@ public SubjectParamsVO withSelfDefinedFields(Consumer> } /** - * 属性自定义项。 + * 自定义项。主题的自定义属性。 * @return selfDefinedFields */ public List getSelfDefinedFields() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SyncStatusEnum.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SyncStatusEnum.java index 26cf00dec2..ed5dd21a6f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SyncStatusEnum.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SyncStatusEnum.java @@ -8,7 +8,7 @@ import java.util.Map; /** - * 同步状态。NO_NEED(未同步)、CREATE_SUCCESS(创建成功)、CREATE_FAILED(创建失败)、UPDATE_SUCCESS(更新成功)、UPDATE_FAILED(更新失败)、SUMMARY_SUCCESS(整体成功)、SUMMARY_FAILED(整体失败)、RUNNING(整体运行)、OFFLINE(已下线)。 + * 同步状态。 枚举值: - NO_NEED: 未同步 - CREATE_SUCCESS: 创建成功 - CREATE_FAILED: 创建失败 - UPDATE_SUCCESS: 更新成功 - UPDATE_FAILED: 更新失败 - SUMMARY_SUCCESS: 整体成功 - SUMMARY_FAILED: 整体失败 - RUNNING: 整体运行 - OFFLINE: 已下线 */ public class SyncStatusEnum { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SyncStatusStatisticVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SyncStatusStatisticVO.java new file mode 100644 index 0000000000..23da7b86ef --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/SyncStatusStatisticVO.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * SyncStatusStatisticVO + */ +public class SyncStatusStatisticVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "success") + + private String success; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "failed") + + private String failed; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "running") + + private String running; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "other") + + private String other; + + public SyncStatusStatisticVO withSuccess(String success) { + this.success = success; + return this; + } + + /** + * 成功数,填写String类型替代Long类型。 + * @return success + */ + public String getSuccess() { + return success; + } + + public void setSuccess(String success) { + this.success = success; + } + + public SyncStatusStatisticVO withFailed(String failed) { + this.failed = failed; + return this; + } + + /** + * 失败数,填写String类型替代Long类型。 + * @return failed + */ + public String getFailed() { + return failed; + } + + public void setFailed(String failed) { + this.failed = failed; + } + + public SyncStatusStatisticVO withRunning(String running) { + this.running = running; + return this; + } + + /** + * 同步中,填写String类型替代Long类型。 + * @return running + */ + public String getRunning() { + return running; + } + + public void setRunning(String running) { + this.running = running; + } + + public SyncStatusStatisticVO withOther(String other) { + this.other = other; + return this; + } + + /** + * 未同步数,填写String类型替代Long类型。 + * @return other + */ + public String getOther() { + return other; + } + + public void setOther(String other) { + this.other = other; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + SyncStatusStatisticVO that = (SyncStatusStatisticVO) obj; + return Objects.equals(this.success, that.success) && Objects.equals(this.failed, that.failed) + && Objects.equals(this.running, that.running) && Objects.equals(this.other, that.other); + } + + @Override + public int hashCode() { + return Objects.hash(success, failed, running, other); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SyncStatusStatisticVO {\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append(" failed: ").append(toIndentedString(failed)).append("\n"); + sb.append(" running: ").append(toIndentedString(running)).append("\n"); + sb.append(" other: ").append(toIndentedString(other)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingDetailVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingDetailVO.java index 621e451ab0..a505fb9029 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingDetailVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingDetailVO.java @@ -17,7 +17,7 @@ public class TableMappingDetailVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "mapping_id") @@ -27,7 +27,7 @@ public class TableMappingDetailVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "target_attr_id") - private Long targetAttrId; + private String targetAttrId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "target_attr_name") @@ -52,12 +52,12 @@ public class TableMappingDetailVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_table_model_ids") - private List srcTableModelIds = null; + private List srcTableModelIds = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_table_id_list") - private List srcTableIdList = null; + private List srcTableIdList = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_attr_ids") @@ -72,7 +72,7 @@ public class TableMappingDetailVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_attr_id_list") - private List srcAttrIdList = null; + private List srcAttrIdList = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "remark") @@ -104,20 +104,20 @@ public class TableMappingDetailVO { private Object targetAttr; - public TableMappingDetailVO withId(Long id) { + public TableMappingDetailVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -138,20 +138,20 @@ public void setMappingId(String mappingId) { this.mappingId = mappingId; } - public TableMappingDetailVO withTargetAttrId(Long targetAttrId) { + public TableMappingDetailVO withTargetAttrId(String targetAttrId) { this.targetAttrId = targetAttrId; return this; } /** - * 目的字段ID。 + * 目的字段ID,填写String类型替代Long类型。 * @return targetAttrId */ - public Long getTargetAttrId() { + public String getTargetAttrId() { return targetAttrId; } - public void setTargetAttrId(Long targetAttrId) { + public void setTargetAttrId(String targetAttrId) { this.targetAttrId = targetAttrId; } @@ -211,7 +211,7 @@ public TableMappingDetailVO withSrcTableNames(Consumer> srcTableNam } /** - * 源表名称数组。 + * 源表名称数组,只读。 * @return srcTableNames */ public List getSrcTableNames() { @@ -244,7 +244,7 @@ public TableMappingDetailVO withSrcTableDbNames(Consumer> srcTableD } /** - * 源表db名称数组。 + * 源表db名称数组,只读。 * @return srcTableDbNames */ public List getSrcTableDbNames() { @@ -255,12 +255,12 @@ public void setSrcTableDbNames(List srcTableDbNames) { this.srcTableDbNames = srcTableDbNames; } - public TableMappingDetailVO withSrcTableModelIds(List srcTableModelIds) { + public TableMappingDetailVO withSrcTableModelIds(List srcTableModelIds) { this.srcTableModelIds = srcTableModelIds; return this; } - public TableMappingDetailVO addSrcTableModelIdsItem(Long srcTableModelIdsItem) { + public TableMappingDetailVO addSrcTableModelIdsItem(String srcTableModelIdsItem) { if (this.srcTableModelIds == null) { this.srcTableModelIds = new ArrayList<>(); } @@ -268,7 +268,7 @@ public TableMappingDetailVO addSrcTableModelIdsItem(Long srcTableModelIdsItem) { return this; } - public TableMappingDetailVO withSrcTableModelIds(Consumer> srcTableModelIdsSetter) { + public TableMappingDetailVO withSrcTableModelIds(Consumer> srcTableModelIdsSetter) { if (this.srcTableModelIds == null) { this.srcTableModelIds = new ArrayList<>(); } @@ -277,23 +277,23 @@ public TableMappingDetailVO withSrcTableModelIds(Consumer> srcTableMo } /** - * 源表在关系建模中的模型ID数组。 + * 源表在关系建模中的模型ID数组,只读,填写String类型替代Long类型。 * @return srcTableModelIds */ - public List getSrcTableModelIds() { + public List getSrcTableModelIds() { return srcTableModelIds; } - public void setSrcTableModelIds(List srcTableModelIds) { + public void setSrcTableModelIds(List srcTableModelIds) { this.srcTableModelIds = srcTableModelIds; } - public TableMappingDetailVO withSrcTableIdList(List srcTableIdList) { + public TableMappingDetailVO withSrcTableIdList(List srcTableIdList) { this.srcTableIdList = srcTableIdList; return this; } - public TableMappingDetailVO addSrcTableIdListItem(Long srcTableIdListItem) { + public TableMappingDetailVO addSrcTableIdListItem(String srcTableIdListItem) { if (this.srcTableIdList == null) { this.srcTableIdList = new ArrayList<>(); } @@ -301,7 +301,7 @@ public TableMappingDetailVO addSrcTableIdListItem(Long srcTableIdListItem) { return this; } - public TableMappingDetailVO withSrcTableIdList(Consumer> srcTableIdListSetter) { + public TableMappingDetailVO withSrcTableIdList(Consumer> srcTableIdListSetter) { if (this.srcTableIdList == null) { this.srcTableIdList = new ArrayList<>(); } @@ -310,14 +310,14 @@ public TableMappingDetailVO withSrcTableIdList(Consumer> srcTableIdLi } /** - * 源表ID数组。 + * 源表ID数组,只读,填写String类型替代Long类型。 * @return srcTableIdList */ - public List getSrcTableIdList() { + public List getSrcTableIdList() { return srcTableIdList; } - public void setSrcTableIdList(List srcTableIdList) { + public void setSrcTableIdList(List srcTableIdList) { this.srcTableIdList = srcTableIdList; } @@ -360,7 +360,7 @@ public TableMappingDetailVO withSrcAttrNames(Consumer> srcAttrNames } /** - * 源表字段名称数组。 + * 源表字段名称数组,只读。 * @return srcAttrNames */ public List getSrcAttrNames() { @@ -371,12 +371,12 @@ public void setSrcAttrNames(List srcAttrNames) { this.srcAttrNames = srcAttrNames; } - public TableMappingDetailVO withSrcAttrIdList(List srcAttrIdList) { + public TableMappingDetailVO withSrcAttrIdList(List srcAttrIdList) { this.srcAttrIdList = srcAttrIdList; return this; } - public TableMappingDetailVO addSrcAttrIdListItem(Long srcAttrIdListItem) { + public TableMappingDetailVO addSrcAttrIdListItem(String srcAttrIdListItem) { if (this.srcAttrIdList == null) { this.srcAttrIdList = new ArrayList<>(); } @@ -384,7 +384,7 @@ public TableMappingDetailVO addSrcAttrIdListItem(Long srcAttrIdListItem) { return this; } - public TableMappingDetailVO withSrcAttrIdList(Consumer> srcAttrIdListSetter) { + public TableMappingDetailVO withSrcAttrIdList(Consumer> srcAttrIdListSetter) { if (this.srcAttrIdList == null) { this.srcAttrIdList = new ArrayList<>(); } @@ -393,14 +393,14 @@ public TableMappingDetailVO withSrcAttrIdList(Consumer> srcAttrIdList } /** - * 源表字段ID数组。 + * 源表字段ID数组,只读,填写String类型替代Long类型。 * @return srcAttrIdList */ - public List getSrcAttrIdList() { + public List getSrcAttrIdList() { return srcAttrIdList; } - public void setSrcAttrIdList(List srcAttrIdList) { + public void setSrcAttrIdList(List srcAttrIdList) { this.srcAttrIdList = srcAttrIdList; } @@ -427,7 +427,7 @@ public TableMappingDetailVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -444,7 +444,7 @@ public TableMappingDetailVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingVO.java index f0b0f4513e..95fcf90447 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableMappingVO.java @@ -17,7 +17,7 @@ public class TableMappingVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -32,12 +32,12 @@ public class TableMappingVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "target_table_id") - private Long targetTableId; + private String targetTableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_model_id") - private Long srcModelId; + private String srcModelId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "src_model_name") @@ -89,20 +89,20 @@ public class TableMappingVO { private String updateBy; - public TableMappingVO withId(Long id) { + public TableMappingVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -140,37 +140,37 @@ public void setDescription(String description) { this.description = description; } - public TableMappingVO withTargetTableId(Long targetTableId) { + public TableMappingVO withTargetTableId(String targetTableId) { this.targetTableId = targetTableId; return this; } /** - * 目的表ID。 + * 目的表ID,填写String类型替代Long类型。 * @return targetTableId */ - public Long getTargetTableId() { + public String getTargetTableId() { return targetTableId; } - public void setTargetTableId(Long targetTableId) { + public void setTargetTableId(String targetTableId) { this.targetTableId = targetTableId; } - public TableMappingVO withSrcModelId(Long srcModelId) { + public TableMappingVO withSrcModelId(String srcModelId) { this.srcModelId = srcModelId; return this; } /** - * 来源表在关系建模中的模型ID。 + * 来源表在关系建模中的模型ID,填写String类型替代Long类型。 * @return srcModelId */ - public Long getSrcModelId() { + public String getSrcModelId() { return srcModelId; } - public void setSrcModelId(Long srcModelId) { + public void setSrcModelId(String srcModelId) { this.srcModelId = srcModelId; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelAttributeVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelAttributeVO.java index 96bbec30f0..4310924ea5 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelAttributeVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelAttributeVO.java @@ -97,7 +97,7 @@ public class TableModelAttributeVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "table_model_id") - private Long tableModelId; + private String tableModelId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "create_time") @@ -114,10 +114,15 @@ public class TableModelAttributeVO { private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secrecy_levels") + + private List secrecyLevels = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stand_row_id") - private Long standRowId; + private String standRowId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "stand_row_name") @@ -139,13 +144,33 @@ public class TableModelAttributeVO { private List selfDefinedFields = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_logic_attr_id") + + private String relatedLogicAttrId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_logic_attr_name") + + private String relatedLogicAttrName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_logic_attr_name_en") + + private String relatedLogicAttrNameEn; + public TableModelAttributeVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -411,20 +436,20 @@ public void setOrdinal(Integer ordinal) { this.ordinal = ordinal; } - public TableModelAttributeVO withTableModelId(Long tableModelId) { + public TableModelAttributeVO withTableModelId(String tableModelId) { this.tableModelId = tableModelId; return this; } /** - * 所属关系建模的模型ID。 + * 所属关系建模的模型ID,填写String类型替代Long类型。 * @return tableModelId */ - public Long getTableModelId() { + public String getTableModelId() { return tableModelId; } - public void setTableModelId(Long tableModelId) { + public void setTableModelId(String tableModelId) { this.tableModelId = tableModelId; } @@ -434,7 +459,7 @@ public TableModelAttributeVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -451,7 +476,7 @@ public TableModelAttributeVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -484,7 +509,7 @@ public TableModelAttributeVO withTags(Consumer> tagsSetter) { } /** - * 表标签。 + * 表标签,只读。 * @return tags */ public List getTags() { @@ -495,20 +520,53 @@ public void setTags(List tags) { this.tags = tags; } - public TableModelAttributeVO withStandRowId(Long standRowId) { + public TableModelAttributeVO withSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + return this; + } + + public TableModelAttributeVO addSecrecyLevelsItem(SecrecyLevelVO secrecyLevelsItem) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + this.secrecyLevels.add(secrecyLevelsItem); + return this; + } + + public TableModelAttributeVO withSecrecyLevels(Consumer> secrecyLevelsSetter) { + if (this.secrecyLevels == null) { + this.secrecyLevels = new ArrayList<>(); + } + secrecyLevelsSetter.accept(this.secrecyLevels); + return this; + } + + /** + * 密级 + * @return secrecyLevels + */ + public List getSecrecyLevels() { + return secrecyLevels; + } + + public void setSecrecyLevels(List secrecyLevels) { + this.secrecyLevels = secrecyLevels; + } + + public TableModelAttributeVO withStandRowId(String standRowId) { this.standRowId = standRowId; return this; } /** - * 关联的数据标准的ID。 + * 关联的数据标准的ID,填写String类型替代Long类型。 * @return standRowId */ - public Long getStandRowId() { + public String getStandRowId() { return standRowId; } - public void setStandRowId(Long standRowId) { + public void setStandRowId(String standRowId) { this.standRowId = standRowId; } @@ -518,7 +576,7 @@ public TableModelAttributeVO withStandRowName(String standRowName) { } /** - * 关联的数据标准名称。 + * 关联的数据标准名称,只读。 * @return standRowName */ public String getStandRowName() { @@ -551,7 +609,7 @@ public TableModelAttributeVO withQualityInfos(Consumer> qual } /** - * 质量信息。 + * 质量信息,只读。 * @return qualityInfos */ public List getQualityInfos() { @@ -612,6 +670,74 @@ public void setSelfDefinedFields(List selfDefinedFields) { this.selfDefinedFields = selfDefinedFields; } + public TableModelAttributeVO withCode(String code) { + this.code = code; + return this; + } + + /** + * 逻辑属性编码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public TableModelAttributeVO withRelatedLogicAttrId(String relatedLogicAttrId) { + this.relatedLogicAttrId = relatedLogicAttrId; + return this; + } + + /** + * 关联逻辑属性ID,填写String类型替代Long类型。 + * @return relatedLogicAttrId + */ + public String getRelatedLogicAttrId() { + return relatedLogicAttrId; + } + + public void setRelatedLogicAttrId(String relatedLogicAttrId) { + this.relatedLogicAttrId = relatedLogicAttrId; + } + + public TableModelAttributeVO withRelatedLogicAttrName(String relatedLogicAttrName) { + this.relatedLogicAttrName = relatedLogicAttrName; + return this; + } + + /** + * 关联逻辑实体属性中文名称 + * @return relatedLogicAttrName + */ + public String getRelatedLogicAttrName() { + return relatedLogicAttrName; + } + + public void setRelatedLogicAttrName(String relatedLogicAttrName) { + this.relatedLogicAttrName = relatedLogicAttrName; + } + + public TableModelAttributeVO withRelatedLogicAttrNameEn(String relatedLogicAttrNameEn) { + this.relatedLogicAttrNameEn = relatedLogicAttrNameEn; + return this; + } + + /** + * 关联逻辑实体属性英文名称 + * @return relatedLogicAttrNameEn + */ + public String getRelatedLogicAttrNameEn() { + return relatedLogicAttrNameEn; + } + + public void setRelatedLogicAttrNameEn(String relatedLogicAttrNameEn) { + this.relatedLogicAttrNameEn = relatedLogicAttrNameEn; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -633,10 +759,13 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.extendField, that.extendField) && Objects.equals(this.notNull, that.notNull) && Objects.equals(this.ordinal, that.ordinal) && Objects.equals(this.tableModelId, that.tableModelId) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) - && Objects.equals(this.tags, that.tags) && Objects.equals(this.standRowId, that.standRowId) - && Objects.equals(this.standRowName, that.standRowName) + && Objects.equals(this.tags, that.tags) && Objects.equals(this.secrecyLevels, that.secrecyLevels) + && Objects.equals(this.standRowId, that.standRowId) && Objects.equals(this.standRowName, that.standRowName) && Objects.equals(this.qualityInfos, that.qualityInfos) && Objects.equals(this.alias, that.alias) - && Objects.equals(this.selfDefinedFields, that.selfDefinedFields); + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) && Objects.equals(this.code, that.code) + && Objects.equals(this.relatedLogicAttrId, that.relatedLogicAttrId) + && Objects.equals(this.relatedLogicAttrName, that.relatedLogicAttrName) + && Objects.equals(this.relatedLogicAttrNameEn, that.relatedLogicAttrNameEn); } @Override @@ -661,11 +790,16 @@ public int hashCode() { createTime, updateTime, tags, + secrecyLevels, standRowId, standRowName, qualityInfos, alias, - selfDefinedFields); + selfDefinedFields, + code, + relatedLogicAttrId, + relatedLogicAttrName, + relatedLogicAttrNameEn); } @Override @@ -692,11 +826,16 @@ public String toString() { sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); sb.append(" updateTime: ").append(toIndentedString(updateTime)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" secrecyLevels: ").append(toIndentedString(secrecyLevels)).append("\n"); sb.append(" standRowId: ").append(toIndentedString(standRowId)).append("\n"); sb.append(" standRowName: ").append(toIndentedString(standRowName)).append("\n"); sb.append(" qualityInfos: ").append(toIndentedString(qualityInfos)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" relatedLogicAttrId: ").append(toIndentedString(relatedLogicAttrId)).append("\n"); + sb.append(" relatedLogicAttrName: ").append(toIndentedString(relatedLogicAttrName)).append("\n"); + sb.append(" relatedLogicAttrNameEn: ").append(toIndentedString(relatedLogicAttrNameEn)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelStatisticVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelStatisticVO.java new file mode 100644 index 0000000000..ba16e37bc9 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelStatisticVO.java @@ -0,0 +1,312 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * TableModelStatisticVO + */ +public class TableModelStatisticVO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total") + + private StatisticStandardCoverageVO total; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "published") + + private StatisticStandardCoverageVO published; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sync_total") + + private SyncStatusStatisticVO syncTotal; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "physical_table") + + private SyncStatusStatisticVO physicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "technical_asset") + + private SyncStatusStatisticVO technicalAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "business_asset") + + private SyncStatusStatisticVO businessAsset; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "meta_data_link") + + private SyncStatusStatisticVO metaDataLink; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "data_quality") + + private SyncStatusStatisticVO dataQuality; + + public TableModelStatisticVO withTotal(StatisticStandardCoverageVO total) { + this.total = total; + return this; + } + + public TableModelStatisticVO withTotal(Consumer totalSetter) { + if (this.total == null) { + this.total = new StatisticStandardCoverageVO(); + totalSetter.accept(this.total); + } + + return this; + } + + /** + * Get total + * @return total + */ + public StatisticStandardCoverageVO getTotal() { + return total; + } + + public void setTotal(StatisticStandardCoverageVO total) { + this.total = total; + } + + public TableModelStatisticVO withPublished(StatisticStandardCoverageVO published) { + this.published = published; + return this; + } + + public TableModelStatisticVO withPublished(Consumer publishedSetter) { + if (this.published == null) { + this.published = new StatisticStandardCoverageVO(); + publishedSetter.accept(this.published); + } + + return this; + } + + /** + * Get published + * @return published + */ + public StatisticStandardCoverageVO getPublished() { + return published; + } + + public void setPublished(StatisticStandardCoverageVO published) { + this.published = published; + } + + public TableModelStatisticVO withSyncTotal(SyncStatusStatisticVO syncTotal) { + this.syncTotal = syncTotal; + return this; + } + + public TableModelStatisticVO withSyncTotal(Consumer syncTotalSetter) { + if (this.syncTotal == null) { + this.syncTotal = new SyncStatusStatisticVO(); + syncTotalSetter.accept(this.syncTotal); + } + + return this; + } + + /** + * Get syncTotal + * @return syncTotal + */ + public SyncStatusStatisticVO getSyncTotal() { + return syncTotal; + } + + public void setSyncTotal(SyncStatusStatisticVO syncTotal) { + this.syncTotal = syncTotal; + } + + public TableModelStatisticVO withPhysicalTable(SyncStatusStatisticVO physicalTable) { + this.physicalTable = physicalTable; + return this; + } + + public TableModelStatisticVO withPhysicalTable(Consumer physicalTableSetter) { + if (this.physicalTable == null) { + this.physicalTable = new SyncStatusStatisticVO(); + physicalTableSetter.accept(this.physicalTable); + } + + return this; + } + + /** + * Get physicalTable + * @return physicalTable + */ + public SyncStatusStatisticVO getPhysicalTable() { + return physicalTable; + } + + public void setPhysicalTable(SyncStatusStatisticVO physicalTable) { + this.physicalTable = physicalTable; + } + + public TableModelStatisticVO withTechnicalAsset(SyncStatusStatisticVO technicalAsset) { + this.technicalAsset = technicalAsset; + return this; + } + + public TableModelStatisticVO withTechnicalAsset(Consumer technicalAssetSetter) { + if (this.technicalAsset == null) { + this.technicalAsset = new SyncStatusStatisticVO(); + technicalAssetSetter.accept(this.technicalAsset); + } + + return this; + } + + /** + * Get technicalAsset + * @return technicalAsset + */ + public SyncStatusStatisticVO getTechnicalAsset() { + return technicalAsset; + } + + public void setTechnicalAsset(SyncStatusStatisticVO technicalAsset) { + this.technicalAsset = technicalAsset; + } + + public TableModelStatisticVO withBusinessAsset(SyncStatusStatisticVO businessAsset) { + this.businessAsset = businessAsset; + return this; + } + + public TableModelStatisticVO withBusinessAsset(Consumer businessAssetSetter) { + if (this.businessAsset == null) { + this.businessAsset = new SyncStatusStatisticVO(); + businessAssetSetter.accept(this.businessAsset); + } + + return this; + } + + /** + * Get businessAsset + * @return businessAsset + */ + public SyncStatusStatisticVO getBusinessAsset() { + return businessAsset; + } + + public void setBusinessAsset(SyncStatusStatisticVO businessAsset) { + this.businessAsset = businessAsset; + } + + public TableModelStatisticVO withMetaDataLink(SyncStatusStatisticVO metaDataLink) { + this.metaDataLink = metaDataLink; + return this; + } + + public TableModelStatisticVO withMetaDataLink(Consumer metaDataLinkSetter) { + if (this.metaDataLink == null) { + this.metaDataLink = new SyncStatusStatisticVO(); + metaDataLinkSetter.accept(this.metaDataLink); + } + + return this; + } + + /** + * Get metaDataLink + * @return metaDataLink + */ + public SyncStatusStatisticVO getMetaDataLink() { + return metaDataLink; + } + + public void setMetaDataLink(SyncStatusStatisticVO metaDataLink) { + this.metaDataLink = metaDataLink; + } + + public TableModelStatisticVO withDataQuality(SyncStatusStatisticVO dataQuality) { + this.dataQuality = dataQuality; + return this; + } + + public TableModelStatisticVO withDataQuality(Consumer dataQualitySetter) { + if (this.dataQuality == null) { + this.dataQuality = new SyncStatusStatisticVO(); + dataQualitySetter.accept(this.dataQuality); + } + + return this; + } + + /** + * Get dataQuality + * @return dataQuality + */ + public SyncStatusStatisticVO getDataQuality() { + return dataQuality; + } + + public void setDataQuality(SyncStatusStatisticVO dataQuality) { + this.dataQuality = dataQuality; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + TableModelStatisticVO that = (TableModelStatisticVO) obj; + return Objects.equals(this.total, that.total) && Objects.equals(this.published, that.published) + && Objects.equals(this.syncTotal, that.syncTotal) && Objects.equals(this.physicalTable, that.physicalTable) + && Objects.equals(this.technicalAsset, that.technicalAsset) + && Objects.equals(this.businessAsset, that.businessAsset) + && Objects.equals(this.metaDataLink, that.metaDataLink) + && Objects.equals(this.dataQuality, that.dataQuality); + } + + @Override + public int hashCode() { + return Objects + .hash(total, published, syncTotal, physicalTable, technicalAsset, businessAsset, metaDataLink, dataQuality); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TableModelStatisticVO {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" published: ").append(toIndentedString(published)).append("\n"); + sb.append(" syncTotal: ").append(toIndentedString(syncTotal)).append("\n"); + sb.append(" physicalTable: ").append(toIndentedString(physicalTable)).append("\n"); + sb.append(" technicalAsset: ").append(toIndentedString(technicalAsset)).append("\n"); + sb.append(" businessAsset: ").append(toIndentedString(businessAsset)).append("\n"); + sb.append(" metaDataLink: ").append(toIndentedString(metaDataLink)).append("\n"); + sb.append(" dataQuality: ").append(toIndentedString(dataQuality)).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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelUpdateVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelUpdateVO.java index 3c1d540231..52fcbe63ab 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelUpdateVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelUpdateVO.java @@ -22,17 +22,17 @@ public class TableModelUpdateVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model_id") - private Long modelId; + private String modelId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "parent_table_id") - private Long parentTableId; + private String parentTableId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "parent_table_name") @@ -142,12 +142,12 @@ public class TableModelUpdateVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "logic_tb_id") - private Long logicTbId; + private String logicTbId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_catalog_id") - private Long bizCatalogId; + private String bizCatalogId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "catalog_path") @@ -232,7 +232,7 @@ public class TableModelUpdateVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l1_id") - private Long l1Id; + private String l1Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l2_id") @@ -242,7 +242,7 @@ public class TableModelUpdateVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "l3_id") - private Long l3Id; + private String l3Id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "partition_conf") @@ -292,10 +292,10 @@ public class TableModelUpdateVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "quality_id") - private Long qualityId; + private String qualityId; /** - * DISTRIBUTE BY [HASH(column)|REPLICATION]。HASH(对指定的列进行Hash,通过映射,把数据分布到指定DN)、REPLICATION(表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据)。 + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 */ public static final class DistributeEnum { @@ -384,6 +384,11 @@ public int hashCode() { private SyncStatusEnum physicalTable; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_physical_table") + + private SyncStatusEnum devPhysicalTable; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "technical_asset") @@ -419,54 +424,89 @@ public int hashCode() { private List selfDefinedFields = null; - public TableModelUpdateVO withId(Long id) { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version") + + private String devVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version") + + private String prodVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version_name") + + private String devVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version_name") + + private String prodVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_related_physical_table") + + private Boolean hasRelatedPhysicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_related_logic_table") + + private Boolean hasRelatedLogicTable; + + public TableModelUpdateVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public TableModelUpdateVO withModelId(Long modelId) { + public TableModelUpdateVO withModelId(String modelId) { this.modelId = modelId; return this; } /** - * 所属关系建模的模型ID。 + * 所属关系建模的模型ID,填写String类型替代Long类型。 * @return modelId */ - public Long getModelId() { + public String getModelId() { return modelId; } - public void setModelId(Long modelId) { + public void setModelId(String modelId) { this.modelId = modelId; } - public TableModelUpdateVO withParentTableId(Long parentTableId) { + public TableModelUpdateVO withParentTableId(String parentTableId) { this.parentTableId = parentTableId; return this; } /** - * 父表ID。 + * 父表ID,填写String类型替代Long类型。 * @return parentTableId */ - public Long getParentTableId() { + public String getParentTableId() { return parentTableId; } - public void setParentTableId(Long parentTableId) { + public void setParentTableId(String parentTableId) { this.parentTableId = parentTableId; } @@ -476,7 +516,7 @@ public TableModelUpdateVO withParentTableName(String parentTableName) { } /** - * 父表名称。 + * 父表名称,只读。 * @return parentTableName */ public String getParentTableName() { @@ -493,7 +533,7 @@ public TableModelUpdateVO withParentTableCode(String parentTableCode) { } /** - * 父表编码。 + * 父表编码,只读。 * @return parentTableCode */ public String getParentTableCode() { @@ -604,7 +644,7 @@ public TableModelUpdateVO withTableType(String tableType) { } /** - * 表类型。 + * 表类型,只读。 * @return tableType */ public String getTableType() { @@ -740,7 +780,7 @@ public TableModelUpdateVO withTbGuid(String tbGuid) { } /** - * 表物化后的guid。 + * 表物化后的guid,只读。 * @return tbGuid */ public String getTbGuid() { @@ -757,7 +797,7 @@ public TableModelUpdateVO withTbId(String tbId) { } /** - * 数据表ID。 + * 数据表ID,只读。 * @return tbId */ public String getTbId() { @@ -791,7 +831,7 @@ public TableModelUpdateVO withLogicTbGuid(String logicTbGuid) { } /** - * 逻辑实体的guid。 + * 逻辑实体的guid,只读。 * @return logicTbGuid */ public String getLogicTbGuid() { @@ -836,37 +876,37 @@ public void setStatus(BizStatusEnum status) { this.status = status; } - public TableModelUpdateVO withLogicTbId(Long logicTbId) { + public TableModelUpdateVO withLogicTbId(String logicTbId) { this.logicTbId = logicTbId; return this; } /** - * 逻辑实体的ID。 + * 逻辑实体的ID,填写String类型替代Long类型。 * @return logicTbId */ - public Long getLogicTbId() { + public String getLogicTbId() { return logicTbId; } - public void setLogicTbId(Long logicTbId) { + public void setLogicTbId(String logicTbId) { this.logicTbId = logicTbId; } - public TableModelUpdateVO withBizCatalogId(Long bizCatalogId) { + public TableModelUpdateVO withBizCatalogId(String bizCatalogId) { this.bizCatalogId = bizCatalogId; return this; } /** - * 归属的业务分类的ID。 + * 归属的业务分类的ID,填写String类型替代Long类型。 * @return bizCatalogId */ - public Long getBizCatalogId() { + public String getBizCatalogId() { return bizCatalogId; } - public void setBizCatalogId(Long bizCatalogId) { + public void setBizCatalogId(String bizCatalogId) { this.bizCatalogId = bizCatalogId; } @@ -876,7 +916,7 @@ public TableModelUpdateVO withCatalogPath(String catalogPath) { } /** - * 归属的业务分类的路径 {\"l1Id\":\"\",\"l2Id\":\"\",\"l3Id\":\"\"}。 + * 归属的业务分类的路径,格式: {\"l1Id\":\"958408897973161984\",\"l2Id\":\"958408897973161985\",\"l3Id\":\"958408897973161986\"}。 * @return catalogPath */ public String getCatalogPath() { @@ -893,7 +933,7 @@ public TableModelUpdateVO withCreateBy(String createBy) { } /** - * 创建人。 + * 创建人,只读。 * @return createBy */ public String getCreateBy() { @@ -910,7 +950,7 @@ public TableModelUpdateVO withUpdateBy(String updateBy) { } /** - * 更新人。 + * 更新人,只读。 * @return updateBy */ public String getUpdateBy() { @@ -927,7 +967,7 @@ public TableModelUpdateVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -944,7 +984,7 @@ public TableModelUpdateVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -977,7 +1017,7 @@ public TableModelUpdateVO withTags(Consumer> tagsSetter) { } /** - * 表标签。 + * 表标签,只读。 * @return tags */ public List getTags() { @@ -1224,20 +1264,20 @@ public void setL3(String l3) { this.l3 = l3; } - public TableModelUpdateVO withL1Id(Long l1Id) { + public TableModelUpdateVO withL1Id(String l1Id) { this.l1Id = l1Id; return this; } /** - * 主题域分组ID。 + * 主题域分组ID,只读,填写String类型替代Long类型。 * @return l1Id */ - public Long getL1Id() { + public String getL1Id() { return l1Id; } - public void setL1Id(Long l1Id) { + public void setL1Id(String l1Id) { this.l1Id = l1Id; } @@ -1258,20 +1298,20 @@ public void setL2Id(String l2Id) { this.l2Id = l2Id; } - public TableModelUpdateVO withL3Id(Long l3Id) { + public TableModelUpdateVO withL3Id(String l3Id) { this.l3Id = l3Id; return this; } /** - * 业务对象ID。 + * 业务对象ID,只读,填写String类型替代Long类型。 * @return l3Id */ - public Long getL3Id() { + public String getL3Id() { return l3Id; } - public void setL3Id(Long l3Id) { + public void setL3Id(String l3Id) { this.l3Id = l3Id; } @@ -1428,20 +1468,20 @@ public void setQualityOwner(String qualityOwner) { this.qualityOwner = qualityOwner; } - public TableModelUpdateVO withQualityId(Long qualityId) { + public TableModelUpdateVO withQualityId(String qualityId) { this.qualityId = qualityId; return this; } /** - * 质量ID。 + * 质量ID,填写String类型替代Long类型。 * @return qualityId */ - public Long getQualityId() { + public String getQualityId() { return qualityId; } - public void setQualityId(Long qualityId) { + public void setQualityId(String qualityId) { this.qualityId = qualityId; } @@ -1451,7 +1491,7 @@ public TableModelUpdateVO withDistribute(DistributeEnum distribute) { } /** - * DISTRIBUTE BY [HASH(column)|REPLICATION]。HASH(对指定的列进行Hash,通过映射,把数据分布到指定DN)、REPLICATION(表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据)。 + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 * @return distribute */ public DistributeEnum getDistribute() { @@ -1485,7 +1525,7 @@ public TableModelUpdateVO withIsPartition(Boolean isPartition) { } /** - * 是否分区表。 + * 是否分区表,只读。 * @return isPartition */ public Boolean getIsPartition() { @@ -1513,6 +1553,23 @@ public void setPhysicalTable(SyncStatusEnum physicalTable) { this.physicalTable = physicalTable; } + public TableModelUpdateVO withDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + return this; + } + + /** + * Get devPhysicalTable + * @return devPhysicalTable + */ + public SyncStatusEnum getDevPhysicalTable() { + return devPhysicalTable; + } + + public void setDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + } + public TableModelUpdateVO withTechnicalAsset(SyncStatusEnum technicalAsset) { this.technicalAsset = technicalAsset; return this; @@ -1648,6 +1705,125 @@ public void setSelfDefinedFields(List selfDefinedFields) { this.selfDefinedFields = selfDefinedFields; } + public TableModelUpdateVO withDevVersion(String devVersion) { + this.devVersion = devVersion; + return this; + } + + /** + * 开发环境版本,填写String类型替代Long类型。 + * @return devVersion + */ + public String getDevVersion() { + return devVersion; + } + + public void setDevVersion(String devVersion) { + this.devVersion = devVersion; + } + + public TableModelUpdateVO withProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + return this; + } + + /** + * 生产环境版本,填写String类型替代Long类型。 + * @return prodVersion + */ + public String getProdVersion() { + return prodVersion; + } + + public void setProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + } + + public TableModelUpdateVO withDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + return this; + } + + /** + * 开发环境版本名称 + * @return devVersionName + */ + public String getDevVersionName() { + return devVersionName; + } + + public void setDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + } + + public TableModelUpdateVO withProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + return this; + } + + /** + * 生产环境版本名称 + * @return prodVersionName + */ + public String getProdVersionName() { + return prodVersionName; + } + + public void setProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + } + + public TableModelUpdateVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + + public TableModelUpdateVO withHasRelatedPhysicalTable(Boolean hasRelatedPhysicalTable) { + this.hasRelatedPhysicalTable = hasRelatedPhysicalTable; + return this; + } + + /** + * 是否关联了物理表 + * @return hasRelatedPhysicalTable + */ + public Boolean getHasRelatedPhysicalTable() { + return hasRelatedPhysicalTable; + } + + public void setHasRelatedPhysicalTable(Boolean hasRelatedPhysicalTable) { + this.hasRelatedPhysicalTable = hasRelatedPhysicalTable; + } + + public TableModelUpdateVO withHasRelatedLogicTable(Boolean hasRelatedLogicTable) { + this.hasRelatedLogicTable = hasRelatedLogicTable; + return this; + } + + /** + * 是否关联了逻辑实体 + * @return hasRelatedLogicTable + */ + public Boolean getHasRelatedLogicTable() { + return hasRelatedLogicTable; + } + + public void setHasRelatedLogicTable(Boolean hasRelatedLogicTable) { + this.hasRelatedLogicTable = hasRelatedLogicTable; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1692,12 +1868,18 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.distributeColumn, that.distributeColumn) && Objects.equals(this.isPartition, that.isPartition) && Objects.equals(this.physicalTable, that.physicalTable) + && Objects.equals(this.devPhysicalTable, that.devPhysicalTable) && Objects.equals(this.technicalAsset, that.technicalAsset) && Objects.equals(this.businessAsset, that.businessAsset) && Objects.equals(this.metaDataLink, that.metaDataLink) && Objects.equals(this.dataQuality, that.dataQuality) && Objects.equals(this.summaryStatus, that.summaryStatus) && Objects.equals(this.alias, that.alias) - && Objects.equals(this.selfDefinedFields, that.selfDefinedFields); + && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) + && Objects.equals(this.devVersion, that.devVersion) && Objects.equals(this.prodVersion, that.prodVersion) + && Objects.equals(this.devVersionName, that.devVersionName) + && Objects.equals(this.prodVersionName, that.prodVersionName) && Objects.equals(this.envType, that.envType) + && Objects.equals(this.hasRelatedPhysicalTable, that.hasRelatedPhysicalTable) + && Objects.equals(this.hasRelatedLogicTable, that.hasRelatedLogicTable); } @Override @@ -1761,13 +1943,21 @@ public int hashCode() { distributeColumn, isPartition, physicalTable, + devPhysicalTable, technicalAsset, businessAsset, metaDataLink, dataQuality, summaryStatus, alias, - selfDefinedFields); + selfDefinedFields, + devVersion, + prodVersion, + devVersionName, + prodVersionName, + envType, + hasRelatedPhysicalTable, + hasRelatedLogicTable); } @Override @@ -1833,6 +2023,7 @@ public String toString() { sb.append(" distributeColumn: ").append(toIndentedString(distributeColumn)).append("\n"); sb.append(" isPartition: ").append(toIndentedString(isPartition)).append("\n"); sb.append(" physicalTable: ").append(toIndentedString(physicalTable)).append("\n"); + sb.append(" devPhysicalTable: ").append(toIndentedString(devPhysicalTable)).append("\n"); sb.append(" technicalAsset: ").append(toIndentedString(technicalAsset)).append("\n"); sb.append(" businessAsset: ").append(toIndentedString(businessAsset)).append("\n"); sb.append(" metaDataLink: ").append(toIndentedString(metaDataLink)).append("\n"); @@ -1840,6 +2031,13 @@ public String toString() { sb.append(" summaryStatus: ").append(toIndentedString(summaryStatus)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); + sb.append(" devVersion: ").append(toIndentedString(devVersion)).append("\n"); + sb.append(" prodVersion: ").append(toIndentedString(prodVersion)).append("\n"); + sb.append(" devVersionName: ").append(toIndentedString(devVersionName)).append("\n"); + sb.append(" prodVersionName: ").append(toIndentedString(prodVersionName)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); + sb.append(" hasRelatedPhysicalTable: ").append(toIndentedString(hasRelatedPhysicalTable)).append("\n"); + sb.append(" hasRelatedLogicTable: ").append(toIndentedString(hasRelatedLogicTable)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelVO.java index 032e189596..f33c4bdd21 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TableModelVO.java @@ -44,6 +44,26 @@ public class TableModelVO { private String parentTableCode; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_logic_table_id") + + private String relatedLogicTableId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_logic_table_name") + + private String relatedLogicTableName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_logic_table_model_id") + + private String relatedLogicTableModelId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "related_logic_table_model_name") + + private String relatedLogicTableModelName; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "model") @@ -295,7 +315,7 @@ public class TableModelVO { private String qualityId; /** - * DISTRIBUTE BY [HASH(column)|REPLICATION]。HASH(对指定的列进行Hash,通过映射,把数据分布到指定DN)、REPLICATION(表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据)。 + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 */ public static final class DistributeEnum { @@ -384,6 +404,11 @@ public int hashCode() { private SyncStatusEnum physicalTable; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_physical_table") + + private SyncStatusEnum devPhysicalTable; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "technical_asset") @@ -409,6 +434,31 @@ public int hashCode() { private SyncStatusEnum summaryStatus; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version") + + private String devVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version") + + private String prodVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dev_version_name") + + private String devVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "prod_version_name") + + private String prodVersionName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "env_type") + + private EnvTypeEnum envType; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "alias") @@ -419,13 +469,28 @@ public int hashCode() { private List selfDefinedFields = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "code") + + private String code; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_related_physical_table") + + private Boolean hasRelatedPhysicalTable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "has_related_logic_table") + + private Boolean hasRelatedLogicTable; + public TableModelVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -442,7 +507,7 @@ public TableModelVO withModelId(String modelId) { } /** - * 所属关系建模的模型ID。 + * 所属关系建模的模型ID,填写String类型替代Long类型。 * @return modelId */ public String getModelId() { @@ -459,7 +524,7 @@ public TableModelVO withParentTableId(String parentTableId) { } /** - * 父表ID。 + * 父表ID,填写String类型替代Long类型。 * @return parentTableId */ public String getParentTableId() { @@ -476,7 +541,7 @@ public TableModelVO withParentTableName(String parentTableName) { } /** - * 父表名称。 + * 父表名称,只读。 * @return parentTableName */ public String getParentTableName() { @@ -493,7 +558,7 @@ public TableModelVO withParentTableCode(String parentTableCode) { } /** - * 父表编码。 + * 父表编码,只读。 * @return parentTableCode */ public String getParentTableCode() { @@ -504,6 +569,74 @@ public void setParentTableCode(String parentTableCode) { this.parentTableCode = parentTableCode; } + public TableModelVO withRelatedLogicTableId(String relatedLogicTableId) { + this.relatedLogicTableId = relatedLogicTableId; + return this; + } + + /** + * 关联逻辑实体的ID,填写String类型替代Long类型。 + * @return relatedLogicTableId + */ + public String getRelatedLogicTableId() { + return relatedLogicTableId; + } + + public void setRelatedLogicTableId(String relatedLogicTableId) { + this.relatedLogicTableId = relatedLogicTableId; + } + + public TableModelVO withRelatedLogicTableName(String relatedLogicTableName) { + this.relatedLogicTableName = relatedLogicTableName; + return this; + } + + /** + * 关联逻辑实体的名称。 + * @return relatedLogicTableName + */ + public String getRelatedLogicTableName() { + return relatedLogicTableName; + } + + public void setRelatedLogicTableName(String relatedLogicTableName) { + this.relatedLogicTableName = relatedLogicTableName; + } + + public TableModelVO withRelatedLogicTableModelId(String relatedLogicTableModelId) { + this.relatedLogicTableModelId = relatedLogicTableModelId; + return this; + } + + /** + * 关联逻辑实体的模型ID,填写String类型替代Long类型。 + * @return relatedLogicTableModelId + */ + public String getRelatedLogicTableModelId() { + return relatedLogicTableModelId; + } + + public void setRelatedLogicTableModelId(String relatedLogicTableModelId) { + this.relatedLogicTableModelId = relatedLogicTableModelId; + } + + public TableModelVO withRelatedLogicTableModelName(String relatedLogicTableModelName) { + this.relatedLogicTableModelName = relatedLogicTableModelName; + return this; + } + + /** + * 关联逻辑实体的模型名称。 + * @return relatedLogicTableModelName + */ + public String getRelatedLogicTableModelName() { + return relatedLogicTableModelName; + } + + public void setRelatedLogicTableModelName(String relatedLogicTableModelName) { + this.relatedLogicTableModelName = relatedLogicTableModelName; + } + public TableModelVO withModel(WorkspaceVO model) { this.model = model; return this; @@ -570,7 +703,7 @@ public TableModelVO withObsLocation(String obsLocation) { } /** - * obs路径。 + * 外表路径 * @return obsLocation */ public String getObsLocation() { @@ -604,7 +737,7 @@ public TableModelVO withTableType(String tableType) { } /** - * 表类型。 + * 表类型,只读。 * @return tableType */ public String getTableType() { @@ -740,7 +873,7 @@ public TableModelVO withTbGuid(String tbGuid) { } /** - * 表物化后的guid。 + * 表物化后的guid,只读。 * @return tbGuid */ public String getTbGuid() { @@ -757,7 +890,7 @@ public TableModelVO withTbId(String tbId) { } /** - * 数据表ID。 + * 数据表ID,只读。 * @return tbId */ public String getTbId() { @@ -791,7 +924,7 @@ public TableModelVO withLogicTbGuid(String logicTbGuid) { } /** - * 逻辑实体的guid。 + * 逻辑实体的guid,只读。 * @return logicTbGuid */ public String getLogicTbGuid() { @@ -842,7 +975,7 @@ public TableModelVO withLogicTbId(String logicTbId) { } /** - * 逻辑实体的ID。 + * 逻辑实体的ID,填写String类型替代Long类型。 * @return logicTbId */ public String getLogicTbId() { @@ -859,7 +992,7 @@ public TableModelVO withBizCatalogId(String bizCatalogId) { } /** - * 归属的业务分类的id。 + * 归属的业务分类的id,填写String类型替代Long类型。 * @return bizCatalogId */ public String getBizCatalogId() { @@ -893,7 +1026,7 @@ public TableModelVO withCreateBy(String createBy) { } /** - * 创建人。 + * 创建人,只读。 * @return createBy */ public String getCreateBy() { @@ -910,7 +1043,7 @@ public TableModelVO withUpdateBy(String updateBy) { } /** - * 更新人。 + * 更新人,只读。 * @return updateBy */ public String getUpdateBy() { @@ -927,7 +1060,7 @@ public TableModelVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -944,7 +1077,7 @@ public TableModelVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -977,7 +1110,7 @@ public TableModelVO withTags(Consumer> tagsSetter) { } /** - * 表标签。 + * 表标签,只读。 * @return tags */ public List getTags() { @@ -1230,7 +1363,7 @@ public TableModelVO withL1Id(String l1Id) { } /** - * 主题域分组ID。 + * 主题域分组ID,只读,填写String类型替代Long类型。 * @return l1Id */ public String getL1Id() { @@ -1264,7 +1397,7 @@ public TableModelVO withL3Id(String l3Id) { } /** - * 业务对象ID。 + * 业务对象ID,只读,填写String类型替代Long类型。 * @return l3Id */ public String getL3Id() { @@ -1434,7 +1567,7 @@ public TableModelVO withQualityId(String qualityId) { } /** - * 质量ID。 + * 质量ID,填写String类型替代Long类型。 * @return qualityId */ public String getQualityId() { @@ -1451,7 +1584,7 @@ public TableModelVO withDistribute(DistributeEnum distribute) { } /** - * DISTRIBUTE BY [HASH(column)|REPLICATION]。HASH(对指定的列进行Hash,通过映射,把数据分布到指定DN)、REPLICATION(表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据)。 + * DISTRIBUTE BY [HASH(column)|REPLICATION]。 枚举值: - HASH: 对指定的列进行Hash,通过映射,把数据分布到指定DN - REPLICATION: 表的每一行存在所有数据节点(DN)中,即每个数据节点都有完整的表数据 * @return distribute */ public DistributeEnum getDistribute() { @@ -1485,7 +1618,7 @@ public TableModelVO withIsPartition(Boolean isPartition) { } /** - * 是否分区表。 + * 是否分区表,只读。 * @return isPartition */ public Boolean getIsPartition() { @@ -1513,6 +1646,23 @@ public void setPhysicalTable(SyncStatusEnum physicalTable) { this.physicalTable = physicalTable; } + public TableModelVO withDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + return this; + } + + /** + * Get devPhysicalTable + * @return devPhysicalTable + */ + public SyncStatusEnum getDevPhysicalTable() { + return devPhysicalTable; + } + + public void setDevPhysicalTable(SyncStatusEnum devPhysicalTable) { + this.devPhysicalTable = devPhysicalTable; + } + public TableModelVO withTechnicalAsset(SyncStatusEnum technicalAsset) { this.technicalAsset = technicalAsset; return this; @@ -1598,6 +1748,91 @@ public void setSummaryStatus(SyncStatusEnum summaryStatus) { this.summaryStatus = summaryStatus; } + public TableModelVO withDevVersion(String devVersion) { + this.devVersion = devVersion; + return this; + } + + /** + * 开发环境版本,填写String类型替代Long类型。 + * @return devVersion + */ + public String getDevVersion() { + return devVersion; + } + + public void setDevVersion(String devVersion) { + this.devVersion = devVersion; + } + + public TableModelVO withProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + return this; + } + + /** + * 生产环境版本,填写String类型替代Long类型。 + * @return prodVersion + */ + public String getProdVersion() { + return prodVersion; + } + + public void setProdVersion(String prodVersion) { + this.prodVersion = prodVersion; + } + + public TableModelVO withDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + return this; + } + + /** + * 开发环境版本名称。 + * @return devVersionName + */ + public String getDevVersionName() { + return devVersionName; + } + + public void setDevVersionName(String devVersionName) { + this.devVersionName = devVersionName; + } + + public TableModelVO withProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + return this; + } + + /** + * 生产环境版本名称。 + * @return prodVersionName + */ + public String getProdVersionName() { + return prodVersionName; + } + + public void setProdVersionName(String prodVersionName) { + this.prodVersionName = prodVersionName; + } + + public TableModelVO withEnvType(EnvTypeEnum envType) { + this.envType = envType; + return this; + } + + /** + * Get envType + * @return envType + */ + public EnvTypeEnum getEnvType() { + return envType; + } + + public void setEnvType(EnvTypeEnum envType) { + this.envType = envType; + } + public TableModelVO withAlias(String alias) { this.alias = alias; return this; @@ -1648,6 +1883,57 @@ public void setSelfDefinedFields(List selfDefinedFields) { this.selfDefinedFields = selfDefinedFields; } + public TableModelVO withCode(String code) { + this.code = code; + return this; + } + + /** + * 编码 + * @return code + */ + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public TableModelVO withHasRelatedPhysicalTable(Boolean hasRelatedPhysicalTable) { + this.hasRelatedPhysicalTable = hasRelatedPhysicalTable; + return this; + } + + /** + * 是否存在关联物理表。 + * @return hasRelatedPhysicalTable + */ + public Boolean getHasRelatedPhysicalTable() { + return hasRelatedPhysicalTable; + } + + public void setHasRelatedPhysicalTable(Boolean hasRelatedPhysicalTable) { + this.hasRelatedPhysicalTable = hasRelatedPhysicalTable; + } + + public TableModelVO withHasRelatedLogicTable(Boolean hasRelatedLogicTable) { + this.hasRelatedLogicTable = hasRelatedLogicTable; + return this; + } + + /** + * 是否存在关联逻辑实体。 + * @return hasRelatedLogicTable + */ + public Boolean getHasRelatedLogicTable() { + return hasRelatedLogicTable; + } + + public void setHasRelatedLogicTable(Boolean hasRelatedLogicTable) { + this.hasRelatedLogicTable = hasRelatedLogicTable; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1660,17 +1946,22 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.id, that.id) && Objects.equals(this.modelId, that.modelId) && Objects.equals(this.parentTableId, that.parentTableId) && Objects.equals(this.parentTableName, that.parentTableName) - && Objects.equals(this.parentTableCode, that.parentTableCode) && Objects.equals(this.model, that.model) - && Objects.equals(this.dataFormat, that.dataFormat) && Objects.equals(this.obsBucket, that.obsBucket) - && Objects.equals(this.obsLocation, that.obsLocation) && Objects.equals(this.configs, that.configs) - && Objects.equals(this.tableType, that.tableType) && Objects.equals(this.owner, that.owner) - && Objects.equals(this.tbName, that.tbName) && Objects.equals(this.dwId, that.dwId) - && Objects.equals(this.dbName, that.dbName) && Objects.equals(this.queueName, that.queueName) - && Objects.equals(this.schema, that.schema) && Objects.equals(this.extendInfo, that.extendInfo) - && Objects.equals(this.tbGuid, that.tbGuid) && Objects.equals(this.tbId, that.tbId) - && Objects.equals(this.logicTbName, that.logicTbName) && Objects.equals(this.logicTbGuid, that.logicTbGuid) - && Objects.equals(this.description, that.description) && Objects.equals(this.status, that.status) - && Objects.equals(this.logicTbId, that.logicTbId) && Objects.equals(this.bizCatalogId, that.bizCatalogId) + && Objects.equals(this.parentTableCode, that.parentTableCode) + && Objects.equals(this.relatedLogicTableId, that.relatedLogicTableId) + && Objects.equals(this.relatedLogicTableName, that.relatedLogicTableName) + && Objects.equals(this.relatedLogicTableModelId, that.relatedLogicTableModelId) + && Objects.equals(this.relatedLogicTableModelName, that.relatedLogicTableModelName) + && Objects.equals(this.model, that.model) && Objects.equals(this.dataFormat, that.dataFormat) + && Objects.equals(this.obsBucket, that.obsBucket) && Objects.equals(this.obsLocation, that.obsLocation) + && Objects.equals(this.configs, that.configs) && Objects.equals(this.tableType, that.tableType) + && Objects.equals(this.owner, that.owner) && Objects.equals(this.tbName, that.tbName) + && Objects.equals(this.dwId, that.dwId) && Objects.equals(this.dbName, that.dbName) + && Objects.equals(this.queueName, that.queueName) && Objects.equals(this.schema, that.schema) + && Objects.equals(this.extendInfo, that.extendInfo) && Objects.equals(this.tbGuid, that.tbGuid) + && Objects.equals(this.tbId, that.tbId) && Objects.equals(this.logicTbName, that.logicTbName) + && Objects.equals(this.logicTbGuid, that.logicTbGuid) && Objects.equals(this.description, that.description) + && Objects.equals(this.status, that.status) && Objects.equals(this.logicTbId, that.logicTbId) + && Objects.equals(this.bizCatalogId, that.bizCatalogId) && Objects.equals(this.catalogPath, that.catalogPath) && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.updateBy, that.updateBy) && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.tags, that.tags) @@ -1692,12 +1983,19 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.distributeColumn, that.distributeColumn) && Objects.equals(this.isPartition, that.isPartition) && Objects.equals(this.physicalTable, that.physicalTable) + && Objects.equals(this.devPhysicalTable, that.devPhysicalTable) && Objects.equals(this.technicalAsset, that.technicalAsset) && Objects.equals(this.businessAsset, that.businessAsset) && Objects.equals(this.metaDataLink, that.metaDataLink) && Objects.equals(this.dataQuality, that.dataQuality) - && Objects.equals(this.summaryStatus, that.summaryStatus) && Objects.equals(this.alias, that.alias) - && Objects.equals(this.selfDefinedFields, that.selfDefinedFields); + && Objects.equals(this.summaryStatus, that.summaryStatus) + && Objects.equals(this.devVersion, that.devVersion) && Objects.equals(this.prodVersion, that.prodVersion) + && Objects.equals(this.devVersionName, that.devVersionName) + && Objects.equals(this.prodVersionName, that.prodVersionName) && Objects.equals(this.envType, that.envType) + && Objects.equals(this.alias, that.alias) && Objects.equals(this.selfDefinedFields, that.selfDefinedFields) + && Objects.equals(this.code, that.code) + && Objects.equals(this.hasRelatedPhysicalTable, that.hasRelatedPhysicalTable) + && Objects.equals(this.hasRelatedLogicTable, that.hasRelatedLogicTable); } @Override @@ -1707,6 +2005,10 @@ public int hashCode() { parentTableId, parentTableName, parentTableCode, + relatedLogicTableId, + relatedLogicTableName, + relatedLogicTableModelId, + relatedLogicTableModelName, model, dataFormat, obsBucket, @@ -1761,13 +2063,22 @@ public int hashCode() { distributeColumn, isPartition, physicalTable, + devPhysicalTable, technicalAsset, businessAsset, metaDataLink, dataQuality, summaryStatus, + devVersion, + prodVersion, + devVersionName, + prodVersionName, + envType, alias, - selfDefinedFields); + selfDefinedFields, + code, + hasRelatedPhysicalTable, + hasRelatedLogicTable); } @Override @@ -1779,6 +2090,10 @@ public String toString() { sb.append(" parentTableId: ").append(toIndentedString(parentTableId)).append("\n"); sb.append(" parentTableName: ").append(toIndentedString(parentTableName)).append("\n"); sb.append(" parentTableCode: ").append(toIndentedString(parentTableCode)).append("\n"); + sb.append(" relatedLogicTableId: ").append(toIndentedString(relatedLogicTableId)).append("\n"); + sb.append(" relatedLogicTableName: ").append(toIndentedString(relatedLogicTableName)).append("\n"); + sb.append(" relatedLogicTableModelId: ").append(toIndentedString(relatedLogicTableModelId)).append("\n"); + sb.append(" relatedLogicTableModelName: ").append(toIndentedString(relatedLogicTableModelName)).append("\n"); sb.append(" model: ").append(toIndentedString(model)).append("\n"); sb.append(" dataFormat: ").append(toIndentedString(dataFormat)).append("\n"); sb.append(" obsBucket: ").append(toIndentedString(obsBucket)).append("\n"); @@ -1833,13 +2148,22 @@ public String toString() { sb.append(" distributeColumn: ").append(toIndentedString(distributeColumn)).append("\n"); sb.append(" isPartition: ").append(toIndentedString(isPartition)).append("\n"); sb.append(" physicalTable: ").append(toIndentedString(physicalTable)).append("\n"); + sb.append(" devPhysicalTable: ").append(toIndentedString(devPhysicalTable)).append("\n"); sb.append(" technicalAsset: ").append(toIndentedString(technicalAsset)).append("\n"); sb.append(" businessAsset: ").append(toIndentedString(businessAsset)).append("\n"); sb.append(" metaDataLink: ").append(toIndentedString(metaDataLink)).append("\n"); sb.append(" dataQuality: ").append(toIndentedString(dataQuality)).append("\n"); sb.append(" summaryStatus: ").append(toIndentedString(summaryStatus)).append("\n"); + sb.append(" devVersion: ").append(toIndentedString(devVersion)).append("\n"); + sb.append(" prodVersion: ").append(toIndentedString(prodVersion)).append("\n"); + sb.append(" devVersionName: ").append(toIndentedString(devVersionName)).append("\n"); + sb.append(" prodVersionName: ").append(toIndentedString(prodVersionName)).append("\n"); + sb.append(" envType: ").append(toIndentedString(envType)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" selfDefinedFields: ").append(toIndentedString(selfDefinedFields)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" hasRelatedPhysicalTable: ").append(toIndentedString(hasRelatedPhysicalTable)).append("\n"); + sb.append(" hasRelatedLogicTable: ").append(toIndentedString(hasRelatedLogicTable)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagRecordVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagRecordVO.java index 30f6286939..cb2f0a65c9 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagRecordVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagRecordVO.java @@ -14,12 +14,12 @@ public class TagRecordVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tag_id") - private Long tagId; + private String tagId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "tag_name") @@ -29,7 +29,7 @@ public class TagRecordVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_id") - private Long bizId; + private String bizId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "biz_type") @@ -56,37 +56,37 @@ public class TagRecordVO { private OffsetDateTime updateTime; - public TagRecordVO withId(Long id) { + public TagRecordVO withId(String id) { this.id = id; return this; } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } - public TagRecordVO withTagId(Long tagId) { + public TagRecordVO withTagId(String tagId) { this.tagId = tagId; return this; } /** - * 标签ID。 + * 标签ID,填写String类型替代Long类型。 * @return tagId */ - public Long getTagId() { + public String getTagId() { return tagId; } - public void setTagId(Long tagId) { + public void setTagId(String tagId) { this.tagId = tagId; } @@ -107,20 +107,20 @@ public void setTagName(String tagName) { this.tagName = tagName; } - public TagRecordVO withBizId(Long bizId) { + public TagRecordVO withBizId(String bizId) { this.bizId = bizId; return this; } /** - * 实体ID。 + * 实体ID,填写String类型替代Long类型。 * @return bizId */ - public Long getBizId() { + public String getBizId() { return bizId; } - public void setBizId(Long bizId) { + public void setBizId(String bizId) { this.bizId = bizId; } @@ -181,7 +181,7 @@ public TagRecordVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -198,7 +198,7 @@ public TagRecordVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagVO.java index 68058563a7..4ddc00af20 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/TagVO.java @@ -58,7 +58,7 @@ public TagVO withId(String id) { } /** - * 编码。 + * 编码,填写String类型替代Long类型。 * @return id */ public String getId() { @@ -143,7 +143,7 @@ public TagVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -160,7 +160,7 @@ public TagVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateBizMetricResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateBizMetricResponse.java index 6d4482ef80..a13f19905c 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateBizMetricResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateBizMetricResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateBizMetricResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private UpdateBizMetricResultData data; - public UpdateBizMetricResponse withData(Object data) { + public UpdateBizMetricResponse withData(UpdateBizMetricResultData data) { this.data = data; return this; } + public UpdateBizMetricResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new UpdateBizMetricResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public UpdateBizMetricResultData getData() { return data; } - public void setData(Object data) { + public void setData(UpdateBizMetricResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateBizMetricResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateBizMetricResultData.java new file mode 100644 index 0000000000..7097fb907c --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateBizMetricResultData.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class UpdateBizMetricResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private Object value; + + public UpdateBizMetricResultData withValue(Object value) { + this.value = value; + return this; + } + + /** + * value,统一的返回结果的外层数据结构。 + * @return value + */ + public Object getValue() { + return value; + } + + public void setValue(Object 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; + } + UpdateBizMetricResultData that = (UpdateBizMetricResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBizMetricResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableRequest.java index 6e5698d2c0..2ac543c396 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableRequest.java @@ -73,7 +73,7 @@ public UpdateCodeTableRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableResponse.java index a36ace6fc2..c807f28447 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateCodeTableResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateCodeTableResultData data; - public UpdateCodeTableResponse withData(Object data) { + public UpdateCodeTableResponse withData(CreateCodeTableResultData data) { this.data = data; return this; } + public UpdateCodeTableResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateCodeTableResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateCodeTableResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateCodeTableResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesRequest.java index 0929337f34..bc627228b7 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesRequest.java @@ -73,7 +73,7 @@ public UpdateCodeTableValuesRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesResponse.java index 893bdd9d61..d7df0d2e6f 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateCodeTableValuesResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private UpdateCodeTableValuesResultData data; - public UpdateCodeTableValuesResponse withData(Object data) { + public UpdateCodeTableValuesResponse withData(UpdateCodeTableValuesResultData data) { this.data = data; return this; } + public UpdateCodeTableValuesResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new UpdateCodeTableValuesResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public UpdateCodeTableValuesResultData getData() { return data; } - public void setData(Object data) { + public void setData(UpdateCodeTableValuesResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesResultData.java new file mode 100644 index 0000000000..f36e965ac4 --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateCodeTableValuesResultData.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.dataartsstudio.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; + +/** + * data,统一的返回结果的最外层数据结构。 + */ +public class UpdateCodeTableValuesResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private List value = null; + + public UpdateCodeTableValuesResultData withValue(List value) { + this.value = value; + return this; + } + + public UpdateCodeTableValuesResultData addValueItem(CodeTableFieldVO valueItem) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(valueItem); + return this; + } + + public UpdateCodeTableValuesResultData withValue(Consumer> valueSetter) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + valueSetter.accept(this.value); + return this; + } + + /** + * 码表字段列表信息。 + * @return value + */ + public List getValue() { + return value; + } + + public void setValue(List 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; + } + UpdateCodeTableValuesResultData that = (UpdateCodeTableValuesResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateCodeTableValuesResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityParam.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityParam.java index 3025713e05..4bc094d481 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityParam.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityParam.java @@ -16,7 +16,7 @@ public class UpdateDesignTableQualityParam { /** - * 表类型。TABLE_MODEL(关系模型(逻辑模型/物理模型))、AGGREGATION_LOGIC_TABLE(汇总表)、FACT_LOGIC_TABLE(事实表)、DIMENSION_LOGIC_TABLE(维度表)。 + * 表类型。 枚举值: - TABLE_MODEL: 关系模型(逻辑模型/物理模型) - AGGREGATION_LOGIC_TABLE: 汇总表 - FACT_LOGIC_TABLE: 事实表 - DIMENSION: 维度 - DIMENSION_LOGIC_TABLE: 维度表 */ public static final class BizTypeEnum { @@ -134,7 +134,7 @@ public UpdateDesignTableQualityParam withBizType(BizTypeEnum bizType) { } /** - * 表类型。TABLE_MODEL(关系模型(逻辑模型/物理模型))、AGGREGATION_LOGIC_TABLE(汇总表)、FACT_LOGIC_TABLE(事实表)、DIMENSION_LOGIC_TABLE(维度表)。 + * 表类型。 枚举值: - TABLE_MODEL: 关系模型(逻辑模型/物理模型) - AGGREGATION_LOGIC_TABLE: 汇总表 - FACT_LOGIC_TABLE: 事实表 - DIMENSION: 维度 - DIMENSION_LOGIC_TABLE: 维度表 * @return bizType */ public BizTypeEnum getBizType() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityRequest.java index ba90bfdbe3..d0f83f88a1 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDesignTableQualityRequest.java @@ -73,7 +73,7 @@ public UpdateDesignTableQualityRequest withTableId(String tableId) { } /** - * 表的ID。 + * 表的ID,填写String类型替代Long类型。 * @return tableId */ public String getTableId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDirectoryResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDirectoryResponse.java index a100877da6..7ad3adb544 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDirectoryResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateDirectoryResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateDirectoryResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateDirectoryResultData data; - public UpdateDirectoryResponse withData(Object data) { + public UpdateDirectoryResponse withData(CreateDirectoryResultData data) { this.data = data; return this; } + public UpdateDirectoryResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateDirectoryResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateDirectoryResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateDirectoryResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardRequest.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardRequest.java index 97c5266982..b39727e912 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardRequest.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardRequest.java @@ -73,7 +73,7 @@ public UpdateStandardRequest withId(String id) { } /** - * 实体ID + * 实体ID,填写String类型替代Long类型。 * @return id */ public String getId() { diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardResponse.java index cbd0b44b23..8c87aba272 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateStandardResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private UpdateStandardResultData data; - public UpdateStandardResponse withData(Object data) { + public UpdateStandardResponse withData(UpdateStandardResultData data) { this.data = data; return this; } + public UpdateStandardResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new UpdateStandardResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public UpdateStandardResultData getData() { return data; } - public void setData(Object data) { + public void setData(UpdateStandardResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardResultData.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardResultData.java new file mode 100644 index 0000000000..49480c5e4f --- /dev/null +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardResultData.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.dataartsstudio.v1.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 数据标准更新返回data结果。 + */ +public class UpdateStandardResultData { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private StandElementValueVOList value; + + public UpdateStandardResultData withValue(StandElementValueVOList value) { + this.value = value; + return this; + } + + public UpdateStandardResultData withValue(Consumer valueSetter) { + if (this.value == null) { + this.value = new StandElementValueVOList(); + valueSetter.accept(this.value); + } + + return this; + } + + /** + * Get value + * @return value + */ + public StandElementValueVOList getValue() { + return value; + } + + public void setValue(StandElementValueVOList 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; + } + UpdateStandardResultData that = (UpdateStandardResultData) obj; + return Objects.equals(this.value, that.value); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateStandardResultData {\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/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardTemplateResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardTemplateResponse.java index 166ebd0a0d..52b7b4c777 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardTemplateResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateStandardTemplateResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateStandardTemplateResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateStandardTemplateResultData data; - public UpdateStandardTemplateResponse withData(Object data) { + public UpdateStandardTemplateResponse withData(CreateStandardTemplateResultData data) { this.data = data; return this; } + public UpdateStandardTemplateResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateStandardTemplateResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateStandardTemplateResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateStandardTemplateResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectNewResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectNewResponse.java index c8060e04c8..cef2d4b4de 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectNewResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectNewResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateSubjectNewResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateSubjectResultData data; - public UpdateSubjectNewResponse withData(Object data) { + public UpdateSubjectNewResponse withData(CreateSubjectResultData data) { this.data = data; return this; } + public UpdateSubjectNewResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateSubjectResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateSubjectResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateSubjectResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectResponse.java index bcab3ec5e6..55e6fac50a 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateSubjectResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateSubjectResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateSubjectResultData data; - public UpdateSubjectResponse withData(Object data) { + public UpdateSubjectResponse withData(CreateSubjectResultData data) { this.data = data; return this; } + public UpdateSubjectResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateSubjectResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateSubjectResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateSubjectResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateTableModelResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateTableModelResponse.java index 275a948a4a..75e7fdc6d1 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateTableModelResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateTableModelResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateTableModelResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateTableModelResultData data; - public UpdateTableModelResponse withData(Object data) { + public UpdateTableModelResponse withData(CreateTableModelResultData data) { this.data = data; return this; } + public UpdateTableModelResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateTableModelResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateTableModelResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateTableModelResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateWorkspaceResponse.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateWorkspaceResponse.java index 9d8a2ee02e..eef25eaba1 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateWorkspaceResponse.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/UpdateWorkspaceResponse.java @@ -5,6 +5,7 @@ import com.huaweicloud.sdk.core.SdkResponse; import java.util.Objects; +import java.util.function.Consumer; /** * Response Object @@ -14,22 +15,31 @@ public class UpdateWorkspaceResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "data") - private Object data; + private CreateWorkspaceResultData data; - public UpdateWorkspaceResponse withData(Object data) { + public UpdateWorkspaceResponse withData(CreateWorkspaceResultData data) { this.data = data; return this; } + public UpdateWorkspaceResponse withData(Consumer dataSetter) { + if (this.data == null) { + this.data = new CreateWorkspaceResultData(); + dataSetter.accept(this.data); + } + + return this; + } + /** - * 返回的数据信息。 + * Get data * @return data */ - public Object getData() { + public CreateWorkspaceResultData getData() { return data; } - public void setData(Object data) { + public void setData(CreateWorkspaceResultData data) { this.data = data; } diff --git a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/WorkspaceVO.java b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/WorkspaceVO.java index 902f56d6af..fc97a251a0 100644 --- a/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/WorkspaceVO.java +++ b/services/dataartsstudio/src/main/java/com/huaweicloud/sdk/dataartsstudio/v1/model/WorkspaceVO.java @@ -22,7 +22,7 @@ public class WorkspaceVO { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "id") - private Long id; + private String id; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") @@ -80,7 +80,7 @@ public class WorkspaceVO { private String updateBy; /** - * 工作区类型枚举。THIRD_NF(关系建模)、DIMENSION(维度建模)。 + * 工作区类型枚举。 枚举值: - THIRD_NF: 关系建模 - DIMENSION: 维度建模 */ public static final class TypeEnum { @@ -164,20 +164,25 @@ public int hashCode() { private List databases = null; - public WorkspaceVO withId(Long id) { + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "table_model_prefix") + + private String tableModelPrefix; + + public WorkspaceVO withId(String id) { this.id = id; return this; } /** - * 编号。 + * 编号,填写String类型替代Long类型。 * @return id */ - public Long getId() { + public String getId() { return id; } - public void setId(Long id) { + public void setId(String id) { this.id = id; } @@ -306,7 +311,7 @@ public WorkspaceVO withCreateTime(OffsetDateTime createTime) { } /** - * 创建时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 创建时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return createTime */ public OffsetDateTime getCreateTime() { @@ -323,7 +328,7 @@ public WorkspaceVO withUpdateTime(OffsetDateTime updateTime) { } /** - * 更新时间,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 + * 更新时间,只读,格式遵循RFC3339,精确到秒,UTC时区,即yyyy-mm-ddTHH:MM:SSZ,如1970-01-01T00:00:00Z。 * @return updateTime */ public OffsetDateTime getUpdateTime() { @@ -374,7 +379,7 @@ public WorkspaceVO withType(TypeEnum type) { } /** - * 工作区类型枚举。THIRD_NF(关系建模)、DIMENSION(维度建模)。 + * 工作区类型枚举。 枚举值: - THIRD_NF: 关系建模 - DIMENSION: 维度建模 * @return type */ public TypeEnum getType() { @@ -435,6 +440,23 @@ public void setDatabases(List databases) { this.databases = databases; } + public WorkspaceVO withTableModelPrefix(String tableModelPrefix) { + this.tableModelPrefix = tableModelPrefix; + return this; + } + + /** + * 模型校验前缀,长度不超过100,数字字母下划线组成,字母开头 + * @return tableModelPrefix + */ + public String getTableModelPrefix() { + return tableModelPrefix; + } + + public void setTableModelPrefix(String tableModelPrefix) { + this.tableModelPrefix = tableModelPrefix; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -451,7 +473,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.createTime, that.createTime) && Objects.equals(this.updateTime, that.updateTime) && Objects.equals(this.createBy, that.createBy) && Objects.equals(this.updateBy, that.updateBy) && Objects.equals(this.type, that.type) && Objects.equals(this.bizCatalogIds, that.bizCatalogIds) - && Objects.equals(this.databases, that.databases); + && Objects.equals(this.databases, that.databases) + && Objects.equals(this.tableModelPrefix, that.tableModelPrefix); } @Override @@ -470,7 +493,8 @@ public int hashCode() { updateBy, type, bizCatalogIds, - databases); + databases, + tableModelPrefix); } @Override @@ -492,6 +516,7 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" bizCatalogIds: ").append(toIndentedString(bizCatalogIds)).append("\n"); sb.append(" databases: ").append(toIndentedString(databases)).append("\n"); + sb.append(" tableModelPrefix: ").append(toIndentedString(tableModelPrefix)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/dbss/pom.xml b/services/dbss/pom.xml index a6ed9d2f2e..7b160ecc88 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dbss - 3.1.97 + 3.1.98 Huawei Cloud SDK for DBSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dc/pom.xml b/services/dc/pom.xml index 1ffbcd2429..d4951af4ba 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dc - 3.1.97 + 3.1.98 Huawei Cloud SDK for DC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dcs/pom.xml b/services/dcs/pom.xml index 07fab4b60e..1028736fe1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dcs - 3.1.97 + 3.1.98 Huawei Cloud SDK for DCS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ddm/pom.xml b/services/ddm/pom.xml index b5c56ca570..2787ee46da 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ddm - 3.1.97 + 3.1.98 Huawei Cloud SDK for DDM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dds/pom.xml b/services/dds/pom.xml index 8a3b80d0e1..181e0d82e9 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dds - 3.1.97 + 3.1.98 Huawei Cloud SDK for DDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/deh/pom.xml b/services/deh/pom.xml index 18b5308b32..d740164805 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-deh - 3.1.97 + 3.1.98 Huawei Cloud SDK for DEH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/devsecurity/pom.xml b/services/devsecurity/pom.xml index d5ccfb9cab..87291c4ad0 100644 --- a/services/devsecurity/pom.xml +++ b/services/devsecurity/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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-devsecurity - 3.1.97 + 3.1.98 Huawei Cloud SDK for DEVSECURITY 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/devstar/pom.xml b/services/devstar/pom.xml index 85e7354abe..0221e350b1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-devstar - 3.1.97 + 3.1.98 Huawei Cloud SDK for DEVSTAR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dgc/pom.xml b/services/dgc/pom.xml index 88ca56e236..71f84c517f 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dgc - 3.1.97 + 3.1.98 Huawei Cloud SDK for DGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dis/pom.xml b/services/dis/pom.xml index 515b2891a2..9874420c18 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dis - 3.1.97 + 3.1.98 Huawei Cloud SDK for DIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dlf/pom.xml b/services/dlf/pom.xml index fc3214e1cc..759b5a3d57 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dlf - 3.1.97 + 3.1.98 Huawei Cloud SDK for DLF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dli/pom.xml b/services/dli/pom.xml index 74ffe7186f..37f2f92eb2 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dli - 3.1.97 + 3.1.98 Huawei Cloud SDK for DLI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dns/pom.xml b/services/dns/pom.xml index b00096e985..e9af414ea4 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dns - 3.1.97 + 3.1.98 Huawei Cloud SDK for DNS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dris/pom.xml b/services/dris/pom.xml index e592af28fd..33e9e925d4 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dris - 3.1.97 + 3.1.98 Huawei Cloud SDK for DRIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/drs/pom.xml b/services/drs/pom.xml index 009dc922a8..3cb57ffb85 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-drs - 3.1.97 + 3.1.98 Huawei Cloud SDK for DRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dsc/pom.xml b/services/dsc/pom.xml index 13fc010886..d99114ea35 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dsc - 3.1.97 + 3.1.98 Huawei Cloud SDK for DSC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dss/pom.xml b/services/dss/pom.xml index 6b4f55b876..3689a54f91 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dss - 3.1.97 + 3.1.98 Huawei Cloud SDK for DSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dwr/pom.xml b/services/dwr/pom.xml index 5719014921..9e6e72e0b8 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dwr - 3.1.97 + 3.1.98 Huawei Cloud SDK for DWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dws/pom.xml b/services/dws/pom.xml index aac99c3d03..115b9d703a 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-dws - 3.1.97 + 3.1.98 Huawei Cloud SDK for DWS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterDetail.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterDetail.java index e3f3193243..1845bfcf31 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterDetail.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterDetail.java @@ -210,7 +210,7 @@ public ClusterDetail withStatus(String status) { } /** - * 集群状态,有效值包括: - CREATING:创建中 - ACTIVE:可用 - FAILED:不可用 - CREATE_FAILED:创建失败 - DELETING:删除中 - DELETE_FAILED:删除失败 - DELETED:已删除 - FROZEN:已冻结 + * 集群状态,有效值包括: - CREATING:创建中 - ACTIVE:可用 - FAILED:不可用 - CREATE_FAILED:创建失败 - DELETING:删除中 - DELETE_FAILED:删除失败 - DELETED:已删除 - FROZEN:普通冻结 - POLICE_FROZEN:公安冻结 * @return status */ public String getStatus() { diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterInfo.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterInfo.java index 53342454ee..668d763007 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterInfo.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterInfo.java @@ -180,7 +180,7 @@ public ClusterInfo withStatus(String status) { } /** - * 集群状态,有效值包括: - CREATING:创建中 - ACTIVE:可用 - FAILED:不可用 - CREATE_FAILED:创建失败 - DELETING:删除中 - DELETE_FAILED:删除失败 - DELETED:已删除 - FROZEN:已冻结 + * 集群状态,有效值包括: - CREATING:创建中 - ACTIVE:可用 - FAILED:不可用 - CREATE_FAILED:创建失败 - DELETING:删除中 - DELETE_FAILED:删除失败 - DELETED:已删除 - FROZEN:普通冻结 - POLICE_FROZEN:公安冻结 * @return status */ public String getStatus() { diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterSnapshots.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterSnapshots.java index a47c04da71..305f9f8ccc 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterSnapshots.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/ClusterSnapshots.java @@ -242,7 +242,7 @@ public ClusterSnapshots withStatus(String status) { } /** - * 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。 - RESTORING:恢复中。 + * 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。 - RESTORING:恢复中。 - FROZEN: 普通冻结。 - POLICE_FROZEN: 公安冻结。 * @return status */ public String getStatus() { diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/SnapshotDetail.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/SnapshotDetail.java index 434415dcf9..b626c2b290 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/SnapshotDetail.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/SnapshotDetail.java @@ -259,7 +259,7 @@ public SnapshotDetail withStatus(String status) { } /** - * 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。 + * 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。 - FROZEN: 普通冻结。 - POLICE_FROZEN: 公安冻结。 * @return status */ public String getStatus() { diff --git a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/Snapshots.java b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/Snapshots.java index fdc59fd538..a5a76bac9a 100644 --- a/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/Snapshots.java +++ b/services/dws/src/main/java/com/huaweicloud/sdk/dws/v2/model/Snapshots.java @@ -163,7 +163,7 @@ public Snapshots withStatus(String status) { } /** - * 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。 + * 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。 - FROZEN: 普通冻结。 - POLICE_FROZEN: 公安冻结。 * @return status */ public String getStatus() { diff --git a/services/ec/pom.xml b/services/ec/pom.xml index c707fe9d37..99059b0f14 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ec - 3.1.97 + 3.1.98 Huawei Cloud SDK for EC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ecs/pom.xml b/services/ecs/pom.xml index 4a3c4009c9..5bb56f765b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ecs - 3.1.97 + 3.1.98 Huawei Cloud SDK for ECS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 ch.qos.logback diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java index 1670b6483d..400d8ebbfb 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsAsyncClient.java @@ -31,6 +31,8 @@ import com.huaweicloud.sdk.ecs.v2.model.BatchUpdateServersNameResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerChargeModeRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerChargeModeResponse; +import com.huaweicloud.sdk.ecs.v2.model.ChangeServerNetworkInterfaceRequest; +import com.huaweicloud.sdk.ecs.v2.model.ChangeServerNetworkInterfaceResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitRequest; @@ -600,6 +602,36 @@ public AsyncInvoker(request, EcsMeta.changeServerChargeMode, hcClient); } + /** + * 更新云服务器指定网卡属性 + * + * 更新云服务器指定网卡属性,当前仅支持更新网卡IP。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeServerNetworkInterfaceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture changeServerNetworkInterfaceAsync( + ChangeServerNetworkInterfaceRequest request) { + return hcClient.asyncInvokeHttp(request, EcsMeta.changeServerNetworkInterface); + } + + /** + * 更新云服务器指定网卡属性 + * + * 更新云服务器指定网卡属性,当前仅支持更新网卡IP。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeServerNetworkInterfaceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker changeServerNetworkInterfaceAsyncInvoker( + ChangeServerNetworkInterfaceRequest request) { + return new AsyncInvoker<>(request, EcsMeta.changeServerNetworkInterface, hcClient); + } + /** * 切换弹性云服务器操作系统(安装Cloud init) * diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java index 25a6101a3b..dc584d068d 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsClient.java @@ -31,6 +31,8 @@ import com.huaweicloud.sdk.ecs.v2.model.BatchUpdateServersNameResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerChargeModeRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerChargeModeResponse; +import com.huaweicloud.sdk.ecs.v2.model.ChangeServerNetworkInterfaceRequest; +import com.huaweicloud.sdk.ecs.v2.model.ChangeServerNetworkInterfaceResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithoutCloudInitRequest; @@ -589,6 +591,36 @@ public SyncInvoker(request, EcsMeta.changeServerChargeMode, hcClient); } + /** + * 更新云服务器指定网卡属性 + * + * 更新云服务器指定网卡属性,当前仅支持更新网卡IP。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeServerNetworkInterfaceRequest 请求对象 + * @return ChangeServerNetworkInterfaceResponse + */ + public ChangeServerNetworkInterfaceResponse changeServerNetworkInterface( + ChangeServerNetworkInterfaceRequest request) { + return hcClient.syncInvokeHttp(request, EcsMeta.changeServerNetworkInterface); + } + + /** + * 更新云服务器指定网卡属性 + * + * 更新云服务器指定网卡属性,当前仅支持更新网卡IP。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ChangeServerNetworkInterfaceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker changeServerNetworkInterfaceInvoker( + ChangeServerNetworkInterfaceRequest request) { + return new SyncInvoker<>(request, EcsMeta.changeServerNetworkInterface, hcClient); + } + /** * 切换弹性云服务器操作系统(安装Cloud init) * diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java index 1c95e2a273..39aea7dcfc 100644 --- a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/EcsMeta.java @@ -47,6 +47,9 @@ import com.huaweicloud.sdk.ecs.v2.model.ChangeServerChargeModeRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerChargeModeRequestBody; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerChargeModeResponse; +import com.huaweicloud.sdk.ecs.v2.model.ChangeServerNetworkInterfaceRequest; +import com.huaweicloud.sdk.ecs.v2.model.ChangeServerNetworkInterfaceRequestBody; +import com.huaweicloud.sdk.ecs.v2.model.ChangeServerNetworkInterfaceResponse; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitRequest; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitRequestBody; import com.huaweicloud.sdk.ecs.v2.model.ChangeServerOsWithCloudInitResponse; @@ -571,6 +574,45 @@ private static HttpRequestDef changeServerNetworkInterface = + genForChangeServerNetworkInterface(); + + private static HttpRequestDef genForChangeServerNetworkInterface() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + ChangeServerNetworkInterfaceRequest.class, + ChangeServerNetworkInterfaceResponse.class) + .withName("ChangeServerNetworkInterface") + .withUri("/v1/{project_id}/cloudservers/{server_id}/os-interface/{port_id}/change-network-interface") + .withContentType("application/json;charset=UTF-8"); + + // requests + builder.withRequestField("port_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ChangeServerNetworkInterfaceRequest::getPortId, + ChangeServerNetworkInterfaceRequest::setPortId)); + builder.withRequestField("server_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ChangeServerNetworkInterfaceRequest::getServerId, + ChangeServerNetworkInterfaceRequest::setServerId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ChangeServerNetworkInterfaceRequestBody.class), + f -> f.withMarshaller(ChangeServerNetworkInterfaceRequest::getBody, + ChangeServerNetworkInterfaceRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef changeServerOsWithCloudInit = genForChangeServerOsWithCloudInit(); diff --git a/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceRequest.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceRequest.java new file mode 100644 index 0000000000..7bc30fa27c --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.ecs.v2.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 ChangeServerNetworkInterfaceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port_id") + + private String portId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server_id") + + private String serverId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ChangeServerNetworkInterfaceRequestBody body; + + public ChangeServerNetworkInterfaceRequest withPortId(String portId) { + this.portId = portId; + return this; + } + + /** + * 网卡port id + * @return portId + */ + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public ChangeServerNetworkInterfaceRequest withServerId(String serverId) { + this.serverId = serverId; + return this; + } + + /** + * 云服务器ID。 + * @return serverId + */ + public String getServerId() { + return serverId; + } + + public void setServerId(String serverId) { + this.serverId = serverId; + } + + public ChangeServerNetworkInterfaceRequest withBody(ChangeServerNetworkInterfaceRequestBody body) { + this.body = body; + return this; + } + + public ChangeServerNetworkInterfaceRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ChangeServerNetworkInterfaceRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ChangeServerNetworkInterfaceRequestBody getBody() { + return body; + } + + public void setBody(ChangeServerNetworkInterfaceRequestBody 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; + } + ChangeServerNetworkInterfaceRequest that = (ChangeServerNetworkInterfaceRequest) obj; + return Objects.equals(this.portId, that.portId) && Objects.equals(this.serverId, that.serverId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(portId, serverId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeServerNetworkInterfaceRequest {\n"); + sb.append(" portId: ").append(toIndentedString(portId)).append("\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/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceRequestBody.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceRequestBody.java new file mode 100644 index 0000000000..863d8ad9b5 --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceRequestBody.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.ecs.v2.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * This is a auto create Body Object + */ +public class ChangeServerNetworkInterfaceRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip_address") + + private String ipAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ipv6_address") + + private String ipv6Address; + + public ChangeServerNetworkInterfaceRequestBody withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * 子网ID ,UUID格式。更新IP地址时,必须指定该参数;更新IPv6地址时,该参数可以不填。 + * @return subnetId + */ + public String getSubnetId() { + return subnetId; + } + + public void setSubnetId(String subnetId) { + this.subnetId = subnetId; + } + + public ChangeServerNetworkInterfaceRequestBody withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * IPv4地址,为空字符串时表示随机更新网卡IPv4地址。 约束: - 该参数和ipv6_address必须指定一个。 - 该参数和ipv6_address不能同时指定。 + * @return ipAddress + */ + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public ChangeServerNetworkInterfaceRequestBody withIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + /** + * IPv6地址,为空字符串时表示随机更新网卡IPv6地址。 约束: - 该参数和ip_address必须指定一个。 - 该参数和ip_address不能同时指定。 + * @return ipv6Address + */ + public String getIpv6Address() { + return ipv6Address; + } + + public void setIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeServerNetworkInterfaceRequestBody that = (ChangeServerNetworkInterfaceRequestBody) obj; + return Objects.equals(this.subnetId, that.subnetId) && Objects.equals(this.ipAddress, that.ipAddress) + && Objects.equals(this.ipv6Address, that.ipv6Address); + } + + @Override + public int hashCode() { + return Objects.hash(subnetId, ipAddress, ipv6Address); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeServerNetworkInterfaceRequestBody {\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" ipv6Address: ").append(toIndentedString(ipv6Address)).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/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceResponse.java b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceResponse.java new file mode 100644 index 0000000000..a6a24b3c87 --- /dev/null +++ b/services/ecs/src/main/java/com/huaweicloud/sdk/ecs/v2/model/ChangeServerNetworkInterfaceResponse.java @@ -0,0 +1,143 @@ +package com.huaweicloud.sdk.ecs.v2.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 ChangeServerNetworkInterfaceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "subnet_id") + + private String subnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip_address") + + private String ipAddress; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ipv6_address") + + private String ipv6Address; + + public ChangeServerNetworkInterfaceResponse 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 ChangeServerNetworkInterfaceResponse 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 ChangeServerNetworkInterfaceResponse withIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * 网卡IPv4地址。 + * @return ipAddress + */ + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public ChangeServerNetworkInterfaceResponse withIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + return this; + } + + /** + * 网卡IPv6地址,未开通IPv6协议的网卡不返回该字段。 + * @return ipv6Address + */ + public String getIpv6Address() { + return ipv6Address; + } + + public void setIpv6Address(String ipv6Address) { + this.ipv6Address = ipv6Address; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ChangeServerNetworkInterfaceResponse that = (ChangeServerNetworkInterfaceResponse) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.subnetId, that.subnetId) + && Objects.equals(this.ipAddress, that.ipAddress) && Objects.equals(this.ipv6Address, that.ipv6Address); + } + + @Override + public int hashCode() { + return Objects.hash(id, subnetId, ipAddress, ipv6Address); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChangeServerNetworkInterfaceResponse {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" subnetId: ").append(toIndentedString(subnetId)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" ipv6Address: ").append(toIndentedString(ipv6Address)).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/edgesec/pom.xml b/services/edgesec/pom.xml index 004a8058d1..41cbd9bf16 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-edgesec - 3.1.97 + 3.1.98 Huawei Cloud SDK for EDGESEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/eds/pom.xml b/services/eds/pom.xml index 0ef3a4c107..6de56076bd 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-eds - 3.1.97 + 3.1.98 Huawei Cloud SDK for EDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/eg/pom.xml b/services/eg/pom.xml index 5d368b8a1a..e881db9442 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-eg - 3.1.97 + 3.1.98 Huawei Cloud SDK for EG 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/eihealth/pom.xml b/services/eihealth/pom.xml index dbba803cfc..89d6241f07 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-eihealth - 3.1.97 + 3.1.98 Huawei Cloud SDK for EIHEALTH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/eip/pom.xml b/services/eip/pom.xml index 40709b0c6e..ad5ea3d695 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-eip - 3.1.97 + 3.1.98 Huawei Cloud SDK for EIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/elb/pom.xml b/services/elb/pom.xml index 0ec3598f3c..0e92516543 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-elb - 3.1.97 + 3.1.98 Huawei Cloud SDK for ELB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/eps/pom.xml b/services/eps/pom.xml index b0814dd2f5..5701222e13 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-eps - 3.1.97 + 3.1.98 Huawei Cloud SDK for EPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/er/pom.xml b/services/er/pom.xml index 2e006fe2e9..6c6a7d8886 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-er - 3.1.97 + 3.1.98 Huawei Cloud SDK for ER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/evs/pom.xml b/services/evs/pom.xml index 9440c186a6..a6b67f2ebd 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-evs - 3.1.97 + 3.1.98 Huawei Cloud SDK for EVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/expert/pom.xml b/services/expert/pom.xml index b1d9c32208..82a430be90 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-expert - 3.1.97 + 3.1.98 Huawei Cloud SDK for EXPERT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/frs/pom.xml b/services/frs/pom.xml index 9b096d7560..73182b575b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-frs - 3.1.97 + 3.1.98 Huawei Cloud SDK for FRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/functiongraph/pom.xml b/services/functiongraph/pom.xml index ad03d39fd9..43072ab794 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-functiongraph - 3.1.97 + 3.1.98 Huawei Cloud SDK for FUNCTIONGRAPH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphRegion.java b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphRegion.java index 83d14aa00d..3cade5f0ef 100644 --- a/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphRegion.java +++ b/services/functiongraph/src/main/java/com/huaweicloud/sdk/functiongraph/v2/region/FunctionGraphRegion.java @@ -73,6 +73,9 @@ public class FunctionGraphRegion { public static final Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", "https://functiongraph.my-kualalumpur-1.myhuaweicloud.com"); + public static final Region CN_SOUTH_4 = + new Region("cn-south-4", "https://functiongraph.cn-south-4.myhuaweicloud.com"); + private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("FUNCTIONGRAPH"); private static final Map STATIC_FIELDS = createStaticFields(); @@ -100,6 +103,7 @@ private static Map createStaticFields() { map.put("cn-north-11", CN_NORTH_11); map.put("me-east-1", ME_EAST_1); map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); + map.put("cn-south-4", CN_SOUTH_4); return Collections.unmodifiableMap(map); } diff --git a/services/ga/pom.xml b/services/ga/pom.xml index 79e10baa44..fc2a9a88af 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ga - 3.1.97 + 3.1.98 Huawei Cloud SDK for GA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/gaussdb/pom.xml b/services/gaussdb/pom.xml index 1648d40787..788b256f69 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdb - 3.1.97 + 3.1.98 Huawei Cloud SDK for GAUSSDB 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java index 48a9b11564..c870fb4059 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBAsyncClient.java @@ -217,6 +217,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyIpgroupRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyIpgroupResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyVersionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyVersionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowRestoreTablesRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowRestoreTablesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterControlRequest; @@ -273,6 +277,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateNewNodeAutoAddSwitchResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyConnectionPoolTypeRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyConnectionPoolTypeResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNameRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNameResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNewConfigurationsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNewConfigurationsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyPortRequest; @@ -289,6 +295,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeProxyVersionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeProxyVersionResponse; import java.util.concurrent.CompletableFuture; @@ -2839,6 +2847,64 @@ public AsyncInvoker(request, GaussDBMeta.showIntelligentDiagnosisInstanceInfosPerMetric, hcClient); } + /** + * 查询代理实例访问控制 + * + * 查询代理实例访问控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyIpgroupRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showProxyIpgroupAsync(ShowProxyIpgroupRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.showProxyIpgroup); + } + + /** + * 查询代理实例访问控制 + * + * 查询代理实例访问控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyIpgroupRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showProxyIpgroupAsyncInvoker( + ShowProxyIpgroupRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.showProxyIpgroup, hcClient); + } + + /** + * 查询代理实例小版本 + * + * 查询代理实例小版本 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyVersionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showProxyVersionAsync(ShowProxyVersionRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.showProxyVersion); + } + + /** + * 查询代理实例小版本 + * + * 查询代理实例小版本 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyVersionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showProxyVersionAsyncInvoker( + ShowProxyVersionRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.showProxyVersion, hcClient); + } + /** * 查询表级时间点恢复可选表 * @@ -3588,6 +3654,35 @@ public AsyncInvoker(request, GaussDBMeta.updateProxyConnectionPoolType, hcClient); } + /** + * 修改代理实例名称 + * + * 修改代理实例名称 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProxyNameRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateProxyNameAsync(UpdateProxyNameRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.updateProxyName); + } + + /** + * 修改代理实例名称 + * + * 修改代理实例名称 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProxyNameRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateProxyNameAsyncInvoker( + UpdateProxyNameRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.updateProxyName, hcClient); + } + /** * 修改代理实例参数 * @@ -3737,6 +3832,35 @@ public AsyncInvoker(request, GaussDBMeta.upgradeGaussMySqlInstanceDatabase, hcClient); } + /** + * 升级数据库代理实例内核版本 + * + * 升级数据库代理实例内核版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeProxyVersionRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture upgradeProxyVersionAsync(UpgradeProxyVersionRequest request) { + return hcClient.asyncInvokeHttp(request, GaussDBMeta.upgradeProxyVersion); + } + + /** + * 升级数据库代理实例内核版本 + * + * 升级数据库代理实例内核版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeProxyVersionRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker upgradeProxyVersionAsyncInvoker( + UpgradeProxyVersionRequest request) { + return new AsyncInvoker<>(request, GaussDBMeta.upgradeProxyVersion, hcClient); + } + /** * HTAP数据同步库配置校验 * diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java index 01437db919..0a5c340af8 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBClient.java @@ -217,6 +217,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyIpgroupRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyIpgroupResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyVersionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyVersionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowRestoreTablesRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowRestoreTablesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterControlRequest; @@ -273,6 +277,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateNewNodeAutoAddSwitchResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyConnectionPoolTypeRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyConnectionPoolTypeResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNameRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNameResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNewConfigurationsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNewConfigurationsResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyPortRequest; @@ -289,6 +295,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateTransactionSplitStatusResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeProxyVersionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeProxyVersionResponse; public class GaussDBClient { @@ -2791,6 +2799,64 @@ public SyncInvoker(request, GaussDBMeta.showIntelligentDiagnosisInstanceInfosPerMetric, hcClient); } + /** + * 查询代理实例访问控制 + * + * 查询代理实例访问控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyIpgroupRequest 请求对象 + * @return ShowProxyIpgroupResponse + */ + public ShowProxyIpgroupResponse showProxyIpgroup(ShowProxyIpgroupRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.showProxyIpgroup); + } + + /** + * 查询代理实例访问控制 + * + * 查询代理实例访问控制 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyIpgroupRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showProxyIpgroupInvoker( + ShowProxyIpgroupRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.showProxyIpgroup, hcClient); + } + + /** + * 查询代理实例小版本 + * + * 查询代理实例小版本 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyVersionRequest 请求对象 + * @return ShowProxyVersionResponse + */ + public ShowProxyVersionResponse showProxyVersion(ShowProxyVersionRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.showProxyVersion); + } + + /** + * 查询代理实例小版本 + * + * 查询代理实例小版本 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowProxyVersionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showProxyVersionInvoker( + ShowProxyVersionRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.showProxyVersion, hcClient); + } + /** * 查询表级时间点恢复可选表 * @@ -3531,6 +3597,35 @@ public SyncInvoker(request, GaussDBMeta.updateProxyConnectionPoolType, hcClient); } + /** + * 修改代理实例名称 + * + * 修改代理实例名称 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProxyNameRequest 请求对象 + * @return UpdateProxyNameResponse + */ + public UpdateProxyNameResponse updateProxyName(UpdateProxyNameRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.updateProxyName); + } + + /** + * 修改代理实例名称 + * + * 修改代理实例名称 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateProxyNameRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateProxyNameInvoker( + UpdateProxyNameRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.updateProxyName, hcClient); + } + /** * 修改代理实例参数 * @@ -3680,6 +3775,35 @@ public SyncInvoker(request, GaussDBMeta.upgradeGaussMySqlInstanceDatabase, hcClient); } + /** + * 升级数据库代理实例内核版本 + * + * 升级数据库代理实例内核版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeProxyVersionRequest 请求对象 + * @return UpgradeProxyVersionResponse + */ + public UpgradeProxyVersionResponse upgradeProxyVersion(UpgradeProxyVersionRequest request) { + return hcClient.syncInvokeHttp(request, GaussDBMeta.upgradeProxyVersion); + } + + /** + * 升级数据库代理实例内核版本 + * + * 升级数据库代理实例内核版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpgradeProxyVersionRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker upgradeProxyVersionInvoker( + UpgradeProxyVersionRequest request) { + return new SyncInvoker<>(request, GaussDBMeta.upgradeProxyVersion, hcClient); + } + /** * HTAP数据同步库配置校验 * diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java index c2b930a740..91c03c3c7e 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/GaussDBMeta.java @@ -207,6 +207,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.OperateSqlFilterRuleReq; import com.huaweicloud.sdk.gaussdb.v3.model.ProxyTransactionSplitRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ProxyUpdateProxyConnectionPoolTypeRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ProxyUpdateProxyNameRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ProxyUpgradeProxyVersionRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ResetDatabasePasswordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ResetGaussMySqlDatabasePasswordRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ResetGaussMySqlDatabasePasswordResponse; @@ -274,6 +276,10 @@ import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisAbnormalCountOfInstancesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisInstanceInfosPerMetricRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowIntelligentDiagnosisInstanceInfosPerMetricResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyIpgroupRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyIpgroupResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyVersionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.ShowProxyVersionResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowRestoreTablesRequest; import com.huaweicloud.sdk.gaussdb.v3.model.ShowRestoreTablesResponse; import com.huaweicloud.sdk.gaussdb.v3.model.ShowSqlFilterControlRequest; @@ -351,6 +357,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpdateNewNodeAutoAddSwitchResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyConnectionPoolTypeRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyConnectionPoolTypeResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNameRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNameResponse; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNewConfigRequestBody; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNewConfigurationsRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpdateProxyNewConfigurationsResponse; @@ -370,6 +378,8 @@ import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeDatabaseRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseRequest; import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeGaussMySqlInstanceDatabaseResponse; +import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeProxyVersionRequest; +import com.huaweicloud.sdk.gaussdb.v3.model.UpgradeProxyVersionResponse; @SuppressWarnings("unchecked") public class GaussDBMeta { @@ -3671,6 +3681,77 @@ private static HttpRequestDef showProxyIpgroup = + genForShowProxyIpgroup(); + + private static HttpRequestDef genForShowProxyIpgroup() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowProxyIpgroupRequest.class, ShowProxyIpgroupResponse.class) + .withName("ShowProxyIpgroup") + .withUri("/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/ipgroup") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProxyIpgroupRequest::getInstanceId, ShowProxyIpgroupRequest::setInstanceId)); + builder.withRequestField("proxy_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProxyIpgroupRequest::getProxyId, ShowProxyIpgroupRequest::setProxyId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProxyIpgroupRequest::getXLanguage, ShowProxyIpgroupRequest::setXLanguage)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showProxyVersion = + genForShowProxyVersion(); + + private static HttpRequestDef genForShowProxyVersion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowProxyVersionRequest.class, ShowProxyVersionResponse.class) + .withName("ShowProxyVersion") + .withUri("/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/{engine_name}/proxy-version") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProxyVersionRequest::getInstanceId, ShowProxyVersionRequest::setInstanceId)); + builder.withRequestField("engine_name", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProxyVersionRequest::getEngineName, ShowProxyVersionRequest::setEngineName)); + builder.withRequestField("proxy_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProxyVersionRequest::getProxyId, ShowProxyVersionRequest::setProxyId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowProxyVersionRequest::getXLanguage, ShowProxyVersionRequest::setXLanguage)); + + // response + + return builder.build(); + } + public static final HttpRequestDef showRestoreTables = genForShowRestoreTables(); @@ -4661,6 +4742,44 @@ private static HttpRequestDef updateProxyName = + genForUpdateProxyName(); + + private static HttpRequestDef genForUpdateProxyName() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateProxyNameRequest.class, UpdateProxyNameResponse.class) + .withName("UpdateProxyName") + .withUri("/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/rename") + .withContentType("application/json"); + + // requests + builder.withRequestField("instance_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProxyNameRequest::getInstanceId, UpdateProxyNameRequest::setInstanceId)); + builder.withRequestField("proxy_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProxyNameRequest::getProxyId, UpdateProxyNameRequest::setProxyId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateProxyNameRequest::getXLanguage, UpdateProxyNameRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ProxyUpdateProxyNameRequest.class), + f -> f.withMarshaller(UpdateProxyNameRequest::getBody, UpdateProxyNameRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef updateProxyNewConfigurations = genForUpdateProxyNewConfigurations(); @@ -4867,6 +4986,45 @@ private static HttpRequestDef upgradeProxyVersion = + genForUpgradeProxyVersion(); + + private static HttpRequestDef genForUpgradeProxyVersion() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, UpgradeProxyVersionRequest.class, UpgradeProxyVersionResponse.class) + .withName("UpgradeProxyVersion") + .withUri("/v3/{project_id}/instances/{instance_id}/proxy/{proxy_id}/upgrade-version") + .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(UpgradeProxyVersionRequest::getInstanceId, + UpgradeProxyVersionRequest::setInstanceId)); + builder.withRequestField("proxy_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpgradeProxyVersionRequest::getProxyId, UpgradeProxyVersionRequest::setProxyId)); + builder.withRequestField("X-Language", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpgradeProxyVersionRequest::getXLanguage, UpgradeProxyVersionRequest::setXLanguage)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ProxyUpgradeProxyVersionRequest.class), + f -> f.withMarshaller(UpgradeProxyVersionRequest::getBody, UpgradeProxyVersionRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef checkDataBaseConfig = genForCheckDataBaseConfig(); diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.java index 2e16934f26..f39d899e00 100644 --- a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.java +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ModifyGaussMySqlProxyRouteModeRequestBody.java @@ -131,7 +131,7 @@ public ModifyGaussMySqlProxyRouteModeRequestBody withNewNodeWeight(Integer newNo } /** - * 新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 + * 新增节点的读权重: - 如果路由模式为0,新增节点自动加入为ON,取值为0~1000。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 - 如果路由模式不为0或新增节点自动加入为OFF,则可不输入读权重。 * @return newNodeWeight */ public Integer getNewNodeWeight() { diff --git a/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpdateProxyNameRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpdateProxyNameRequest.java new file mode 100644 index 0000000000..a4761c631c --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpdateProxyNameRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 修改代理实例名称的请求体对象。 + */ +public class ProxyUpdateProxyNameRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "alias") + + private String alias; + + public ProxyUpdateProxyNameRequest withAlias(String alias) { + this.alias = alias; + return this; + } + + /** + * 修改代理实例的新名称 + * @return alias + */ + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProxyUpdateProxyNameRequest that = (ProxyUpdateProxyNameRequest) obj; + return Objects.equals(this.alias, that.alias); + } + + @Override + public int hashCode() { + return Objects.hash(alias); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProxyUpdateProxyNameRequest {\n"); + sb.append(" alias: ").append(toIndentedString(alias)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpgradeProxyVersionRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpgradeProxyVersionRequest.java new file mode 100644 index 0000000000..029860804e --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpgradeProxyVersionRequest.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * proxy升级内核版本请求体对象。 + */ +public class ProxyUpgradeProxyVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "source_version") + + private String sourceVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "target_version") + + private String targetVersion; + + public ProxyUpgradeProxyVersionRequest withSourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + return this; + } + + /** + * 升级前源内核版本号 + * @return sourceVersion + */ + public String getSourceVersion() { + return sourceVersion; + } + + public void setSourceVersion(String sourceVersion) { + this.sourceVersion = sourceVersion; + } + + public ProxyUpgradeProxyVersionRequest withTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + return this; + } + + /** + * 目标升级内核版本号 + * @return targetVersion + */ + public String getTargetVersion() { + return targetVersion; + } + + public void setTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ProxyUpgradeProxyVersionRequest that = (ProxyUpgradeProxyVersionRequest) obj; + return Objects.equals(this.sourceVersion, that.sourceVersion) + && Objects.equals(this.targetVersion, that.targetVersion); + } + + @Override + public int hashCode() { + return Objects.hash(sourceVersion, targetVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProxyUpgradeProxyVersionRequest {\n"); + sb.append(" sourceVersion: ").append(toIndentedString(sourceVersion)).append("\n"); + sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpgradeVersionDetail.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpgradeVersionDetail.java new file mode 100644 index 0000000000..7dfc0ae8ce --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ProxyUpgradeVersionDetail.java @@ -0,0 +1,142 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Proxy升级内核版本对象。 + */ +public class ProxyUpgradeVersionDetail { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "workflow_id") + + private String workflowId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "state") + + private String state; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "error_message") + + private String errorMessage; + + public ProxyUpgradeVersionDetail withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例id. + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ProxyUpgradeVersionDetail withWorkflowId(String workflowId) { + this.workflowId = workflowId; + return this; + } + + /** + * 工作流Id。 + * @return workflowId + */ + public String getWorkflowId() { + return workflowId; + } + + public void setWorkflowId(String workflowId) { + this.workflowId = workflowId; + } + + public ProxyUpgradeVersionDetail withState(String state) { + this.state = state; + return this; + } + + /** + * agent返回的升级下发状态码,默认返回。 + * @return state + */ + public String getState() { + return state; + } + + public void setState(String state) { + this.state = state; + } + + public ProxyUpgradeVersionDetail 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; + } + ProxyUpgradeVersionDetail that = (ProxyUpgradeVersionDetail) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.workflowId, that.workflowId) + && Objects.equals(this.state, that.state) && Objects.equals(this.errorMessage, that.errorMessage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, workflowId, state, errorMessage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProxyUpgradeVersionDetail {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" workflowId: ").append(toIndentedString(workflowId)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyIpgroupRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyIpgroupRequest.java new file mode 100644 index 0000000000..6a676fb716 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyIpgroupRequest.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowProxyIpgroupRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_id") + + private String proxyId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public ShowProxyIpgroupRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowProxyIpgroupRequest withProxyId(String proxyId) { + this.proxyId = proxyId; + return this; + } + + /** + * 数据库代理ID,严格匹配UUID规则。 + * @return proxyId + */ + public String getProxyId() { + return proxyId; + } + + public void setProxyId(String proxyId) { + this.proxyId = proxyId; + } + + public ShowProxyIpgroupRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProxyIpgroupRequest that = (ShowProxyIpgroupRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.proxyId, that.proxyId) + && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, proxyId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProxyIpgroupRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" proxyId: ").append(toIndentedString(proxyId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyIpgroupResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyIpgroupResponse.java new file mode 100644 index 0000000000..b37305a4a7 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyIpgroupResponse.java @@ -0,0 +1,120 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 ShowProxyIpgroupResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "enable_ip_group") + + private Boolean enableIpGroup; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ip_group") + + private Object ipGroup; + + public ShowProxyIpgroupResponse withEnableIpGroup(Boolean enableIpGroup) { + this.enableIpGroup = enableIpGroup; + return this; + } + + /** + * 允许访问控制或者不允许 true | false。 + * @return enableIpGroup + */ + public Boolean getEnableIpGroup() { + return enableIpGroup; + } + + public void setEnableIpGroup(Boolean enableIpGroup) { + this.enableIpGroup = enableIpGroup; + } + + public ShowProxyIpgroupResponse withType(String type) { + this.type = type; + return this; + } + + /** + * 白名单或者黑名单 'white' | 'black' + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ShowProxyIpgroupResponse withIpGroup(Object ipGroup) { + this.ipGroup = ipGroup; + return this; + } + + /** + * 白名单或黑名单详细信息 + * @return ipGroup + */ + public Object getIpGroup() { + return ipGroup; + } + + public void setIpGroup(Object ipGroup) { + this.ipGroup = ipGroup; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProxyIpgroupResponse that = (ShowProxyIpgroupResponse) obj; + return Objects.equals(this.enableIpGroup, that.enableIpGroup) && Objects.equals(this.type, that.type) + && Objects.equals(this.ipGroup, that.ipGroup); + } + + @Override + public int hashCode() { + return Objects.hash(enableIpGroup, type, ipGroup); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProxyIpgroupResponse {\n"); + sb.append(" enableIpGroup: ").append(toIndentedString(enableIpGroup)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ipGroup: ").append(toIndentedString(ipGroup)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyVersionRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyVersionRequest.java new file mode 100644 index 0000000000..793624e620 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyVersionRequest.java @@ -0,0 +1,144 @@ +package com.huaweicloud.sdk.gaussdb.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowProxyVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "engine_name") + + private String engineName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_id") + + private String proxyId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + public ShowProxyVersionRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ShowProxyVersionRequest withEngineName(String engineName) { + this.engineName = engineName; + return this; + } + + /** + * engine + * @return engineName + */ + public String getEngineName() { + return engineName; + } + + public void setEngineName(String engineName) { + this.engineName = engineName; + } + + public ShowProxyVersionRequest withProxyId(String proxyId) { + this.proxyId = proxyId; + return this; + } + + /** + * 数据库代理ID,严格匹配UUID规则。 + * @return proxyId + */ + public String getProxyId() { + return proxyId; + } + + public void setProxyId(String proxyId) { + this.proxyId = proxyId; + } + + public ShowProxyVersionRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProxyVersionRequest that = (ShowProxyVersionRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.engineName, that.engineName) + && Objects.equals(this.proxyId, that.proxyId) && Objects.equals(this.xLanguage, that.xLanguage); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, engineName, proxyId, xLanguage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProxyVersionRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" engineName: ").append(toIndentedString(engineName)).append("\n"); + sb.append(" proxyId: ").append(toIndentedString(proxyId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyVersionResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyVersionResponse.java new file mode 100644 index 0000000000..097c0f893a --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/ShowProxyVersionResponse.java @@ -0,0 +1,121 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 ShowProxyVersionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "current_version") + + private String currentVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "latest_version") + + private String latestVersion; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "can_upgrade") + + private Boolean canUpgrade; + + public ShowProxyVersionResponse withCurrentVersion(String currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + /** + * 当前代理版本 + * @return currentVersion + */ + public String getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(String currentVersion) { + this.currentVersion = currentVersion; + } + + public ShowProxyVersionResponse withLatestVersion(String latestVersion) { + this.latestVersion = latestVersion; + return this; + } + + /** + * 最新代理版本 + * @return latestVersion + */ + public String getLatestVersion() { + return latestVersion; + } + + public void setLatestVersion(String latestVersion) { + this.latestVersion = latestVersion; + } + + public ShowProxyVersionResponse withCanUpgrade(Boolean canUpgrade) { + this.canUpgrade = canUpgrade; + return this; + } + + /** + * 是否能升级 + * @return canUpgrade + */ + public Boolean getCanUpgrade() { + return canUpgrade; + } + + public void setCanUpgrade(Boolean canUpgrade) { + this.canUpgrade = canUpgrade; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowProxyVersionResponse that = (ShowProxyVersionResponse) obj; + return Objects.equals(this.currentVersion, that.currentVersion) + && Objects.equals(this.latestVersion, that.latestVersion) + && Objects.equals(this.canUpgrade, that.canUpgrade); + } + + @Override + public int hashCode() { + return Objects.hash(currentVersion, latestVersion, canUpgrade); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowProxyVersionResponse {\n"); + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append(" latestVersion: ").append(toIndentedString(latestVersion)).append("\n"); + sb.append(" canUpgrade: ").append(toIndentedString(canUpgrade)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateProxyNameRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateProxyNameRequest.java new file mode 100644 index 0000000000..576124fc72 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateProxyNameRequest.java @@ -0,0 +1,154 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 UpdateProxyNameRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_id") + + private String proxyId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ProxyUpdateProxyNameRequest body; + + public UpdateProxyNameRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateProxyNameRequest withProxyId(String proxyId) { + this.proxyId = proxyId; + return this; + } + + /** + * 数据库代理ID,严格匹配UUID规则。 + * @return proxyId + */ + public String getProxyId() { + return proxyId; + } + + public void setProxyId(String proxyId) { + this.proxyId = proxyId; + } + + public UpdateProxyNameRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 语言。 + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public UpdateProxyNameRequest withBody(ProxyUpdateProxyNameRequest body) { + this.body = body; + return this; + } + + public UpdateProxyNameRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ProxyUpdateProxyNameRequest(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ProxyUpdateProxyNameRequest getBody() { + return body; + } + + public void setBody(ProxyUpdateProxyNameRequest 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; + } + UpdateProxyNameRequest that = (UpdateProxyNameRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.proxyId, that.proxyId) + && Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, proxyId, xLanguage, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateProxyNameRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" proxyId: ").append(toIndentedString(proxyId)).append("\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateProxyNameResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateProxyNameResponse.java new file mode 100644 index 0000000000..c73c0b2da7 --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpdateProxyNameResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 UpdateProxyNameResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "result") + + private String result; + + public UpdateProxyNameResponse withResult(String result) { + this.result = result; + return this; + } + + /** + * 修改成功或者失败。 + * @return result + */ + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateProxyNameResponse that = (UpdateProxyNameResponse) obj; + return Objects.equals(this.result, that.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateProxyNameResponse {\n"); + sb.append(" result: ").append(toIndentedString(result)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpgradeProxyVersionRequest.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpgradeProxyVersionRequest.java new file mode 100644 index 0000000000..32676054fe --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpgradeProxyVersionRequest.java @@ -0,0 +1,154 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 UpgradeProxyVersionRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + + private String xLanguage; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "instance_id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "proxy_id") + + private String proxyId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ProxyUpgradeProxyVersionRequest body; + + public UpgradeProxyVersionRequest withXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + return this; + } + + /** + * 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn + * @return xLanguage + */ + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "X-Language") + public String getXLanguage() { + return xLanguage; + } + + public void setXLanguage(String xLanguage) { + this.xLanguage = xLanguage; + } + + public UpgradeProxyVersionRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID,严格匹配UUID规则。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpgradeProxyVersionRequest withProxyId(String proxyId) { + this.proxyId = proxyId; + return this; + } + + /** + * 数据库代理ID,严格匹配UUID规则。 + * @return proxyId + */ + public String getProxyId() { + return proxyId; + } + + public void setProxyId(String proxyId) { + this.proxyId = proxyId; + } + + public UpgradeProxyVersionRequest withBody(ProxyUpgradeProxyVersionRequest body) { + this.body = body; + return this; + } + + public UpgradeProxyVersionRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ProxyUpgradeProxyVersionRequest(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ProxyUpgradeProxyVersionRequest getBody() { + return body; + } + + public void setBody(ProxyUpgradeProxyVersionRequest 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; + } + UpgradeProxyVersionRequest that = (UpgradeProxyVersionRequest) obj; + return Objects.equals(this.xLanguage, that.xLanguage) && Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.proxyId, that.proxyId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(xLanguage, instanceId, proxyId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeProxyVersionRequest {\n"); + sb.append(" xLanguage: ").append(toIndentedString(xLanguage)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" proxyId: ").append(toIndentedString(proxyId)).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/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpgradeProxyVersionResponse.java b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpgradeProxyVersionResponse.java new file mode 100644 index 0000000000..a82e1a000a --- /dev/null +++ b/services/gaussdb/src/main/java/com/huaweicloud/sdk/gaussdb/v3/model/UpgradeProxyVersionResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.gaussdb.v3.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 UpgradeProxyVersionResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "update_result") + + private List updateResult = null; + + public UpgradeProxyVersionResponse withUpdateResult(List updateResult) { + this.updateResult = updateResult; + return this; + } + + public UpgradeProxyVersionResponse addUpdateResultItem(ProxyUpgradeVersionDetail updateResultItem) { + if (this.updateResult == null) { + this.updateResult = new ArrayList<>(); + } + this.updateResult.add(updateResultItem); + return this; + } + + public UpgradeProxyVersionResponse withUpdateResult(Consumer> updateResultSetter) { + if (this.updateResult == null) { + this.updateResult = new ArrayList<>(); + } + updateResultSetter.accept(this.updateResult); + return this; + } + + /** + * 数据库代理升级信息列表。 + * @return updateResult + */ + public List getUpdateResult() { + return updateResult; + } + + public void setUpdateResult(List updateResult) { + this.updateResult = updateResult; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpgradeProxyVersionResponse that = (UpgradeProxyVersionResponse) obj; + return Objects.equals(this.updateResult, that.updateResult); + } + + @Override + public int hashCode() { + return Objects.hash(updateResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeProxyVersionResponse {\n"); + sb.append(" updateResult: ").append(toIndentedString(updateResult)).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/gaussdbfornosql/pom.xml b/services/gaussdbfornosql/pom.xml index 1c5293e085..7d5e174a34 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbfornosql - 3.1.97 + 3.1.98 Huawei Cloud SDK for GAUSSDBFORNOSQL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/gaussdbforopengauss/pom.xml b/services/gaussdbforopengauss/pom.xml index 2f836d1583..ba6140cb54 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-gaussdbforopengauss - 3.1.97 + 3.1.98 Huawei Cloud SDK for GAUSSDBFOROPENGAUSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/Components.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/Components.java index 8c1e98870d..08ec0f50d8 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/Components.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/Components.java @@ -30,6 +30,16 @@ public class Components { private String distributedId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private String type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "detail") + + private String detail; + public Components withId(String id) { this.id = id; return this; @@ -98,6 +108,40 @@ public void setDistributedId(String distributedId) { this.distributedId = distributedId; } + public Components withType(String type) { + this.type = type; + return this; + } + + /** + * 节点类型,包括:DN, CN, GTM, CM, ETCD。 + * @return type + */ + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public Components withDetail(String detail) { + this.detail = detail; + return this; + } + + /** + * 详情。 + * @return detail + */ + public String getDetail() { + return detail; + } + + public void setDetail(String detail) { + this.detail = detail; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -108,12 +152,13 @@ public boolean equals(java.lang.Object obj) { } Components that = (Components) obj; return Objects.equals(this.id, that.id) && Objects.equals(this.role, that.role) - && Objects.equals(this.status, that.status) && Objects.equals(this.distributedId, that.distributedId); + && Objects.equals(this.status, that.status) && Objects.equals(this.distributedId, that.distributedId) + && Objects.equals(this.type, that.type) && Objects.equals(this.detail, that.detail); } @Override public int hashCode() { - return Objects.hash(id, role, status, distributedId); + return Objects.hash(id, role, status, distributedId, type, detail); } @Override @@ -124,6 +169,8 @@ public String toString() { sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" distributedId: ").append(toIndentedString(distributedId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateConfigurationTemplateRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateConfigurationTemplateRequestBody.java index f7153f2524..1519e023f5 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateConfigurationTemplateRequestBody.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateConfigurationTemplateRequestBody.java @@ -39,7 +39,7 @@ public CreateConfigurationTemplateRequestBody withName(String name) { } /** - * 参数模板名称。 取值范围:长度1到64位之间,区分大小写字母,可包含字母、数字、中划线、下划线或句点,不能包含其他特殊字符。 + * 参数模板名称,不可与已有参数模板名称重复。 取值范围:长度1到64位之间,区分大小写字母,可包含字母、数字、中划线、下划线或句点,不能包含其他特殊字符。 * @return name */ public String getName() { diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateManualBackupRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateManualBackupRequestBody.java index 383d178ba6..325ff40fa3 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateManualBackupRequestBody.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/CreateManualBackupRequestBody.java @@ -48,7 +48,7 @@ public CreateManualBackupRequestBody withName(String name) { } /** - * 备份名称,4~64个字符,必须以英文字母开头,区分大小写,可以包含英文字母、数字、中划线或者下划线,不能包含其他特殊字符。 + * 备份名称,不可重复,4~64个字符,必须以英文字母开头,区分大小写,可以包含英文字母、数字、中划线或者下划线,不能包含其他特殊字符。 * @return name */ public String getName() { diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreOption.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreOption.java index 21f881af65..83869557bb 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreOption.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DatastoreOption.java @@ -30,6 +30,11 @@ public static final class InstanceModeEnum { */ public static final InstanceModeEnum HA = new InstanceModeEnum("ha"); + /** + * Enum HA_READONLY for value: "ha:readonly" + */ + public static final InstanceModeEnum HA_READONLY = new InstanceModeEnum("ha:readonly"); + /** * Enum INDEPENDENT for value: "independent" */ @@ -40,6 +45,7 @@ public static final class InstanceModeEnum { private static Map createStaticFields() { Map map = new HashMap<>(); map.put("ha", HA); + map.put("ha:readonly", HA_READONLY); map.put("independent", INDEPENDENT); return Collections.unmodifiableMap(map); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteManualBackupRequest.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteManualBackupRequest.java index 44d14c49dc..1a660ecf58 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteManualBackupRequest.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/DeleteManualBackupRequest.java @@ -45,7 +45,7 @@ public DeleteManualBackupRequest withBackupId(String backupId) { } /** - * 备份ID。 + * 手动备份ID。 * @return backupId */ public String getBackupId() { diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBforOpenGaussListDatabase.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBforOpenGaussListDatabase.java index ea323ad802..39df6337c8 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBforOpenGaussListDatabase.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/GaussDBforOpenGaussListDatabase.java @@ -35,6 +35,16 @@ public class GaussDBforOpenGaussListDatabase { private String size; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "datctype") + + private String datctype; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "compatibility_type") + + private String compatibilityType; + public GaussDBforOpenGaussListDatabase withName(String name) { this.name = name; return this; @@ -120,6 +130,40 @@ public void setSize(String size) { this.size = size; } + public GaussDBforOpenGaussListDatabase withDatctype(String datctype) { + this.datctype = datctype; + return this; + } + + /** + * 数据库使用的字符分类,例如en_US.UTF-8等。 + * @return datctype + */ + public String getDatctype() { + return datctype; + } + + public void setDatctype(String datctype) { + this.datctype = datctype; + } + + public GaussDBforOpenGaussListDatabase withCompatibilityType(String compatibilityType) { + this.compatibilityType = compatibilityType; + return this; + } + + /** + * 数据库兼容的类型,如GaussDB,M。 + * @return compatibilityType + */ + public String getCompatibilityType() { + return compatibilityType; + } + + public void setCompatibilityType(String compatibilityType) { + this.compatibilityType = compatibilityType; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -131,12 +175,13 @@ public boolean equals(java.lang.Object obj) { GaussDBforOpenGaussListDatabase that = (GaussDBforOpenGaussListDatabase) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.owner, that.owner) && Objects.equals(this.characterSet, that.characterSet) && Objects.equals(this.collateSet, that.collateSet) - && Objects.equals(this.size, that.size); + && Objects.equals(this.size, that.size) && Objects.equals(this.datctype, that.datctype) + && Objects.equals(this.compatibilityType, that.compatibilityType); } @Override public int hashCode() { - return Objects.hash(name, owner, characterSet, collateSet, size); + return Objects.hash(name, owner, characterSet, collateSet, size, datctype, compatibilityType); } @Override @@ -148,6 +193,8 @@ public String toString() { sb.append(" characterSet: ").append(toIndentedString(characterSet)).append("\n"); sb.append(" collateSet: ").append(toIndentedString(collateSet)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" datctype: ").append(toIndentedString(datctype)).append("\n"); + sb.append(" compatibilityType: ").append(toIndentedString(compatibilityType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParaGroupParameterResult.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParaGroupParameterResult.java index 20746f9bfa..6a6344c7a3 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParaGroupParameterResult.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParaGroupParameterResult.java @@ -41,7 +41,7 @@ public class ParaGroupParameterResult { private String valueRange; /** - * 参数类型,取值为“string”、“integer”、“boolean”、“list”或“float”之一。 + * 参数类型,取值为“string”、“integer”、“boolean”、“list”、\"all\"或“float”之一。 */ public static final class DataTypeEnum { @@ -229,7 +229,7 @@ public ParaGroupParameterResult withDataType(DataTypeEnum dataType) { } /** - * 参数类型,取值为“string”、“integer”、“boolean”、“list”或“float”之一。 + * 参数类型,取值为“string”、“integer”、“boolean”、“list”、\"all\"或“float”之一。 * @return dataType */ public DataTypeEnum getDataType() { diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParamGroupDiffRequestBody.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParamGroupDiffRequestBody.java index ab60af8ed4..8d15c4584e 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParamGroupDiffRequestBody.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/ParamGroupDiffRequestBody.java @@ -43,7 +43,7 @@ public ParamGroupDiffRequestBody withTargetId(String targetId) { } /** - * 需要进行比较的参数组模板ID。 + * 需要进行比较的参数组模板ID,需要与源参数组模板的部署形态相同才可比较。 * @return targetId */ public String getTargetId() { diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.java index 8eaedd2173..ef2a3b45ea 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/RecycleInstancesDetailResult.java @@ -26,7 +26,7 @@ public class RecycleInstancesDetailResult { private String name; /** - * 部署形态。 + * 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。 */ public static final class HaModeEnum { @@ -382,7 +382,7 @@ public int hashCode() { private RecycleStatusEnum recycleStatus; /** - * 实例类型(basic:基础版;standard:标准版;enterprise:企业版)。 + * 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。 */ public static final class ModeEnum { @@ -502,7 +502,7 @@ public RecycleInstancesDetailResult withHaMode(HaModeEnum haMode) { } /** - * 部署形态。 + * 部署形态(Ha:主备版;Independent:独立部署;Combined:混合部署)。 * @return haMode */ public HaModeEnum getHaMode() { @@ -740,7 +740,7 @@ public RecycleInstancesDetailResult withMode(ModeEnum mode) { } /** - * 实例类型(basic:基础版;standard:标准版;enterprise:企业版)。 + * 产品类型(basic:基础版;standard:标准版;enterprise:企业版)。 * @return mode */ public ModeEnum getMode() { diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SearchAutoEnlargePolicyResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SearchAutoEnlargePolicyResponse.java index a8e5da3ede..f2642db5ca 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SearchAutoEnlargePolicyResponse.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/SearchAutoEnlargePolicyResponse.java @@ -44,6 +44,16 @@ public class SearchAutoEnlargePolicyResponse extends SdkResponse { private List percents = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "step_size") + + private Integer stepSize; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "step_percent") + + private Integer stepPercent; + public SearchAutoEnlargePolicyResponse withSwitchOption(Boolean switchOption) { this.switchOption = switchOption; return this; @@ -162,6 +172,40 @@ public void setPercents(List percents) { this.percents = percents; } + public SearchAutoEnlargePolicyResponse withStepSize(Integer stepSize) { + this.stepSize = stepSize; + return this; + } + + /** + * 扩容步长,固定大小扩容方式。 + * @return stepSize + */ + public Integer getStepSize() { + return stepSize; + } + + public void setStepSize(Integer stepSize) { + this.stepSize = stepSize; + } + + public SearchAutoEnlargePolicyResponse withStepPercent(Integer stepPercent) { + this.stepPercent = stepPercent; + return this; + } + + /** + * 扩容步长,百分比扩容方式。 + * @return stepPercent + */ + public Integer getStepPercent() { + return stepPercent; + } + + public void setStepPercent(Integer stepPercent) { + this.stepPercent = stepPercent; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -176,13 +220,20 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.minVolumeSize, that.minVolumeSize) && Objects.equals(this.maxVolumeSize, that.maxVolumeSize) && Objects.equals(this.triggerAvailablePercent, that.triggerAvailablePercent) - && Objects.equals(this.percents, that.percents); + && Objects.equals(this.percents, that.percents) && Objects.equals(this.stepSize, that.stepSize) + && Objects.equals(this.stepPercent, that.stepPercent); } @Override public int hashCode() { - return Objects - .hash(switchOption, limitVolumeSize, minVolumeSize, maxVolumeSize, triggerAvailablePercent, percents); + return Objects.hash(switchOption, + limitVolumeSize, + minVolumeSize, + maxVolumeSize, + triggerAvailablePercent, + percents, + stepSize, + stepPercent); } @Override @@ -195,6 +246,8 @@ public String toString() { sb.append(" maxVolumeSize: ").append(toIndentedString(maxVolumeSize)).append("\n"); sb.append(" triggerAvailablePercent: ").append(toIndentedString(triggerAvailablePercent)).append("\n"); sb.append(" percents: ").append(toIndentedString(percents)).append("\n"); + sb.append(" stepSize: ").append(toIndentedString(stepSize)).append("\n"); + sb.append(" stepPercent: ").append(toIndentedString(stepPercent)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/TaskDetailResult.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/TaskDetailResult.java index 33fda66e82..294a1bc715 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/TaskDetailResult.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/TaskDetailResult.java @@ -36,6 +36,16 @@ public class TaskDetailResult { private String process; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private String createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "ended_at") + + private String endedAt; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "fail_reason") @@ -135,6 +145,40 @@ public void setProcess(String process) { this.process = process; } + public TaskDetailResult withCreatedAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return createdAt + */ + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public TaskDetailResult withEndedAt(String endedAt) { + this.endedAt = endedAt; + return this; + } + + /** + * 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 + * @return endedAt + */ + public String getEndedAt() { + return endedAt; + } + + public void setEndedAt(String endedAt) { + this.endedAt = endedAt; + } + public TaskDetailResult withFailReason(String failReason) { this.failReason = failReason; return this; @@ -163,12 +207,13 @@ public boolean equals(java.lang.Object obj) { TaskDetailResult that = (TaskDetailResult) obj; return Objects.equals(this.instanceInfo, that.instanceInfo) && Objects.equals(this.jobId, that.jobId) && Objects.equals(this.name, that.name) && Objects.equals(this.status, that.status) - && Objects.equals(this.process, that.process) && Objects.equals(this.failReason, that.failReason); + && Objects.equals(this.process, that.process) && Objects.equals(this.createdAt, that.createdAt) + && Objects.equals(this.endedAt, that.endedAt) && Objects.equals(this.failReason, that.failReason); } @Override public int hashCode() { - return Objects.hash(instanceInfo, jobId, name, status, process, failReason); + return Objects.hash(instanceInfo, jobId, name, status, process, createdAt, endedAt, failReason); } @Override @@ -180,6 +225,8 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" process: ").append(toIndentedString(process)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" endedAt: ").append(toIndentedString(endedAt)).append("\n"); sb.append(" failReason: ").append(toIndentedString(failReason)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateInstanceConfigurationResponse.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateInstanceConfigurationResponse.java index d793c1775b..1e4b8340a4 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateInstanceConfigurationResponse.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpdateInstanceConfigurationResponse.java @@ -16,6 +16,11 @@ public class UpdateInstanceConfigurationResponse extends SdkResponse { private Boolean restartRequired; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "job_id") + + private String jobId; + public UpdateInstanceConfigurationResponse withRestartRequired(Boolean restartRequired) { this.restartRequired = restartRequired; return this; @@ -33,6 +38,23 @@ public void setRestartRequired(Boolean restartRequired) { this.restartRequired = restartRequired; } + public UpdateInstanceConfigurationResponse 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) { @@ -42,12 +64,12 @@ public boolean equals(java.lang.Object obj) { return false; } UpdateInstanceConfigurationResponse that = (UpdateInstanceConfigurationResponse) obj; - return Objects.equals(this.restartRequired, that.restartRequired); + return Objects.equals(this.restartRequired, that.restartRequired) && Objects.equals(this.jobId, that.jobId); } @Override public int hashCode() { - return Objects.hash(restartRequired); + return Objects.hash(restartRequired, jobId); } @Override @@ -55,6 +77,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateInstanceConfigurationResponse {\n"); sb.append(" restartRequired: ").append(toIndentedString(restartRequired)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpgradeTypeInfo.java b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpgradeTypeInfo.java index 38ddfca8f7..78021b185c 100644 --- a/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpgradeTypeInfo.java +++ b/services/gaussdbforopengauss/src/main/java/com/huaweicloud/sdk/gaussdbforopengauss/v3/model/UpgradeTypeInfo.java @@ -109,6 +109,11 @@ public int hashCode() { private List upgradeActionList = null; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "is_parallel_upgrade") + + private Boolean isParallelUpgrade; + public UpgradeTypeInfo withUpgradeType(UpgradeTypeEnum upgradeType) { this.upgradeType = upgradeType; return this; @@ -176,6 +181,23 @@ public void setUpgradeActionList(List upgradeActionList) { this.upgradeActionList = upgradeActionList; } + public UpgradeTypeInfo withIsParallelUpgrade(Boolean isParallelUpgrade) { + this.isParallelUpgrade = isParallelUpgrade; + return this; + } + + /** + * 是否正在进行AZ内并行升级。 -true:当前实例处于灰度升级的升级待观察升级方式中,已选择了AZ内并行升级方式,后续无法更改。 -false:当前实例处于升级流程中,未选择AZ内并行升级的方式,后续无法更改。null:当前实例尚未处于升级流程中。 + * @return isParallelUpgrade + */ + public Boolean getIsParallelUpgrade() { + return isParallelUpgrade; + } + + public void setIsParallelUpgrade(Boolean isParallelUpgrade) { + this.isParallelUpgrade = isParallelUpgrade; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -186,12 +208,13 @@ public boolean equals(java.lang.Object obj) { } UpgradeTypeInfo that = (UpgradeTypeInfo) obj; return Objects.equals(this.upgradeType, that.upgradeType) && Objects.equals(this.enable, that.enable) - && Objects.equals(this.upgradeActionList, that.upgradeActionList); + && Objects.equals(this.upgradeActionList, that.upgradeActionList) + && Objects.equals(this.isParallelUpgrade, that.isParallelUpgrade); } @Override public int hashCode() { - return Objects.hash(upgradeType, enable, upgradeActionList); + return Objects.hash(upgradeType, enable, upgradeActionList, isParallelUpgrade); } @Override @@ -201,6 +224,7 @@ public String toString() { sb.append(" upgradeType: ").append(toIndentedString(upgradeType)).append("\n"); sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); sb.append(" upgradeActionList: ").append(toIndentedString(upgradeActionList)).append("\n"); + sb.append(" isParallelUpgrade: ").append(toIndentedString(isParallelUpgrade)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/geip/pom.xml b/services/geip/pom.xml index cf8b826ae1..a9d5071b3c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-geip - 3.1.97 + 3.1.98 Huawei Cloud SDK for GEIP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ges/pom.xml b/services/ges/pom.xml index 3da4df7d26..296c5b6349 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ges - 3.1.97 + 3.1.98 Huawei Cloud SDK for GES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/gsl/pom.xml b/services/gsl/pom.xml index 2f009cd498..02e989d889 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-gsl - 3.1.97 + 3.1.98 Huawei Cloud SDK for GSL 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/hilens/pom.xml b/services/hilens/pom.xml index 5d19665ea8..50278c7a71 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-hilens - 3.1.97 + 3.1.98 Huawei Cloud SDK for HILENS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/hss/pom.xml b/services/hss/pom.xml index af6d18dc08..a846d0d08e 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-hss - 3.1.97 + 3.1.98 Huawei Cloud SDK for HSS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/iam/pom.xml b/services/iam/pom.xml index 018179365e..0857584ae4 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-iam - 3.1.97 + 3.1.98 Huawei Cloud SDK for IAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/iamaccessanalyzer/pom.xml b/services/iamaccessanalyzer/pom.xml index eb9444232b..30c815f32a 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-iamaccessanalyzer - 3.1.97 + 3.1.98 Huawei Cloud SDK for IAMACCESSANALYZER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/identitycenter/pom.xml b/services/identitycenter/pom.xml index 268564b3ff..a2a8cb7e12 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenter - 3.1.97 + 3.1.98 Huawei Cloud SDK for IDENTITYCENTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/identitycenterstore/pom.xml b/services/identitycenterstore/pom.xml index dc9f409029..a6e5f14cca 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-identitycenterstore - 3.1.97 + 3.1.98 Huawei Cloud SDK for IDENTITYCENTERSTORE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/idme/pom.xml b/services/idme/pom.xml index 59bcf9fd18..0231932150 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-idme - 3.1.97 + 3.1.98 Huawei Cloud SDK for IDME 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/idmeclassicapi/pom.xml b/services/idmeclassicapi/pom.xml index a1584a2a81..6cc7550dc4 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-idmeclassicapi - 3.1.97 + 3.1.98 Huawei Cloud SDK for IDMECLASSICAPI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/MultiViewModelVersionViewCreateDTO.java b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/MultiViewModelVersionViewCreateDTO.java index bbad0de3b5..66b1e3c94c 100644 --- a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/MultiViewModelVersionViewCreateDTO.java +++ b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/MultiViewModelVersionViewCreateDTO.java @@ -83,7 +83,7 @@ public MultiViewModelVersionViewCreateDTO withWorkCopyType(String workCopyType) } /** - * 关系的复制类型。 - BOTH:复制当前M-V模型作为源端与目标端的关系。 - CUSTOM:自定义复制当前M-V模型的关系。 - NONE:不复制当前M-V模型的关系。 - SOURCE:仅复制当前M-V模型作为源端的关系。 - TARGET:仅复制当前M-V模型作为目标端的关系。 + * 关系的复制类型。 - BOTH:若存在关系实例引用此数据实例作为源端实例或目标端实例,创建多维版本后的数据实例将继承这些关系实例。 - SOURCE:若存在关系实例引用此数据实例作为源端实例,创建多维版本后的数据实例将继承这些关系实例。 - TARGET:若存在关系实例引用此数据实例作为目标端实例,创建多维版本后的数据实例将继承这些关系实例。 - NONE:创建多维版本后的数据实例将不继承任何关系实例。 - CUSTOM:若指定的关系实体集合对应的关系实例引用此数据实例作为源端实例或目标端实例,创建多维版本后的数据实例将继承这些关系实例。 * @return workCopyType */ public String getWorkCopyType() { diff --git a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckOutDTO.java b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckOutDTO.java index ea9d9f0a0b..53af79be15 100644 --- a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckOutDTO.java +++ b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckOutDTO.java @@ -128,7 +128,7 @@ public VersionModelVersionCheckOutDTO withWorkCopyType(String workCopyType) { } /** - * 关系的复制类型。 - BOTH:复制当前M-V模型作为源端与目标端的关系。 - CUSTOM:自定义复制当前M-V模型的关系。 - NONE:不复制当前M-V模型的关系。 - SOURCE:仅复制当前M-V模型作为源端的关系。 - TARGET:仅复制当前M-V模型作为目标端的关系。 + * 关系的复制类型。 - BOTH:若存在关系实例引用此数据实例作为源端实例或目标端实例,检出后的数据实例将继承这些关系实例。 - SOURCE:若存在关系实例引用此数据实例作为源端实例,检出后的数据实例将继承这些关系实例。 - TARGET:若存在关系实例引用此数据实例作为目标端实例,检出后的数据实例将继承这些关系实例。 - NONE:检出后的数据实例将不继承任何关系实例。 - CUSTOM:若指定的关系实体集合对应的关系实例引用此数据实例作为源端实例或目标端实例,检出后的数据实例将继承这些关系实例。 * @return workCopyType */ public String getWorkCopyType() { diff --git a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckoutAndUpdateDTOVersionModel.java b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckoutAndUpdateDTOVersionModel.java index 5a3dba3e0b..913d2e2a63 100644 --- a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckoutAndUpdateDTOVersionModel.java +++ b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionCheckoutAndUpdateDTOVersionModel.java @@ -160,7 +160,7 @@ public VersionModelVersionCheckoutAndUpdateDTOVersionModel withWorkCopyType(Stri } /** - * 关系的复制类型。 - BOTH:复制当前M-V模型作为源端与目标端的关系。 - CUSTOM:自定义复制当前M-V模型的关系。 - NONE:不复制当前M-V模型的关系。 - SOURCE:仅复制当前M-V模型作为源端的关系。 - TARGET:仅复制当前M-V模型作为目标端的关系。 + * 关系的复制类型。 - BOTH:若存在关系实例引用此数据实例作为源端实例或目标端实例,检出并更新后的数据实例将继承这些关系实例。 - SOURCE:若存在关系实例引用此数据实例作为源端实例,检出并更新后的数据实例将继承这些关系实例。 - TARGET:若存在关系实例引用此数据实例作为目标端实例,检出并更新后的数据实例将继承这些关系实例。 - NONE:检出并更新后的数据实例将不继承任何关系实例。 - CUSTOM:若指定的关系实体集合对应的关系实例引用此数据实例作为源端实例或目标端实例,检出并更新后的数据实例将继承这些关系实例。 * @return workCopyType */ public String getWorkCopyType() { diff --git a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseAndUpdateDTOVersionModel.java b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseAndUpdateDTOVersionModel.java index 899311923d..e881e7eeb6 100644 --- a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseAndUpdateDTOVersionModel.java +++ b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseAndUpdateDTOVersionModel.java @@ -165,7 +165,7 @@ public VersionModelVersionReviseAndUpdateDTOVersionModel withWorkCopyType(String } /** - * 关系的复制类型。 - BOTH:复制当前M-V模型作为源端与目标端的关系。 - CUSTOM:自定义复制当前M-V模型的关系。 - NONE:不复制当前M-V模型的关系。 - SOURCE:仅复制当前M-V模型作为源端的关系。 - TARGET:仅复制当前M-V模型作为目标端的关系。 + * 关系的复制类型。 - BOTH:若存在关系实例引用此数据实例作为源端实例或目标端实例,修订且更新后的数据实例将继承这些关系实例。 - SOURCE:若存在关系实例引用此数据实例作为源端实例,修订且更新后的数据实例将继承这些关系实例。 - TARGET:若存在关系实例引用此数据实例作为目标端实例,修订且更新后的数据实例将继承这些关系实例。 - NONE:修订且更新后的数据实例将不继承任何关系实例。 - CUSTOM:若指定的关系实体集合对应的关系实例引用此数据实例作为源端实例或目标端实例,修订且更新后的数据实例将继承这些关系实例。 * @return workCopyType */ public String getWorkCopyType() { diff --git a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseDTO.java b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseDTO.java index 5717a1a952..35d930922b 100644 --- a/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseDTO.java +++ b/services/idmeclassicapi/src/main/java/com/huaweicloud/sdk/idmeclassicapi/v1/model/VersionModelVersionReviseDTO.java @@ -133,7 +133,7 @@ public VersionModelVersionReviseDTO withWorkCopyType(String workCopyType) { } /** - * 关系的复制类型。 - BOTH:复制当前M-V模型作为源端与目标端的关系。 - CUSTOM:自定义复制当前M-V模型的关系。 - NONE:不复制当前M-V模型的关系。 - SOURCE:仅复制当前M-V模型作为源端的关系。 - TARGET:仅复制当前M-V模型作为目标端的关系。 + * 关系的复制类型。 - BOTH:若存在关系实例引用此数据实例作为源端实例或目标端实例,修订后的数据实例将继承这些关系实例。 - SOURCE:若存在关系实例引用此数据实例作为源端实例,修订后的数据实例将继承这些关系实例。 - TARGET:若存在关系实例引用此数据实例作为目标端实例,修订后的数据实例将继承这些关系实例。 - NONE:修订后的数据实例将不继承任何关系实例。 - CUSTOM:若指定的关系实体集合对应的关系实例引用此数据实例作为源端实例或目标端实例,修订后的数据实例将继承这些关系实例。 * @return workCopyType */ public String getWorkCopyType() { diff --git a/services/iec/pom.xml b/services/iec/pom.xml index 67a9487294..8499061f53 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-iec - 3.1.97 + 3.1.98 Huawei Cloud SDK for IEC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ief/pom.xml b/services/ief/pom.xml index 3ede72734a..a4857e50fb 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ief - 3.1.97 + 3.1.98 Huawei Cloud SDK for IEF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/image/pom.xml b/services/image/pom.xml index f59db71ed5..6149ace333 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-image - 3.1.97 + 3.1.98 Huawei Cloud SDK for IMAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/imagesearch/pom.xml b/services/imagesearch/pom.xml index 3fbb6cde56..04e6919bc0 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-imagesearch - 3.1.97 + 3.1.98 Huawei Cloud SDK for IMAGESEARCH 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ims/pom.xml b/services/ims/pom.xml index 894957d2e5..bb9f102485 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ims - 3.1.97 + 3.1.98 Huawei Cloud SDK for IMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/iotanalytics/pom.xml b/services/iotanalytics/pom.xml index 31572906b2..7769193b51 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-iotanalytics - 3.1.97 + 3.1.98 Huawei Cloud SDK for IOTANALYTICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/iotda/pom.xml b/services/iotda/pom.xml index a1db50bd9c..c90667c0ba 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-iotda - 3.1.97 + 3.1.98 Huawei Cloud SDK for IOTDA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 junit diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAAsyncClient.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAAsyncClient.java index 3323d6cbc8..2ff8f40319 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAAsyncClient.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAAsyncClient.java @@ -5,6 +5,8 @@ import com.huaweicloud.sdk.core.invoker.AsyncInvoker; import com.huaweicloud.sdk.iotda.v5.model.AddApplicationRequest; import com.huaweicloud.sdk.iotda.v5.model.AddApplicationResponse; +import com.huaweicloud.sdk.iotda.v5.model.AddBridgeRequest; +import com.huaweicloud.sdk.iotda.v5.model.AddBridgeResponse; import com.huaweicloud.sdk.iotda.v5.model.AddCertificateRequest; import com.huaweicloud.sdk.iotda.v5.model.AddCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.AddDeviceGroupRequest; @@ -59,6 +61,8 @@ import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskFileResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskRequest; import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskResponse; +import com.huaweicloud.sdk.iotda.v5.model.DeleteBridgeRequest; +import com.huaweicloud.sdk.iotda.v5.model.DeleteBridgeResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteCertificateRequest; import com.huaweicloud.sdk.iotda.v5.model.DeleteCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteDeviceGroupRequest; @@ -91,8 +95,12 @@ import com.huaweicloud.sdk.iotda.v5.model.ListBatchTaskFilesResponse; import com.huaweicloud.sdk.iotda.v5.model.ListBatchTasksRequest; import com.huaweicloud.sdk.iotda.v5.model.ListBatchTasksResponse; +import com.huaweicloud.sdk.iotda.v5.model.ListBridgesRequest; +import com.huaweicloud.sdk.iotda.v5.model.ListBridgesResponse; import com.huaweicloud.sdk.iotda.v5.model.ListCertificatesRequest; import com.huaweicloud.sdk.iotda.v5.model.ListCertificatesResponse; +import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsByDeviceRequest; +import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsByDeviceResponse; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsRequest; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsResponse; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceMessagesRequest; @@ -121,6 +129,8 @@ import com.huaweicloud.sdk.iotda.v5.model.ListRuleActionsResponse; import com.huaweicloud.sdk.iotda.v5.model.ListRulesRequest; import com.huaweicloud.sdk.iotda.v5.model.ListRulesResponse; +import com.huaweicloud.sdk.iotda.v5.model.ResetBridgeSecretRequest; +import com.huaweicloud.sdk.iotda.v5.model.ResetBridgeSecretResponse; import com.huaweicloud.sdk.iotda.v5.model.ResetDeviceSecretRequest; import com.huaweicloud.sdk.iotda.v5.model.ResetDeviceSecretResponse; import com.huaweicloud.sdk.iotda.v5.model.ResetFingerprintRequest; @@ -177,6 +187,8 @@ import com.huaweicloud.sdk.iotda.v5.model.UntagDeviceResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateApplicationRequest; import com.huaweicloud.sdk.iotda.v5.model.UpdateApplicationResponse; +import com.huaweicloud.sdk.iotda.v5.model.UpdateCertificateRequest; +import com.huaweicloud.sdk.iotda.v5.model.UpdateCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateDeviceGroupRequest; import com.huaweicloud.sdk.iotda.v5.model.UpdateDeviceGroupResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateDeviceProxyRequest; @@ -1002,6 +1014,124 @@ public AsyncInvoker upl return new AsyncInvoker<>(request, IoTDAMeta.uploadBatchTaskFile, hcClient); } + /** + * 创建网桥 + * + * 应用服务器可调用此接口在物联网平台创建一个网桥,仅在创建后的网桥才可以接入物联网平台。 + * - 一个实例最多支持20个网桥。 + * - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddBridgeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture addBridgeAsync(AddBridgeRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDAMeta.addBridge); + } + + /** + * 创建网桥 + * + * 应用服务器可调用此接口在物联网平台创建一个网桥,仅在创建后的网桥才可以接入物联网平台。 + * - 一个实例最多支持20个网桥。 + * - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddBridgeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker addBridgeAsyncInvoker(AddBridgeRequest request) { + return new AsyncInvoker<>(request, IoTDAMeta.addBridge, hcClient); + } + + /** + * 删除网桥 + * + * 应用服务器可调用此接口在物联网平台上删除指定网桥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteBridgeRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteBridgeAsync(DeleteBridgeRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDAMeta.deleteBridge); + } + + /** + * 删除网桥 + * + * 应用服务器可调用此接口在物联网平台上删除指定网桥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteBridgeRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteBridgeAsyncInvoker( + DeleteBridgeRequest request) { + return new AsyncInvoker<>(request, IoTDAMeta.deleteBridge, hcClient); + } + + /** + * 查询网桥列表 + * + * 应用服务器可调用此接口在物联网平台查询网桥列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBridgesRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listBridgesAsync(ListBridgesRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDAMeta.listBridges); + } + + /** + * 查询网桥列表 + * + * 应用服务器可调用此接口在物联网平台查询网桥列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBridgesRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listBridgesAsyncInvoker(ListBridgesRequest request) { + return new AsyncInvoker<>(request, IoTDAMeta.listBridges, hcClient); + } + + /** + * 重置网桥密钥 + * + * 应用服务器可调用此接口在物联网平台上重置网桥密钥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetBridgeSecretRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture resetBridgeSecretAsync(ResetBridgeSecretRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDAMeta.resetBridgeSecret); + } + + /** + * 重置网桥密钥 + * + * 应用服务器可调用此接口在物联网平台上重置网桥密钥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetBridgeSecretRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker resetBridgeSecretAsyncInvoker( + ResetBridgeSecretRequest request) { + return new AsyncInvoker<>(request, IoTDAMeta.resetBridgeSecret, hcClient); + } + /** * 下发广播消息 * @@ -1151,6 +1281,35 @@ public AsyncInvoker listCerti return new AsyncInvoker<>(request, IoTDAMeta.listCertificates, hcClient); } + /** + * 更新CA证书 + * + * 应用服务器可调用此接口在物联网平台上更新CA证书。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateCertificateRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateCertificateAsync(UpdateCertificateRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDAMeta.updateCertificate); + } + + /** + * 更新CA证书 + * + * 应用服务器可调用此接口在物联网平台上更新CA证书。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateCertificateRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateCertificateAsyncInvoker( + UpdateCertificateRequest request) { + return new AsyncInvoker<>(request, IoTDAMeta.updateCertificate, hcClient); + } + /** * 下发设备命令 * @@ -1486,6 +1645,36 @@ public AsyncInvoker freezeDeviceAsync return new AsyncInvoker<>(request, IoTDAMeta.freezeDevice, hcClient); } + /** + * 查询指定设备加入的设备组列表 + * + * 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDeviceGroupsByDeviceRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listDeviceGroupsByDeviceAsync( + ListDeviceGroupsByDeviceRequest request) { + return hcClient.asyncInvokeHttp(request, IoTDAMeta.listDeviceGroupsByDevice); + } + + /** + * 查询指定设备加入的设备组列表 + * + * 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDeviceGroupsByDeviceRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listDeviceGroupsByDeviceAsyncInvoker( + ListDeviceGroupsByDeviceRequest request) { + return new AsyncInvoker<>(request, IoTDAMeta.listDeviceGroupsByDevice, hcClient); + } + /** * 查询设备列表 * diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAClient.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAClient.java index cccad53a6f..2c865589ed 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAClient.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAClient.java @@ -5,6 +5,8 @@ import com.huaweicloud.sdk.core.invoker.SyncInvoker; import com.huaweicloud.sdk.iotda.v5.model.AddApplicationRequest; import com.huaweicloud.sdk.iotda.v5.model.AddApplicationResponse; +import com.huaweicloud.sdk.iotda.v5.model.AddBridgeRequest; +import com.huaweicloud.sdk.iotda.v5.model.AddBridgeResponse; import com.huaweicloud.sdk.iotda.v5.model.AddCertificateRequest; import com.huaweicloud.sdk.iotda.v5.model.AddCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.AddDeviceGroupRequest; @@ -59,6 +61,8 @@ import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskFileResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskRequest; import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskResponse; +import com.huaweicloud.sdk.iotda.v5.model.DeleteBridgeRequest; +import com.huaweicloud.sdk.iotda.v5.model.DeleteBridgeResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteCertificateRequest; import com.huaweicloud.sdk.iotda.v5.model.DeleteCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteDeviceGroupRequest; @@ -91,8 +95,12 @@ import com.huaweicloud.sdk.iotda.v5.model.ListBatchTaskFilesResponse; import com.huaweicloud.sdk.iotda.v5.model.ListBatchTasksRequest; import com.huaweicloud.sdk.iotda.v5.model.ListBatchTasksResponse; +import com.huaweicloud.sdk.iotda.v5.model.ListBridgesRequest; +import com.huaweicloud.sdk.iotda.v5.model.ListBridgesResponse; import com.huaweicloud.sdk.iotda.v5.model.ListCertificatesRequest; import com.huaweicloud.sdk.iotda.v5.model.ListCertificatesResponse; +import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsByDeviceRequest; +import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsByDeviceResponse; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsRequest; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsResponse; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceMessagesRequest; @@ -121,6 +129,8 @@ import com.huaweicloud.sdk.iotda.v5.model.ListRuleActionsResponse; import com.huaweicloud.sdk.iotda.v5.model.ListRulesRequest; import com.huaweicloud.sdk.iotda.v5.model.ListRulesResponse; +import com.huaweicloud.sdk.iotda.v5.model.ResetBridgeSecretRequest; +import com.huaweicloud.sdk.iotda.v5.model.ResetBridgeSecretResponse; import com.huaweicloud.sdk.iotda.v5.model.ResetDeviceSecretRequest; import com.huaweicloud.sdk.iotda.v5.model.ResetDeviceSecretResponse; import com.huaweicloud.sdk.iotda.v5.model.ResetFingerprintRequest; @@ -177,6 +187,8 @@ import com.huaweicloud.sdk.iotda.v5.model.UntagDeviceResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateApplicationRequest; import com.huaweicloud.sdk.iotda.v5.model.UpdateApplicationResponse; +import com.huaweicloud.sdk.iotda.v5.model.UpdateCertificateRequest; +import com.huaweicloud.sdk.iotda.v5.model.UpdateCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateDeviceGroupRequest; import com.huaweicloud.sdk.iotda.v5.model.UpdateDeviceGroupResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateDeviceProxyRequest; @@ -992,6 +1004,123 @@ public SyncInvoker uplo return new SyncInvoker<>(request, IoTDAMeta.uploadBatchTaskFile, hcClient); } + /** + * 创建网桥 + * + * 应用服务器可调用此接口在物联网平台创建一个网桥,仅在创建后的网桥才可以接入物联网平台。 + * - 一个实例最多支持20个网桥。 + * - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddBridgeRequest 请求对象 + * @return AddBridgeResponse + */ + public AddBridgeResponse addBridge(AddBridgeRequest request) { + return hcClient.syncInvokeHttp(request, IoTDAMeta.addBridge); + } + + /** + * 创建网桥 + * + * 应用服务器可调用此接口在物联网平台创建一个网桥,仅在创建后的网桥才可以接入物联网平台。 + * - 一个实例最多支持20个网桥。 + * - 仅**标准版实例、企业版实例**支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddBridgeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker addBridgeInvoker(AddBridgeRequest request) { + return new SyncInvoker<>(request, IoTDAMeta.addBridge, hcClient); + } + + /** + * 删除网桥 + * + * 应用服务器可调用此接口在物联网平台上删除指定网桥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteBridgeRequest 请求对象 + * @return DeleteBridgeResponse + */ + public DeleteBridgeResponse deleteBridge(DeleteBridgeRequest request) { + return hcClient.syncInvokeHttp(request, IoTDAMeta.deleteBridge); + } + + /** + * 删除网桥 + * + * 应用服务器可调用此接口在物联网平台上删除指定网桥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteBridgeRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteBridgeInvoker(DeleteBridgeRequest request) { + return new SyncInvoker<>(request, IoTDAMeta.deleteBridge, hcClient); + } + + /** + * 查询网桥列表 + * + * 应用服务器可调用此接口在物联网平台查询网桥列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBridgesRequest 请求对象 + * @return ListBridgesResponse + */ + public ListBridgesResponse listBridges(ListBridgesRequest request) { + return hcClient.syncInvokeHttp(request, IoTDAMeta.listBridges); + } + + /** + * 查询网桥列表 + * + * 应用服务器可调用此接口在物联网平台查询网桥列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListBridgesRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listBridgesInvoker(ListBridgesRequest request) { + return new SyncInvoker<>(request, IoTDAMeta.listBridges, hcClient); + } + + /** + * 重置网桥密钥 + * + * 应用服务器可调用此接口在物联网平台上重置网桥密钥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetBridgeSecretRequest 请求对象 + * @return ResetBridgeSecretResponse + */ + public ResetBridgeSecretResponse resetBridgeSecret(ResetBridgeSecretRequest request) { + return hcClient.syncInvokeHttp(request, IoTDAMeta.resetBridgeSecret); + } + + /** + * 重置网桥密钥 + * + * 应用服务器可调用此接口在物联网平台上重置网桥密钥。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ResetBridgeSecretRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker resetBridgeSecretInvoker( + ResetBridgeSecretRequest request) { + return new SyncInvoker<>(request, IoTDAMeta.resetBridgeSecret, hcClient); + } + /** * 下发广播消息 * @@ -1141,6 +1270,35 @@ public SyncInvoker listCertif return new SyncInvoker<>(request, IoTDAMeta.listCertificates, hcClient); } + /** + * 更新CA证书 + * + * 应用服务器可调用此接口在物联网平台上更新CA证书。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateCertificateRequest 请求对象 + * @return UpdateCertificateResponse + */ + public UpdateCertificateResponse updateCertificate(UpdateCertificateRequest request) { + return hcClient.syncInvokeHttp(request, IoTDAMeta.updateCertificate); + } + + /** + * 更新CA证书 + * + * 应用服务器可调用此接口在物联网平台上更新CA证书。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateCertificateRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateCertificateInvoker( + UpdateCertificateRequest request) { + return new SyncInvoker<>(request, IoTDAMeta.updateCertificate, hcClient); + } + /** * 下发设备命令 * @@ -1472,6 +1630,35 @@ public SyncInvoker freezeDeviceInvoke return new SyncInvoker<>(request, IoTDAMeta.freezeDevice, hcClient); } + /** + * 查询指定设备加入的设备组列表 + * + * 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDeviceGroupsByDeviceRequest 请求对象 + * @return ListDeviceGroupsByDeviceResponse + */ + public ListDeviceGroupsByDeviceResponse listDeviceGroupsByDevice(ListDeviceGroupsByDeviceRequest request) { + return hcClient.syncInvokeHttp(request, IoTDAMeta.listDeviceGroupsByDevice); + } + + /** + * 查询指定设备加入的设备组列表 + * + * 应用服务器可调用此接口查询物联网平台中的某个设备加入的设备组信息列表。仅标准版实例、企业版实例支持该接口调用,基础版不支持。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListDeviceGroupsByDeviceRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listDeviceGroupsByDeviceInvoker( + ListDeviceGroupsByDeviceRequest request) { + return new SyncInvoker<>(request, IoTDAMeta.listDeviceGroupsByDevice, hcClient); + } + /** * 查询设备列表 * diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java index dd6218d920..d93e4cd715 100644 --- a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/IoTDAMeta.java @@ -10,6 +10,9 @@ import com.huaweicloud.sdk.iotda.v5.model.AddApplicationRequest; import com.huaweicloud.sdk.iotda.v5.model.AddApplicationResponse; import com.huaweicloud.sdk.iotda.v5.model.AddBacklogPolicy; +import com.huaweicloud.sdk.iotda.v5.model.AddBridge; +import com.huaweicloud.sdk.iotda.v5.model.AddBridgeRequest; +import com.huaweicloud.sdk.iotda.v5.model.AddBridgeResponse; import com.huaweicloud.sdk.iotda.v5.model.AddCertificateRequest; import com.huaweicloud.sdk.iotda.v5.model.AddCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.AddDevice; @@ -78,6 +81,8 @@ import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskFileResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskRequest; import com.huaweicloud.sdk.iotda.v5.model.DeleteBatchTaskResponse; +import com.huaweicloud.sdk.iotda.v5.model.DeleteBridgeRequest; +import com.huaweicloud.sdk.iotda.v5.model.DeleteBridgeResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteCertificateRequest; import com.huaweicloud.sdk.iotda.v5.model.DeleteCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.DeleteDeviceGroupRequest; @@ -114,8 +119,12 @@ import com.huaweicloud.sdk.iotda.v5.model.ListBatchTaskFilesResponse; import com.huaweicloud.sdk.iotda.v5.model.ListBatchTasksRequest; import com.huaweicloud.sdk.iotda.v5.model.ListBatchTasksResponse; +import com.huaweicloud.sdk.iotda.v5.model.ListBridgesRequest; +import com.huaweicloud.sdk.iotda.v5.model.ListBridgesResponse; import com.huaweicloud.sdk.iotda.v5.model.ListCertificatesRequest; import com.huaweicloud.sdk.iotda.v5.model.ListCertificatesResponse; +import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsByDeviceRequest; +import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsByDeviceResponse; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsRequest; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceGroupsResponse; import com.huaweicloud.sdk.iotda.v5.model.ListDeviceMessagesRequest; @@ -146,6 +155,9 @@ import com.huaweicloud.sdk.iotda.v5.model.ListRulesResponse; import com.huaweicloud.sdk.iotda.v5.model.QueryResourceByTagsDTO; import com.huaweicloud.sdk.iotda.v5.model.QueueInfo; +import com.huaweicloud.sdk.iotda.v5.model.ResetBridgeSecret; +import com.huaweicloud.sdk.iotda.v5.model.ResetBridgeSecretRequest; +import com.huaweicloud.sdk.iotda.v5.model.ResetBridgeSecretResponse; import com.huaweicloud.sdk.iotda.v5.model.ResetDeviceSecret; import com.huaweicloud.sdk.iotda.v5.model.ResetDeviceSecretRequest; import com.huaweicloud.sdk.iotda.v5.model.ResetDeviceSecretResponse; @@ -211,6 +223,9 @@ import com.huaweicloud.sdk.iotda.v5.model.UpdateApplicationRequest; import com.huaweicloud.sdk.iotda.v5.model.UpdateApplicationResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateBacklogPolicy; +import com.huaweicloud.sdk.iotda.v5.model.UpdateCertificateDTO; +import com.huaweicloud.sdk.iotda.v5.model.UpdateCertificateRequest; +import com.huaweicloud.sdk.iotda.v5.model.UpdateCertificateResponse; import com.huaweicloud.sdk.iotda.v5.model.UpdateDesireds; import com.huaweicloud.sdk.iotda.v5.model.UpdateDevice; import com.huaweicloud.sdk.iotda.v5.model.UpdateDeviceGroupDTO; @@ -1135,6 +1150,135 @@ private static HttpRequestDef addBridge = genForAddBridge(); + + private static HttpRequestDef genForAddBridge() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, AddBridgeRequest.class, AddBridgeResponse.class) + .withName("AddBridge") + .withUri("/v5/iot/{project_id}/bridges") + .withContentType("application/json"); + + // requests + builder.withRequestField("Instance-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AddBridgeRequest::getInstanceId, AddBridgeRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddBridge.class), + f -> f.withMarshaller(AddBridgeRequest::getBody, AddBridgeRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteBridge = genForDeleteBridge(); + + private static HttpRequestDef genForDeleteBridge() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.DELETE, DeleteBridgeRequest.class, DeleteBridgeResponse.class) + .withName("DeleteBridge") + .withUri("/v5/iot/{project_id}/bridges/{bridge_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("bridge_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteBridgeRequest::getBridgeId, DeleteBridgeRequest::setBridgeId)); + builder.withRequestField("Instance-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteBridgeRequest::getInstanceId, DeleteBridgeRequest::setInstanceId)); + + // response + builder.withResponseField("body", + LocationType.Body, + FieldExistence.NULL_IGNORE, + String.class, + f -> f.withMarshaller(DeleteBridgeResponse::getBody, DeleteBridgeResponse::setBody)); + + return builder.build(); + } + + public static final HttpRequestDef listBridges = genForListBridges(); + + private static HttpRequestDef genForListBridges() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListBridgesRequest.class, ListBridgesResponse.class) + .withName("ListBridges") + .withUri("/v5/iot/{project_id}/bridges") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListBridgesRequest::getLimit, ListBridgesRequest::setLimit)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBridgesRequest::getMarker, ListBridgesRequest::setMarker)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListBridgesRequest::getOffset, ListBridgesRequest::setOffset)); + builder.withRequestField("Instance-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListBridgesRequest::getInstanceId, ListBridgesRequest::setInstanceId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef resetBridgeSecret = + genForResetBridgeSecret(); + + private static HttpRequestDef genForResetBridgeSecret() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.POST, ResetBridgeSecretRequest.class, ResetBridgeSecretResponse.class) + .withName("ResetBridgeSecret") + .withUri("/v5/iot/{project_id}/bridges/{bridge_id}/reset-secret") + .withContentType("application/json"); + + // requests + builder.withRequestField("bridge_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ResetBridgeSecretRequest::getBridgeId, ResetBridgeSecretRequest::setBridgeId)); + builder.withRequestField("Instance-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ResetBridgeSecretRequest::getInstanceId, ResetBridgeSecretRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ResetBridgeSecret.class), + f -> f.withMarshaller(ResetBridgeSecretRequest::getBody, ResetBridgeSecretRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef broadcastMessage = genForBroadcastMessage(); @@ -1355,6 +1499,40 @@ private static HttpRequestDef return builder.build(); } + public static final HttpRequestDef updateCertificate = + genForUpdateCertificate(); + + private static HttpRequestDef genForUpdateCertificate() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.PUT, UpdateCertificateRequest.class, UpdateCertificateResponse.class) + .withName("UpdateCertificate") + .withUri("/v5/iot/{project_id}/certificates/{certificate_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("certificate_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateCertificateRequest::getCertificateId, + UpdateCertificateRequest::setCertificateId)); + builder.withRequestField("Instance-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateCertificateRequest::getInstanceId, UpdateCertificateRequest::setInstanceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateCertificateDTO.class), + f -> f.withMarshaller(UpdateCertificateRequest::getBody, UpdateCertificateRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createCommand = genForCreateCommand(); @@ -1754,6 +1932,37 @@ private static HttpRequestDef genForF return builder.build(); } + public static final HttpRequestDef listDeviceGroupsByDevice = + genForListDeviceGroupsByDevice(); + + private static HttpRequestDef genForListDeviceGroupsByDevice() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, ListDeviceGroupsByDeviceRequest.class, ListDeviceGroupsByDeviceResponse.class) + .withName("ListDeviceGroupsByDevice") + .withUri("/v5/iot/{project_id}/devices/{device_id}/list-device-group") + .withContentType("application/json"); + + // requests + builder.withRequestField("device_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDeviceGroupsByDeviceRequest::getDeviceId, + ListDeviceGroupsByDeviceRequest::setDeviceId)); + builder.withRequestField("Instance-Id", + LocationType.Header, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListDeviceGroupsByDeviceRequest::getInstanceId, + ListDeviceGroupsByDeviceRequest::setInstanceId)); + + // response + + return builder.build(); + } + public static final HttpRequestDef listDevices = genForListDevices(); private static HttpRequestDef genForListDevices() { diff --git a/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridge.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridge.java new file mode 100644 index 0000000000..dcf6fe76fd --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridge.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 添加网桥结构体。 + */ +public class AddBridge { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_name") + + private String bridgeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_id") + + private String bridgeId; + + public AddBridge withBridgeName(String bridgeName) { + this.bridgeName = bridgeName; + return this; + } + + /** + * 网桥名称。**取值范围**:长度不超过64,只允许中文、字母、数字、以及_?'#().,&%@!-等字符的组合。 + * @return bridgeName + */ + public String getBridgeName() { + return bridgeName; + } + + public void setBridgeName(String bridgeName) { + this.bridgeName = bridgeName; + } + + public AddBridge withBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + return this; + } + + /** + * 网桥ID。**取值范围**:长度不超过36,只允许字母、数字、_-字符的组合。 + * @return bridgeId + */ + public String getBridgeId() { + return bridgeId; + } + + public void setBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AddBridge that = (AddBridge) obj; + return Objects.equals(this.bridgeName, that.bridgeName) && Objects.equals(this.bridgeId, that.bridgeId); + } + + @Override + public int hashCode() { + return Objects.hash(bridgeName, bridgeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddBridge {\n"); + sb.append(" bridgeName: ").append(toIndentedString(bridgeName)).append("\n"); + sb.append(" bridgeId: ").append(toIndentedString(bridgeId)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridgeRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridgeRequest.java new file mode 100644 index 0000000000..8fa8eadf90 --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridgeRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.iotda.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 AddBridgeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Instance-Id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddBridge body; + + public AddBridgeRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public AddBridgeRequest withBody(AddBridge body) { + this.body = body; + return this; + } + + public AddBridgeRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddBridge(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddBridge getBody() { + return body; + } + + public void setBody(AddBridge 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; + } + AddBridgeRequest that = (AddBridgeRequest) 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 AddBridgeRequest {\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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridgeResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridgeResponse.java new file mode 100644 index 0000000000..e352aa89f0 --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/AddBridgeResponse.java @@ -0,0 +1,153 @@ +package com.huaweicloud.sdk.iotda.v5.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 AddBridgeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_id") + + private String bridgeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_name") + + private String bridgeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_info") + + private BridgeAuthInfo authInfo; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_time") + + private String createTime; + + public AddBridgeResponse withBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + return this; + } + + /** + * 网桥ID,用于唯一标识一个网桥。在注册网桥时直接指定,或者由物联网平台分配获得。 + * @return bridgeId + */ + public String getBridgeId() { + return bridgeId; + } + + public void setBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + } + + public AddBridgeResponse withBridgeName(String bridgeName) { + this.bridgeName = bridgeName; + return this; + } + + /** + * 网桥名称。 + * @return bridgeName + */ + public String getBridgeName() { + return bridgeName; + } + + public void setBridgeName(String bridgeName) { + this.bridgeName = bridgeName; + } + + public AddBridgeResponse withAuthInfo(BridgeAuthInfo authInfo) { + this.authInfo = authInfo; + return this; + } + + public AddBridgeResponse withAuthInfo(Consumer authInfoSetter) { + if (this.authInfo == null) { + this.authInfo = new BridgeAuthInfo(); + authInfoSetter.accept(this.authInfo); + } + + return this; + } + + /** + * Get authInfo + * @return authInfo + */ + public BridgeAuthInfo getAuthInfo() { + return authInfo; + } + + public void setAuthInfo(BridgeAuthInfo authInfo) { + this.authInfo = authInfo; + } + + public AddBridgeResponse withCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * 在物联网平台注册网桥的时间。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + * @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; + } + AddBridgeResponse that = (AddBridgeResponse) obj; + return Objects.equals(this.bridgeId, that.bridgeId) && Objects.equals(this.bridgeName, that.bridgeName) + && Objects.equals(this.authInfo, that.authInfo) && Objects.equals(this.createTime, that.createTime); + } + + @Override + public int hashCode() { + return Objects.hash(bridgeId, bridgeName, authInfo, createTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddBridgeResponse {\n"); + sb.append(" bridgeId: ").append(toIndentedString(bridgeId)).append("\n"); + sb.append(" bridgeName: ").append(toIndentedString(bridgeName)).append("\n"); + sb.append(" authInfo: ").append(toIndentedString(authInfo)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/BridgeAuthInfo.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/BridgeAuthInfo.java new file mode 100644 index 0000000000..a05620cd9d --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/BridgeAuthInfo.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 网桥鉴权信息 + */ +public class BridgeAuthInfo { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "auth_type") + + private String authType; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secret") + + private String secret; + + public BridgeAuthInfo withAuthType(String authType) { + this.authType = authType; + return this; + } + + /** + * 鉴权类型。当前支持密钥认证接入(SECRET)。使用密钥认证接入方式(SECRET)填写secret字段,不填写auth_type默认为密钥认证接入方式(SECRET)。 + * @return authType + */ + public String getAuthType() { + return authType; + } + + public void setAuthType(String authType) { + this.authType = authType; + } + + public BridgeAuthInfo withSecret(String secret) { + this.secret = secret; + return this; + } + + /** + * 网桥密钥,认证类型使用密钥认证接入(SECRET)可填写该字段。 + * @return secret + */ + public String getSecret() { + return secret; + } + + public void setSecret(String secret) { + this.secret = secret; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BridgeAuthInfo that = (BridgeAuthInfo) obj; + return Objects.equals(this.authType, that.authType) && Objects.equals(this.secret, that.secret); + } + + @Override + public int hashCode() { + return Objects.hash(authType, secret); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BridgeAuthInfo {\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" secret: ").append(toIndentedString(secret)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/BridgeResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/BridgeResponse.java new file mode 100644 index 0000000000..7c6fd8240e --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/BridgeResponse.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BridgeResponse + */ +public class BridgeResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_id") + + private String bridgeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_name") + + private String bridgeName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private String status; + + public BridgeResponse withBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + return this; + } + + /** + * 网桥ID + * @return bridgeId + */ + public String getBridgeId() { + return bridgeId; + } + + public void setBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + } + + public BridgeResponse withBridgeName(String bridgeName) { + this.bridgeName = bridgeName; + return this; + } + + /** + * 网桥名称。 + * @return bridgeName + */ + public String getBridgeName() { + return bridgeName; + } + + public void setBridgeName(String bridgeName) { + this.bridgeName = bridgeName; + } + + public BridgeResponse withStatus(String status) { + this.status = status; + return this; + } + + /** + * 网桥状态。 - ONLINE:网桥在线。 - OFFLINE:网桥离线。 + * @return status + */ + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BridgeResponse that = (BridgeResponse) obj; + return Objects.equals(this.bridgeId, that.bridgeId) && Objects.equals(this.bridgeName, that.bridgeName) + && Objects.equals(this.status, that.status); + } + + @Override + public int hashCode() { + return Objects.hash(bridgeId, bridgeName, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BridgeResponse {\n"); + sb.append(" bridgeId: ").append(toIndentedString(bridgeId)).append("\n"); + sb.append(" bridgeName: ").append(toIndentedString(bridgeName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteBridgeRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteBridgeRequest.java new file mode 100644 index 0000000000..f9fca0f64c --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteBridgeRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteBridgeRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Instance-Id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_id") + + private String bridgeId; + + public DeleteBridgeRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public DeleteBridgeRequest withBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + return this; + } + + /** + * 网桥ID。**取值范围**:长度不超过36,只允许字母、数字、_-字符的组合。 + * @return bridgeId + */ + public String getBridgeId() { + return bridgeId; + } + + public void setBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteBridgeRequest that = (DeleteBridgeRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.bridgeId, that.bridgeId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, bridgeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteBridgeRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" bridgeId: ").append(toIndentedString(bridgeId)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteBridgeResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteBridgeResponse.java new file mode 100644 index 0000000000..c49d4902ec --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/DeleteBridgeResponse.java @@ -0,0 +1,73 @@ +package com.huaweicloud.sdk.iotda.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 DeleteBridgeResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private String body; + + public DeleteBridgeResponse 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; + } + DeleteBridgeResponse that = (DeleteBridgeResponse) 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 DeleteBridgeResponse {\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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListBridgesRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListBridgesRequest.java new file mode 100644 index 0000000000..ed21322050 --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListBridgesRequest.java @@ -0,0 +1,146 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListBridgesRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Instance-Id") + + private String instanceId; + + @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 = "offset") + + private Integer offset; + + public ListBridgesRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListBridgesRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。 + * minimum: 1 + * maximum: 50 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListBridgesRequest withMarker(String marker) { + this.marker = marker; + return this; + } + + /** + * **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。 + * @return marker + */ + public String getMarker() { + return marker; + } + + public void setMarker(String marker) { + this.marker = marker; + } + + public ListBridgesRequest 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; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBridgesRequest that = (ListBridgesRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.limit, that.limit) + && Objects.equals(this.marker, that.marker) && Objects.equals(this.offset, that.offset); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, limit, marker, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBridgesRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListBridgesResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListBridgesResponse.java new file mode 100644 index 0000000000..249d9d1912 --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListBridgesResponse.java @@ -0,0 +1,124 @@ +package com.huaweicloud.sdk.iotda.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 ListBridgesResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridges") + + private List bridges = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "page") + + private Page page; + + public ListBridgesResponse withBridges(List bridges) { + this.bridges = bridges; + return this; + } + + public ListBridgesResponse addBridgesItem(BridgeResponse bridgesItem) { + if (this.bridges == null) { + this.bridges = new ArrayList<>(); + } + this.bridges.add(bridgesItem); + return this; + } + + public ListBridgesResponse withBridges(Consumer> bridgesSetter) { + if (this.bridges == null) { + this.bridges = new ArrayList<>(); + } + bridgesSetter.accept(this.bridges); + return this; + } + + /** + * 网桥列表。 + * @return bridges + */ + public List getBridges() { + return bridges; + } + + public void setBridges(List bridges) { + this.bridges = bridges; + } + + public ListBridgesResponse withPage(Page page) { + this.page = page; + return this; + } + + public ListBridgesResponse withPage(Consumer pageSetter) { + if (this.page == null) { + this.page = new Page(); + pageSetter.accept(this.page); + } + + return this; + } + + /** + * Get page + * @return page + */ + public Page getPage() { + return page; + } + + public void setPage(Page page) { + this.page = page; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListBridgesResponse that = (ListBridgesResponse) obj; + return Objects.equals(this.bridges, that.bridges) && Objects.equals(this.page, that.page); + } + + @Override + public int hashCode() { + return Objects.hash(bridges, page); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBridgesResponse {\n"); + sb.append(" bridges: ").append(toIndentedString(bridges)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupSummary.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupSummary.java new file mode 100644 index 0000000000..6af57f4d5b --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupSummary.java @@ -0,0 +1,166 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 设备组信息结构体,创建、查询、修改设备组时返回 + */ +public class ListDeviceGroupSummary { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_id") + + private String groupId; + + @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 = "super_group_id") + + private String superGroupId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "group_type") + + private String groupType; + + public ListDeviceGroupSummary withGroupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * 设备组ID,用于唯一标识一个设备组,在创建设备组时由物联网平台分配。 + * @return groupId + */ + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public ListDeviceGroupSummary withName(String name) { + this.name = name; + return this; + } + + /** + * 设备组名称,单个资源空间下不可重复。 + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListDeviceGroupSummary withDescription(String description) { + this.description = description; + return this; + } + + /** + * 设备组描述。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ListDeviceGroupSummary withSuperGroupId(String superGroupId) { + this.superGroupId = superGroupId; + return this; + } + + /** + * 父设备组ID,该设备组的父设备组ID。 + * @return superGroupId + */ + public String getSuperGroupId() { + return superGroupId; + } + + public void setSuperGroupId(String superGroupId) { + this.superGroupId = superGroupId; + } + + public ListDeviceGroupSummary withGroupType(String groupType) { + this.groupType = groupType; + return this; + } + + /** + * **参数说明**:设备组类型,默认为静态设备组;当设备组类型为动态设备组时,需要填写动态设备组规则 + * @return groupType + */ + public String getGroupType() { + return groupType; + } + + public void setGroupType(String groupType) { + this.groupType = groupType; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDeviceGroupSummary that = (ListDeviceGroupSummary) obj; + return Objects.equals(this.groupId, that.groupId) && Objects.equals(this.name, that.name) + && Objects.equals(this.description, that.description) + && Objects.equals(this.superGroupId, that.superGroupId) && Objects.equals(this.groupType, that.groupType); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, name, description, superGroupId, groupType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDeviceGroupSummary {\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" superGroupId: ").append(toIndentedString(superGroupId)).append("\n"); + sb.append(" groupType: ").append(toIndentedString(groupType)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupsByDeviceRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupsByDeviceRequest.java new file mode 100644 index 0000000000..1fb8ae315f --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupsByDeviceRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListDeviceGroupsByDeviceRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Instance-Id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_id") + + private String deviceId; + + public ListDeviceGroupsByDeviceRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ListDeviceGroupsByDeviceRequest withDeviceId(String deviceId) { + this.deviceId = deviceId; + return this; + } + + /** + * **参数说明**:设备ID,用于唯一标识一个设备。在注册设备时直接指定,或者由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + * @return deviceId + */ + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDeviceGroupsByDeviceRequest that = (ListDeviceGroupsByDeviceRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.deviceId, that.deviceId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, deviceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDeviceGroupsByDeviceRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" deviceId: ").append(toIndentedString(deviceId)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupsByDeviceResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupsByDeviceResponse.java new file mode 100644 index 0000000000..ef7a2954fc --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ListDeviceGroupsByDeviceResponse.java @@ -0,0 +1,93 @@ +package com.huaweicloud.sdk.iotda.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 ListDeviceGroupsByDeviceResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "device_groups") + + private List deviceGroups = null; + + public ListDeviceGroupsByDeviceResponse withDeviceGroups(List deviceGroups) { + this.deviceGroups = deviceGroups; + return this; + } + + public ListDeviceGroupsByDeviceResponse addDeviceGroupsItem(ListDeviceGroupSummary deviceGroupsItem) { + if (this.deviceGroups == null) { + this.deviceGroups = new ArrayList<>(); + } + this.deviceGroups.add(deviceGroupsItem); + return this; + } + + public ListDeviceGroupsByDeviceResponse withDeviceGroups( + Consumer> deviceGroupsSetter) { + if (this.deviceGroups == null) { + this.deviceGroups = new ArrayList<>(); + } + deviceGroupsSetter.accept(this.deviceGroups); + return this; + } + + /** + * 设备组信息列表。 + * @return deviceGroups + */ + public List getDeviceGroups() { + return deviceGroups; + } + + public void setDeviceGroups(List deviceGroups) { + this.deviceGroups = deviceGroups; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListDeviceGroupsByDeviceResponse that = (ListDeviceGroupsByDeviceResponse) obj; + return Objects.equals(this.deviceGroups, that.deviceGroups); + } + + @Override + public int hashCode() { + return Objects.hash(deviceGroups); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDeviceGroupsByDeviceResponse {\n"); + sb.append(" deviceGroups: ").append(toIndentedString(deviceGroups)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecret.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecret.java new file mode 100644 index 0000000000..a8b90b5305 --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecret.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * ResetBridgeSecret + */ +public class ResetBridgeSecret { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "force_disconnect") + + private Boolean forceDisconnect; + + public ResetBridgeSecret withForceDisconnect(Boolean forceDisconnect) { + this.forceDisconnect = forceDisconnect; + return this; + } + + /** + * 是否强制断开网桥的连接,当前仅限长连接。 + * @return forceDisconnect + */ + public Boolean getForceDisconnect() { + return forceDisconnect; + } + + public void setForceDisconnect(Boolean forceDisconnect) { + this.forceDisconnect = forceDisconnect; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResetBridgeSecret that = (ResetBridgeSecret) obj; + return Objects.equals(this.forceDisconnect, that.forceDisconnect); + } + + @Override + public int hashCode() { + return Objects.hash(forceDisconnect); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResetBridgeSecret {\n"); + sb.append(" forceDisconnect: ").append(toIndentedString(forceDisconnect)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecretRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecretRequest.java new file mode 100644 index 0000000000..d223d30744 --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecretRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.iotda.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 ResetBridgeSecretRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Instance-Id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_id") + + private String bridgeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ResetBridgeSecret body; + + public ResetBridgeSecretRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public ResetBridgeSecretRequest withBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + return this; + } + + /** + * 网桥ID。**取值范围**:长度不超过36,只允许字母、数字、_-字符的组合。 + * @return bridgeId + */ + public String getBridgeId() { + return bridgeId; + } + + public void setBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + } + + public ResetBridgeSecretRequest withBody(ResetBridgeSecret body) { + this.body = body; + return this; + } + + public ResetBridgeSecretRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ResetBridgeSecret(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ResetBridgeSecret getBody() { + return body; + } + + public void setBody(ResetBridgeSecret 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; + } + ResetBridgeSecretRequest that = (ResetBridgeSecretRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) && Objects.equals(this.bridgeId, that.bridgeId) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, bridgeId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResetBridgeSecretRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" bridgeId: ").append(toIndentedString(bridgeId)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecretResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecretResponse.java new file mode 100644 index 0000000000..9fb1cf193c --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/ResetBridgeSecretResponse.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.iotda.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 ResetBridgeSecretResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "bridge_id") + + private String bridgeId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "secret") + + private String secret; + + public ResetBridgeSecretResponse withBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + return this; + } + + /** + * 网桥ID + * @return bridgeId + */ + public String getBridgeId() { + return bridgeId; + } + + public void setBridgeId(String bridgeId) { + this.bridgeId = bridgeId; + } + + public ResetBridgeSecretResponse withSecret(String secret) { + this.secret = secret; + return this; + } + + /** + * 网桥密钥。 + * @return secret + */ + public String getSecret() { + return secret; + } + + public void setSecret(String secret) { + this.secret = secret; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResetBridgeSecretResponse that = (ResetBridgeSecretResponse) obj; + return Objects.equals(this.bridgeId, that.bridgeId) && Objects.equals(this.secret, that.secret); + } + + @Override + public int hashCode() { + return Objects.hash(bridgeId, secret); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResetBridgeSecretResponse {\n"); + sb.append(" bridgeId: ").append(toIndentedString(bridgeId)).append("\n"); + sb.append(" secret: ").append(toIndentedString(secret)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateDTO.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateDTO.java new file mode 100644 index 0000000000..ddf8e5d884 --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateDTO.java @@ -0,0 +1,96 @@ +package com.huaweicloud.sdk.iotda.v5.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 更新CA证书结构体。 + */ +public class UpdateCertificateDTO { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "provision_enable") + + private Boolean provisionEnable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "template_id") + + private String templateId; + + public UpdateCertificateDTO withProvisionEnable(Boolean provisionEnable) { + this.provisionEnable = provisionEnable; + return this; + } + + /** + * 是否开启自注册能力,当为true时该功能必须配合预调配功能使用,true:是,false:否。 + * @return provisionEnable + */ + public Boolean getProvisionEnable() { + return provisionEnable; + } + + public void setProvisionEnable(Boolean provisionEnable) { + this.provisionEnable = provisionEnable; + } + + public UpdateCertificateDTO withTemplateId(String templateId) { + this.templateId = templateId; + return this; + } + + /** + * 预调配模板ID,该CA证书绑定的预调配模板id,当该字段传null时表示解除绑定关系。 + * @return templateId + */ + public String getTemplateId() { + return templateId; + } + + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateCertificateDTO that = (UpdateCertificateDTO) obj; + return Objects.equals(this.provisionEnable, that.provisionEnable) + && Objects.equals(this.templateId, that.templateId); + } + + @Override + public int hashCode() { + return Objects.hash(provisionEnable, templateId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateCertificateDTO {\n"); + sb.append(" provisionEnable: ").append(toIndentedString(provisionEnable)).append("\n"); + sb.append(" templateId: ").append(toIndentedString(templateId)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateRequest.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateRequest.java new file mode 100644 index 0000000000..afb209731e --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.iotda.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 UpdateCertificateRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "Instance-Id") + + private String instanceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_id") + + private String certificateId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateCertificateDTO body; + + public UpdateCertificateRequest withInstanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * 实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @return instanceId + */ + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public UpdateCertificateRequest withCertificateId(String certificateId) { + this.certificateId = certificateId; + return this; + } + + /** + * CA证书ID,在上传CA证书时由平台分配的唯一标识。 + * @return certificateId + */ + public String getCertificateId() { + return certificateId; + } + + public void setCertificateId(String certificateId) { + this.certificateId = certificateId; + } + + public UpdateCertificateRequest withBody(UpdateCertificateDTO body) { + this.body = body; + return this; + } + + public UpdateCertificateRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateCertificateDTO(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateCertificateDTO getBody() { + return body; + } + + public void setBody(UpdateCertificateDTO 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; + } + UpdateCertificateRequest that = (UpdateCertificateRequest) obj; + return Objects.equals(this.instanceId, that.instanceId) + && Objects.equals(this.certificateId, that.certificateId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, certificateId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateCertificateRequest {\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" certificateId: ").append(toIndentedString(certificateId)).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/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateResponse.java b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateResponse.java new file mode 100644 index 0000000000..c421f688ce --- /dev/null +++ b/services/iotda/src/main/java/com/huaweicloud/sdk/iotda/v5/model/UpdateCertificateResponse.java @@ -0,0 +1,295 @@ +package com.huaweicloud.sdk.iotda.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 UpdateCertificateResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "certificate_id") + + private String certificateId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "cn_name") + + private String cnName; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "owner") + + private String owner; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "status") + + private Boolean status; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "verify_code") + + private String verifyCode; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "provision_enable") + + private Boolean provisionEnable; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "template_id") + + private String templateId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "create_date") + + private String createDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "effective_date") + + private String effectiveDate; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "expiry_date") + + private String expiryDate; + + public UpdateCertificateResponse withCertificateId(String certificateId) { + this.certificateId = certificateId; + return this; + } + + /** + * CA证书ID,在上传CA证书时由平台分配的唯一标识。 + * @return certificateId + */ + public String getCertificateId() { + return certificateId; + } + + public void setCertificateId(String certificateId) { + this.certificateId = certificateId; + } + + public UpdateCertificateResponse withCnName(String cnName) { + this.cnName = cnName; + return this; + } + + /** + * CA证书CN名称。 + * @return cnName + */ + public String getCnName() { + return cnName; + } + + public void setCnName(String cnName) { + this.cnName = cnName; + } + + public UpdateCertificateResponse withOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * CA证书所有者。 + * @return owner + */ + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public UpdateCertificateResponse withStatus(Boolean status) { + this.status = status; + return this; + } + + /** + * CA证书验证状态。true代表证书已通过验证,可进行设备证书认证接入。false代表证书未通过验证。 + * @return status + */ + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public UpdateCertificateResponse withVerifyCode(String verifyCode) { + this.verifyCode = verifyCode; + return this; + } + + /** + * CA证书验证码。 + * @return verifyCode + */ + public String getVerifyCode() { + return verifyCode; + } + + public void setVerifyCode(String verifyCode) { + this.verifyCode = verifyCode; + } + + public UpdateCertificateResponse withProvisionEnable(Boolean provisionEnable) { + this.provisionEnable = provisionEnable; + return this; + } + + /** + * 是否开启自注册能力,当为true时该功能必须配合自注册模板使用,true:是,false:否。 + * @return provisionEnable + */ + public Boolean getProvisionEnable() { + return provisionEnable; + } + + public void setProvisionEnable(Boolean provisionEnable) { + this.provisionEnable = provisionEnable; + } + + public UpdateCertificateResponse withTemplateId(String templateId) { + this.templateId = templateId; + return this; + } + + /** + * 绑定的自注册模板ID。 + * @return templateId + */ + public String getTemplateId() { + return templateId; + } + + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + public UpdateCertificateResponse withCreateDate(String createDate) { + this.createDate = createDate; + return this; + } + + /** + * 创建证书日期。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + * @return createDate + */ + public String getCreateDate() { + return createDate; + } + + public void setCreateDate(String createDate) { + this.createDate = createDate; + } + + public UpdateCertificateResponse withEffectiveDate(String effectiveDate) { + this.effectiveDate = effectiveDate; + return this; + } + + /** + * CA证书生效日期。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + * @return effectiveDate + */ + public String getEffectiveDate() { + return effectiveDate; + } + + public void setEffectiveDate(String effectiveDate) { + this.effectiveDate = effectiveDate; + } + + public UpdateCertificateResponse withExpiryDate(String expiryDate) { + this.expiryDate = expiryDate; + return this; + } + + /** + * CA证书失效日期。格式:yyyyMMdd'T'HHmmss'Z',如20151212T121212Z。 + * @return expiryDate + */ + public String getExpiryDate() { + return expiryDate; + } + + public void setExpiryDate(String expiryDate) { + this.expiryDate = expiryDate; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateCertificateResponse that = (UpdateCertificateResponse) obj; + return Objects.equals(this.certificateId, that.certificateId) && Objects.equals(this.cnName, that.cnName) + && Objects.equals(this.owner, that.owner) && Objects.equals(this.status, that.status) + && Objects.equals(this.verifyCode, that.verifyCode) + && Objects.equals(this.provisionEnable, that.provisionEnable) + && Objects.equals(this.templateId, that.templateId) && Objects.equals(this.createDate, that.createDate) + && Objects.equals(this.effectiveDate, that.effectiveDate) + && Objects.equals(this.expiryDate, that.expiryDate); + } + + @Override + public int hashCode() { + return Objects.hash(certificateId, + cnName, + owner, + status, + verifyCode, + provisionEnable, + templateId, + createDate, + effectiveDate, + expiryDate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateCertificateResponse {\n"); + sb.append(" certificateId: ").append(toIndentedString(certificateId)).append("\n"); + sb.append(" cnName: ").append(toIndentedString(cnName)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" verifyCode: ").append(toIndentedString(verifyCode)).append("\n"); + sb.append(" provisionEnable: ").append(toIndentedString(provisionEnable)).append("\n"); + sb.append(" templateId: ").append(toIndentedString(templateId)).append("\n"); + sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n"); + sb.append(" effectiveDate: ").append(toIndentedString(effectiveDate)).append("\n"); + sb.append(" expiryDate: ").append(toIndentedString(expiryDate)).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/iotedge/pom.xml b/services/iotedge/pom.xml index 3d1daec410..86a041d88e 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-iotedge - 3.1.97 + 3.1.98 Huawei Cloud SDK for IOTEDGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ivs/pom.xml b/services/ivs/pom.xml index e09dff7211..3258480254 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ivs - 3.1.97 + 3.1.98 Huawei Cloud SDK for IVS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/kafka/pom.xml b/services/kafka/pom.xml index 2606439a39..f5dda53bb3 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-kafka - 3.1.97 + 3.1.98 Huawei Cloud SDK for KAFKA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/kms/pom.xml b/services/kms/pom.xml index 2c72ee772a..fc890758af 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-kms - 3.1.97 + 3.1.98 Huawei Cloud SDK for KMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/koomap/pom.xml b/services/koomap/pom.xml index e41d24c927..dc8fc6806c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-koomap - 3.1.97 + 3.1.98 Huawei Cloud SDK for KOOMAP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/koomessage/pom.xml b/services/koomessage/pom.xml index 068b0611fb..4b30cd8ea4 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-koomessage - 3.1.97 + 3.1.98 Huawei Cloud SDK for KOOMESSAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/koophone/pom.xml b/services/koophone/pom.xml index 85c7bdd2d1..e725647105 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-koophone - 3.1.97 + 3.1.98 Huawei Cloud SDK for KOOPHONE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/kps/pom.xml b/services/kps/pom.xml index 1316748df4..42b1b49834 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-kps - 3.1.97 + 3.1.98 Huawei Cloud SDK for KPS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/kps/src/main/java/com/huaweicloud/sdk/kps/v3/model/CreateKeypairAction.java b/services/kps/src/main/java/com/huaweicloud/sdk/kps/v3/model/CreateKeypairAction.java index de195ba4e3..2a8587a378 100644 --- a/services/kps/src/main/java/com/huaweicloud/sdk/kps/v3/model/CreateKeypairAction.java +++ b/services/kps/src/main/java/com/huaweicloud/sdk/kps/v3/model/CreateKeypairAction.java @@ -192,7 +192,7 @@ public CreateKeypairAction withName(String name) { } /** - * SSH密钥对的名称。 - 新创建的密钥对名称不能和已有密钥对的名称相同。 - SSH密钥对名称由英文字母、数字、下划线、中划线组成,长度不能超过64个字节 + * SSH密钥对的名称。 - 新创建的密钥对名称不能和已有密钥对的名称相同。 - SSH密钥对名称由英文字母、数字、下划线、中划线组成,长度不能超过255个字节 * @return name */ public String getName() { diff --git a/services/kvs/pom.xml b/services/kvs/pom.xml index f17c3f341d..caea526c25 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-kvs - 3.1.97 + 3.1.98 Huawei Cloud SDK for KVS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-core-bson - 3.1.97 + 3.1.98 diff --git a/services/lakeformation/pom.xml b/services/lakeformation/pom.xml index 98dd2490f2..845998d474 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-lakeformation - 3.1.97 + 3.1.98 Huawei Cloud SDK for LAKEFORMATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/live/pom.xml b/services/live/pom.xml index e68a1233b6..f486ae64e1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-live - 3.1.97 + 3.1.98 Huawei Cloud SDK for LIVE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/lts/pom.xml b/services/lts/pom.xml index d59c75429e..741c966eb2 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-lts - 3.1.97 + 3.1.98 Huawei Cloud SDK for LTS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/mapds/pom.xml b/services/mapds/pom.xml index 6bba189a00..1c4c319933 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-mapds - 3.1.97 + 3.1.98 Huawei Cloud SDK for MAPDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/mas/pom.xml b/services/mas/pom.xml index cce9692ddb..8388a9a02a 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-mas - 3.1.97 + 3.1.98 Huawei Cloud SDK for MAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/meeting/pom.xml b/services/meeting/pom.xml index 1714ac2aaa..ea56a083cd 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-meeting - 3.1.97 + 3.1.98 Huawei Cloud SDK for MEETING 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/metastudio/pom.xml b/services/metastudio/pom.xml index b86d371868..bf398976ec 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-metastudio - 3.1.97 + 3.1.98 Huawei Cloud SDK for METASTUDIO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/moderation/pom.xml b/services/moderation/pom.xml index 7177c8453f..65f59f7523 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-moderation - 3.1.97 + 3.1.98 Huawei Cloud SDK for MODERATION 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/mpc/pom.xml b/services/mpc/pom.xml index 652ab26cd3..1b34374a63 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-mpc - 3.1.97 + 3.1.98 Huawei Cloud SDK for MPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/mrs/pom.xml b/services/mrs/pom.xml index 0eafe6521f..15620df1a0 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-mrs - 3.1.97 + 3.1.98 Huawei Cloud SDK for MRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/msgsms/pom.xml b/services/msgsms/pom.xml index 129fbdc557..26197d2e06 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-msgsms - 3.1.97 + 3.1.98 Huawei Cloud SDK for MSGSMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/mssi/pom.xml b/services/mssi/pom.xml index 52f9e050c3..acb4d55900 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-mssi - 3.1.97 + 3.1.98 Huawei Cloud SDK for MSSI 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/nat/pom.xml b/services/nat/pom.xml index 5e2ad9a0e7..ad29a7caf4 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-nat - 3.1.97 + 3.1.98 Huawei Cloud SDK for NAT 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/nlp/pom.xml b/services/nlp/pom.xml index 4fcec55584..cd36c3cfe3 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-nlp - 3.1.97 + 3.1.98 Huawei Cloud SDK for NLP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/oa/pom.xml b/services/oa/pom.xml index 2bbc0fa0d5..be5d85d76c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-oa - 3.1.97 + 3.1.98 Huawei Cloud SDK for OA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/obs/pom.xml b/services/obs/pom.xml index 638320e041..89b260e469 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-obs - 3.1.97 + 3.1.98 Huawei Cloud SDK for OBS 4.0.0 @@ -17,12 +17,12 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 com.huaweicloud.sdk huaweicloud-sdk-core-xml - 3.1.97 + 3.1.98 diff --git a/services/ocr/pom.xml b/services/ocr/pom.xml index 7f9ce0e729..be2798accb 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ocr - 3.1.97 + 3.1.98 Huawei Cloud SDK for OCR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/oms/pom.xml b/services/oms/pom.xml index bdb0582f85..43d902bb69 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-oms - 3.1.97 + 3.1.98 Huawei Cloud SDK for OMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/optverse/pom.xml b/services/optverse/pom.xml index 5dcf300006..92f1921d97 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-optverse - 3.1.97 + 3.1.98 Huawei Cloud SDK for OPTVERSE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/organizations/pom.xml b/services/organizations/pom.xml index 1d3da5ac94..6b21ca2f0a 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-organizations - 3.1.97 + 3.1.98 Huawei Cloud SDK for ORGANIZATIONS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/orgid/pom.xml b/services/orgid/pom.xml index ab763722ea..36774de3d9 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-orgid - 3.1.97 + 3.1.98 Huawei Cloud SDK for ORGID 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/oroas/pom.xml b/services/oroas/pom.xml index 8561fa267d..a24d9b6238 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-oroas - 3.1.97 + 3.1.98 Huawei Cloud SDK for OROAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/osm/pom.xml b/services/osm/pom.xml index 51fae6dfb9..ec95755ca3 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-osm - 3.1.97 + 3.1.98 Huawei Cloud SDK for OSM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/pangulargemodels/pom.xml b/services/pangulargemodels/pom.xml index 7f0eb5a9d5..bcec85e77c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-pangulargemodels - 3.1.97 + 3.1.98 Huawei Cloud SDK for PANGULARGEMODELS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 org.springframework.boot diff --git a/services/pom.xml b/services/pom.xml index 9f212da8e9..ab21dbfa7a 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -6,187 +6,187 @@ com.huaweicloud.sdk - 3.1.97 + 3.1.98 huaweicloud-sdk com.huaweicloud.sdk huaweicloud-sdk-services - 3.1.97 + 3.1.98 pom Huawei Cloud SDK for Java Services Services code for Huawei Cloud SDK for Java https://github.com/huaweicloud/huaweicloud-sdk-java-v3 - aad - orgid - gaussdbforopengauss - cloudtable - dris - cbh - iam - dgc - dns - eds - koophone - evs - kvs - metastudio - hss - mas - er - imagesearch - ces + antiddos + dis + smn iamaccessanalyzer - edgesec - bcs - lts - apig - mpc - codecraft - ims - vpn - gsl - osm - organizations - cloudide - hilens rabbitmq - sms - cse - gaussdb - sfsturbo - dataartsinsight - cfw - dbss - eg - apm - msgsms - cce - iotedge - codeartscheck - workspace - mrs - rds - pangulargemodels - oms - cdm - devstar - meeting - bssintl - bss - ec - oroas - eihealth - dsc - campusgo - sis + codeartspipeline ram - aos - classroom - cae - elb - cdn + geip + aad + res + csms + vod + dgc + kps + ecs + sdrs + devstar + iec + gaussdbfornosql + devsecurity + dcs + gaussdb + image ga - mapds - cloudpond + cms + obs + cdm + tics idmeclassicapi - codeartsinspector - cbs - dc - codeartsbuild - drs - ges + lts waf - cloudrtc - projectman - ocr - frs - identitycenterstore - vpc - swr - vpcep + hss + eg + evs + ivs + eds dwr - ccm + oroas cgs - dds - mssi + eihealth + rds + koophone + ief + ddm + cdn + cbs + eps + codecraft + ces + campusgo + cloudpond + dns + functiongraph + codeartscheck + oa servicestage - rms - dataartsstudio - sts - sa - codeartsdeploy - css - iotda - codehub - koomap - scm - secmaster - aom - codeartsartifact - dlf - ivs - ugo - dli - gaussdbfornosql - tms - bms + projectman roma - geip - cts - iotanalytics + iotda + kms + ocr das - kps - functiongraph - as + cloudtest + orgid + ges identitycenter - expert - deh - workspaceapp - eps + iotanalytics + apig + aos + codehub + iotedge + kvs + css + classroom + cts + sa + pangulargemodels + moderation + koomessage + cce + ims + cph + bcs + msgsms + apm rgc - ief - codeartspipeline - oa - vas + cbr nat - iec - antiddos - kms - idme - live - smn - cph - cloudtest + cpts nlp + koomap + cfw + aom + ugo + identitycenterstore + gsl + bss + asm optverse - devsecurity - lakeformation + mpc + codeartsinspector + dsc + expert + dataartsstudio + swr vcm - sdrs - config - image - csms - koomessage - vod - cc + idme + workspace rocketmq + cloudide + elb + rms + cse + dws + cc + imagesearch + cbh + scm + frs + iam + dds + codeartsbuild + workspaceapp + sts + organizations + edgesec + cloudtable + oms + cloudrtc + osm + gaussdbforopengauss + codeartsartifact + hilens + codeartsdeploy + vpcep + vpn + vas + dbss kafka - ddm - asm - eip - obs - res - ecs - moderation - tics + er + ec dss - cpts - dcs - dws - cbr - cms - dis + cae + deh + mas + vpc + bms + sis + secmaster + drs + metastudio + sms + dli + eip + meeting + dris + dlf + mapds + sfsturbo + as + mssi + dc + bssintl + ccm + config + live + dataartsinsight + tms + lakeformation + mrs diff --git a/services/projectman/pom.xml b/services/projectman/pom.xml index 0c1a8dacbd..b56686aca5 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-projectman - 3.1.97 + 3.1.98 Huawei Cloud SDK for PROJECTMAN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/rabbitmq/pom.xml b/services/rabbitmq/pom.xml index 62805819d0..e39e8c26a1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-rabbitmq - 3.1.97 + 3.1.98 Huawei Cloud SDK for RABBITMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ram/pom.xml b/services/ram/pom.xml index 80e093f241..ecb3f1901d 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ram - 3.1.97 + 3.1.98 Huawei Cloud SDK for RAM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/rds/pom.xml b/services/rds/pom.xml index b092e66045..d6e3a1f0e5 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-rds - 3.1.97 + 3.1.98 Huawei Cloud SDK for RDS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/res/pom.xml b/services/res/pom.xml index 97a3bbaa51..757e520cc9 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-res - 3.1.97 + 3.1.98 Huawei Cloud SDK for RES 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/rgc/pom.xml b/services/rgc/pom.xml index 59aef11865..7c057dfe13 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-rgc - 3.1.97 + 3.1.98 Huawei Cloud SDK for RGC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java index b5e1abb1fc..ef1a0aebce 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcAsyncClient.java @@ -7,8 +7,8 @@ import com.huaweicloud.sdk.rgc.v1.model.DisableControlResponse; import com.huaweicloud.sdk.rgc.v1.model.EnableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.EnableControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitResponse; +import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationalUnitRequest; +import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationalUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateRequest; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateResponse; @@ -92,12 +92,12 @@ public AsyncInvoker enableControlAs * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListControlsForOrganizationUnitRequest 请求对象 - * @return CompletableFuture + * @param request ListControlsForOrganizationalUnitRequest 请求对象 + * @return CompletableFuture */ - public CompletableFuture listControlsForOrganizationUnitAsync( - ListControlsForOrganizationUnitRequest request) { - return hcClient.asyncInvokeHttp(request, RgcMeta.listControlsForOrganizationUnit); + public CompletableFuture listControlsForOrganizationalUnitAsync( + ListControlsForOrganizationalUnitRequest request) { + return hcClient.asyncInvokeHttp(request, RgcMeta.listControlsForOrganizationalUnit); } /** @@ -107,12 +107,12 @@ public CompletableFuture listControlsFo * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListControlsForOrganizationUnitRequest 请求对象 - * @return AsyncInvoker + * @param request ListControlsForOrganizationalUnitRequest 请求对象 + * @return AsyncInvoker */ - public AsyncInvoker listControlsForOrganizationUnitAsyncInvoker( - ListControlsForOrganizationUnitRequest request) { - return new AsyncInvoker<>(request, RgcMeta.listControlsForOrganizationUnit, hcClient); + public AsyncInvoker listControlsForOrganizationalUnitAsyncInvoker( + ListControlsForOrganizationalUnitRequest request) { + return new AsyncInvoker<>(request, RgcMeta.listControlsForOrganizationalUnit, hcClient); } /** diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java index aa70053047..9f235ad5f4 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcClient.java @@ -7,8 +7,8 @@ import com.huaweicloud.sdk.rgc.v1.model.DisableControlResponse; import com.huaweicloud.sdk.rgc.v1.model.EnableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.EnableControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitResponse; +import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationalUnitRequest; +import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationalUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateRequest; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateResponse; @@ -89,12 +89,12 @@ public SyncInvoker enableControlInv * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListControlsForOrganizationUnitRequest 请求对象 - * @return ListControlsForOrganizationUnitResponse + * @param request ListControlsForOrganizationalUnitRequest 请求对象 + * @return ListControlsForOrganizationalUnitResponse */ - public ListControlsForOrganizationUnitResponse listControlsForOrganizationUnit( - ListControlsForOrganizationUnitRequest request) { - return hcClient.syncInvokeHttp(request, RgcMeta.listControlsForOrganizationUnit); + public ListControlsForOrganizationalUnitResponse listControlsForOrganizationalUnit( + ListControlsForOrganizationalUnitRequest request) { + return hcClient.syncInvokeHttp(request, RgcMeta.listControlsForOrganizationalUnit); } /** @@ -104,12 +104,12 @@ public ListControlsForOrganizationUnitResponse listControlsForOrganizationUnit( * * Please refer to HUAWEI cloud API Explorer for details. * - * @param request ListControlsForOrganizationUnitRequest 请求对象 - * @return SyncInvoker + * @param request ListControlsForOrganizationalUnitRequest 请求对象 + * @return SyncInvoker */ - public SyncInvoker listControlsForOrganizationUnitInvoker( - ListControlsForOrganizationUnitRequest request) { - return new SyncInvoker<>(request, RgcMeta.listControlsForOrganizationUnit, hcClient); + public SyncInvoker listControlsForOrganizationalUnitInvoker( + ListControlsForOrganizationalUnitRequest request) { + return new SyncInvoker<>(request, RgcMeta.listControlsForOrganizationalUnit, hcClient); } /** diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java index d79ef9f6bd..e9fc69cda3 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/RgcMeta.java @@ -10,8 +10,8 @@ import com.huaweicloud.sdk.rgc.v1.model.DisableControlResponse; import com.huaweicloud.sdk.rgc.v1.model.EnableControlRequest; import com.huaweicloud.sdk.rgc.v1.model.EnableControlResponse; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitRequest; -import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationUnitResponse; +import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationalUnitRequest; +import com.huaweicloud.sdk.rgc.v1.model.ListControlsForOrganizationalUnitResponse; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateRequest; import com.huaweicloud.sdk.rgc.v1.model.ShowControlOperateResponse; @@ -64,39 +64,39 @@ private static HttpRequestDef genFo return builder.build(); } - public static final HttpRequestDef listControlsForOrganizationUnit = - genForListControlsForOrganizationUnit(); + public static final HttpRequestDef listControlsForOrganizationalUnit = + genForListControlsForOrganizationalUnit(); - private static HttpRequestDef genForListControlsForOrganizationUnit() { + private static HttpRequestDef genForListControlsForOrganizationalUnit() { // basic - HttpRequestDef.Builder builder = + HttpRequestDef.Builder builder = HttpRequestDef .builder(HttpMethod.GET, - ListControlsForOrganizationUnitRequest.class, - ListControlsForOrganizationUnitResponse.class) - .withName("ListControlsForOrganizationUnit") - .withUri("/v1/governance/managed-organization-units/{managed_organization_unit_id}/controls") + ListControlsForOrganizationalUnitRequest.class, + ListControlsForOrganizationalUnitResponse.class) + .withName("ListControlsForOrganizationalUnit") + .withUri("/v1/governance/managed-organizational-units/{managed_organizational_unit_id}/controls") .withContentType("application/json"); // requests - builder.withRequestField("managed_organization_unit_id", + builder.withRequestField("managed_organizational_unit_id", LocationType.Path, FieldExistence.NON_NULL_NON_EMPTY, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListControlsForOrganizationUnitRequest::getManagedOrganizationUnitId, - ListControlsForOrganizationUnitRequest::setManagedOrganizationUnitId)); + f -> f.withMarshaller(ListControlsForOrganizationalUnitRequest::getManagedOrganizationalUnitId, + ListControlsForOrganizationalUnitRequest::setManagedOrganizationalUnitId)); builder.withRequestField("limit", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(Integer.class), - f -> f.withMarshaller(ListControlsForOrganizationUnitRequest::getLimit, - ListControlsForOrganizationUnitRequest::setLimit)); + f -> f.withMarshaller(ListControlsForOrganizationalUnitRequest::getLimit, + ListControlsForOrganizationalUnitRequest::setLimit)); builder.withRequestField("marker", LocationType.Query, FieldExistence.NULL_IGNORE, TypeCasts.uncheckedConversion(String.class), - f -> f.withMarshaller(ListControlsForOrganizationUnitRequest::getMarker, - ListControlsForOrganizationUnitRequest::setMarker)); + f -> f.withMarshaller(ListControlsForOrganizationalUnitRequest::getMarker, + ListControlsForOrganizationalUnitRequest::setMarker)); // response diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationUnitRequest.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationalUnitRequest.java similarity index 61% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationUnitRequest.java rename to services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationalUnitRequest.java index 6faef639fc..5c50a477de 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationUnitRequest.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationalUnitRequest.java @@ -8,12 +8,12 @@ /** * Request Object */ -public class ListControlsForOrganizationUnitRequest { +public class ListControlsForOrganizationalUnitRequest { @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonProperty(value = "managed_organization_unit_id") + @JsonProperty(value = "managed_organizational_unit_id") - private String managedOrganizationUnitId; + private String managedOrganizationalUnitId; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "limit") @@ -25,24 +25,25 @@ public class ListControlsForOrganizationUnitRequest { private String marker; - public ListControlsForOrganizationUnitRequest withManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; + public ListControlsForOrganizationalUnitRequest withManagedOrganizationalUnitId( + String managedOrganizationalUnitId) { + this.managedOrganizationalUnitId = managedOrganizationalUnitId; return this; } /** * 注册OU ID。 - * @return managedOrganizationUnitId + * @return managedOrganizationalUnitId */ - public String getManagedOrganizationUnitId() { - return managedOrganizationUnitId; + public String getManagedOrganizationalUnitId() { + return managedOrganizationalUnitId; } - public void setManagedOrganizationUnitId(String managedOrganizationUnitId) { - this.managedOrganizationUnitId = managedOrganizationUnitId; + public void setManagedOrganizationalUnitId(String managedOrganizationalUnitId) { + this.managedOrganizationalUnitId = managedOrganizationalUnitId; } - public ListControlsForOrganizationUnitRequest withLimit(Integer limit) { + public ListControlsForOrganizationalUnitRequest withLimit(Integer limit) { this.limit = limit; return this; } @@ -61,7 +62,7 @@ public void setLimit(Integer limit) { this.limit = limit; } - public ListControlsForOrganizationUnitRequest withMarker(String marker) { + public ListControlsForOrganizationalUnitRequest withMarker(String marker) { this.marker = marker; return this; } @@ -86,21 +87,23 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ListControlsForOrganizationUnitRequest that = (ListControlsForOrganizationUnitRequest) obj; - return Objects.equals(this.managedOrganizationUnitId, that.managedOrganizationUnitId) + ListControlsForOrganizationalUnitRequest that = (ListControlsForOrganizationalUnitRequest) obj; + return Objects.equals(this.managedOrganizationalUnitId, that.managedOrganizationalUnitId) && Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker); } @Override public int hashCode() { - return Objects.hash(managedOrganizationUnitId, limit, marker); + return Objects.hash(managedOrganizationalUnitId, limit, marker); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ListControlsForOrganizationUnitRequest {\n"); - sb.append(" managedOrganizationUnitId: ").append(toIndentedString(managedOrganizationUnitId)).append("\n"); + sb.append("class ListControlsForOrganizationalUnitRequest {\n"); + sb.append(" managedOrganizationalUnitId: ") + .append(toIndentedString(managedOrganizationalUnitId)) + .append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); sb.append("}"); diff --git a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationUnitResponse.java b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationalUnitResponse.java similarity index 80% rename from services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationUnitResponse.java rename to services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationalUnitResponse.java index 9461863cf5..d14970a414 100644 --- a/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationUnitResponse.java +++ b/services/rgc/src/main/java/com/huaweicloud/sdk/rgc/v1/model/ListControlsForOrganizationalUnitResponse.java @@ -12,7 +12,7 @@ /** * Response Object */ -public class ListControlsForOrganizationUnitResponse extends SdkResponse { +public class ListControlsForOrganizationalUnitResponse extends SdkResponse { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "control_summaries") @@ -29,12 +29,12 @@ public class ListControlsForOrganizationUnitResponse extends SdkResponse { private PageInfoDto pageInfo; - public ListControlsForOrganizationUnitResponse withControlSummaries(List controlSummaries) { + public ListControlsForOrganizationalUnitResponse withControlSummaries(List controlSummaries) { this.controlSummaries = controlSummaries; return this; } - public ListControlsForOrganizationUnitResponse addControlSummariesItem(TargetControl controlSummariesItem) { + public ListControlsForOrganizationalUnitResponse addControlSummariesItem(TargetControl controlSummariesItem) { if (this.controlSummaries == null) { this.controlSummaries = new ArrayList<>(); } @@ -42,7 +42,7 @@ public ListControlsForOrganizationUnitResponse addControlSummariesItem(TargetCon return this; } - public ListControlsForOrganizationUnitResponse withControlSummaries( + public ListControlsForOrganizationalUnitResponse withControlSummaries( Consumer> controlSummariesSetter) { if (this.controlSummaries == null) { this.controlSummaries = new ArrayList<>(); @@ -63,7 +63,7 @@ public void setControlSummaries(List controlSummaries) { this.controlSummaries = controlSummaries; } - public ListControlsForOrganizationUnitResponse withState(String state) { + public ListControlsForOrganizationalUnitResponse withState(String state) { this.state = state; return this; } @@ -80,12 +80,12 @@ public void setState(String state) { this.state = state; } - public ListControlsForOrganizationUnitResponse withPageInfo(PageInfoDto pageInfo) { + public ListControlsForOrganizationalUnitResponse withPageInfo(PageInfoDto pageInfo) { this.pageInfo = pageInfo; return this; } - public ListControlsForOrganizationUnitResponse withPageInfo(Consumer pageInfoSetter) { + public ListControlsForOrganizationalUnitResponse withPageInfo(Consumer pageInfoSetter) { if (this.pageInfo == null) { this.pageInfo = new PageInfoDto(); pageInfoSetter.accept(this.pageInfo); @@ -114,7 +114,7 @@ public boolean equals(java.lang.Object obj) { if (obj == null || getClass() != obj.getClass()) { return false; } - ListControlsForOrganizationUnitResponse that = (ListControlsForOrganizationUnitResponse) obj; + ListControlsForOrganizationalUnitResponse that = (ListControlsForOrganizationalUnitResponse) obj; return Objects.equals(this.controlSummaries, that.controlSummaries) && Objects.equals(this.state, that.state) && Objects.equals(this.pageInfo, that.pageInfo); } @@ -127,7 +127,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ListControlsForOrganizationUnitResponse {\n"); + sb.append("class ListControlsForOrganizationalUnitResponse {\n"); sb.append(" controlSummaries: ").append(toIndentedString(controlSummaries)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" pageInfo: ").append(toIndentedString(pageInfo)).append("\n"); diff --git a/services/rms/pom.xml b/services/rms/pom.xml index f18fa3291f..8e376066c5 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-rms - 3.1.97 + 3.1.98 Huawei Cloud SDK for RMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/rocketmq/pom.xml b/services/rocketmq/pom.xml index ce30b8f992..d88827740a 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-rocketmq - 3.1.97 + 3.1.98 Huawei Cloud SDK for ROCKETMQ 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/roma/pom.xml b/services/roma/pom.xml index 7e212861dc..5eaca90f0d 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-roma - 3.1.97 + 3.1.98 Huawei Cloud SDK for ROMA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/sa/pom.xml b/services/sa/pom.xml index 1a792187bc..258dc5a8e0 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-sa - 3.1.97 + 3.1.98 Huawei Cloud SDK for SA 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/scm/pom.xml b/services/scm/pom.xml index 220d46e5b6..184c2980d1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-scm - 3.1.97 + 3.1.98 Huawei Cloud SDK for SCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/sdrs/pom.xml b/services/sdrs/pom.xml index e239a65495..f1286bc843 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-sdrs - 3.1.97 + 3.1.98 Huawei Cloud SDK for SDRS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/secmaster/pom.xml b/services/secmaster/pom.xml index 66f4605ae5..46858f00c1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-secmaster - 3.1.97 + 3.1.98 Huawei Cloud SDK for SECMASTER 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/servicestage/pom.xml b/services/servicestage/pom.xml index 5ba8e59846..f1dee2bb2e 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-servicestage - 3.1.97 + 3.1.98 Huawei Cloud SDK for SERVICESTAGE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/sfsturbo/pom.xml b/services/sfsturbo/pom.xml index a572bb5da9..1eb1cb80d5 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-sfsturbo - 3.1.97 + 3.1.98 Huawei Cloud SDK for SFSTURBO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/sis/pom.xml b/services/sis/pom.xml index 5fbf9e1fd9..d0f715f35c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-sis - 3.1.97 + 3.1.98 Huawei Cloud SDK for SIS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/smn/pom.xml b/services/smn/pom.xml index f1d058b290..755e4eb497 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-smn - 3.1.97 + 3.1.98 Huawei Cloud SDK for SMN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/sms/pom.xml b/services/sms/pom.xml index e704ab7b90..7fa0ddcf37 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-sms - 3.1.97 + 3.1.98 Huawei Cloud SDK for SMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/LogicalVolumes.java b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/LogicalVolumes.java index a2e3b277a4..d5beeb7c6a 100644 --- a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/LogicalVolumes.java +++ b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/LogicalVolumes.java @@ -30,6 +30,11 @@ public class LogicalVolumes { private Integer inodeSize; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "inode_nums") + + private Long inodeNums; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "device_use") @@ -134,6 +139,25 @@ public void setInodeSize(Integer inodeSize) { this.inodeSize = inodeSize; } + public LogicalVolumes withInodeNums(Long inodeNums) { + this.inodeNums = inodeNums; + return this; + } + + /** + * inode节点数量 + * minimum: 0 + * maximum: 9223372036854775807 + * @return inodeNums + */ + public Long getInodeNums() { + return inodeNums; + } + + public void setInodeNums(Long inodeNums) { + this.inodeNums = inodeNums; + } + public LogicalVolumes withDeviceUse(String deviceUse) { this.deviceUse = deviceUse; return this; @@ -253,15 +277,25 @@ public boolean equals(java.lang.Object obj) { LogicalVolumes that = (LogicalVolumes) obj; return Objects.equals(this.blockCount, that.blockCount) && Objects.equals(this.blockSize, that.blockSize) && Objects.equals(this.fileSystem, that.fileSystem) && Objects.equals(this.inodeSize, that.inodeSize) - && Objects.equals(this.deviceUse, that.deviceUse) && Objects.equals(this.mountPoint, that.mountPoint) - && Objects.equals(this.name, that.name) && Objects.equals(this.size, that.size) - && Objects.equals(this.usedSize, that.usedSize) && Objects.equals(this.freeSize, that.freeSize); + && Objects.equals(this.inodeNums, that.inodeNums) && Objects.equals(this.deviceUse, that.deviceUse) + && Objects.equals(this.mountPoint, that.mountPoint) && Objects.equals(this.name, that.name) + && Objects.equals(this.size, that.size) && Objects.equals(this.usedSize, that.usedSize) + && Objects.equals(this.freeSize, that.freeSize); } @Override public int hashCode() { - return Objects - .hash(blockCount, blockSize, fileSystem, inodeSize, deviceUse, mountPoint, name, size, usedSize, freeSize); + return Objects.hash(blockCount, + blockSize, + fileSystem, + inodeSize, + inodeNums, + deviceUse, + mountPoint, + name, + size, + usedSize, + freeSize); } @Override @@ -272,6 +306,7 @@ public String toString() { sb.append(" blockSize: ").append(toIndentedString(blockSize)).append("\n"); sb.append(" fileSystem: ").append(toIndentedString(fileSystem)).append("\n"); sb.append(" inodeSize: ").append(toIndentedString(inodeSize)).append("\n"); + sb.append(" inodeNums: ").append(toIndentedString(inodeNums)).append("\n"); sb.append(" deviceUse: ").append(toIndentedString(deviceUse)).append("\n"); sb.append(" mountPoint: ").append(toIndentedString(mountPoint)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PhysicalVolume.java b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PhysicalVolume.java index 502619f896..e2ba41669f 100644 --- a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PhysicalVolume.java +++ b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PhysicalVolume.java @@ -50,6 +50,11 @@ public class PhysicalVolume { private Integer inodeSize; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "inode_nums") + + private Long inodeNums; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "uuid") @@ -204,6 +209,25 @@ public void setInodeSize(Integer inodeSize) { this.inodeSize = inodeSize; } + public PhysicalVolume withInodeNums(Long inodeNums) { + this.inodeNums = inodeNums; + return this; + } + + /** + * inode节点数量 + * minimum: 0 + * maximum: 9223372036854775807 + * @return inodeNums + */ + public Long getInodeNums() { + return inodeNums; + } + + public void setInodeNums(Long inodeNums) { + this.inodeNums = inodeNums; + } + public PhysicalVolume withUuid(String uuid) { this.uuid = uuid; return this; @@ -253,13 +277,23 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.index, that.index) && Objects.equals(this.mountPoint, that.mountPoint) && Objects.equals(this.name, that.name) && Objects.equals(this.size, that.size) && Objects.equals(this.usedSize, that.usedSize) && Objects.equals(this.inodeSize, that.inodeSize) - && Objects.equals(this.uuid, that.uuid) && Objects.equals(this.sizePerCluster, that.sizePerCluster); + && Objects.equals(this.inodeNums, that.inodeNums) && Objects.equals(this.uuid, that.uuid) + && Objects.equals(this.sizePerCluster, that.sizePerCluster); } @Override public int hashCode() { - return Objects - .hash(deviceUse, fileSystem, index, mountPoint, name, size, usedSize, inodeSize, uuid, sizePerCluster); + return Objects.hash(deviceUse, + fileSystem, + index, + mountPoint, + name, + size, + usedSize, + inodeSize, + inodeNums, + uuid, + sizePerCluster); } @Override @@ -274,6 +308,7 @@ public String toString() { sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" usedSize: ").append(toIndentedString(usedSize)).append("\n"); sb.append(" inodeSize: ").append(toIndentedString(inodeSize)).append("\n"); + sb.append(" inodeNums: ").append(toIndentedString(inodeNums)).append("\n"); sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); sb.append(" sizePerCluster: ").append(toIndentedString(sizePerCluster)).append("\n"); sb.append("}"); diff --git a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PostSourceServerBody.java b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PostSourceServerBody.java index e9a0a8ba4b..adf35f89c3 100644 --- a/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PostSourceServerBody.java +++ b/services/sms/src/main/java/com/huaweicloud/sdk/sms/v3/model/PostSourceServerBody.java @@ -678,6 +678,11 @@ public int hashCode() { private StartTypeEnum startType; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "io_read_wait") + + private Double ioReadWait; + public PostSourceServerBody withId(String id) { this.id = id; return this; @@ -1256,6 +1261,25 @@ public void setStartType(StartTypeEnum startType) { this.startType = startType; } + public PostSourceServerBody withIoReadWait(Double ioReadWait) { + this.ioReadWait = ioReadWait; + return this; + } + + /** + * 磁盘IO读时延,单位为ms + * minimum: 0 + * maximum: 1E+4 + * @return ioReadWait + */ + public Double getIoReadWait() { + return ioReadWait; + } + + public void setIoReadWait(Double ioReadWait) { + this.ioReadWait = ioReadWait; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -1283,7 +1307,8 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.agentVersion, that.agentVersion) && Objects.equals(this.kernelVersion, that.kernelVersion) && Objects.equals(this.migrationCycle, that.migrationCycle) && Objects.equals(this.state, that.state) - && Objects.equals(this.oemSystem, that.oemSystem) && Objects.equals(this.startType, that.startType); + && Objects.equals(this.oemSystem, that.oemSystem) && Objects.equals(this.startType, that.startType) + && Objects.equals(this.ioReadWait, that.ioReadWait); } @Override @@ -1317,7 +1342,8 @@ public int hashCode() { migrationCycle, state, oemSystem, - startType); + startType, + ioReadWait); } @Override @@ -1354,6 +1380,7 @@ public String toString() { sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" oemSystem: ").append(toIndentedString(oemSystem)).append("\n"); sb.append(" startType: ").append(toIndentedString(startType)).append("\n"); + sb.append(" ioReadWait: ").append(toIndentedString(ioReadWait)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/sts/pom.xml b/services/sts/pom.xml index e3e6672312..bb7bfd7f5d 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-sts - 3.1.97 + 3.1.98 Huawei Cloud SDK for STS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/swr/pom.xml b/services/swr/pom.xml index 063cea0767..5628c16d89 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-swr - 3.1.97 + 3.1.98 Huawei Cloud SDK for SWR 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/swr/src/main/java/com/huaweicloud/sdk/swr/v2/region/SwrRegion.java b/services/swr/src/main/java/com/huaweicloud/sdk/swr/v2/region/SwrRegion.java index fbc187436a..118cbceb14 100644 --- a/services/swr/src/main/java/com/huaweicloud/sdk/swr/v2/region/SwrRegion.java +++ b/services/swr/src/main/java/com/huaweicloud/sdk/swr/v2/region/SwrRegion.java @@ -64,6 +64,8 @@ public class SwrRegion { public static final Region MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", "https://swr-api.my-kualalumpur-1.myhuaweicloud.com"); + public static final Region ME_EAST_1 = new Region("me-east-1", "https://swr-api.me-east-1.myhuaweicloud.com"); + public static final Region EU_WEST_0 = new Region("eu-west-0", "https://swr-api.eu-west-0.myhuaweicloud.com"); private static final IRegionProvider PROVIDER = RegionProviderChain.getDefaultRegionProviderChain("SWR"); @@ -94,6 +96,7 @@ private static Map createStaticFields() { map.put("ae-ad-1", AE_AD_1); map.put("eu-west-101", EU_WEST_101); map.put("my-kualalumpur-1", MY_KUALALUMPUR_1); + map.put("me-east-1", ME_EAST_1); map.put("eu-west-0", EU_WEST_0); return Collections.unmodifiableMap(map); } diff --git a/services/tics/pom.xml b/services/tics/pom.xml index f1b4c5522c..abd4f26d8b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-tics - 3.1.97 + 3.1.98 Huawei Cloud SDK for TICS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/tms/pom.xml b/services/tms/pom.xml index b2a6ec6d8b..8da4a9d49c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-tms - 3.1.97 + 3.1.98 Huawei Cloud SDK for TMS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/ugo/pom.xml b/services/ugo/pom.xml index 34ce44cc8f..b65694a08b 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-ugo - 3.1.97 + 3.1.98 Huawei Cloud SDK for UGO 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/vas/pom.xml b/services/vas/pom.xml index e5dc72e7a6..bb185e9902 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-vas - 3.1.97 + 3.1.98 Huawei Cloud SDK for VAS 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/vcm/pom.xml b/services/vcm/pom.xml index 129fe79cd0..9bee598afb 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-vcm - 3.1.97 + 3.1.98 Huawei Cloud SDK for VCM 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/vod/pom.xml b/services/vod/pom.xml index c6375f2c3e..5472ad4895 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-vod - 3.1.97 + 3.1.98 Huawei Cloud SDK for VOD 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/vpc/pom.xml b/services/vpc/pom.xml index ec58fdb275..f4b849a2a7 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-vpc - 3.1.97 + 3.1.98 Huawei Cloud SDK for VPC 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java index 09c5a28647..805a134e08 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcAsyncClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.AsyncInvoker; +import com.huaweicloud.sdk.vpc.v3.model.AddClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.AddClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.AddFirewallRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.AddFirewallRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.AddSecurityGroupsRequest; @@ -13,12 +15,18 @@ import com.huaweicloud.sdk.vpc.v3.model.AddVpcExtendCidrResponse; import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRequest; @@ -37,6 +45,10 @@ import com.huaweicloud.sdk.vpc.v3.model.CreateVpcResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceRequest; @@ -59,6 +71,14 @@ import com.huaweicloud.sdk.vpc.v3.model.DisassociateSubnetFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ListAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ListAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsCountFilterTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsCountFilterTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsFilterTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsFilterTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesRequest; @@ -87,6 +107,10 @@ import com.huaweicloud.sdk.vpc.v3.model.RemoveVpcExtendCidrResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRequest; @@ -107,6 +131,8 @@ import com.huaweicloud.sdk.vpc.v3.model.ShowVpcResponse; import com.huaweicloud.sdk.vpc.v3.model.UpdateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.UpdateAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.UpdateClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.UpdateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallRulesRequest; @@ -1535,6 +1561,394 @@ public AsyncInvoker upd return new AsyncInvoker<>(request, VpcMeta.updateFirewallRules, hcClient); } + /** + * 添加Clouddcn子网标签 + * + * 添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddClouddcnSubnetsTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture addClouddcnSubnetsTagsAsync( + AddClouddcnSubnetsTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.addClouddcnSubnetsTags); + } + + /** + * 添加Clouddcn子网标签 + * + * 添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddClouddcnSubnetsTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker addClouddcnSubnetsTagsAsyncInvoker( + AddClouddcnSubnetsTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.addClouddcnSubnetsTags, hcClient); + } + + /** + * 批量添加Clouddcn子网标签 + * + * 批量添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateClouddcnSubnetsTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchCreateClouddcnSubnetsTagsAsync( + BatchCreateClouddcnSubnetsTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.batchCreateClouddcnSubnetsTags); + } + + /** + * 批量添加Clouddcn子网标签 + * + * 批量添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateClouddcnSubnetsTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchCreateClouddcnSubnetsTagsAsyncInvoker( + BatchCreateClouddcnSubnetsTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.batchCreateClouddcnSubnetsTags, hcClient); + } + + /** + * 批量删除Clouddcn子网标签 + * + * 批量删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteClouddcnSubnetsTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture batchDeleteClouddcnSubnetsTagsAsync( + BatchDeleteClouddcnSubnetsTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.batchDeleteClouddcnSubnetsTags); + } + + /** + * 批量删除Clouddcn子网标签 + * + * 批量删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteClouddcnSubnetsTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker batchDeleteClouddcnSubnetsTagsAsyncInvoker( + BatchDeleteClouddcnSubnetsTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.batchDeleteClouddcnSubnetsTags, hcClient); + } + + /** + * 创建clouddcn子网 + * + * 创建clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateClouddcnSubnetRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture createClouddcnSubnetAsync( + CreateClouddcnSubnetRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.createClouddcnSubnet); + } + + /** + * 创建clouddcn子网 + * + * 创建clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateClouddcnSubnetRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker createClouddcnSubnetAsyncInvoker( + CreateClouddcnSubnetRequest request) { + return new AsyncInvoker<>(request, VpcMeta.createClouddcnSubnet, hcClient); + } + + /** + * 删除clouddcn子网 + * + * 删除clouddcn子网 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteClouddcnSubnetAsync( + DeleteClouddcnSubnetRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.deleteClouddcnSubnet); + } + + /** + * 删除clouddcn子网 + * + * 删除clouddcn子网 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteClouddcnSubnetAsyncInvoker( + DeleteClouddcnSubnetRequest request) { + return new AsyncInvoker<>(request, VpcMeta.deleteClouddcnSubnet, hcClient); + } + + /** + * 删除Clouddcn子网标签 + * + * 删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetsTagRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture deleteClouddcnSubnetsTagAsync( + DeleteClouddcnSubnetsTagRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.deleteClouddcnSubnetsTag); + } + + /** + * 删除Clouddcn子网标签 + * + * 删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetsTagRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker deleteClouddcnSubnetsTagAsyncInvoker( + DeleteClouddcnSubnetsTagRequest request) { + return new AsyncInvoker<>(request, VpcMeta.deleteClouddcnSubnetsTag, hcClient); + } + + /** + * 查询clouddcn子网列表 + * + * 查询clouddcn子网列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listClouddcnSubnetsAsync(ListClouddcnSubnetsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listClouddcnSubnets); + } + + /** + * 查询clouddcn子网列表 + * + * 查询clouddcn子网列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listClouddcnSubnetsAsyncInvoker( + ListClouddcnSubnetsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listClouddcnSubnets, hcClient); + } + + /** + * 查询资源实例列表数目 + * + * 查询资源实例列表数目 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsCountFilterTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listClouddcnSubnetsCountFilterTagsAsync( + ListClouddcnSubnetsCountFilterTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listClouddcnSubnetsCountFilterTags); + } + + /** + * 查询资源实例列表数目 + * + * 查询资源实例列表数目 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsCountFilterTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listClouddcnSubnetsCountFilterTagsAsyncInvoker( + ListClouddcnSubnetsCountFilterTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listClouddcnSubnetsCountFilterTags, hcClient); + } + + /** + * 查询资源实例列表 + * + * 查询资源实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsFilterTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listClouddcnSubnetsFilterTagsAsync( + ListClouddcnSubnetsFilterTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listClouddcnSubnetsFilterTags); + } + + /** + * 查询资源实例列表 + * + * 查询资源实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsFilterTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listClouddcnSubnetsFilterTagsAsyncInvoker( + ListClouddcnSubnetsFilterTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listClouddcnSubnetsFilterTags, hcClient); + } + + /** + * 查询Clouddcn子网项目标签 + * + * 查询Clouddcn子网的项目标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture listClouddcnSubnetsTagsAsync( + ListClouddcnSubnetsTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.listClouddcnSubnetsTags); + } + + /** + * 查询Clouddcn子网项目标签 + * + * 查询Clouddcn子网的项目标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker listClouddcnSubnetsTagsAsyncInvoker( + ListClouddcnSubnetsTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.listClouddcnSubnetsTags, hcClient); + } + + /** + * 查询clouddcn子网 + * + * 查询clouddcn子网详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showClouddcnSubnetAsync(ShowClouddcnSubnetRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.showClouddcnSubnet); + } + + /** + * 查询clouddcn子网 + * + * 查询clouddcn子网详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showClouddcnSubnetAsyncInvoker( + ShowClouddcnSubnetRequest request) { + return new AsyncInvoker<>(request, VpcMeta.showClouddcnSubnet, hcClient); + } + + /** + * 查询Clouddcn子网标签 + * + * 查询Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetsTagsRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture showClouddcnSubnetsTagsAsync( + ShowClouddcnSubnetsTagsRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.showClouddcnSubnetsTags); + } + + /** + * 查询Clouddcn子网标签 + * + * 查询Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetsTagsRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker showClouddcnSubnetsTagsAsyncInvoker( + ShowClouddcnSubnetsTagsRequest request) { + return new AsyncInvoker<>(request, VpcMeta.showClouddcnSubnetsTags, hcClient); + } + + /** + * 更新clouddcn子网 + * + * 更新clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateClouddcnSubnetRequest 请求对象 + * @return CompletableFuture + */ + public CompletableFuture updateClouddcnSubnetAsync( + UpdateClouddcnSubnetRequest request) { + return hcClient.asyncInvokeHttp(request, VpcMeta.updateClouddcnSubnet); + } + + /** + * 更新clouddcn子网 + * + * 更新clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateClouddcnSubnetRequest 请求对象 + * @return AsyncInvoker + */ + public AsyncInvoker updateClouddcnSubnetAsyncInvoker( + UpdateClouddcnSubnetRequest request) { + return new AsyncInvoker<>(request, VpcMeta.updateClouddcnSubnet, hcClient); + } + /** * 创建地址组 * diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java index 5c9c9eadf5..558ceb741e 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcClient.java @@ -3,6 +3,8 @@ import com.huaweicloud.sdk.core.ClientBuilder; import com.huaweicloud.sdk.core.HcClient; import com.huaweicloud.sdk.core.invoker.SyncInvoker; +import com.huaweicloud.sdk.vpc.v3.model.AddClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.AddClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.AddFirewallRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.AddFirewallRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.AddSecurityGroupsRequest; @@ -13,12 +15,18 @@ import com.huaweicloud.sdk.vpc.v3.model.AddVpcExtendCidrResponse; import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateSecurityGroupRequest; @@ -37,6 +45,10 @@ import com.huaweicloud.sdk.vpc.v3.model.CreateVpcResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceRequest; @@ -59,6 +71,14 @@ import com.huaweicloud.sdk.vpc.v3.model.DisassociateSubnetFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ListAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ListAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsCountFilterTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsCountFilterTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsFilterTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsFilterTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesRequest; @@ -87,6 +107,10 @@ import com.huaweicloud.sdk.vpc.v3.model.RemoveVpcExtendCidrResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRequest; @@ -107,6 +131,8 @@ import com.huaweicloud.sdk.vpc.v3.model.ShowVpcResponse; import com.huaweicloud.sdk.vpc.v3.model.UpdateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.UpdateAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.UpdateClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.UpdateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallRulesRequest; @@ -1507,6 +1533,387 @@ public SyncInvoker upda return new SyncInvoker<>(request, VpcMeta.updateFirewallRules, hcClient); } + /** + * 添加Clouddcn子网标签 + * + * 添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddClouddcnSubnetsTagsRequest 请求对象 + * @return AddClouddcnSubnetsTagsResponse + */ + public AddClouddcnSubnetsTagsResponse addClouddcnSubnetsTags(AddClouddcnSubnetsTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.addClouddcnSubnetsTags); + } + + /** + * 添加Clouddcn子网标签 + * + * 添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request AddClouddcnSubnetsTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker addClouddcnSubnetsTagsInvoker( + AddClouddcnSubnetsTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.addClouddcnSubnetsTags, hcClient); + } + + /** + * 批量添加Clouddcn子网标签 + * + * 批量添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateClouddcnSubnetsTagsRequest 请求对象 + * @return BatchCreateClouddcnSubnetsTagsResponse + */ + public BatchCreateClouddcnSubnetsTagsResponse batchCreateClouddcnSubnetsTags( + BatchCreateClouddcnSubnetsTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.batchCreateClouddcnSubnetsTags); + } + + /** + * 批量添加Clouddcn子网标签 + * + * 批量添加Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchCreateClouddcnSubnetsTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchCreateClouddcnSubnetsTagsInvoker( + BatchCreateClouddcnSubnetsTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.batchCreateClouddcnSubnetsTags, hcClient); + } + + /** + * 批量删除Clouddcn子网标签 + * + * 批量删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteClouddcnSubnetsTagsRequest 请求对象 + * @return BatchDeleteClouddcnSubnetsTagsResponse + */ + public BatchDeleteClouddcnSubnetsTagsResponse batchDeleteClouddcnSubnetsTags( + BatchDeleteClouddcnSubnetsTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.batchDeleteClouddcnSubnetsTags); + } + + /** + * 批量删除Clouddcn子网标签 + * + * 批量删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request BatchDeleteClouddcnSubnetsTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker batchDeleteClouddcnSubnetsTagsInvoker( + BatchDeleteClouddcnSubnetsTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.batchDeleteClouddcnSubnetsTags, hcClient); + } + + /** + * 创建clouddcn子网 + * + * 创建clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateClouddcnSubnetRequest 请求对象 + * @return CreateClouddcnSubnetResponse + */ + public CreateClouddcnSubnetResponse createClouddcnSubnet(CreateClouddcnSubnetRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.createClouddcnSubnet); + } + + /** + * 创建clouddcn子网 + * + * 创建clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request CreateClouddcnSubnetRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker createClouddcnSubnetInvoker( + CreateClouddcnSubnetRequest request) { + return new SyncInvoker<>(request, VpcMeta.createClouddcnSubnet, hcClient); + } + + /** + * 删除clouddcn子网 + * + * 删除clouddcn子网 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetRequest 请求对象 + * @return DeleteClouddcnSubnetResponse + */ + public DeleteClouddcnSubnetResponse deleteClouddcnSubnet(DeleteClouddcnSubnetRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.deleteClouddcnSubnet); + } + + /** + * 删除clouddcn子网 + * + * 删除clouddcn子网 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteClouddcnSubnetInvoker( + DeleteClouddcnSubnetRequest request) { + return new SyncInvoker<>(request, VpcMeta.deleteClouddcnSubnet, hcClient); + } + + /** + * 删除Clouddcn子网标签 + * + * 删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetsTagRequest 请求对象 + * @return DeleteClouddcnSubnetsTagResponse + */ + public DeleteClouddcnSubnetsTagResponse deleteClouddcnSubnetsTag(DeleteClouddcnSubnetsTagRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.deleteClouddcnSubnetsTag); + } + + /** + * 删除Clouddcn子网标签 + * + * 删除Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request DeleteClouddcnSubnetsTagRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker deleteClouddcnSubnetsTagInvoker( + DeleteClouddcnSubnetsTagRequest request) { + return new SyncInvoker<>(request, VpcMeta.deleteClouddcnSubnetsTag, hcClient); + } + + /** + * 查询clouddcn子网列表 + * + * 查询clouddcn子网列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsRequest 请求对象 + * @return ListClouddcnSubnetsResponse + */ + public ListClouddcnSubnetsResponse listClouddcnSubnets(ListClouddcnSubnetsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listClouddcnSubnets); + } + + /** + * 查询clouddcn子网列表 + * + * 查询clouddcn子网列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listClouddcnSubnetsInvoker( + ListClouddcnSubnetsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listClouddcnSubnets, hcClient); + } + + /** + * 查询资源实例列表数目 + * + * 查询资源实例列表数目 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsCountFilterTagsRequest 请求对象 + * @return ListClouddcnSubnetsCountFilterTagsResponse + */ + public ListClouddcnSubnetsCountFilterTagsResponse listClouddcnSubnetsCountFilterTags( + ListClouddcnSubnetsCountFilterTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listClouddcnSubnetsCountFilterTags); + } + + /** + * 查询资源实例列表数目 + * + * 查询资源实例列表数目 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsCountFilterTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listClouddcnSubnetsCountFilterTagsInvoker( + ListClouddcnSubnetsCountFilterTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listClouddcnSubnetsCountFilterTags, hcClient); + } + + /** + * 查询资源实例列表 + * + * 查询资源实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsFilterTagsRequest 请求对象 + * @return ListClouddcnSubnetsFilterTagsResponse + */ + public ListClouddcnSubnetsFilterTagsResponse listClouddcnSubnetsFilterTags( + ListClouddcnSubnetsFilterTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listClouddcnSubnetsFilterTags); + } + + /** + * 查询资源实例列表 + * + * 查询资源实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsFilterTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listClouddcnSubnetsFilterTagsInvoker( + ListClouddcnSubnetsFilterTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listClouddcnSubnetsFilterTags, hcClient); + } + + /** + * 查询Clouddcn子网项目标签 + * + * 查询Clouddcn子网的项目标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsTagsRequest 请求对象 + * @return ListClouddcnSubnetsTagsResponse + */ + public ListClouddcnSubnetsTagsResponse listClouddcnSubnetsTags(ListClouddcnSubnetsTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.listClouddcnSubnetsTags); + } + + /** + * 查询Clouddcn子网项目标签 + * + * 查询Clouddcn子网的项目标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ListClouddcnSubnetsTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker listClouddcnSubnetsTagsInvoker( + ListClouddcnSubnetsTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.listClouddcnSubnetsTags, hcClient); + } + + /** + * 查询clouddcn子网 + * + * 查询clouddcn子网详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetRequest 请求对象 + * @return ShowClouddcnSubnetResponse + */ + public ShowClouddcnSubnetResponse showClouddcnSubnet(ShowClouddcnSubnetRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.showClouddcnSubnet); + } + + /** + * 查询clouddcn子网 + * + * 查询clouddcn子网详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showClouddcnSubnetInvoker( + ShowClouddcnSubnetRequest request) { + return new SyncInvoker<>(request, VpcMeta.showClouddcnSubnet, hcClient); + } + + /** + * 查询Clouddcn子网标签 + * + * 查询Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetsTagsRequest 请求对象 + * @return ShowClouddcnSubnetsTagsResponse + */ + public ShowClouddcnSubnetsTagsResponse showClouddcnSubnetsTags(ShowClouddcnSubnetsTagsRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.showClouddcnSubnetsTags); + } + + /** + * 查询Clouddcn子网标签 + * + * 查询Clouddcn子网的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request ShowClouddcnSubnetsTagsRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker showClouddcnSubnetsTagsInvoker( + ShowClouddcnSubnetsTagsRequest request) { + return new SyncInvoker<>(request, VpcMeta.showClouddcnSubnetsTags, hcClient); + } + + /** + * 更新clouddcn子网 + * + * 更新clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateClouddcnSubnetRequest 请求对象 + * @return UpdateClouddcnSubnetResponse + */ + public UpdateClouddcnSubnetResponse updateClouddcnSubnet(UpdateClouddcnSubnetRequest request) { + return hcClient.syncInvokeHttp(request, VpcMeta.updateClouddcnSubnet); + } + + /** + * 更新clouddcn子网 + * + * 更新clouddcn子网。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @param request UpdateClouddcnSubnetRequest 请求对象 + * @return SyncInvoker + */ + public SyncInvoker updateClouddcnSubnetInvoker( + UpdateClouddcnSubnetRequest request) { + return new SyncInvoker<>(request, VpcMeta.updateClouddcnSubnet, hcClient); + } + /** * 创建地址组 * diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java index 6dbfb1a98e..1741765221 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/VpcMeta.java @@ -5,9 +5,12 @@ 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.vpc.v3.model.AddClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.AddClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.AddFirewallRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.AddFirewallRulesRequestBody; import com.huaweicloud.sdk.vpc.v3.model.AddFirewallRulesResponse; +import com.huaweicloud.sdk.vpc.v3.model.AddResourceTagsRequestBody; import com.huaweicloud.sdk.vpc.v3.model.AddSecurityGroupsRequest; import com.huaweicloud.sdk.vpc.v3.model.AddSecurityGroupsRequestBody; import com.huaweicloud.sdk.vpc.v3.model.AddSecurityGroupsResponse; @@ -20,15 +23,24 @@ import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallRequestBody; import com.huaweicloud.sdk.vpc.v3.model.AssociateSubnetFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchCreateRequestBody; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesRequestBody; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceRequest; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceRequestBody; import com.huaweicloud.sdk.vpc.v3.model.BatchCreateSubNetworkInterfaceResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteClouddcnSubnetsTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.BatchDeleteRequestBody; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupRequestBody; import com.huaweicloud.sdk.vpc.v3.model.CreateAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.CreateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallRequestBody; import com.huaweicloud.sdk.vpc.v3.model.CreateFirewallResponse; @@ -55,6 +67,10 @@ import com.huaweicloud.sdk.vpc.v3.model.CreateVpcResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetResponse; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagRequest; +import com.huaweicloud.sdk.vpc.v3.model.DeleteClouddcnSubnetsTagResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.DeleteFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.DeleteIpAddressGroupForceRequest; @@ -78,8 +94,17 @@ import com.huaweicloud.sdk.vpc.v3.model.DisassociateSubnetFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ListAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ListAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsCountFilterTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsCountFilterTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsFilterTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsFilterTagsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ListClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ListFirewallResponse; +import com.huaweicloud.sdk.vpc.v3.model.ListResourcesByTagsRequestBody; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesRequest; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupRulesResponse; import com.huaweicloud.sdk.vpc.v3.model.ListSecurityGroupsRequest; @@ -111,6 +136,10 @@ import com.huaweicloud.sdk.vpc.v3.model.RemoveVpcExtendCidrResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetResponse; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsRequest; +import com.huaweicloud.sdk.vpc.v3.model.ShowClouddcnSubnetsTagsResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.ShowFirewallResponse; import com.huaweicloud.sdk.vpc.v3.model.ShowSecurityGroupRequest; @@ -132,6 +161,9 @@ import com.huaweicloud.sdk.vpc.v3.model.UpdateAddressGroupRequest; import com.huaweicloud.sdk.vpc.v3.model.UpdateAddressGroupRequestBody; import com.huaweicloud.sdk.vpc.v3.model.UpdateAddressGroupResponse; +import com.huaweicloud.sdk.vpc.v3.model.UpdateClouddcnSubnetRequest; +import com.huaweicloud.sdk.vpc.v3.model.UpdateClouddcnSubnetRequestBody; +import com.huaweicloud.sdk.vpc.v3.model.UpdateClouddcnSubnetResponse; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallRequest; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallRequestBody; import com.huaweicloud.sdk.vpc.v3.model.UpdateFirewallResponse; @@ -1772,6 +1804,375 @@ private static HttpRequestDef addClouddcnSubnetsTags = + genForAddClouddcnSubnetsTags(); + + private static HttpRequestDef genForAddClouddcnSubnetsTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, AddClouddcnSubnetsTagsRequest.class, AddClouddcnSubnetsTagsResponse.class) + .withName("AddClouddcnSubnetsTags") + .withUri("/v3/{project_id}/clouddcn-subnets/{resource_id}/tags") + .withContentType("application/json"); + + // requests + builder.withRequestField("resource_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(AddClouddcnSubnetsTagsRequest::getResourceId, + AddClouddcnSubnetsTagsRequest::setResourceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(AddResourceTagsRequestBody.class), + f -> f.withMarshaller(AddClouddcnSubnetsTagsRequest::getBody, AddClouddcnSubnetsTagsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchCreateClouddcnSubnetsTags = + genForBatchCreateClouddcnSubnetsTags(); + + private static HttpRequestDef genForBatchCreateClouddcnSubnetsTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchCreateClouddcnSubnetsTagsRequest.class, + BatchCreateClouddcnSubnetsTagsResponse.class) + .withName("BatchCreateClouddcnSubnetsTags") + .withUri("/v3/{project_id}/clouddcn-subnets/{resource_id}/tags/create") + .withContentType("application/json"); + + // requests + builder.withRequestField("resource_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchCreateClouddcnSubnetsTagsRequest::getResourceId, + BatchCreateClouddcnSubnetsTagsRequest::setResourceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchCreateRequestBody.class), + f -> f.withMarshaller(BatchCreateClouddcnSubnetsTagsRequest::getBody, + BatchCreateClouddcnSubnetsTagsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef batchDeleteClouddcnSubnetsTags = + genForBatchDeleteClouddcnSubnetsTags(); + + private static HttpRequestDef genForBatchDeleteClouddcnSubnetsTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + BatchDeleteClouddcnSubnetsTagsRequest.class, + BatchDeleteClouddcnSubnetsTagsResponse.class) + .withName("BatchDeleteClouddcnSubnetsTags") + .withUri("/v3/{project_id}/clouddcn-subnets/{resource_id}/tags/delete") + .withContentType("application/json"); + + // requests + builder.withRequestField("resource_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(BatchDeleteClouddcnSubnetsTagsRequest::getResourceId, + BatchDeleteClouddcnSubnetsTagsRequest::setResourceId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(BatchDeleteRequestBody.class), + f -> f.withMarshaller(BatchDeleteClouddcnSubnetsTagsRequest::getBody, + BatchDeleteClouddcnSubnetsTagsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef createClouddcnSubnet = + genForCreateClouddcnSubnet(); + + private static HttpRequestDef genForCreateClouddcnSubnet() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.POST, CreateClouddcnSubnetRequest.class, CreateClouddcnSubnetResponse.class) + .withName("CreateClouddcnSubnet") + .withUri("/v3/{project_id}/vpc/clouddcn-subnets") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(CreateClouddcnSubnetRequestBody.class), + f -> f.withMarshaller(CreateClouddcnSubnetRequest::getBody, CreateClouddcnSubnetRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteClouddcnSubnet = + genForDeleteClouddcnSubnet(); + + private static HttpRequestDef genForDeleteClouddcnSubnet() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.DELETE, DeleteClouddcnSubnetRequest.class, DeleteClouddcnSubnetResponse.class) + .withName("DeleteClouddcnSubnet") + .withUri("/v3/{project_id}/vpc/clouddcn-subnets/{clouddcn_subnet_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("clouddcn_subnet_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteClouddcnSubnetRequest::getClouddcnSubnetId, + DeleteClouddcnSubnetRequest::setClouddcnSubnetId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef deleteClouddcnSubnetsTag = + genForDeleteClouddcnSubnetsTag(); + + private static HttpRequestDef genForDeleteClouddcnSubnetsTag() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.DELETE, + DeleteClouddcnSubnetsTagRequest.class, + DeleteClouddcnSubnetsTagResponse.class) + .withName("DeleteClouddcnSubnetsTag") + .withUri("/v3/{project_id}/clouddcn-subnets/{resource_id}/tags/{tag_key}") + .withContentType("application/json"); + + // requests + builder.withRequestField("resource_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteClouddcnSubnetsTagRequest::getResourceId, + DeleteClouddcnSubnetsTagRequest::setResourceId)); + builder.withRequestField("tag_key", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(DeleteClouddcnSubnetsTagRequest::getTagKey, + DeleteClouddcnSubnetsTagRequest::setTagKey)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listClouddcnSubnets = + genForListClouddcnSubnets(); + + private static HttpRequestDef genForListClouddcnSubnets() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ListClouddcnSubnetsRequest.class, ListClouddcnSubnetsResponse.class) + .withName("ListClouddcnSubnets") + .withUri("/v3/{project_id}/vpc/clouddcn-subnets") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListClouddcnSubnetsRequest::getLimit, ListClouddcnSubnetsRequest::setLimit)); + builder.withRequestField("marker", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListClouddcnSubnetsRequest::getMarker, ListClouddcnSubnetsRequest::setMarker)); + builder.withRequestField("vpc_id", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ListClouddcnSubnetsRequest::getVpcId, ListClouddcnSubnetsRequest::setVpcId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listClouddcnSubnetsCountFilterTags = + genForListClouddcnSubnetsCountFilterTags(); + + private static HttpRequestDef genForListClouddcnSubnetsCountFilterTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + ListClouddcnSubnetsCountFilterTagsRequest.class, + ListClouddcnSubnetsCountFilterTagsResponse.class) + .withName("ListClouddcnSubnetsCountFilterTags") + .withUri("/v3/{project_id}/clouddcn-subnets/resource-instances/count") + .withContentType("application/json"); + + // requests + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListResourcesByTagsRequestBody.class), + f -> f.withMarshaller(ListClouddcnSubnetsCountFilterTagsRequest::getBody, + ListClouddcnSubnetsCountFilterTagsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listClouddcnSubnetsFilterTags = + genForListClouddcnSubnetsFilterTags(); + + private static HttpRequestDef genForListClouddcnSubnetsFilterTags() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef + .builder(HttpMethod.POST, + ListClouddcnSubnetsFilterTagsRequest.class, + ListClouddcnSubnetsFilterTagsResponse.class) + .withName("ListClouddcnSubnetsFilterTags") + .withUri("/v3/{project_id}/clouddcn-subnets/resource-instances/filter") + .withContentType("application/json"); + + // requests + builder.withRequestField("limit", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListClouddcnSubnetsFilterTagsRequest::getLimit, + ListClouddcnSubnetsFilterTagsRequest::setLimit)); + builder.withRequestField("offset", + LocationType.Query, + FieldExistence.NULL_IGNORE, + TypeCasts.uncheckedConversion(Integer.class), + f -> f.withMarshaller(ListClouddcnSubnetsFilterTagsRequest::getOffset, + ListClouddcnSubnetsFilterTagsRequest::setOffset)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(ListResourcesByTagsRequestBody.class), + f -> f.withMarshaller(ListClouddcnSubnetsFilterTagsRequest::getBody, + ListClouddcnSubnetsFilterTagsRequest::setBody)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef listClouddcnSubnetsTags = + genForListClouddcnSubnetsTags(); + + private static HttpRequestDef genForListClouddcnSubnetsTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ListClouddcnSubnetsTagsRequest.class, ListClouddcnSubnetsTagsResponse.class) + .withName("ListClouddcnSubnetsTags") + .withUri("/v3/{project_id}/clouddcn-subnets/tags") + .withContentType("application/json"); + + // requests + + // response + + return builder.build(); + } + + public static final HttpRequestDef showClouddcnSubnet = + genForShowClouddcnSubnet(); + + private static HttpRequestDef genForShowClouddcnSubnet() { + // basic + HttpRequestDef.Builder builder = + HttpRequestDef.builder(HttpMethod.GET, ShowClouddcnSubnetRequest.class, ShowClouddcnSubnetResponse.class) + .withName("ShowClouddcnSubnet") + .withUri("/v3/{project_id}/vpc/clouddcn-subnets/{clouddcn_subnet_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("clouddcn_subnet_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowClouddcnSubnetRequest::getClouddcnSubnetId, + ShowClouddcnSubnetRequest::setClouddcnSubnetId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef showClouddcnSubnetsTags = + genForShowClouddcnSubnetsTags(); + + private static HttpRequestDef genForShowClouddcnSubnetsTags() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.GET, ShowClouddcnSubnetsTagsRequest.class, ShowClouddcnSubnetsTagsResponse.class) + .withName("ShowClouddcnSubnetsTags") + .withUri("/v3/{project_id}/clouddcn-subnets/{resource_id}/tags") + .withContentType("application/json"); + + // requests + builder.withRequestField("resource_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(ShowClouddcnSubnetsTagsRequest::getResourceId, + ShowClouddcnSubnetsTagsRequest::setResourceId)); + + // response + + return builder.build(); + } + + public static final HttpRequestDef updateClouddcnSubnet = + genForUpdateClouddcnSubnet(); + + private static HttpRequestDef genForUpdateClouddcnSubnet() { + // basic + HttpRequestDef.Builder builder = HttpRequestDef + .builder(HttpMethod.PUT, UpdateClouddcnSubnetRequest.class, UpdateClouddcnSubnetResponse.class) + .withName("UpdateClouddcnSubnet") + .withUri("/v3/{project_id}/vpc/clouddcn-subnets/{clouddcn_subnet_id}") + .withContentType("application/json"); + + // requests + builder.withRequestField("clouddcn_subnet_id", + LocationType.Path, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(String.class), + f -> f.withMarshaller(UpdateClouddcnSubnetRequest::getClouddcnSubnetId, + UpdateClouddcnSubnetRequest::setClouddcnSubnetId)); + builder.withRequestField("body", + LocationType.Body, + FieldExistence.NON_NULL_NON_EMPTY, + TypeCasts.uncheckedConversion(UpdateClouddcnSubnetRequestBody.class), + f -> f.withMarshaller(UpdateClouddcnSubnetRequest::getBody, UpdateClouddcnSubnetRequest::setBody)); + + // response + + return builder.build(); + } + public static final HttpRequestDef createAddressGroup = genForCreateAddressGroup(); diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddClouddcnSubnetsTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddClouddcnSubnetsTagsRequest.java new file mode 100644 index 0000000000..b1010c4f92 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddClouddcnSubnetsTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v3.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 AddClouddcnSubnetsTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private AddResourceTagsRequestBody body; + + public AddClouddcnSubnetsTagsRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Clouddcn子网的id + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public AddClouddcnSubnetsTagsRequest withBody(AddResourceTagsRequestBody body) { + this.body = body; + return this; + } + + public AddClouddcnSubnetsTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new AddResourceTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public AddResourceTagsRequestBody getBody() { + return body; + } + + public void setBody(AddResourceTagsRequestBody 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; + } + AddClouddcnSubnetsTagsRequest that = (AddClouddcnSubnetsTagsRequest) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddClouddcnSubnetsTagsRequest {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddClouddcnSubnetsTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddClouddcnSubnetsTagsResponse.java new file mode 100644 index 0000000000..6fc4d87340 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddClouddcnSubnetsTagsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class AddClouddcnSubnetsTagsResponse 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 AddClouddcnSubnetsTagsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddResourceTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddResourceTagsRequestBody.java new file mode 100644 index 0000000000..2bc5743bae --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddResourceTagsRequestBody.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * AddResourceTagsRequestBody + */ +public class AddResourceTagsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tag") + + private AddResourceTagsRequestBodyTag tag; + + public AddResourceTagsRequestBody withTag(AddResourceTagsRequestBodyTag tag) { + this.tag = tag; + return this; + } + + public AddResourceTagsRequestBody withTag(Consumer tagSetter) { + if (this.tag == null) { + this.tag = new AddResourceTagsRequestBodyTag(); + tagSetter.accept(this.tag); + } + + return this; + } + + /** + * Get tag + * @return tag + */ + public AddResourceTagsRequestBodyTag getTag() { + return tag; + } + + public void setTag(AddResourceTagsRequestBodyTag tag) { + this.tag = tag; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + AddResourceTagsRequestBody that = (AddResourceTagsRequestBody) obj; + return Objects.equals(this.tag, that.tag); + } + + @Override + public int hashCode() { + return Objects.hash(tag); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddResourceTagsRequestBody {\n"); + sb.append(" tag: ").append(toIndentedString(tag)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddResourceTagsRequestBodyTag.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddResourceTagsRequestBodyTag.java new file mode 100644 index 0000000000..7a229e4104 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/AddResourceTagsRequestBodyTag.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 标签对象 + */ +public class AddResourceTagsRequestBodyTag { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public AddResourceTagsRequestBodyTag 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 AddResourceTagsRequestBodyTag 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; + } + AddResourceTagsRequestBodyTag that = (AddResourceTagsRequestBodyTag) 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 AddResourceTagsRequestBodyTag {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateClouddcnSubnetsTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateClouddcnSubnetsTagsRequest.java new file mode 100644 index 0000000000..88faadb36c --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateClouddcnSubnetsTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v3.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 BatchCreateClouddcnSubnetsTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchCreateRequestBody body; + + public BatchCreateClouddcnSubnetsTagsRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Clouddcn子网的id + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public BatchCreateClouddcnSubnetsTagsRequest withBody(BatchCreateRequestBody body) { + this.body = body; + return this; + } + + public BatchCreateClouddcnSubnetsTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchCreateRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchCreateRequestBody getBody() { + return body; + } + + public void setBody(BatchCreateRequestBody 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; + } + BatchCreateClouddcnSubnetsTagsRequest that = (BatchCreateClouddcnSubnetsTagsRequest) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateClouddcnSubnetsTagsRequest {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateClouddcnSubnetsTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateClouddcnSubnetsTagsResponse.java new file mode 100644 index 0000000000..f0d777e69c --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateClouddcnSubnetsTagsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchCreateClouddcnSubnetsTagsResponse 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 BatchCreateClouddcnSubnetsTagsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBody.java new file mode 100644 index 0000000000..2a853d5e36 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBody.java @@ -0,0 +1,130 @@ +package com.huaweicloud.sdk.vpc.v3.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; + +/** + * BatchCreateRequestBody + */ +public class BatchCreateRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sys_tags") + + private List sysTags = null; + + public BatchCreateRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public BatchCreateRequestBody addTagsItem(BatchCreateRequestBodyTags tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BatchCreateRequestBody 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 BatchCreateRequestBody withSysTags(List sysTags) { + this.sysTags = sysTags; + return this; + } + + public BatchCreateRequestBody addSysTagsItem(BatchCreateRequestBodySysTags sysTagsItem) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + this.sysTags.add(sysTagsItem); + return this; + } + + public BatchCreateRequestBody withSysTags(Consumer> sysTagsSetter) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + sysTagsSetter.accept(this.sysTags); + return this; + } + + /** + * 系统标签 + * @return sysTags + */ + public List getSysTags() { + return sysTags; + } + + public void setSysTags(List sysTags) { + this.sysTags = sysTags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchCreateRequestBody that = (BatchCreateRequestBody) obj; + return Objects.equals(this.tags, that.tags) && Objects.equals(this.sysTags, that.sysTags); + } + + @Override + public int hashCode() { + return Objects.hash(tags, sysTags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCreateRequestBody {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" sysTags: ").append(toIndentedString(sysTags)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBodySysTags.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBodySysTags.java new file mode 100644 index 0000000000..95ff601c48 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBodySysTags.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BatchCreateRequestBodySysTags + */ +public class BatchCreateRequestBodySysTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public BatchCreateRequestBodySysTags 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 BatchCreateRequestBodySysTags 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; + } + BatchCreateRequestBodySysTags that = (BatchCreateRequestBodySysTags) 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 BatchCreateRequestBodySysTags {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBodyTags.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBodyTags.java new file mode 100644 index 0000000000..d988786c41 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchCreateRequestBodyTags.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BatchCreateRequestBodyTags + */ +public class BatchCreateRequestBodyTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public BatchCreateRequestBodyTags 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 BatchCreateRequestBodyTags 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; + } + BatchCreateRequestBodyTags that = (BatchCreateRequestBodyTags) 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 BatchCreateRequestBodyTags {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteClouddcnSubnetsTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteClouddcnSubnetsTagsRequest.java new file mode 100644 index 0000000000..a329796504 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteClouddcnSubnetsTagsRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v3.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 BatchDeleteClouddcnSubnetsTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private BatchDeleteRequestBody body; + + public BatchDeleteClouddcnSubnetsTagsRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Clouddcn子网的id + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public BatchDeleteClouddcnSubnetsTagsRequest withBody(BatchDeleteRequestBody body) { + this.body = body; + return this; + } + + public BatchDeleteClouddcnSubnetsTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new BatchDeleteRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public BatchDeleteRequestBody getBody() { + return body; + } + + public void setBody(BatchDeleteRequestBody 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; + } + BatchDeleteClouddcnSubnetsTagsRequest that = (BatchDeleteClouddcnSubnetsTagsRequest) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteClouddcnSubnetsTagsRequest {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteClouddcnSubnetsTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteClouddcnSubnetsTagsResponse.java new file mode 100644 index 0000000000..ab717eed0c --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteClouddcnSubnetsTagsResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class BatchDeleteClouddcnSubnetsTagsResponse 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 BatchDeleteClouddcnSubnetsTagsResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBody.java new file mode 100644 index 0000000000..1efae1e2d6 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBody.java @@ -0,0 +1,130 @@ +package com.huaweicloud.sdk.vpc.v3.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; + +/** + * BatchDeleteRequestBody + */ +public class BatchDeleteRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sys_tags") + + private List sysTags = null; + + public BatchDeleteRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public BatchDeleteRequestBody addTagsItem(BatchDeleteRequestBodyTags tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public BatchDeleteRequestBody 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 BatchDeleteRequestBody withSysTags(List sysTags) { + this.sysTags = sysTags; + return this; + } + + public BatchDeleteRequestBody addSysTagsItem(BatchDeleteRequestBodySysTags sysTagsItem) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + this.sysTags.add(sysTagsItem); + return this; + } + + public BatchDeleteRequestBody withSysTags(Consumer> sysTagsSetter) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + sysTagsSetter.accept(this.sysTags); + return this; + } + + /** + * 系统标签 + * @return sysTags + */ + public List getSysTags() { + return sysTags; + } + + public void setSysTags(List sysTags) { + this.sysTags = sysTags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + BatchDeleteRequestBody that = (BatchDeleteRequestBody) obj; + return Objects.equals(this.tags, that.tags) && Objects.equals(this.sysTags, that.sysTags); + } + + @Override + public int hashCode() { + return Objects.hash(tags, sysTags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchDeleteRequestBody {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" sysTags: ").append(toIndentedString(sysTags)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBodySysTags.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBodySysTags.java new file mode 100644 index 0000000000..82f6829c83 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBodySysTags.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BatchDeleteRequestBodySysTags + */ +public class BatchDeleteRequestBodySysTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public BatchDeleteRequestBodySysTags 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 BatchDeleteRequestBodySysTags 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; + } + BatchDeleteRequestBodySysTags that = (BatchDeleteRequestBodySysTags) 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 BatchDeleteRequestBodySysTags {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBodyTags.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBodyTags.java new file mode 100644 index 0000000000..bbc55d1217 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/BatchDeleteRequestBodyTags.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * BatchDeleteRequestBodyTags + */ +public class BatchDeleteRequestBodyTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public BatchDeleteRequestBodyTags 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 BatchDeleteRequestBodyTags 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; + } + BatchDeleteRequestBodyTags that = (BatchDeleteRequestBodyTags) 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 BatchDeleteRequestBodyTags {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ClouddcnResource.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ClouddcnResource.java new file mode 100644 index 0000000000..4440da5bdf --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ClouddcnResource.java @@ -0,0 +1,162 @@ +package com.huaweicloud.sdk.vpc.v3.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 ClouddcnResource { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_detail") + + private Object resourceDetail; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_name") + + private String resourceName; + + public ClouddcnResource 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 ClouddcnResource withResourceDetail(Object resourceDetail) { + this.resourceDetail = resourceDetail; + return this; + } + + /** + * 资源详情。 + * @return resourceDetail + */ + public Object getResourceDetail() { + return resourceDetail; + } + + public void setResourceDetail(Object resourceDetail) { + this.resourceDetail = resourceDetail; + } + + public ClouddcnResource withTags(List tags) { + this.tags = tags; + return this; + } + + public ClouddcnResource addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ClouddcnResource 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 ClouddcnResource 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; + } + ClouddcnResource that = (ClouddcnResource) obj; + return Objects.equals(this.resourceId, that.resourceId) + && Objects.equals(this.resourceDetail, that.resourceDetail) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.resourceName, that.resourceName); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, resourceDetail, tags, resourceName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClouddcnResource {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceDetail: ").append(toIndentedString(resourceDetail)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ClouddcnSubnet.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ClouddcnSubnet.java new file mode 100644 index 0000000000..c4da832cc2 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ClouddcnSubnet.java @@ -0,0 +1,402 @@ +package com.huaweicloud.sdk.vpc.v3.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; + +/** + * + */ +public class ClouddcnSubnet { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "id") + + private String id; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "project_id") + + private String projectId; + + @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 = "cidr") + + private String cidr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_ip") + + private String gatewayIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dns_nameservers") + + private List dnsNameservers = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "created_at") + + private OffsetDateTime createdAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "updated_at") + + private OffsetDateTime updatedAt; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @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 ClouddcnSubnet withId(String id) { + this.id = id; + return this; + } + + /** + * clouddcn子网ID + * @return id + */ + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ClouddcnSubnet withProjectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * 功能说明:VPC所属的项目ID + * @return projectId + */ + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public ClouddcnSubnet 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 ClouddcnSubnet withDescription(String description) { + this.description = description; + return this; + } + + /** + * 功能说明:子网描述 取值范围:0-255个字符,不能包含“<”和“>”。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ClouddcnSubnet withCidr(String cidr) { + this.cidr = cidr; + return this; + } + + /** + * 功能说明:子网的网段 取值范围:必须在vpc对应cidr范围内 约束:必须是cidr格式。掩码长度不能大于28 + * @return cidr + */ + public String getCidr() { + return cidr; + } + + public void setCidr(String cidr) { + this.cidr = cidr; + } + + public ClouddcnSubnet withGatewayIp(String gatewayIp) { + this.gatewayIp = gatewayIp; + return this; + } + + /** + * 功能说明:子网的网关 取值范围:子网网段中的IP地址 约束:必须是ip格式 + * @return gatewayIp + */ + public String getGatewayIp() { + return gatewayIp; + } + + public void setGatewayIp(String gatewayIp) { + this.gatewayIp = gatewayIp; + } + + public ClouddcnSubnet withDnsNameservers(List dnsNameservers) { + this.dnsNameservers = dnsNameservers; + return this; + } + + public ClouddcnSubnet addDnsNameserversItem(String dnsNameserversItem) { + if (this.dnsNameservers == null) { + this.dnsNameservers = new ArrayList<>(); + } + this.dnsNameservers.add(dnsNameserversItem); + return this; + } + + public ClouddcnSubnet withDnsNameservers(Consumer> dnsNameserversSetter) { + if (this.dnsNameservers == null) { + this.dnsNameservers = new ArrayList<>(); + } + dnsNameserversSetter.accept(this.dnsNameservers); + return this; + } + + /** + * clouddcn子网dns服务器地址列表 + * @return dnsNameservers + */ + public List getDnsNameservers() { + return dnsNameservers; + } + + public void setDnsNameservers(List dnsNameservers) { + this.dnsNameservers = dnsNameservers; + } + + public ClouddcnSubnet withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * clouddcn子网所在VPC标识 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public ClouddcnSubnet withCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * 功能说明:资源创建UTC时间 格式:yyyy-MM-ddTHH:mm:ss + * @return createdAt + */ + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + public ClouddcnSubnet withUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * 功能说明:资源更新UTC时间 格式:yyyy-MM-ddTHH:mm:ss + * @return updatedAt + */ + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + public ClouddcnSubnet withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 功能说明:可用区 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public ClouddcnSubnet withTags(List tags) { + this.tags = tags; + return this; + } + + public ClouddcnSubnet addTagsItem(TagEntity tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ClouddcnSubnet withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 功能说明:对接TMS + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + + public ClouddcnSubnet withEnterpriseProjectId(String enterpriseProjectId) { + this.enterpriseProjectId = enterpriseProjectId; + return this; + } + + /** + * 功能说明:对接TPS + * @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; + } + ClouddcnSubnet that = (ClouddcnSubnet) obj; + return Objects.equals(this.id, that.id) && Objects.equals(this.projectId, that.projectId) + && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.cidr, that.cidr) && Objects.equals(this.gatewayIp, that.gatewayIp) + && Objects.equals(this.dnsNameservers, that.dnsNameservers) && Objects.equals(this.vpcId, that.vpcId) + && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt) + && Objects.equals(this.availabilityZone, that.availabilityZone) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + } + + @Override + public int hashCode() { + return Objects.hash(id, + projectId, + name, + description, + cidr, + gatewayIp, + dnsNameservers, + vpcId, + createdAt, + updatedAt, + availabilityZone, + tags, + enterpriseProjectId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClouddcnSubnet {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" cidr: ").append(toIndentedString(cidr)).append("\n"); + sb.append(" gatewayIp: ").append(toIndentedString(gatewayIp)).append("\n"); + sb.append(" dnsNameservers: ").append(toIndentedString(dnsNameservers)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetOption.java new file mode 100644 index 0000000000..40bf4fe2f4 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetOption.java @@ -0,0 +1,272 @@ +package com.huaweicloud.sdk.vpc.v3.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 CreateClouddcnSubnetOption { + + @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 = "cidr") + + private String cidr; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "gateway_ip") + + private String gatewayIp; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "dns_nameservers") + + private List dnsNameservers = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "availability_zone") + + private String availabilityZone; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public CreateClouddcnSubnetOption withName(String name) { + this.name = name; + return this; + } + + /** + * 功能说明:clouddcn子网名称 取值范围:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点) + * @return name + */ + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateClouddcnSubnetOption withDescription(String description) { + this.description = description; + return this; + } + + /** + * 功能说明:clouddcn子网描述 取值范围:0-255个字符,不能包含“<”和“>”。 + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateClouddcnSubnetOption withCidr(String cidr) { + this.cidr = cidr; + return this; + } + + /** + * 功能说明:clouddcn子网的网段 取值范围:必须在vpc对应cidr范围内,不能和同vpc下其他普通子网的网段冲突 约束:必须是cidr格式。掩码长度不能大于28 + * @return cidr + */ + public String getCidr() { + return cidr; + } + + public void setCidr(String cidr) { + this.cidr = cidr; + } + + public CreateClouddcnSubnetOption withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * clouddcn子网所在VPC标识 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public CreateClouddcnSubnetOption withGatewayIp(String gatewayIp) { + this.gatewayIp = gatewayIp; + return this; + } + + /** + * 功能说明:clouddcn子网的网关 取值范围:clouddcn子网网段中的IP地址 约束:必须是ip格式 + * @return gatewayIp + */ + public String getGatewayIp() { + return gatewayIp; + } + + public void setGatewayIp(String gatewayIp) { + this.gatewayIp = gatewayIp; + } + + public CreateClouddcnSubnetOption withDnsNameservers(List dnsNameservers) { + this.dnsNameservers = dnsNameservers; + return this; + } + + public CreateClouddcnSubnetOption addDnsNameserversItem(String dnsNameserversItem) { + if (this.dnsNameservers == null) { + this.dnsNameservers = new ArrayList<>(); + } + this.dnsNameservers.add(dnsNameserversItem); + return this; + } + + public CreateClouddcnSubnetOption withDnsNameservers(Consumer> dnsNameserversSetter) { + if (this.dnsNameservers == null) { + this.dnsNameservers = new ArrayList<>(); + } + dnsNameserversSetter.accept(this.dnsNameservers); + return this; + } + + /** + * 功能说明:clouddcn子网dns服务器地址的集合;如果想使用两个以上dns服务器,请使用该字段 约束:是子网dns服务器地址1跟子网dns服务器地址2的合集的父集,不支持IPv6地址。 默认值:不填时为空,无法使用云内网DNS功能 [内网DNS地址请参见](https://support.huaweicloud.com/dns_faq/dns_faq_002.html) [通过API获取请参见](https://support.huaweicloud.com/api-dns/dns_api_69001.html) + * @return dnsNameservers + */ + public List getDnsNameservers() { + return dnsNameservers; + } + + public void setDnsNameservers(List dnsNameservers) { + this.dnsNameservers = dnsNameservers; + } + + public CreateClouddcnSubnetOption withAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + return this; + } + + /** + * 功能说明:可用区 + * @return availabilityZone + */ + public String getAvailabilityZone() { + return availabilityZone; + } + + public void setAvailabilityZone(String availabilityZone) { + this.availabilityZone = availabilityZone; + } + + public CreateClouddcnSubnetOption withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateClouddcnSubnetOption addTagsItem(TagEntity tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateClouddcnSubnetOption withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 功能说明:对接TMS + * @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; + } + CreateClouddcnSubnetOption that = (CreateClouddcnSubnetOption) obj; + return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) + && Objects.equals(this.cidr, that.cidr) && Objects.equals(this.vpcId, that.vpcId) + && Objects.equals(this.gatewayIp, that.gatewayIp) + && Objects.equals(this.dnsNameservers, that.dnsNameservers) + && Objects.equals(this.availabilityZone, that.availabilityZone) && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, cidr, vpcId, gatewayIp, dnsNameservers, availabilityZone, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateClouddcnSubnetOption {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" cidr: ").append(toIndentedString(cidr)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append(" gatewayIp: ").append(toIndentedString(gatewayIp)).append("\n"); + sb.append(" dnsNameservers: ").append(toIndentedString(dnsNameservers)).append("\n"); + sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetRequest.java new file mode 100644 index 0000000000..4aaae5e05d --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.vpc.v3.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 CreateClouddcnSubnetRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private CreateClouddcnSubnetRequestBody body; + + public CreateClouddcnSubnetRequest withBody(CreateClouddcnSubnetRequestBody body) { + this.body = body; + return this; + } + + public CreateClouddcnSubnetRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new CreateClouddcnSubnetRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public CreateClouddcnSubnetRequestBody getBody() { + return body; + } + + public void setBody(CreateClouddcnSubnetRequestBody 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; + } + CreateClouddcnSubnetRequest that = (CreateClouddcnSubnetRequest) 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 CreateClouddcnSubnetRequest {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetRequestBody.java new file mode 100644 index 0000000000..16586c0c45 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetRequestBody.java @@ -0,0 +1,83 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * 创建clouddcn子网对象 + */ +public class CreateClouddcnSubnetRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet") + + private CreateClouddcnSubnetOption clouddcnSubnet; + + public CreateClouddcnSubnetRequestBody withClouddcnSubnet(CreateClouddcnSubnetOption clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + return this; + } + + public CreateClouddcnSubnetRequestBody withClouddcnSubnet( + Consumer clouddcnSubnetSetter) { + if (this.clouddcnSubnet == null) { + this.clouddcnSubnet = new CreateClouddcnSubnetOption(); + clouddcnSubnetSetter.accept(this.clouddcnSubnet); + } + + return this; + } + + /** + * Get clouddcnSubnet + * @return clouddcnSubnet + */ + public CreateClouddcnSubnetOption getClouddcnSubnet() { + return clouddcnSubnet; + } + + public void setClouddcnSubnet(CreateClouddcnSubnetOption clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateClouddcnSubnetRequestBody that = (CreateClouddcnSubnetRequestBody) obj; + return Objects.equals(this.clouddcnSubnet, that.clouddcnSubnet); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateClouddcnSubnetRequestBody {\n"); + sb.append(" clouddcnSubnet: ").append(toIndentedString(clouddcnSubnet)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetResponse.java new file mode 100644 index 0000000000..41afacf359 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateClouddcnSubnetResponse.java @@ -0,0 +1,83 @@ +package com.huaweicloud.sdk.vpc.v3.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 CreateClouddcnSubnetResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet") + + private ClouddcnSubnet clouddcnSubnet; + + public CreateClouddcnSubnetResponse withClouddcnSubnet(ClouddcnSubnet clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + return this; + } + + public CreateClouddcnSubnetResponse withClouddcnSubnet(Consumer clouddcnSubnetSetter) { + if (this.clouddcnSubnet == null) { + this.clouddcnSubnet = new ClouddcnSubnet(); + clouddcnSubnetSetter.accept(this.clouddcnSubnet); + } + + return this; + } + + /** + * Get clouddcnSubnet + * @return clouddcnSubnet + */ + public ClouddcnSubnet getClouddcnSubnet() { + return clouddcnSubnet; + } + + public void setClouddcnSubnet(ClouddcnSubnet clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + CreateClouddcnSubnetResponse that = (CreateClouddcnSubnetResponse) obj; + return Objects.equals(this.clouddcnSubnet, that.clouddcnSubnet); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateClouddcnSubnetResponse {\n"); + sb.append(" clouddcnSubnet: ").append(toIndentedString(clouddcnSubnet)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallOption.java index 62ab93666d..08ea9ecfa4 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallOption.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateFirewallOption.java @@ -3,7 +3,10 @@ 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; /** * @@ -25,6 +28,11 @@ public class CreateFirewallOption { private String enterpriseProjectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "admin_state_up") @@ -81,6 +89,39 @@ public void setEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; } + public CreateFirewallOption withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateFirewallOption addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateFirewallOption withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * 功能描述:ACL资源标签 + * @return tags + */ + public List getTags() { + return tags; + } + + public void setTags(List tags) { + this.tags = tags; + } + public CreateFirewallOption withAdminStateUp(Boolean adminStateUp) { this.adminStateUp = adminStateUp; return this; @@ -109,12 +150,12 @@ public boolean equals(java.lang.Object obj) { CreateFirewallOption that = (CreateFirewallOption) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.adminStateUp, that.adminStateUp); + && Objects.equals(this.tags, that.tags) && Objects.equals(this.adminStateUp, that.adminStateUp); } @Override public int hashCode() { - return Objects.hash(name, description, enterpriseProjectId, adminStateUp); + return Objects.hash(name, description, enterpriseProjectId, tags, adminStateUp); } @Override @@ -124,6 +165,7 @@ public String toString() { 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(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" adminStateUp: ").append(toIndentedString(adminStateUp)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSecurityGroupOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSecurityGroupOption.java index f7dc88536e..ff196b3464 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSecurityGroupOption.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/CreateSecurityGroupOption.java @@ -3,7 +3,10 @@ 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; /** * @@ -25,6 +28,11 @@ public class CreateSecurityGroupOption { private String enterpriseProjectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + public CreateSecurityGroupOption withName(String name) { this.name = name; return this; @@ -76,6 +84,39 @@ public void setEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; } + public CreateSecurityGroupOption withTags(List tags) { + this.tags = tags; + return this; + } + + public CreateSecurityGroupOption addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public CreateSecurityGroupOption 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) { @@ -86,12 +127,13 @@ public boolean equals(java.lang.Object obj) { } CreateSecurityGroupOption that = (CreateSecurityGroupOption) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.tags, that.tags); } @Override public int hashCode() { - return Objects.hash(name, description, enterpriseProjectId); + return Objects.hash(name, description, enterpriseProjectId, tags); } @Override @@ -101,6 +143,7 @@ public String toString() { 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(" 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/DeleteClouddcnSubnetRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetRequest.java new file mode 100644 index 0000000000..a7d34753b9 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteClouddcnSubnetRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet_id") + + private String clouddcnSubnetId; + + public DeleteClouddcnSubnetRequest withClouddcnSubnetId(String clouddcnSubnetId) { + this.clouddcnSubnetId = clouddcnSubnetId; + return this; + } + + /** + * clouddcn子网ID + * @return clouddcnSubnetId + */ + public String getClouddcnSubnetId() { + return clouddcnSubnetId; + } + + public void setClouddcnSubnetId(String clouddcnSubnetId) { + this.clouddcnSubnetId = clouddcnSubnetId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteClouddcnSubnetRequest that = (DeleteClouddcnSubnetRequest) obj; + return Objects.equals(this.clouddcnSubnetId, that.clouddcnSubnetId); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnetId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteClouddcnSubnetRequest {\n"); + sb.append(" clouddcnSubnetId: ").append(toIndentedString(clouddcnSubnetId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetResponse.java new file mode 100644 index 0000000000..3141626f05 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteClouddcnSubnetResponse 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 DeleteClouddcnSubnetResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetsTagRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetsTagRequest.java new file mode 100644 index 0000000000..68115c7452 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetsTagRequest.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class DeleteClouddcnSubnetsTagRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tag_key") + + private String tagKey; + + public DeleteClouddcnSubnetsTagRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Clouddcn子网的id + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public DeleteClouddcnSubnetsTagRequest withTagKey(String tagKey) { + this.tagKey = tagKey; + return this; + } + + /** + * 待删除标签的key + * @return tagKey + */ + public String getTagKey() { + return tagKey; + } + + public void setTagKey(String tagKey) { + this.tagKey = tagKey; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + DeleteClouddcnSubnetsTagRequest that = (DeleteClouddcnSubnetsTagRequest) obj; + return Objects.equals(this.resourceId, that.resourceId) && Objects.equals(this.tagKey, that.tagKey); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId, tagKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteClouddcnSubnetsTagRequest {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" tagKey: ").append(toIndentedString(tagKey)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetsTagResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetsTagResponse.java new file mode 100644 index 0000000000..8f7c1111a6 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/DeleteClouddcnSubnetsTagResponse.java @@ -0,0 +1,36 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.huaweicloud.sdk.core.SdkResponse; + +import java.util.Objects; + +/** + * Response Object + */ +public class DeleteClouddcnSubnetsTagResponse 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 DeleteClouddcnSubnetsTagResponse {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsCountFilterTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsCountFilterTagsRequest.java new file mode 100644 index 0000000000..e7c7952c4b --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsCountFilterTagsRequest.java @@ -0,0 +1,82 @@ +package com.huaweicloud.sdk.vpc.v3.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 ListClouddcnSubnetsCountFilterTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private ListResourcesByTagsRequestBody body; + + public ListClouddcnSubnetsCountFilterTagsRequest withBody(ListResourcesByTagsRequestBody body) { + this.body = body; + return this; + } + + public ListClouddcnSubnetsCountFilterTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ListResourcesByTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ListResourcesByTagsRequestBody getBody() { + return body; + } + + public void setBody(ListResourcesByTagsRequestBody 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; + } + ListClouddcnSubnetsCountFilterTagsRequest that = (ListClouddcnSubnetsCountFilterTagsRequest) 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 ListClouddcnSubnetsCountFilterTagsRequest {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsCountFilterTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsCountFilterTagsResponse.java new file mode 100644 index 0000000000..dcae26792d --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsCountFilterTagsResponse.java @@ -0,0 +1,98 @@ +package com.huaweicloud.sdk.vpc.v3.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 ListClouddcnSubnetsCountFilterTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + public ListClouddcnSubnetsCountFilterTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 本次请求的编号 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ListClouddcnSubnetsCountFilterTagsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 当前列表中资源数量。 + * minimum: 0 + * maximum: 2000 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListClouddcnSubnetsCountFilterTagsResponse that = (ListClouddcnSubnetsCountFilterTagsResponse) obj; + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.totalCount, that.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(requestId, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListClouddcnSubnetsCountFilterTagsResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsFilterTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsFilterTagsRequest.java new file mode 100644 index 0000000000..585c1873f1 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsFilterTagsRequest.java @@ -0,0 +1,129 @@ +package com.huaweicloud.sdk.vpc.v3.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 ListClouddcnSubnetsFilterTagsRequest { + + @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 = "body") + + private ListResourcesByTagsRequestBody body; + + public ListClouddcnSubnetsFilterTagsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页返回的个数 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListClouddcnSubnetsFilterTagsRequest withOffset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * 分页起始点 + * @return offset + */ + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListClouddcnSubnetsFilterTagsRequest withBody(ListResourcesByTagsRequestBody body) { + this.body = body; + return this; + } + + public ListClouddcnSubnetsFilterTagsRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new ListResourcesByTagsRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public ListResourcesByTagsRequestBody getBody() { + return body; + } + + public void setBody(ListResourcesByTagsRequestBody 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; + } + ListClouddcnSubnetsFilterTagsRequest that = (ListClouddcnSubnetsFilterTagsRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset) + && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListClouddcnSubnetsFilterTagsRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsFilterTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsFilterTagsResponse.java new file mode 100644 index 0000000000..95101d467e --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsFilterTagsResponse.java @@ -0,0 +1,141 @@ +package com.huaweicloud.sdk.vpc.v3.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 ListClouddcnSubnetsFilterTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resources") + + private List resources = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + public ListClouddcnSubnetsFilterTagsResponse withResources(List resources) { + this.resources = resources; + return this; + } + + public ListClouddcnSubnetsFilterTagsResponse addResourcesItem(ClouddcnResource resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + this.resources.add(resourcesItem); + return this; + } + + public ListClouddcnSubnetsFilterTagsResponse withResources(Consumer> resourcesSetter) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + resourcesSetter.accept(this.resources); + return this; + } + + /** + * 资源列表 + * @return resources + */ + public List getResources() { + return resources; + } + + public void setResources(List resources) { + this.resources = resources; + } + + public ListClouddcnSubnetsFilterTagsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 当前列表中资源数量。 + * minimum: 0 + * maximum: 2000 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListClouddcnSubnetsFilterTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 本次请求的编号 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListClouddcnSubnetsFilterTagsResponse that = (ListClouddcnSubnetsFilterTagsResponse) obj; + return Objects.equals(this.resources, that.resources) && Objects.equals(this.totalCount, that.totalCount) + && Objects.equals(this.requestId, that.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(resources, totalCount, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListClouddcnSubnetsFilterTagsResponse {\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsRequest.java new file mode 100644 index 0000000000..2e66b3ce25 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsRequest.java @@ -0,0 +1,119 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListClouddcnSubnetsRequest { + + @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 = "vpc_id") + + private String vpcId; + + public ListClouddcnSubnetsRequest withLimit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * 每页返回的个数 + * @return limit + */ + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListClouddcnSubnetsRequest 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 ListClouddcnSubnetsRequest withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * 按照vpc_id过滤查询 企业项目细粒度授权场景下,该字段必传 + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListClouddcnSubnetsRequest that = (ListClouddcnSubnetsRequest) obj; + return Objects.equals(this.limit, that.limit) && Objects.equals(this.marker, that.marker) + && Objects.equals(this.vpcId, that.vpcId); + } + + @Override + public int hashCode() { + return Objects.hash(limit, marker, vpcId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListClouddcnSubnetsRequest {\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" marker: ").append(toIndentedString(marker)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsResponse.java new file mode 100644 index 0000000000..a9fd5c9ab6 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsResponse.java @@ -0,0 +1,92 @@ +package com.huaweicloud.sdk.vpc.v3.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 ListClouddcnSubnetsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnets") + + private List clouddcnSubnets = null; + + public ListClouddcnSubnetsResponse withClouddcnSubnets(List clouddcnSubnets) { + this.clouddcnSubnets = clouddcnSubnets; + return this; + } + + public ListClouddcnSubnetsResponse addClouddcnSubnetsItem(ClouddcnSubnet clouddcnSubnetsItem) { + if (this.clouddcnSubnets == null) { + this.clouddcnSubnets = new ArrayList<>(); + } + this.clouddcnSubnets.add(clouddcnSubnetsItem); + return this; + } + + public ListClouddcnSubnetsResponse withClouddcnSubnets(Consumer> clouddcnSubnetsSetter) { + if (this.clouddcnSubnets == null) { + this.clouddcnSubnets = new ArrayList<>(); + } + clouddcnSubnetsSetter.accept(this.clouddcnSubnets); + return this; + } + + /** + * clouddcn subnet对象列表 + * @return clouddcnSubnets + */ + public List getClouddcnSubnets() { + return clouddcnSubnets; + } + + public void setClouddcnSubnets(List clouddcnSubnets) { + this.clouddcnSubnets = clouddcnSubnets; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ListClouddcnSubnetsResponse that = (ListClouddcnSubnetsResponse) obj; + return Objects.equals(this.clouddcnSubnets, that.clouddcnSubnets); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnets); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListClouddcnSubnetsResponse {\n"); + sb.append(" clouddcnSubnets: ").append(toIndentedString(clouddcnSubnets)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsTagsRequest.java new file mode 100644 index 0000000000..d9b222ccd6 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsTagsRequest.java @@ -0,0 +1,34 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import java.util.Objects; + +/** + * Request Object + */ +public class ListClouddcnSubnetsTagsRequest { + + @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 ListClouddcnSubnetsTagsRequest {\n"); + sb.append("}"); + return sb.toString(); + } + +} diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsTagsResponse.java new file mode 100644 index 0000000000..472ce83412 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListClouddcnSubnetsTagsResponse.java @@ -0,0 +1,141 @@ +package com.huaweicloud.sdk.vpc.v3.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 ListClouddcnSubnetsTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "total_count") + + private Integer totalCount; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public ListClouddcnSubnetsTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 本次请求的编号 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ListClouddcnSubnetsTagsResponse withTotalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * 当前列表中资源数量。 + * minimum: 0 + * maximum: 2000 + * @return totalCount + */ + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListClouddcnSubnetsTagsResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public ListClouddcnSubnetsTagsResponse addTagsItem(ResourceTags tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ListClouddcnSubnetsTagsResponse withTags(Consumer> tagsSetter) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + tagsSetter.accept(this.tags); + return this; + } + + /** + * tag列表信息 + * @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; + } + ListClouddcnSubnetsTagsResponse that = (ListClouddcnSubnetsTagsResponse) obj; + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.totalCount, that.totalCount) + && Objects.equals(this.tags, that.tags); + } + + @Override + public int hashCode() { + return Objects.hash(requestId, totalCount, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListClouddcnSubnetsTagsResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListResourcesByTagsRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListResourcesByTagsRequestBody.java new file mode 100644 index 0000000000..3de9755aa8 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ListResourcesByTagsRequestBody.java @@ -0,0 +1,91 @@ +package com.huaweicloud.sdk.vpc.v3.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; + +/** + * ListResourcesByTagsRequestBody + */ +public class ListResourcesByTagsRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + public ListResourcesByTagsRequestBody withTags(List tags) { + this.tags = tags; + return this; + } + + public ListResourcesByTagsRequestBody addTagsItem(ResourceTags tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ListResourcesByTagsRequestBody 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; + } + ListResourcesByTagsRequestBody that = (ListResourcesByTagsRequestBody) 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 ListResourcesByTagsRequestBody {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ResourceTags.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ResourceTags.java new file mode 100644 index 0000000000..08ac9f5545 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ResourceTags.java @@ -0,0 +1,114 @@ +package com.huaweicloud.sdk.vpc.v3.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 ResourceTags { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "values") + + private List values = null; + + public ResourceTags 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 ResourceTags withValues(List values) { + this.values = values; + return this; + } + + public ResourceTags addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + public ResourceTags withValues(Consumer> valuesSetter) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + valuesSetter.accept(this.values); + return this; + } + + /** + * tag的value列表 + * @return values + */ + public List getValues() { + return values; + } + + public void setValues(List values) { + this.values = values; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ResourceTags that = (ResourceTags) obj; + return Objects.equals(this.key, that.key) && Objects.equals(this.values, that.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, values); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceTags {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroup.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroup.java index be606bb519..0c0c59e3cf 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroup.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroup.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; /** * @@ -46,6 +49,11 @@ public class SecurityGroup { private String enterpriseProjectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + public SecurityGroup withId(String id) { this.id = id; return this; @@ -165,6 +173,39 @@ public void setEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; } + public SecurityGroup withTags(List tags) { + this.tags = tags; + return this; + } + + public SecurityGroup addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public SecurityGroup 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) { @@ -177,12 +218,13 @@ public boolean equals(java.lang.Object obj) { return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name) && Objects.equals(this.description, that.description) && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt) - && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId); + && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) + && Objects.equals(this.tags, that.tags); } @Override public int hashCode() { - return Objects.hash(id, name, description, projectId, createdAt, updatedAt, enterpriseProjectId); + return Objects.hash(id, name, description, projectId, createdAt, updatedAt, enterpriseProjectId, tags); } @Override @@ -196,6 +238,7 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroupInfo.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroupInfo.java index 6b8bcc3c2b..4d7529c012 100644 --- a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroupInfo.java +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SecurityGroupInfo.java @@ -49,6 +49,11 @@ public class SecurityGroupInfo { private String enterpriseProjectId; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "security_group_rules") @@ -173,6 +178,39 @@ public void setEnterpriseProjectId(String enterpriseProjectId) { this.enterpriseProjectId = enterpriseProjectId; } + public SecurityGroupInfo withTags(List tags) { + this.tags = tags; + return this; + } + + public SecurityGroupInfo addTagsItem(ResourceTag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public SecurityGroupInfo 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 SecurityGroupInfo withSecurityGroupRules(List securityGroupRules) { this.securityGroupRules = securityGroupRules; return this; @@ -219,13 +257,20 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.description, that.description) && Objects.equals(this.projectId, that.projectId) && Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt) && Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId) - && Objects.equals(this.securityGroupRules, that.securityGroupRules); + && Objects.equals(this.tags, that.tags) && Objects.equals(this.securityGroupRules, that.securityGroupRules); } @Override public int hashCode() { - return Objects - .hash(id, name, description, projectId, createdAt, updatedAt, enterpriseProjectId, securityGroupRules); + return Objects.hash(id, + name, + description, + projectId, + createdAt, + updatedAt, + enterpriseProjectId, + tags, + securityGroupRules); } @Override @@ -239,6 +284,7 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" securityGroupRules: ").append(toIndentedString(securityGroupRules)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetRequest.java new file mode 100644 index 0000000000..9c2ebb0764 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowClouddcnSubnetRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet_id") + + private String clouddcnSubnetId; + + public ShowClouddcnSubnetRequest withClouddcnSubnetId(String clouddcnSubnetId) { + this.clouddcnSubnetId = clouddcnSubnetId; + return this; + } + + /** + * clouddcn子网ID + * @return clouddcnSubnetId + */ + public String getClouddcnSubnetId() { + return clouddcnSubnetId; + } + + public void setClouddcnSubnetId(String clouddcnSubnetId) { + this.clouddcnSubnetId = clouddcnSubnetId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowClouddcnSubnetRequest that = (ShowClouddcnSubnetRequest) obj; + return Objects.equals(this.clouddcnSubnetId, that.clouddcnSubnetId); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnetId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowClouddcnSubnetRequest {\n"); + sb.append(" clouddcnSubnetId: ").append(toIndentedString(clouddcnSubnetId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetResponse.java new file mode 100644 index 0000000000..d0aaaee78b --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetResponse.java @@ -0,0 +1,83 @@ +package com.huaweicloud.sdk.vpc.v3.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 ShowClouddcnSubnetResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet") + + private ClouddcnSubnet clouddcnSubnet; + + public ShowClouddcnSubnetResponse withClouddcnSubnet(ClouddcnSubnet clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + return this; + } + + public ShowClouddcnSubnetResponse withClouddcnSubnet(Consumer clouddcnSubnetSetter) { + if (this.clouddcnSubnet == null) { + this.clouddcnSubnet = new ClouddcnSubnet(); + clouddcnSubnetSetter.accept(this.clouddcnSubnet); + } + + return this; + } + + /** + * Get clouddcnSubnet + * @return clouddcnSubnet + */ + public ClouddcnSubnet getClouddcnSubnet() { + return clouddcnSubnet; + } + + public void setClouddcnSubnet(ClouddcnSubnet clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowClouddcnSubnetResponse that = (ShowClouddcnSubnetResponse) obj; + return Objects.equals(this.clouddcnSubnet, that.clouddcnSubnet); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowClouddcnSubnetResponse {\n"); + sb.append(" clouddcnSubnet: ").append(toIndentedString(clouddcnSubnet)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetsTagsRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetsTagsRequest.java new file mode 100644 index 0000000000..81cc566ad7 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetsTagsRequest.java @@ -0,0 +1,72 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * Request Object + */ +public class ShowClouddcnSubnetsTagsRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "resource_id") + + private String resourceId; + + public ShowClouddcnSubnetsTagsRequest withResourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Clouddcn子网的id + * @return resourceId + */ + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowClouddcnSubnetsTagsRequest that = (ShowClouddcnSubnetsTagsRequest) obj; + return Objects.equals(this.resourceId, that.resourceId); + } + + @Override + public int hashCode() { + return Objects.hash(resourceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowClouddcnSubnetsTagsRequest {\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetsTagsResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetsTagsResponse.java new file mode 100644 index 0000000000..a90c435f85 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/ShowClouddcnSubnetsTagsResponse.java @@ -0,0 +1,155 @@ +package com.huaweicloud.sdk.vpc.v3.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 ShowClouddcnSubnetsTagsResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "request_id") + + private String requestId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "tags") + + private List tags = null; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "sys_tags") + + private List sysTags = null; + + public ShowClouddcnSubnetsTagsResponse withRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * 本次请求的编号 + * @return requestId + */ + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public ShowClouddcnSubnetsTagsResponse withTags(List tags) { + this.tags = tags; + return this; + } + + public ShowClouddcnSubnetsTagsResponse addTagsItem(TagEntity tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList<>(); + } + this.tags.add(tagsItem); + return this; + } + + public ShowClouddcnSubnetsTagsResponse 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 ShowClouddcnSubnetsTagsResponse withSysTags(List sysTags) { + this.sysTags = sysTags; + return this; + } + + public ShowClouddcnSubnetsTagsResponse addSysTagsItem(SysTag sysTagsItem) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + this.sysTags.add(sysTagsItem); + return this; + } + + public ShowClouddcnSubnetsTagsResponse withSysTags(Consumer> sysTagsSetter) { + if (this.sysTags == null) { + this.sysTags = new ArrayList<>(); + } + sysTagsSetter.accept(this.sysTags); + return this; + } + + /** + * 单个资源的系统标签列表。 + * @return sysTags + */ + public List getSysTags() { + return sysTags; + } + + public void setSysTags(List sysTags) { + this.sysTags = sysTags; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + ShowClouddcnSubnetsTagsResponse that = (ShowClouddcnSubnetsTagsResponse) obj; + return Objects.equals(this.requestId, that.requestId) && Objects.equals(this.tags, that.tags) + && Objects.equals(this.sysTags, that.sysTags); + } + + @Override + public int hashCode() { + return Objects.hash(requestId, tags, sysTags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShowClouddcnSubnetsTagsResponse {\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" sysTags: ").append(toIndentedString(sysTags)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SysTag.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SysTag.java new file mode 100644 index 0000000000..dd94ccb7ef --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/SysTag.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * 资源标签。 + */ +public class SysTag { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private String key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private String value; + + public SysTag 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 SysTag 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; + } + SysTag that = (SysTag) 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 SysTag {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/TagEntity.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/TagEntity.java new file mode 100644 index 0000000000..9a41e64d5f --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/TagEntity.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * tags标签key-value + */ +public class TagEntity { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "key") + + private Object key; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "value") + + private Object value; + + public TagEntity withKey(Object key) { + this.key = key; + return this; + } + + /** + * + * @return key + */ + public Object getKey() { + return key; + } + + public void setKey(Object key) { + this.key = key; + } + + public TagEntity withValue(Object value) { + this.value = value; + return this; + } + + /** + * + * @return value + */ + public Object getValue() { + return value; + } + + public void setValue(Object 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; + } + TagEntity that = (TagEntity) 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 TagEntity {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetOption.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetOption.java new file mode 100644 index 0000000000..1638c65511 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetOption.java @@ -0,0 +1,95 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +/** + * + */ +public class UpdateClouddcnSubnetOption { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "name") + + private String name; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "description") + + private String description; + + public UpdateClouddcnSubnetOption 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 UpdateClouddcnSubnetOption withDescription(String description) { + this.description = description; + return this; + } + + /** + * 功能说明:子网描述 取值范围:0-255个字符,不能包含“<”和“>”。 + * @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; + } + UpdateClouddcnSubnetOption that = (UpdateClouddcnSubnetOption) 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 UpdateClouddcnSubnetOption {\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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetRequest.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetRequest.java new file mode 100644 index 0000000000..815712d0e5 --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetRequest.java @@ -0,0 +1,105 @@ +package com.huaweicloud.sdk.vpc.v3.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 UpdateClouddcnSubnetRequest { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet_id") + + private String clouddcnSubnetId; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "body") + + private UpdateClouddcnSubnetRequestBody body; + + public UpdateClouddcnSubnetRequest withClouddcnSubnetId(String clouddcnSubnetId) { + this.clouddcnSubnetId = clouddcnSubnetId; + return this; + } + + /** + * clouddcn子网ID + * @return clouddcnSubnetId + */ + public String getClouddcnSubnetId() { + return clouddcnSubnetId; + } + + public void setClouddcnSubnetId(String clouddcnSubnetId) { + this.clouddcnSubnetId = clouddcnSubnetId; + } + + public UpdateClouddcnSubnetRequest withBody(UpdateClouddcnSubnetRequestBody body) { + this.body = body; + return this; + } + + public UpdateClouddcnSubnetRequest withBody(Consumer bodySetter) { + if (this.body == null) { + this.body = new UpdateClouddcnSubnetRequestBody(); + bodySetter.accept(this.body); + } + + return this; + } + + /** + * Get body + * @return body + */ + public UpdateClouddcnSubnetRequestBody getBody() { + return body; + } + + public void setBody(UpdateClouddcnSubnetRequestBody 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; + } + UpdateClouddcnSubnetRequest that = (UpdateClouddcnSubnetRequest) obj; + return Objects.equals(this.clouddcnSubnetId, that.clouddcnSubnetId) && Objects.equals(this.body, that.body); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnetId, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateClouddcnSubnetRequest {\n"); + sb.append(" clouddcnSubnetId: ").append(toIndentedString(clouddcnSubnetId)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetRequestBody.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetRequestBody.java new file mode 100644 index 0000000000..c5b9defebe --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetRequestBody.java @@ -0,0 +1,83 @@ +package com.huaweicloud.sdk.vpc.v3.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; +import java.util.function.Consumer; + +/** + * + */ +public class UpdateClouddcnSubnetRequestBody { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet") + + private UpdateClouddcnSubnetOption clouddcnSubnet; + + public UpdateClouddcnSubnetRequestBody withClouddcnSubnet(UpdateClouddcnSubnetOption clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + return this; + } + + public UpdateClouddcnSubnetRequestBody withClouddcnSubnet( + Consumer clouddcnSubnetSetter) { + if (this.clouddcnSubnet == null) { + this.clouddcnSubnet = new UpdateClouddcnSubnetOption(); + clouddcnSubnetSetter.accept(this.clouddcnSubnet); + } + + return this; + } + + /** + * Get clouddcnSubnet + * @return clouddcnSubnet + */ + public UpdateClouddcnSubnetOption getClouddcnSubnet() { + return clouddcnSubnet; + } + + public void setClouddcnSubnet(UpdateClouddcnSubnetOption clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateClouddcnSubnetRequestBody that = (UpdateClouddcnSubnetRequestBody) obj; + return Objects.equals(this.clouddcnSubnet, that.clouddcnSubnet); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateClouddcnSubnetRequestBody {\n"); + sb.append(" clouddcnSubnet: ").append(toIndentedString(clouddcnSubnet)).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/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetResponse.java b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetResponse.java new file mode 100644 index 0000000000..de73e37f4b --- /dev/null +++ b/services/vpc/src/main/java/com/huaweicloud/sdk/vpc/v3/model/UpdateClouddcnSubnetResponse.java @@ -0,0 +1,83 @@ +package com.huaweicloud.sdk.vpc.v3.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 UpdateClouddcnSubnetResponse extends SdkResponse { + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "clouddcn_subnet") + + private ClouddcnSubnet clouddcnSubnet; + + public UpdateClouddcnSubnetResponse withClouddcnSubnet(ClouddcnSubnet clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + return this; + } + + public UpdateClouddcnSubnetResponse withClouddcnSubnet(Consumer clouddcnSubnetSetter) { + if (this.clouddcnSubnet == null) { + this.clouddcnSubnet = new ClouddcnSubnet(); + clouddcnSubnetSetter.accept(this.clouddcnSubnet); + } + + return this; + } + + /** + * Get clouddcnSubnet + * @return clouddcnSubnet + */ + public ClouddcnSubnet getClouddcnSubnet() { + return clouddcnSubnet; + } + + public void setClouddcnSubnet(ClouddcnSubnet clouddcnSubnet) { + this.clouddcnSubnet = clouddcnSubnet; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + UpdateClouddcnSubnetResponse that = (UpdateClouddcnSubnetResponse) obj; + return Objects.equals(this.clouddcnSubnet, that.clouddcnSubnet); + } + + @Override + public int hashCode() { + return Objects.hash(clouddcnSubnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateClouddcnSubnetResponse {\n"); + sb.append(" clouddcnSubnet: ").append(toIndentedString(clouddcnSubnet)).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/vpcep/pom.xml b/services/vpcep/pom.xml index 494db2f16b..343ae8929c 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-vpcep - 3.1.97 + 3.1.98 Huawei Cloud SDK for VPCEP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/vpn/pom.xml b/services/vpn/pom.xml index 27b1331271..008a91959f 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-vpn - 3.1.97 + 3.1.98 Huawei Cloud SDK for VPN 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/waf/pom.xml b/services/waf/pom.xml index 51ebf84500..4f32386452 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-waf - 3.1.97 + 3.1.98 Huawei Cloud SDK for WAF 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CcCondition.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CcCondition.java index f83abd9fc2..9272d7d489 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CcCondition.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CcCondition.java @@ -53,11 +53,6 @@ public static final class CategoryEnum { */ public static final CategoryEnum HEADER = new CategoryEnum("header"); - /** - * Enum RESPONSE_CODE for value: "response_code" - */ - public static final CategoryEnum RESPONSE_CODE = new CategoryEnum("response_code"); - private static final Map STATIC_FIELDS = createStaticFields(); private static Map createStaticFields() { @@ -68,7 +63,6 @@ private static Map createStaticFields() { map.put("params", PARAMS); map.put("cookie", COOKIE); map.put("header", HEADER); - map.put("response_code", RESPONSE_CODE); return Collections.unmodifiableMap(map); } @@ -166,7 +160,7 @@ public CcCondition withLogicOperation(String logicOperation) { } /** - * 条件列表匹配逻辑。 - 如果字段类型category是url, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 contain_any、 not_contain_all、 equal_any、 not_equal_all、 equal_any、 not_equal_all、 prefix_any、 not_prefix_all、 suffix_any、 not_suffix_all、 len_greater、 len_less、len_equal或者len_not_equal - 如果字段类型category是ip或者ipv6,匹配逻辑可以为: equal、not_equal、equal_any或者not_equal_all - 如果字段类型category是response_code,匹配逻辑可以为: equal或者not_equal - 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 contain_any、 not_contain_all、 equal_any、not_equal_all、 equal_any、 not_equal_all、 prefix_any、 not_prefix_all、 suffix_any、 not_suffix_all、 len_greater、 len_less、len_equal、len_not_equal、、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist + * 条件列表匹配逻辑。 - 如果字段类型category是url, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 contain_any、 not_contain_all、 equal_any、 not_equal_all、 equal_any、 not_equal_all、 prefix_any、 not_prefix_all、 suffix_any、 not_suffix_all、 len_greater、 len_less、len_equal或者len_not_equal - 如果字段类型category是ip或者ipv6,匹配逻辑可以为: equal、not_equal、equal_any或者not_equal_all - 如果字段类型category是params、cookie或者header, 匹配逻辑可以为:contain、 not_contain、 equal、 not_equal、 prefix、 not_prefix、 suffix、 not_suffix、 contain_any、 not_contain_all、 equal_any、not_equal_all、 equal_any、 not_equal_all、 prefix_any、 not_prefix_all、 suffix_any、 not_suffix_all、 len_greater、 len_less、len_equal、len_not_equal、、num_greater、num_less、num_equal、num_not_equal、exist或者not_exist * @return logicOperation */ public String getLogicOperation() { diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CompositeHostResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CompositeHostResponse.java index a41fbe5064..de5d4a3943 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CompositeHostResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CompositeHostResponse.java @@ -103,6 +103,11 @@ public class CompositeHostResponse { private String region; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server") + + private List server = null; + public CompositeHostResponse withId(String id) { this.id = id; return this; @@ -451,6 +456,39 @@ public void setRegion(String region) { this.region = region; } + public CompositeHostResponse withServer(List server) { + this.server = server; + return this; + } + + public CompositeHostResponse addServerItem(WafServer serverItem) { + if (this.server == null) { + this.server = new ArrayList<>(); + } + this.server.add(serverItem); + return this; + } + + public CompositeHostResponse withServer(Consumer> serverSetter) { + if (this.server == null) { + this.server = new ArrayList<>(); + } + serverSetter.accept(this.server); + return this; + } + + /** + * 防护域名的源站服务器配置信息,只有独享模式域名才返回vpc_id + * @return server + */ + public List getServer() { + return server; + } + + public void setServer(List server) { + this.server = server; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -470,7 +508,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.webTag, that.webTag) && Objects.equals(this.accessProgress, that.accessProgress) && Objects.equals(this.premiumWafInstances, that.premiumWafInstances) && Objects.equals(this.description, that.description) && Objects.equals(this.exclusiveIp, that.exclusiveIp) - && Objects.equals(this.region, that.region); + && Objects.equals(this.region, that.region) && Objects.equals(this.server, that.server); } @Override @@ -492,7 +530,8 @@ public int hashCode() { premiumWafInstances, description, exclusiveIp, - region); + region, + server); } @Override @@ -517,6 +556,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" exclusiveIp: ").append(toIndentedString(exclusiveIp)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePolicyRequestBody.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePolicyRequestBody.java index e13cb37483..df373f2521 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePolicyRequestBody.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/CreatePolicyRequestBody.java @@ -15,6 +15,11 @@ public class CreatePolicyRequestBody { private String name; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "log_action_replaced") + + private Boolean logActionReplaced; + public CreatePolicyRequestBody withName(String name) { this.name = name; return this; @@ -32,6 +37,23 @@ public void setName(String name) { this.name = name; } + public CreatePolicyRequestBody withLogActionReplaced(Boolean logActionReplaced) { + this.logActionReplaced = logActionReplaced; + return this; + } + + /** + * cc规则和精准防护规则“防护动作”选择“仅记录”时,Web基础防护是否命中策略规则并阻断,默认为true + * @return logActionReplaced + */ + public Boolean getLogActionReplaced() { + return logActionReplaced; + } + + public void setLogActionReplaced(Boolean logActionReplaced) { + this.logActionReplaced = logActionReplaced; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -41,12 +63,12 @@ public boolean equals(java.lang.Object obj) { return false; } CreatePolicyRequestBody that = (CreatePolicyRequestBody) obj; - return Objects.equals(this.name, that.name); + return Objects.equals(this.name, that.name) && Objects.equals(this.logActionReplaced, that.logActionReplaced); } @Override public int hashCode() { - return Objects.hash(name); + return Objects.hash(name, logActionReplaced); } @Override @@ -54,6 +76,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreatePolicyRequestBody {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" logActionReplaced: ").append(toIndentedString(logActionReplaced)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/PolicyAction.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/PolicyAction.java index a181b71a15..ad1072abeb 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/PolicyAction.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/PolicyAction.java @@ -90,6 +90,11 @@ public int hashCode() { private CategoryEnum category; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "followed_action_id") + + private String followedActionId; + public PolicyAction withCategory(CategoryEnum category) { this.category = category; return this; @@ -107,6 +112,23 @@ public void setCategory(CategoryEnum category) { this.category = category; } + public PolicyAction withFollowedActionId(String followedActionId) { + this.followedActionId = followedActionId; + return this; + } + + /** + * 攻击惩罚规则ID + * @return followedActionId + */ + public String getFollowedActionId() { + return followedActionId; + } + + public void setFollowedActionId(String followedActionId) { + this.followedActionId = followedActionId; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -116,12 +138,13 @@ public boolean equals(java.lang.Object obj) { return false; } PolicyAction that = (PolicyAction) obj; - return Objects.equals(this.category, that.category); + return Objects.equals(this.category, that.category) + && Objects.equals(this.followedActionId, that.followedActionId); } @Override public int hashCode() { - return Objects.hash(category); + return Objects.hash(category, followedActionId); } @Override @@ -129,6 +152,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyAction {\n"); sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" followedActionId: ").append(toIndentedString(followedActionId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowCompositeHostResponse.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowCompositeHostResponse.java index 32e356050d..8a697b24c7 100644 --- a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowCompositeHostResponse.java +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/ShowCompositeHostResponse.java @@ -104,6 +104,11 @@ public class ShowCompositeHostResponse extends SdkResponse { private String region; + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "server") + + private List server = null; + public ShowCompositeHostResponse withId(String id) { this.id = id; return this; @@ -452,6 +457,39 @@ public void setRegion(String region) { this.region = region; } + public ShowCompositeHostResponse withServer(List server) { + this.server = server; + return this; + } + + public ShowCompositeHostResponse addServerItem(WafServer serverItem) { + if (this.server == null) { + this.server = new ArrayList<>(); + } + this.server.add(serverItem); + return this; + } + + public ShowCompositeHostResponse withServer(Consumer> serverSetter) { + if (this.server == null) { + this.server = new ArrayList<>(); + } + serverSetter.accept(this.server); + return this; + } + + /** + * 防护域名的源站服务器配置信息,只有独享模式域名才返回vpc_id + * @return server + */ + public List getServer() { + return server; + } + + public void setServer(List server) { + this.server = server; + } + @Override public boolean equals(java.lang.Object obj) { if (this == obj) { @@ -471,7 +509,7 @@ public boolean equals(java.lang.Object obj) { && Objects.equals(this.webTag, that.webTag) && Objects.equals(this.accessProgress, that.accessProgress) && Objects.equals(this.premiumWafInstances, that.premiumWafInstances) && Objects.equals(this.description, that.description) && Objects.equals(this.exclusiveIp, that.exclusiveIp) - && Objects.equals(this.region, that.region); + && Objects.equals(this.region, that.region) && Objects.equals(this.server, that.server); } @Override @@ -493,7 +531,8 @@ public int hashCode() { premiumWafInstances, description, exclusiveIp, - region); + region, + server); } @Override @@ -518,6 +557,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" exclusiveIp: ").append(toIndentedString(exclusiveIp)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/WafServer.java b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/WafServer.java new file mode 100644 index 0000000000..c6cc5cf691 --- /dev/null +++ b/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/WafServer.java @@ -0,0 +1,428 @@ +package com.huaweicloud.sdk.waf.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 WafServer { + + /** + * 客户端请求访问防护域名源站服务器的协议 + */ + public static final class FrontProtocolEnum { + + /** + * Enum HTTP for value: "HTTP" + */ + public static final FrontProtocolEnum HTTP = new FrontProtocolEnum("HTTP"); + + /** + * Enum HTTPS for value: "HTTPS" + */ + public static final FrontProtocolEnum HTTPS = new FrontProtocolEnum("HTTPS"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("HTTP", HTTP); + map.put("HTTPS", HTTPS); + return Collections.unmodifiableMap(map); + } + + private String value; + + FrontProtocolEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FrontProtocolEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new FrontProtocolEnum(value)); + } + + public static FrontProtocolEnum 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 FrontProtocolEnum) { + return this.value.equals(((FrontProtocolEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "front_protocol") + + private FrontProtocolEnum frontProtocol; + + /** + * WAF转发客户端请求到防护域名源站服务器的协议 + */ + public static final class BackProtocolEnum { + + /** + * Enum HTTP for value: "HTTP" + */ + public static final BackProtocolEnum HTTP = new BackProtocolEnum("HTTP"); + + /** + * Enum HTTPS for value: "HTTPS" + */ + public static final BackProtocolEnum HTTPS = new BackProtocolEnum("HTTPS"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("HTTP", HTTP); + map.put("HTTPS", HTTPS); + return Collections.unmodifiableMap(map); + } + + private String value; + + BackProtocolEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BackProtocolEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new BackProtocolEnum(value)); + } + + public static BackProtocolEnum 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 BackProtocolEnum) { + return this.value.equals(((BackProtocolEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "back_protocol") + + private BackProtocolEnum backProtocol; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "weight") + + private Integer weight; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "address") + + private String address; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "port") + + private Integer port; + + /** + * 源站地址为ipv4或ipv6 + */ + public static final class TypeEnum { + + /** + * Enum IPV4 for value: "ipv4" + */ + public static final TypeEnum IPV4 = new TypeEnum("ipv4"); + + /** + * Enum IPV6 for value: "ipv6" + */ + public static final TypeEnum IPV6 = new TypeEnum("ipv6"); + + private static final Map STATIC_FIELDS = createStaticFields(); + + private static Map createStaticFields() { + Map map = new HashMap<>(); + map.put("ipv4", IPV4); + map.put("ipv6", IPV6); + return Collections.unmodifiableMap(map); + } + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + if (value == null) { + return null; + } + return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TypeEnum(value)); + } + + public static TypeEnum 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 TypeEnum) { + return this.value.equals(((TypeEnum) obj).value); + } + return false; + } + + @Override + public int hashCode() { + return this.value.hashCode(); + } + } + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "type") + + private TypeEnum type; + + @JsonInclude(JsonInclude.Include.NON_NULL) + @JsonProperty(value = "vpc_id") + + private String vpcId; + + public WafServer withFrontProtocol(FrontProtocolEnum frontProtocol) { + this.frontProtocol = frontProtocol; + return this; + } + + /** + * 客户端请求访问防护域名源站服务器的协议 + * @return frontProtocol + */ + public FrontProtocolEnum getFrontProtocol() { + return frontProtocol; + } + + public void setFrontProtocol(FrontProtocolEnum frontProtocol) { + this.frontProtocol = frontProtocol; + } + + public WafServer withBackProtocol(BackProtocolEnum backProtocol) { + this.backProtocol = backProtocol; + return this; + } + + /** + * WAF转发客户端请求到防护域名源站服务器的协议 + * @return backProtocol + */ + public BackProtocolEnum getBackProtocol() { + return backProtocol; + } + + public void setBackProtocol(BackProtocolEnum backProtocol) { + this.backProtocol = backProtocol; + } + + public WafServer withWeight(Integer weight) { + this.weight = weight; + return this; + } + + /** + * 源站权重,负载均衡算法将按该权重将请求分配给源站,默认值是1,云模式的冗余字段 + * @return weight + */ + public Integer getWeight() { + return weight; + } + + public void setWeight(Integer weight) { + this.weight = weight; + } + + public WafServer 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 WafServer withPort(Integer port) { + this.port = port; + return this; + } + + /** + * WAF转发客户端请求到源站服务的业务端口 + * @return port + */ + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public WafServer withType(TypeEnum type) { + this.type = type; + return this; + } + + /** + * 源站地址为ipv4或ipv6 + * @return type + */ + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public WafServer withVpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * VPC id,通过以下步骤获取VPC id: - 1.找到独享引擎所在的虚拟私有云名称,VPC\\子网这一列就是VPC的名称:登录WAF的控制台->单击系统管理->独享引擎->VPC\\子网 - 2.登录虚拟私有云 VPC控制台->虚拟私有云->单击虚拟私有云的名称->基本信息的ID + * @return vpcId + */ + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) { + return true; + } + if (obj == null || getClass() != obj.getClass()) { + return false; + } + WafServer that = (WafServer) obj; + return Objects.equals(this.frontProtocol, that.frontProtocol) + && Objects.equals(this.backProtocol, that.backProtocol) && Objects.equals(this.weight, that.weight) + && Objects.equals(this.address, that.address) && Objects.equals(this.port, that.port) + && Objects.equals(this.type, that.type) && Objects.equals(this.vpcId, that.vpcId); + } + + @Override + public int hashCode() { + return Objects.hash(frontProtocol, backProtocol, weight, address, port, type, vpcId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WafServer {\n"); + sb.append(" frontProtocol: ").append(toIndentedString(frontProtocol)).append("\n"); + sb.append(" backProtocol: ").append(toIndentedString(backProtocol)).append("\n"); + sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).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/workspace/pom.xml b/services/workspace/pom.xml index 704756fb0c..df168677e9 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-workspace - 3.1.97 + 3.1.98 Huawei Cloud SDK for WORKSPACE 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98 diff --git a/services/workspaceapp/pom.xml b/services/workspaceapp/pom.xml index 46eeb32fae..339339e8c1 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.97 + 3.1.98 huaweicloud-sdk-services .. huaweicloud-sdk-workspaceapp - 3.1.97 + 3.1.98 Huawei Cloud SDK for WORKSPACEAPP 4.0.0 @@ -17,7 +17,7 @@ com.huaweicloud.sdk huaweicloud-sdk-core - 3.1.97 + 3.1.98