From df6499be5abb84b9b602c5e29fc80d491de6b9b1 Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 17 Oct 2024 15:57:43 +0800 Subject: [PATCH] release 3.1.119 source code --- CHANGELOG.md | 170 ++ CHANGELOG_CN.md | 170 ++ VERSION | 2 +- all/package.json | 190 +- package.json | 2 +- services/bms/v1/model/OsStopBodyType.ts | 3 +- services/cc/v3/CcClient.ts | 6 + .../AttachedEnterpriseRouterAttachmentId.ts | 17 + .../cc/v3/model/AttachedEnterpriseRouterId.ts | 18 + .../AttachedEnterpriseRouterProjectId.ts | 18 + .../model/AttachedEnterpriseRouterRegionId.ts | 18 + .../model/AttachedEnterpriseRouterSiteCode.ts | 18 + .../model/AttachedEnterpriseRouterTableId.ts | 18 + .../CentralNetworkErRouteTableAttachment.ts | 72 +- ...ateCentralNetworkErRouteTableAttachment.ts | 26 +- services/cc/v3/public-api.ts | 6 + services/cdn/v2/CdnClient.ts | 4 +- services/cdn/v2/model/SourcesRequestBody.ts | 22 + services/ces/v2/model/Policies.ts | 3 +- services/csms/v1/CsmsRegion.ts | 6 +- services/dbss/v1/DbssClient.ts | 2133 +++++++++++++---- services/dbss/v1/DbssRegion.ts | 4 +- .../dbss/v1/model/AddAuditAgentRequest.ts | 24 + .../dbss/v1/model/AddAuditAgentResponse.ts | 13 + .../dbss/v1/model/AddAuditDatabaseRequest.ts | 24 + .../dbss/v1/model/AddAuditDatabaseResponse.ts | 13 + .../dbss/v1/model/AddRdsDatabaseRequest.ts | 24 + .../dbss/v1/model/AddRdsDatabaseResponse.ts | 20 + services/dbss/v1/model/AgentSwitchRequest.ts | 15 +- services/dbss/v1/model/AlarmLogRequest.ts | 56 + services/dbss/v1/model/AlarmLogRequestTime.ts | 53 + .../dbss/v1/model/AlarmLogResponseAlarmLog.ts | 87 + services/dbss/v1/model/AuditAgentRequest.ts | 129 + .../v1/model/AuditAgentRespoonseAgents.ts | 135 ++ services/dbss/v1/model/AuditSqlRequest.ts | 144 ++ services/dbss/v1/model/AuditSqlRequestTime.ts | 39 + services/dbss/v1/model/AuditSqlResponseSql.ts | 146 ++ .../AuditSqlResponseSqlOperatedObjInfo.ts | 72 + .../dbss/v1/model/AuditSqlResponseSqls.ts | 13 + .../v1/model/AuditSummaryResponseDataList.ts | 136 ++ .../v1/model/BatchAddResourceTagRequest.ts | 18 +- .../v1/model/BatchDeleteResourceTagRequest.ts | 24 +- .../CountResourceInstanceByTagRequest.ts | 18 +- .../dbss/v1/model/CreateDatabaseRequest.ts | 13 + .../v1/model/CreateDatabaseRequestDatabase.ts | 80 + .../v1/model/CreateInstancePeriodRequest.ts | 15 +- ...CreateInstancePeriodRequestProductInfos.ts | 3 +- services/dbss/v1/model/DataBase.ts | 58 +- .../dbss/v1/model/DeleteAuditAgentRequest.ts | 42 + .../dbss/v1/model/DeleteAuditAgentResponse.ts | 13 + .../v1/model/DeleteAuditDatabaseRequest.ts | 30 + .../v1/model/DeleteAuditDatabaseResponse.ts | 13 + .../v1/model/DeleteInstanceDemandRequest.ts | 34 + .../dbss/v1/model/DeleteInstancesRequest.ts | 12 + .../dbss/v1/model/DeleteInstancesResponse.ts | 13 + .../v1/model/DownloadAuditAgentRequest.ts | 30 + .../v1/model/DownloadAuditAgentResponse.ts | 13 + .../dbss/v1/model/EcsSpecificationBean.ts | 11 + services/dbss/v1/model/JobBean.ts | 14 +- services/dbss/v1/model/KeyValueBean.ts | 3 +- .../dbss/v1/model/ListAuditAgentRequest.ts | 40 + .../dbss/v1/model/ListAuditAgentResponse.ts | 14 + .../dbss/v1/model/ListAuditAlarmLogRequest.ts | 24 + .../v1/model/ListAuditAlarmLogResponse.ts | 31 + .../v1/model/ListAuditRuleRisksRequest.ts | 21 +- .../dbss/v1/model/ListAuditSqlsRequest.ts | 24 + .../dbss/v1/model/ListAuditSqlsResponse.ts | 24 + .../v1/model/ListAuditSummaryInfosRequest.ts | 16 + .../v1/model/ListAuditSummaryInfosResponse.ts | 113 + .../model/ListProjectResourceTagsRequest.ts | 18 +- .../dbss/v1/model/ListRdsDatabasesRequest.ts | 45 + .../dbss/v1/model/ListRdsDatabasesResponse.ts | 25 + .../model/ListResourceInstanceByTagRequest.ts | 18 +- .../dbss/v1/model/OperateLogGetRequest.ts | 37 +- services/dbss/v1/model/OperateLogInfo.ts | 10 +- .../model/ProjectResourceTagResponseTags.ts | 4 +- .../v1/model/RdsDbListResponseDatabases.ts | 88 + services/dbss/v1/model/RdsDbRequest.ts | 13 + .../dbss/v1/model/RdsDbRequestDatabases.ts | 18 + .../dbss/v1/model/RdsDbResponseRetList.ts | 36 + .../v1/model/RebootAuditInstanceRequest.ts | 12 + .../v1/model/RebootAuditInstanceResponse.ts | 13 + .../ResourceInstanceResponseResources.ts | 26 +- .../ResourceInstanceTagRequestMatches.ts | 4 +- .../dbss/v1/model/ResourceTagDeleteRequest.ts | 23 + .../v1/model/ResourceTagDeleteRequestTags.ts | 17 + services/dbss/v1/model/ResourceTagRequest.ts | 14 +- .../dbss/v1/model/ResourceTagRequestTags.ts | 18 + .../dbss/v1/model/RuleRiskResponseRules.ts | 17 +- .../dbss/v1/model/SecurityGroupRequest.ts | 18 +- services/dbss/v1/model/ServerIdBean.ts | 18 + .../dbss/v1/model/ShowAuditQuotaResponse.ts | 27 +- .../v1/model/StartAuditInstanceRequest.ts | 12 + .../v1/model/StartAuditInstanceResponse.ts | 13 + .../dbss/v1/model/StopAuditInstanceRequest.ts | 12 + .../v1/model/StopAuditInstanceResponse.ts | 13 + .../v1/model/SwitchAuditDatabaseRequest.ts | 24 + .../v1/model/SwitchAuditDatabaseResponse.ts | 13 + .../dbss/v1/model/SwitchAuditDbRequest.ts | 38 + services/dbss/v1/model/TimeRangeBean.ts | 24 +- services/dbss/v1/model/UpdateAuditBean.ts | 16 + .../v1/model/UpdateAuditInstanceRequest.ts | 24 + .../v1/model/UpdateAuditInstanceResponse.ts | 13 + services/dbss/v1/public-api.ts | 58 + services/ecs/v2/EcsClient.ts | 58 + .../model/NovaShowFlavorExtraSpecsRequest.ts | 18 + .../model/NovaShowFlavorExtraSpecsResponse.ts | 19 + services/ecs/v2/public-api.ts | 2 + .../v3/GaussDBforopenGaussRegion.ts | 4 +- services/kms/v2/KmsRegion.ts | 6 +- services/kps/v3/KpsRegion.ts | 6 +- 111 files changed, 4969 insertions(+), 756 deletions(-) create mode 100644 services/cc/v3/model/AttachedEnterpriseRouterAttachmentId.ts create mode 100644 services/cc/v3/model/AttachedEnterpriseRouterId.ts create mode 100644 services/cc/v3/model/AttachedEnterpriseRouterProjectId.ts create mode 100644 services/cc/v3/model/AttachedEnterpriseRouterRegionId.ts create mode 100644 services/cc/v3/model/AttachedEnterpriseRouterSiteCode.ts create mode 100644 services/cc/v3/model/AttachedEnterpriseRouterTableId.ts create mode 100644 services/dbss/v1/model/AddAuditAgentRequest.ts create mode 100644 services/dbss/v1/model/AddAuditAgentResponse.ts create mode 100644 services/dbss/v1/model/AddAuditDatabaseRequest.ts create mode 100644 services/dbss/v1/model/AddAuditDatabaseResponse.ts create mode 100644 services/dbss/v1/model/AddRdsDatabaseRequest.ts create mode 100644 services/dbss/v1/model/AddRdsDatabaseResponse.ts create mode 100644 services/dbss/v1/model/AlarmLogRequest.ts create mode 100644 services/dbss/v1/model/AlarmLogRequestTime.ts create mode 100644 services/dbss/v1/model/AlarmLogResponseAlarmLog.ts create mode 100644 services/dbss/v1/model/AuditAgentRequest.ts create mode 100644 services/dbss/v1/model/AuditAgentRespoonseAgents.ts create mode 100644 services/dbss/v1/model/AuditSqlRequest.ts create mode 100644 services/dbss/v1/model/AuditSqlRequestTime.ts create mode 100644 services/dbss/v1/model/AuditSqlResponseSql.ts create mode 100644 services/dbss/v1/model/AuditSqlResponseSqlOperatedObjInfo.ts create mode 100644 services/dbss/v1/model/AuditSqlResponseSqls.ts create mode 100644 services/dbss/v1/model/AuditSummaryResponseDataList.ts create mode 100644 services/dbss/v1/model/CreateDatabaseRequest.ts create mode 100644 services/dbss/v1/model/CreateDatabaseRequestDatabase.ts create mode 100644 services/dbss/v1/model/DeleteAuditAgentRequest.ts create mode 100644 services/dbss/v1/model/DeleteAuditAgentResponse.ts create mode 100644 services/dbss/v1/model/DeleteAuditDatabaseRequest.ts create mode 100644 services/dbss/v1/model/DeleteAuditDatabaseResponse.ts create mode 100644 services/dbss/v1/model/DeleteInstanceDemandRequest.ts create mode 100644 services/dbss/v1/model/DeleteInstancesRequest.ts create mode 100644 services/dbss/v1/model/DeleteInstancesResponse.ts create mode 100644 services/dbss/v1/model/DownloadAuditAgentRequest.ts create mode 100644 services/dbss/v1/model/DownloadAuditAgentResponse.ts create mode 100644 services/dbss/v1/model/ListAuditAgentRequest.ts create mode 100644 services/dbss/v1/model/ListAuditAgentResponse.ts create mode 100644 services/dbss/v1/model/ListAuditAlarmLogRequest.ts create mode 100644 services/dbss/v1/model/ListAuditAlarmLogResponse.ts create mode 100644 services/dbss/v1/model/ListAuditSqlsRequest.ts create mode 100644 services/dbss/v1/model/ListAuditSqlsResponse.ts create mode 100644 services/dbss/v1/model/ListAuditSummaryInfosRequest.ts create mode 100644 services/dbss/v1/model/ListAuditSummaryInfosResponse.ts create mode 100644 services/dbss/v1/model/ListRdsDatabasesRequest.ts create mode 100644 services/dbss/v1/model/ListRdsDatabasesResponse.ts create mode 100644 services/dbss/v1/model/RdsDbListResponseDatabases.ts create mode 100644 services/dbss/v1/model/RdsDbRequest.ts create mode 100644 services/dbss/v1/model/RdsDbRequestDatabases.ts create mode 100644 services/dbss/v1/model/RdsDbResponseRetList.ts create mode 100644 services/dbss/v1/model/RebootAuditInstanceRequest.ts create mode 100644 services/dbss/v1/model/RebootAuditInstanceResponse.ts create mode 100644 services/dbss/v1/model/ResourceTagDeleteRequest.ts create mode 100644 services/dbss/v1/model/ResourceTagDeleteRequestTags.ts create mode 100644 services/dbss/v1/model/ResourceTagRequestTags.ts create mode 100644 services/dbss/v1/model/ServerIdBean.ts create mode 100644 services/dbss/v1/model/StartAuditInstanceRequest.ts create mode 100644 services/dbss/v1/model/StartAuditInstanceResponse.ts create mode 100644 services/dbss/v1/model/StopAuditInstanceRequest.ts create mode 100644 services/dbss/v1/model/StopAuditInstanceResponse.ts create mode 100644 services/dbss/v1/model/SwitchAuditDatabaseRequest.ts create mode 100644 services/dbss/v1/model/SwitchAuditDatabaseResponse.ts create mode 100644 services/dbss/v1/model/SwitchAuditDbRequest.ts create mode 100644 services/dbss/v1/model/UpdateAuditBean.ts create mode 100644 services/dbss/v1/model/UpdateAuditInstanceRequest.ts create mode 100644 services/dbss/v1/model/UpdateAuditInstanceResponse.ts create mode 100644 services/ecs/v2/model/NovaShowFlavorExtraSpecsRequest.ts create mode 100644 services/ecs/v2/model/NovaShowFlavorExtraSpecsResponse.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fee35d53..d7e4d3aad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,173 @@ +# 3.1.119 2024-10-17 + +### HuaweiCloud SDK CC + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListInterRegionBandwidths** + - changes of response param + - `* inter_region_bandwidths.bandwidth: int32 -> int64` + - **CreateInterRegionBandwidth** + - changes of response param + - `* inter_region_bandwidth.bandwidth: int32 -> int64` + - **ShowInterRegionBandwidth** + - changes of response param + - `* inter_region_bandwidth.bandwidth: int32 -> int64` + - **UpdateInterRegionBandwidth** + - changes of response param + - `* inter_region_bandwidth.bandwidth: int32 -> int64` + - **ListCentralNetworks** + - changes of response param + - `+ central_networks.planes.is_full_mesh` + - `+ central_networks.planes.custom_er_connections` + - **CreateCentralNetwork** + - changes of request param + - `+ central_network.policy_document.planes.custom_er_connections` + - changes of response param + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **ShowCentralNetwork** + - changes of response param + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **UpdateCentralNetwork** + - changes of response param + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **DeleteCentralNetwork** + - changes of response param + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **ListCentralNetworksByTags** + - changes of response param + - `+ central_networks.planes.is_full_mesh` + - `+ central_networks.planes.custom_er_connections` + - **ListCentralNetworkPolicies** + - changes of response param + - `+ central_network_policies.document.planes.is_full_mesh` + - `+ central_network_policies.document.planes.custom_er_connections` + - **CreateCentralNetworkPolicy** + - changes of request param + - `+ central_network_policy_document.planes.custom_er_connections` + - changes of response param + - `+ central_network_policy.document.planes.is_full_mesh` + - `+ central_network_policy.document.planes.custom_er_connections` + - **ApplyCentralNetworkPolicy** + - changes of response param + - `+ central_network_policy.document.planes.is_full_mesh` + - `+ central_network_policy.document.planes.custom_er_connections` + +### HuaweiCloud SDK CDN + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateDomain** + - changes of request param + - `+ domain.sources.http_port` + - `+ domain.sources.https_port` + +### HuaweiCloud SDK DBSS + +- _API Version_ + - V1 +- _Features_ + - Support the following APIs: + - `AddAuditDatabase` + - `AddRdsDatabase` + - `ListRdsDatabases` + - `DeleteAuditDatabase` + - `SwitchAuditDatabase` + - `DownloadAuditAgent` + - `DeleteAuditAgent` + - `ListAuditSummaryInfos` + - `StartAuditInstance` + - `StopAuditInstance` + - `RebootAuditInstance` + - `UpdateAuditInstance` + - `ListAuditAlarmLog` + - `ListAuditSqls` + - `ListAuditAgent` + - `AddAuditAgent` + - `DeleteInstances` +- _Bug Fix_ + - None +- _Change_ + - **ShowAuditQuota** + - changes of response param + - `- quota` + - **ListAuditRuleRisks** + - changes of request param + - `+ risk_levels: enum value [LOW,MEDIUM,HIGH,NO_RISK]` + - changes of response param + - `+ rules.rule_type` + - **ListProjectResourceTags** + - changes of request param + - `+ resource_type: enum value [auditInstance]` + - **BatchAddResourceTag** + - changes of request param + - `+ resource_type: enum value [auditInstance]` + - `* tags: list -> list` + - `* sys_tags: list -> list` + - **BatchDeleteResourceTag** + - changes of request param + - `+ resource_type: enum value [auditInstance]` + - `* tags: list -> list` + - `* sys_tags: list -> list` + - `* body: object -> object` + - **UpdateAuditSecurityGroup** + - changes of request param + - `+ instance_id` + - `- resource_id` + - **SwitchAgent** + - changes of request param + - `+ status: enum value [0,1]` + - **ListEcsSpecification** + - changes of response param + - `+ specification.az_type` + - **ListAuditInstanceJobs** + - changes of response param + - `+ jobs.resource_id` + - **ListAuditOperateLogs** + - changes of request param + - `+ action` + - `- operate_name` + - `+ result: enum value [success,fail]` + - `+ time.time_range: enum value [HALF_HOUR, HOUR, THREE_HOUR, TWELVE_HOUR, DAY, WEEK, MONTH]` + - **ListResourceInstanceByTag** + - changes of request param + - `+ resource_type: enum value [auditInstance]` + - **CountResourceInstanceByTag** + - changes of request param + - `+ resource_type: enum value [auditInstance]` + - **ListAuditDatabases** + - changes of response param + - `+ databases.database.rds_audit_switch_mismatch` + - `+ databases.database.rds_id` + - `+ databases.database.rds_obj_info` + - `+ databases.database.dws_obj_info` + - `+ databases.database.clouddb_obj_info` + +### HuaweiCloud SDK ECS + +- _API Version_ + - V2 +- _Features_ + - Support the API `NovaShowFlavorExtraSpecs` +- _Bug Fix_ + - None +- _Change_ + - None + # 3.1.118 2024-10-10 ### HuaweiCloud SDK AAD diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 145d23e07..f65c09890 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,173 @@ +# 3.1.119 2024-10-17 + +### HuaweiCloud SDK CC + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListInterRegionBandwidths** + - 响应参数变更 + - `* inter_region_bandwidths.bandwidth: int32 -> int64` + - **CreateInterRegionBandwidth** + - 响应参数变更 + - `* inter_region_bandwidth.bandwidth: int32 -> int64` + - **ShowInterRegionBandwidth** + - 响应参数变更 + - `* inter_region_bandwidth.bandwidth: int32 -> int64` + - **UpdateInterRegionBandwidth** + - 响应参数变更 + - `* inter_region_bandwidth.bandwidth: int32 -> int64` + - **ListCentralNetworks** + - 响应参数变更 + - `+ central_networks.planes.is_full_mesh` + - `+ central_networks.planes.custom_er_connections` + - **CreateCentralNetwork** + - 请求参数变更 + - `+ central_network.policy_document.planes.custom_er_connections` + - 响应参数变更 + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **ShowCentralNetwork** + - 响应参数变更 + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **UpdateCentralNetwork** + - 响应参数变更 + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **DeleteCentralNetwork** + - 响应参数变更 + - `+ central_network.planes.is_full_mesh` + - `+ central_network.planes.custom_er_connections` + - **ListCentralNetworksByTags** + - 响应参数变更 + - `+ central_networks.planes.is_full_mesh` + - `+ central_networks.planes.custom_er_connections` + - **ListCentralNetworkPolicies** + - 响应参数变更 + - `+ central_network_policies.document.planes.is_full_mesh` + - `+ central_network_policies.document.planes.custom_er_connections` + - **CreateCentralNetworkPolicy** + - 请求参数变更 + - `+ central_network_policy_document.planes.custom_er_connections` + - 响应参数变更 + - `+ central_network_policy.document.planes.is_full_mesh` + - `+ central_network_policy.document.planes.custom_er_connections` + - **ApplyCentralNetworkPolicy** + - 响应参数变更 + - `+ central_network_policy.document.planes.is_full_mesh` + - `+ central_network_policy.document.planes.custom_er_connections` + +### HuaweiCloud SDK CDN + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateDomain** + - 请求参数变更 + - `+ domain.sources.http_port` + - `+ domain.sources.https_port` + +### HuaweiCloud SDK DBSS + +- _接口版本_ + - V1 +- _新增特性_ + - 支持以下接口: + - `AddAuditDatabase` + - `AddRdsDatabase` + - `ListRdsDatabases` + - `DeleteAuditDatabase` + - `SwitchAuditDatabase` + - `DownloadAuditAgent` + - `DeleteAuditAgent` + - `ListAuditSummaryInfos` + - `StartAuditInstance` + - `StopAuditInstance` + - `RebootAuditInstance` + - `UpdateAuditInstance` + - `ListAuditAlarmLog` + - `ListAuditSqls` + - `ListAuditAgent` + - `AddAuditAgent` + - `DeleteInstances` +- _解决问题_ + - 无 +- _特性变更_ + - **ShowAuditQuota** + - 响应参数变更 + - `- quota` + - **ListAuditRuleRisks** + - 请求参数变更 + - `+ risk_levels: enum value [LOW,MEDIUM,HIGH,NO_RISK]` + - 响应参数变更 + - `+ rules.rule_type` + - **ListProjectResourceTags** + - 请求参数变更 + - `+ resource_type: enum value [auditInstance]` + - **BatchAddResourceTag** + - 请求参数变更 + - `+ resource_type: enum value [auditInstance]` + - `* tags: list -> list` + - `* sys_tags: list -> list` + - **BatchDeleteResourceTag** + - 请求参数变更 + - `+ resource_type: enum value [auditInstance]` + - `* tags: list -> list` + - `* sys_tags: list -> list` + - `* body: object -> object` + - **UpdateAuditSecurityGroup** + - 请求参数变更 + - `+ instance_id` + - `- resource_id` + - **SwitchAgent** + - 请求参数变更 + - `+ status: enum value [0,1]` + - **ListEcsSpecification** + - 响应参数变更 + - `+ specification.az_type` + - **ListAuditInstanceJobs** + - 响应参数变更 + - `+ jobs.resource_id` + - **ListAuditOperateLogs** + - 请求参数变更 + - `+ action` + - `- operate_name` + - `+ result: enum value [success,fail]` + - `+ time.time_range: enum value [HALF_HOUR, HOUR, THREE_HOUR, TWELVE_HOUR, DAY, WEEK, MONTH]` + - **ListResourceInstanceByTag** + - 请求参数变更 + - `+ resource_type: enum value [auditInstance]` + - **CountResourceInstanceByTag** + - 请求参数变更 + - `+ resource_type: enum value [auditInstance]` + - **ListAuditDatabases** + - 响应参数变更 + - `+ databases.database.rds_audit_switch_mismatch` + - `+ databases.database.rds_id` + - `+ databases.database.rds_obj_info` + - `+ databases.database.dws_obj_info` + - `+ databases.database.clouddb_obj_info` + +### HuaweiCloud SDK ECS + +- _接口版本_ + - V2 +- _新增特性_ + - 支持接口`NovaShowFlavorExtraSpecs` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + # 3.1.118 2024-10-10 ### HuaweiCloud SDK AAD diff --git a/VERSION b/VERSION index d19308490..f1e87240b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.118 +3.1.119 diff --git a/all/package.json b/all/package.json index bd99c9ba9..f78e6ff92 100644 --- a/all/package.json +++ b/all/package.json @@ -1,106 +1,106 @@ { "name": "@huaweicloud/huaweicloud-sdk-all", - "version": "3.1.118", + "version": "3.1.119", "description": "Huawei Cloud SDK for Node.js includes all cloud services", "repository": { "type": "git", "url": "https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3" }, "dependencies": { - "@huaweicloud/huaweicloud-sdk-aad": "3.1.118", - "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.118", - "@huaweicloud/huaweicloud-sdk-aom": "3.1.118", - "@huaweicloud/huaweicloud-sdk-aos": "3.1.118", - "@huaweicloud/huaweicloud-sdk-apig": "3.1.118", - "@huaweicloud/huaweicloud-sdk-as": "3.1.118", - "@huaweicloud/huaweicloud-sdk-bms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cbh": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cbr": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cc": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cce": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cdm": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cdn": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ces": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cfw": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.118", - "@huaweicloud/huaweicloud-sdk-coc": "3.1.118", - "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.118", - "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.118", - "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.118", - "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.118", - "@huaweicloud/huaweicloud-sdk-config": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cse": "3.1.118", - "@huaweicloud/huaweicloud-sdk-csms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-css": "3.1.118", - "@huaweicloud/huaweicloud-sdk-cts": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dbss": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dc": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dcs": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dds": "3.1.118", - "@huaweicloud/huaweicloud-sdk-devstar": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dli": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dns": "3.1.118", - "@huaweicloud/huaweicloud-sdk-drs": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dsc": "3.1.118", - "@huaweicloud/huaweicloud-sdk-dws": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ecs": "3.1.118", - "@huaweicloud/huaweicloud-sdk-eip": "3.1.118", - "@huaweicloud/huaweicloud-sdk-elb": "3.1.118", - "@huaweicloud/huaweicloud-sdk-eps": "3.1.118", - "@huaweicloud/huaweicloud-sdk-er": "3.1.118", - "@huaweicloud/huaweicloud-sdk-evs": "3.1.118", - "@huaweicloud/huaweicloud-sdk-frs": "3.1.118", - "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ga": "3.1.118", - "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.118", - "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.118", - "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ges": "3.1.118", - "@huaweicloud/huaweicloud-sdk-hss": "3.1.118", - "@huaweicloud/huaweicloud-sdk-iam": "3.1.118", - "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.118", - "@huaweicloud/huaweicloud-sdk-image": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ims": "3.1.118", - "@huaweicloud/huaweicloud-sdk-iotda": "3.1.118", - "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ivs": "3.1.118", - "@huaweicloud/huaweicloud-sdk-kafka": "3.1.118", - "@huaweicloud/huaweicloud-sdk-kms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-kps": "3.1.118", - "@huaweicloud/huaweicloud-sdk-live": "3.1.118", - "@huaweicloud/huaweicloud-sdk-lts": "3.1.118", - "@huaweicloud/huaweicloud-sdk-meeting": "3.1.118", - "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.118", - "@huaweicloud/huaweicloud-sdk-moderation": "3.1.118", - "@huaweicloud/huaweicloud-sdk-mpc": "3.1.118", - "@huaweicloud/huaweicloud-sdk-mrs": "3.1.118", - "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-nat": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ocr": "3.1.118", - "@huaweicloud/huaweicloud-sdk-oms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-organizations": "3.1.118", - "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.118", - "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.118", - "@huaweicloud/huaweicloud-sdk-ram": "3.1.118", - "@huaweicloud/huaweicloud-sdk-rds": "3.1.118", - "@huaweicloud/huaweicloud-sdk-rms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.118", - "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.118", - "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.118", - "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.118", - "@huaweicloud/huaweicloud-sdk-sis": "3.1.118", - "@huaweicloud/huaweicloud-sdk-smn": "3.1.118", - "@huaweicloud/huaweicloud-sdk-sms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-swr": "3.1.118", - "@huaweicloud/huaweicloud-sdk-tics": "3.1.118", - "@huaweicloud/huaweicloud-sdk-tms": "3.1.118", - "@huaweicloud/huaweicloud-sdk-vod": "3.1.118", - "@huaweicloud/huaweicloud-sdk-vpc": "3.1.118", - "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.118", - "@huaweicloud/huaweicloud-sdk-vpn": "3.1.118", - "@huaweicloud/huaweicloud-sdk-waf": "3.1.118" + "@huaweicloud/huaweicloud-sdk-aad": "3.1.119", + "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.119", + "@huaweicloud/huaweicloud-sdk-aom": "3.1.119", + "@huaweicloud/huaweicloud-sdk-aos": "3.1.119", + "@huaweicloud/huaweicloud-sdk-apig": "3.1.119", + "@huaweicloud/huaweicloud-sdk-as": "3.1.119", + "@huaweicloud/huaweicloud-sdk-bms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cbh": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cbr": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cc": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cce": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cdm": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cdn": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ces": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cfw": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.119", + "@huaweicloud/huaweicloud-sdk-coc": "3.1.119", + "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.119", + "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.119", + "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.119", + "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.119", + "@huaweicloud/huaweicloud-sdk-config": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cse": "3.1.119", + "@huaweicloud/huaweicloud-sdk-csms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-css": "3.1.119", + "@huaweicloud/huaweicloud-sdk-cts": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dbss": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dc": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dcs": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dds": "3.1.119", + "@huaweicloud/huaweicloud-sdk-devstar": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dli": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dns": "3.1.119", + "@huaweicloud/huaweicloud-sdk-drs": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dsc": "3.1.119", + "@huaweicloud/huaweicloud-sdk-dws": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ecs": "3.1.119", + "@huaweicloud/huaweicloud-sdk-eip": "3.1.119", + "@huaweicloud/huaweicloud-sdk-elb": "3.1.119", + "@huaweicloud/huaweicloud-sdk-eps": "3.1.119", + "@huaweicloud/huaweicloud-sdk-er": "3.1.119", + "@huaweicloud/huaweicloud-sdk-evs": "3.1.119", + "@huaweicloud/huaweicloud-sdk-frs": "3.1.119", + "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ga": "3.1.119", + "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.119", + "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.119", + "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ges": "3.1.119", + "@huaweicloud/huaweicloud-sdk-hss": "3.1.119", + "@huaweicloud/huaweicloud-sdk-iam": "3.1.119", + "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.119", + "@huaweicloud/huaweicloud-sdk-image": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ims": "3.1.119", + "@huaweicloud/huaweicloud-sdk-iotda": "3.1.119", + "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ivs": "3.1.119", + "@huaweicloud/huaweicloud-sdk-kafka": "3.1.119", + "@huaweicloud/huaweicloud-sdk-kms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-kps": "3.1.119", + "@huaweicloud/huaweicloud-sdk-live": "3.1.119", + "@huaweicloud/huaweicloud-sdk-lts": "3.1.119", + "@huaweicloud/huaweicloud-sdk-meeting": "3.1.119", + "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.119", + "@huaweicloud/huaweicloud-sdk-moderation": "3.1.119", + "@huaweicloud/huaweicloud-sdk-mpc": "3.1.119", + "@huaweicloud/huaweicloud-sdk-mrs": "3.1.119", + "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-nat": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ocr": "3.1.119", + "@huaweicloud/huaweicloud-sdk-oms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-organizations": "3.1.119", + "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.119", + "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.119", + "@huaweicloud/huaweicloud-sdk-ram": "3.1.119", + "@huaweicloud/huaweicloud-sdk-rds": "3.1.119", + "@huaweicloud/huaweicloud-sdk-rms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.119", + "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.119", + "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.119", + "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.119", + "@huaweicloud/huaweicloud-sdk-sis": "3.1.119", + "@huaweicloud/huaweicloud-sdk-smn": "3.1.119", + "@huaweicloud/huaweicloud-sdk-sms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-swr": "3.1.119", + "@huaweicloud/huaweicloud-sdk-tics": "3.1.119", + "@huaweicloud/huaweicloud-sdk-tms": "3.1.119", + "@huaweicloud/huaweicloud-sdk-vod": "3.1.119", + "@huaweicloud/huaweicloud-sdk-vpc": "3.1.119", + "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.119", + "@huaweicloud/huaweicloud-sdk-vpn": "3.1.119", + "@huaweicloud/huaweicloud-sdk-waf": "3.1.119" }, "files": ["package.json"] } diff --git a/package.json b/package.json index 930e2ff8a..668057526 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huaweicloud-sdk-nodejs-v3", - "version": "3.1.118", + "version": "3.1.119", "description": "Core code for Huaweicloud SDK for Node.js", "main": "index.js", "scripts": { diff --git a/services/bms/v1/model/OsStopBodyType.ts b/services/bms/v1/model/OsStopBodyType.ts index 69fc900bc..6f1e269e1 100644 --- a/services/bms/v1/model/OsStopBodyType.ts +++ b/services/bms/v1/model/OsStopBodyType.ts @@ -4,8 +4,7 @@ import { ServersList } from './ServersList'; export class OsStopBodyType { public type?: OsStopBodyTypeTypeEnum | string; public servers?: Array; - public constructor(type?: string, servers?: Array) { - this['type'] = type; + public constructor(servers?: Array) { this['servers'] = servers; } public withType(type: OsStopBodyTypeTypeEnum | string): OsStopBodyType { diff --git a/services/cc/v3/CcClient.ts b/services/cc/v3/CcClient.ts index 0210fffac..c4ac3fcf3 100644 --- a/services/cc/v3/CcClient.ts +++ b/services/cc/v3/CcClient.ts @@ -18,6 +18,12 @@ import { AssociateGlobalConnectionBandwidthInstanceRequestBody } from './model/A import { AssociateGlobalConnectionBandwidthInstanceRequestInfo } from './model/AssociateGlobalConnectionBandwidthInstanceRequestInfo'; import { AssociateGlobalConnectionBandwidthInstanceResponse } from './model/AssociateGlobalConnectionBandwidthInstanceResponse'; import { AssociateGlobalConnectionBandwidthInstanceResponseInfo } from './model/AssociateGlobalConnectionBandwidthInstanceResponseInfo'; +import { AttachedEnterpriseRouterAttachmentId } from './model/AttachedEnterpriseRouterAttachmentId'; +import { AttachedEnterpriseRouterId } from './model/AttachedEnterpriseRouterId'; +import { AttachedEnterpriseRouterProjectId } from './model/AttachedEnterpriseRouterProjectId'; +import { AttachedEnterpriseRouterRegionId } from './model/AttachedEnterpriseRouterRegionId'; +import { AttachedEnterpriseRouterSiteCode } from './model/AttachedEnterpriseRouterSiteCode'; +import { AttachedEnterpriseRouterTableId } from './model/AttachedEnterpriseRouterTableId'; import { AttachmentId } from './model/AttachmentId'; import { AttachmentInstanceId } from './model/AttachmentInstanceId'; import { AttachmentInstanceProjectId } from './model/AttachmentInstanceProjectId'; diff --git a/services/cc/v3/model/AttachedEnterpriseRouterAttachmentId.ts b/services/cc/v3/model/AttachedEnterpriseRouterAttachmentId.ts new file mode 100644 index 000000000..bbc20750a --- /dev/null +++ b/services/cc/v3/model/AttachedEnterpriseRouterAttachmentId.ts @@ -0,0 +1,17 @@ + + +export class AttachedEnterpriseRouterAttachmentId { + private 'attached_er_attachment_id'?: string; + public constructor() { + } + public withAttachedErAttachmentId(attachedErAttachmentId: string): AttachedEnterpriseRouterAttachmentId { + this['attached_er_attachment_id'] = attachedErAttachmentId; + return this; + } + public set attachedErAttachmentId(attachedErAttachmentId: string | undefined) { + this['attached_er_attachment_id'] = attachedErAttachmentId; + } + public get attachedErAttachmentId(): string | undefined { + return this['attached_er_attachment_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachedEnterpriseRouterId.ts b/services/cc/v3/model/AttachedEnterpriseRouterId.ts new file mode 100644 index 000000000..d2cccb87c --- /dev/null +++ b/services/cc/v3/model/AttachedEnterpriseRouterId.ts @@ -0,0 +1,18 @@ + + +export class AttachedEnterpriseRouterId { + private 'attached_er_id'?: string; + public constructor(attachedErId?: string) { + this['attached_er_id'] = attachedErId; + } + public withAttachedErId(attachedErId: string): AttachedEnterpriseRouterId { + this['attached_er_id'] = attachedErId; + return this; + } + public set attachedErId(attachedErId: string | undefined) { + this['attached_er_id'] = attachedErId; + } + public get attachedErId(): string | undefined { + return this['attached_er_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachedEnterpriseRouterProjectId.ts b/services/cc/v3/model/AttachedEnterpriseRouterProjectId.ts new file mode 100644 index 000000000..68c74f604 --- /dev/null +++ b/services/cc/v3/model/AttachedEnterpriseRouterProjectId.ts @@ -0,0 +1,18 @@ + + +export class AttachedEnterpriseRouterProjectId { + private 'attached_er_table_project_id'?: string; + public constructor(attachedErTableProjectId?: string) { + this['attached_er_table_project_id'] = attachedErTableProjectId; + } + public withAttachedErTableProjectId(attachedErTableProjectId: string): AttachedEnterpriseRouterProjectId { + this['attached_er_table_project_id'] = attachedErTableProjectId; + return this; + } + public set attachedErTableProjectId(attachedErTableProjectId: string | undefined) { + this['attached_er_table_project_id'] = attachedErTableProjectId; + } + public get attachedErTableProjectId(): string | undefined { + return this['attached_er_table_project_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachedEnterpriseRouterRegionId.ts b/services/cc/v3/model/AttachedEnterpriseRouterRegionId.ts new file mode 100644 index 000000000..69cd66aa1 --- /dev/null +++ b/services/cc/v3/model/AttachedEnterpriseRouterRegionId.ts @@ -0,0 +1,18 @@ + + +export class AttachedEnterpriseRouterRegionId { + private 'attached_er_table_region_id'?: string; + public constructor(attachedErTableRegionId?: string) { + this['attached_er_table_region_id'] = attachedErTableRegionId; + } + public withAttachedErTableRegionId(attachedErTableRegionId: string): AttachedEnterpriseRouterRegionId { + this['attached_er_table_region_id'] = attachedErTableRegionId; + return this; + } + public set attachedErTableRegionId(attachedErTableRegionId: string | undefined) { + this['attached_er_table_region_id'] = attachedErTableRegionId; + } + public get attachedErTableRegionId(): string | undefined { + return this['attached_er_table_region_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachedEnterpriseRouterSiteCode.ts b/services/cc/v3/model/AttachedEnterpriseRouterSiteCode.ts new file mode 100644 index 000000000..b41599f93 --- /dev/null +++ b/services/cc/v3/model/AttachedEnterpriseRouterSiteCode.ts @@ -0,0 +1,18 @@ + + +export class AttachedEnterpriseRouterSiteCode { + private 'attached_er_table_site_code'?: string; + public constructor(attachedErTableSiteCode?: string) { + this['attached_er_table_site_code'] = attachedErTableSiteCode; + } + public withAttachedErTableSiteCode(attachedErTableSiteCode: string): AttachedEnterpriseRouterSiteCode { + this['attached_er_table_site_code'] = attachedErTableSiteCode; + return this; + } + public set attachedErTableSiteCode(attachedErTableSiteCode: string | undefined) { + this['attached_er_table_site_code'] = attachedErTableSiteCode; + } + public get attachedErTableSiteCode(): string | undefined { + return this['attached_er_table_site_code']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachedEnterpriseRouterTableId.ts b/services/cc/v3/model/AttachedEnterpriseRouterTableId.ts new file mode 100644 index 000000000..69a68f6e4 --- /dev/null +++ b/services/cc/v3/model/AttachedEnterpriseRouterTableId.ts @@ -0,0 +1,18 @@ + + +export class AttachedEnterpriseRouterTableId { + private 'attached_er_table_id'?: string; + public constructor(attachedErTableId?: string) { + this['attached_er_table_id'] = attachedErTableId; + } + public withAttachedErTableId(attachedErTableId: string): AttachedEnterpriseRouterTableId { + this['attached_er_table_id'] = attachedErTableId; + return this; + } + public set attachedErTableId(attachedErTableId: string | undefined) { + this['attached_er_table_id'] = attachedErTableId; + } + public get attachedErTableId(): string | undefined { + return this['attached_er_table_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts b/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts index a7d933183..b09af27b3 100644 --- a/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts +++ b/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts @@ -1,4 +1,10 @@ import { ApprovedStateEnum } from './ApprovedStateEnum'; +import { AttachedEnterpriseRouterAttachmentId } from './AttachedEnterpriseRouterAttachmentId'; +import { AttachedEnterpriseRouterId } from './AttachedEnterpriseRouterId'; +import { AttachedEnterpriseRouterProjectId } from './AttachedEnterpriseRouterProjectId'; +import { AttachedEnterpriseRouterRegionId } from './AttachedEnterpriseRouterRegionId'; +import { AttachedEnterpriseRouterSiteCode } from './AttachedEnterpriseRouterSiteCode'; +import { AttachedEnterpriseRouterTableId } from './AttachedEnterpriseRouterTableId'; import { AutoAssociateRouteEnabled } from './AutoAssociateRouteEnabled'; import { AutoPropagateRouteEnabled } from './AutoPropagateRouteEnabled'; import { BandwidthSize } from './BandwidthSize'; @@ -45,16 +51,16 @@ export class CentralNetworkErRouteTableAttachment { private 'enterprise_router_attachment_id'?: string; private 'enterprise_router_table_id'?: string; private 'enterprise_router_site_code'?: string; - private 'attached_er_table_id'?: string; - private 'attached_er_table_region_id'?: string; private 'attached_er_table_project_id'?: string; - private 'attached_er_table_site_code'?: string; + private 'attached_er_table_region_id'?: string; private 'attached_er_id'?: string; + private 'attached_er_table_id'?: string; private 'attached_er_attachment_id'?: string; + private 'attached_er_table_site_code'?: string; private 'approved_state'?: ApprovedStateEnum; private 'hosted_cloud'?: HostedCloudEnum; public reason?: string; - public constructor(id?: string, name?: string, domainId?: string, state?: CentralNetworkConnectionStateEnum, createdAt?: Date, updatedAt?: Date, centralNetworkId?: string, centralNetworkPlaneId?: string, isFrozen?: boolean, bandwidthType?: BandwidthTypeEnum, enterpriseRouterId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string, enterpriseRouterTableId?: string, enterpriseRouterSiteCode?: string, attachedErTableId?: string, attachedErTableRegionId?: string, attachedErTableProjectId?: string, attachedErTableSiteCode?: string, attachedErId?: string, approvedState?: ApprovedStateEnum) { + public constructor(id?: string, name?: string, domainId?: string, state?: CentralNetworkConnectionStateEnum, createdAt?: Date, updatedAt?: Date, centralNetworkId?: string, centralNetworkPlaneId?: string, isFrozen?: boolean, bandwidthType?: BandwidthTypeEnum, enterpriseRouterId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string, enterpriseRouterTableId?: string, enterpriseRouterSiteCode?: string, attachedErTableProjectId?: string, attachedErTableRegionId?: string, attachedErId?: string, attachedErTableId?: string, attachedErTableSiteCode?: string, approvedState?: ApprovedStateEnum) { this['id'] = id; this['name'] = name; this['domain_id'] = domainId; @@ -70,11 +76,11 @@ export class CentralNetworkErRouteTableAttachment { this['enterprise_router_region_id'] = enterpriseRouterRegionId; this['enterprise_router_table_id'] = enterpriseRouterTableId; this['enterprise_router_site_code'] = enterpriseRouterSiteCode; - this['attached_er_table_id'] = attachedErTableId; - this['attached_er_table_region_id'] = attachedErTableRegionId; this['attached_er_table_project_id'] = attachedErTableProjectId; - this['attached_er_table_site_code'] = attachedErTableSiteCode; + this['attached_er_table_region_id'] = attachedErTableRegionId; this['attached_er_id'] = attachedErId; + this['attached_er_table_id'] = attachedErTableId; + this['attached_er_table_site_code'] = attachedErTableSiteCode; this['approved_state'] = approvedState; } public withId(id: string): CentralNetworkErRouteTableAttachment { @@ -243,26 +249,6 @@ export class CentralNetworkErRouteTableAttachment { public get enterpriseRouterSiteCode(): string | undefined { return this['enterprise_router_site_code']; } - public withAttachedErTableId(attachedErTableId: string): CentralNetworkErRouteTableAttachment { - this['attached_er_table_id'] = attachedErTableId; - return this; - } - public set attachedErTableId(attachedErTableId: string | undefined) { - this['attached_er_table_id'] = attachedErTableId; - } - public get attachedErTableId(): string | undefined { - return this['attached_er_table_id']; - } - public withAttachedErTableRegionId(attachedErTableRegionId: string): CentralNetworkErRouteTableAttachment { - this['attached_er_table_region_id'] = attachedErTableRegionId; - return this; - } - public set attachedErTableRegionId(attachedErTableRegionId: string | undefined) { - this['attached_er_table_region_id'] = attachedErTableRegionId; - } - public get attachedErTableRegionId(): string | undefined { - return this['attached_er_table_region_id']; - } public withAttachedErTableProjectId(attachedErTableProjectId: string): CentralNetworkErRouteTableAttachment { this['attached_er_table_project_id'] = attachedErTableProjectId; return this; @@ -273,15 +259,15 @@ export class CentralNetworkErRouteTableAttachment { public get attachedErTableProjectId(): string | undefined { return this['attached_er_table_project_id']; } - public withAttachedErTableSiteCode(attachedErTableSiteCode: string): CentralNetworkErRouteTableAttachment { - this['attached_er_table_site_code'] = attachedErTableSiteCode; + public withAttachedErTableRegionId(attachedErTableRegionId: string): CentralNetworkErRouteTableAttachment { + this['attached_er_table_region_id'] = attachedErTableRegionId; return this; } - public set attachedErTableSiteCode(attachedErTableSiteCode: string | undefined) { - this['attached_er_table_site_code'] = attachedErTableSiteCode; + public set attachedErTableRegionId(attachedErTableRegionId: string | undefined) { + this['attached_er_table_region_id'] = attachedErTableRegionId; } - public get attachedErTableSiteCode(): string | undefined { - return this['attached_er_table_site_code']; + public get attachedErTableRegionId(): string | undefined { + return this['attached_er_table_region_id']; } public withAttachedErId(attachedErId: string): CentralNetworkErRouteTableAttachment { this['attached_er_id'] = attachedErId; @@ -293,6 +279,16 @@ export class CentralNetworkErRouteTableAttachment { public get attachedErId(): string | undefined { return this['attached_er_id']; } + public withAttachedErTableId(attachedErTableId: string): CentralNetworkErRouteTableAttachment { + this['attached_er_table_id'] = attachedErTableId; + return this; + } + public set attachedErTableId(attachedErTableId: string | undefined) { + this['attached_er_table_id'] = attachedErTableId; + } + public get attachedErTableId(): string | undefined { + return this['attached_er_table_id']; + } public withAttachedErAttachmentId(attachedErAttachmentId: string): CentralNetworkErRouteTableAttachment { this['attached_er_attachment_id'] = attachedErAttachmentId; return this; @@ -303,6 +299,16 @@ export class CentralNetworkErRouteTableAttachment { public get attachedErAttachmentId(): string | undefined { return this['attached_er_attachment_id']; } + public withAttachedErTableSiteCode(attachedErTableSiteCode: string): CentralNetworkErRouteTableAttachment { + this['attached_er_table_site_code'] = attachedErTableSiteCode; + return this; + } + public set attachedErTableSiteCode(attachedErTableSiteCode: string | undefined) { + this['attached_er_table_site_code'] = attachedErTableSiteCode; + } + public get attachedErTableSiteCode(): string | undefined { + return this['attached_er_table_site_code']; + } public withApprovedState(approvedState: ApprovedStateEnum): CentralNetworkErRouteTableAttachment { this['approved_state'] = approvedState; return this; diff --git a/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts b/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts index 91c60be53..afefc0d83 100644 --- a/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts +++ b/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts @@ -1,3 +1,7 @@ +import { AttachedEnterpriseRouterId } from './AttachedEnterpriseRouterId'; +import { AttachedEnterpriseRouterProjectId } from './AttachedEnterpriseRouterProjectId'; +import { AttachedEnterpriseRouterRegionId } from './AttachedEnterpriseRouterRegionId'; +import { AttachedEnterpriseRouterTableId } from './AttachedEnterpriseRouterTableId'; import { AttachmentId } from './AttachmentId'; import { CentralNetworkPlaneId } from './CentralNetworkPlaneId'; import { Description } from './Description'; @@ -5,6 +9,7 @@ import { EnterpriseRouterId } from './EnterpriseRouterId'; import { EnterpriseRouterProjectId } from './EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './EnterpriseRouterRegionId'; import { EnterpriseRouterTableId } from './EnterpriseRouterTableId'; +import { HostedCloudEnum } from './HostedCloudEnum'; import { Name } from './Name'; import { NonRequiredAutoAssociateRouteEnabled } from './NonRequiredAutoAssociateRouteEnabled'; import { NonRequiredAutoPropagateRouteEnabled } from './NonRequiredAutoPropagateRouteEnabled'; @@ -23,8 +28,8 @@ export class CreateCentralNetworkErRouteTableAttachment { private 'attached_er_table_region_id'?: string; private 'attached_er_id'?: string; private 'attached_er_table_id'?: string; - private 'hosted_cloud'?: CreateCentralNetworkErRouteTableAttachmentHostedCloudEnum | string; - public constructor(name?: string, enterpriseRouterId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string, centralNetworkPlaneId?: string, enterpriseRouterTableId?: string, attachedErTableProjectId?: string, attachedErTableRegionId?: string, attachedErId?: string, attachedErTableId?: string, hostedCloud?: string) { + private 'hosted_cloud'?: HostedCloudEnum; + public constructor(name?: string, enterpriseRouterId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string, centralNetworkPlaneId?: string, enterpriseRouterTableId?: string, attachedErTableProjectId?: string, attachedErTableRegionId?: string, attachedErId?: string, attachedErTableId?: string, hostedCloud?: HostedCloudEnum) { this['name'] = name; this['enterprise_router_id'] = enterpriseRouterId; this['enterprise_router_project_id'] = enterpriseRouterProjectId; @@ -145,23 +150,14 @@ export class CreateCentralNetworkErRouteTableAttachment { public get attachedErTableId(): string | undefined { return this['attached_er_table_id']; } - public withHostedCloud(hostedCloud: CreateCentralNetworkErRouteTableAttachmentHostedCloudEnum | string): CreateCentralNetworkErRouteTableAttachment { + public withHostedCloud(hostedCloud: HostedCloudEnum): CreateCentralNetworkErRouteTableAttachment { this['hosted_cloud'] = hostedCloud; return this; } - public set hostedCloud(hostedCloud: CreateCentralNetworkErRouteTableAttachmentHostedCloudEnum | string | undefined) { + public set hostedCloud(hostedCloud: HostedCloudEnum | undefined) { this['hosted_cloud'] = hostedCloud; } - public get hostedCloud(): CreateCentralNetworkErRouteTableAttachmentHostedCloudEnum | string | undefined { + public get hostedCloud(): HostedCloudEnum | undefined { return this['hosted_cloud']; } -} - -/** - * @export - * @enum {string} - */ -export enum CreateCentralNetworkErRouteTableAttachmentHostedCloudEnum { - HWCLOUD = 'HWCloud', - IRELAND = 'Ireland' -} +} \ No newline at end of file diff --git a/services/cc/v3/public-api.ts b/services/cc/v3/public-api.ts index e04b9ef41..1e1eb620c 100644 --- a/services/cc/v3/public-api.ts +++ b/services/cc/v3/public-api.ts @@ -17,6 +17,12 @@ export * from './model/AssociateGlobalConnectionBandwidthInstanceRequestBody'; export * from './model/AssociateGlobalConnectionBandwidthInstanceRequestInfo'; export * from './model/AssociateGlobalConnectionBandwidthInstanceResponse'; export * from './model/AssociateGlobalConnectionBandwidthInstanceResponseInfo'; +export * from './model/AttachedEnterpriseRouterAttachmentId'; +export * from './model/AttachedEnterpriseRouterId'; +export * from './model/AttachedEnterpriseRouterProjectId'; +export * from './model/AttachedEnterpriseRouterRegionId'; +export * from './model/AttachedEnterpriseRouterSiteCode'; +export * from './model/AttachedEnterpriseRouterTableId'; export * from './model/AttachmentId'; export * from './model/AttachmentInstanceId'; export * from './model/AttachmentInstanceProjectId'; diff --git a/services/cdn/v2/CdnClient.ts b/services/cdn/v2/CdnClient.ts index b315da19f..ec7c818cb 100644 --- a/services/cdn/v2/CdnClient.ts +++ b/services/cdn/v2/CdnClient.ts @@ -932,8 +932,8 @@ export class CdnClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询刷新预热URL记录 - * @param {number} [startTime] 起始时间戳(毫秒),默认当天00:00。 - * @param {number} [endTime] 结束时间戳(毫秒),默认次日00:00。 + * @param {number} [startTime] 查询起始时间戳(毫秒),不传默认当天00:00,需与结束时间戳同时指定,时间跨度不能超过24小时。 + * @param {number} [endTime] 查询结束时间戳(毫秒),不传默认次日00:00,需与开始时间戳同时指定,时间跨度不能超过24小时。 * @param {number} [offset] 偏移量:特定数据字段与起始数据字段位置的距离,默认为0。 * @param {number} [limit] 单次查询数据条数,上限为100,默认为10。 * @param {string} [url] 刷新预热url。 diff --git a/services/cdn/v2/model/SourcesRequestBody.ts b/services/cdn/v2/model/SourcesRequestBody.ts index af5e1d832..23bd8072c 100644 --- a/services/cdn/v2/model/SourcesRequestBody.ts +++ b/services/cdn/v2/model/SourcesRequestBody.ts @@ -7,6 +7,8 @@ export class SourcesRequestBody { private 'obs_bucket_type'?: string; private 'active_standby'?: number; private 'enable_obs_web_hosting'?: number; + private 'http_port'?: number; + private 'https_port'?: number; public constructor(ipOrDomain?: string, originType?: string, activeStandby?: number) { this['ip_or_domain'] = ipOrDomain; this['origin_type'] = originType; @@ -72,6 +74,26 @@ export class SourcesRequestBody { public get enableObsWebHosting(): number | undefined { return this['enable_obs_web_hosting']; } + public withHttpPort(httpPort: number): SourcesRequestBody { + this['http_port'] = httpPort; + return this; + } + public set httpPort(httpPort: number | undefined) { + this['http_port'] = httpPort; + } + public get httpPort(): number | undefined { + return this['http_port']; + } + public withHttpsPort(httpsPort: number): SourcesRequestBody { + this['https_port'] = httpsPort; + return this; + } + public set httpsPort(httpsPort: number | undefined) { + this['https_port'] = httpsPort; + } + public get httpsPort(): number | undefined { + return this['https_port']; + } } /** diff --git a/services/ces/v2/model/Policies.ts b/services/ces/v2/model/Policies.ts index 047e31bac..ae0acf5b4 100644 --- a/services/ces/v2/model/Policies.ts +++ b/services/ces/v2/model/Policies.ts @@ -12,13 +12,12 @@ export class Policies { public count?: number; private 'alarm_level'?: number; private 'suppress_duration'?: PoliciesSuppressDurationEnum | number; - public constructor(namespace?: string, metricName?: string, period?: number, filter?: string, comparisonOperator?: string, value?: number, count?: number, suppressDuration?: number) { + public constructor(namespace?: string, metricName?: string, period?: number, filter?: string, comparisonOperator?: string, count?: number, suppressDuration?: number) { this['namespace'] = namespace; this['metric_name'] = metricName; this['period'] = period; this['filter'] = filter; this['comparison_operator'] = comparisonOperator; - this['value'] = value; this['count'] = count; this['suppress_duration'] = suppressDuration; } diff --git a/services/csms/v1/CsmsRegion.ts b/services/csms/v1/CsmsRegion.ts index 0a03afd53..d7895c05d 100644 --- a/services/csms/v1/CsmsRegion.ts +++ b/services/csms/v1/CsmsRegion.ts @@ -28,6 +28,8 @@ export class CsmsRegion { public static AE_AD_1 = new Region("ae-ad-1", ["https://kms.ae-ad-1.myhuaweicloud.com"]); public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://kms.my-kualalumpur-1.myhuaweicloud.com"]); public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://kms.ru-moscow-1.myhuaweicloud.com"]); + public static CN_EAST_5 = new Region("cn-east-5", ["https://kms.cn-east-5.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://kms.cn-east-4.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -52,7 +54,9 @@ export class CsmsRegion { "tr-west-1":CsmsRegion.TR_WEST_1, "ae-ad-1":CsmsRegion.AE_AD_1, "my-kualalumpur-1":CsmsRegion.MY_KUALALUMPUR_1, - "ru-moscow-1":CsmsRegion.RU_MOSCOW_1 + "ru-moscow-1":CsmsRegion.RU_MOSCOW_1, + "cn-east-5":CsmsRegion.CN_EAST_5, + "cn-east-4":CsmsRegion.CN_EAST_4 }; public static valueOf(regionId: string) { diff --git a/services/dbss/v1/DbssClient.ts b/services/dbss/v1/DbssClient.ts index cf98cd25c..ee586dbc3 100644 --- a/services/dbss/v1/DbssClient.ts +++ b/services/dbss/v1/DbssClient.ts @@ -2,10 +2,27 @@ import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient"; import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder"; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; +import { AddAuditAgentRequest } from './model/AddAuditAgentRequest'; +import { AddAuditAgentResponse } from './model/AddAuditAgentResponse'; +import { AddAuditDatabaseRequest } from './model/AddAuditDatabaseRequest'; +import { AddAuditDatabaseResponse } from './model/AddAuditDatabaseResponse'; +import { AddRdsDatabaseRequest } from './model/AddRdsDatabaseRequest'; +import { AddRdsDatabaseResponse } from './model/AddRdsDatabaseResponse'; import { AddRdsNoAgentDatabaseRequest } from './model/AddRdsNoAgentDatabaseRequest'; import { AddRdsNoAgentDatabaseResponse } from './model/AddRdsNoAgentDatabaseResponse'; import { AgentSwitchRequest } from './model/AgentSwitchRequest'; +import { AlarmLogRequest } from './model/AlarmLogRequest'; +import { AlarmLogRequestTime } from './model/AlarmLogRequestTime'; +import { AlarmLogResponseAlarmLog } from './model/AlarmLogResponseAlarmLog'; +import { AuditAgentRequest } from './model/AuditAgentRequest'; +import { AuditAgentRespoonseAgents } from './model/AuditAgentRespoonseAgents'; import { AuditInstanceListBean } from './model/AuditInstanceListBean'; +import { AuditSqlRequest } from './model/AuditSqlRequest'; +import { AuditSqlRequestTime } from './model/AuditSqlRequestTime'; +import { AuditSqlResponseSql } from './model/AuditSqlResponseSql'; +import { AuditSqlResponseSqlOperatedObjInfo } from './model/AuditSqlResponseSqlOperatedObjInfo'; +import { AuditSqlResponseSqls } from './model/AuditSqlResponseSqls'; +import { AuditSummaryResponseDataList } from './model/AuditSummaryResponseDataList'; import { AzInfo } from './model/AzInfo'; import { BatchAddResourceTagRequest } from './model/BatchAddResourceTagRequest'; import { BatchAddResourceTagResponse } from './model/BatchAddResourceTagResponse'; @@ -14,6 +31,8 @@ import { BatchDeleteResourceTagResponse } from './model/BatchDeleteResourceTagRe import { BatchSwitchesRequest } from './model/BatchSwitchesRequest'; import { CountResourceInstanceByTagRequest } from './model/CountResourceInstanceByTagRequest'; import { CountResourceInstanceByTagResponse } from './model/CountResourceInstanceByTagResponse'; +import { CreateDatabaseRequest } from './model/CreateDatabaseRequest'; +import { CreateDatabaseRequestDatabase } from './model/CreateDatabaseRequestDatabase'; import { CreateInstancePeriodRequest } from './model/CreateInstancePeriodRequest'; import { CreateInstancePeriodRequestNics } from './model/CreateInstancePeriodRequestNics'; import { CreateInstancePeriodRequestProductInfos } from './model/CreateInstancePeriodRequestProductInfos'; @@ -22,9 +41,22 @@ import { CreateInstancesPeriodOrderRequest } from './model/CreateInstancesPeriod import { CreateInstancesPeriodOrderResponse } from './model/CreateInstancesPeriodOrderResponse'; import { DataBase } from './model/DataBase'; import { DataBaseBean } from './model/DataBaseBean'; +import { DeleteAuditAgentRequest } from './model/DeleteAuditAgentRequest'; +import { DeleteAuditAgentResponse } from './model/DeleteAuditAgentResponse'; +import { DeleteAuditDatabaseRequest } from './model/DeleteAuditDatabaseRequest'; +import { DeleteAuditDatabaseResponse } from './model/DeleteAuditDatabaseResponse'; +import { DeleteInstanceDemandRequest } from './model/DeleteInstanceDemandRequest'; +import { DeleteInstancesRequest } from './model/DeleteInstancesRequest'; +import { DeleteInstancesResponse } from './model/DeleteInstancesResponse'; +import { DownloadAuditAgentRequest } from './model/DownloadAuditAgentRequest'; +import { DownloadAuditAgentResponse } from './model/DownloadAuditAgentResponse'; import { EcsSpecificationBean } from './model/EcsSpecificationBean'; import { JobBean } from './model/JobBean'; import { KeyValueBean } from './model/KeyValueBean'; +import { ListAuditAgentRequest } from './model/ListAuditAgentRequest'; +import { ListAuditAgentResponse } from './model/ListAuditAgentResponse'; +import { ListAuditAlarmLogRequest } from './model/ListAuditAlarmLogRequest'; +import { ListAuditAlarmLogResponse } from './model/ListAuditAlarmLogResponse'; import { ListAuditDatabasesRequest } from './model/ListAuditDatabasesRequest'; import { ListAuditDatabasesResponse } from './model/ListAuditDatabasesResponse'; import { ListAuditInstanceJobsRequest } from './model/ListAuditInstanceJobsRequest'; @@ -39,12 +71,18 @@ import { ListAuditRuleScopesRequest } from './model/ListAuditRuleScopesRequest'; import { ListAuditRuleScopesResponse } from './model/ListAuditRuleScopesResponse'; import { ListAuditSensitiveMasksRequest } from './model/ListAuditSensitiveMasksRequest'; import { ListAuditSensitiveMasksResponse } from './model/ListAuditSensitiveMasksResponse'; +import { ListAuditSqlsRequest } from './model/ListAuditSqlsRequest'; +import { ListAuditSqlsResponse } from './model/ListAuditSqlsResponse'; +import { ListAuditSummaryInfosRequest } from './model/ListAuditSummaryInfosRequest'; +import { ListAuditSummaryInfosResponse } from './model/ListAuditSummaryInfosResponse'; import { ListAvailabilityZoneInfosRequest } from './model/ListAvailabilityZoneInfosRequest'; import { ListAvailabilityZoneInfosResponse } from './model/ListAvailabilityZoneInfosResponse'; import { ListEcsSpecificationRequest } from './model/ListEcsSpecificationRequest'; import { ListEcsSpecificationResponse } from './model/ListEcsSpecificationResponse'; import { ListProjectResourceTagsRequest } from './model/ListProjectResourceTagsRequest'; import { ListProjectResourceTagsResponse } from './model/ListProjectResourceTagsResponse'; +import { ListRdsDatabasesRequest } from './model/ListRdsDatabasesRequest'; +import { ListRdsDatabasesResponse } from './model/ListRdsDatabasesResponse'; import { ListResourceInstanceByTagRequest } from './model/ListResourceInstanceByTagRequest'; import { ListResourceInstanceByTagResponse } from './model/ListResourceInstanceByTagResponse'; import { ListSqlInjectionRulesRequest } from './model/ListSqlInjectionRulesRequest'; @@ -52,31 +90,51 @@ import { ListSqlInjectionRulesResponse } from './model/ListSqlInjectionRulesResp import { OperateLogGetRequest } from './model/OperateLogGetRequest'; import { OperateLogInfo } from './model/OperateLogInfo'; import { ProjectResourceTagResponseTags } from './model/ProjectResourceTagResponseTags'; +import { RdsDbListResponseDatabases } from './model/RdsDbListResponseDatabases'; +import { RdsDbRequest } from './model/RdsDbRequest'; +import { RdsDbRequestDatabases } from './model/RdsDbRequestDatabases'; +import { RdsDbResponseRetList } from './model/RdsDbResponseRetList'; import { RdsNoAgentDbRequest } from './model/RdsNoAgentDbRequest'; import { RdsNoAgentDbRequestDatabases } from './model/RdsNoAgentDbRequestDatabases'; +import { RebootAuditInstanceRequest } from './model/RebootAuditInstanceRequest'; +import { RebootAuditInstanceResponse } from './model/RebootAuditInstanceResponse'; import { ResourceInstanceResponseResources } from './model/ResourceInstanceResponseResources'; import { ResourceInstanceResponseSysTags } from './model/ResourceInstanceResponseSysTags'; import { ResourceInstanceResponseTags } from './model/ResourceInstanceResponseTags'; import { ResourceInstanceTagRequest } from './model/ResourceInstanceTagRequest'; import { ResourceInstanceTagRequestMatches } from './model/ResourceInstanceTagRequestMatches'; +import { ResourceTagDeleteRequest } from './model/ResourceTagDeleteRequest'; +import { ResourceTagDeleteRequestTags } from './model/ResourceTagDeleteRequestTags'; import { ResourceTagRequest } from './model/ResourceTagRequest'; +import { ResourceTagRequestTags } from './model/ResourceTagRequestTags'; import { RuleRiskInfoBeanSchemas } from './model/RuleRiskInfoBeanSchemas'; import { RuleRiskResponseRules } from './model/RuleRiskResponseRules'; import { RuleScopeInfo } from './model/RuleScopeInfo'; import { SecurityGroupRequest } from './model/SecurityGroupRequest'; import { SensitiveMaskResponseRules } from './model/SensitiveMaskResponseRules'; +import { ServerIdBean } from './model/ServerIdBean'; import { ShowAuditQuotaRequest } from './model/ShowAuditQuotaRequest'; import { ShowAuditQuotaResponse } from './model/ShowAuditQuotaResponse'; import { ShowAuditRuleRiskRequest } from './model/ShowAuditRuleRiskRequest'; import { ShowAuditRuleRiskResponse } from './model/ShowAuditRuleRiskResponse'; import { SqlRuleRequest } from './model/SqlRuleRequest'; import { SqlRuleResponseRules } from './model/SqlRuleResponseRules'; +import { StartAuditInstanceRequest } from './model/StartAuditInstanceRequest'; +import { StartAuditInstanceResponse } from './model/StartAuditInstanceResponse'; +import { StopAuditInstanceRequest } from './model/StopAuditInstanceRequest'; +import { StopAuditInstanceResponse } from './model/StopAuditInstanceResponse'; import { SwitchAgentRequest } from './model/SwitchAgentRequest'; import { SwitchAgentResponse } from './model/SwitchAgentResponse'; +import { SwitchAuditDatabaseRequest } from './model/SwitchAuditDatabaseRequest'; +import { SwitchAuditDatabaseResponse } from './model/SwitchAuditDatabaseResponse'; +import { SwitchAuditDbRequest } from './model/SwitchAuditDbRequest'; import { SwitchRiskRuleRequest } from './model/SwitchRiskRuleRequest'; import { SwitchRiskRuleResponse } from './model/SwitchRiskRuleResponse'; import { TagKeyValuesBean } from './model/TagKeyValuesBean'; import { TimeRangeBean } from './model/TimeRangeBean'; +import { UpdateAuditBean } from './model/UpdateAuditBean'; +import { UpdateAuditInstanceRequest } from './model/UpdateAuditInstanceRequest'; +import { UpdateAuditInstanceResponse } from './model/UpdateAuditInstanceResponse'; import { UpdateAuditSecurityGroupRequest } from './model/UpdateAuditSecurityGroupRequest'; import { UpdateAuditSecurityGroupResponse } from './model/UpdateAuditSecurityGroupResponse'; @@ -96,12 +154,53 @@ export class DbssClient { /** - * 添加RDS免agent数据库 + * 添加自建数据库 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 添加RDS免agent数据库 - * @param {string} instanceId 实例ID + * @summary 添加自建数据库 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {CreateDatabaseRequest} addAuditDatabaseRequestBody 请求body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public addAuditDatabase(addAuditDatabaseRequest?: AddAuditDatabaseRequest): Promise { + const options = ParamCreater().addAuditDatabase(addAuditDatabaseRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 添加RDS数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 添加RDS数据库 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {RdsDbRequest} addRdsDatabaseRequestBody 添加免agent数据库信息 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public addRdsDatabase(addRdsDatabaseRequest?: AddRdsDatabaseRequest): Promise { + const options = ParamCreater().addRdsDatabase(addRdsDatabaseRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 添加RDS数据库。V1版本已不再维护,待下线。 + * 请使用V2版本接口(/v2/{project_id}/{instance_id}/audit/databases/rds)。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 添加RDS数据库(V1待下线) + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 * @param {RdsNoAgentDbRequest} addRdsNoAgentDatabaseRequestBody 添加免agent数据库信息 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -116,19 +215,17 @@ export class DbssClient { } /** - * 批量添加资源标签 + * 包年包月计费模式创建审计实例 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 批量添加资源标签 - * @param {string} resourceType 资源类型。审计:auditInstance - * @param {string} resourceId 资源ID - * @param {ResourceTagRequest} batchAddResourceTagRequestBody 添加Tag请求Body体 + * @summary 包年包月计费模式创建审计实例 + * @param {CreateInstancePeriodRequest} createInstancesPeriodOrderRequestBody 请求body体 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public batchAddResourceTag(batchAddResourceTagRequest?: BatchAddResourceTagRequest): Promise { - const options = ParamCreater().batchAddResourceTag(batchAddResourceTagRequest); + public createInstancesPeriodOrder(createInstancesPeriodOrderRequest?: CreateInstancesPeriodOrderRequest): Promise { + const options = ParamCreater().createInstancesPeriodOrder(createInstancesPeriodOrderRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -137,19 +234,18 @@ export class DbssClient { } /** - * 批量删除资源标签 + * 删除数据库 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 批量删除资源标签 - * @param {string} resourceType 资源类型。审计:auditInstance - * @param {string} resourceId 资源ID - * @param {ResourceTagRequest} batchDeleteResourceTagRequestBody 添加Tag请求Body体 + * @summary 删除数据库 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {string} dbId 数据库ID,可在查询数据库列表接口ID字段获取。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public batchDeleteResourceTag(batchDeleteResourceTagRequest?: BatchDeleteResourceTagRequest): Promise { - const options = ParamCreater().batchDeleteResourceTag(batchDeleteResourceTagRequest); + public deleteAuditDatabase(deleteAuditDatabaseRequest?: DeleteAuditDatabaseRequest): Promise { + const options = ParamCreater().deleteAuditDatabase(deleteAuditDatabaseRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -158,18 +254,17 @@ export class DbssClient { } /** - * 根据标签查询资源实例数量 + * 只有按需计费模式实例没有任务时 或 包周期模式实例状态为故障时,才能执行此操作。 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 根据标签查询资源实例数量 - * @param {string} resourceType 资源类型。审计:auditInstance - * @param {ResourceInstanceTagRequest} countResourceInstanceByTagRequestBody Tag请求Body体 + * @summary 删除审计实例 + * @param {DeleteInstanceDemandRequest} deleteInstancesRequestBody 请求body体 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public countResourceInstanceByTag(countResourceInstanceByTagRequest?: CountResourceInstanceByTagRequest): Promise { - const options = ParamCreater().countResourceInstanceByTag(countResourceInstanceByTagRequest); + public deleteInstances(deleteInstancesRequest?: DeleteInstancesRequest): Promise { + const options = ParamCreater().deleteInstances(deleteInstancesRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -178,17 +273,18 @@ export class DbssClient { } /** - * 包年包月计费模式创建审计实例 + * 查询审计告警信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 包年包月计费模式创建审计实例 - * @param {CreateInstancePeriodRequest} createInstancesPeriodOrderRequestBody 请求body体 + * @summary 查询审计告警信息 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {AlarmLogRequest} listAuditAlarmLogRequestBody 查询告警日志信息Body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public createInstancesPeriodOrder(createInstancesPeriodOrderRequest?: CreateInstancesPeriodOrderRequest): Promise { - const options = ParamCreater().createInstancesPeriodOrder(createInstancesPeriodOrderRequest); + public listAuditAlarmLog(listAuditAlarmLogRequest?: ListAuditAlarmLogRequest): Promise { + const options = ParamCreater().listAuditAlarmLog(listAuditAlarmLogRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -202,10 +298,10 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询数据库列表 - * @param {string} instanceId 实例ID - * @param {string} [status] 实例状态 ON :开启 OFF : 关闭 - * @param {string} [offset] 偏移量 - * @param {string} [limit] 查询记录数 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {string} [status] 实例状态 - ON :开启 - OFF : 关闭 + * @param {string} [offset] 偏移量,从第一条数据偏移offset条数据后开始查询,默认为0。 + * @param {string} [limit] 查询记录数,默认为100。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -224,7 +320,7 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询实例创建任务信息 - * @param {string} resourceId 资源ID + * @param {string} resourceId 资源ID。可在查询实例列表接口的resource_id获取。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -263,7 +359,7 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询用户操作日志信息 - * @param {string} instanceId 实例ID + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 * @param {OperateLogGetRequest} listAuditOperateLogsRequestBody 查询用户操作日志信息Body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -283,9 +379,9 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询风险规则策略 - * @param {string} instanceId 实例ID + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 * @param {string} [name] 风险名称 - * @param {string} [riskLevels] 风险级别[LOW,MEDIUM,HIGH,NO_RISK] + * @param {'LOW' | 'MEDIUM' | 'HIGH' | 'NO_RISK'} [riskLevels] 风险级别 - LOW - MEDIUM - HIGH - NO_RISK * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -304,7 +400,7 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询审计范围策略列表 - * @param {string} instanceId 实例ID + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 * @param {string} [offset] 偏移量 * @param {string} [limit] 查询记录数 * @param {*} [options] Override http request option. @@ -325,7 +421,7 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询隐私数据脱敏规则 - * @param {string} instanceId 实例ID + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 * @param {string} [offset] 偏移量 * @param {string} [limit] 查询记录数 * @param {*} [options] Override http request option. @@ -340,6 +436,46 @@ export class DbssClient { return this.hcClient.sendRequest(options); } + /** + * 查询审计SQL语句 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询审计SQL语句 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {AuditSqlRequest} listAuditSqlsRequestBody 查询告警日志信息Body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listAuditSqls(listAuditSqlsRequest?: ListAuditSqlsRequest): Promise { + const options = ParamCreater().listAuditSqls(listAuditSqlsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询审计汇总信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询审计汇总信息 + * @param {string} [offset] 偏移量 + * @param {string} [limit] 查询记录数 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listAuditSummaryInfos(listAuditSummaryInfosRequest?: ListAuditSummaryInfosRequest): Promise { + const options = ParamCreater().listAuditSummaryInfos(listAuditSummaryInfosRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询可用区信息 * @@ -359,11 +495,11 @@ export class DbssClient { } /** - * 查询ecs服务器规格信息 + * 查询ECS服务器规格信息 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 查询ecs服务器规格信息 + * @summary 查询ECS服务器规格信息 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -377,17 +513,19 @@ export class DbssClient { } /** - * 查询项目标签 + * 查询RDS数据库列表 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 查询项目标签 - * @param {string} resourceType 资源类型。审计:auditInstance + * @summary 查询RDS数据库列表 + * @param {'MYSQL' | 'ORACLE' | 'POSTGRESQL' | 'SQLSERVER' | 'DAMENG' | 'TAURUS' | 'DWS' | 'KINGBASE' | 'MARIADB' | 'GAUSSDBOPENGAUSS'} dbType 数据库类型 - MYSQL - ORACLE - POSTGRESQL - SQLSERVER - DAMENG - TAURUS - DWS - KINGBASE - MARIADB - GAUSSDBOPENGAUSS + * @param {string} [offset] 偏移量,从第一条数据偏移offset条数据后开始查询,默认为0。 + * @param {string} [limit] 查询记录数,默认为100。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public listProjectResourceTags(listProjectResourceTagsRequest?: ListProjectResourceTagsRequest): Promise { - const options = ParamCreater().listProjectResourceTags(listProjectResourceTagsRequest); + public listRdsDatabases(listRdsDatabasesRequest?: ListRdsDatabasesRequest): Promise { + const options = ParamCreater().listRdsDatabases(listRdsDatabasesRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -396,20 +534,18 @@ export class DbssClient { } /** - * 根据标签查询资源实例列表 + * 查询SQL注入规则策略 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 根据标签查询资源实例列表 - * @param {string} resourceType 资源类型。审计:auditInstance - * @param {ResourceInstanceTagRequest} listResourceInstanceByTagRequestBody Tag请求Body体 - * @param {string} [limit] 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1 - * @param {string} [offset] 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询,如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数 + * @summary 查询SQL注入规则策略 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {SqlRuleRequest} listSqlInjectionRulesRequestBody sql风险级别 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public listResourceInstanceByTag(listResourceInstanceByTagRequest?: ListResourceInstanceByTagRequest): Promise { - const options = ParamCreater().listResourceInstanceByTag(listResourceInstanceByTagRequest); + public listSqlInjectionRules(listSqlInjectionRulesRequest?: ListSqlInjectionRulesRequest): Promise { + const options = ParamCreater().listSqlInjectionRules(listSqlInjectionRulesRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -418,18 +554,17 @@ export class DbssClient { } /** - * 查询SQL注入规则策略 + * 重启审计实例 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 查询SQL注入规则策略 - * @param {string} instanceId 实例ID - * @param {SqlRuleRequest} listSqlInjectionRulesRequestBody sql风险级别 + * @summary 重启审计实例 + * @param {ServerIdBean} rebootAuditInstanceRequestBody 请求body体 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public listSqlInjectionRules(listSqlInjectionRulesRequest?: ListSqlInjectionRulesRequest): Promise { - const options = ParamCreater().listSqlInjectionRules(listSqlInjectionRulesRequest); + public rebootAuditInstance(rebootAuditInstanceRequest?: RebootAuditInstanceRequest): Promise { + const options = ParamCreater().rebootAuditInstance(rebootAuditInstanceRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -461,8 +596,8 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询指定风险规则策略 - * @param {string} instanceId 实例ID - * @param {string} riskId 风险规则ID + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {string} riskId 风险规则ID。可在查询风险规则策略接口的ID字段获取。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -476,18 +611,56 @@ export class DbssClient { } /** - * 用于开启和关闭agent的功能,当开启后,开始抓取用户的访问信息。 + * 开启审计实例 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 开启关闭Agent - * @param {string} instanceId 实例ID - * @param {AgentSwitchRequest} switchAgentRequestBody body + * @summary 开启审计实例 + * @param {ServerIdBean} startAuditInstanceRequestBody 请求body体 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public switchAgent(switchAgentRequest?: SwitchAgentRequest): Promise { - const options = ParamCreater().switchAgent(switchAgentRequest); + public startAuditInstance(startAuditInstanceRequest?: StartAuditInstanceRequest): Promise { + const options = ParamCreater().startAuditInstance(startAuditInstanceRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 关闭审计实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 关闭审计实例 + * @param {ServerIdBean} stopAuditInstanceRequestBody 请求body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public stopAuditInstance(stopAuditInstanceRequest?: StopAuditInstanceRequest): Promise { + const options = ParamCreater().stopAuditInstance(stopAuditInstanceRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 开启关闭数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 开启关闭数据库 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {SwitchAuditDbRequest} switchAuditDatabaseRequestBody 请求body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public switchAuditDatabase(switchAuditDatabaseRequest?: SwitchAuditDatabaseRequest): Promise { + const options = ParamCreater().switchAuditDatabase(switchAuditDatabaseRequest); // @ts-ignore options['responseHeaders'] = ['']; @@ -501,7 +674,7 @@ export class DbssClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 开启关闭风险规则 - * @param {string} instanceId 实例ID + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 * @param {BatchSwitchesRequest} switchRiskRuleRequestBody body * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -516,11 +689,31 @@ export class DbssClient { } /** - * 修改安全组 + * 更新审计实例信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 更新审计实例信息 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {UpdateAuditBean} updateAuditInstanceRequestBody 请求body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateAuditInstance(updateAuditInstanceRequest?: UpdateAuditInstanceRequest): Promise { + const options = ParamCreater().updateAuditInstance(updateAuditInstanceRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 修改实例安全组 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 修改安全组 + * @summary 修改实例安全组 * @param {SecurityGroupRequest} updateAuditSecurityGroupRequestBody 请求body体 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -533,98 +726,251 @@ export class DbssClient { return this.hcClient.sendRequest(options); } -} -export const ParamCreater = function () { - return { - - /** - * 添加RDS免agent数据库 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - addRdsNoAgentDatabase(addRdsNoAgentDatabaseRequest?: AddRdsNoAgentDatabaseRequest) { - const options = { - method: "POST", - url: "/v1/{project_id}/{instance_id}/dbss/audit/databases/rds", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; + /** + * 添加审计数据库Agent + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 添加审计数据库Agent + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {AuditAgentRequest} addAuditAgentRequestBody 请求body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public addAuditAgent(addAuditAgentRequest?: AddAuditAgentRequest): Promise { + const options = ParamCreater().addAuditAgent(addAuditAgentRequest); - let body: any; - - let instanceId; + // @ts-ignore + options['responseHeaders'] = ['']; - if (addRdsNoAgentDatabaseRequest !== null && addRdsNoAgentDatabaseRequest !== undefined) { - if (addRdsNoAgentDatabaseRequest instanceof AddRdsNoAgentDatabaseRequest) { - instanceId = addRdsNoAgentDatabaseRequest.instanceId; - body = addRdsNoAgentDatabaseRequest.body - } else { - instanceId = addRdsNoAgentDatabaseRequest['instance_id']; - body = addRdsNoAgentDatabaseRequest['body']; - } - } + return this.hcClient.sendRequest(options); + } - - if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling addRdsNoAgentDatabase.'); - } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + /** + * 删除数据库Agent + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除数据库Agent + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {string} agentId agent ID。可在查询数据库agent列表接口ID字段获取。 + * @param {string} dbId 数据库ID, 可在查询数据库列表接口ID字段获取。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteAuditAgent(deleteAuditAgentRequest?: DeleteAuditAgentRequest): Promise { + const options = ParamCreater().deleteAuditAgent(deleteAuditAgentRequest); - options.data = body !== undefined ? body : {}; - options.pathParams = { 'instance_id': instanceId, }; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 批量添加资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - batchAddResourceTag(batchAddResourceTagRequest?: BatchAddResourceTagRequest) { - const options = { - method: "POST", - url: "/v1/{project_id}/{resource_type}/{resource_id}/tags/create", - contentType: "application/json;charset=UTF-8", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; + // @ts-ignore + options['responseHeaders'] = ['']; - let body: any; - - let resourceType; - - let resourceId; + return this.hcClient.sendRequest(options); + } - if (batchAddResourceTagRequest !== null && batchAddResourceTagRequest !== undefined) { - if (batchAddResourceTagRequest instanceof BatchAddResourceTagRequest) { - resourceType = batchAddResourceTagRequest.resourceType; - resourceId = batchAddResourceTagRequest.resourceId; - body = batchAddResourceTagRequest.body - } else { - resourceType = batchAddResourceTagRequest['resource_type']; - resourceId = batchAddResourceTagRequest['resource_id']; - body = batchAddResourceTagRequest['body']; - } - } + /** + * 下载审计Agent + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 下载审计Agent + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {string} agentId agent ID。可在查询数据库agent列表接口ID字段获取。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public downloadAuditAgent(downloadAuditAgentRequest?: DownloadAuditAgentRequest): Promise { + const options = ParamCreater().downloadAuditAgent(downloadAuditAgentRequest); - - if (resourceType === null || resourceType === undefined) { - throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling batchAddResourceTag.'); + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询数据库Agent列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询数据库Agent列表 + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {string} dbId 数据库ID,可在查询数据库列表接口ID字段获取。 + * @param {string} [offset] 偏移量 + * @param {string} [limit] 查询记录数 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listAuditAgent(listAuditAgentRequest?: ListAuditAgentRequest): Promise { + const options = ParamCreater().listAuditAgent(listAuditAgentRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 用于开启和关闭Agent审计的功能,当开启后,开始抓取用户的访问信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 开启关闭Agent + * @param {string} instanceId 实例ID。可在查询实例列表接口的ID字段获取。 + * @param {AgentSwitchRequest} switchAgentRequestBody body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public switchAgent(switchAgentRequest?: SwitchAgentRequest): Promise { + const options = ParamCreater().switchAgent(switchAgentRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 批量添加资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 批量添加资源标签 + * @param {'auditInstance'} resourceType 资源类型。 - auditInstance + * @param {string} resourceId 资源ID。可在查询实例列表接口的resource_id字段获取。 + * @param {ResourceTagRequest} batchAddResourceTagRequestBody 添加Tag请求Body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public batchAddResourceTag(batchAddResourceTagRequest?: BatchAddResourceTagRequest): Promise { + const options = ParamCreater().batchAddResourceTag(batchAddResourceTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 批量删除资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 批量删除资源标签 + * @param {'auditInstance'} resourceType 资源类型。 - auditInstance + * @param {string} resourceId 资源ID。可在查询实例列表接口的resource_id字段获取。 + * @param {ResourceTagDeleteRequest} batchDeleteResourceTagRequestBody 添加Tag请求Body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public batchDeleteResourceTag(batchDeleteResourceTagRequest?: BatchDeleteResourceTagRequest): Promise { + const options = ParamCreater().batchDeleteResourceTag(batchDeleteResourceTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 根据标签查询资源实例数量 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 根据标签查询资源实例数量 + * @param {'auditInstance'} resourceType 资源类型。 - auditInstance + * @param {ResourceInstanceTagRequest} countResourceInstanceByTagRequestBody Tag请求Body体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public countResourceInstanceByTag(countResourceInstanceByTagRequest?: CountResourceInstanceByTagRequest): Promise { + const options = ParamCreater().countResourceInstanceByTag(countResourceInstanceByTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询项目标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询项目标签 + * @param {'auditInstance'} resourceType 资源类型。 - auditInstance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listProjectResourceTags(listProjectResourceTagsRequest?: ListProjectResourceTagsRequest): Promise { + const options = ParamCreater().listProjectResourceTags(listProjectResourceTagsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 根据标签查询资源实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 根据标签查询资源实例列表 + * @param {'auditInstance'} resourceType 资源类型。 - auditInstance + * @param {ResourceInstanceTagRequest} listResourceInstanceByTagRequestBody Tag请求Body体 + * @param {string} [limit] 查询记录数(action为count时无此参数)如果action为filter默认为1000,limit最多为1000,不能为负数,最小值为1。 + * @param {string} [offset] 索引位置,偏移量(action为count时无此参数)从第一条数据偏移offset条数据后开始查询,如果action为filter默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listResourceInstanceByTag(listResourceInstanceByTagRequest?: ListResourceInstanceByTagRequest): Promise { + const options = ParamCreater().listResourceInstanceByTag(listResourceInstanceByTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } +} + +export const ParamCreater = function () { + return { + + /** + * 添加自建数据库 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + addAuditDatabase(addAuditDatabaseRequest?: AddAuditDatabaseRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/{instance_id}/audit/databases", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (addAuditDatabaseRequest !== null && addAuditDatabaseRequest !== undefined) { + if (addAuditDatabaseRequest instanceof AddAuditDatabaseRequest) { + instanceId = addAuditDatabaseRequest.instanceId; + body = addAuditDatabaseRequest.body + } else { + instanceId = addAuditDatabaseRequest['instance_id']; + body = addAuditDatabaseRequest['body']; + } } - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchAddResourceTag.'); + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling addAuditDatabase.'); } if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); @@ -632,20 +978,20 @@ export const ParamCreater = function () { localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; options.data = body !== undefined ? body : {}; - options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId, }; + options.pathParams = { 'instance_id': instanceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 批量删除资源标签 + * 添加RDS数据库 * * Please refer to HUAWEI cloud API Explorer for details. */ - batchDeleteResourceTag(batchDeleteResourceTagRequest?: BatchDeleteResourceTagRequest) { + addRdsDatabase(addRdsDatabaseRequest?: AddRdsDatabaseRequest) { const options = { - method: "DELETE", - url: "/v1/{project_id}/{resource_type}/{resource_id}/tags/delete", + method: "POST", + url: "/v2/{project_id}/{instance_id}/audit/databases/rds", contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, @@ -656,28 +1002,21 @@ export const ParamCreater = function () { let body: any; - let resourceType; - - let resourceId; + let instanceId; - if (batchDeleteResourceTagRequest !== null && batchDeleteResourceTagRequest !== undefined) { - if (batchDeleteResourceTagRequest instanceof BatchDeleteResourceTagRequest) { - resourceType = batchDeleteResourceTagRequest.resourceType; - resourceId = batchDeleteResourceTagRequest.resourceId; - body = batchDeleteResourceTagRequest.body + if (addRdsDatabaseRequest !== null && addRdsDatabaseRequest !== undefined) { + if (addRdsDatabaseRequest instanceof AddRdsDatabaseRequest) { + instanceId = addRdsDatabaseRequest.instanceId; + body = addRdsDatabaseRequest.body } else { - resourceType = batchDeleteResourceTagRequest['resource_type']; - resourceId = batchDeleteResourceTagRequest['resource_id']; - body = batchDeleteResourceTagRequest['body']; + instanceId = addRdsDatabaseRequest['instance_id']; + body = addRdsDatabaseRequest['body']; } } - if (resourceType === null || resourceType === undefined) { - throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling batchDeleteResourceTag.'); - } - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchDeleteResourceTag.'); + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling addRdsDatabase.'); } if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); @@ -685,20 +1024,21 @@ export const ParamCreater = function () { localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; options.data = body !== undefined ? body : {}; - options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId, }; + options.pathParams = { 'instance_id': instanceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 根据标签查询资源实例数量 + * 添加RDS数据库。V1版本已不再维护,待下线。 + * 请使用V2版本接口(/v2/{project_id}/{instance_id}/audit/databases/rds)。 * * Please refer to HUAWEI cloud API Explorer for details. */ - countResourceInstanceByTag(countResourceInstanceByTagRequest?: CountResourceInstanceByTagRequest) { + addRdsNoAgentDatabase(addRdsNoAgentDatabaseRequest?: AddRdsNoAgentDatabaseRequest) { const options = { method: "POST", - url: "/v1/{project_id}/{resource_type}/resource-instances/count", + url: "/v1/{project_id}/{instance_id}/dbss/audit/databases/rds", contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, @@ -709,21 +1049,21 @@ export const ParamCreater = function () { let body: any; - let resourceType; + let instanceId; - if (countResourceInstanceByTagRequest !== null && countResourceInstanceByTagRequest !== undefined) { - if (countResourceInstanceByTagRequest instanceof CountResourceInstanceByTagRequest) { - resourceType = countResourceInstanceByTagRequest.resourceType; - body = countResourceInstanceByTagRequest.body + if (addRdsNoAgentDatabaseRequest !== null && addRdsNoAgentDatabaseRequest !== undefined) { + if (addRdsNoAgentDatabaseRequest instanceof AddRdsNoAgentDatabaseRequest) { + instanceId = addRdsNoAgentDatabaseRequest.instanceId; + body = addRdsNoAgentDatabaseRequest.body } else { - resourceType = countResourceInstanceByTagRequest['resource_type']; - body = countResourceInstanceByTagRequest['body']; + instanceId = addRdsNoAgentDatabaseRequest['instance_id']; + body = addRdsNoAgentDatabaseRequest['body']; } } - if (resourceType === null || resourceType === undefined) { - throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling countResourceInstanceByTag.'); + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling addRdsNoAgentDatabase.'); } if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); @@ -731,7 +1071,7 @@ export const ParamCreater = function () { localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; options.data = body !== undefined ? body : {}; - options.pathParams = { 'resource_type': resourceType, }; + options.pathParams = { 'instance_id': instanceId, }; options.headers = localVarHeaderParameter; return options; }, @@ -775,154 +1115,895 @@ export const ParamCreater = function () { }, /** - * 查询数据库列表 + * 删除数据库 * * Please refer to HUAWEI cloud API Explorer for details. */ - listAuditDatabases(listAuditDatabasesRequest?: ListAuditDatabasesRequest) { + deleteAuditDatabase(deleteAuditDatabaseRequest?: DeleteAuditDatabaseRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/{instance_id}/dbss/audit/databases", + method: "DELETE", + url: "/v2/{project_id}/{instance_id}/audit/databases/{db_id}", contentType: "application/json", queryParams: {}, pathParams: {}, headers: {} }; const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + let instanceId; - let status; - - let offset; - - let limit; + let dbId; - if (listAuditDatabasesRequest !== null && listAuditDatabasesRequest !== undefined) { - if (listAuditDatabasesRequest instanceof ListAuditDatabasesRequest) { - instanceId = listAuditDatabasesRequest.instanceId; - status = listAuditDatabasesRequest.status; - offset = listAuditDatabasesRequest.offset; - limit = listAuditDatabasesRequest.limit; + if (deleteAuditDatabaseRequest !== null && deleteAuditDatabaseRequest !== undefined) { + if (deleteAuditDatabaseRequest instanceof DeleteAuditDatabaseRequest) { + instanceId = deleteAuditDatabaseRequest.instanceId; + dbId = deleteAuditDatabaseRequest.dbId; } else { - instanceId = listAuditDatabasesRequest['instance_id']; - status = listAuditDatabasesRequest['status']; - offset = listAuditDatabasesRequest['offset']; - limit = listAuditDatabasesRequest['limit']; + instanceId = deleteAuditDatabaseRequest['instance_id']; + dbId = deleteAuditDatabaseRequest['db_id']; } } if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditDatabases.'); - } - if (status !== null && status !== undefined) { - localVarQueryParameter['status'] = status; + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling deleteAuditDatabase.'); } - if (offset !== null && offset !== undefined) { - localVarQueryParameter['offset'] = offset; + if (dbId === null || dbId === undefined) { + throw new RequiredError('dbId','Required parameter dbId was null or undefined when calling deleteAuditDatabase.'); } - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; + + options.pathParams = { 'instance_id': instanceId,'db_id': dbId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 只有按需计费模式实例没有任务时 或 包周期模式实例状态为故障时,才能执行此操作。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteInstances(deleteInstancesRequest?: DeleteInstancesRequest) { + const options = { + method: "DELETE", + url: "/v1/{project_id}/dbss/audit/instances", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (deleteInstancesRequest !== null && deleteInstancesRequest !== undefined) { + if (deleteInstancesRequest instanceof DeleteInstancesRequest) { + body = deleteInstancesRequest.body + } else { + body = deleteInstancesRequest['body']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询审计告警信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditAlarmLog(listAuditAlarmLogRequest?: ListAuditAlarmLogRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/{instance_id}/audit/alarm-log", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (listAuditAlarmLogRequest !== null && listAuditAlarmLogRequest !== undefined) { + if (listAuditAlarmLogRequest instanceof ListAuditAlarmLogRequest) { + instanceId = listAuditAlarmLogRequest.instanceId; + body = listAuditAlarmLogRequest.body + } else { + instanceId = listAuditAlarmLogRequest['instance_id']; + body = listAuditAlarmLogRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditAlarmLog.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询数据库列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditDatabases(listAuditDatabasesRequest?: ListAuditDatabasesRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/{instance_id}/dbss/audit/databases", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let instanceId; + + let status; + + let offset; + + let limit; + + if (listAuditDatabasesRequest !== null && listAuditDatabasesRequest !== undefined) { + if (listAuditDatabasesRequest instanceof ListAuditDatabasesRequest) { + instanceId = listAuditDatabasesRequest.instanceId; + status = listAuditDatabasesRequest.status; + offset = listAuditDatabasesRequest.offset; + limit = listAuditDatabasesRequest.limit; + } else { + instanceId = listAuditDatabasesRequest['instance_id']; + status = listAuditDatabasesRequest['status']; + offset = listAuditDatabasesRequest['offset']; + limit = listAuditDatabasesRequest['limit']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditDatabases.'); + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询实例创建任务信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditInstanceJobs(listAuditInstanceJobsRequest?: ListAuditInstanceJobsRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/dbss/audit/jobs/{resource_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let resourceId; + + if (listAuditInstanceJobsRequest !== null && listAuditInstanceJobsRequest !== undefined) { + if (listAuditInstanceJobsRequest instanceof ListAuditInstanceJobsRequest) { + resourceId = listAuditInstanceJobsRequest.resourceId; + } else { + resourceId = listAuditInstanceJobsRequest['resource_id']; + } + } + + + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling listAuditInstanceJobs.'); + } + + options.pathParams = { 'resource_id': resourceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询审计实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditInstances(listAuditInstancesRequest?: ListAuditInstancesRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/dbss/audit/instances", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let offset; + + let limit; + + if (listAuditInstancesRequest !== null && listAuditInstancesRequest !== undefined) { + if (listAuditInstancesRequest instanceof ListAuditInstancesRequest) { + offset = listAuditInstancesRequest.offset; + limit = listAuditInstancesRequest.limit; + } else { + offset = listAuditInstancesRequest['offset']; + limit = listAuditInstancesRequest['limit']; + } + } + + + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询用户操作日志信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditOperateLogs(listAuditOperateLogsRequest?: ListAuditOperateLogsRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/{instance_id}/dbss/audit/operate-log", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (listAuditOperateLogsRequest !== null && listAuditOperateLogsRequest !== undefined) { + if (listAuditOperateLogsRequest instanceof ListAuditOperateLogsRequest) { + instanceId = listAuditOperateLogsRequest.instanceId; + body = listAuditOperateLogsRequest.body + } else { + instanceId = listAuditOperateLogsRequest['instance_id']; + body = listAuditOperateLogsRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditOperateLogs.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询风险规则策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditRuleRisks(listAuditRuleRisksRequest?: ListAuditRuleRisksRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/risk", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let instanceId; + + let name; + + let riskLevels; + + if (listAuditRuleRisksRequest !== null && listAuditRuleRisksRequest !== undefined) { + if (listAuditRuleRisksRequest instanceof ListAuditRuleRisksRequest) { + instanceId = listAuditRuleRisksRequest.instanceId; + name = listAuditRuleRisksRequest.name; + riskLevels = listAuditRuleRisksRequest.riskLevels; + } else { + instanceId = listAuditRuleRisksRequest['instance_id']; + name = listAuditRuleRisksRequest['name']; + riskLevels = listAuditRuleRisksRequest['risk_levels']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditRuleRisks.'); + } + if (name !== null && name !== undefined) { + localVarQueryParameter['name'] = name; + } + if (riskLevels !== null && riskLevels !== undefined) { + localVarQueryParameter['risk_levels'] = riskLevels; + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询审计范围策略列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditRuleScopes(listAuditRuleScopesRequest?: ListAuditRuleScopesRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/scopes", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let instanceId; + + let offset; + + let limit; + + if (listAuditRuleScopesRequest !== null && listAuditRuleScopesRequest !== undefined) { + if (listAuditRuleScopesRequest instanceof ListAuditRuleScopesRequest) { + instanceId = listAuditRuleScopesRequest.instanceId; + offset = listAuditRuleScopesRequest.offset; + limit = listAuditRuleScopesRequest.limit; + } else { + instanceId = listAuditRuleScopesRequest['instance_id']; + offset = listAuditRuleScopesRequest['offset']; + limit = listAuditRuleScopesRequest['limit']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditRuleScopes.'); + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询隐私数据脱敏规则 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditSensitiveMasks(listAuditSensitiveMasksRequest?: ListAuditSensitiveMasksRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/{instance_id}/dbss/audit/sensitive/masks", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let instanceId; + + let offset; + + let limit; + + if (listAuditSensitiveMasksRequest !== null && listAuditSensitiveMasksRequest !== undefined) { + if (listAuditSensitiveMasksRequest instanceof ListAuditSensitiveMasksRequest) { + instanceId = listAuditSensitiveMasksRequest.instanceId; + offset = listAuditSensitiveMasksRequest.offset; + limit = listAuditSensitiveMasksRequest.limit; + } else { + instanceId = listAuditSensitiveMasksRequest['instance_id']; + offset = listAuditSensitiveMasksRequest['offset']; + limit = listAuditSensitiveMasksRequest['limit']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditSensitiveMasks.'); + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询审计SQL语句 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditSqls(listAuditSqlsRequest?: ListAuditSqlsRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/{instance_id}/audit/sqls", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (listAuditSqlsRequest !== null && listAuditSqlsRequest !== undefined) { + if (listAuditSqlsRequest instanceof ListAuditSqlsRequest) { + instanceId = listAuditSqlsRequest.instanceId; + body = listAuditSqlsRequest.body + } else { + instanceId = listAuditSqlsRequest['instance_id']; + body = listAuditSqlsRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditSqls.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询审计汇总信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAuditSummaryInfos(listAuditSummaryInfosRequest?: ListAuditSummaryInfosRequest) { + const options = { + method: "GET", + url: "/v2/{project_id}/audit/summary/info", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let offset; + + let limit; + + if (listAuditSummaryInfosRequest !== null && listAuditSummaryInfosRequest !== undefined) { + if (listAuditSummaryInfosRequest instanceof ListAuditSummaryInfosRequest) { + offset = listAuditSummaryInfosRequest.offset; + limit = listAuditSummaryInfosRequest.limit; + } else { + offset = listAuditSummaryInfosRequest['offset']; + limit = listAuditSummaryInfosRequest['limit']; + } + } + + + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询可用区信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAvailabilityZoneInfos() { + const options = { + method: "GET", + url: "/v2/{project_id}/dbss/audit/availability-zone", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询ECS服务器规格信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listEcsSpecification() { + const options = { + method: "GET", + url: "/v1/{project_id}/dbss/audit/specification", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询RDS数据库列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listRdsDatabases(listRdsDatabasesRequest?: ListRdsDatabasesRequest) { + const options = { + method: "GET", + url: "/v2/{project_id}/audit/databases/rds", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let dbType; + + let offset; + + let limit; + + if (listRdsDatabasesRequest !== null && listRdsDatabasesRequest !== undefined) { + if (listRdsDatabasesRequest instanceof ListRdsDatabasesRequest) { + dbType = listRdsDatabasesRequest.dbType; + offset = listRdsDatabasesRequest.offset; + limit = listRdsDatabasesRequest.limit; + } else { + dbType = listRdsDatabasesRequest['db_type']; + offset = listRdsDatabasesRequest['offset']; + limit = listRdsDatabasesRequest['limit']; + } + } + + + if (dbType === null || dbType === undefined) { + throw new RequiredError('dbType','Required parameter dbType was null or undefined when calling listRdsDatabases.'); + } + if (dbType !== null && dbType !== undefined) { + localVarQueryParameter['db_type'] = dbType; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询SQL注入规则策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listSqlInjectionRules(listSqlInjectionRulesRequest?: ListSqlInjectionRulesRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/sql-injections", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + if (listSqlInjectionRulesRequest !== null && listSqlInjectionRulesRequest !== undefined) { + if (listSqlInjectionRulesRequest instanceof ListSqlInjectionRulesRequest) { + instanceId = listSqlInjectionRulesRequest.instanceId; + body = listSqlInjectionRulesRequest.body + } else { + instanceId = listSqlInjectionRulesRequest['instance_id']; + body = listSqlInjectionRulesRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listSqlInjectionRules.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 重启审计实例 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + rebootAuditInstance(rebootAuditInstanceRequest?: RebootAuditInstanceRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/dbss/audit/instance/reboot", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (rebootAuditInstanceRequest !== null && rebootAuditInstanceRequest !== undefined) { + if (rebootAuditInstanceRequest instanceof RebootAuditInstanceRequest) { + body = rebootAuditInstanceRequest.body + } else { + body = rebootAuditInstanceRequest['body']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询账户配额信息 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showAuditQuota() { + const options = { + method: "GET", + url: "/v1/{project_id}/dbss/audit/quota", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询指定风险规则策略 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showAuditRuleRisk(showAuditRuleRiskRequest?: ShowAuditRuleRiskRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/risk/{risk_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let instanceId; + + let riskId; + + if (showAuditRuleRiskRequest !== null && showAuditRuleRiskRequest !== undefined) { + if (showAuditRuleRiskRequest instanceof ShowAuditRuleRiskRequest) { + instanceId = showAuditRuleRiskRequest.instanceId; + riskId = showAuditRuleRiskRequest.riskId; + } else { + instanceId = showAuditRuleRiskRequest['instance_id']; + riskId = showAuditRuleRiskRequest['risk_id']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling showAuditRuleRisk.'); + } + if (riskId === null || riskId === undefined) { + throw new RequiredError('riskId','Required parameter riskId was null or undefined when calling showAuditRuleRisk.'); } - options.queryParams = localVarQueryParameter; - options.pathParams = { 'instance_id': instanceId, }; + options.pathParams = { 'instance_id': instanceId,'risk_id': riskId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 查询实例创建任务信息 + * 开启审计实例 * * Please refer to HUAWEI cloud API Explorer for details. */ - listAuditInstanceJobs(listAuditInstanceJobsRequest?: ListAuditInstanceJobsRequest) { + startAuditInstance(startAuditInstanceRequest?: StartAuditInstanceRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/dbss/audit/jobs/{resource_id}", - contentType: "application/json", + method: "POST", + url: "/v1/{project_id}/dbss/audit/instance/start", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; - - let resourceId; + let body: any; - if (listAuditInstanceJobsRequest !== null && listAuditInstanceJobsRequest !== undefined) { - if (listAuditInstanceJobsRequest instanceof ListAuditInstanceJobsRequest) { - resourceId = listAuditInstanceJobsRequest.resourceId; + if (startAuditInstanceRequest !== null && startAuditInstanceRequest !== undefined) { + if (startAuditInstanceRequest instanceof StartAuditInstanceRequest) { + body = startAuditInstanceRequest.body } else { - resourceId = listAuditInstanceJobsRequest['resource_id']; + body = startAuditInstanceRequest['body']; } } - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling listAuditInstanceJobs.'); + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - options.pathParams = { 'resource_id': resourceId, }; + options.data = body !== undefined ? body : {}; options.headers = localVarHeaderParameter; return options; }, /** - * 查询审计实例列表 + * 关闭审计实例 * * Please refer to HUAWEI cloud API Explorer for details. */ - listAuditInstances(listAuditInstancesRequest?: ListAuditInstancesRequest) { + stopAuditInstance(stopAuditInstanceRequest?: StopAuditInstanceRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/dbss/audit/instances", - contentType: "application/json", + method: "POST", + url: "/v1/{project_id}/dbss/audit/instance/stop", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - let offset; - - let limit; - if (listAuditInstancesRequest !== null && listAuditInstancesRequest !== undefined) { - if (listAuditInstancesRequest instanceof ListAuditInstancesRequest) { - offset = listAuditInstancesRequest.offset; - limit = listAuditInstancesRequest.limit; + let body: any; + + if (stopAuditInstanceRequest !== null && stopAuditInstanceRequest !== undefined) { + if (stopAuditInstanceRequest instanceof StopAuditInstanceRequest) { + body = stopAuditInstanceRequest.body } else { - offset = listAuditInstancesRequest['offset']; - limit = listAuditInstancesRequest['limit']; + body = stopAuditInstanceRequest['body']; } } - if (offset !== null && offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - options.queryParams = localVarQueryParameter; + options.data = body !== undefined ? body : {}; options.headers = localVarHeaderParameter; return options; }, /** - * 查询用户操作日志信息 + * 开启关闭数据库 * * Please refer to HUAWEI cloud API Explorer for details. */ - listAuditOperateLogs(listAuditOperateLogsRequest?: ListAuditOperateLogsRequest) { + switchAuditDatabase(switchAuditDatabaseRequest?: SwitchAuditDatabaseRequest) { const options = { method: "POST", - url: "/v1/{project_id}/{instance_id}/dbss/audit/operate-log", + url: "/v2/{project_id}/{instance_id}/audit/databases/switch", contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, @@ -935,19 +2016,19 @@ export const ParamCreater = function () { let instanceId; - if (listAuditOperateLogsRequest !== null && listAuditOperateLogsRequest !== undefined) { - if (listAuditOperateLogsRequest instanceof ListAuditOperateLogsRequest) { - instanceId = listAuditOperateLogsRequest.instanceId; - body = listAuditOperateLogsRequest.body + if (switchAuditDatabaseRequest !== null && switchAuditDatabaseRequest !== undefined) { + if (switchAuditDatabaseRequest instanceof SwitchAuditDatabaseRequest) { + instanceId = switchAuditDatabaseRequest.instanceId; + body = switchAuditDatabaseRequest.body } else { - instanceId = listAuditOperateLogsRequest['instance_id']; - body = listAuditOperateLogsRequest['body']; + instanceId = switchAuditDatabaseRequest['instance_id']; + body = switchAuditDatabaseRequest['body']; } } if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditOperateLogs.'); + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling switchAuditDatabase.'); } if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); @@ -961,212 +2042,245 @@ export const ParamCreater = function () { }, /** - * 查询风险规则策略 + * 开启关闭风险规则 * * Please refer to HUAWEI cloud API Explorer for details. */ - listAuditRuleRisks(listAuditRuleRisksRequest?: ListAuditRuleRisksRequest) { + switchRiskRule(switchRiskRuleRequest?: SwitchRiskRuleRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/risk", - contentType: "application/json", + method: "POST", + url: "/v1/{project_id}/{instance_id}/audit/rule/risk/switch", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + let body: any; let instanceId; - - let name; - - let riskLevels; - if (listAuditRuleRisksRequest !== null && listAuditRuleRisksRequest !== undefined) { - if (listAuditRuleRisksRequest instanceof ListAuditRuleRisksRequest) { - instanceId = listAuditRuleRisksRequest.instanceId; - name = listAuditRuleRisksRequest.name; - riskLevels = listAuditRuleRisksRequest.riskLevels; + if (switchRiskRuleRequest !== null && switchRiskRuleRequest !== undefined) { + if (switchRiskRuleRequest instanceof SwitchRiskRuleRequest) { + instanceId = switchRiskRuleRequest.instanceId; + body = switchRiskRuleRequest.body } else { - instanceId = listAuditRuleRisksRequest['instance_id']; - name = listAuditRuleRisksRequest['name']; - riskLevels = listAuditRuleRisksRequest['risk_levels']; + instanceId = switchRiskRuleRequest['instance_id']; + body = switchRiskRuleRequest['body']; } } if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditRuleRisks.'); - } - if (name !== null && name !== undefined) { - localVarQueryParameter['name'] = name; + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling switchRiskRule.'); } - if (riskLevels !== null && riskLevels !== undefined) { - localVarQueryParameter['risk_levels'] = riskLevels; + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - options.queryParams = localVarQueryParameter; + options.data = body !== undefined ? body : {}; options.pathParams = { 'instance_id': instanceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 查询审计范围策略列表 + * 更新审计实例信息 * * Please refer to HUAWEI cloud API Explorer for details. */ - listAuditRuleScopes(listAuditRuleScopesRequest?: ListAuditRuleScopesRequest) { + updateAuditInstance(updateAuditInstanceRequest?: UpdateAuditInstanceRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/scopes", - contentType: "application/json", + method: "PUT", + url: "/v1/{project_id}/dbss/audit/instances/{instance_id}", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + + let body: any; let instanceId; - - let offset; - - let limit; - if (listAuditRuleScopesRequest !== null && listAuditRuleScopesRequest !== undefined) { - if (listAuditRuleScopesRequest instanceof ListAuditRuleScopesRequest) { - instanceId = listAuditRuleScopesRequest.instanceId; - offset = listAuditRuleScopesRequest.offset; - limit = listAuditRuleScopesRequest.limit; + if (updateAuditInstanceRequest !== null && updateAuditInstanceRequest !== undefined) { + if (updateAuditInstanceRequest instanceof UpdateAuditInstanceRequest) { + instanceId = updateAuditInstanceRequest.instanceId; + body = updateAuditInstanceRequest.body } else { - instanceId = listAuditRuleScopesRequest['instance_id']; - offset = listAuditRuleScopesRequest['offset']; - limit = listAuditRuleScopesRequest['limit']; + instanceId = updateAuditInstanceRequest['instance_id']; + body = updateAuditInstanceRequest['body']; } } if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditRuleScopes.'); - } - if (offset !== null && offset !== undefined) { - localVarQueryParameter['offset'] = offset; + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling updateAuditInstance.'); } - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - options.queryParams = localVarQueryParameter; + options.data = body !== undefined ? body : {}; options.pathParams = { 'instance_id': instanceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 查询隐私数据脱敏规则 + * 修改实例安全组 * * Please refer to HUAWEI cloud API Explorer for details. */ - listAuditSensitiveMasks(listAuditSensitiveMasksRequest?: ListAuditSensitiveMasksRequest) { + updateAuditSecurityGroup(updateAuditSecurityGroupRequest?: UpdateAuditSecurityGroupRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/{instance_id}/dbss/audit/sensitive/masks", - contentType: "application/json", + method: "POST", + url: "/v1/{project_id}/dbss/audit/security-group", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - let instanceId; - - let offset; - - let limit; - if (listAuditSensitiveMasksRequest !== null && listAuditSensitiveMasksRequest !== undefined) { - if (listAuditSensitiveMasksRequest instanceof ListAuditSensitiveMasksRequest) { - instanceId = listAuditSensitiveMasksRequest.instanceId; - offset = listAuditSensitiveMasksRequest.offset; - limit = listAuditSensitiveMasksRequest.limit; + let body: any; + + if (updateAuditSecurityGroupRequest !== null && updateAuditSecurityGroupRequest !== undefined) { + if (updateAuditSecurityGroupRequest instanceof UpdateAuditSecurityGroupRequest) { + body = updateAuditSecurityGroupRequest.body } else { - instanceId = listAuditSensitiveMasksRequest['instance_id']; - offset = listAuditSensitiveMasksRequest['offset']; - limit = listAuditSensitiveMasksRequest['limit']; + body = updateAuditSecurityGroupRequest['body']; } } - if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditSensitiveMasks.'); - } - if (offset !== null && offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - options.queryParams = localVarQueryParameter; - options.pathParams = { 'instance_id': instanceId, }; + options.data = body !== undefined ? body : {}; options.headers = localVarHeaderParameter; return options; }, /** - * 查询可用区信息 + * 添加审计数据库Agent * * Please refer to HUAWEI cloud API Explorer for details. */ - listAvailabilityZoneInfos() { + addAuditAgent(addAuditAgentRequest?: AddAuditAgentRequest) { const options = { - method: "GET", - url: "/v2/{project_id}/dbss/audit/availability-zone", - contentType: "application/json", + method: "POST", + url: "/v2/{project_id}/{instance_id}/audit/agents", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; + let body: any; + + let instanceId; + + if (addAuditAgentRequest !== null && addAuditAgentRequest !== undefined) { + if (addAuditAgentRequest instanceof AddAuditAgentRequest) { + instanceId = addAuditAgentRequest.instanceId; + body = addAuditAgentRequest.body + } else { + instanceId = addAuditAgentRequest['instance_id']; + body = addAuditAgentRequest['body']; + } + } + + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling addAuditAgent.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + options.data = body !== undefined ? body : {}; + options.pathParams = { 'instance_id': instanceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 查询ecs服务器规格信息 + * 删除数据库Agent * * Please refer to HUAWEI cloud API Explorer for details. */ - listEcsSpecification() { + deleteAuditAgent(deleteAuditAgentRequest?: DeleteAuditAgentRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/dbss/audit/specification", + method: "DELETE", + url: "/v2/{project_id}/{instance_id}/audit/agents/{agent_id}", contentType: "application/json", queryParams: {}, pathParams: {}, headers: {} }; const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let instanceId; + + let agentId; + + let dbId; + + if (deleteAuditAgentRequest !== null && deleteAuditAgentRequest !== undefined) { + if (deleteAuditAgentRequest instanceof DeleteAuditAgentRequest) { + instanceId = deleteAuditAgentRequest.instanceId; + agentId = deleteAuditAgentRequest.agentId; + dbId = deleteAuditAgentRequest.dbId; + } else { + instanceId = deleteAuditAgentRequest['instance_id']; + agentId = deleteAuditAgentRequest['agent_id']; + dbId = deleteAuditAgentRequest['db_id']; + } + } + + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling deleteAuditAgent.'); + } + if (agentId === null || agentId === undefined) { + throw new RequiredError('agentId','Required parameter agentId was null or undefined when calling deleteAuditAgent.'); + } + if (dbId === null || dbId === undefined) { + throw new RequiredError('dbId','Required parameter dbId was null or undefined when calling deleteAuditAgent.'); + } + if (dbId !== null && dbId !== undefined) { + localVarQueryParameter['db_id'] = dbId; + } + options.queryParams = localVarQueryParameter; + options.pathParams = { 'instance_id': instanceId,'agent_id': agentId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 查询项目标签 + * 下载审计Agent * * Please refer to HUAWEI cloud API Explorer for details. */ - listProjectResourceTags(listProjectResourceTagsRequest?: ListProjectResourceTagsRequest) { + downloadAuditAgent(downloadAuditAgentRequest?: DownloadAuditAgentRequest) { const options = { method: "GET", - url: "/v1/{project_id}/{resource_type}/tags", + url: "/v2/{project_id}/{instance_id}/audit/agents/{agent_id}", contentType: "application/json", queryParams: {}, pathParams: {}, @@ -1175,96 +2289,104 @@ export const ParamCreater = function () { const localVarHeaderParameter = {} as any; - let resourceType; + let instanceId; + + let agentId; - if (listProjectResourceTagsRequest !== null && listProjectResourceTagsRequest !== undefined) { - if (listProjectResourceTagsRequest instanceof ListProjectResourceTagsRequest) { - resourceType = listProjectResourceTagsRequest.resourceType; + if (downloadAuditAgentRequest !== null && downloadAuditAgentRequest !== undefined) { + if (downloadAuditAgentRequest instanceof DownloadAuditAgentRequest) { + instanceId = downloadAuditAgentRequest.instanceId; + agentId = downloadAuditAgentRequest.agentId; } else { - resourceType = listProjectResourceTagsRequest['resource_type']; + instanceId = downloadAuditAgentRequest['instance_id']; + agentId = downloadAuditAgentRequest['agent_id']; } } - if (resourceType === null || resourceType === undefined) { - throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling listProjectResourceTags.'); + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling downloadAuditAgent.'); + } + if (agentId === null || agentId === undefined) { + throw new RequiredError('agentId','Required parameter agentId was null or undefined when calling downloadAuditAgent.'); } - options.pathParams = { 'resource_type': resourceType, }; + options.pathParams = { 'instance_id': instanceId,'agent_id': agentId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 根据标签查询资源实例列表 + * 查询数据库Agent列表 * * Please refer to HUAWEI cloud API Explorer for details. */ - listResourceInstanceByTag(listResourceInstanceByTagRequest?: ListResourceInstanceByTagRequest) { + listAuditAgent(listAuditAgentRequest?: ListAuditAgentRequest) { const options = { - method: "POST", - url: "/v1/{project_id}/{resource_type}/resource-instances/filter", - contentType: "application/json;charset=UTF-8", + method: "GET", + url: "/v2/{project_id}/{instance_id}/audit/agents", + contentType: "application/json", queryParams: {}, pathParams: {}, - headers: {}, - data: {} + headers: {} }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - let body: any; - let resourceType; + let instanceId; - let limit; + let dbId; let offset; + + let limit; - if (listResourceInstanceByTagRequest !== null && listResourceInstanceByTagRequest !== undefined) { - if (listResourceInstanceByTagRequest instanceof ListResourceInstanceByTagRequest) { - resourceType = listResourceInstanceByTagRequest.resourceType; - body = listResourceInstanceByTagRequest.body - limit = listResourceInstanceByTagRequest.limit; - offset = listResourceInstanceByTagRequest.offset; + if (listAuditAgentRequest !== null && listAuditAgentRequest !== undefined) { + if (listAuditAgentRequest instanceof ListAuditAgentRequest) { + instanceId = listAuditAgentRequest.instanceId; + dbId = listAuditAgentRequest.dbId; + offset = listAuditAgentRequest.offset; + limit = listAuditAgentRequest.limit; } else { - resourceType = listResourceInstanceByTagRequest['resource_type']; - body = listResourceInstanceByTagRequest['body']; - limit = listResourceInstanceByTagRequest['limit']; - offset = listResourceInstanceByTagRequest['offset']; + instanceId = listAuditAgentRequest['instance_id']; + dbId = listAuditAgentRequest['db_id']; + offset = listAuditAgentRequest['offset']; + limit = listAuditAgentRequest['limit']; } } - if (resourceType === null || resourceType === undefined) { - throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling listResourceInstanceByTag.'); + if (instanceId === null || instanceId === undefined) { + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listAuditAgent.'); } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + if (dbId === null || dbId === undefined) { + throw new RequiredError('dbId','Required parameter dbId was null or undefined when calling listAuditAgent.'); } - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; + if (dbId !== null && dbId !== undefined) { + localVarQueryParameter['db_id'] = dbId; } if (offset !== null && offset !== undefined) { localVarQueryParameter['offset'] = offset; } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } - options.data = body !== undefined ? body : {}; options.queryParams = localVarQueryParameter; - options.pathParams = { 'resource_type': resourceType, }; + options.pathParams = { 'instance_id': instanceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 查询SQL注入规则策略 + * 用于开启和关闭Agent审计的功能,当开启后,开始抓取用户的访问信息。 * * Please refer to HUAWEI cloud API Explorer for details. */ - listSqlInjectionRules(listSqlInjectionRulesRequest?: ListSqlInjectionRulesRequest) { + switchAgent(switchAgentRequest?: SwitchAgentRequest) { const options = { method: "POST", - url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/sql-injections", + url: "/v1/{project_id}/{instance_id}/audit/agent/switch", contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, @@ -1277,19 +2399,19 @@ export const ParamCreater = function () { let instanceId; - if (listSqlInjectionRulesRequest !== null && listSqlInjectionRulesRequest !== undefined) { - if (listSqlInjectionRulesRequest instanceof ListSqlInjectionRulesRequest) { - instanceId = listSqlInjectionRulesRequest.instanceId; - body = listSqlInjectionRulesRequest.body + if (switchAgentRequest !== null && switchAgentRequest !== undefined) { + if (switchAgentRequest instanceof SwitchAgentRequest) { + instanceId = switchAgentRequest.instanceId; + body = switchAgentRequest.body } else { - instanceId = listSqlInjectionRulesRequest['instance_id']; - body = listSqlInjectionRulesRequest['body']; + instanceId = switchAgentRequest['instance_id']; + body = switchAgentRequest['body']; } } if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling listSqlInjectionRules.'); + throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling switchAgent.'); } if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); @@ -1303,79 +2425,120 @@ export const ParamCreater = function () { }, /** - * 查询账户配额信息 + * 批量添加资源标签 * * Please refer to HUAWEI cloud API Explorer for details. */ - showAuditQuota() { + batchAddResourceTag(batchAddResourceTagRequest?: BatchAddResourceTagRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/dbss/audit/quota", - contentType: "application/json", + method: "POST", + url: "/v1/{project_id}/{resource_type}/{resource_id}/tags/create", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; + let body: any; + + let resourceType; + + let resourceId; + + if (batchAddResourceTagRequest !== null && batchAddResourceTagRequest !== undefined) { + if (batchAddResourceTagRequest instanceof BatchAddResourceTagRequest) { + resourceType = batchAddResourceTagRequest.resourceType; + resourceId = batchAddResourceTagRequest.resourceId; + body = batchAddResourceTagRequest.body + } else { + resourceType = batchAddResourceTagRequest['resource_type']; + resourceId = batchAddResourceTagRequest['resource_id']; + body = batchAddResourceTagRequest['body']; + } + } + + + if (resourceType === null || resourceType === undefined) { + throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling batchAddResourceTag.'); + } + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchAddResourceTag.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + options.data = body !== undefined ? body : {}; + options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 查询指定风险规则策略 + * 批量删除资源标签 * * Please refer to HUAWEI cloud API Explorer for details. */ - showAuditRuleRisk(showAuditRuleRiskRequest?: ShowAuditRuleRiskRequest) { + batchDeleteResourceTag(batchDeleteResourceTagRequest?: BatchDeleteResourceTagRequest) { const options = { - method: "GET", - url: "/v1/{project_id}/{instance_id}/dbss/audit/rule/risk/{risk_id}", - contentType: "application/json", + method: "DELETE", + url: "/v1/{project_id}/{resource_type}/{resource_id}/tags/delete", + contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, - headers: {} + headers: {}, + data: {} }; const localVarHeaderParameter = {} as any; + let body: any; - let instanceId; + let resourceType; - let riskId; + let resourceId; - if (showAuditRuleRiskRequest !== null && showAuditRuleRiskRequest !== undefined) { - if (showAuditRuleRiskRequest instanceof ShowAuditRuleRiskRequest) { - instanceId = showAuditRuleRiskRequest.instanceId; - riskId = showAuditRuleRiskRequest.riskId; + if (batchDeleteResourceTagRequest !== null && batchDeleteResourceTagRequest !== undefined) { + if (batchDeleteResourceTagRequest instanceof BatchDeleteResourceTagRequest) { + resourceType = batchDeleteResourceTagRequest.resourceType; + resourceId = batchDeleteResourceTagRequest.resourceId; + body = batchDeleteResourceTagRequest.body } else { - instanceId = showAuditRuleRiskRequest['instance_id']; - riskId = showAuditRuleRiskRequest['risk_id']; + resourceType = batchDeleteResourceTagRequest['resource_type']; + resourceId = batchDeleteResourceTagRequest['resource_id']; + body = batchDeleteResourceTagRequest['body']; } } - if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling showAuditRuleRisk.'); + if (resourceType === null || resourceType === undefined) { + throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling batchDeleteResourceTag.'); } - if (riskId === null || riskId === undefined) { - throw new RequiredError('riskId','Required parameter riskId was null or undefined when calling showAuditRuleRisk.'); + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchDeleteResourceTag.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - options.pathParams = { 'instance_id': instanceId,'risk_id': riskId, }; + options.data = body !== undefined ? body : {}; + options.pathParams = { 'resource_type': resourceType,'resource_id': resourceId, }; options.headers = localVarHeaderParameter; return options; }, /** - * 用于开启和关闭agent的功能,当开启后,开始抓取用户的访问信息。 + * 根据标签查询资源实例数量 * * Please refer to HUAWEI cloud API Explorer for details. */ - switchAgent(switchAgentRequest?: SwitchAgentRequest) { + countResourceInstanceByTag(countResourceInstanceByTagRequest?: CountResourceInstanceByTagRequest) { const options = { method: "POST", - url: "/v1/{project_id}/{instance_id}/audit/agent/switch", + url: "/v1/{project_id}/{resource_type}/resource-instances/count", contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, @@ -1386,21 +2549,21 @@ export const ParamCreater = function () { let body: any; - let instanceId; + let resourceType; - if (switchAgentRequest !== null && switchAgentRequest !== undefined) { - if (switchAgentRequest instanceof SwitchAgentRequest) { - instanceId = switchAgentRequest.instanceId; - body = switchAgentRequest.body + if (countResourceInstanceByTagRequest !== null && countResourceInstanceByTagRequest !== undefined) { + if (countResourceInstanceByTagRequest instanceof CountResourceInstanceByTagRequest) { + resourceType = countResourceInstanceByTagRequest.resourceType; + body = countResourceInstanceByTagRequest.body } else { - instanceId = switchAgentRequest['instance_id']; - body = switchAgentRequest['body']; + resourceType = countResourceInstanceByTagRequest['resource_type']; + body = countResourceInstanceByTagRequest['body']; } } - if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling switchAgent.'); + if (resourceType === null || resourceType === undefined) { + throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling countResourceInstanceByTag.'); } if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); @@ -1408,66 +2571,57 @@ export const ParamCreater = function () { localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; options.data = body !== undefined ? body : {}; - options.pathParams = { 'instance_id': instanceId, }; + options.pathParams = { 'resource_type': resourceType, }; options.headers = localVarHeaderParameter; return options; }, /** - * 开启关闭风险规则 + * 查询项目标签 * * Please refer to HUAWEI cloud API Explorer for details. */ - switchRiskRule(switchRiskRuleRequest?: SwitchRiskRuleRequest) { + listProjectResourceTags(listProjectResourceTagsRequest?: ListProjectResourceTagsRequest) { const options = { - method: "POST", - url: "/v1/{project_id}/{instance_id}/audit/rule/risk/switch", - contentType: "application/json;charset=UTF-8", + method: "GET", + url: "/v1/{project_id}/{resource_type}/tags", + contentType: "application/json", queryParams: {}, pathParams: {}, - headers: {}, - data: {} + headers: {} }; const localVarHeaderParameter = {} as any; - let body: any; - let instanceId; + let resourceType; - if (switchRiskRuleRequest !== null && switchRiskRuleRequest !== undefined) { - if (switchRiskRuleRequest instanceof SwitchRiskRuleRequest) { - instanceId = switchRiskRuleRequest.instanceId; - body = switchRiskRuleRequest.body + if (listProjectResourceTagsRequest !== null && listProjectResourceTagsRequest !== undefined) { + if (listProjectResourceTagsRequest instanceof ListProjectResourceTagsRequest) { + resourceType = listProjectResourceTagsRequest.resourceType; } else { - instanceId = switchRiskRuleRequest['instance_id']; - body = switchRiskRuleRequest['body']; + resourceType = listProjectResourceTagsRequest['resource_type']; } } - if (instanceId === null || instanceId === undefined) { - throw new RequiredError('instanceId','Required parameter instanceId was null or undefined when calling switchRiskRule.'); - } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + if (resourceType === null || resourceType === undefined) { + throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling listProjectResourceTags.'); } - localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; - options.data = body !== undefined ? body : {}; - options.pathParams = { 'instance_id': instanceId, }; + options.pathParams = { 'resource_type': resourceType, }; options.headers = localVarHeaderParameter; return options; }, /** - * 修改安全组 + * 根据标签查询资源实例列表 * * Please refer to HUAWEI cloud API Explorer for details. */ - updateAuditSecurityGroup(updateAuditSecurityGroupRequest?: UpdateAuditSecurityGroupRequest) { + listResourceInstanceByTag(listResourceInstanceByTagRequest?: ListResourceInstanceByTagRequest) { const options = { method: "POST", - url: "/v1/{project_id}/dbss/audit/security-group", + url: "/v1/{project_id}/{resource_type}/resource-instances/filter", contentType: "application/json;charset=UTF-8", queryParams: {}, pathParams: {}, @@ -1475,24 +2629,47 @@ export const ParamCreater = function () { data: {} }; const localVarHeaderParameter = {} as any; - + const localVarQueryParameter = {} as any; let body: any; + + let resourceType; + + let limit; + + let offset; - if (updateAuditSecurityGroupRequest !== null && updateAuditSecurityGroupRequest !== undefined) { - if (updateAuditSecurityGroupRequest instanceof UpdateAuditSecurityGroupRequest) { - body = updateAuditSecurityGroupRequest.body + if (listResourceInstanceByTagRequest !== null && listResourceInstanceByTagRequest !== undefined) { + if (listResourceInstanceByTagRequest instanceof ListResourceInstanceByTagRequest) { + resourceType = listResourceInstanceByTagRequest.resourceType; + body = listResourceInstanceByTagRequest.body + limit = listResourceInstanceByTagRequest.limit; + offset = listResourceInstanceByTagRequest.offset; } else { - body = updateAuditSecurityGroupRequest['body']; + resourceType = listResourceInstanceByTagRequest['resource_type']; + body = listResourceInstanceByTagRequest['body']; + limit = listResourceInstanceByTagRequest['limit']; + offset = listResourceInstanceByTagRequest['offset']; } } + if (resourceType === null || resourceType === undefined) { + throw new RequiredError('resourceType','Required parameter resourceType was null or undefined when calling listResourceInstanceByTag.'); + } if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; options.data = body !== undefined ? body : {}; + options.queryParams = localVarQueryParameter; + options.pathParams = { 'resource_type': resourceType, }; options.headers = localVarHeaderParameter; return options; }, diff --git a/services/dbss/v1/DbssRegion.ts b/services/dbss/v1/DbssRegion.ts index 521f8839f..9d7c69260 100644 --- a/services/dbss/v1/DbssRegion.ts +++ b/services/dbss/v1/DbssRegion.ts @@ -30,6 +30,7 @@ export class DbssRegion { public static TR_WEST_1 = new Region("tr-west-1", ["https://dbss.tr-west-1.myhuaweicloud.com"]); public static CN_EAST_5 = new Region("cn-east-5", ["https://dbss.cn-east-5.myhuaweicloud.com"]); public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://dbss.my-kualalumpur-1.myhuaweicloud.com"]); + public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://dbss.ru-moscow-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -56,7 +57,8 @@ export class DbssRegion { "ap-southeast-4":DbssRegion.AP_SOUTHEAST_4, "tr-west-1":DbssRegion.TR_WEST_1, "cn-east-5":DbssRegion.CN_EAST_5, - "my-kualalumpur-1":DbssRegion.MY_KUALALUMPUR_1 + "my-kualalumpur-1":DbssRegion.MY_KUALALUMPUR_1, + "ru-moscow-1":DbssRegion.RU_MOSCOW_1 }; public static valueOf(regionId: string) { diff --git a/services/dbss/v1/model/AddAuditAgentRequest.ts b/services/dbss/v1/model/AddAuditAgentRequest.ts new file mode 100644 index 000000000..d977395f0 --- /dev/null +++ b/services/dbss/v1/model/AddAuditAgentRequest.ts @@ -0,0 +1,24 @@ +import { AuditAgentRequest } from './AuditAgentRequest'; + + +export class AddAuditAgentRequest { + private 'instance_id'?: string; + public body?: AuditAgentRequest; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): AddAuditAgentRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: AuditAgentRequest): AddAuditAgentRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AddAuditAgentResponse.ts b/services/dbss/v1/model/AddAuditAgentResponse.ts new file mode 100644 index 000000000..a63c90129 --- /dev/null +++ b/services/dbss/v1/model/AddAuditAgentResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class AddAuditAgentResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): AddAuditAgentResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AddAuditDatabaseRequest.ts b/services/dbss/v1/model/AddAuditDatabaseRequest.ts new file mode 100644 index 000000000..78f2cadcd --- /dev/null +++ b/services/dbss/v1/model/AddAuditDatabaseRequest.ts @@ -0,0 +1,24 @@ +import { CreateDatabaseRequest } from './CreateDatabaseRequest'; + + +export class AddAuditDatabaseRequest { + private 'instance_id'?: string; + public body?: CreateDatabaseRequest; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): AddAuditDatabaseRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: CreateDatabaseRequest): AddAuditDatabaseRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AddAuditDatabaseResponse.ts b/services/dbss/v1/model/AddAuditDatabaseResponse.ts new file mode 100644 index 000000000..7aedde211 --- /dev/null +++ b/services/dbss/v1/model/AddAuditDatabaseResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class AddAuditDatabaseResponse extends SdkResponse { + public id?: string; + public constructor() { + super(); + } + public withId(id: string): AddAuditDatabaseResponse { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AddRdsDatabaseRequest.ts b/services/dbss/v1/model/AddRdsDatabaseRequest.ts new file mode 100644 index 000000000..b83719ed9 --- /dev/null +++ b/services/dbss/v1/model/AddRdsDatabaseRequest.ts @@ -0,0 +1,24 @@ +import { RdsDbRequest } from './RdsDbRequest'; + + +export class AddRdsDatabaseRequest { + private 'instance_id'?: string; + public body?: RdsDbRequest; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): AddRdsDatabaseRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: RdsDbRequest): AddRdsDatabaseRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AddRdsDatabaseResponse.ts b/services/dbss/v1/model/AddRdsDatabaseResponse.ts new file mode 100644 index 000000000..10d641b8c --- /dev/null +++ b/services/dbss/v1/model/AddRdsDatabaseResponse.ts @@ -0,0 +1,20 @@ +import { RdsDbResponseRetList } from './RdsDbResponseRetList'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class AddRdsDatabaseResponse extends SdkResponse { + private 'ret_list'?: Array; + public constructor() { + super(); + } + public withRetList(retList: Array): AddRdsDatabaseResponse { + this['ret_list'] = retList; + return this; + } + public set retList(retList: Array | undefined) { + this['ret_list'] = retList; + } + public get retList(): Array | undefined { + return this['ret_list']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AgentSwitchRequest.ts b/services/dbss/v1/model/AgentSwitchRequest.ts index 66bc746ed..a09916a8f 100644 --- a/services/dbss/v1/model/AgentSwitchRequest.ts +++ b/services/dbss/v1/model/AgentSwitchRequest.ts @@ -2,7 +2,7 @@ export class AgentSwitchRequest { private 'agent_id'?: string; - public status?: number; + public status?: AgentSwitchRequestStatusEnum | number; public constructor(agentId?: string, status?: number) { this['agent_id'] = agentId; this['status'] = status; @@ -17,8 +17,17 @@ export class AgentSwitchRequest { public get agentId(): string | undefined { return this['agent_id']; } - public withStatus(status: number): AgentSwitchRequest { + public withStatus(status: AgentSwitchRequestStatusEnum | number): AgentSwitchRequest { this['status'] = status; return this; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum AgentSwitchRequestStatusEnum { + NUMBER_0 = 0, + NUMBER_1 = 1 +} diff --git a/services/dbss/v1/model/AlarmLogRequest.ts b/services/dbss/v1/model/AlarmLogRequest.ts new file mode 100644 index 000000000..de3c0a44f --- /dev/null +++ b/services/dbss/v1/model/AlarmLogRequest.ts @@ -0,0 +1,56 @@ +import { AlarmLogRequestTime } from './AlarmLogRequestTime'; + + +export class AlarmLogRequest { + public time?: AlarmLogRequestTime; + public risk?: AlarmLogRequestRiskEnum | string; + public type?: string; + public status?: AlarmLogRequestStatusEnum | string; + public page?: number; + public size?: number; + public constructor(time?: AlarmLogRequestTime) { + this['time'] = time; + } + public withTime(time: AlarmLogRequestTime): AlarmLogRequest { + this['time'] = time; + return this; + } + public withRisk(risk: AlarmLogRequestRiskEnum | string): AlarmLogRequest { + this['risk'] = risk; + return this; + } + public withType(type: string): AlarmLogRequest { + this['type'] = type; + return this; + } + public withStatus(status: AlarmLogRequestStatusEnum | string): AlarmLogRequest { + this['status'] = status; + return this; + } + public withPage(page: number): AlarmLogRequest { + this['page'] = page; + return this; + } + public withSize(size: number): AlarmLogRequest { + this['size'] = size; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum AlarmLogRequestRiskEnum { + LOW = 'LOW', + MEDIUM = 'MEDIUM', + HIGH = 'HIGH' +} +/** + * @export + * @enum {string} + */ +export enum AlarmLogRequestStatusEnum { + DONE = 'DONE', + UNDO = 'UNDO' +} diff --git a/services/dbss/v1/model/AlarmLogRequestTime.ts b/services/dbss/v1/model/AlarmLogRequestTime.ts new file mode 100644 index 000000000..1f96b033f --- /dev/null +++ b/services/dbss/v1/model/AlarmLogRequestTime.ts @@ -0,0 +1,53 @@ + + +export class AlarmLogRequestTime { + private 'time_range'?: AlarmLogRequestTimeTimeRangeEnum | string; + private 'start_time'?: string; + private 'end_time'?: string; + public constructor() { + } + public withTimeRange(timeRange: AlarmLogRequestTimeTimeRangeEnum | string): AlarmLogRequestTime { + this['time_range'] = timeRange; + return this; + } + public set timeRange(timeRange: AlarmLogRequestTimeTimeRangeEnum | string | undefined) { + this['time_range'] = timeRange; + } + public get timeRange(): AlarmLogRequestTimeTimeRangeEnum | string | undefined { + return this['time_range']; + } + public withStartTime(startTime: string): AlarmLogRequestTime { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withEndTime(endTime: string): AlarmLogRequestTime { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime(): string | undefined { + return this['end_time']; + } +} + +/** + * @export + * @enum {string} + */ +export enum AlarmLogRequestTimeTimeRangeEnum { + HALF_HOUR = 'HALF_HOUR', + HOUR = ' HOUR', + THREE_HOUR = ' THREE_HOUR', + TWELVE_HOUR = ' TWELVE_HOUR', + DAY = ' DAY', + WEEK = ' WEEK', + MONTH = ' MONTH;' +} diff --git a/services/dbss/v1/model/AlarmLogResponseAlarmLog.ts b/services/dbss/v1/model/AlarmLogResponseAlarmLog.ts new file mode 100644 index 000000000..82fa72b2b --- /dev/null +++ b/services/dbss/v1/model/AlarmLogResponseAlarmLog.ts @@ -0,0 +1,87 @@ + + +export class AlarmLogResponseAlarmLog { + public id?: string; + public alarmLife?: string; + public sendEmail?: boolean; + private 'alarm_time'?: string; + private 'alarm_type'?: string; + private 'alarm_fix_time'?: string; + private 'alarm_status'?: string; + private 'alarm_risk'?: string; + private 'alarm_description'?: string; + public constructor() { + } + public withId(id: string): AlarmLogResponseAlarmLog { + this['id'] = id; + return this; + } + public withAlarmLife(alarmLife: string): AlarmLogResponseAlarmLog { + this['alarmLife'] = alarmLife; + return this; + } + public withSendEmail(sendEmail: boolean): AlarmLogResponseAlarmLog { + this['sendEmail'] = sendEmail; + return this; + } + public withAlarmTime(alarmTime: string): AlarmLogResponseAlarmLog { + this['alarm_time'] = alarmTime; + return this; + } + public set alarmTime(alarmTime: string | undefined) { + this['alarm_time'] = alarmTime; + } + public get alarmTime(): string | undefined { + return this['alarm_time']; + } + public withAlarmType(alarmType: string): AlarmLogResponseAlarmLog { + this['alarm_type'] = alarmType; + return this; + } + public set alarmType(alarmType: string | undefined) { + this['alarm_type'] = alarmType; + } + public get alarmType(): string | undefined { + return this['alarm_type']; + } + public withAlarmFixTime(alarmFixTime: string): AlarmLogResponseAlarmLog { + this['alarm_fix_time'] = alarmFixTime; + return this; + } + public set alarmFixTime(alarmFixTime: string | undefined) { + this['alarm_fix_time'] = alarmFixTime; + } + public get alarmFixTime(): string | undefined { + return this['alarm_fix_time']; + } + public withAlarmStatus(alarmStatus: string): AlarmLogResponseAlarmLog { + this['alarm_status'] = alarmStatus; + return this; + } + public set alarmStatus(alarmStatus: string | undefined) { + this['alarm_status'] = alarmStatus; + } + public get alarmStatus(): string | undefined { + return this['alarm_status']; + } + public withAlarmRisk(alarmRisk: string): AlarmLogResponseAlarmLog { + this['alarm_risk'] = alarmRisk; + return this; + } + public set alarmRisk(alarmRisk: string | undefined) { + this['alarm_risk'] = alarmRisk; + } + public get alarmRisk(): string | undefined { + return this['alarm_risk']; + } + public withAlarmDescription(alarmDescription: string): AlarmLogResponseAlarmLog { + this['alarm_description'] = alarmDescription; + return this; + } + public set alarmDescription(alarmDescription: string | undefined) { + this['alarm_description'] = alarmDescription; + } + public get alarmDescription(): string | undefined { + return this['alarm_description']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AuditAgentRequest.ts b/services/dbss/v1/model/AuditAgentRequest.ts new file mode 100644 index 000000000..5d8a1498f --- /dev/null +++ b/services/dbss/v1/model/AuditAgentRequest.ts @@ -0,0 +1,129 @@ + + +export class AuditAgentRequest { + private 'db_id'?: string; + public mode?: AuditAgentRequestModeEnum | number; + private 'agent_id'?: string; + private 'agent_type'?: AuditAgentRequestAgentTypeEnum | string; + private 'agent_os'?: AuditAgentRequestAgentOsEnum | string; + private 'agent_ip'?: string; + private 'agent_nic'?: string; + private 'cpu_threshold'?: number; + private 'mem_threshold'?: number; + public constructor(dbId?: string, mode?: number, agentType?: string, agentOs?: string) { + this['db_id'] = dbId; + this['mode'] = mode; + this['agent_type'] = agentType; + this['agent_os'] = agentOs; + } + public withDbId(dbId: string): AuditAgentRequest { + this['db_id'] = dbId; + return this; + } + public set dbId(dbId: string | undefined) { + this['db_id'] = dbId; + } + public get dbId(): string | undefined { + return this['db_id']; + } + public withMode(mode: AuditAgentRequestModeEnum | number): AuditAgentRequest { + this['mode'] = mode; + return this; + } + public withAgentId(agentId: string): AuditAgentRequest { + this['agent_id'] = agentId; + return this; + } + public set agentId(agentId: string | undefined) { + this['agent_id'] = agentId; + } + public get agentId(): string | undefined { + return this['agent_id']; + } + public withAgentType(agentType: AuditAgentRequestAgentTypeEnum | string): AuditAgentRequest { + this['agent_type'] = agentType; + return this; + } + public set agentType(agentType: AuditAgentRequestAgentTypeEnum | string | undefined) { + this['agent_type'] = agentType; + } + public get agentType(): AuditAgentRequestAgentTypeEnum | string | undefined { + return this['agent_type']; + } + public withAgentOs(agentOs: AuditAgentRequestAgentOsEnum | string): AuditAgentRequest { + this['agent_os'] = agentOs; + return this; + } + public set agentOs(agentOs: AuditAgentRequestAgentOsEnum | string | undefined) { + this['agent_os'] = agentOs; + } + public get agentOs(): AuditAgentRequestAgentOsEnum | string | undefined { + return this['agent_os']; + } + public withAgentIp(agentIp: string): AuditAgentRequest { + this['agent_ip'] = agentIp; + return this; + } + public set agentIp(agentIp: string | undefined) { + this['agent_ip'] = agentIp; + } + public get agentIp(): string | undefined { + return this['agent_ip']; + } + public withAgentNic(agentNic: string): AuditAgentRequest { + this['agent_nic'] = agentNic; + return this; + } + public set agentNic(agentNic: string | undefined) { + this['agent_nic'] = agentNic; + } + public get agentNic(): string | undefined { + return this['agent_nic']; + } + public withCpuThreshold(cpuThreshold: number): AuditAgentRequest { + this['cpu_threshold'] = cpuThreshold; + return this; + } + public set cpuThreshold(cpuThreshold: number | undefined) { + this['cpu_threshold'] = cpuThreshold; + } + public get cpuThreshold(): number | undefined { + return this['cpu_threshold']; + } + public withMemThreshold(memThreshold: number): AuditAgentRequest { + this['mem_threshold'] = memThreshold; + return this; + } + public set memThreshold(memThreshold: number | undefined) { + this['mem_threshold'] = memThreshold; + } + public get memThreshold(): number | undefined { + return this['mem_threshold']; + } +} + +/** + * @export + * @enum {string} + */ +export enum AuditAgentRequestModeEnum { + NUMBER_0 = 0, + NUMBER_1 = 1 +} +/** + * @export + * @enum {string} + */ +export enum AuditAgentRequestAgentTypeEnum { + APP = 'APP', + DB = 'DB' +} +/** + * @export + * @enum {string} + */ +export enum AuditAgentRequestAgentOsEnum { + LINUX64_X86 = 'LINUX64_X86', + LINUX64_ARM = 'LINUX64_ARM', + WINDOWS64 = 'WINDOWS64' +} diff --git a/services/dbss/v1/model/AuditAgentRespoonseAgents.ts b/services/dbss/v1/model/AuditAgentRespoonseAgents.ts new file mode 100644 index 000000000..5488373a8 --- /dev/null +++ b/services/dbss/v1/model/AuditAgentRespoonseAgents.ts @@ -0,0 +1,135 @@ + + +export class AuditAgentRespoonseAgents { + private 'agent_id'?: string; + private 'agent_type'?: string; + private 'agent_os'?: string; + private 'agent_ip'?: string; + private 'mem_threshold'?: number; + private 'cpu_threshold'?: number; + public status?: number; + private 'agent_nic'?: string; + private 'db_name'?: string; + private 'datacap_status'?: number; + private 'agent_url'?: string; + public universal?: boolean; + public sha256?: string; + public constructor(agentId?: string, agentType?: string, agentOs?: string, agentIp?: string) { + this['agent_id'] = agentId; + this['agent_type'] = agentType; + this['agent_os'] = agentOs; + this['agent_ip'] = agentIp; + } + public withAgentId(agentId: string): AuditAgentRespoonseAgents { + this['agent_id'] = agentId; + return this; + } + public set agentId(agentId: string | undefined) { + this['agent_id'] = agentId; + } + public get agentId(): string | undefined { + return this['agent_id']; + } + public withAgentType(agentType: string): AuditAgentRespoonseAgents { + this['agent_type'] = agentType; + return this; + } + public set agentType(agentType: string | undefined) { + this['agent_type'] = agentType; + } + public get agentType(): string | undefined { + return this['agent_type']; + } + public withAgentOs(agentOs: string): AuditAgentRespoonseAgents { + this['agent_os'] = agentOs; + return this; + } + public set agentOs(agentOs: string | undefined) { + this['agent_os'] = agentOs; + } + public get agentOs(): string | undefined { + return this['agent_os']; + } + public withAgentIp(agentIp: string): AuditAgentRespoonseAgents { + this['agent_ip'] = agentIp; + return this; + } + public set agentIp(agentIp: string | undefined) { + this['agent_ip'] = agentIp; + } + public get agentIp(): string | undefined { + return this['agent_ip']; + } + public withMemThreshold(memThreshold: number): AuditAgentRespoonseAgents { + this['mem_threshold'] = memThreshold; + return this; + } + public set memThreshold(memThreshold: number | undefined) { + this['mem_threshold'] = memThreshold; + } + public get memThreshold(): number | undefined { + return this['mem_threshold']; + } + public withCpuThreshold(cpuThreshold: number): AuditAgentRespoonseAgents { + this['cpu_threshold'] = cpuThreshold; + return this; + } + public set cpuThreshold(cpuThreshold: number | undefined) { + this['cpu_threshold'] = cpuThreshold; + } + public get cpuThreshold(): number | undefined { + return this['cpu_threshold']; + } + public withStatus(status: number): AuditAgentRespoonseAgents { + this['status'] = status; + return this; + } + public withAgentNic(agentNic: string): AuditAgentRespoonseAgents { + this['agent_nic'] = agentNic; + return this; + } + public set agentNic(agentNic: string | undefined) { + this['agent_nic'] = agentNic; + } + public get agentNic(): string | undefined { + return this['agent_nic']; + } + public withDbName(dbName: string): AuditAgentRespoonseAgents { + this['db_name'] = dbName; + return this; + } + public set dbName(dbName: string | undefined) { + this['db_name'] = dbName; + } + public get dbName(): string | undefined { + return this['db_name']; + } + public withDatacapStatus(datacapStatus: number): AuditAgentRespoonseAgents { + this['datacap_status'] = datacapStatus; + return this; + } + public set datacapStatus(datacapStatus: number | undefined) { + this['datacap_status'] = datacapStatus; + } + public get datacapStatus(): number | undefined { + return this['datacap_status']; + } + public withAgentUrl(agentUrl: string): AuditAgentRespoonseAgents { + this['agent_url'] = agentUrl; + return this; + } + public set agentUrl(agentUrl: string | undefined) { + this['agent_url'] = agentUrl; + } + public get agentUrl(): string | undefined { + return this['agent_url']; + } + public withUniversal(universal: boolean): AuditAgentRespoonseAgents { + this['universal'] = universal; + return this; + } + public withSha256(sha256: string): AuditAgentRespoonseAgents { + this['sha256'] = sha256; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AuditSqlRequest.ts b/services/dbss/v1/model/AuditSqlRequest.ts new file mode 100644 index 000000000..a13cb3d92 --- /dev/null +++ b/services/dbss/v1/model/AuditSqlRequest.ts @@ -0,0 +1,144 @@ +import { AuditSqlRequestTime } from './AuditSqlRequestTime'; + + +export class AuditSqlRequest { + public time?: AuditSqlRequestTime; + private 'risk_levels'?: AuditSqlRequestRiskLevelsEnum | string; + private 'client_ip'?: string; + private 'client_name'?: string; + private 'db_ip'?: string; + private 'db_user'?: string; + private 'query_type'?: string; + private 'rule_name'?: string; + private 'sql_statement'?: string; + private 'sql_response'?: string; + public page?: number; + public size?: number; + private 'time_order'?: string; + public constructor(time?: AuditSqlRequestTime) { + this['time'] = time; + } + public withTime(time: AuditSqlRequestTime): AuditSqlRequest { + this['time'] = time; + return this; + } + public withRiskLevels(riskLevels: AuditSqlRequestRiskLevelsEnum | string): AuditSqlRequest { + this['risk_levels'] = riskLevels; + return this; + } + public set riskLevels(riskLevels: AuditSqlRequestRiskLevelsEnum | string | undefined) { + this['risk_levels'] = riskLevels; + } + public get riskLevels(): AuditSqlRequestRiskLevelsEnum | string | undefined { + return this['risk_levels']; + } + public withClientIp(clientIp: string): AuditSqlRequest { + this['client_ip'] = clientIp; + return this; + } + public set clientIp(clientIp: string | undefined) { + this['client_ip'] = clientIp; + } + public get clientIp(): string | undefined { + return this['client_ip']; + } + public withClientName(clientName: string): AuditSqlRequest { + this['client_name'] = clientName; + return this; + } + public set clientName(clientName: string | undefined) { + this['client_name'] = clientName; + } + public get clientName(): string | undefined { + return this['client_name']; + } + public withDbIp(dbIp: string): AuditSqlRequest { + this['db_ip'] = dbIp; + return this; + } + public set dbIp(dbIp: string | undefined) { + this['db_ip'] = dbIp; + } + public get dbIp(): string | undefined { + return this['db_ip']; + } + public withDbUser(dbUser: string): AuditSqlRequest { + this['db_user'] = dbUser; + return this; + } + public set dbUser(dbUser: string | undefined) { + this['db_user'] = dbUser; + } + public get dbUser(): string | undefined { + return this['db_user']; + } + public withQueryType(queryType: string): AuditSqlRequest { + this['query_type'] = queryType; + return this; + } + public set queryType(queryType: string | undefined) { + this['query_type'] = queryType; + } + public get queryType(): string | undefined { + return this['query_type']; + } + public withRuleName(ruleName: string): AuditSqlRequest { + this['rule_name'] = ruleName; + return this; + } + public set ruleName(ruleName: string | undefined) { + this['rule_name'] = ruleName; + } + public get ruleName(): string | undefined { + return this['rule_name']; + } + public withSqlStatement(sqlStatement: string): AuditSqlRequest { + this['sql_statement'] = sqlStatement; + return this; + } + public set sqlStatement(sqlStatement: string | undefined) { + this['sql_statement'] = sqlStatement; + } + public get sqlStatement(): string | undefined { + return this['sql_statement']; + } + public withSqlResponse(sqlResponse: string): AuditSqlRequest { + this['sql_response'] = sqlResponse; + return this; + } + public set sqlResponse(sqlResponse: string | undefined) { + this['sql_response'] = sqlResponse; + } + public get sqlResponse(): string | undefined { + return this['sql_response']; + } + public withPage(page: number): AuditSqlRequest { + this['page'] = page; + return this; + } + public withSize(size: number): AuditSqlRequest { + this['size'] = size; + return this; + } + public withTimeOrder(timeOrder: string): AuditSqlRequest { + this['time_order'] = timeOrder; + return this; + } + public set timeOrder(timeOrder: string | undefined) { + this['time_order'] = timeOrder; + } + public get timeOrder(): string | undefined { + return this['time_order']; + } +} + +/** + * @export + * @enum {string} + */ +export enum AuditSqlRequestRiskLevelsEnum { + HIGH = 'HIGH', + MEDIUM = 'MEDIUM', + LOW = 'LOW', + NO_RISK = 'NO_RISK' +} diff --git a/services/dbss/v1/model/AuditSqlRequestTime.ts b/services/dbss/v1/model/AuditSqlRequestTime.ts new file mode 100644 index 000000000..a3f0cf6ec --- /dev/null +++ b/services/dbss/v1/model/AuditSqlRequestTime.ts @@ -0,0 +1,39 @@ + + +export class AuditSqlRequestTime { + private 'time_range'?: string; + private 'start_time'?: string; + private 'end_time'?: string; + public constructor() { + } + public withTimeRange(timeRange: string): AuditSqlRequestTime { + this['time_range'] = timeRange; + return this; + } + public set timeRange(timeRange: string | undefined) { + this['time_range'] = timeRange; + } + public get timeRange(): string | undefined { + return this['time_range']; + } + public withStartTime(startTime: string): AuditSqlRequestTime { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withEndTime(endTime: string): AuditSqlRequestTime { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime(): string | undefined { + return this['end_time']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AuditSqlResponseSql.ts b/services/dbss/v1/model/AuditSqlResponseSql.ts new file mode 100644 index 000000000..6d809451b --- /dev/null +++ b/services/dbss/v1/model/AuditSqlResponseSql.ts @@ -0,0 +1,146 @@ +import { AuditSqlResponseSqlOperatedObjInfo } from './AuditSqlResponseSqlOperatedObjInfo'; + + +export class AuditSqlResponseSql { + public id?: string; + private 'sql_statement'?: string; + private 'client_ip'?: string; + private 'client_name'?: string; + private 'db_ip'?: string; + private 'db_user'?: string; + private 'query_type'?: string; + private 'operated_obj_info'?: Array; + private 'rule_name'?: string; + private 'risk_level'?: string; + private 'start_time'?: string; + private 'sql_response'?: string; + private 'db_instance'?: string; + public constructor(id?: string, sqlResponse?: string) { + this['id'] = id; + this['sql_response'] = sqlResponse; + } + public withId(id: string): AuditSqlResponseSql { + this['id'] = id; + return this; + } + public withSqlStatement(sqlStatement: string): AuditSqlResponseSql { + this['sql_statement'] = sqlStatement; + return this; + } + public set sqlStatement(sqlStatement: string | undefined) { + this['sql_statement'] = sqlStatement; + } + public get sqlStatement(): string | undefined { + return this['sql_statement']; + } + public withClientIp(clientIp: string): AuditSqlResponseSql { + this['client_ip'] = clientIp; + return this; + } + public set clientIp(clientIp: string | undefined) { + this['client_ip'] = clientIp; + } + public get clientIp(): string | undefined { + return this['client_ip']; + } + public withClientName(clientName: string): AuditSqlResponseSql { + this['client_name'] = clientName; + return this; + } + public set clientName(clientName: string | undefined) { + this['client_name'] = clientName; + } + public get clientName(): string | undefined { + return this['client_name']; + } + public withDbIp(dbIp: string): AuditSqlResponseSql { + this['db_ip'] = dbIp; + return this; + } + public set dbIp(dbIp: string | undefined) { + this['db_ip'] = dbIp; + } + public get dbIp(): string | undefined { + return this['db_ip']; + } + public withDbUser(dbUser: string): AuditSqlResponseSql { + this['db_user'] = dbUser; + return this; + } + public set dbUser(dbUser: string | undefined) { + this['db_user'] = dbUser; + } + public get dbUser(): string | undefined { + return this['db_user']; + } + public withQueryType(queryType: string): AuditSqlResponseSql { + this['query_type'] = queryType; + return this; + } + public set queryType(queryType: string | undefined) { + this['query_type'] = queryType; + } + public get queryType(): string | undefined { + return this['query_type']; + } + public withOperatedObjInfo(operatedObjInfo: Array): AuditSqlResponseSql { + this['operated_obj_info'] = operatedObjInfo; + return this; + } + public set operatedObjInfo(operatedObjInfo: Array | undefined) { + this['operated_obj_info'] = operatedObjInfo; + } + public get operatedObjInfo(): Array | undefined { + return this['operated_obj_info']; + } + public withRuleName(ruleName: string): AuditSqlResponseSql { + this['rule_name'] = ruleName; + return this; + } + public set ruleName(ruleName: string | undefined) { + this['rule_name'] = ruleName; + } + public get ruleName(): string | undefined { + return this['rule_name']; + } + public withRiskLevel(riskLevel: string): AuditSqlResponseSql { + this['risk_level'] = riskLevel; + return this; + } + public set riskLevel(riskLevel: string | undefined) { + this['risk_level'] = riskLevel; + } + public get riskLevel(): string | undefined { + return this['risk_level']; + } + public withStartTime(startTime: string): AuditSqlResponseSql { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime(): string | undefined { + return this['start_time']; + } + public withSqlResponse(sqlResponse: string): AuditSqlResponseSql { + this['sql_response'] = sqlResponse; + return this; + } + public set sqlResponse(sqlResponse: string | undefined) { + this['sql_response'] = sqlResponse; + } + public get sqlResponse(): string | undefined { + return this['sql_response']; + } + public withDbInstance(dbInstance: string): AuditSqlResponseSql { + this['db_instance'] = dbInstance; + return this; + } + public set dbInstance(dbInstance: string | undefined) { + this['db_instance'] = dbInstance; + } + public get dbInstance(): string | undefined { + return this['db_instance']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AuditSqlResponseSqlOperatedObjInfo.ts b/services/dbss/v1/model/AuditSqlResponseSqlOperatedObjInfo.ts new file mode 100644 index 000000000..6502e6cb6 --- /dev/null +++ b/services/dbss/v1/model/AuditSqlResponseSqlOperatedObjInfo.ts @@ -0,0 +1,72 @@ + + +export class AuditSqlResponseSqlOperatedObjInfo { + private 'column_name'?: string; + private 'object_type'?: string; + private 'schema_name'?: string; + private 'sql_type'?: string; + private 'sys_name'?: string; + private 'table_name'?: string; + public constructor() { + } + public withColumnName(columnName: string): AuditSqlResponseSqlOperatedObjInfo { + this['column_name'] = columnName; + return this; + } + public set columnName(columnName: string | undefined) { + this['column_name'] = columnName; + } + public get columnName(): string | undefined { + return this['column_name']; + } + public withObjectType(objectType: string): AuditSqlResponseSqlOperatedObjInfo { + this['object_type'] = objectType; + return this; + } + public set objectType(objectType: string | undefined) { + this['object_type'] = objectType; + } + public get objectType(): string | undefined { + return this['object_type']; + } + public withSchemaName(schemaName: string): AuditSqlResponseSqlOperatedObjInfo { + this['schema_name'] = schemaName; + return this; + } + public set schemaName(schemaName: string | undefined) { + this['schema_name'] = schemaName; + } + public get schemaName(): string | undefined { + return this['schema_name']; + } + public withSqlType(sqlType: string): AuditSqlResponseSqlOperatedObjInfo { + this['sql_type'] = sqlType; + return this; + } + public set sqlType(sqlType: string | undefined) { + this['sql_type'] = sqlType; + } + public get sqlType(): string | undefined { + return this['sql_type']; + } + public withSysName(sysName: string): AuditSqlResponseSqlOperatedObjInfo { + this['sys_name'] = sysName; + return this; + } + public set sysName(sysName: string | undefined) { + this['sys_name'] = sysName; + } + public get sysName(): string | undefined { + return this['sys_name']; + } + public withTableName(tableName: string): AuditSqlResponseSqlOperatedObjInfo { + this['table_name'] = tableName; + return this; + } + public set tableName(tableName: string | undefined) { + this['table_name'] = tableName; + } + public get tableName(): string | undefined { + return this['table_name']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AuditSqlResponseSqls.ts b/services/dbss/v1/model/AuditSqlResponseSqls.ts new file mode 100644 index 000000000..5b16dd739 --- /dev/null +++ b/services/dbss/v1/model/AuditSqlResponseSqls.ts @@ -0,0 +1,13 @@ +import { AuditSqlResponseSql } from './AuditSqlResponseSql'; + + +export class AuditSqlResponseSqls { + public sql?: AuditSqlResponseSql; + public constructor(sql?: AuditSqlResponseSql) { + this['sql'] = sql; + } + public withSql(sql: AuditSqlResponseSql): AuditSqlResponseSqls { + this['sql'] = sql; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/AuditSummaryResponseDataList.ts b/services/dbss/v1/model/AuditSummaryResponseDataList.ts new file mode 100644 index 000000000..042615302 --- /dev/null +++ b/services/dbss/v1/model/AuditSummaryResponseDataList.ts @@ -0,0 +1,136 @@ + + +export class AuditSummaryResponseDataList { + public id?: number; + public status?: string; + private 'project_id'?: string; + private 'instance_id'?: number; + private 'instance_name'?: string; + private 'audit_duration'?: number; + private 'total_sql'?: number; + private 'total_risk'?: number; + private 'today_sql'?: number; + private 'today_risk'?: number; + private 'today_session'?: number; + private 'update_time'?: number; + public reserve1?: string; + public reserve2?: string; + public constructor() { + } + public withId(id: number): AuditSummaryResponseDataList { + this['id'] = id; + return this; + } + public withStatus(status: string): AuditSummaryResponseDataList { + this['status'] = status; + return this; + } + public withProjectId(projectId: string): AuditSummaryResponseDataList { + this['project_id'] = projectId; + return this; + } + public set projectId(projectId: string | undefined) { + this['project_id'] = projectId; + } + public get projectId(): string | undefined { + return this['project_id']; + } + public withInstanceId(instanceId: number): AuditSummaryResponseDataList { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: number | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): number | undefined { + return this['instance_id']; + } + public withInstanceName(instanceName: string): AuditSummaryResponseDataList { + this['instance_name'] = instanceName; + return this; + } + public set instanceName(instanceName: string | undefined) { + this['instance_name'] = instanceName; + } + public get instanceName(): string | undefined { + return this['instance_name']; + } + public withAuditDuration(auditDuration: number): AuditSummaryResponseDataList { + this['audit_duration'] = auditDuration; + return this; + } + public set auditDuration(auditDuration: number | undefined) { + this['audit_duration'] = auditDuration; + } + public get auditDuration(): number | undefined { + return this['audit_duration']; + } + public withTotalSql(totalSql: number): AuditSummaryResponseDataList { + this['total_sql'] = totalSql; + return this; + } + public set totalSql(totalSql: number | undefined) { + this['total_sql'] = totalSql; + } + public get totalSql(): number | undefined { + return this['total_sql']; + } + public withTotalRisk(totalRisk: number): AuditSummaryResponseDataList { + this['total_risk'] = totalRisk; + return this; + } + public set totalRisk(totalRisk: number | undefined) { + this['total_risk'] = totalRisk; + } + public get totalRisk(): number | undefined { + return this['total_risk']; + } + public withTodaySql(todaySql: number): AuditSummaryResponseDataList { + this['today_sql'] = todaySql; + return this; + } + public set todaySql(todaySql: number | undefined) { + this['today_sql'] = todaySql; + } + public get todaySql(): number | undefined { + return this['today_sql']; + } + public withTodayRisk(todayRisk: number): AuditSummaryResponseDataList { + this['today_risk'] = todayRisk; + return this; + } + public set todayRisk(todayRisk: number | undefined) { + this['today_risk'] = todayRisk; + } + public get todayRisk(): number | undefined { + return this['today_risk']; + } + public withTodaySession(todaySession: number): AuditSummaryResponseDataList { + this['today_session'] = todaySession; + return this; + } + public set todaySession(todaySession: number | undefined) { + this['today_session'] = todaySession; + } + public get todaySession(): number | undefined { + return this['today_session']; + } + public withUpdateTime(updateTime: number): AuditSummaryResponseDataList { + this['update_time'] = updateTime; + return this; + } + public set updateTime(updateTime: number | undefined) { + this['update_time'] = updateTime; + } + public get updateTime(): number | undefined { + return this['update_time']; + } + public withReserve1(reserve1: string): AuditSummaryResponseDataList { + this['reserve1'] = reserve1; + return this; + } + public withReserve2(reserve2: string): AuditSummaryResponseDataList { + this['reserve2'] = reserve2; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/BatchAddResourceTagRequest.ts b/services/dbss/v1/model/BatchAddResourceTagRequest.ts index 561a1a2c1..c304ee196 100644 --- a/services/dbss/v1/model/BatchAddResourceTagRequest.ts +++ b/services/dbss/v1/model/BatchAddResourceTagRequest.ts @@ -2,21 +2,21 @@ import { ResourceTagRequest } from './ResourceTagRequest'; export class BatchAddResourceTagRequest { - private 'resource_type'?: string; + private 'resource_type'?: BatchAddResourceTagRequestResourceTypeEnum | string; private 'resource_id'?: string; public body?: ResourceTagRequest; public constructor(resourceType?: string, resourceId?: string) { this['resource_type'] = resourceType; this['resource_id'] = resourceId; } - public withResourceType(resourceType: string): BatchAddResourceTagRequest { + public withResourceType(resourceType: BatchAddResourceTagRequestResourceTypeEnum | string): BatchAddResourceTagRequest { this['resource_type'] = resourceType; return this; } - public set resourceType(resourceType: string | undefined) { + public set resourceType(resourceType: BatchAddResourceTagRequestResourceTypeEnum | string | undefined) { this['resource_type'] = resourceType; } - public get resourceType(): string | undefined { + public get resourceType(): BatchAddResourceTagRequestResourceTypeEnum | string | undefined { return this['resource_type']; } public withResourceId(resourceId: string): BatchAddResourceTagRequest { @@ -33,4 +33,12 @@ export class BatchAddResourceTagRequest { this['body'] = body; return this; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum BatchAddResourceTagRequestResourceTypeEnum { + AUDITINSTANCE = 'auditInstance' +} diff --git a/services/dbss/v1/model/BatchDeleteResourceTagRequest.ts b/services/dbss/v1/model/BatchDeleteResourceTagRequest.ts index fac9dc46b..bc2d88da8 100644 --- a/services/dbss/v1/model/BatchDeleteResourceTagRequest.ts +++ b/services/dbss/v1/model/BatchDeleteResourceTagRequest.ts @@ -1,22 +1,22 @@ -import { ResourceTagRequest } from './ResourceTagRequest'; +import { ResourceTagDeleteRequest } from './ResourceTagDeleteRequest'; export class BatchDeleteResourceTagRequest { - private 'resource_type'?: string; + private 'resource_type'?: BatchDeleteResourceTagRequestResourceTypeEnum | string; private 'resource_id'?: string; - public body?: ResourceTagRequest; + public body?: ResourceTagDeleteRequest; public constructor(resourceType?: string, resourceId?: string) { this['resource_type'] = resourceType; this['resource_id'] = resourceId; } - public withResourceType(resourceType: string): BatchDeleteResourceTagRequest { + public withResourceType(resourceType: BatchDeleteResourceTagRequestResourceTypeEnum | string): BatchDeleteResourceTagRequest { this['resource_type'] = resourceType; return this; } - public set resourceType(resourceType: string | undefined) { + public set resourceType(resourceType: BatchDeleteResourceTagRequestResourceTypeEnum | string | undefined) { this['resource_type'] = resourceType; } - public get resourceType(): string | undefined { + public get resourceType(): BatchDeleteResourceTagRequestResourceTypeEnum | string | undefined { return this['resource_type']; } public withResourceId(resourceId: string): BatchDeleteResourceTagRequest { @@ -29,8 +29,16 @@ export class BatchDeleteResourceTagRequest { public get resourceId(): string | undefined { return this['resource_id']; } - public withBody(body: ResourceTagRequest): BatchDeleteResourceTagRequest { + public withBody(body: ResourceTagDeleteRequest): BatchDeleteResourceTagRequest { this['body'] = body; return this; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum BatchDeleteResourceTagRequestResourceTypeEnum { + AUDITINSTANCE = 'auditInstance' +} diff --git a/services/dbss/v1/model/CountResourceInstanceByTagRequest.ts b/services/dbss/v1/model/CountResourceInstanceByTagRequest.ts index 75819cdf0..732a3c2cf 100644 --- a/services/dbss/v1/model/CountResourceInstanceByTagRequest.ts +++ b/services/dbss/v1/model/CountResourceInstanceByTagRequest.ts @@ -2,23 +2,31 @@ import { ResourceInstanceTagRequest } from './ResourceInstanceTagRequest'; export class CountResourceInstanceByTagRequest { - private 'resource_type'?: string; + private 'resource_type'?: CountResourceInstanceByTagRequestResourceTypeEnum | string; public body?: ResourceInstanceTagRequest; public constructor(resourceType?: string) { this['resource_type'] = resourceType; } - public withResourceType(resourceType: string): CountResourceInstanceByTagRequest { + public withResourceType(resourceType: CountResourceInstanceByTagRequestResourceTypeEnum | string): CountResourceInstanceByTagRequest { this['resource_type'] = resourceType; return this; } - public set resourceType(resourceType: string | undefined) { + public set resourceType(resourceType: CountResourceInstanceByTagRequestResourceTypeEnum | string | undefined) { this['resource_type'] = resourceType; } - public get resourceType(): string | undefined { + public get resourceType(): CountResourceInstanceByTagRequestResourceTypeEnum | string | undefined { return this['resource_type']; } public withBody(body: ResourceInstanceTagRequest): CountResourceInstanceByTagRequest { this['body'] = body; return this; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum CountResourceInstanceByTagRequestResourceTypeEnum { + AUDITINSTANCE = 'auditInstance' +} diff --git a/services/dbss/v1/model/CreateDatabaseRequest.ts b/services/dbss/v1/model/CreateDatabaseRequest.ts new file mode 100644 index 000000000..d136a9000 --- /dev/null +++ b/services/dbss/v1/model/CreateDatabaseRequest.ts @@ -0,0 +1,13 @@ +import { CreateDatabaseRequestDatabase } from './CreateDatabaseRequestDatabase'; + + +export class CreateDatabaseRequest { + public database?: CreateDatabaseRequestDatabase; + public constructor(database?: CreateDatabaseRequestDatabase) { + this['database'] = database; + } + public withDatabase(database: CreateDatabaseRequestDatabase): CreateDatabaseRequest { + this['database'] = database; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/CreateDatabaseRequestDatabase.ts b/services/dbss/v1/model/CreateDatabaseRequestDatabase.ts new file mode 100644 index 000000000..e57d48bd8 --- /dev/null +++ b/services/dbss/v1/model/CreateDatabaseRequestDatabase.ts @@ -0,0 +1,80 @@ + + +export class CreateDatabaseRequestDatabase { + private 'db_classification'?: string; + public name?: string; + public type?: string; + public version?: string; + public charset?: CreateDatabaseRequestDatabaseCharsetEnum | string; + public ip?: string; + public port?: string; + public os?: string; + private 'instance_name'?: string; + public constructor(dbClassification?: string, name?: string, type?: string, version?: string, charset?: string, ip?: string, port?: string, os?: string) { + this['db_classification'] = dbClassification; + this['name'] = name; + this['type'] = type; + this['version'] = version; + this['charset'] = charset; + this['ip'] = ip; + this['port'] = port; + this['os'] = os; + } + public withDbClassification(dbClassification: string): CreateDatabaseRequestDatabase { + this['db_classification'] = dbClassification; + return this; + } + public set dbClassification(dbClassification: string | undefined) { + this['db_classification'] = dbClassification; + } + public get dbClassification(): string | undefined { + return this['db_classification']; + } + public withName(name: string): CreateDatabaseRequestDatabase { + this['name'] = name; + return this; + } + public withType(type: string): CreateDatabaseRequestDatabase { + this['type'] = type; + return this; + } + public withVersion(version: string): CreateDatabaseRequestDatabase { + this['version'] = version; + return this; + } + public withCharset(charset: CreateDatabaseRequestDatabaseCharsetEnum | string): CreateDatabaseRequestDatabase { + this['charset'] = charset; + return this; + } + public withIp(ip: string): CreateDatabaseRequestDatabase { + this['ip'] = ip; + return this; + } + public withPort(port: string): CreateDatabaseRequestDatabase { + this['port'] = port; + return this; + } + public withOs(os: string): CreateDatabaseRequestDatabase { + this['os'] = os; + return this; + } + public withInstanceName(instanceName: string): CreateDatabaseRequestDatabase { + this['instance_name'] = instanceName; + return this; + } + public set instanceName(instanceName: string | undefined) { + this['instance_name'] = instanceName; + } + public get instanceName(): string | undefined { + return this['instance_name']; + } +} + +/** + * @export + * @enum {string} + */ +export enum CreateDatabaseRequestDatabaseCharsetEnum { + GBK = 'GBK', + UTF8 = 'UTF8' +} diff --git a/services/dbss/v1/model/CreateInstancePeriodRequest.ts b/services/dbss/v1/model/CreateInstancePeriodRequest.ts index 43c963f71..d7f799234 100644 --- a/services/dbss/v1/model/CreateInstancePeriodRequest.ts +++ b/services/dbss/v1/model/CreateInstancePeriodRequest.ts @@ -5,8 +5,8 @@ import { KeyValueBean } from './KeyValueBean'; export class CreateInstancePeriodRequest { - private 'flavor_ref'?: string; public name?: string; + private 'flavor_ref'?: string; private 'vpc_id'?: string; private 'availability_zone'?: string; private 'enterprise_project_id'?: string; @@ -23,12 +23,11 @@ export class CreateInstancePeriodRequest { public tags?: Array; private 'promotion_info'?: string; private 'is_auto_renew'?: number; - public constructor(flavorRef?: string, name?: string, vpcId?: string, availabilityZone?: string, enterpriseProjectId?: string, nics?: Array, securityGroups?: Array, region?: string, cloudServiceType?: string, chargingMode?: number, periodType?: number, periodNum?: number, subscriptionNum?: number, productInfos?: Array) { - this['flavor_ref'] = flavorRef; + public constructor(name?: string, flavorRef?: string, vpcId?: string, availabilityZone?: string, nics?: Array, securityGroups?: Array, region?: string, cloudServiceType?: string, chargingMode?: number, periodType?: number, periodNum?: number, subscriptionNum?: number, productInfos?: Array) { this['name'] = name; + this['flavor_ref'] = flavorRef; this['vpc_id'] = vpcId; this['availability_zone'] = availabilityZone; - this['enterprise_project_id'] = enterpriseProjectId; this['nics'] = nics; this['security_groups'] = securityGroups; this['region'] = region; @@ -39,6 +38,10 @@ export class CreateInstancePeriodRequest { this['subscription_num'] = subscriptionNum; this['product_infos'] = productInfos; } + public withName(name: string): CreateInstancePeriodRequest { + this['name'] = name; + return this; + } public withFlavorRef(flavorRef: string): CreateInstancePeriodRequest { this['flavor_ref'] = flavorRef; return this; @@ -49,10 +52,6 @@ export class CreateInstancePeriodRequest { public get flavorRef(): string | undefined { return this['flavor_ref']; } - public withName(name: string): CreateInstancePeriodRequest { - this['name'] = name; - return this; - } public withVpcId(vpcId: string): CreateInstancePeriodRequest { this['vpc_id'] = vpcId; return this; diff --git a/services/dbss/v1/model/CreateInstancePeriodRequestProductInfos.ts b/services/dbss/v1/model/CreateInstancePeriodRequestProductInfos.ts index 6e4425185..d74c4f412 100644 --- a/services/dbss/v1/model/CreateInstancePeriodRequestProductInfos.ts +++ b/services/dbss/v1/model/CreateInstancePeriodRequestProductInfos.ts @@ -6,12 +6,11 @@ export class CreateInstancePeriodRequestProductInfos { private 'resource_type'?: string; private 'resource_spec_code'?: string; private 'product_spec_desc'?: string; - public constructor(productId?: string, cloudServiceType?: string, resourceType?: string, resourceSpecCode?: string, productSpecDesc?: string) { + public constructor(productId?: string, cloudServiceType?: string, resourceType?: string, resourceSpecCode?: string) { this['product_id'] = productId; this['cloud_service_type'] = cloudServiceType; this['resource_type'] = resourceType; this['resource_spec_code'] = resourceSpecCode; - this['product_spec_desc'] = productSpecDesc; } public withProductId(productId: string): CreateInstancePeriodRequestProductInfos { this['product_id'] = productId; diff --git a/services/dbss/v1/model/DataBase.ts b/services/dbss/v1/model/DataBase.ts index bdcd1d88b..238b13197 100644 --- a/services/dbss/v1/model/DataBase.ts +++ b/services/dbss/v1/model/DataBase.ts @@ -14,7 +14,12 @@ export class DataBase { private 'audit_status'?: string; private 'agent_url'?: Array; private 'db_classification'?: string; - public constructor(name?: string, type?: string, version?: string, charset?: string, ip?: string, port?: string, os?: string, instanceName?: string, dbClassification?: string) { + private 'rds_audit_switch_mismatch'?: boolean; + private 'rds_id'?: string; + private 'rds_obj_info'?: string; + private 'dws_obj_info'?: string; + private 'clouddb_obj_info'?: string; + public constructor(name?: string, type?: string, version?: string, charset?: string, ip?: string, port?: string, os?: string, status?: string, instanceName?: string, dbClassification?: string) { this['name'] = name; this['type'] = type; this['version'] = version; @@ -22,6 +27,7 @@ export class DataBase { this['ip'] = ip; this['port'] = port; this['os'] = os; + this['status'] = status; this['instance_name'] = instanceName; this['db_classification'] = dbClassification; } @@ -101,4 +107,54 @@ export class DataBase { public get dbClassification(): string | undefined { return this['db_classification']; } + public withRdsAuditSwitchMismatch(rdsAuditSwitchMismatch: boolean): DataBase { + this['rds_audit_switch_mismatch'] = rdsAuditSwitchMismatch; + return this; + } + public set rdsAuditSwitchMismatch(rdsAuditSwitchMismatch: boolean | undefined) { + this['rds_audit_switch_mismatch'] = rdsAuditSwitchMismatch; + } + public get rdsAuditSwitchMismatch(): boolean | undefined { + return this['rds_audit_switch_mismatch']; + } + public withRdsId(rdsId: string): DataBase { + this['rds_id'] = rdsId; + return this; + } + public set rdsId(rdsId: string | undefined) { + this['rds_id'] = rdsId; + } + public get rdsId(): string | undefined { + return this['rds_id']; + } + public withRdsObjInfo(rdsObjInfo: string): DataBase { + this['rds_obj_info'] = rdsObjInfo; + return this; + } + public set rdsObjInfo(rdsObjInfo: string | undefined) { + this['rds_obj_info'] = rdsObjInfo; + } + public get rdsObjInfo(): string | undefined { + return this['rds_obj_info']; + } + public withDwsObjInfo(dwsObjInfo: string): DataBase { + this['dws_obj_info'] = dwsObjInfo; + return this; + } + public set dwsObjInfo(dwsObjInfo: string | undefined) { + this['dws_obj_info'] = dwsObjInfo; + } + public get dwsObjInfo(): string | undefined { + return this['dws_obj_info']; + } + public withClouddbObjInfo(clouddbObjInfo: string): DataBase { + this['clouddb_obj_info'] = clouddbObjInfo; + return this; + } + public set clouddbObjInfo(clouddbObjInfo: string | undefined) { + this['clouddb_obj_info'] = clouddbObjInfo; + } + public get clouddbObjInfo(): string | undefined { + return this['clouddb_obj_info']; + } } \ No newline at end of file diff --git a/services/dbss/v1/model/DeleteAuditAgentRequest.ts b/services/dbss/v1/model/DeleteAuditAgentRequest.ts new file mode 100644 index 000000000..eebcf4599 --- /dev/null +++ b/services/dbss/v1/model/DeleteAuditAgentRequest.ts @@ -0,0 +1,42 @@ + + +export class DeleteAuditAgentRequest { + private 'instance_id'?: string; + private 'agent_id'?: string; + private 'db_id'?: string; + public constructor(instanceId?: string, agentId?: string, dbId?: string) { + this['instance_id'] = instanceId; + this['agent_id'] = agentId; + this['db_id'] = dbId; + } + public withInstanceId(instanceId: string): DeleteAuditAgentRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withAgentId(agentId: string): DeleteAuditAgentRequest { + this['agent_id'] = agentId; + return this; + } + public set agentId(agentId: string | undefined) { + this['agent_id'] = agentId; + } + public get agentId(): string | undefined { + return this['agent_id']; + } + public withDbId(dbId: string): DeleteAuditAgentRequest { + this['db_id'] = dbId; + return this; + } + public set dbId(dbId: string | undefined) { + this['db_id'] = dbId; + } + public get dbId(): string | undefined { + return this['db_id']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DeleteAuditAgentResponse.ts b/services/dbss/v1/model/DeleteAuditAgentResponse.ts new file mode 100644 index 000000000..a39f306ce --- /dev/null +++ b/services/dbss/v1/model/DeleteAuditAgentResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteAuditAgentResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): DeleteAuditAgentResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DeleteAuditDatabaseRequest.ts b/services/dbss/v1/model/DeleteAuditDatabaseRequest.ts new file mode 100644 index 000000000..cdc7b6dbf --- /dev/null +++ b/services/dbss/v1/model/DeleteAuditDatabaseRequest.ts @@ -0,0 +1,30 @@ + + +export class DeleteAuditDatabaseRequest { + private 'instance_id'?: string; + private 'db_id'?: string; + public constructor(instanceId?: string, dbId?: string) { + this['instance_id'] = instanceId; + this['db_id'] = dbId; + } + public withInstanceId(instanceId: string): DeleteAuditDatabaseRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withDbId(dbId: string): DeleteAuditDatabaseRequest { + this['db_id'] = dbId; + return this; + } + public set dbId(dbId: string | undefined) { + this['db_id'] = dbId; + } + public get dbId(): string | undefined { + return this['db_id']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DeleteAuditDatabaseResponse.ts b/services/dbss/v1/model/DeleteAuditDatabaseResponse.ts new file mode 100644 index 000000000..b5dc1e17e --- /dev/null +++ b/services/dbss/v1/model/DeleteAuditDatabaseResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteAuditDatabaseResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): DeleteAuditDatabaseResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DeleteInstanceDemandRequest.ts b/services/dbss/v1/model/DeleteInstanceDemandRequest.ts new file mode 100644 index 000000000..01719a12b --- /dev/null +++ b/services/dbss/v1/model/DeleteInstanceDemandRequest.ts @@ -0,0 +1,34 @@ + + +export class DeleteInstanceDemandRequest { + public id?: string; + private 'delete_publicip'?: boolean; + private 'delete_volume'?: boolean; + public constructor(id?: string) { + this['id'] = id; + } + public withId(id: string): DeleteInstanceDemandRequest { + this['id'] = id; + return this; + } + public withDeletePublicip(deletePublicip: boolean): DeleteInstanceDemandRequest { + this['delete_publicip'] = deletePublicip; + return this; + } + public set deletePublicip(deletePublicip: boolean | undefined) { + this['delete_publicip'] = deletePublicip; + } + public get deletePublicip(): boolean | undefined { + return this['delete_publicip']; + } + public withDeleteVolume(deleteVolume: boolean): DeleteInstanceDemandRequest { + this['delete_volume'] = deleteVolume; + return this; + } + public set deleteVolume(deleteVolume: boolean | undefined) { + this['delete_volume'] = deleteVolume; + } + public get deleteVolume(): boolean | undefined { + return this['delete_volume']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DeleteInstancesRequest.ts b/services/dbss/v1/model/DeleteInstancesRequest.ts new file mode 100644 index 000000000..24048912f --- /dev/null +++ b/services/dbss/v1/model/DeleteInstancesRequest.ts @@ -0,0 +1,12 @@ +import { DeleteInstanceDemandRequest } from './DeleteInstanceDemandRequest'; + + +export class DeleteInstancesRequest { + public body?: DeleteInstanceDemandRequest; + public constructor() { + } + public withBody(body: DeleteInstanceDemandRequest): DeleteInstancesRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DeleteInstancesResponse.ts b/services/dbss/v1/model/DeleteInstancesResponse.ts new file mode 100644 index 000000000..52e799665 --- /dev/null +++ b/services/dbss/v1/model/DeleteInstancesResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteInstancesResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): DeleteInstancesResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DownloadAuditAgentRequest.ts b/services/dbss/v1/model/DownloadAuditAgentRequest.ts new file mode 100644 index 000000000..e6551e453 --- /dev/null +++ b/services/dbss/v1/model/DownloadAuditAgentRequest.ts @@ -0,0 +1,30 @@ + + +export class DownloadAuditAgentRequest { + private 'instance_id'?: string; + private 'agent_id'?: string; + public constructor(instanceId?: string, agentId?: string) { + this['instance_id'] = instanceId; + this['agent_id'] = agentId; + } + public withInstanceId(instanceId: string): DownloadAuditAgentRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withAgentId(agentId: string): DownloadAuditAgentRequest { + this['agent_id'] = agentId; + return this; + } + public set agentId(agentId: string | undefined) { + this['agent_id'] = agentId; + } + public get agentId(): string | undefined { + return this['agent_id']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/DownloadAuditAgentResponse.ts b/services/dbss/v1/model/DownloadAuditAgentResponse.ts new file mode 100644 index 000000000..293b496ba --- /dev/null +++ b/services/dbss/v1/model/DownloadAuditAgentResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DownloadAuditAgentResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): DownloadAuditAgentResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/EcsSpecificationBean.ts b/services/dbss/v1/model/EcsSpecificationBean.ts index c0ceeeb1e..671ccff90 100644 --- a/services/dbss/v1/model/EcsSpecificationBean.ts +++ b/services/dbss/v1/model/EcsSpecificationBean.ts @@ -8,6 +8,7 @@ export class EcsSpecificationBean { public proxy?: number; public ram?: number; public vcpus?: number; + private 'az_type'?: string; public constructor(azs?: Array, id?: string, level?: string, name?: string, proxy?: number, ram?: number, vcpus?: number) { this['azs'] = azs; this['id'] = id; @@ -45,4 +46,14 @@ export class EcsSpecificationBean { this['vcpus'] = vcpus; return this; } + public withAzType(azType: string): EcsSpecificationBean { + this['az_type'] = azType; + return this; + } + public set azType(azType: string | undefined) { + this['az_type'] = azType; + } + public get azType(): string | undefined { + return this['az_type']; + } } \ No newline at end of file diff --git a/services/dbss/v1/model/JobBean.ts b/services/dbss/v1/model/JobBean.ts index 2d2161f47..14ff926c3 100644 --- a/services/dbss/v1/model/JobBean.ts +++ b/services/dbss/v1/model/JobBean.ts @@ -6,6 +6,7 @@ export class JobBean { private 'job_type'?: string; private 'server_id'?: string; private 'server_name'?: string; + private 'resource_id'?: string; private 'begin_time'?: number; private 'end_time'?: number; private 'charge_mode'?: string; @@ -13,12 +14,13 @@ export class JobBean { private 'fail_reason'?: string; private 'ha_id'?: string; private 'ha_name'?: string; - public constructor(jobId?: string, status?: string, jobType?: string, serverId?: string, serverName?: string, beginTime?: number, endTime?: number, chargeMode?: string) { + public constructor(jobId?: string, status?: string, jobType?: string, serverId?: string, serverName?: string, resourceId?: string, beginTime?: number, endTime?: number, chargeMode?: string) { this['job_id'] = jobId; this['status'] = status; this['job_type'] = jobType; this['server_id'] = serverId; this['server_name'] = serverName; + this['resource_id'] = resourceId; this['begin_time'] = beginTime; this['end_time'] = endTime; this['charge_mode'] = chargeMode; @@ -67,6 +69,16 @@ export class JobBean { public get serverName(): string | undefined { return this['server_name']; } + public withResourceId(resourceId: string): JobBean { + this['resource_id'] = resourceId; + return this; + } + public set resourceId(resourceId: string | undefined) { + this['resource_id'] = resourceId; + } + public get resourceId(): string | undefined { + return this['resource_id']; + } public withBeginTime(beginTime: number): JobBean { this['begin_time'] = beginTime; return this; diff --git a/services/dbss/v1/model/KeyValueBean.ts b/services/dbss/v1/model/KeyValueBean.ts index 66dc01e0b..1c2f40d49 100644 --- a/services/dbss/v1/model/KeyValueBean.ts +++ b/services/dbss/v1/model/KeyValueBean.ts @@ -3,9 +3,8 @@ export class KeyValueBean { public key?: string; public value?: string; - public constructor(key?: string, value?: string) { + public constructor(key?: string) { this['key'] = key; - this['value'] = value; } public withKey(key: string): KeyValueBean { this['key'] = key; diff --git a/services/dbss/v1/model/ListAuditAgentRequest.ts b/services/dbss/v1/model/ListAuditAgentRequest.ts new file mode 100644 index 000000000..9d36f32ff --- /dev/null +++ b/services/dbss/v1/model/ListAuditAgentRequest.ts @@ -0,0 +1,40 @@ + + +export class ListAuditAgentRequest { + private 'instance_id'?: string; + private 'db_id'?: string; + public offset?: string; + public limit?: string; + public constructor(instanceId?: string, dbId?: string) { + this['instance_id'] = instanceId; + this['db_id'] = dbId; + } + public withInstanceId(instanceId: string): ListAuditAgentRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withDbId(dbId: string): ListAuditAgentRequest { + this['db_id'] = dbId; + return this; + } + public set dbId(dbId: string | undefined) { + this['db_id'] = dbId; + } + public get dbId(): string | undefined { + return this['db_id']; + } + public withOffset(offset: string): ListAuditAgentRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: string): ListAuditAgentRequest { + this['limit'] = limit; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListAuditAgentResponse.ts b/services/dbss/v1/model/ListAuditAgentResponse.ts new file mode 100644 index 000000000..012b2198b --- /dev/null +++ b/services/dbss/v1/model/ListAuditAgentResponse.ts @@ -0,0 +1,14 @@ +import { AuditAgentRespoonseAgents } from './AuditAgentRespoonseAgents'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAuditAgentResponse extends SdkResponse { + public agents?: Array; + public constructor() { + super(); + } + public withAgents(agents: Array): ListAuditAgentResponse { + this['agents'] = agents; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListAuditAlarmLogRequest.ts b/services/dbss/v1/model/ListAuditAlarmLogRequest.ts new file mode 100644 index 000000000..b886acc71 --- /dev/null +++ b/services/dbss/v1/model/ListAuditAlarmLogRequest.ts @@ -0,0 +1,24 @@ +import { AlarmLogRequest } from './AlarmLogRequest'; + + +export class ListAuditAlarmLogRequest { + private 'instance_id'?: string; + public body?: AlarmLogRequest; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ListAuditAlarmLogRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: AlarmLogRequest): ListAuditAlarmLogRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListAuditAlarmLogResponse.ts b/services/dbss/v1/model/ListAuditAlarmLogResponse.ts new file mode 100644 index 000000000..6e9980a34 --- /dev/null +++ b/services/dbss/v1/model/ListAuditAlarmLogResponse.ts @@ -0,0 +1,31 @@ +import { AlarmLogResponseAlarmLog } from './AlarmLogResponseAlarmLog'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAuditAlarmLogResponse extends SdkResponse { + private 'total_num'?: number; + private 'alarm_log'?: Array; + public constructor() { + super(); + } + public withTotalNum(totalNum: number): ListAuditAlarmLogResponse { + this['total_num'] = totalNum; + return this; + } + public set totalNum(totalNum: number | undefined) { + this['total_num'] = totalNum; + } + public get totalNum(): number | undefined { + return this['total_num']; + } + public withAlarmLog(alarmLog: Array): ListAuditAlarmLogResponse { + this['alarm_log'] = alarmLog; + return this; + } + public set alarmLog(alarmLog: Array | undefined) { + this['alarm_log'] = alarmLog; + } + public get alarmLog(): Array | undefined { + return this['alarm_log']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListAuditRuleRisksRequest.ts b/services/dbss/v1/model/ListAuditRuleRisksRequest.ts index 53122252e..6470f9f94 100644 --- a/services/dbss/v1/model/ListAuditRuleRisksRequest.ts +++ b/services/dbss/v1/model/ListAuditRuleRisksRequest.ts @@ -3,7 +3,7 @@ export class ListAuditRuleRisksRequest { private 'instance_id'?: string; public name?: string; - private 'risk_levels'?: string; + private 'risk_levels'?: ListAuditRuleRisksRequestRiskLevelsEnum | string; public constructor(instanceId?: string) { this['instance_id'] = instanceId; } @@ -21,14 +21,25 @@ export class ListAuditRuleRisksRequest { this['name'] = name; return this; } - public withRiskLevels(riskLevels: string): ListAuditRuleRisksRequest { + public withRiskLevels(riskLevels: ListAuditRuleRisksRequestRiskLevelsEnum | string): ListAuditRuleRisksRequest { this['risk_levels'] = riskLevels; return this; } - public set riskLevels(riskLevels: string | undefined) { + public set riskLevels(riskLevels: ListAuditRuleRisksRequestRiskLevelsEnum | string | undefined) { this['risk_levels'] = riskLevels; } - public get riskLevels(): string | undefined { + public get riskLevels(): ListAuditRuleRisksRequestRiskLevelsEnum | string | undefined { return this['risk_levels']; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum ListAuditRuleRisksRequestRiskLevelsEnum { + LOW = 'LOW', + MEDIUM = 'MEDIUM', + HIGH = 'HIGH', + NO_RISK = 'NO_RISK' +} diff --git a/services/dbss/v1/model/ListAuditSqlsRequest.ts b/services/dbss/v1/model/ListAuditSqlsRequest.ts new file mode 100644 index 000000000..dd6d83213 --- /dev/null +++ b/services/dbss/v1/model/ListAuditSqlsRequest.ts @@ -0,0 +1,24 @@ +import { AuditSqlRequest } from './AuditSqlRequest'; + + +export class ListAuditSqlsRequest { + private 'instance_id'?: string; + public body?: AuditSqlRequest; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ListAuditSqlsRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: AuditSqlRequest): ListAuditSqlsRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListAuditSqlsResponse.ts b/services/dbss/v1/model/ListAuditSqlsResponse.ts new file mode 100644 index 000000000..e3a471fad --- /dev/null +++ b/services/dbss/v1/model/ListAuditSqlsResponse.ts @@ -0,0 +1,24 @@ +import { AuditSqlResponseSqls } from './AuditSqlResponseSqls'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAuditSqlsResponse extends SdkResponse { + public total?: number; + public count?: number; + public sqls?: Array; + public constructor() { + super(); + } + public withTotal(total: number): ListAuditSqlsResponse { + this['total'] = total; + return this; + } + public withCount(count: number): ListAuditSqlsResponse { + this['count'] = count; + return this; + } + public withSqls(sqls: Array): ListAuditSqlsResponse { + this['sqls'] = sqls; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListAuditSummaryInfosRequest.ts b/services/dbss/v1/model/ListAuditSummaryInfosRequest.ts new file mode 100644 index 000000000..b928b960c --- /dev/null +++ b/services/dbss/v1/model/ListAuditSummaryInfosRequest.ts @@ -0,0 +1,16 @@ + + +export class ListAuditSummaryInfosRequest { + public offset?: string; + public limit?: string; + public constructor() { + } + public withOffset(offset: string): ListAuditSummaryInfosRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: string): ListAuditSummaryInfosRequest { + this['limit'] = limit; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListAuditSummaryInfosResponse.ts b/services/dbss/v1/model/ListAuditSummaryInfosResponse.ts new file mode 100644 index 000000000..4e3176c83 --- /dev/null +++ b/services/dbss/v1/model/ListAuditSummaryInfosResponse.ts @@ -0,0 +1,113 @@ +import { AuditSummaryResponseDataList } from './AuditSummaryResponseDataList'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAuditSummaryInfosResponse extends SdkResponse { + private 'project_id'?: string; + private 'audit_duration'?: number; + private 'total_sql'?: number; + private 'total_risk'?: number; + private 'today_sql'?: number; + private 'today_risk'?: number; + private 'today_session'?: number; + private 'update_time'?: number; + private 'data_list'?: Array; + public total?: number; + public constructor() { + super(); + } + public withProjectId(projectId: string): ListAuditSummaryInfosResponse { + this['project_id'] = projectId; + return this; + } + public set projectId(projectId: string | undefined) { + this['project_id'] = projectId; + } + public get projectId(): string | undefined { + return this['project_id']; + } + public withAuditDuration(auditDuration: number): ListAuditSummaryInfosResponse { + this['audit_duration'] = auditDuration; + return this; + } + public set auditDuration(auditDuration: number | undefined) { + this['audit_duration'] = auditDuration; + } + public get auditDuration(): number | undefined { + return this['audit_duration']; + } + public withTotalSql(totalSql: number): ListAuditSummaryInfosResponse { + this['total_sql'] = totalSql; + return this; + } + public set totalSql(totalSql: number | undefined) { + this['total_sql'] = totalSql; + } + public get totalSql(): number | undefined { + return this['total_sql']; + } + public withTotalRisk(totalRisk: number): ListAuditSummaryInfosResponse { + this['total_risk'] = totalRisk; + return this; + } + public set totalRisk(totalRisk: number | undefined) { + this['total_risk'] = totalRisk; + } + public get totalRisk(): number | undefined { + return this['total_risk']; + } + public withTodaySql(todaySql: number): ListAuditSummaryInfosResponse { + this['today_sql'] = todaySql; + return this; + } + public set todaySql(todaySql: number | undefined) { + this['today_sql'] = todaySql; + } + public get todaySql(): number | undefined { + return this['today_sql']; + } + public withTodayRisk(todayRisk: number): ListAuditSummaryInfosResponse { + this['today_risk'] = todayRisk; + return this; + } + public set todayRisk(todayRisk: number | undefined) { + this['today_risk'] = todayRisk; + } + public get todayRisk(): number | undefined { + return this['today_risk']; + } + public withTodaySession(todaySession: number): ListAuditSummaryInfosResponse { + this['today_session'] = todaySession; + return this; + } + public set todaySession(todaySession: number | undefined) { + this['today_session'] = todaySession; + } + public get todaySession(): number | undefined { + return this['today_session']; + } + public withUpdateTime(updateTime: number): ListAuditSummaryInfosResponse { + this['update_time'] = updateTime; + return this; + } + public set updateTime(updateTime: number | undefined) { + this['update_time'] = updateTime; + } + public get updateTime(): number | undefined { + return this['update_time']; + } + public withDataList(dataList: Array): ListAuditSummaryInfosResponse { + this['data_list'] = dataList; + return this; + } + public set dataList(dataList: Array | undefined) { + this['data_list'] = dataList; + } + public get dataList(): Array | undefined { + return this['data_list']; + } + public withTotal(total: number): ListAuditSummaryInfosResponse { + this['total'] = total; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListProjectResourceTagsRequest.ts b/services/dbss/v1/model/ListProjectResourceTagsRequest.ts index 9bbf39ac9..9b1048243 100644 --- a/services/dbss/v1/model/ListProjectResourceTagsRequest.ts +++ b/services/dbss/v1/model/ListProjectResourceTagsRequest.ts @@ -1,18 +1,26 @@ export class ListProjectResourceTagsRequest { - private 'resource_type'?: string; + private 'resource_type'?: ListProjectResourceTagsRequestResourceTypeEnum | string; public constructor(resourceType?: string) { this['resource_type'] = resourceType; } - public withResourceType(resourceType: string): ListProjectResourceTagsRequest { + public withResourceType(resourceType: ListProjectResourceTagsRequestResourceTypeEnum | string): ListProjectResourceTagsRequest { this['resource_type'] = resourceType; return this; } - public set resourceType(resourceType: string | undefined) { + public set resourceType(resourceType: ListProjectResourceTagsRequestResourceTypeEnum | string | undefined) { this['resource_type'] = resourceType; } - public get resourceType(): string | undefined { + public get resourceType(): ListProjectResourceTagsRequestResourceTypeEnum | string | undefined { return this['resource_type']; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum ListProjectResourceTagsRequestResourceTypeEnum { + AUDITINSTANCE = 'auditInstance' +} diff --git a/services/dbss/v1/model/ListRdsDatabasesRequest.ts b/services/dbss/v1/model/ListRdsDatabasesRequest.ts new file mode 100644 index 000000000..058c90332 --- /dev/null +++ b/services/dbss/v1/model/ListRdsDatabasesRequest.ts @@ -0,0 +1,45 @@ + + +export class ListRdsDatabasesRequest { + private 'db_type'?: ListRdsDatabasesRequestDbTypeEnum | string; + public offset?: string; + public limit?: string; + public constructor(dbType?: string) { + this['db_type'] = dbType; + } + public withDbType(dbType: ListRdsDatabasesRequestDbTypeEnum | string): ListRdsDatabasesRequest { + this['db_type'] = dbType; + return this; + } + public set dbType(dbType: ListRdsDatabasesRequestDbTypeEnum | string | undefined) { + this['db_type'] = dbType; + } + public get dbType(): ListRdsDatabasesRequestDbTypeEnum | string | undefined { + return this['db_type']; + } + public withOffset(offset: string): ListRdsDatabasesRequest { + this['offset'] = offset; + return this; + } + public withLimit(limit: string): ListRdsDatabasesRequest { + this['limit'] = limit; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum ListRdsDatabasesRequestDbTypeEnum { + MYSQL = 'MYSQL', + ORACLE = 'ORACLE', + POSTGRESQL = 'POSTGRESQL', + SQLSERVER = 'SQLSERVER', + DAMENG = 'DAMENG', + TAURUS = 'TAURUS', + DWS = 'DWS', + KINGBASE = 'KINGBASE', + MARIADB = 'MARIADB', + GAUSSDBOPENGAUSS = 'GAUSSDBOPENGAUSS' +} diff --git a/services/dbss/v1/model/ListRdsDatabasesResponse.ts b/services/dbss/v1/model/ListRdsDatabasesResponse.ts new file mode 100644 index 000000000..25e18ce60 --- /dev/null +++ b/services/dbss/v1/model/ListRdsDatabasesResponse.ts @@ -0,0 +1,25 @@ +import { RdsDbListResponseDatabases } from './RdsDbListResponseDatabases'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListRdsDatabasesResponse extends SdkResponse { + public databases?: Array; + private 'total_count'?: number; + public constructor() { + super(); + } + public withDatabases(databases: Array): ListRdsDatabasesResponse { + this['databases'] = databases; + return this; + } + public withTotalCount(totalCount: number): ListRdsDatabasesResponse { + this['total_count'] = totalCount; + return this; + } + public set totalCount(totalCount: number | undefined) { + this['total_count'] = totalCount; + } + public get totalCount(): number | undefined { + return this['total_count']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ListResourceInstanceByTagRequest.ts b/services/dbss/v1/model/ListResourceInstanceByTagRequest.ts index 357b7b57e..835ec6cac 100644 --- a/services/dbss/v1/model/ListResourceInstanceByTagRequest.ts +++ b/services/dbss/v1/model/ListResourceInstanceByTagRequest.ts @@ -2,21 +2,21 @@ import { ResourceInstanceTagRequest } from './ResourceInstanceTagRequest'; export class ListResourceInstanceByTagRequest { - private 'resource_type'?: string; + private 'resource_type'?: ListResourceInstanceByTagRequestResourceTypeEnum | string; public limit?: string; public offset?: string; public body?: ResourceInstanceTagRequest; public constructor(resourceType?: string) { this['resource_type'] = resourceType; } - public withResourceType(resourceType: string): ListResourceInstanceByTagRequest { + public withResourceType(resourceType: ListResourceInstanceByTagRequestResourceTypeEnum | string): ListResourceInstanceByTagRequest { this['resource_type'] = resourceType; return this; } - public set resourceType(resourceType: string | undefined) { + public set resourceType(resourceType: ListResourceInstanceByTagRequestResourceTypeEnum | string | undefined) { this['resource_type'] = resourceType; } - public get resourceType(): string | undefined { + public get resourceType(): ListResourceInstanceByTagRequestResourceTypeEnum | string | undefined { return this['resource_type']; } public withLimit(limit: string): ListResourceInstanceByTagRequest { @@ -31,4 +31,12 @@ export class ListResourceInstanceByTagRequest { this['body'] = body; return this; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum ListResourceInstanceByTagRequestResourceTypeEnum { + AUDITINSTANCE = 'auditInstance' +} diff --git a/services/dbss/v1/model/OperateLogGetRequest.ts b/services/dbss/v1/model/OperateLogGetRequest.ts index 93346b021..779d3638a 100644 --- a/services/dbss/v1/model/OperateLogGetRequest.ts +++ b/services/dbss/v1/model/OperateLogGetRequest.ts @@ -4,8 +4,8 @@ import { TimeRangeBean } from './TimeRangeBean'; export class OperateLogGetRequest { public time?: TimeRangeBean; private 'user_name'?: string; - private 'operate_name'?: string; - public result?: string; + public action?: OperateLogGetRequestActionEnum | string; + public result?: OperateLogGetRequestResultEnum | string; public page?: string; public size?: string; public constructor() { @@ -24,17 +24,11 @@ export class OperateLogGetRequest { public get userName(): string | undefined { return this['user_name']; } - public withOperateName(operateName: string): OperateLogGetRequest { - this['operate_name'] = operateName; + public withAction(action: OperateLogGetRequestActionEnum | string): OperateLogGetRequest { + this['action'] = action; return this; } - public set operateName(operateName: string | undefined) { - this['operate_name'] = operateName; - } - public get operateName(): string | undefined { - return this['operate_name']; - } - public withResult(result: string): OperateLogGetRequest { + public withResult(result: OperateLogGetRequestResultEnum | string): OperateLogGetRequest { this['result'] = result; return this; } @@ -46,4 +40,23 @@ export class OperateLogGetRequest { this['size'] = size; return this; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum OperateLogGetRequestActionEnum { + CREATE = 'CREATE', + DELETE = 'DELETE', + DOWNLOAD = 'DOWNLOAD', + UPDATE = 'UPDATE' +} +/** + * @export + * @enum {string} + */ +export enum OperateLogGetRequestResultEnum { + SUCCESS = 'success', + FAIL = 'fail' +} diff --git a/services/dbss/v1/model/OperateLogInfo.ts b/services/dbss/v1/model/OperateLogInfo.ts index a58b97e4a..4c5ec0b3c 100644 --- a/services/dbss/v1/model/OperateLogInfo.ts +++ b/services/dbss/v1/model/OperateLogInfo.ts @@ -4,8 +4,8 @@ export class OperateLogInfo { public id?: string; public user?: string; public time?: string; - private 'function'?: string; public action?: string; + private 'function'?: string; public name?: string; public description?: string; public result?: string; @@ -23,6 +23,10 @@ export class OperateLogInfo { this['time'] = time; return this; } + public withAction(action: string): OperateLogInfo { + this['action'] = action; + return this; + } public withFunction(_function: string): OperateLogInfo { this['function'] = _function; return this; @@ -33,10 +37,6 @@ export class OperateLogInfo { public get _function(): string | undefined { return this['function']; } - public withAction(action: string): OperateLogInfo { - this['action'] = action; - return this; - } public withName(name: string): OperateLogInfo { this['name'] = name; return this; diff --git a/services/dbss/v1/model/ProjectResourceTagResponseTags.ts b/services/dbss/v1/model/ProjectResourceTagResponseTags.ts index a978d5e9e..fd990c4f9 100644 --- a/services/dbss/v1/model/ProjectResourceTagResponseTags.ts +++ b/services/dbss/v1/model/ProjectResourceTagResponseTags.ts @@ -3,9 +3,7 @@ export class ProjectResourceTagResponseTags { public key?: string; public values?: Array; - public constructor(key?: string, values?: Array) { - this['key'] = key; - this['values'] = values; + public constructor() { } public withKey(key: string): ProjectResourceTagResponseTags { this['key'] = key; diff --git a/services/dbss/v1/model/RdsDbListResponseDatabases.ts b/services/dbss/v1/model/RdsDbListResponseDatabases.ts new file mode 100644 index 000000000..d53248891 --- /dev/null +++ b/services/dbss/v1/model/RdsDbListResponseDatabases.ts @@ -0,0 +1,88 @@ + + +export class RdsDbListResponseDatabases { + public id?: string; + private 'db_name'?: string; + public status?: string; + public port?: string; + public ip?: string; + private 'instance_name'?: string; + public type?: string; + public version?: string; + private 'is_supported'?: boolean; + private 'enterprise_id'?: string; + public constructor(id?: string, dbName?: string, status?: string, port?: string, ip?: string, type?: string, version?: string, isSupported?: boolean) { + this['id'] = id; + this['db_name'] = dbName; + this['status'] = status; + this['port'] = port; + this['ip'] = ip; + this['type'] = type; + this['version'] = version; + this['is_supported'] = isSupported; + } + public withId(id: string): RdsDbListResponseDatabases { + this['id'] = id; + return this; + } + public withDbName(dbName: string): RdsDbListResponseDatabases { + this['db_name'] = dbName; + return this; + } + public set dbName(dbName: string | undefined) { + this['db_name'] = dbName; + } + public get dbName(): string | undefined { + return this['db_name']; + } + public withStatus(status: string): RdsDbListResponseDatabases { + this['status'] = status; + return this; + } + public withPort(port: string): RdsDbListResponseDatabases { + this['port'] = port; + return this; + } + public withIp(ip: string): RdsDbListResponseDatabases { + this['ip'] = ip; + return this; + } + public withInstanceName(instanceName: string): RdsDbListResponseDatabases { + this['instance_name'] = instanceName; + return this; + } + public set instanceName(instanceName: string | undefined) { + this['instance_name'] = instanceName; + } + public get instanceName(): string | undefined { + return this['instance_name']; + } + public withType(type: string): RdsDbListResponseDatabases { + this['type'] = type; + return this; + } + public withVersion(version: string): RdsDbListResponseDatabases { + this['version'] = version; + return this; + } + public withIsSupported(isSupported: boolean): RdsDbListResponseDatabases { + this['is_supported'] = isSupported; + return this; + } + public set isSupported(isSupported: boolean | undefined) { + this['is_supported'] = isSupported; + } + public get isSupported(): boolean | undefined { + return this['is_supported']; + } + public withEnterpriseId(enterpriseId: string): RdsDbListResponseDatabases { + this['enterprise_id'] = enterpriseId; + return this; + } + public set enterpriseId(enterpriseId: string | undefined) { + this['enterprise_id'] = enterpriseId; + } + public get enterpriseId(): string | undefined { + return this['enterprise_id']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/RdsDbRequest.ts b/services/dbss/v1/model/RdsDbRequest.ts new file mode 100644 index 000000000..96ee1aada --- /dev/null +++ b/services/dbss/v1/model/RdsDbRequest.ts @@ -0,0 +1,13 @@ +import { RdsDbRequestDatabases } from './RdsDbRequestDatabases'; + + +export class RdsDbRequest { + public databases?: Array; + public constructor(databases?: Array) { + this['databases'] = databases; + } + public withDatabases(databases: Array): RdsDbRequest { + this['databases'] = databases; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/RdsDbRequestDatabases.ts b/services/dbss/v1/model/RdsDbRequestDatabases.ts new file mode 100644 index 000000000..cdd614eba --- /dev/null +++ b/services/dbss/v1/model/RdsDbRequestDatabases.ts @@ -0,0 +1,18 @@ + + +export class RdsDbRequestDatabases { + public id?: string; + public type?: string; + public constructor(id?: string, type?: string) { + this['id'] = id; + this['type'] = type; + } + public withId(id: string): RdsDbRequestDatabases { + this['id'] = id; + return this; + } + public withType(type: string): RdsDbRequestDatabases { + this['type'] = type; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/RdsDbResponseRetList.ts b/services/dbss/v1/model/RdsDbResponseRetList.ts new file mode 100644 index 000000000..a0d2fb4b9 --- /dev/null +++ b/services/dbss/v1/model/RdsDbResponseRetList.ts @@ -0,0 +1,36 @@ + + +export class RdsDbResponseRetList { + public id?: string; + private 'ret_status'?: string; + private 'ret_message'?: string; + public constructor(id?: string, retStatus?: string, retMessage?: string) { + this['id'] = id; + this['ret_status'] = retStatus; + this['ret_message'] = retMessage; + } + public withId(id: string): RdsDbResponseRetList { + this['id'] = id; + return this; + } + public withRetStatus(retStatus: string): RdsDbResponseRetList { + this['ret_status'] = retStatus; + return this; + } + public set retStatus(retStatus: string | undefined) { + this['ret_status'] = retStatus; + } + public get retStatus(): string | undefined { + return this['ret_status']; + } + public withRetMessage(retMessage: string): RdsDbResponseRetList { + this['ret_message'] = retMessage; + return this; + } + public set retMessage(retMessage: string | undefined) { + this['ret_message'] = retMessage; + } + public get retMessage(): string | undefined { + return this['ret_message']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/RebootAuditInstanceRequest.ts b/services/dbss/v1/model/RebootAuditInstanceRequest.ts new file mode 100644 index 000000000..37cc74fb8 --- /dev/null +++ b/services/dbss/v1/model/RebootAuditInstanceRequest.ts @@ -0,0 +1,12 @@ +import { ServerIdBean } from './ServerIdBean'; + + +export class RebootAuditInstanceRequest { + public body?: ServerIdBean; + public constructor() { + } + public withBody(body: ServerIdBean): RebootAuditInstanceRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/RebootAuditInstanceResponse.ts b/services/dbss/v1/model/RebootAuditInstanceResponse.ts new file mode 100644 index 000000000..f5afabcce --- /dev/null +++ b/services/dbss/v1/model/RebootAuditInstanceResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class RebootAuditInstanceResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): RebootAuditInstanceResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ResourceInstanceResponseResources.ts b/services/dbss/v1/model/ResourceInstanceResponseResources.ts index 97edf3606..674dac9dd 100644 --- a/services/dbss/v1/model/ResourceInstanceResponseResources.ts +++ b/services/dbss/v1/model/ResourceInstanceResponseResources.ts @@ -3,26 +3,16 @@ import { ResourceInstanceResponseTags } from './ResourceInstanceResponseTags'; export class ResourceInstanceResponseResources { - private 'resource_detail'?: object; private 'resource_id'?: string; private 'resource_name'?: string; + private 'resource_detail'?: object; public tags?: Array; private 'sys_tags'?: Array; - public constructor(resourceDetail?: object, resourceId?: string, resourceName?: string, tags?: Array) { - this['resource_detail'] = resourceDetail; + public constructor(resourceId?: string, resourceName?: string, resourceDetail?: object, tags?: Array) { this['resource_id'] = resourceId; this['resource_name'] = resourceName; - this['tags'] = tags; - } - public withResourceDetail(resourceDetail: object): ResourceInstanceResponseResources { this['resource_detail'] = resourceDetail; - return this; - } - public set resourceDetail(resourceDetail: object | undefined) { - this['resource_detail'] = resourceDetail; - } - public get resourceDetail(): object | undefined { - return this['resource_detail']; + this['tags'] = tags; } public withResourceId(resourceId: string): ResourceInstanceResponseResources { this['resource_id'] = resourceId; @@ -44,6 +34,16 @@ export class ResourceInstanceResponseResources { public get resourceName(): string | undefined { return this['resource_name']; } + public withResourceDetail(resourceDetail: object): ResourceInstanceResponseResources { + this['resource_detail'] = resourceDetail; + return this; + } + public set resourceDetail(resourceDetail: object | undefined) { + this['resource_detail'] = resourceDetail; + } + public get resourceDetail(): object | undefined { + return this['resource_detail']; + } public withTags(tags: Array): ResourceInstanceResponseResources { this['tags'] = tags; return this; diff --git a/services/dbss/v1/model/ResourceInstanceTagRequestMatches.ts b/services/dbss/v1/model/ResourceInstanceTagRequestMatches.ts index 4be1055cc..32323d12b 100644 --- a/services/dbss/v1/model/ResourceInstanceTagRequestMatches.ts +++ b/services/dbss/v1/model/ResourceInstanceTagRequestMatches.ts @@ -3,7 +3,9 @@ export class ResourceInstanceTagRequestMatches { public key?: string; public value?: string; - public constructor() { + public constructor(key?: string, value?: string) { + this['key'] = key; + this['value'] = value; } public withKey(key: string): ResourceInstanceTagRequestMatches { this['key'] = key; diff --git a/services/dbss/v1/model/ResourceTagDeleteRequest.ts b/services/dbss/v1/model/ResourceTagDeleteRequest.ts new file mode 100644 index 000000000..44a9deafc --- /dev/null +++ b/services/dbss/v1/model/ResourceTagDeleteRequest.ts @@ -0,0 +1,23 @@ +import { ResourceTagDeleteRequestTags } from './ResourceTagDeleteRequestTags'; + + +export class ResourceTagDeleteRequest { + public tags?: Array; + private 'sys_tags'?: Array; + public constructor() { + } + public withTags(tags: Array): ResourceTagDeleteRequest { + this['tags'] = tags; + return this; + } + public withSysTags(sysTags: Array): ResourceTagDeleteRequest { + this['sys_tags'] = sysTags; + return this; + } + public set sysTags(sysTags: Array | undefined) { + this['sys_tags'] = sysTags; + } + public get sysTags(): Array | undefined { + return this['sys_tags']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ResourceTagDeleteRequestTags.ts b/services/dbss/v1/model/ResourceTagDeleteRequestTags.ts new file mode 100644 index 000000000..b25d828e2 --- /dev/null +++ b/services/dbss/v1/model/ResourceTagDeleteRequestTags.ts @@ -0,0 +1,17 @@ + + +export class ResourceTagDeleteRequestTags { + public key?: string; + public value?: string; + public constructor(key?: string) { + this['key'] = key; + } + public withKey(key: string): ResourceTagDeleteRequestTags { + this['key'] = key; + return this; + } + public withValue(value: string): ResourceTagDeleteRequestTags { + this['value'] = value; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ResourceTagRequest.ts b/services/dbss/v1/model/ResourceTagRequest.ts index 8ba19c2d2..08fa7402b 100644 --- a/services/dbss/v1/model/ResourceTagRequest.ts +++ b/services/dbss/v1/model/ResourceTagRequest.ts @@ -1,23 +1,23 @@ -import { KeyValueBean } from './KeyValueBean'; +import { ResourceTagRequestTags } from './ResourceTagRequestTags'; export class ResourceTagRequest { - public tags?: Array; - private 'sys_tags'?: Array; + public tags?: Array; + private 'sys_tags'?: Array; public constructor() { } - public withTags(tags: Array): ResourceTagRequest { + public withTags(tags: Array): ResourceTagRequest { this['tags'] = tags; return this; } - public withSysTags(sysTags: Array): ResourceTagRequest { + public withSysTags(sysTags: Array): ResourceTagRequest { this['sys_tags'] = sysTags; return this; } - public set sysTags(sysTags: Array | undefined) { + public set sysTags(sysTags: Array | undefined) { this['sys_tags'] = sysTags; } - public get sysTags(): Array | undefined { + public get sysTags(): Array | undefined { return this['sys_tags']; } } \ No newline at end of file diff --git a/services/dbss/v1/model/ResourceTagRequestTags.ts b/services/dbss/v1/model/ResourceTagRequestTags.ts new file mode 100644 index 000000000..41159d496 --- /dev/null +++ b/services/dbss/v1/model/ResourceTagRequestTags.ts @@ -0,0 +1,18 @@ + + +export class ResourceTagRequestTags { + public key?: string; + public value?: string; + public constructor(key?: string, value?: string) { + this['key'] = key; + this['value'] = value; + } + public withKey(key: string): ResourceTagRequestTags { + this['key'] = key; + return this; + } + public withValue(value: string): ResourceTagRequestTags { + this['value'] = value; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/RuleRiskResponseRules.ts b/services/dbss/v1/model/RuleRiskResponseRules.ts index e2677a472..67da1403b 100644 --- a/services/dbss/v1/model/RuleRiskResponseRules.ts +++ b/services/dbss/v1/model/RuleRiskResponseRules.ts @@ -8,7 +8,12 @@ export class RuleRiskResponseRules { public status?: string; public rank?: number; private 'risk_level'?: string; - public constructor() { + private 'rule_type'?: string; + public constructor(id?: string, name?: string, type?: string, status?: string) { + this['id'] = id; + this['name'] = name; + this['type'] = type; + this['status'] = status; } public withId(id: string): RuleRiskResponseRules { this['id'] = id; @@ -44,4 +49,14 @@ export class RuleRiskResponseRules { public get riskLevel(): string | undefined { return this['risk_level']; } + public withRuleType(ruleType: string): RuleRiskResponseRules { + this['rule_type'] = ruleType; + return this; + } + public set ruleType(ruleType: string | undefined) { + this['rule_type'] = ruleType; + } + public get ruleType(): string | undefined { + return this['rule_type']; + } } \ No newline at end of file diff --git a/services/dbss/v1/model/SecurityGroupRequest.ts b/services/dbss/v1/model/SecurityGroupRequest.ts index e2cb10f5b..146b31f86 100644 --- a/services/dbss/v1/model/SecurityGroupRequest.ts +++ b/services/dbss/v1/model/SecurityGroupRequest.ts @@ -1,21 +1,21 @@ export class SecurityGroupRequest { - private 'resource_id'?: string; + private 'instance_id'?: string; private 'securitygroup_ids'?: Array; - public constructor(resourceId?: string, securitygroupIds?: Array) { - this['resource_id'] = resourceId; + public constructor(instanceId?: string, securitygroupIds?: Array) { + this['instance_id'] = instanceId; this['securitygroup_ids'] = securitygroupIds; } - public withResourceId(resourceId: string): SecurityGroupRequest { - this['resource_id'] = resourceId; + public withInstanceId(instanceId: string): SecurityGroupRequest { + this['instance_id'] = instanceId; return this; } - public set resourceId(resourceId: string | undefined) { - this['resource_id'] = resourceId; + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; } - public get resourceId(): string | undefined { - return this['resource_id']; + public get instanceId(): string | undefined { + return this['instance_id']; } public withSecuritygroupIds(securitygroupIds: Array): SecurityGroupRequest { this['securitygroup_ids'] = securitygroupIds; diff --git a/services/dbss/v1/model/ServerIdBean.ts b/services/dbss/v1/model/ServerIdBean.ts new file mode 100644 index 000000000..455bcd5f3 --- /dev/null +++ b/services/dbss/v1/model/ServerIdBean.ts @@ -0,0 +1,18 @@ + + +export class ServerIdBean { + private 'instance_id'?: string; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): ServerIdBean { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/ShowAuditQuotaResponse.ts b/services/dbss/v1/model/ShowAuditQuotaResponse.ts index 1426e9339..5e2b65d9d 100644 --- a/services/dbss/v1/model/ShowAuditQuotaResponse.ts +++ b/services/dbss/v1/model/ShowAuditQuotaResponse.ts @@ -2,14 +2,23 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; export class ShowAuditQuotaResponse extends SdkResponse { + private 'project_id'?: string; private 'audit_quota'?: number; public cpu?: number; - private 'project_id'?: string; - public quota?: number; public ram?: number; public constructor() { super(); } + public withProjectId(projectId: string): ShowAuditQuotaResponse { + this['project_id'] = projectId; + return this; + } + public set projectId(projectId: string | undefined) { + this['project_id'] = projectId; + } + public get projectId(): string | undefined { + return this['project_id']; + } public withAuditQuota(auditQuota: number): ShowAuditQuotaResponse { this['audit_quota'] = auditQuota; return this; @@ -24,20 +33,6 @@ export class ShowAuditQuotaResponse extends SdkResponse { this['cpu'] = cpu; return this; } - public withProjectId(projectId: string): ShowAuditQuotaResponse { - this['project_id'] = projectId; - return this; - } - public set projectId(projectId: string | undefined) { - this['project_id'] = projectId; - } - public get projectId(): string | undefined { - return this['project_id']; - } - public withQuota(quota: number): ShowAuditQuotaResponse { - this['quota'] = quota; - return this; - } public withRam(ram: number): ShowAuditQuotaResponse { this['ram'] = ram; return this; diff --git a/services/dbss/v1/model/StartAuditInstanceRequest.ts b/services/dbss/v1/model/StartAuditInstanceRequest.ts new file mode 100644 index 000000000..9c04dcfb3 --- /dev/null +++ b/services/dbss/v1/model/StartAuditInstanceRequest.ts @@ -0,0 +1,12 @@ +import { ServerIdBean } from './ServerIdBean'; + + +export class StartAuditInstanceRequest { + public body?: ServerIdBean; + public constructor() { + } + public withBody(body: ServerIdBean): StartAuditInstanceRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/StartAuditInstanceResponse.ts b/services/dbss/v1/model/StartAuditInstanceResponse.ts new file mode 100644 index 000000000..67329850c --- /dev/null +++ b/services/dbss/v1/model/StartAuditInstanceResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class StartAuditInstanceResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): StartAuditInstanceResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/StopAuditInstanceRequest.ts b/services/dbss/v1/model/StopAuditInstanceRequest.ts new file mode 100644 index 000000000..c57865bb2 --- /dev/null +++ b/services/dbss/v1/model/StopAuditInstanceRequest.ts @@ -0,0 +1,12 @@ +import { ServerIdBean } from './ServerIdBean'; + + +export class StopAuditInstanceRequest { + public body?: ServerIdBean; + public constructor() { + } + public withBody(body: ServerIdBean): StopAuditInstanceRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/StopAuditInstanceResponse.ts b/services/dbss/v1/model/StopAuditInstanceResponse.ts new file mode 100644 index 000000000..0653c546b --- /dev/null +++ b/services/dbss/v1/model/StopAuditInstanceResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class StopAuditInstanceResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): StopAuditInstanceResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/SwitchAuditDatabaseRequest.ts b/services/dbss/v1/model/SwitchAuditDatabaseRequest.ts new file mode 100644 index 000000000..ab56676a8 --- /dev/null +++ b/services/dbss/v1/model/SwitchAuditDatabaseRequest.ts @@ -0,0 +1,24 @@ +import { SwitchAuditDbRequest } from './SwitchAuditDbRequest'; + + +export class SwitchAuditDatabaseRequest { + private 'instance_id'?: string; + public body?: SwitchAuditDbRequest; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): SwitchAuditDatabaseRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: SwitchAuditDbRequest): SwitchAuditDatabaseRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/SwitchAuditDatabaseResponse.ts b/services/dbss/v1/model/SwitchAuditDatabaseResponse.ts new file mode 100644 index 000000000..5354d52e9 --- /dev/null +++ b/services/dbss/v1/model/SwitchAuditDatabaseResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class SwitchAuditDatabaseResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): SwitchAuditDatabaseResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/SwitchAuditDbRequest.ts b/services/dbss/v1/model/SwitchAuditDbRequest.ts new file mode 100644 index 000000000..c33b2b9a9 --- /dev/null +++ b/services/dbss/v1/model/SwitchAuditDbRequest.ts @@ -0,0 +1,38 @@ + + +export class SwitchAuditDbRequest { + public id?: string; + public status?: SwitchAuditDbRequestStatusEnum | string; + private 'lts_audit_switch'?: number; + public constructor(id?: string, status?: string) { + this['id'] = id; + this['status'] = status; + } + public withId(id: string): SwitchAuditDbRequest { + this['id'] = id; + return this; + } + public withStatus(status: SwitchAuditDbRequestStatusEnum | string): SwitchAuditDbRequest { + this['status'] = status; + return this; + } + public withLtsAuditSwitch(ltsAuditSwitch: number): SwitchAuditDbRequest { + this['lts_audit_switch'] = ltsAuditSwitch; + return this; + } + public set ltsAuditSwitch(ltsAuditSwitch: number | undefined) { + this['lts_audit_switch'] = ltsAuditSwitch; + } + public get ltsAuditSwitch(): number | undefined { + return this['lts_audit_switch']; + } +} + +/** + * @export + * @enum {string} + */ +export enum SwitchAuditDbRequestStatusEnum { + ON = 'ON', + OFF = 'OFF' +} diff --git a/services/dbss/v1/model/TimeRangeBean.ts b/services/dbss/v1/model/TimeRangeBean.ts index 346e3eab1..5c18de752 100644 --- a/services/dbss/v1/model/TimeRangeBean.ts +++ b/services/dbss/v1/model/TimeRangeBean.ts @@ -3,7 +3,7 @@ export class TimeRangeBean { private 'end_time'?: string; private 'start_time'?: string; - private 'time_range'?: string; + private 'time_range'?: TimeRangeBeanTimeRangeEnum | string; public constructor() { } public withEndTime(endTime: string): TimeRangeBean { @@ -26,14 +26,28 @@ export class TimeRangeBean { public get startTime(): string | undefined { return this['start_time']; } - public withTimeRange(timeRange: string): TimeRangeBean { + public withTimeRange(timeRange: TimeRangeBeanTimeRangeEnum | string): TimeRangeBean { this['time_range'] = timeRange; return this; } - public set timeRange(timeRange: string | undefined) { + public set timeRange(timeRange: TimeRangeBeanTimeRangeEnum | string | undefined) { this['time_range'] = timeRange; } - public get timeRange(): string | undefined { + public get timeRange(): TimeRangeBeanTimeRangeEnum | string | undefined { return this['time_range']; } -} \ No newline at end of file +} + +/** + * @export + * @enum {string} + */ +export enum TimeRangeBeanTimeRangeEnum { + HALF_HOUR = 'HALF_HOUR', + HOUR = ' HOUR', + THREE_HOUR = ' THREE_HOUR', + TWELVE_HOUR = ' TWELVE_HOUR', + DAY = ' DAY', + WEEK = ' WEEK', + MONTH = ' MONTH' +} diff --git a/services/dbss/v1/model/UpdateAuditBean.ts b/services/dbss/v1/model/UpdateAuditBean.ts new file mode 100644 index 000000000..d90f74a2c --- /dev/null +++ b/services/dbss/v1/model/UpdateAuditBean.ts @@ -0,0 +1,16 @@ + + +export class UpdateAuditBean { + public name?: string; + public comment?: string; + public constructor() { + } + public withName(name: string): UpdateAuditBean { + this['name'] = name; + return this; + } + public withComment(comment: string): UpdateAuditBean { + this['comment'] = comment; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/UpdateAuditInstanceRequest.ts b/services/dbss/v1/model/UpdateAuditInstanceRequest.ts new file mode 100644 index 000000000..0d8b24f4f --- /dev/null +++ b/services/dbss/v1/model/UpdateAuditInstanceRequest.ts @@ -0,0 +1,24 @@ +import { UpdateAuditBean } from './UpdateAuditBean'; + + +export class UpdateAuditInstanceRequest { + private 'instance_id'?: string; + public body?: UpdateAuditBean; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withInstanceId(instanceId: string): UpdateAuditInstanceRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: string | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): string | undefined { + return this['instance_id']; + } + public withBody(body: UpdateAuditBean): UpdateAuditInstanceRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/model/UpdateAuditInstanceResponse.ts b/services/dbss/v1/model/UpdateAuditInstanceResponse.ts new file mode 100644 index 000000000..c0731b14a --- /dev/null +++ b/services/dbss/v1/model/UpdateAuditInstanceResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateAuditInstanceResponse extends SdkResponse { + public result?: string; + public constructor() { + super(); + } + public withResult(result: string): UpdateAuditInstanceResponse { + this['result'] = result; + return this; + } +} \ No newline at end of file diff --git a/services/dbss/v1/public-api.ts b/services/dbss/v1/public-api.ts index 38b6469a5..ae648f788 100644 --- a/services/dbss/v1/public-api.ts +++ b/services/dbss/v1/public-api.ts @@ -1,9 +1,26 @@ export * from './DbssClient'; +export * from './model/AddAuditAgentRequest'; +export * from './model/AddAuditAgentResponse'; +export * from './model/AddAuditDatabaseRequest'; +export * from './model/AddAuditDatabaseResponse'; +export * from './model/AddRdsDatabaseRequest'; +export * from './model/AddRdsDatabaseResponse'; export * from './model/AddRdsNoAgentDatabaseRequest'; export * from './model/AddRdsNoAgentDatabaseResponse'; export * from './model/AgentSwitchRequest'; +export * from './model/AlarmLogRequest'; +export * from './model/AlarmLogRequestTime'; +export * from './model/AlarmLogResponseAlarmLog'; +export * from './model/AuditAgentRequest'; +export * from './model/AuditAgentRespoonseAgents'; export * from './model/AuditInstanceListBean'; +export * from './model/AuditSqlRequest'; +export * from './model/AuditSqlRequestTime'; +export * from './model/AuditSqlResponseSql'; +export * from './model/AuditSqlResponseSqlOperatedObjInfo'; +export * from './model/AuditSqlResponseSqls'; +export * from './model/AuditSummaryResponseDataList'; export * from './model/AzInfo'; export * from './model/BatchAddResourceTagRequest'; export * from './model/BatchAddResourceTagResponse'; @@ -12,6 +29,8 @@ export * from './model/BatchDeleteResourceTagResponse'; export * from './model/BatchSwitchesRequest'; export * from './model/CountResourceInstanceByTagRequest'; export * from './model/CountResourceInstanceByTagResponse'; +export * from './model/CreateDatabaseRequest'; +export * from './model/CreateDatabaseRequestDatabase'; export * from './model/CreateInstancePeriodRequest'; export * from './model/CreateInstancePeriodRequestNics'; export * from './model/CreateInstancePeriodRequestProductInfos'; @@ -20,9 +39,22 @@ export * from './model/CreateInstancesPeriodOrderRequest'; export * from './model/CreateInstancesPeriodOrderResponse'; export * from './model/DataBase'; export * from './model/DataBaseBean'; +export * from './model/DeleteAuditAgentRequest'; +export * from './model/DeleteAuditAgentResponse'; +export * from './model/DeleteAuditDatabaseRequest'; +export * from './model/DeleteAuditDatabaseResponse'; +export * from './model/DeleteInstanceDemandRequest'; +export * from './model/DeleteInstancesRequest'; +export * from './model/DeleteInstancesResponse'; +export * from './model/DownloadAuditAgentRequest'; +export * from './model/DownloadAuditAgentResponse'; export * from './model/EcsSpecificationBean'; export * from './model/JobBean'; export * from './model/KeyValueBean'; +export * from './model/ListAuditAgentRequest'; +export * from './model/ListAuditAgentResponse'; +export * from './model/ListAuditAlarmLogRequest'; +export * from './model/ListAuditAlarmLogResponse'; export * from './model/ListAuditDatabasesRequest'; export * from './model/ListAuditDatabasesResponse'; export * from './model/ListAuditInstanceJobsRequest'; @@ -37,12 +69,18 @@ export * from './model/ListAuditRuleScopesRequest'; export * from './model/ListAuditRuleScopesResponse'; export * from './model/ListAuditSensitiveMasksRequest'; export * from './model/ListAuditSensitiveMasksResponse'; +export * from './model/ListAuditSqlsRequest'; +export * from './model/ListAuditSqlsResponse'; +export * from './model/ListAuditSummaryInfosRequest'; +export * from './model/ListAuditSummaryInfosResponse'; export * from './model/ListAvailabilityZoneInfosRequest'; export * from './model/ListAvailabilityZoneInfosResponse'; export * from './model/ListEcsSpecificationRequest'; export * from './model/ListEcsSpecificationResponse'; export * from './model/ListProjectResourceTagsRequest'; export * from './model/ListProjectResourceTagsResponse'; +export * from './model/ListRdsDatabasesRequest'; +export * from './model/ListRdsDatabasesResponse'; export * from './model/ListResourceInstanceByTagRequest'; export * from './model/ListResourceInstanceByTagResponse'; export * from './model/ListSqlInjectionRulesRequest'; @@ -50,31 +88,51 @@ export * from './model/ListSqlInjectionRulesResponse'; export * from './model/OperateLogGetRequest'; export * from './model/OperateLogInfo'; export * from './model/ProjectResourceTagResponseTags'; +export * from './model/RdsDbListResponseDatabases'; +export * from './model/RdsDbRequest'; +export * from './model/RdsDbRequestDatabases'; +export * from './model/RdsDbResponseRetList'; export * from './model/RdsNoAgentDbRequest'; export * from './model/RdsNoAgentDbRequestDatabases'; +export * from './model/RebootAuditInstanceRequest'; +export * from './model/RebootAuditInstanceResponse'; export * from './model/ResourceInstanceResponseResources'; export * from './model/ResourceInstanceResponseSysTags'; export * from './model/ResourceInstanceResponseTags'; export * from './model/ResourceInstanceTagRequest'; export * from './model/ResourceInstanceTagRequestMatches'; +export * from './model/ResourceTagDeleteRequest'; +export * from './model/ResourceTagDeleteRequestTags'; export * from './model/ResourceTagRequest'; +export * from './model/ResourceTagRequestTags'; export * from './model/RuleRiskInfoBeanSchemas'; export * from './model/RuleRiskResponseRules'; export * from './model/RuleScopeInfo'; export * from './model/SecurityGroupRequest'; export * from './model/SensitiveMaskResponseRules'; +export * from './model/ServerIdBean'; export * from './model/ShowAuditQuotaRequest'; export * from './model/ShowAuditQuotaResponse'; export * from './model/ShowAuditRuleRiskRequest'; export * from './model/ShowAuditRuleRiskResponse'; export * from './model/SqlRuleRequest'; export * from './model/SqlRuleResponseRules'; +export * from './model/StartAuditInstanceRequest'; +export * from './model/StartAuditInstanceResponse'; +export * from './model/StopAuditInstanceRequest'; +export * from './model/StopAuditInstanceResponse'; export * from './model/SwitchAgentRequest'; export * from './model/SwitchAgentResponse'; +export * from './model/SwitchAuditDatabaseRequest'; +export * from './model/SwitchAuditDatabaseResponse'; +export * from './model/SwitchAuditDbRequest'; export * from './model/SwitchRiskRuleRequest'; export * from './model/SwitchRiskRuleResponse'; export * from './model/TagKeyValuesBean'; export * from './model/TimeRangeBean'; +export * from './model/UpdateAuditBean'; +export * from './model/UpdateAuditInstanceRequest'; +export * from './model/UpdateAuditInstanceResponse'; export * from './model/UpdateAuditSecurityGroupRequest'; export * from './model/UpdateAuditSecurityGroupResponse'; export * from './DbssRegion'; diff --git a/services/ecs/v2/EcsClient.ts b/services/ecs/v2/EcsClient.ts index dd9e731a4..5a72b970f 100644 --- a/services/ecs/v2/EcsClient.ts +++ b/services/ecs/v2/EcsClient.ts @@ -212,6 +212,8 @@ import { NovaServerNetwork } from './model/NovaServerNetwork'; import { NovaServerSchedulerHints } from './model/NovaServerSchedulerHints'; import { NovaServerSecurityGroup } from './model/NovaServerSecurityGroup'; import { NovaServerVolume } from './model/NovaServerVolume'; +import { NovaShowFlavorExtraSpecsRequest } from './model/NovaShowFlavorExtraSpecsRequest'; +import { NovaShowFlavorExtraSpecsResponse } from './model/NovaShowFlavorExtraSpecsResponse'; import { NovaShowKeypairRequest } from './model/NovaShowKeypairRequest'; import { NovaShowKeypairResponse } from './model/NovaShowKeypairResponse'; import { NovaShowServerInterfaceRequest } from './model/NovaShowServerInterfaceRequest'; @@ -1475,6 +1477,25 @@ export class EcsClient { return this.hcClient.sendRequest(options); } + /** + * 查询指定的规格的详细信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询云服务器规格extra_specs的详情 + * @param {string} flavorId 规格id。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public novaShowFlavorExtraSpecs(novaShowFlavorExtraSpecsRequest?: NovaShowFlavorExtraSpecsRequest): Promise { + const options = ParamCreater().novaShowFlavorExtraSpecs(novaShowFlavorExtraSpecsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 根据SSH密钥名称查询指定SSH密钥。 * @@ -4550,6 +4571,43 @@ export const ParamCreater = function () { return options; }, + /** + * 查询指定的规格的详细信息。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + novaShowFlavorExtraSpecs(novaShowFlavorExtraSpecsRequest?: NovaShowFlavorExtraSpecsRequest) { + const options = { + method: "GET", + url: "/v2.1/{project_id}/flavors/{flavor_id}/os-extra_specs", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let flavorId; + + if (novaShowFlavorExtraSpecsRequest !== null && novaShowFlavorExtraSpecsRequest !== undefined) { + if (novaShowFlavorExtraSpecsRequest instanceof NovaShowFlavorExtraSpecsRequest) { + flavorId = novaShowFlavorExtraSpecsRequest.flavorId; + } else { + flavorId = novaShowFlavorExtraSpecsRequest['flavor_id']; + } + } + + + if (flavorId === null || flavorId === undefined) { + throw new RequiredError('flavorId','Required parameter flavorId was null or undefined when calling novaShowFlavorExtraSpecs.'); + } + + options.pathParams = { 'flavor_id': flavorId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 根据SSH密钥名称查询指定SSH密钥。 * diff --git a/services/ecs/v2/model/NovaShowFlavorExtraSpecsRequest.ts b/services/ecs/v2/model/NovaShowFlavorExtraSpecsRequest.ts new file mode 100644 index 000000000..f90c4b6a0 --- /dev/null +++ b/services/ecs/v2/model/NovaShowFlavorExtraSpecsRequest.ts @@ -0,0 +1,18 @@ + + +export class NovaShowFlavorExtraSpecsRequest { + private 'flavor_id'?: string; + public constructor(flavorId?: string) { + this['flavor_id'] = flavorId; + } + public withFlavorId(flavorId: string): NovaShowFlavorExtraSpecsRequest { + this['flavor_id'] = flavorId; + return this; + } + public set flavorId(flavorId: string | undefined) { + this['flavor_id'] = flavorId; + } + public get flavorId(): string | undefined { + return this['flavor_id']; + } +} \ No newline at end of file diff --git a/services/ecs/v2/model/NovaShowFlavorExtraSpecsResponse.ts b/services/ecs/v2/model/NovaShowFlavorExtraSpecsResponse.ts new file mode 100644 index 000000000..6346d69bb --- /dev/null +++ b/services/ecs/v2/model/NovaShowFlavorExtraSpecsResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class NovaShowFlavorExtraSpecsResponse extends SdkResponse { + private 'extra_specs'?: { [key: string]: string; }; + public constructor() { + super(); + } + public withExtraSpecs(extraSpecs: { [key: string]: string; }): NovaShowFlavorExtraSpecsResponse { + this['extra_specs'] = extraSpecs; + return this; + } + public set extraSpecs(extraSpecs: { [key: string]: string; } | undefined) { + this['extra_specs'] = extraSpecs; + } + public get extraSpecs(): { [key: string]: string; } | undefined { + return this['extra_specs']; + } +} \ No newline at end of file diff --git a/services/ecs/v2/public-api.ts b/services/ecs/v2/public-api.ts index 28a3d72fe..3d62bb5db 100644 --- a/services/ecs/v2/public-api.ts +++ b/services/ecs/v2/public-api.ts @@ -210,6 +210,8 @@ export * from './model/NovaServerNetwork'; export * from './model/NovaServerSchedulerHints'; export * from './model/NovaServerSecurityGroup'; export * from './model/NovaServerVolume'; +export * from './model/NovaShowFlavorExtraSpecsRequest'; +export * from './model/NovaShowFlavorExtraSpecsResponse'; export * from './model/NovaShowKeypairRequest'; export * from './model/NovaShowKeypairResponse'; export * from './model/NovaShowServerInterfaceRequest'; diff --git a/services/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.ts b/services/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.ts index d5c1927e6..0d06ececf 100644 --- a/services/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.ts +++ b/services/gaussdbforopengauss/v3/GaussDBforopenGaussRegion.ts @@ -19,6 +19,7 @@ export class GaussDBforopenGaussRegion { public static LA_SOUTH_2 = new Region("la-south-2", ["https://gaussdb-opengauss.la-south-2.myhuaweicloud.com"]); public static LA_NORTH_2 = new Region("la-north-2", ["https://gaussdb-opengauss.la-north-2.myhuaweicloud.com"]); public static AF_SOUTH_1 = new Region("af-south-1", ["https://gaussdb-opengauss.af-south-1.myhuaweicloud.com"]); + public static CN_NORTH_9 = new Region("cn-north-9", ["https://gaussdb-opengauss.cn-north-9.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -34,7 +35,8 @@ export class GaussDBforopenGaussRegion { "sa-brazil-1":GaussDBforopenGaussRegion.SA_BRAZIL_1, "la-south-2":GaussDBforopenGaussRegion.LA_SOUTH_2, "la-north-2":GaussDBforopenGaussRegion.LA_NORTH_2, - "af-south-1":GaussDBforopenGaussRegion.AF_SOUTH_1 + "af-south-1":GaussDBforopenGaussRegion.AF_SOUTH_1, + "cn-north-9":GaussDBforopenGaussRegion.CN_NORTH_9 }; public static valueOf(regionId: string) { diff --git a/services/kms/v2/KmsRegion.ts b/services/kms/v2/KmsRegion.ts index 4299cb025..44b8af83c 100644 --- a/services/kms/v2/KmsRegion.ts +++ b/services/kms/v2/KmsRegion.ts @@ -29,6 +29,8 @@ export class KmsRegion { public static AE_AD_1 = new Region("ae-ad-1", ["https://kms.ae-ad-1.myhuaweicloud.com"]); public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://kms.my-kualalumpur-1.myhuaweicloud.com"]); public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://kms.ru-moscow-1.myhuaweicloud.com"]); + public static CN_EAST_5 = new Region("cn-east-5", ["https://kms.cn-east-5.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://kms.cn-east-4.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -54,7 +56,9 @@ export class KmsRegion { "tr-west-1":KmsRegion.TR_WEST_1, "ae-ad-1":KmsRegion.AE_AD_1, "my-kualalumpur-1":KmsRegion.MY_KUALALUMPUR_1, - "ru-moscow-1":KmsRegion.RU_MOSCOW_1 + "ru-moscow-1":KmsRegion.RU_MOSCOW_1, + "cn-east-5":KmsRegion.CN_EAST_5, + "cn-east-4":KmsRegion.CN_EAST_4 }; public static valueOf(regionId: string) { diff --git a/services/kps/v3/KpsRegion.ts b/services/kps/v3/KpsRegion.ts index d29b31030..96359522d 100644 --- a/services/kps/v3/KpsRegion.ts +++ b/services/kps/v3/KpsRegion.ts @@ -29,6 +29,8 @@ export class KpsRegion { public static TR_WEST_1 = new Region("tr-west-1", ["https://kms.tr-west-1.myhuaweicloud.com"]); public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://kms.my-kualalumpur-1.myhuaweicloud.com"]); public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://kms.ru-moscow-1.myhuaweicloud.com"]); + public static CN_EAST_5 = new Region("cn-east-5", ["https://kms.cn-east-5.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://kms.cn-east-4.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -54,7 +56,9 @@ export class KpsRegion { "me-east-1":KpsRegion.ME_EAST_1, "tr-west-1":KpsRegion.TR_WEST_1, "my-kualalumpur-1":KpsRegion.MY_KUALALUMPUR_1, - "ru-moscow-1":KpsRegion.RU_MOSCOW_1 + "ru-moscow-1":KpsRegion.RU_MOSCOW_1, + "cn-east-5":KpsRegion.CN_EAST_5, + "cn-east-4":KpsRegion.CN_EAST_4 }; public static valueOf(regionId: string) {