From 2a64f82677c8034674ef04ede6c6273c87c3c7ea Mon Sep 17 00:00:00 2001 From: Huaweicloud-SDK Date: Thu, 7 Nov 2024 16:30:24 +0800 Subject: [PATCH] release 3.1.122 source code --- CHANGELOG.md | 187 +++ CHANGELOG_CN.md | 187 +++ VERSION | 2 +- all/package.json | 190 +-- package.json | 2 +- services/aad/v2/AadClient.ts | 114 +- services/aad/v2/model/UpgradeInstanceData.ts | 22 + services/cc/v3/CcClient.ts | 1056 +++++++++++++++++ services/cc/v3/model/ApplyPolicyId.ts | 18 + .../model/AssociateSiteConnectionBandwidth.ts | 30 + ...ciateSiteConnectionBandwidthRequestBody.ts | 19 + .../AssociateSiteNetworkBandwidthRequest.ts | 36 + .../AssociateSiteNetworkBandwidthResponse.ts | 34 + services/cc/v3/model/BandwidthPackageLevel.ts | 76 ++ services/cc/v3/model/BandwidthPackageLine.ts | 73 ++ .../v3/model/BandwidthPackageLineSpecCode.ts | 78 ++ services/cc/v3/model/BandwidthPackageSite.ts | 93 ++ .../ConnectionBandwidthChargeModeEnum.ts | 6 + .../v3/model/ConnectionBandwidthSizeRange.ts | 18 + services/cc/v3/model/CreateP2PSiteNetwork.ts | 46 + .../v3/model/CreateP2PSiteNetworkRequest.ts | 12 + .../model/CreateP2PSiteNetworkRequestBody.ts | 19 + .../v3/model/CreateP2PSiteNetworkResponse.ts | 34 + services/cc/v3/model/CreateSiteInformation.ts | 59 + .../cc/v3/model/CreateSiteInformationPair.ts | 13 + services/cc/v3/model/CrossRegionType.ts | 19 + services/cc/v3/model/CrossRegionTypeEnum.ts | 6 + .../cc/v3/model/DeleteSiteNetworkRequest.ts | 18 + .../cc/v3/model/DeleteSiteNetworkResponse.ts | 34 + services/cc/v3/model/DirectedEdge.ts | 79 ++ services/cc/v3/model/DirectedEdgePair.ts | 19 + ...DisassociateSiteNetworkBandwidthRequest.ts | 30 + ...isassociateSiteNetworkBandwidthResponse.ts | 34 + services/cc/v3/model/FrozenEffect.ts | 18 + services/cc/v3/model/FrozenEffectEnum.ts | 6 + services/cc/v3/model/GatewayId.ts | 18 + services/cc/v3/model/GatewayType.ts | 19 + services/cc/v3/model/GatewayTypeEnum.ts | 6 + .../ListBandwidthPackageLevelsRequest.ts | 16 + .../ListBandwidthPackageLevelsResponse.ts | 43 + .../model/ListBandwidthPackageLinesRequest.ts | 16 + .../ListBandwidthPackageLinesResponse.ts | 31 + .../model/ListBandwidthPackageSitesRequest.ts | 33 + .../ListBandwidthPackageSitesResponse.ts | 43 + .../ListSiteNetworkCapabilitiesRequest.ts | 12 + .../ListSiteNetworkCapabilitiesResponse.ts | 28 + .../v3/model/ListSiteNetworkQuotasRequest.ts | 28 + .../v3/model/ListSiteNetworkQuotasResponse.ts | 28 + .../cc/v3/model/ListSiteNetworksRequest.ts | 99 ++ .../cc/v3/model/ListSiteNetworksResponse.ts | 46 + .../cc/v3/model/ShowSiteNetworkRequest.ts | 18 + .../cc/v3/model/ShowSiteNetworkResponse.ts | 34 + services/cc/v3/model/SiteConnection.ts | 149 +++ services/cc/v3/model/SiteConnectionState.ts | 13 + .../cc/v3/model/SiteConnectionStateEnum.ts | 6 + services/cc/v3/model/SiteInformation.ts | 79 ++ .../cc/v3/model/SiteNetworkCapabilityEntry.ts | 157 +++ services/cc/v3/model/SiteNetworkEntry.ts | 148 +++ services/cc/v3/model/SiteNetworkId.ts | 18 + services/cc/v3/model/SiteNetworkQuota.ts | 47 + services/cc/v3/model/SiteNetworkQuotaKey.ts | 19 + .../cc/v3/model/SiteNetworkQuotaKeyEnum.ts | 6 + .../v3/model/SiteNetworkSpecificationEnum.ts | 6 + services/cc/v3/model/SiteNetworkState.ts | 13 + services/cc/v3/model/SiteNetworkStateEnum.ts | 6 + services/cc/v3/model/SiteNetworkTopology.ts | 13 + .../cc/v3/model/SiteNetworkTopologyEnum.ts | 6 + .../UpdateSiteConnectionBandwidthSize.ts | 18 + ...eSiteConnectionBandwidthSizeRequestBody.ts | 19 + services/cc/v3/model/UpdateSiteNetwork.ts | 25 + .../UpdateSiteNetworkBandwidthRequest.ts | 36 + .../UpdateSiteNetworkBandwidthResponse.ts | 34 + .../UpdateSiteNetworkBandwidthSizeRequest.ts | 36 + .../UpdateSiteNetworkBandwidthSizeResponse.ts | 34 + .../cc/v3/model/UpdateSiteNetworkRequest.ts | 24 + .../v3/model/UpdateSiteNetworkRequestBody.ts | 19 + .../cc/v3/model/UpdateSiteNetworkResponse.ts | 34 + services/cc/v3/public-api.ts | 69 ++ services/ga/v1/GaClient.ts | 347 ++++++ services/ga/v1/model/CreateLogtankOption.ts | 55 + services/ga/v1/model/CreateLogtankRequest.ts | 12 + .../ga/v1/model/CreateLogtankRequestBody.ts | 13 + services/ga/v1/model/CreateLogtankResponse.ts | 25 + services/ga/v1/model/DeleteLogtankRequest.ts | 18 + services/ga/v1/model/DeleteLogtankResponse.ts | 8 + services/ga/v1/model/ListLogtanksRequest.ts | 66 ++ services/ga/v1/model/ListLogtanksResponse.ts | 37 + services/ga/v1/model/LogtankDetail.ts | 106 ++ services/ga/v1/model/LogtankResourceType.ts | 6 + services/ga/v1/model/ShowLogtankRequest.ts | 18 + services/ga/v1/model/ShowLogtankResponse.ts | 25 + services/ga/v1/model/UpdateLogtankOption.ts | 30 + services/ga/v1/model/UpdateLogtankRequest.ts | 24 + .../ga/v1/model/UpdateLogtankRequestBody.ts | 13 + services/ga/v1/model/UpdateLogtankResponse.ts | 25 + services/ga/v1/public-api.ts | 16 + .../v3/GaussDBforNoSQLClient.ts | 61 + .../BatchUpgradeDatabaseVersionRequest.ts | 12 + .../BatchUpgradeDatabaseVersionRequestBody.ts | 18 + .../BatchUpgradeDatabaseVersionResponse.ts | 20 + .../gaussdbfornosql/v3/model/UpgradeResult.ts | 51 + services/gaussdbfornosql/v3/public-api.ts | 4 + .../v1/IAMAccessAnalyzerClient.ts | 2 + .../v1/model/FindingDetails.ts | 12 + .../v1/model/UnusedAction.ts | 12 + .../v1/model/UnusedPermissionDetails.ts | 19 + services/iamaccessanalyzer/v1/public-api.ts | 2 + services/iotda/v5/IoTDAClient.ts | 612 +++++++++- .../iotda/v5/model/AddFunctionsRequest.ts | 45 + .../iotda/v5/model/AddFunctionsResponse.ts | 62 + .../iotda/v5/model/AsyncDeviceListCommand.ts | 121 ++ .../model/CountAsyncHistoryCommandsRequest.ts | 67 ++ .../CountAsyncHistoryCommandsResponse.ts | 13 + .../iotda/v5/model/DeleteFunctionsRequest.ts | 51 + .../iotda/v5/model/DeleteFunctionsResponse.ts | 13 + services/iotda/v5/model/FunctionDTO.ts | 63 + services/iotda/v5/model/FunctionRequestDTO.ts | 40 + services/iotda/v5/model/HistoryCommandPage.ts | 11 + .../v5/model/ListAsyncCommandsRequest.ts | 82 ++ .../v5/model/ListAsyncCommandsResponse.ts | 20 + .../model/ListAsyncHistoryCommandsRequest.ts | 82 ++ .../model/ListAsyncHistoryCommandsResponse.ts | 20 + .../iotda/v5/model/ListFunctionsRequest.ts | 62 + .../iotda/v5/model/ListFunctionsResponse.ts | 25 + services/iotda/v5/model/QueueCommandPage.ts | 16 + services/iotda/v5/public-api.ts | 17 + services/metastudio/v1/MetaStudioClient.ts | 140 ++- .../v1/model/ListTenantResourcesRequest.ts | 11 - .../metastudio/v1/model/SystemProperty.ts | 3 +- .../metastudio/v1/model/ValidateRobotReq.ts | 77 ++ .../v1/model/ValidateRobotRequest.ts | 56 + .../v1/model/ValidateRobotResponse.ts | 19 + services/metastudio/v1/public-api.ts | 3 + services/mpc/v1/model/CreateExtractTaskReq.ts | 6 + services/mpc/v1/model/VideoParameters.ts | 16 + services/nat/v2/NatRegion.ts | 4 +- .../model/ListEndpointInfoDetailsResponse.ts | 4 +- services/waf/v1/model/CloudWafHostItem.ts | 6 + 138 files changed, 6868 insertions(+), 195 deletions(-) create mode 100644 services/cc/v3/model/ApplyPolicyId.ts create mode 100644 services/cc/v3/model/AssociateSiteConnectionBandwidth.ts create mode 100644 services/cc/v3/model/AssociateSiteConnectionBandwidthRequestBody.ts create mode 100644 services/cc/v3/model/AssociateSiteNetworkBandwidthRequest.ts create mode 100644 services/cc/v3/model/AssociateSiteNetworkBandwidthResponse.ts create mode 100644 services/cc/v3/model/BandwidthPackageLevel.ts create mode 100644 services/cc/v3/model/BandwidthPackageLine.ts create mode 100644 services/cc/v3/model/BandwidthPackageLineSpecCode.ts create mode 100644 services/cc/v3/model/BandwidthPackageSite.ts create mode 100644 services/cc/v3/model/ConnectionBandwidthChargeModeEnum.ts create mode 100644 services/cc/v3/model/ConnectionBandwidthSizeRange.ts create mode 100644 services/cc/v3/model/CreateP2PSiteNetwork.ts create mode 100644 services/cc/v3/model/CreateP2PSiteNetworkRequest.ts create mode 100644 services/cc/v3/model/CreateP2PSiteNetworkRequestBody.ts create mode 100644 services/cc/v3/model/CreateP2PSiteNetworkResponse.ts create mode 100644 services/cc/v3/model/CreateSiteInformation.ts create mode 100644 services/cc/v3/model/CreateSiteInformationPair.ts create mode 100644 services/cc/v3/model/CrossRegionType.ts create mode 100644 services/cc/v3/model/CrossRegionTypeEnum.ts create mode 100644 services/cc/v3/model/DeleteSiteNetworkRequest.ts create mode 100644 services/cc/v3/model/DeleteSiteNetworkResponse.ts create mode 100644 services/cc/v3/model/DirectedEdge.ts create mode 100644 services/cc/v3/model/DirectedEdgePair.ts create mode 100644 services/cc/v3/model/DisassociateSiteNetworkBandwidthRequest.ts create mode 100644 services/cc/v3/model/DisassociateSiteNetworkBandwidthResponse.ts create mode 100644 services/cc/v3/model/FrozenEffect.ts create mode 100644 services/cc/v3/model/FrozenEffectEnum.ts create mode 100644 services/cc/v3/model/GatewayId.ts create mode 100644 services/cc/v3/model/GatewayType.ts create mode 100644 services/cc/v3/model/GatewayTypeEnum.ts create mode 100644 services/cc/v3/model/ListBandwidthPackageLevelsRequest.ts create mode 100644 services/cc/v3/model/ListBandwidthPackageLevelsResponse.ts create mode 100644 services/cc/v3/model/ListBandwidthPackageLinesRequest.ts create mode 100644 services/cc/v3/model/ListBandwidthPackageLinesResponse.ts create mode 100644 services/cc/v3/model/ListBandwidthPackageSitesRequest.ts create mode 100644 services/cc/v3/model/ListBandwidthPackageSitesResponse.ts create mode 100644 services/cc/v3/model/ListSiteNetworkCapabilitiesRequest.ts create mode 100644 services/cc/v3/model/ListSiteNetworkCapabilitiesResponse.ts create mode 100644 services/cc/v3/model/ListSiteNetworkQuotasRequest.ts create mode 100644 services/cc/v3/model/ListSiteNetworkQuotasResponse.ts create mode 100644 services/cc/v3/model/ListSiteNetworksRequest.ts create mode 100644 services/cc/v3/model/ListSiteNetworksResponse.ts create mode 100644 services/cc/v3/model/ShowSiteNetworkRequest.ts create mode 100644 services/cc/v3/model/ShowSiteNetworkResponse.ts create mode 100644 services/cc/v3/model/SiteConnection.ts create mode 100644 services/cc/v3/model/SiteConnectionState.ts create mode 100644 services/cc/v3/model/SiteConnectionStateEnum.ts create mode 100644 services/cc/v3/model/SiteInformation.ts create mode 100644 services/cc/v3/model/SiteNetworkCapabilityEntry.ts create mode 100644 services/cc/v3/model/SiteNetworkEntry.ts create mode 100644 services/cc/v3/model/SiteNetworkId.ts create mode 100644 services/cc/v3/model/SiteNetworkQuota.ts create mode 100644 services/cc/v3/model/SiteNetworkQuotaKey.ts create mode 100644 services/cc/v3/model/SiteNetworkQuotaKeyEnum.ts create mode 100644 services/cc/v3/model/SiteNetworkSpecificationEnum.ts create mode 100644 services/cc/v3/model/SiteNetworkState.ts create mode 100644 services/cc/v3/model/SiteNetworkStateEnum.ts create mode 100644 services/cc/v3/model/SiteNetworkTopology.ts create mode 100644 services/cc/v3/model/SiteNetworkTopologyEnum.ts create mode 100644 services/cc/v3/model/UpdateSiteConnectionBandwidthSize.ts create mode 100644 services/cc/v3/model/UpdateSiteConnectionBandwidthSizeRequestBody.ts create mode 100644 services/cc/v3/model/UpdateSiteNetwork.ts create mode 100644 services/cc/v3/model/UpdateSiteNetworkBandwidthRequest.ts create mode 100644 services/cc/v3/model/UpdateSiteNetworkBandwidthResponse.ts create mode 100644 services/cc/v3/model/UpdateSiteNetworkBandwidthSizeRequest.ts create mode 100644 services/cc/v3/model/UpdateSiteNetworkBandwidthSizeResponse.ts create mode 100644 services/cc/v3/model/UpdateSiteNetworkRequest.ts create mode 100644 services/cc/v3/model/UpdateSiteNetworkRequestBody.ts create mode 100644 services/cc/v3/model/UpdateSiteNetworkResponse.ts create mode 100644 services/ga/v1/model/CreateLogtankOption.ts create mode 100644 services/ga/v1/model/CreateLogtankRequest.ts create mode 100644 services/ga/v1/model/CreateLogtankRequestBody.ts create mode 100644 services/ga/v1/model/CreateLogtankResponse.ts create mode 100644 services/ga/v1/model/DeleteLogtankRequest.ts create mode 100644 services/ga/v1/model/DeleteLogtankResponse.ts create mode 100644 services/ga/v1/model/ListLogtanksRequest.ts create mode 100644 services/ga/v1/model/ListLogtanksResponse.ts create mode 100644 services/ga/v1/model/LogtankDetail.ts create mode 100644 services/ga/v1/model/LogtankResourceType.ts create mode 100644 services/ga/v1/model/ShowLogtankRequest.ts create mode 100644 services/ga/v1/model/ShowLogtankResponse.ts create mode 100644 services/ga/v1/model/UpdateLogtankOption.ts create mode 100644 services/ga/v1/model/UpdateLogtankRequest.ts create mode 100644 services/ga/v1/model/UpdateLogtankRequestBody.ts create mode 100644 services/ga/v1/model/UpdateLogtankResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequest.ts create mode 100644 services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts create mode 100644 services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionResponse.ts create mode 100644 services/gaussdbfornosql/v3/model/UpgradeResult.ts create mode 100644 services/iamaccessanalyzer/v1/model/UnusedAction.ts create mode 100644 services/iamaccessanalyzer/v1/model/UnusedPermissionDetails.ts create mode 100644 services/iotda/v5/model/AddFunctionsRequest.ts create mode 100644 services/iotda/v5/model/AddFunctionsResponse.ts create mode 100644 services/iotda/v5/model/AsyncDeviceListCommand.ts create mode 100644 services/iotda/v5/model/CountAsyncHistoryCommandsRequest.ts create mode 100644 services/iotda/v5/model/CountAsyncHistoryCommandsResponse.ts create mode 100644 services/iotda/v5/model/DeleteFunctionsRequest.ts create mode 100644 services/iotda/v5/model/DeleteFunctionsResponse.ts create mode 100644 services/iotda/v5/model/FunctionDTO.ts create mode 100644 services/iotda/v5/model/FunctionRequestDTO.ts create mode 100644 services/iotda/v5/model/HistoryCommandPage.ts create mode 100644 services/iotda/v5/model/ListAsyncCommandsRequest.ts create mode 100644 services/iotda/v5/model/ListAsyncCommandsResponse.ts create mode 100644 services/iotda/v5/model/ListAsyncHistoryCommandsRequest.ts create mode 100644 services/iotda/v5/model/ListAsyncHistoryCommandsResponse.ts create mode 100644 services/iotda/v5/model/ListFunctionsRequest.ts create mode 100644 services/iotda/v5/model/ListFunctionsResponse.ts create mode 100644 services/iotda/v5/model/QueueCommandPage.ts create mode 100644 services/metastudio/v1/model/ValidateRobotReq.ts create mode 100644 services/metastudio/v1/model/ValidateRobotRequest.ts create mode 100644 services/metastudio/v1/model/ValidateRobotResponse.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index cac42dac3..f68e3fb3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,190 @@ +# 3.1.122 2024-11-07 + +### HuaweiCloud SDK AAD + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **UpgradeInstanceSpec** + - changes of request param + - `+ upgrade_data.elastic_service_bandwidth_type` + - `+ upgrade_data.elastic_service_bandwidth` + +### HuaweiCloud SDK CC + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `CreateP2PSiteNetwork` + - `ListSiteNetworks` + - `ShowSiteNetwork` + - `UpdateSiteNetwork` + - `DeleteSiteNetwork` + - `DisassociateSiteNetworkBandwidth` + - `AssociateSiteNetworkBandwidth` + - `UpdateSiteNetworkBandwidthSize` + - `UpdateSiteNetworkBandwidth` + - `ListSiteNetworkQuotas` + - `ListSiteNetworkCapabilities` + - `ListBandwidthPackageSites` + - `ListBandwidthPackageLevels` + - `ListBandwidthPackageLines` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GA + +- _API Version_ + - V1 +- _Features_ + - Support the following APIs: + - `ListLogtanks` + - `CreateLogtank` + - `ShowLogtank` + - `UpdateLogtank` + - `DeleteLogtank` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK GaussDBforNoSQL + +- _API Version_ + - V3 +- _Features_ + - Support the API `BatchUpgradeDatabaseVersion` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK IAMAccessAnalyzer + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListFindings** + - changes of response param + - `+ findings.finding_type: enum value [unused_permission]` + - **ShowFinding** + - changes of response param + - `+ finding.finding_type: enum value [unused_permission]` + - `+ finding.finding_details.unused_permission_details` + - **ValidatePolicy** + - changes of request param + - `- validate_policy_resource_type: enum value [obs:bucket]` + +### HuaweiCloud SDK IoTDA + +- _API Version_ + - V5 +- _Features_ + - Support the following APIs: + - `ListAsyncHistoryCommands` + - `CountAsyncHistoryCommands` + - `ListFunctions` + - `AddFunctions` + - `DeleteFunctions` + - `ListAsyncCommands` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK MetaStudio + +- _API Version_ + - V1 +- _Features_ + - Support the API `ValidateRobot` +- _Bug Fix_ + - None +- _Change_ + - **ListTenantResources** + - changes of request param + - `- resource_name` + - **ShowAsset** + - changes of response param + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - **UpdateDigitalAsset** + - changes of request param + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - changes of response param + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - **CreateDigitalAsset** + - changes of request param + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - **ListAssets** + - changes of response param + - `+ assets.system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + +### HuaweiCloud SDK MPC + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateExtractTask** + - changes of request param + - `+ encryption` + - **CreateTranscodingTask** + - changes of request param + - `+ av_parameters.video.crf` + - `+ av_parameters.video.max_bitrate` + - **ListTranscodingTask** + - changes of response param + - `+ task_array.av_parameters.video.crf` + - `+ task_array.av_parameters.video.max_bitrate` + - **CreateEditingJob** + - changes of request param + - `+ concats.av_parameters.video.crf` + - `+ concats.av_parameters.video.max_bitrate` + - **ListEditingJob** + - changes of response param + - `+ jobs.edit_task_req.concats.av_parameters.video.crf` + - `+ jobs.edit_task_req.concats.av_parameters.video.max_bitrate` + +### HuaweiCloud SDK VPCEP + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListEndpointInfoDetails** + - changes of response param + - `* error: object -> list` + +### HuaweiCloud SDK WAF + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ListHost** + - changes of response param + - `+ items.server` + # 3.1.121 2024-10-31 ### HuaweiCloud SDK APIG diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index b34c3db03..54f727ffb 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,190 @@ +# 3.1.122 2024-11-07 + +### HuaweiCloud SDK AAD + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **UpgradeInstanceSpec** + - 请求参数变更 + - `+ upgrade_data.elastic_service_bandwidth_type` + - `+ upgrade_data.elastic_service_bandwidth` + +### HuaweiCloud SDK CC + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `CreateP2PSiteNetwork` + - `ListSiteNetworks` + - `ShowSiteNetwork` + - `UpdateSiteNetwork` + - `DeleteSiteNetwork` + - `DisassociateSiteNetworkBandwidth` + - `AssociateSiteNetworkBandwidth` + - `UpdateSiteNetworkBandwidthSize` + - `UpdateSiteNetworkBandwidth` + - `ListSiteNetworkQuotas` + - `ListSiteNetworkCapabilities` + - `ListBandwidthPackageSites` + - `ListBandwidthPackageLevels` + - `ListBandwidthPackageLines` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GA + +- _接口版本_ + - V1 +- _新增特性_ + - 支持以下接口: + - `ListLogtanks` + - `CreateLogtank` + - `ShowLogtank` + - `UpdateLogtank` + - `DeleteLogtank` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK GaussDBforNoSQL + +- _接口版本_ + - V3 +- _新增特性_ + - 支持接口`BatchUpgradeDatabaseVersion` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK IAMAccessAnalyzer + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListFindings** + - 响应参数变更 + - `+ findings.finding_type: enum value [unused_permission]` + - **ShowFinding** + - 响应参数变更 + - `+ finding.finding_type: enum value [unused_permission]` + - `+ finding.finding_details.unused_permission_details` + - **ValidatePolicy** + - 请求参数变更 + - `- validate_policy_resource_type: enum value [obs:bucket]` + +### HuaweiCloud SDK IoTDA + +- _接口版本_ + - V5 +- _新增特性_ + - 支持以下接口: + - `ListAsyncHistoryCommands` + - `CountAsyncHistoryCommands` + - `ListFunctions` + - `AddFunctions` + - `DeleteFunctions` + - `ListAsyncCommands` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK MetaStudio + +- _接口版本_ + - V1 +- _新增特性_ + - 支持接口`ValidateRobot` +- _解决问题_ + - 无 +- _特性变更_ + - **ListTenantResources** + - 请求参数变更 + - `- resource_name` + - **ShowAsset** + - 响应参数变更 + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - **UpdateDigitalAsset** + - 请求参数变更 + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - 响应参数变更 + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - **CreateDigitalAsset** + - 请求参数变更 + - `+ system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + - **ListAssets** + - 响应参数变更 + - `+ assets.system_properties.key: enum value [MEITUAN_MATERIAL_APPROVED]` + +### HuaweiCloud SDK MPC + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateExtractTask** + - 请求参数变更 + - `+ encryption` + - **CreateTranscodingTask** + - 请求参数变更 + - `+ av_parameters.video.crf` + - `+ av_parameters.video.max_bitrate` + - **ListTranscodingTask** + - 响应参数变更 + - `+ task_array.av_parameters.video.crf` + - `+ task_array.av_parameters.video.max_bitrate` + - **CreateEditingJob** + - 请求参数变更 + - `+ concats.av_parameters.video.crf` + - `+ concats.av_parameters.video.max_bitrate` + - **ListEditingJob** + - 响应参数变更 + - `+ jobs.edit_task_req.concats.av_parameters.video.crf` + - `+ jobs.edit_task_req.concats.av_parameters.video.max_bitrate` + +### HuaweiCloud SDK VPCEP + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListEndpointInfoDetails** + - 响应参数变更 + - `* error: object -> list` + +### HuaweiCloud SDK WAF + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ListHost** + - 响应参数变更 + - `+ items.server` + # 3.1.121 2024-10-31 ### HuaweiCloud SDK APIG diff --git a/VERSION b/VERSION index 46e9fbfc8..d65367016 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.121 +3.1.122 diff --git a/all/package.json b/all/package.json index 34be0b0ff..bc45c646a 100644 --- a/all/package.json +++ b/all/package.json @@ -1,106 +1,106 @@ { "name": "@huaweicloud/huaweicloud-sdk-all", - "version": "3.1.121", + "version": "3.1.122", "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.121", - "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.121", - "@huaweicloud/huaweicloud-sdk-aom": "3.1.121", - "@huaweicloud/huaweicloud-sdk-aos": "3.1.121", - "@huaweicloud/huaweicloud-sdk-apig": "3.1.121", - "@huaweicloud/huaweicloud-sdk-as": "3.1.121", - "@huaweicloud/huaweicloud-sdk-bms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cbh": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cbr": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cc": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cce": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cdm": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cdn": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ces": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cfw": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.121", - "@huaweicloud/huaweicloud-sdk-coc": "3.1.121", - "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.121", - "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.121", - "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.121", - "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.121", - "@huaweicloud/huaweicloud-sdk-config": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cse": "3.1.121", - "@huaweicloud/huaweicloud-sdk-csms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-css": "3.1.121", - "@huaweicloud/huaweicloud-sdk-cts": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dbss": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dc": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dcs": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dds": "3.1.121", - "@huaweicloud/huaweicloud-sdk-devstar": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dli": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dns": "3.1.121", - "@huaweicloud/huaweicloud-sdk-drs": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dsc": "3.1.121", - "@huaweicloud/huaweicloud-sdk-dws": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ecs": "3.1.121", - "@huaweicloud/huaweicloud-sdk-eip": "3.1.121", - "@huaweicloud/huaweicloud-sdk-elb": "3.1.121", - "@huaweicloud/huaweicloud-sdk-eps": "3.1.121", - "@huaweicloud/huaweicloud-sdk-er": "3.1.121", - "@huaweicloud/huaweicloud-sdk-evs": "3.1.121", - "@huaweicloud/huaweicloud-sdk-frs": "3.1.121", - "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ga": "3.1.121", - "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.121", - "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.121", - "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ges": "3.1.121", - "@huaweicloud/huaweicloud-sdk-hss": "3.1.121", - "@huaweicloud/huaweicloud-sdk-iam": "3.1.121", - "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.121", - "@huaweicloud/huaweicloud-sdk-image": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ims": "3.1.121", - "@huaweicloud/huaweicloud-sdk-iotda": "3.1.121", - "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ivs": "3.1.121", - "@huaweicloud/huaweicloud-sdk-kafka": "3.1.121", - "@huaweicloud/huaweicloud-sdk-kms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-kps": "3.1.121", - "@huaweicloud/huaweicloud-sdk-live": "3.1.121", - "@huaweicloud/huaweicloud-sdk-lts": "3.1.121", - "@huaweicloud/huaweicloud-sdk-meeting": "3.1.121", - "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.121", - "@huaweicloud/huaweicloud-sdk-moderation": "3.1.121", - "@huaweicloud/huaweicloud-sdk-mpc": "3.1.121", - "@huaweicloud/huaweicloud-sdk-mrs": "3.1.121", - "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-nat": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ocr": "3.1.121", - "@huaweicloud/huaweicloud-sdk-oms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-organizations": "3.1.121", - "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.121", - "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.121", - "@huaweicloud/huaweicloud-sdk-ram": "3.1.121", - "@huaweicloud/huaweicloud-sdk-rds": "3.1.121", - "@huaweicloud/huaweicloud-sdk-rms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.121", - "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.121", - "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.121", - "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.121", - "@huaweicloud/huaweicloud-sdk-sis": "3.1.121", - "@huaweicloud/huaweicloud-sdk-smn": "3.1.121", - "@huaweicloud/huaweicloud-sdk-sms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-swr": "3.1.121", - "@huaweicloud/huaweicloud-sdk-tics": "3.1.121", - "@huaweicloud/huaweicloud-sdk-tms": "3.1.121", - "@huaweicloud/huaweicloud-sdk-vod": "3.1.121", - "@huaweicloud/huaweicloud-sdk-vpc": "3.1.121", - "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.121", - "@huaweicloud/huaweicloud-sdk-vpn": "3.1.121", - "@huaweicloud/huaweicloud-sdk-waf": "3.1.121" + "@huaweicloud/huaweicloud-sdk-aad": "3.1.122", + "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.122", + "@huaweicloud/huaweicloud-sdk-aom": "3.1.122", + "@huaweicloud/huaweicloud-sdk-aos": "3.1.122", + "@huaweicloud/huaweicloud-sdk-apig": "3.1.122", + "@huaweicloud/huaweicloud-sdk-as": "3.1.122", + "@huaweicloud/huaweicloud-sdk-bms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cbh": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cbr": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cc": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cce": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cdm": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cdn": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ces": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cfw": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.122", + "@huaweicloud/huaweicloud-sdk-coc": "3.1.122", + "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.122", + "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.122", + "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.122", + "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.122", + "@huaweicloud/huaweicloud-sdk-config": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cse": "3.1.122", + "@huaweicloud/huaweicloud-sdk-csms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-css": "3.1.122", + "@huaweicloud/huaweicloud-sdk-cts": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dbss": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dc": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dcs": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dds": "3.1.122", + "@huaweicloud/huaweicloud-sdk-devstar": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dli": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dns": "3.1.122", + "@huaweicloud/huaweicloud-sdk-drs": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dsc": "3.1.122", + "@huaweicloud/huaweicloud-sdk-dws": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ecs": "3.1.122", + "@huaweicloud/huaweicloud-sdk-eip": "3.1.122", + "@huaweicloud/huaweicloud-sdk-elb": "3.1.122", + "@huaweicloud/huaweicloud-sdk-eps": "3.1.122", + "@huaweicloud/huaweicloud-sdk-er": "3.1.122", + "@huaweicloud/huaweicloud-sdk-evs": "3.1.122", + "@huaweicloud/huaweicloud-sdk-frs": "3.1.122", + "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ga": "3.1.122", + "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.122", + "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.122", + "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ges": "3.1.122", + "@huaweicloud/huaweicloud-sdk-hss": "3.1.122", + "@huaweicloud/huaweicloud-sdk-iam": "3.1.122", + "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.122", + "@huaweicloud/huaweicloud-sdk-image": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ims": "3.1.122", + "@huaweicloud/huaweicloud-sdk-iotda": "3.1.122", + "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ivs": "3.1.122", + "@huaweicloud/huaweicloud-sdk-kafka": "3.1.122", + "@huaweicloud/huaweicloud-sdk-kms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-kps": "3.1.122", + "@huaweicloud/huaweicloud-sdk-live": "3.1.122", + "@huaweicloud/huaweicloud-sdk-lts": "3.1.122", + "@huaweicloud/huaweicloud-sdk-meeting": "3.1.122", + "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.122", + "@huaweicloud/huaweicloud-sdk-moderation": "3.1.122", + "@huaweicloud/huaweicloud-sdk-mpc": "3.1.122", + "@huaweicloud/huaweicloud-sdk-mrs": "3.1.122", + "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-nat": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ocr": "3.1.122", + "@huaweicloud/huaweicloud-sdk-oms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-organizations": "3.1.122", + "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.122", + "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.122", + "@huaweicloud/huaweicloud-sdk-ram": "3.1.122", + "@huaweicloud/huaweicloud-sdk-rds": "3.1.122", + "@huaweicloud/huaweicloud-sdk-rms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.122", + "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.122", + "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.122", + "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.122", + "@huaweicloud/huaweicloud-sdk-sis": "3.1.122", + "@huaweicloud/huaweicloud-sdk-smn": "3.1.122", + "@huaweicloud/huaweicloud-sdk-sms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-swr": "3.1.122", + "@huaweicloud/huaweicloud-sdk-tics": "3.1.122", + "@huaweicloud/huaweicloud-sdk-tms": "3.1.122", + "@huaweicloud/huaweicloud-sdk-vod": "3.1.122", + "@huaweicloud/huaweicloud-sdk-vpc": "3.1.122", + "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.122", + "@huaweicloud/huaweicloud-sdk-vpn": "3.1.122", + "@huaweicloud/huaweicloud-sdk-waf": "3.1.122" }, "files": ["package.json"] } diff --git a/package.json b/package.json index 083f75c3d..6c39c9b66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huaweicloud-sdk-nodejs-v3", - "version": "3.1.121", + "version": "3.1.122", "description": "Core code for Huaweicloud SDK for Node.js", "main": "index.js", "scripts": { diff --git a/services/aad/v2/AadClient.ts b/services/aad/v2/AadClient.ts index 6cabf3cb0..5be8da9e0 100644 --- a/services/aad/v2/AadClient.ts +++ b/services/aad/v2/AadClient.ts @@ -106,6 +106,25 @@ export class AadClient { return this.hcClient.sendRequest(options); } + /** + * 删除防护域名 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除防护域名 + * @param {DeleteDomainV2RequestBody} deleteDomainV2RequestBody 删除防护域名信息 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteDomain(deleteDomainRequest?: DeleteDomainRequest): Promise { + const options = ParamCreater().deleteDomain(deleteDomainRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询DDoS攻击事件列表 * @@ -462,25 +481,6 @@ export class AadClient { return this.hcClient.sendRequest(options); } - - /** - * 删除防护域名 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 删除防护域名 - * @param {DeleteDomainV2RequestBody} deleteDomainV2RequestBody 删除防护域名信息 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public deleteDomain(deleteDomainRequest?: DeleteDomainRequest): Promise { - const options = ParamCreater().deleteDomain(deleteDomainRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } } export const ParamCreater = function () { @@ -524,6 +524,44 @@ export const ParamCreater = function () { return options; }, + /** + * 删除防护域名 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteDomain(deleteDomainRequest?: DeleteDomainRequest) { + const options = { + method: "DELETE", + url: "/v2/aad/domains", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (deleteDomainRequest !== null && deleteDomainRequest !== undefined) { + if (deleteDomainRequest instanceof DeleteDomainRequest) { + body = deleteDomainRequest.body + } else { + body = deleteDomainRequest['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'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询DDoS攻击事件列表 * @@ -1449,44 +1487,6 @@ export const ParamCreater = function () { } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 删除防护域名 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - deleteDomain(deleteDomainRequest?: DeleteDomainRequest) { - const options = { - method: "DELETE", - url: "/v2/aad/domains", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (deleteDomainRequest !== null && deleteDomainRequest !== undefined) { - if (deleteDomainRequest instanceof DeleteDomainRequest) { - body = deleteDomainRequest.body - } else { - body = deleteDomainRequest['body']; - } - } - - if (body === null || body === undefined) { throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); } diff --git a/services/aad/v2/model/UpgradeInstanceData.ts b/services/aad/v2/model/UpgradeInstanceData.ts index 9bbd4715a..265cee7c3 100644 --- a/services/aad/v2/model/UpgradeInstanceData.ts +++ b/services/aad/v2/model/UpgradeInstanceData.ts @@ -6,6 +6,8 @@ export class UpgradeInstanceData { private 'service_bandwidth'?: number; private 'port_num'?: number; private 'bind_domain_num'?: number; + private 'elastic_service_bandwidth_type'?: number; + private 'elastic_service_bandwidth'?: number; public constructor() { } public withBasicBandwidth(basicBandwidth: string): UpgradeInstanceData { @@ -58,4 +60,24 @@ export class UpgradeInstanceData { public get bindDomainNum(): number | undefined { return this['bind_domain_num']; } + public withElasticServiceBandwidthType(elasticServiceBandwidthType: number): UpgradeInstanceData { + this['elastic_service_bandwidth_type'] = elasticServiceBandwidthType; + return this; + } + public set elasticServiceBandwidthType(elasticServiceBandwidthType: number | undefined) { + this['elastic_service_bandwidth_type'] = elasticServiceBandwidthType; + } + public get elasticServiceBandwidthType(): number | undefined { + return this['elastic_service_bandwidth_type']; + } + public withElasticServiceBandwidth(elasticServiceBandwidth: number): UpgradeInstanceData { + this['elastic_service_bandwidth'] = elasticServiceBandwidth; + return this; + } + public set elasticServiceBandwidth(elasticServiceBandwidth: number | undefined) { + this['elastic_service_bandwidth'] = elasticServiceBandwidth; + } + public get elasticServiceBandwidth(): number | undefined { + return this['elastic_service_bandwidth']; + } } \ No newline at end of file diff --git a/services/cc/v3/CcClient.ts b/services/cc/v3/CcClient.ts index ad62e4cf1..fe855daa3 100644 --- a/services/cc/v3/CcClient.ts +++ b/services/cc/v3/CcClient.ts @@ -4,6 +4,7 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; import { ApplyCentralNetworkPolicyRequest } from './model/ApplyCentralNetworkPolicyRequest'; import { ApplyCentralNetworkPolicyResponse } from './model/ApplyCentralNetworkPolicyResponse'; +import { ApplyPolicyId } from './model/ApplyPolicyId'; import { ApprovedStateEnum } from './model/ApprovedStateEnum'; import { AreaIdDef } from './model/AreaIdDef'; import { Asn } from './model/Asn'; @@ -18,6 +19,10 @@ import { AssociateGlobalConnectionBandwidthInstanceRequestBody } from './model/A import { AssociateGlobalConnectionBandwidthInstanceRequestInfo } from './model/AssociateGlobalConnectionBandwidthInstanceRequestInfo'; import { AssociateGlobalConnectionBandwidthInstanceResponse } from './model/AssociateGlobalConnectionBandwidthInstanceResponse'; import { AssociateGlobalConnectionBandwidthInstanceResponseInfo } from './model/AssociateGlobalConnectionBandwidthInstanceResponseInfo'; +import { AssociateSiteConnectionBandwidth } from './model/AssociateSiteConnectionBandwidth'; +import { AssociateSiteConnectionBandwidthRequestBody } from './model/AssociateSiteConnectionBandwidthRequestBody'; +import { AssociateSiteNetworkBandwidthRequest } from './model/AssociateSiteNetworkBandwidthRequest'; +import { AssociateSiteNetworkBandwidthResponse } from './model/AssociateSiteNetworkBandwidthResponse'; import { AttachedEnterpriseRouterAttachmentId } from './model/AttachedEnterpriseRouterAttachmentId'; import { AttachedEnterpriseRouterId } from './model/AttachedEnterpriseRouterId'; import { AttachedEnterpriseRouterProjectId } from './model/AttachedEnterpriseRouterProjectId'; @@ -37,6 +42,10 @@ import { AutoAssociateRouteEnabled } from './model/AutoAssociateRouteEnabled'; import { AutoPropagateRouteEnabled } from './model/AutoPropagateRouteEnabled'; import { BandwidthPackage } from './model/BandwidthPackage'; import { BandwidthPackageId } from './model/BandwidthPackageId'; +import { BandwidthPackageLevel } from './model/BandwidthPackageLevel'; +import { BandwidthPackageLine } from './model/BandwidthPackageLine'; +import { BandwidthPackageLineSpecCode } from './model/BandwidthPackageLineSpecCode'; +import { BandwidthPackageSite } from './model/BandwidthPackageSite'; import { BandwidthSize } from './model/BandwidthSize'; import { BandwidthSizeDefine } from './model/BandwidthSizeDefine'; import { BandwidthType } from './model/BandwidthType'; @@ -79,6 +88,8 @@ import { CloudConnection } from './model/CloudConnection'; import { CloudConnectionId } from './model/CloudConnectionId'; import { CloudConnectionQuota } from './model/CloudConnectionQuota'; import { CloudConnectionRoute } from './model/CloudConnectionRoute'; +import { ConnectionBandwidthChargeModeEnum } from './model/ConnectionBandwidthChargeModeEnum'; +import { ConnectionBandwidthSizeRange } from './model/ConnectionBandwidthSizeRange'; import { ConnectionPoint } from './model/ConnectionPoint'; import { ConnectionPointInstanceId } from './model/ConnectionPointInstanceId'; import { ConnectionPointPair } from './model/ConnectionPointPair'; @@ -131,7 +142,15 @@ import { CreateNetworkInstance } from './model/CreateNetworkInstance'; import { CreateNetworkInstanceRequest } from './model/CreateNetworkInstanceRequest'; import { CreateNetworkInstanceRequestBody } from './model/CreateNetworkInstanceRequestBody'; import { CreateNetworkInstanceResponse } from './model/CreateNetworkInstanceResponse'; +import { CreateP2PSiteNetwork } from './model/CreateP2PSiteNetwork'; +import { CreateP2PSiteNetworkRequest } from './model/CreateP2PSiteNetworkRequest'; +import { CreateP2PSiteNetworkRequestBody } from './model/CreateP2PSiteNetworkRequestBody'; +import { CreateP2PSiteNetworkResponse } from './model/CreateP2PSiteNetworkResponse'; +import { CreateSiteInformation } from './model/CreateSiteInformation'; +import { CreateSiteInformationPair } from './model/CreateSiteInformationPair'; import { CreatedAt } from './model/CreatedAt'; +import { CrossRegionType } from './model/CrossRegionType'; +import { CrossRegionTypeEnum } from './model/CrossRegionTypeEnum'; import { DeleteAuthorisationRequest } from './model/DeleteAuthorisationRequest'; import { DeleteAuthorisationResponse } from './model/DeleteAuthorisationResponse'; import { DeleteBandwidthPackageRequest } from './model/DeleteBandwidthPackageRequest'; @@ -152,7 +171,11 @@ import { DeleteInterRegionBandwidthRequest } from './model/DeleteInterRegionBand import { DeleteInterRegionBandwidthResponse } from './model/DeleteInterRegionBandwidthResponse'; import { DeleteNetworkInstanceRequest } from './model/DeleteNetworkInstanceRequest'; import { DeleteNetworkInstanceResponse } from './model/DeleteNetworkInstanceResponse'; +import { DeleteSiteNetworkRequest } from './model/DeleteSiteNetworkRequest'; +import { DeleteSiteNetworkResponse } from './model/DeleteSiteNetworkResponse'; import { Description } from './model/Description'; +import { DirectedEdge } from './model/DirectedEdge'; +import { DirectedEdgePair } from './model/DirectedEdgePair'; import { DisassociateBandwidthPackage } from './model/DisassociateBandwidthPackage'; import { DisassociateBandwidthPackageRequest } from './model/DisassociateBandwidthPackageRequest'; import { DisassociateBandwidthPackageRequestBody } from './model/DisassociateBandwidthPackageRequestBody'; @@ -162,6 +185,8 @@ import { DisassociateGlobalConnectionBandwidthInstanceRequestBody } from './mode import { DisassociateGlobalConnectionBandwidthInstanceRequestInfo } from './model/DisassociateGlobalConnectionBandwidthInstanceRequestInfo'; import { DisassociateGlobalConnectionBandwidthInstanceResponse } from './model/DisassociateGlobalConnectionBandwidthInstanceResponse'; import { DisassociateGlobalConnectionBandwidthInstanceResponseInfo } from './model/DisassociateGlobalConnectionBandwidthInstanceResponseInfo'; +import { DisassociateSiteNetworkBandwidthRequest } from './model/DisassociateSiteNetworkBandwidthRequest'; +import { DisassociateSiteNetworkBandwidthResponse } from './model/DisassociateSiteNetworkBandwidthResponse'; import { DocumentTemplateVersion } from './model/DocumentTemplateVersion'; import { DocumentTemplateVersionEnum } from './model/DocumentTemplateVersionEnum'; import { DomainId } from './model/DomainId'; @@ -173,6 +198,11 @@ import { EnterpriseRouterProjectId } from './model/EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './model/EnterpriseRouterRegionId'; import { EnterpriseRouterSiteCode } from './model/EnterpriseRouterSiteCode'; import { EnterpriseRouterTableId } from './model/EnterpriseRouterTableId'; +import { FrozenEffect } from './model/FrozenEffect'; +import { FrozenEffectEnum } from './model/FrozenEffectEnum'; +import { GatewayId } from './model/GatewayId'; +import { GatewayType } from './model/GatewayType'; +import { GatewayTypeEnum } from './model/GatewayTypeEnum'; import { GcbAdminState } from './model/GcbAdminState'; import { GcbBindingServiceAll } from './model/GcbBindingServiceAll'; import { GcbBorderCross } from './model/GcbBorderCross'; @@ -213,6 +243,12 @@ import { InterRegionBandwidth } from './model/InterRegionBandwidth'; import { IsFrozen } from './model/IsFrozen'; import { ListAuthorisationsRequest } from './model/ListAuthorisationsRequest'; import { ListAuthorisationsResponse } from './model/ListAuthorisationsResponse'; +import { ListBandwidthPackageLevelsRequest } from './model/ListBandwidthPackageLevelsRequest'; +import { ListBandwidthPackageLevelsResponse } from './model/ListBandwidthPackageLevelsResponse'; +import { ListBandwidthPackageLinesRequest } from './model/ListBandwidthPackageLinesRequest'; +import { ListBandwidthPackageLinesResponse } from './model/ListBandwidthPackageLinesResponse'; +import { ListBandwidthPackageSitesRequest } from './model/ListBandwidthPackageSitesRequest'; +import { ListBandwidthPackageSitesResponse } from './model/ListBandwidthPackageSitesResponse'; import { ListBandwidthPackageTagsRequest } from './model/ListBandwidthPackageTagsRequest'; import { ListBandwidthPackageTagsResponse } from './model/ListBandwidthPackageTagsResponse'; import { ListBandwidthPackagesByTagsRequest } from './model/ListBandwidthPackagesByTagsRequest'; @@ -278,6 +314,12 @@ import { ListNetworkInstancesResponse } from './model/ListNetworkInstancesRespon import { ListPermissionsRequest } from './model/ListPermissionsRequest'; import { ListPermissionsResponse } from './model/ListPermissionsResponse'; import { ListResponseBody } from './model/ListResponseBody'; +import { ListSiteNetworkCapabilitiesRequest } from './model/ListSiteNetworkCapabilitiesRequest'; +import { ListSiteNetworkCapabilitiesResponse } from './model/ListSiteNetworkCapabilitiesResponse'; +import { ListSiteNetworkQuotasRequest } from './model/ListSiteNetworkQuotasRequest'; +import { ListSiteNetworkQuotasResponse } from './model/ListSiteNetworkQuotasResponse'; +import { ListSiteNetworksRequest } from './model/ListSiteNetworksRequest'; +import { ListSiteNetworksResponse } from './model/ListSiteNetworksResponse'; import { ListSupportBindingConnectionBandwidthsRequest } from './model/ListSupportBindingConnectionBandwidthsRequest'; import { ListSupportBindingConnectionBandwidthsResponse } from './model/ListSupportBindingConnectionBandwidthsResponse'; import { LocalAreaId } from './model/LocalAreaId'; @@ -330,9 +372,26 @@ import { ShowInterRegionBandwidthRequest } from './model/ShowInterRegionBandwidt import { ShowInterRegionBandwidthResponse } from './model/ShowInterRegionBandwidthResponse'; import { ShowNetworkInstanceRequest } from './model/ShowNetworkInstanceRequest'; import { ShowNetworkInstanceResponse } from './model/ShowNetworkInstanceResponse'; +import { ShowSiteNetworkRequest } from './model/ShowSiteNetworkRequest'; +import { ShowSiteNetworkResponse } from './model/ShowSiteNetworkResponse'; import { SiteCode } from './model/SiteCode'; import { SiteCodeDef } from './model/SiteCodeDef'; +import { SiteConnection } from './model/SiteConnection'; +import { SiteConnectionState } from './model/SiteConnectionState'; +import { SiteConnectionStateEnum } from './model/SiteConnectionStateEnum'; import { SiteGroupReferenceInfo } from './model/SiteGroupReferenceInfo'; +import { SiteInformation } from './model/SiteInformation'; +import { SiteNetworkCapabilityEntry } from './model/SiteNetworkCapabilityEntry'; +import { SiteNetworkEntry } from './model/SiteNetworkEntry'; +import { SiteNetworkId } from './model/SiteNetworkId'; +import { SiteNetworkQuota } from './model/SiteNetworkQuota'; +import { SiteNetworkQuotaKey } from './model/SiteNetworkQuotaKey'; +import { SiteNetworkQuotaKeyEnum } from './model/SiteNetworkQuotaKeyEnum'; +import { SiteNetworkSpecificationEnum } from './model/SiteNetworkSpecificationEnum'; +import { SiteNetworkState } from './model/SiteNetworkState'; +import { SiteNetworkStateEnum } from './model/SiteNetworkStateEnum'; +import { SiteNetworkTopology } from './model/SiteNetworkTopology'; +import { SiteNetworkTopologyEnum } from './model/SiteNetworkTopologyEnum'; import { SortDir } from './model/SortDir'; import { SpecCode } from './model/SpecCode'; import { Tag } from './model/Tag'; @@ -404,6 +463,16 @@ import { UpdateNetworkInstance } from './model/UpdateNetworkInstance'; import { UpdateNetworkInstanceRequest } from './model/UpdateNetworkInstanceRequest'; import { UpdateNetworkInstanceRequestBody } from './model/UpdateNetworkInstanceRequestBody'; import { UpdateNetworkInstanceResponse } from './model/UpdateNetworkInstanceResponse'; +import { UpdateSiteConnectionBandwidthSize } from './model/UpdateSiteConnectionBandwidthSize'; +import { UpdateSiteConnectionBandwidthSizeRequestBody } from './model/UpdateSiteConnectionBandwidthSizeRequestBody'; +import { UpdateSiteNetwork } from './model/UpdateSiteNetwork'; +import { UpdateSiteNetworkBandwidthRequest } from './model/UpdateSiteNetworkBandwidthRequest'; +import { UpdateSiteNetworkBandwidthResponse } from './model/UpdateSiteNetworkBandwidthResponse'; +import { UpdateSiteNetworkBandwidthSizeRequest } from './model/UpdateSiteNetworkBandwidthSizeRequest'; +import { UpdateSiteNetworkBandwidthSizeResponse } from './model/UpdateSiteNetworkBandwidthSizeResponse'; +import { UpdateSiteNetworkRequest } from './model/UpdateSiteNetworkRequest'; +import { UpdateSiteNetworkRequestBody } from './model/UpdateSiteNetworkRequestBody'; +import { UpdateSiteNetworkResponse } from './model/UpdateSiteNetworkResponse'; import { UpdatedAt } from './model/UpdatedAt'; import { Version } from './model/Version'; import { VersionDef } from './model/VersionDef'; @@ -2248,6 +2317,297 @@ export class CcClient { return this.hcClient.sendRequest(options); } + + /** + * 关联分支连接带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 关联分支连接带宽 + * @param {string} siteNetworkId 分支网络的ID。 + * @param {string} siteConnectionId 分支连接的ID + * @param {AssociateSiteConnectionBandwidthRequestBody} associateSiteConnectionBandwidthRequestBody 关联分支连接带宽的请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public associateSiteNetworkBandwidth(associateSiteNetworkBandwidthRequest?: AssociateSiteNetworkBandwidthRequest): Promise { + const options = ParamCreater().associateSiteNetworkBandwidth(associateSiteNetworkBandwidthRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 解关联分支连接带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 解关联分支连接带宽 + * @param {string} siteNetworkId 分支网络的ID。 + * @param {string} siteConnectionId 分支连接的ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public disassociateSiteNetworkBandwidth(disassociateSiteNetworkBandwidthRequest?: DisassociateSiteNetworkBandwidthRequest): Promise { + const options = ParamCreater().disassociateSiteNetworkBandwidth(disassociateSiteNetworkBandwidthRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 更改分支连接带宽包。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 更改分支连接带宽包 + * @param {string} siteNetworkId 分支网络的ID。 + * @param {string} siteConnectionId 分支连接的ID + * @param {AssociateSiteConnectionBandwidthRequestBody} associateSiteConnectionBandwidthRequestBody 更改分支连接带宽包的请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateSiteNetworkBandwidth(updateSiteNetworkBandwidthRequest?: UpdateSiteNetworkBandwidthRequest): Promise { + const options = ParamCreater().updateSiteNetworkBandwidth(updateSiteNetworkBandwidthRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 更改分支连接带宽大小。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 更改分支连接带宽大小 + * @param {string} siteNetworkId 分支网络的ID。 + * @param {string} siteConnectionId 分支连接的ID + * @param {UpdateSiteConnectionBandwidthSizeRequestBody} updateSiteConnectionBandwidthSizeRequestBody 更改分支连接带宽大小的请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateSiteNetworkBandwidthSize(updateSiteNetworkBandwidthSizeRequest?: UpdateSiteNetworkBandwidthSizeRequest): Promise { + const options = ParamCreater().updateSiteNetworkBandwidthSize(updateSiteNetworkBandwidthSizeRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 创建P2P类型的分支网络。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 创建P2P类型的分支网络 + * @param {CreateP2PSiteNetworkRequestBody} createP2PSiteNetworkRequestBody 创建P2P分支网络的请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createP2PSiteNetwork(createP2PSiteNetworkRequest?: CreateP2PSiteNetworkRequest): Promise { + const options = ParamCreater().createP2PSiteNetwork(createP2PSiteNetworkRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 删除分支网络。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除分支网络 + * @param {string} siteNetworkId 分支网络的ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteSiteNetwork(deleteSiteNetworkRequest?: DeleteSiteNetworkRequest): Promise { + const options = ParamCreater().deleteSiteNetwork(deleteSiteNetworkRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询分支网络列表。 + * 分页查询使用的参数为marker、limit。limit默认值为0,没有指定marker时返回第一条数据。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询分支网络列表 + * @param {number} [limit] 每页返回的个数。 取值范围:1~1000。 + * @param {string} [marker] 翻页信息,从上次API调用返回的翻页数据中获取,可填写前一页marker或者后一页marker,填入前一页previous_marker就向前翻页,后一页next_marker就向翻页。 翻页过程中,查询条件不能修改,包括过滤条件,排序条件,limit。 + * @param {string} [sortKey] 排序字段。 + * @param {SortDir} [sortDir] 指定排序是升序还是降序(asc为升序,desc为降序)。 + * @param {Array} [id] 根据id查询,可查询多个id。 + * @param {Array} [name] 根据名字查询,可查询多个名字。 + * @param {Array} [state] 根据状态查询,可查询多个状态。 + * @param {Array} [enterpriseProjectId] 根据企业项目ID过滤列表。 + * @param {Array} [globalDcGatewayId] 根据GDW实例ID过滤列表。 + * @param {Array} [globalConnectionBandwidthId] 根据带宽包ID过滤。 + * @param {Array} [connectionId] 分支连接的ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listSiteNetworks(listSiteNetworksRequest?: ListSiteNetworksRequest): Promise { + const options = ParamCreater().listSiteNetworks(listSiteNetworksRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询分支网络详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询分支网络详情 + * @param {string} siteNetworkId 分支网络的ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showSiteNetwork(showSiteNetworkRequest?: ShowSiteNetworkRequest): Promise { + const options = ParamCreater().showSiteNetwork(showSiteNetworkRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 更新分支网络详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 更新分支网络详情 + * @param {string} siteNetworkId 分支网络的ID。 + * @param {UpdateSiteNetworkRequestBody} updateSiteNetworkRequestBody 更新分支网络的请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateSiteNetwork(updateSiteNetworkRequest?: UpdateSiteNetworkRequest): Promise { + const options = ParamCreater().updateSiteNetwork(updateSiteNetworkRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询分支网络的能力列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询分支网络的能力列表 + * @param {Array} [specification] 根据分支网络租户能力名查询,可查询多个类型。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listSiteNetworkCapabilities(listSiteNetworkCapabilitiesRequest?: ListSiteNetworkCapabilitiesRequest): Promise { + const options = ParamCreater().listSiteNetworkCapabilities(listSiteNetworkCapabilitiesRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询分支网络配额。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询分支网络配额 + * @param {Array} [quotaType] 根据配额类型查询,可查询多个类型。 + * @param {number} [limit] 每页返回的个数。 取值范围:1~1000。 + * @param {string} [marker] 翻页信息,从上次API调用返回的翻页数据中获取,可填写前一页marker或者后一页marker,填入前一页previous_marker就向前翻页,后一页next_marker就向翻页。 翻页过程中,查询条件不能修改,包括过滤条件,排序条件,limit。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listSiteNetworkQuotas(listSiteNetworkQuotasRequest?: ListSiteNetworkQuotasRequest): Promise { + const options = ParamCreater().listSiteNetworkQuotas(listSiteNetworkQuotasRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询带宽包等级列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询带宽包等级列表 + * @param {string} [level] 根据带宽包等级进行查询 + * @param {string} [name] 根据名称进行模糊查询 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listBandwidthPackageLevels(listBandwidthPackageLevelsRequest?: ListBandwidthPackageLevelsRequest): Promise { + const options = ParamCreater().listBandwidthPackageLevels(listBandwidthPackageLevelsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询带宽包线路列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询带宽包线路列表 + * @param {string} [level] 根据带宽包等级进行查询 + * @param {string} [name] 根据名称进行模糊查询 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listBandwidthPackageLines(listBandwidthPackageLinesRequest?: ListBandwidthPackageLinesRequest): Promise { + const options = ParamCreater().listBandwidthPackageLines(listBandwidthPackageLinesRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询带宽包站点列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询带宽包站点列表 + * @param {string} [siteCode] 根据站点编码进行查询 + * @param {string} [regionId] 根据区域ID进行查询 + * @param {string} [name] 根据名称模糊查询 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listBandwidthPackageSites(listBandwidthPackageSitesRequest?: ListBandwidthPackageSitesRequest): Promise { + const options = ParamCreater().listBandwidthPackageSites(listBandwidthPackageSitesRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } } export const ParamCreater = function () { @@ -6700,6 +7060,702 @@ export const ParamCreater = function () { return options; }, + /** + * 关联分支连接带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + associateSiteNetworkBandwidth(associateSiteNetworkBandwidthRequest?: AssociateSiteNetworkBandwidthRequest) { + const options = { + method: "POST", + url: "/v3/{domain_id}/dcaas/site-network/{site_network_id}/connections/{site_connection_id}/associate", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let siteNetworkId; + + let siteConnectionId; + + if (associateSiteNetworkBandwidthRequest !== null && associateSiteNetworkBandwidthRequest !== undefined) { + if (associateSiteNetworkBandwidthRequest instanceof AssociateSiteNetworkBandwidthRequest) { + siteNetworkId = associateSiteNetworkBandwidthRequest.siteNetworkId; + siteConnectionId = associateSiteNetworkBandwidthRequest.siteConnectionId; + body = associateSiteNetworkBandwidthRequest.body + } else { + siteNetworkId = associateSiteNetworkBandwidthRequest['site_network_id']; + siteConnectionId = associateSiteNetworkBandwidthRequest['site_connection_id']; + body = associateSiteNetworkBandwidthRequest['body']; + } + } + + + if (siteNetworkId === null || siteNetworkId === undefined) { + throw new RequiredError('siteNetworkId','Required parameter siteNetworkId was null or undefined when calling associateSiteNetworkBandwidth.'); + } + if (siteConnectionId === null || siteConnectionId === undefined) { + throw new RequiredError('siteConnectionId','Required parameter siteConnectionId was null or undefined when calling associateSiteNetworkBandwidth.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'site_network_id': siteNetworkId,'site_connection_id': siteConnectionId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 解关联分支连接带宽。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + disassociateSiteNetworkBandwidth(disassociateSiteNetworkBandwidthRequest?: DisassociateSiteNetworkBandwidthRequest) { + const options = { + method: "POST", + url: "/v3/{domain_id}/dcaas/site-network/{site_network_id}/connections/{site_connection_id}/disassociate", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let siteNetworkId; + + let siteConnectionId; + + if (disassociateSiteNetworkBandwidthRequest !== null && disassociateSiteNetworkBandwidthRequest !== undefined) { + if (disassociateSiteNetworkBandwidthRequest instanceof DisassociateSiteNetworkBandwidthRequest) { + siteNetworkId = disassociateSiteNetworkBandwidthRequest.siteNetworkId; + siteConnectionId = disassociateSiteNetworkBandwidthRequest.siteConnectionId; + } else { + siteNetworkId = disassociateSiteNetworkBandwidthRequest['site_network_id']; + siteConnectionId = disassociateSiteNetworkBandwidthRequest['site_connection_id']; + } + } + + + if (siteNetworkId === null || siteNetworkId === undefined) { + throw new RequiredError('siteNetworkId','Required parameter siteNetworkId was null or undefined when calling disassociateSiteNetworkBandwidth.'); + } + if (siteConnectionId === null || siteConnectionId === undefined) { + throw new RequiredError('siteConnectionId','Required parameter siteConnectionId was null or undefined when calling disassociateSiteNetworkBandwidth.'); + } + + options.pathParams = { 'site_network_id': siteNetworkId,'site_connection_id': siteConnectionId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 更改分支连接带宽包。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateSiteNetworkBandwidth(updateSiteNetworkBandwidthRequest?: UpdateSiteNetworkBandwidthRequest) { + const options = { + method: "POST", + url: "/v3/{domain_id}/dcaas/site-network/{site_network_id}/connections/{site_connection_id}/update-bandwidth", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let siteNetworkId; + + let siteConnectionId; + + if (updateSiteNetworkBandwidthRequest !== null && updateSiteNetworkBandwidthRequest !== undefined) { + if (updateSiteNetworkBandwidthRequest instanceof UpdateSiteNetworkBandwidthRequest) { + siteNetworkId = updateSiteNetworkBandwidthRequest.siteNetworkId; + siteConnectionId = updateSiteNetworkBandwidthRequest.siteConnectionId; + body = updateSiteNetworkBandwidthRequest.body + } else { + siteNetworkId = updateSiteNetworkBandwidthRequest['site_network_id']; + siteConnectionId = updateSiteNetworkBandwidthRequest['site_connection_id']; + body = updateSiteNetworkBandwidthRequest['body']; + } + } + + + if (siteNetworkId === null || siteNetworkId === undefined) { + throw new RequiredError('siteNetworkId','Required parameter siteNetworkId was null or undefined when calling updateSiteNetworkBandwidth.'); + } + if (siteConnectionId === null || siteConnectionId === undefined) { + throw new RequiredError('siteConnectionId','Required parameter siteConnectionId was null or undefined when calling updateSiteNetworkBandwidth.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'site_network_id': siteNetworkId,'site_connection_id': siteConnectionId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 更改分支连接带宽大小。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateSiteNetworkBandwidthSize(updateSiteNetworkBandwidthSizeRequest?: UpdateSiteNetworkBandwidthSizeRequest) { + const options = { + method: "POST", + url: "/v3/{domain_id}/dcaas/site-network/{site_network_id}/connections/{site_connection_id}/update-bandwidth-size", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let siteNetworkId; + + let siteConnectionId; + + if (updateSiteNetworkBandwidthSizeRequest !== null && updateSiteNetworkBandwidthSizeRequest !== undefined) { + if (updateSiteNetworkBandwidthSizeRequest instanceof UpdateSiteNetworkBandwidthSizeRequest) { + siteNetworkId = updateSiteNetworkBandwidthSizeRequest.siteNetworkId; + siteConnectionId = updateSiteNetworkBandwidthSizeRequest.siteConnectionId; + body = updateSiteNetworkBandwidthSizeRequest.body + } else { + siteNetworkId = updateSiteNetworkBandwidthSizeRequest['site_network_id']; + siteConnectionId = updateSiteNetworkBandwidthSizeRequest['site_connection_id']; + body = updateSiteNetworkBandwidthSizeRequest['body']; + } + } + + + if (siteNetworkId === null || siteNetworkId === undefined) { + throw new RequiredError('siteNetworkId','Required parameter siteNetworkId was null or undefined when calling updateSiteNetworkBandwidthSize.'); + } + if (siteConnectionId === null || siteConnectionId === undefined) { + throw new RequiredError('siteConnectionId','Required parameter siteConnectionId was null or undefined when calling updateSiteNetworkBandwidthSize.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'site_network_id': siteNetworkId,'site_connection_id': siteConnectionId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 创建P2P类型的分支网络。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + createP2PSiteNetwork(createP2PSiteNetworkRequest?: CreateP2PSiteNetworkRequest) { + const options = { + method: "POST", + url: "/v3/{domain_id}/dcaas/p2p-site-networks", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (createP2PSiteNetworkRequest !== null && createP2PSiteNetworkRequest !== undefined) { + if (createP2PSiteNetworkRequest instanceof CreateP2PSiteNetworkRequest) { + body = createP2PSiteNetworkRequest.body + } else { + body = createP2PSiteNetworkRequest['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'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除分支网络。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteSiteNetwork(deleteSiteNetworkRequest?: DeleteSiteNetworkRequest) { + const options = { + method: "DELETE", + url: "/v3/{domain_id}/dcaas/site-networks/{site_network_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let siteNetworkId; + + if (deleteSiteNetworkRequest !== null && deleteSiteNetworkRequest !== undefined) { + if (deleteSiteNetworkRequest instanceof DeleteSiteNetworkRequest) { + siteNetworkId = deleteSiteNetworkRequest.siteNetworkId; + } else { + siteNetworkId = deleteSiteNetworkRequest['site_network_id']; + } + } + + + if (siteNetworkId === null || siteNetworkId === undefined) { + throw new RequiredError('siteNetworkId','Required parameter siteNetworkId was null or undefined when calling deleteSiteNetwork.'); + } + + options.pathParams = { 'site_network_id': siteNetworkId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询分支网络列表。 + * 分页查询使用的参数为marker、limit。limit默认值为0,没有指定marker时返回第一条数据。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listSiteNetworks(listSiteNetworksRequest?: ListSiteNetworksRequest) { + const options = { + method: "GET", + url: "/v3/{domain_id}/dcaas/site-networks", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let limit; + + let marker; + + let sortKey; + + let sortDir; + + let id; + + let name; + + let state; + + let enterpriseProjectId; + + let globalDcGatewayId; + + let globalConnectionBandwidthId; + + let connectionId; + + if (listSiteNetworksRequest !== null && listSiteNetworksRequest !== undefined) { + if (listSiteNetworksRequest instanceof ListSiteNetworksRequest) { + limit = listSiteNetworksRequest.limit; + marker = listSiteNetworksRequest.marker; + sortKey = listSiteNetworksRequest.sortKey; + sortDir = listSiteNetworksRequest.sortDir; + id = listSiteNetworksRequest.id; + name = listSiteNetworksRequest.name; + state = listSiteNetworksRequest.state; + enterpriseProjectId = listSiteNetworksRequest.enterpriseProjectId; + globalDcGatewayId = listSiteNetworksRequest.globalDcGatewayId; + globalConnectionBandwidthId = listSiteNetworksRequest.globalConnectionBandwidthId; + connectionId = listSiteNetworksRequest.connectionId; + } else { + limit = listSiteNetworksRequest['limit']; + marker = listSiteNetworksRequest['marker']; + sortKey = listSiteNetworksRequest['sort_key']; + sortDir = listSiteNetworksRequest['sort_dir']; + id = listSiteNetworksRequest['id']; + name = listSiteNetworksRequest['name']; + state = listSiteNetworksRequest['state']; + enterpriseProjectId = listSiteNetworksRequest['enterprise_project_id']; + globalDcGatewayId = listSiteNetworksRequest['global_dc_gateway_id']; + globalConnectionBandwidthId = listSiteNetworksRequest['global_connection_bandwidth_id']; + connectionId = listSiteNetworksRequest['connection_id']; + } + } + + + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (marker !== null && marker !== undefined) { + localVarQueryParameter['marker'] = marker; + } + if (sortKey !== null && sortKey !== undefined) { + localVarQueryParameter['sort_key'] = sortKey; + } + if (sortDir !== null && sortDir !== undefined) { + localVarQueryParameter['sort_dir'] = sortDir; + } + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (name !== null && name !== undefined) { + localVarQueryParameter['name'] = name; + } + if (state !== null && state !== undefined) { + localVarQueryParameter['state'] = state; + } + if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) { + localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId; + } + if (globalDcGatewayId !== null && globalDcGatewayId !== undefined) { + localVarQueryParameter['global_dc_gateway_id'] = globalDcGatewayId; + } + if (globalConnectionBandwidthId !== null && globalConnectionBandwidthId !== undefined) { + localVarQueryParameter['global_connection_bandwidth_id'] = globalConnectionBandwidthId; + } + if (connectionId !== null && connectionId !== undefined) { + localVarQueryParameter['connection_id'] = connectionId; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询分支网络详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showSiteNetwork(showSiteNetworkRequest?: ShowSiteNetworkRequest) { + const options = { + method: "GET", + url: "/v3/{domain_id}/dcaas/site-networks/{site_network_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let siteNetworkId; + + if (showSiteNetworkRequest !== null && showSiteNetworkRequest !== undefined) { + if (showSiteNetworkRequest instanceof ShowSiteNetworkRequest) { + siteNetworkId = showSiteNetworkRequest.siteNetworkId; + } else { + siteNetworkId = showSiteNetworkRequest['site_network_id']; + } + } + + + if (siteNetworkId === null || siteNetworkId === undefined) { + throw new RequiredError('siteNetworkId','Required parameter siteNetworkId was null or undefined when calling showSiteNetwork.'); + } + + options.pathParams = { 'site_network_id': siteNetworkId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 更新分支网络详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateSiteNetwork(updateSiteNetworkRequest?: UpdateSiteNetworkRequest) { + const options = { + method: "PUT", + url: "/v3/{domain_id}/dcaas/site-networks/{site_network_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let siteNetworkId; + + if (updateSiteNetworkRequest !== null && updateSiteNetworkRequest !== undefined) { + if (updateSiteNetworkRequest instanceof UpdateSiteNetworkRequest) { + siteNetworkId = updateSiteNetworkRequest.siteNetworkId; + body = updateSiteNetworkRequest.body + } else { + siteNetworkId = updateSiteNetworkRequest['site_network_id']; + body = updateSiteNetworkRequest['body']; + } + } + + + if (siteNetworkId === null || siteNetworkId === undefined) { + throw new RequiredError('siteNetworkId','Required parameter siteNetworkId was null or undefined when calling updateSiteNetwork.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'site_network_id': siteNetworkId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询分支网络的能力列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listSiteNetworkCapabilities(listSiteNetworkCapabilitiesRequest?: ListSiteNetworkCapabilitiesRequest) { + const options = { + method: "GET", + url: "/v3/{domain_id}/dcaas/site-network/capabilities", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let specification; + + if (listSiteNetworkCapabilitiesRequest !== null && listSiteNetworkCapabilitiesRequest !== undefined) { + if (listSiteNetworkCapabilitiesRequest instanceof ListSiteNetworkCapabilitiesRequest) { + specification = listSiteNetworkCapabilitiesRequest.specification; + } else { + specification = listSiteNetworkCapabilitiesRequest['specification']; + } + } + + + if (specification !== null && specification !== undefined) { + localVarQueryParameter['specification'] = specification; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询分支网络配额。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listSiteNetworkQuotas(listSiteNetworkQuotasRequest?: ListSiteNetworkQuotasRequest) { + const options = { + method: "GET", + url: "/v3/{domain_id}/dcaas/site-network/quotas", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let quotaType; + + let limit; + + let marker; + + if (listSiteNetworkQuotasRequest !== null && listSiteNetworkQuotasRequest !== undefined) { + if (listSiteNetworkQuotasRequest instanceof ListSiteNetworkQuotasRequest) { + quotaType = listSiteNetworkQuotasRequest.quotaType; + limit = listSiteNetworkQuotasRequest.limit; + marker = listSiteNetworkQuotasRequest.marker; + } else { + quotaType = listSiteNetworkQuotasRequest['quota_type']; + limit = listSiteNetworkQuotasRequest['limit']; + marker = listSiteNetworkQuotasRequest['marker']; + } + } + + + if (quotaType !== null && quotaType !== undefined) { + localVarQueryParameter['quota_type'] = quotaType; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (marker !== null && marker !== undefined) { + localVarQueryParameter['marker'] = marker; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询带宽包等级列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listBandwidthPackageLevels(listBandwidthPackageLevelsRequest?: ListBandwidthPackageLevelsRequest) { + const options = { + method: "GET", + url: "/v3/{domain_id}/ccaas/bandwidth-packages/levels", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let level; + + let name; + + if (listBandwidthPackageLevelsRequest !== null && listBandwidthPackageLevelsRequest !== undefined) { + if (listBandwidthPackageLevelsRequest instanceof ListBandwidthPackageLevelsRequest) { + level = listBandwidthPackageLevelsRequest.level; + name = listBandwidthPackageLevelsRequest.name; + } else { + level = listBandwidthPackageLevelsRequest['level']; + name = listBandwidthPackageLevelsRequest['name']; + } + } + + + if (level !== null && level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (name !== null && name !== undefined) { + localVarQueryParameter['name'] = name; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询带宽包线路列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listBandwidthPackageLines(listBandwidthPackageLinesRequest?: ListBandwidthPackageLinesRequest) { + const options = { + method: "GET", + url: "/v3/{domain_id}/ccaas/bandwidth-packages/lines", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let level; + + let name; + + if (listBandwidthPackageLinesRequest !== null && listBandwidthPackageLinesRequest !== undefined) { + if (listBandwidthPackageLinesRequest instanceof ListBandwidthPackageLinesRequest) { + level = listBandwidthPackageLinesRequest.level; + name = listBandwidthPackageLinesRequest.name; + } else { + level = listBandwidthPackageLinesRequest['level']; + name = listBandwidthPackageLinesRequest['name']; + } + } + + + if (level !== null && level !== undefined) { + localVarQueryParameter['level'] = level; + } + if (name !== null && name !== undefined) { + localVarQueryParameter['name'] = name; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询带宽包站点列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listBandwidthPackageSites(listBandwidthPackageSitesRequest?: ListBandwidthPackageSitesRequest) { + const options = { + method: "GET", + url: "/v3/{domain_id}/ccaas/bandwidth-packages/sites", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let siteCode; + + let regionId; + + let name; + + if (listBandwidthPackageSitesRequest !== null && listBandwidthPackageSitesRequest !== undefined) { + if (listBandwidthPackageSitesRequest instanceof ListBandwidthPackageSitesRequest) { + siteCode = listBandwidthPackageSitesRequest.siteCode; + regionId = listBandwidthPackageSitesRequest.regionId; + name = listBandwidthPackageSitesRequest.name; + } else { + siteCode = listBandwidthPackageSitesRequest['site_code']; + regionId = listBandwidthPackageSitesRequest['region_id']; + name = listBandwidthPackageSitesRequest['name']; + } + } + + + if (siteCode !== null && siteCode !== undefined) { + localVarQueryParameter['site_code'] = siteCode; + } + if (regionId !== null && regionId !== undefined) { + localVarQueryParameter['region_id'] = regionId; + } + if (name !== null && name !== undefined) { + localVarQueryParameter['name'] = name; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + } }; diff --git a/services/cc/v3/model/ApplyPolicyId.ts b/services/cc/v3/model/ApplyPolicyId.ts new file mode 100644 index 000000000..1c9873f3c --- /dev/null +++ b/services/cc/v3/model/ApplyPolicyId.ts @@ -0,0 +1,18 @@ + + +export class ApplyPolicyId { + private 'apply_policy_id'?: string; + public constructor(applyPolicyId?: string) { + this['apply_policy_id'] = applyPolicyId; + } + public withApplyPolicyId(applyPolicyId: string): ApplyPolicyId { + this['apply_policy_id'] = applyPolicyId; + return this; + } + public set applyPolicyId(applyPolicyId: string | undefined) { + this['apply_policy_id'] = applyPolicyId; + } + public get applyPolicyId(): string | undefined { + return this['apply_policy_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AssociateSiteConnectionBandwidth.ts b/services/cc/v3/model/AssociateSiteConnectionBandwidth.ts new file mode 100644 index 000000000..2ef40b89a --- /dev/null +++ b/services/cc/v3/model/AssociateSiteConnectionBandwidth.ts @@ -0,0 +1,30 @@ +import { BandwidthSize } from './BandwidthSize'; +import { GlobalConnectionBandwidthId } from './GlobalConnectionBandwidthId'; + + +export class AssociateSiteConnectionBandwidth { + private 'global_connection_bandwidth_id'?: string; + private 'bandwidth_size'?: number; + public constructor() { + } + public withGlobalConnectionBandwidthId(globalConnectionBandwidthId: string): AssociateSiteConnectionBandwidth { + this['global_connection_bandwidth_id'] = globalConnectionBandwidthId; + return this; + } + public set globalConnectionBandwidthId(globalConnectionBandwidthId: string | undefined) { + this['global_connection_bandwidth_id'] = globalConnectionBandwidthId; + } + public get globalConnectionBandwidthId(): string | undefined { + return this['global_connection_bandwidth_id']; + } + public withBandwidthSize(bandwidthSize: number): AssociateSiteConnectionBandwidth { + this['bandwidth_size'] = bandwidthSize; + return this; + } + public set bandwidthSize(bandwidthSize: number | undefined) { + this['bandwidth_size'] = bandwidthSize; + } + public get bandwidthSize(): number | undefined { + return this['bandwidth_size']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AssociateSiteConnectionBandwidthRequestBody.ts b/services/cc/v3/model/AssociateSiteConnectionBandwidthRequestBody.ts new file mode 100644 index 000000000..c448744f6 --- /dev/null +++ b/services/cc/v3/model/AssociateSiteConnectionBandwidthRequestBody.ts @@ -0,0 +1,19 @@ +import { AssociateSiteConnectionBandwidth } from './AssociateSiteConnectionBandwidth'; + + +export class AssociateSiteConnectionBandwidthRequestBody { + private 'site_connection'?: AssociateSiteConnectionBandwidth; + public constructor(siteConnection?: AssociateSiteConnectionBandwidth) { + this['site_connection'] = siteConnection; + } + public withSiteConnection(siteConnection: AssociateSiteConnectionBandwidth): AssociateSiteConnectionBandwidthRequestBody { + this['site_connection'] = siteConnection; + return this; + } + public set siteConnection(siteConnection: AssociateSiteConnectionBandwidth | undefined) { + this['site_connection'] = siteConnection; + } + public get siteConnection(): AssociateSiteConnectionBandwidth | undefined { + return this['site_connection']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AssociateSiteNetworkBandwidthRequest.ts b/services/cc/v3/model/AssociateSiteNetworkBandwidthRequest.ts new file mode 100644 index 000000000..bbf45a00f --- /dev/null +++ b/services/cc/v3/model/AssociateSiteNetworkBandwidthRequest.ts @@ -0,0 +1,36 @@ +import { AssociateSiteConnectionBandwidthRequestBody } from './AssociateSiteConnectionBandwidthRequestBody'; + + +export class AssociateSiteNetworkBandwidthRequest { + private 'site_network_id'?: string; + private 'site_connection_id'?: string; + public body?: AssociateSiteConnectionBandwidthRequestBody; + public constructor(siteNetworkId?: string, siteConnectionId?: string) { + this['site_network_id'] = siteNetworkId; + this['site_connection_id'] = siteConnectionId; + } + public withSiteNetworkId(siteNetworkId: string): AssociateSiteNetworkBandwidthRequest { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } + public withSiteConnectionId(siteConnectionId: string): AssociateSiteNetworkBandwidthRequest { + this['site_connection_id'] = siteConnectionId; + return this; + } + public set siteConnectionId(siteConnectionId: string | undefined) { + this['site_connection_id'] = siteConnectionId; + } + public get siteConnectionId(): string | undefined { + return this['site_connection_id']; + } + public withBody(body: AssociateSiteConnectionBandwidthRequestBody): AssociateSiteNetworkBandwidthRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AssociateSiteNetworkBandwidthResponse.ts b/services/cc/v3/model/AssociateSiteNetworkBandwidthResponse.ts new file mode 100644 index 000000000..322ebb0e5 --- /dev/null +++ b/services/cc/v3/model/AssociateSiteNetworkBandwidthResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteConnection } from './SiteConnection'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class AssociateSiteNetworkBandwidthResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_connection'?: SiteConnection; + public constructor(requestId?: string, siteConnection?: SiteConnection) { + super(); + this['request_id'] = requestId; + this['site_connection'] = siteConnection; + } + public withRequestId(requestId: string): AssociateSiteNetworkBandwidthResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteConnection(siteConnection: SiteConnection): AssociateSiteNetworkBandwidthResponse { + this['site_connection'] = siteConnection; + return this; + } + public set siteConnection(siteConnection: SiteConnection | undefined) { + this['site_connection'] = siteConnection; + } + public get siteConnection(): SiteConnection | undefined { + return this['site_connection']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/BandwidthPackageLevel.ts b/services/cc/v3/model/BandwidthPackageLevel.ts new file mode 100644 index 000000000..e97b9e7a0 --- /dev/null +++ b/services/cc/v3/model/BandwidthPackageLevel.ts @@ -0,0 +1,76 @@ + + +export class BandwidthPackageLevel { + public id?: string; + public level?: string; + private 'name_cn'?: string; + private 'name_en'?: string; + private 'display_priority'?: number; + public description?: string; + private 'created_at'?: Date; + private 'updated_at'?: Date; + public constructor() { + } + public withId(id: string): BandwidthPackageLevel { + this['id'] = id; + return this; + } + public withLevel(level: string): BandwidthPackageLevel { + this['level'] = level; + return this; + } + public withNameCn(nameCn: string): BandwidthPackageLevel { + this['name_cn'] = nameCn; + return this; + } + public set nameCn(nameCn: string | undefined) { + this['name_cn'] = nameCn; + } + public get nameCn(): string | undefined { + return this['name_cn']; + } + public withNameEn(nameEn: string): BandwidthPackageLevel { + this['name_en'] = nameEn; + return this; + } + public set nameEn(nameEn: string | undefined) { + this['name_en'] = nameEn; + } + public get nameEn(): string | undefined { + return this['name_en']; + } + public withDisplayPriority(displayPriority: number): BandwidthPackageLevel { + this['display_priority'] = displayPriority; + return this; + } + public set displayPriority(displayPriority: number | undefined) { + this['display_priority'] = displayPriority; + } + public get displayPriority(): number | undefined { + return this['display_priority']; + } + public withDescription(description: string): BandwidthPackageLevel { + this['description'] = description; + return this; + } + public withCreatedAt(createdAt: Date): BandwidthPackageLevel { + this['created_at'] = createdAt; + return this; + } + public set createdAt(createdAt: Date | undefined) { + this['created_at'] = createdAt; + } + public get createdAt(): Date | undefined { + return this['created_at']; + } + public withUpdatedAt(updatedAt: Date): BandwidthPackageLevel { + this['updated_at'] = updatedAt; + return this; + } + public set updatedAt(updatedAt: Date | undefined) { + this['updated_at'] = updatedAt; + } + public get updatedAt(): Date | undefined { + return this['updated_at']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/BandwidthPackageLine.ts b/services/cc/v3/model/BandwidthPackageLine.ts new file mode 100644 index 000000000..d4fa2a161 --- /dev/null +++ b/services/cc/v3/model/BandwidthPackageLine.ts @@ -0,0 +1,73 @@ +import { BandwidthPackageLineSpecCode } from './BandwidthPackageLineSpecCode'; + + +export class BandwidthPackageLine { + private 'local_region_id'?: string; + private 'remote_region_id'?: string; + private 'local_site_code'?: string; + private 'remote_site_code'?: string; + private 'support_levels'?: Array; + private 'spec_codes'?: Array; + public constructor() { + } + public withLocalRegionId(localRegionId: string): BandwidthPackageLine { + this['local_region_id'] = localRegionId; + return this; + } + public set localRegionId(localRegionId: string | undefined) { + this['local_region_id'] = localRegionId; + } + public get localRegionId(): string | undefined { + return this['local_region_id']; + } + public withRemoteRegionId(remoteRegionId: string): BandwidthPackageLine { + this['remote_region_id'] = remoteRegionId; + return this; + } + public set remoteRegionId(remoteRegionId: string | undefined) { + this['remote_region_id'] = remoteRegionId; + } + public get remoteRegionId(): string | undefined { + return this['remote_region_id']; + } + public withLocalSiteCode(localSiteCode: string): BandwidthPackageLine { + this['local_site_code'] = localSiteCode; + return this; + } + public set localSiteCode(localSiteCode: string | undefined) { + this['local_site_code'] = localSiteCode; + } + public get localSiteCode(): string | undefined { + return this['local_site_code']; + } + public withRemoteSiteCode(remoteSiteCode: string): BandwidthPackageLine { + this['remote_site_code'] = remoteSiteCode; + return this; + } + public set remoteSiteCode(remoteSiteCode: string | undefined) { + this['remote_site_code'] = remoteSiteCode; + } + public get remoteSiteCode(): string | undefined { + return this['remote_site_code']; + } + public withSupportLevels(supportLevels: Array): BandwidthPackageLine { + this['support_levels'] = supportLevels; + return this; + } + public set supportLevels(supportLevels: Array | undefined) { + this['support_levels'] = supportLevels; + } + public get supportLevels(): Array | undefined { + return this['support_levels']; + } + public withSpecCodes(specCodes: Array): BandwidthPackageLine { + this['spec_codes'] = specCodes; + return this; + } + public set specCodes(specCodes: Array | undefined) { + this['spec_codes'] = specCodes; + } + public get specCodes(): Array | undefined { + return this['spec_codes']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/BandwidthPackageLineSpecCode.ts b/services/cc/v3/model/BandwidthPackageLineSpecCode.ts new file mode 100644 index 000000000..f75e4ad0d --- /dev/null +++ b/services/cc/v3/model/BandwidthPackageLineSpecCode.ts @@ -0,0 +1,78 @@ +import { BillingModeEnum } from './BillingModeEnum'; + + +export class BandwidthPackageLineSpecCode { + public level?: string; + private 'name_cn'?: string; + private 'name_en'?: string; + private 'spec_code'?: string; + private 'max_bandwidth'?: number; + private 'min_bandwidth'?: number; + private 'support_billing_modes'?: Array; + public constructor() { + } + public withLevel(level: string): BandwidthPackageLineSpecCode { + this['level'] = level; + return this; + } + public withNameCn(nameCn: string): BandwidthPackageLineSpecCode { + this['name_cn'] = nameCn; + return this; + } + public set nameCn(nameCn: string | undefined) { + this['name_cn'] = nameCn; + } + public get nameCn(): string | undefined { + return this['name_cn']; + } + public withNameEn(nameEn: string): BandwidthPackageLineSpecCode { + this['name_en'] = nameEn; + return this; + } + public set nameEn(nameEn: string | undefined) { + this['name_en'] = nameEn; + } + public get nameEn(): string | undefined { + return this['name_en']; + } + public withSpecCode(specCode: string): BandwidthPackageLineSpecCode { + this['spec_code'] = specCode; + return this; + } + public set specCode(specCode: string | undefined) { + this['spec_code'] = specCode; + } + public get specCode(): string | undefined { + return this['spec_code']; + } + public withMaxBandwidth(maxBandwidth: number): BandwidthPackageLineSpecCode { + this['max_bandwidth'] = maxBandwidth; + return this; + } + public set maxBandwidth(maxBandwidth: number | undefined) { + this['max_bandwidth'] = maxBandwidth; + } + public get maxBandwidth(): number | undefined { + return this['max_bandwidth']; + } + public withMinBandwidth(minBandwidth: number): BandwidthPackageLineSpecCode { + this['min_bandwidth'] = minBandwidth; + return this; + } + public set minBandwidth(minBandwidth: number | undefined) { + this['min_bandwidth'] = minBandwidth; + } + public get minBandwidth(): number | undefined { + return this['min_bandwidth']; + } + public withSupportBillingModes(supportBillingModes: Array): BandwidthPackageLineSpecCode { + this['support_billing_modes'] = supportBillingModes; + return this; + } + public set supportBillingModes(supportBillingModes: Array | undefined) { + this['support_billing_modes'] = supportBillingModes; + } + public get supportBillingModes(): Array | undefined { + return this['support_billing_modes']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/BandwidthPackageSite.ts b/services/cc/v3/model/BandwidthPackageSite.ts new file mode 100644 index 000000000..8e133c59c --- /dev/null +++ b/services/cc/v3/model/BandwidthPackageSite.ts @@ -0,0 +1,93 @@ + + +export class BandwidthPackageSite { + public id?: string; + private 'site_code'?: string; + private 'region_id'?: string; + private 'site_type'?: string; + private 'name_cn'?: string; + private 'name_en'?: string; + public description?: string; + private 'created_at'?: Date; + private 'updated_at'?: Date; + public constructor() { + } + public withId(id: string): BandwidthPackageSite { + this['id'] = id; + return this; + } + public withSiteCode(siteCode: string): BandwidthPackageSite { + this['site_code'] = siteCode; + return this; + } + public set siteCode(siteCode: string | undefined) { + this['site_code'] = siteCode; + } + public get siteCode(): string | undefined { + return this['site_code']; + } + public withRegionId(regionId: string): BandwidthPackageSite { + this['region_id'] = regionId; + return this; + } + public set regionId(regionId: string | undefined) { + this['region_id'] = regionId; + } + public get regionId(): string | undefined { + return this['region_id']; + } + public withSiteType(siteType: string): BandwidthPackageSite { + this['site_type'] = siteType; + return this; + } + public set siteType(siteType: string | undefined) { + this['site_type'] = siteType; + } + public get siteType(): string | undefined { + return this['site_type']; + } + public withNameCn(nameCn: string): BandwidthPackageSite { + this['name_cn'] = nameCn; + return this; + } + public set nameCn(nameCn: string | undefined) { + this['name_cn'] = nameCn; + } + public get nameCn(): string | undefined { + return this['name_cn']; + } + public withNameEn(nameEn: string): BandwidthPackageSite { + this['name_en'] = nameEn; + return this; + } + public set nameEn(nameEn: string | undefined) { + this['name_en'] = nameEn; + } + public get nameEn(): string | undefined { + return this['name_en']; + } + public withDescription(description: string): BandwidthPackageSite { + this['description'] = description; + return this; + } + public withCreatedAt(createdAt: Date): BandwidthPackageSite { + this['created_at'] = createdAt; + return this; + } + public set createdAt(createdAt: Date | undefined) { + this['created_at'] = createdAt; + } + public get createdAt(): Date | undefined { + return this['created_at']; + } + public withUpdatedAt(updatedAt: Date): BandwidthPackageSite { + this['updated_at'] = updatedAt; + return this; + } + public set updatedAt(updatedAt: Date | undefined) { + this['updated_at'] = updatedAt; + } + public get updatedAt(): Date | undefined { + return this['updated_at']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ConnectionBandwidthChargeModeEnum.ts b/services/cc/v3/model/ConnectionBandwidthChargeModeEnum.ts new file mode 100644 index 000000000..e26508d1b --- /dev/null +++ b/services/cc/v3/model/ConnectionBandwidthChargeModeEnum.ts @@ -0,0 +1,6 @@ + + +export class ConnectionBandwidthChargeModeEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ConnectionBandwidthSizeRange.ts b/services/cc/v3/model/ConnectionBandwidthSizeRange.ts new file mode 100644 index 000000000..96fd84347 --- /dev/null +++ b/services/cc/v3/model/ConnectionBandwidthSizeRange.ts @@ -0,0 +1,18 @@ + + +export class ConnectionBandwidthSizeRange { + public min?: number; + public max?: number; + public constructor(min?: number, max?: number) { + this['min'] = min; + this['max'] = max; + } + public withMin(min: number): ConnectionBandwidthSizeRange { + this['min'] = min; + return this; + } + public withMax(max: number): ConnectionBandwidthSizeRange { + this['max'] = max; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CreateP2PSiteNetwork.ts b/services/cc/v3/model/CreateP2PSiteNetwork.ts new file mode 100644 index 000000000..70ea9104b --- /dev/null +++ b/services/cc/v3/model/CreateP2PSiteNetwork.ts @@ -0,0 +1,46 @@ +import { CreateSiteInformation } from './CreateSiteInformation'; +import { CreateSiteInformationPair } from './CreateSiteInformationPair'; +import { Description } from './Description'; +import { EnterpriseProjectId } from './EnterpriseProjectId'; +import { Name } from './Name'; +import { Tag } from './Tag'; +import { Tags } from './Tags'; + + +export class CreateP2PSiteNetwork { + public name?: string; + public description?: string; + public tags?: Array; + private 'enterprise_project_id'?: string; + public sites?: Array; + public constructor(name?: string, sites?: Array) { + this['name'] = name; + this['sites'] = sites; + } + public withName(name: string): CreateP2PSiteNetwork { + this['name'] = name; + return this; + } + public withDescription(description: string): CreateP2PSiteNetwork { + this['description'] = description; + return this; + } + public withTags(tags: Array): CreateP2PSiteNetwork { + this['tags'] = tags; + return this; + } + public withEnterpriseProjectId(enterpriseProjectId: string): CreateP2PSiteNetwork { + this['enterprise_project_id'] = enterpriseProjectId; + return this; + } + public set enterpriseProjectId(enterpriseProjectId: string | undefined) { + this['enterprise_project_id'] = enterpriseProjectId; + } + public get enterpriseProjectId(): string | undefined { + return this['enterprise_project_id']; + } + public withSites(sites: Array): CreateP2PSiteNetwork { + this['sites'] = sites; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CreateP2PSiteNetworkRequest.ts b/services/cc/v3/model/CreateP2PSiteNetworkRequest.ts new file mode 100644 index 000000000..3f2877edb --- /dev/null +++ b/services/cc/v3/model/CreateP2PSiteNetworkRequest.ts @@ -0,0 +1,12 @@ +import { CreateP2PSiteNetworkRequestBody } from './CreateP2PSiteNetworkRequestBody'; + + +export class CreateP2PSiteNetworkRequest { + public body?: CreateP2PSiteNetworkRequestBody; + public constructor() { + } + public withBody(body: CreateP2PSiteNetworkRequestBody): CreateP2PSiteNetworkRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CreateP2PSiteNetworkRequestBody.ts b/services/cc/v3/model/CreateP2PSiteNetworkRequestBody.ts new file mode 100644 index 000000000..81c8d59e9 --- /dev/null +++ b/services/cc/v3/model/CreateP2PSiteNetworkRequestBody.ts @@ -0,0 +1,19 @@ +import { CreateP2PSiteNetwork } from './CreateP2PSiteNetwork'; + + +export class CreateP2PSiteNetworkRequestBody { + private 'p2p_site_network'?: CreateP2PSiteNetwork; + public constructor(p2pSiteNetwork?: CreateP2PSiteNetwork) { + this['p2p_site_network'] = p2pSiteNetwork; + } + public withP2pSiteNetwork(p2pSiteNetwork: CreateP2PSiteNetwork): CreateP2PSiteNetworkRequestBody { + this['p2p_site_network'] = p2pSiteNetwork; + return this; + } + public set p2pSiteNetwork(p2pSiteNetwork: CreateP2PSiteNetwork | undefined) { + this['p2p_site_network'] = p2pSiteNetwork; + } + public get p2pSiteNetwork(): CreateP2PSiteNetwork | undefined { + return this['p2p_site_network']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CreateP2PSiteNetworkResponse.ts b/services/cc/v3/model/CreateP2PSiteNetworkResponse.ts new file mode 100644 index 000000000..c549468c7 --- /dev/null +++ b/services/cc/v3/model/CreateP2PSiteNetworkResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteNetworkEntry } from './SiteNetworkEntry'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateP2PSiteNetworkResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_network'?: SiteNetworkEntry; + public constructor(requestId?: string, siteNetwork?: SiteNetworkEntry) { + super(); + this['request_id'] = requestId; + this['site_network'] = siteNetwork; + } + public withRequestId(requestId: string): CreateP2PSiteNetworkResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteNetwork(siteNetwork: SiteNetworkEntry): CreateP2PSiteNetworkResponse { + this['site_network'] = siteNetwork; + return this; + } + public set siteNetwork(siteNetwork: SiteNetworkEntry | undefined) { + this['site_network'] = siteNetwork; + } + public get siteNetwork(): SiteNetworkEntry | undefined { + return this['site_network']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CreateSiteInformation.ts b/services/cc/v3/model/CreateSiteInformation.ts new file mode 100644 index 000000000..2e59ba242 --- /dev/null +++ b/services/cc/v3/model/CreateSiteInformation.ts @@ -0,0 +1,59 @@ +import { GatewayId } from './GatewayId'; +import { GatewayType } from './GatewayType'; +import { GatewayTypeEnum } from './GatewayTypeEnum'; +import { ProjectId } from './ProjectId'; +import { RegionId } from './RegionId'; + + +export class CreateSiteInformation { + private 'region_id'?: string; + private 'project_id'?: string; + private 'gateway_type'?: GatewayTypeEnum; + private 'gateway_id'?: string; + public constructor(regionId?: string, projectId?: string, gatewayType?: GatewayTypeEnum, gatewayId?: string) { + this['region_id'] = regionId; + this['project_id'] = projectId; + this['gateway_type'] = gatewayType; + this['gateway_id'] = gatewayId; + } + public withRegionId(regionId: string): CreateSiteInformation { + this['region_id'] = regionId; + return this; + } + public set regionId(regionId: string | undefined) { + this['region_id'] = regionId; + } + public get regionId(): string | undefined { + return this['region_id']; + } + public withProjectId(projectId: string): CreateSiteInformation { + 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 withGatewayType(gatewayType: GatewayTypeEnum): CreateSiteInformation { + this['gateway_type'] = gatewayType; + return this; + } + public set gatewayType(gatewayType: GatewayTypeEnum | undefined) { + this['gateway_type'] = gatewayType; + } + public get gatewayType(): GatewayTypeEnum | undefined { + return this['gateway_type']; + } + public withGatewayId(gatewayId: string): CreateSiteInformation { + this['gateway_id'] = gatewayId; + return this; + } + public set gatewayId(gatewayId: string | undefined) { + this['gateway_id'] = gatewayId; + } + public get gatewayId(): string | undefined { + return this['gateway_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CreateSiteInformationPair.ts b/services/cc/v3/model/CreateSiteInformationPair.ts new file mode 100644 index 000000000..742ccf10f --- /dev/null +++ b/services/cc/v3/model/CreateSiteInformationPair.ts @@ -0,0 +1,13 @@ +import { CreateSiteInformation } from './CreateSiteInformation'; + + +export class CreateSiteInformationPair { + public sites?: Array; + public constructor(sites?: Array) { + this['sites'] = sites; + } + public withSites(sites: Array): CreateSiteInformationPair { + this['sites'] = sites; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CrossRegionType.ts b/services/cc/v3/model/CrossRegionType.ts new file mode 100644 index 000000000..d8a3492da --- /dev/null +++ b/services/cc/v3/model/CrossRegionType.ts @@ -0,0 +1,19 @@ +import { CrossRegionTypeEnum } from './CrossRegionTypeEnum'; + + +export class CrossRegionType { + private 'cross_region_type'?: CrossRegionTypeEnum; + public constructor(crossRegionType?: CrossRegionTypeEnum) { + this['cross_region_type'] = crossRegionType; + } + public withCrossRegionType(crossRegionType: CrossRegionTypeEnum): CrossRegionType { + this['cross_region_type'] = crossRegionType; + return this; + } + public set crossRegionType(crossRegionType: CrossRegionTypeEnum | undefined) { + this['cross_region_type'] = crossRegionType; + } + public get crossRegionType(): CrossRegionTypeEnum | undefined { + return this['cross_region_type']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CrossRegionTypeEnum.ts b/services/cc/v3/model/CrossRegionTypeEnum.ts new file mode 100644 index 000000000..4c477392e --- /dev/null +++ b/services/cc/v3/model/CrossRegionTypeEnum.ts @@ -0,0 +1,6 @@ + + +export class CrossRegionTypeEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/DeleteSiteNetworkRequest.ts b/services/cc/v3/model/DeleteSiteNetworkRequest.ts new file mode 100644 index 000000000..e15e3ad42 --- /dev/null +++ b/services/cc/v3/model/DeleteSiteNetworkRequest.ts @@ -0,0 +1,18 @@ + + +export class DeleteSiteNetworkRequest { + private 'site_network_id'?: string; + public constructor(siteNetworkId?: string) { + this['site_network_id'] = siteNetworkId; + } + public withSiteNetworkId(siteNetworkId: string): DeleteSiteNetworkRequest { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/DeleteSiteNetworkResponse.ts b/services/cc/v3/model/DeleteSiteNetworkResponse.ts new file mode 100644 index 000000000..f75845236 --- /dev/null +++ b/services/cc/v3/model/DeleteSiteNetworkResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteNetworkEntry } from './SiteNetworkEntry'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteSiteNetworkResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_network'?: SiteNetworkEntry; + public constructor(requestId?: string, siteNetwork?: SiteNetworkEntry) { + super(); + this['request_id'] = requestId; + this['site_network'] = siteNetwork; + } + public withRequestId(requestId: string): DeleteSiteNetworkResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteNetwork(siteNetwork: SiteNetworkEntry): DeleteSiteNetworkResponse { + this['site_network'] = siteNetwork; + return this; + } + public set siteNetwork(siteNetwork: SiteNetworkEntry | undefined) { + this['site_network'] = siteNetwork; + } + public get siteNetwork(): SiteNetworkEntry | undefined { + return this['site_network']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/DirectedEdge.ts b/services/cc/v3/model/DirectedEdge.ts new file mode 100644 index 000000000..e47d512b8 --- /dev/null +++ b/services/cc/v3/model/DirectedEdge.ts @@ -0,0 +1,79 @@ +import { GatewayId } from './GatewayId'; +import { GatewayType } from './GatewayType'; +import { GatewayTypeEnum } from './GatewayTypeEnum'; +import { ProjectId } from './ProjectId'; +import { RegionId } from './RegionId'; +import { SiteCode } from './SiteCode'; +import { UUID64Identifier } from './UUID64Identifier'; + + +export class DirectedEdge { + public id?: string; + private 'region_id'?: string; + private 'gateway_id'?: string; + private 'gateway_type'?: GatewayTypeEnum; + private 'site_code'?: string; + private 'project_id'?: string; + public constructor(id?: string, regionId?: string, gatewayId?: string, gatewayType?: GatewayTypeEnum, siteCode?: string, projectId?: string) { + this['id'] = id; + this['region_id'] = regionId; + this['gateway_id'] = gatewayId; + this['gateway_type'] = gatewayType; + this['site_code'] = siteCode; + this['project_id'] = projectId; + } + public withId(id: string): DirectedEdge { + this['id'] = id; + return this; + } + public withRegionId(regionId: string): DirectedEdge { + this['region_id'] = regionId; + return this; + } + public set regionId(regionId: string | undefined) { + this['region_id'] = regionId; + } + public get regionId(): string | undefined { + return this['region_id']; + } + public withGatewayId(gatewayId: string): DirectedEdge { + this['gateway_id'] = gatewayId; + return this; + } + public set gatewayId(gatewayId: string | undefined) { + this['gateway_id'] = gatewayId; + } + public get gatewayId(): string | undefined { + return this['gateway_id']; + } + public withGatewayType(gatewayType: GatewayTypeEnum): DirectedEdge { + this['gateway_type'] = gatewayType; + return this; + } + public set gatewayType(gatewayType: GatewayTypeEnum | undefined) { + this['gateway_type'] = gatewayType; + } + public get gatewayType(): GatewayTypeEnum | undefined { + return this['gateway_type']; + } + public withSiteCode(siteCode: string): DirectedEdge { + this['site_code'] = siteCode; + return this; + } + public set siteCode(siteCode: string | undefined) { + this['site_code'] = siteCode; + } + public get siteCode(): string | undefined { + return this['site_code']; + } + public withProjectId(projectId: string): DirectedEdge { + 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']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/DirectedEdgePair.ts b/services/cc/v3/model/DirectedEdgePair.ts new file mode 100644 index 000000000..0c136f174 --- /dev/null +++ b/services/cc/v3/model/DirectedEdgePair.ts @@ -0,0 +1,19 @@ +import { DirectedEdge } from './DirectedEdge'; + + +export class DirectedEdgePair { + private 'edge_pair'?: Array; + public constructor(edgePair?: Array) { + this['edge_pair'] = edgePair; + } + public withEdgePair(edgePair: Array): DirectedEdgePair { + this['edge_pair'] = edgePair; + return this; + } + public set edgePair(edgePair: Array | undefined) { + this['edge_pair'] = edgePair; + } + public get edgePair(): Array | undefined { + return this['edge_pair']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/DisassociateSiteNetworkBandwidthRequest.ts b/services/cc/v3/model/DisassociateSiteNetworkBandwidthRequest.ts new file mode 100644 index 000000000..db1550126 --- /dev/null +++ b/services/cc/v3/model/DisassociateSiteNetworkBandwidthRequest.ts @@ -0,0 +1,30 @@ + + +export class DisassociateSiteNetworkBandwidthRequest { + private 'site_network_id'?: string; + private 'site_connection_id'?: string; + public constructor(siteNetworkId?: string, siteConnectionId?: string) { + this['site_network_id'] = siteNetworkId; + this['site_connection_id'] = siteConnectionId; + } + public withSiteNetworkId(siteNetworkId: string): DisassociateSiteNetworkBandwidthRequest { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } + public withSiteConnectionId(siteConnectionId: string): DisassociateSiteNetworkBandwidthRequest { + this['site_connection_id'] = siteConnectionId; + return this; + } + public set siteConnectionId(siteConnectionId: string | undefined) { + this['site_connection_id'] = siteConnectionId; + } + public get siteConnectionId(): string | undefined { + return this['site_connection_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/DisassociateSiteNetworkBandwidthResponse.ts b/services/cc/v3/model/DisassociateSiteNetworkBandwidthResponse.ts new file mode 100644 index 000000000..87d48109c --- /dev/null +++ b/services/cc/v3/model/DisassociateSiteNetworkBandwidthResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteConnection } from './SiteConnection'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DisassociateSiteNetworkBandwidthResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_connection'?: SiteConnection; + public constructor(requestId?: string, siteConnection?: SiteConnection) { + super(); + this['request_id'] = requestId; + this['site_connection'] = siteConnection; + } + public withRequestId(requestId: string): DisassociateSiteNetworkBandwidthResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteConnection(siteConnection: SiteConnection): DisassociateSiteNetworkBandwidthResponse { + this['site_connection'] = siteConnection; + return this; + } + public set siteConnection(siteConnection: SiteConnection | undefined) { + this['site_connection'] = siteConnection; + } + public get siteConnection(): SiteConnection | undefined { + return this['site_connection']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/FrozenEffect.ts b/services/cc/v3/model/FrozenEffect.ts new file mode 100644 index 000000000..9318dfc6c --- /dev/null +++ b/services/cc/v3/model/FrozenEffect.ts @@ -0,0 +1,18 @@ +import { FrozenEffectEnum } from './FrozenEffectEnum'; + + +export class FrozenEffect { + private 'frozen_effect'?: FrozenEffectEnum; + public constructor() { + } + public withFrozenEffect(frozenEffect: FrozenEffectEnum): FrozenEffect { + this['frozen_effect'] = frozenEffect; + return this; + } + public set frozenEffect(frozenEffect: FrozenEffectEnum | undefined) { + this['frozen_effect'] = frozenEffect; + } + public get frozenEffect(): FrozenEffectEnum | undefined { + return this['frozen_effect']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/FrozenEffectEnum.ts b/services/cc/v3/model/FrozenEffectEnum.ts new file mode 100644 index 000000000..066b17d8b --- /dev/null +++ b/services/cc/v3/model/FrozenEffectEnum.ts @@ -0,0 +1,6 @@ + + +export class FrozenEffectEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/GatewayId.ts b/services/cc/v3/model/GatewayId.ts new file mode 100644 index 000000000..6a248a503 --- /dev/null +++ b/services/cc/v3/model/GatewayId.ts @@ -0,0 +1,18 @@ + + +export class GatewayId { + private 'gateway_id'?: string; + public constructor(gatewayId?: string) { + this['gateway_id'] = gatewayId; + } + public withGatewayId(gatewayId: string): GatewayId { + this['gateway_id'] = gatewayId; + return this; + } + public set gatewayId(gatewayId: string | undefined) { + this['gateway_id'] = gatewayId; + } + public get gatewayId(): string | undefined { + return this['gateway_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/GatewayType.ts b/services/cc/v3/model/GatewayType.ts new file mode 100644 index 000000000..a92614a60 --- /dev/null +++ b/services/cc/v3/model/GatewayType.ts @@ -0,0 +1,19 @@ +import { GatewayTypeEnum } from './GatewayTypeEnum'; + + +export class GatewayType { + private 'gateway_type'?: GatewayTypeEnum; + public constructor(gatewayType?: GatewayTypeEnum) { + this['gateway_type'] = gatewayType; + } + public withGatewayType(gatewayType: GatewayTypeEnum): GatewayType { + this['gateway_type'] = gatewayType; + return this; + } + public set gatewayType(gatewayType: GatewayTypeEnum | undefined) { + this['gateway_type'] = gatewayType; + } + public get gatewayType(): GatewayTypeEnum | undefined { + return this['gateway_type']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/GatewayTypeEnum.ts b/services/cc/v3/model/GatewayTypeEnum.ts new file mode 100644 index 000000000..f9f9c6028 --- /dev/null +++ b/services/cc/v3/model/GatewayTypeEnum.ts @@ -0,0 +1,6 @@ + + +export class GatewayTypeEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListBandwidthPackageLevelsRequest.ts b/services/cc/v3/model/ListBandwidthPackageLevelsRequest.ts new file mode 100644 index 000000000..a4dfd4bda --- /dev/null +++ b/services/cc/v3/model/ListBandwidthPackageLevelsRequest.ts @@ -0,0 +1,16 @@ + + +export class ListBandwidthPackageLevelsRequest { + public level?: string; + public name?: string; + public constructor() { + } + public withLevel(level: string): ListBandwidthPackageLevelsRequest { + this['level'] = level; + return this; + } + public withName(name: string): ListBandwidthPackageLevelsRequest { + this['name'] = name; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListBandwidthPackageLevelsResponse.ts b/services/cc/v3/model/ListBandwidthPackageLevelsResponse.ts new file mode 100644 index 000000000..ea785eb4d --- /dev/null +++ b/services/cc/v3/model/ListBandwidthPackageLevelsResponse.ts @@ -0,0 +1,43 @@ +import { BandwidthPackageLevel } from './BandwidthPackageLevel'; +import { PageInfo } from './PageInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListBandwidthPackageLevelsResponse extends SdkResponse { + private 'bandwidth_package_levels'?: Array; + private 'request_id'?: string; + private 'page_info'?: PageInfo; + public constructor() { + super(); + } + public withBandwidthPackageLevels(bandwidthPackageLevels: Array): ListBandwidthPackageLevelsResponse { + this['bandwidth_package_levels'] = bandwidthPackageLevels; + return this; + } + public set bandwidthPackageLevels(bandwidthPackageLevels: Array | undefined) { + this['bandwidth_package_levels'] = bandwidthPackageLevels; + } + public get bandwidthPackageLevels(): Array | undefined { + return this['bandwidth_package_levels']; + } + public withRequestId(requestId: string): ListBandwidthPackageLevelsResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withPageInfo(pageInfo: PageInfo): ListBandwidthPackageLevelsResponse { + this['page_info'] = pageInfo; + return this; + } + public set pageInfo(pageInfo: PageInfo | undefined) { + this['page_info'] = pageInfo; + } + public get pageInfo(): PageInfo | undefined { + return this['page_info']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListBandwidthPackageLinesRequest.ts b/services/cc/v3/model/ListBandwidthPackageLinesRequest.ts new file mode 100644 index 000000000..50d88c9f2 --- /dev/null +++ b/services/cc/v3/model/ListBandwidthPackageLinesRequest.ts @@ -0,0 +1,16 @@ + + +export class ListBandwidthPackageLinesRequest { + public level?: string; + public name?: string; + public constructor() { + } + public withLevel(level: string): ListBandwidthPackageLinesRequest { + this['level'] = level; + return this; + } + public withName(name: string): ListBandwidthPackageLinesRequest { + this['name'] = name; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListBandwidthPackageLinesResponse.ts b/services/cc/v3/model/ListBandwidthPackageLinesResponse.ts new file mode 100644 index 000000000..31112d172 --- /dev/null +++ b/services/cc/v3/model/ListBandwidthPackageLinesResponse.ts @@ -0,0 +1,31 @@ +import { BandwidthPackageLine } from './BandwidthPackageLine'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListBandwidthPackageLinesResponse extends SdkResponse { + private 'bandwidth_package_lines'?: Array; + private 'request_id'?: string; + public constructor() { + super(); + } + public withBandwidthPackageLines(bandwidthPackageLines: Array): ListBandwidthPackageLinesResponse { + this['bandwidth_package_lines'] = bandwidthPackageLines; + return this; + } + public set bandwidthPackageLines(bandwidthPackageLines: Array | undefined) { + this['bandwidth_package_lines'] = bandwidthPackageLines; + } + public get bandwidthPackageLines(): Array | undefined { + return this['bandwidth_package_lines']; + } + public withRequestId(requestId: string): ListBandwidthPackageLinesResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListBandwidthPackageSitesRequest.ts b/services/cc/v3/model/ListBandwidthPackageSitesRequest.ts new file mode 100644 index 000000000..4a6e9a662 --- /dev/null +++ b/services/cc/v3/model/ListBandwidthPackageSitesRequest.ts @@ -0,0 +1,33 @@ + + +export class ListBandwidthPackageSitesRequest { + private 'site_code'?: string; + private 'region_id'?: string; + public name?: string; + public constructor() { + } + public withSiteCode(siteCode: string): ListBandwidthPackageSitesRequest { + this['site_code'] = siteCode; + return this; + } + public set siteCode(siteCode: string | undefined) { + this['site_code'] = siteCode; + } + public get siteCode(): string | undefined { + return this['site_code']; + } + public withRegionId(regionId: string): ListBandwidthPackageSitesRequest { + this['region_id'] = regionId; + return this; + } + public set regionId(regionId: string | undefined) { + this['region_id'] = regionId; + } + public get regionId(): string | undefined { + return this['region_id']; + } + public withName(name: string): ListBandwidthPackageSitesRequest { + this['name'] = name; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListBandwidthPackageSitesResponse.ts b/services/cc/v3/model/ListBandwidthPackageSitesResponse.ts new file mode 100644 index 000000000..b055cf8fd --- /dev/null +++ b/services/cc/v3/model/ListBandwidthPackageSitesResponse.ts @@ -0,0 +1,43 @@ +import { BandwidthPackageSite } from './BandwidthPackageSite'; +import { PageInfo } from './PageInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListBandwidthPackageSitesResponse extends SdkResponse { + private 'bandwidth_package_sites'?: Array; + private 'request_id'?: string; + private 'page_info'?: PageInfo; + public constructor() { + super(); + } + public withBandwidthPackageSites(bandwidthPackageSites: Array): ListBandwidthPackageSitesResponse { + this['bandwidth_package_sites'] = bandwidthPackageSites; + return this; + } + public set bandwidthPackageSites(bandwidthPackageSites: Array | undefined) { + this['bandwidth_package_sites'] = bandwidthPackageSites; + } + public get bandwidthPackageSites(): Array | undefined { + return this['bandwidth_package_sites']; + } + public withRequestId(requestId: string): ListBandwidthPackageSitesResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withPageInfo(pageInfo: PageInfo): ListBandwidthPackageSitesResponse { + this['page_info'] = pageInfo; + return this; + } + public set pageInfo(pageInfo: PageInfo | undefined) { + this['page_info'] = pageInfo; + } + public get pageInfo(): PageInfo | undefined { + return this['page_info']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListSiteNetworkCapabilitiesRequest.ts b/services/cc/v3/model/ListSiteNetworkCapabilitiesRequest.ts new file mode 100644 index 000000000..97c288f47 --- /dev/null +++ b/services/cc/v3/model/ListSiteNetworkCapabilitiesRequest.ts @@ -0,0 +1,12 @@ +import { SiteNetworkSpecificationEnum } from './SiteNetworkSpecificationEnum'; + + +export class ListSiteNetworkCapabilitiesRequest { + public specification?: Array; + public constructor() { + } + public withSpecification(specification: Array): ListSiteNetworkCapabilitiesRequest { + this['specification'] = specification; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListSiteNetworkCapabilitiesResponse.ts b/services/cc/v3/model/ListSiteNetworkCapabilitiesResponse.ts new file mode 100644 index 000000000..d1b564997 --- /dev/null +++ b/services/cc/v3/model/ListSiteNetworkCapabilitiesResponse.ts @@ -0,0 +1,28 @@ +import { RequestId } from './RequestId'; +import { SiteNetworkCapabilityEntry } from './SiteNetworkCapabilityEntry'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListSiteNetworkCapabilitiesResponse extends SdkResponse { + private 'request_id'?: string; + public capabilities?: Array; + public constructor(requestId?: string, capabilities?: Array) { + super(); + this['request_id'] = requestId; + this['capabilities'] = capabilities; + } + public withRequestId(requestId: string): ListSiteNetworkCapabilitiesResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withCapabilities(capabilities: Array): ListSiteNetworkCapabilitiesResponse { + this['capabilities'] = capabilities; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListSiteNetworkQuotasRequest.ts b/services/cc/v3/model/ListSiteNetworkQuotasRequest.ts new file mode 100644 index 000000000..97b12f6de --- /dev/null +++ b/services/cc/v3/model/ListSiteNetworkQuotasRequest.ts @@ -0,0 +1,28 @@ +import { SiteNetworkQuotaKeyEnum } from './SiteNetworkQuotaKeyEnum'; + + +export class ListSiteNetworkQuotasRequest { + private 'quota_type'?: Array; + public limit?: number; + public marker?: string; + public constructor() { + } + public withQuotaType(quotaType: Array): ListSiteNetworkQuotasRequest { + this['quota_type'] = quotaType; + return this; + } + public set quotaType(quotaType: Array | undefined) { + this['quota_type'] = quotaType; + } + public get quotaType(): Array | undefined { + return this['quota_type']; + } + public withLimit(limit: number): ListSiteNetworkQuotasRequest { + this['limit'] = limit; + return this; + } + public withMarker(marker: string): ListSiteNetworkQuotasRequest { + this['marker'] = marker; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListSiteNetworkQuotasResponse.ts b/services/cc/v3/model/ListSiteNetworkQuotasResponse.ts new file mode 100644 index 000000000..4c0cd0e2c --- /dev/null +++ b/services/cc/v3/model/ListSiteNetworkQuotasResponse.ts @@ -0,0 +1,28 @@ +import { RequestId } from './RequestId'; +import { SiteNetworkQuota } from './SiteNetworkQuota'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListSiteNetworkQuotasResponse extends SdkResponse { + private 'request_id'?: string; + public quotas?: Array; + public constructor(requestId?: string, quotas?: Array) { + super(); + this['request_id'] = requestId; + this['quotas'] = quotas; + } + public withRequestId(requestId: string): ListSiteNetworkQuotasResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withQuotas(quotas: Array): ListSiteNetworkQuotasResponse { + this['quotas'] = quotas; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListSiteNetworksRequest.ts b/services/cc/v3/model/ListSiteNetworksRequest.ts new file mode 100644 index 000000000..7c924df58 --- /dev/null +++ b/services/cc/v3/model/ListSiteNetworksRequest.ts @@ -0,0 +1,99 @@ +import { SiteNetworkStateEnum } from './SiteNetworkStateEnum'; +import { SortDir } from './SortDir'; + + +export class ListSiteNetworksRequest { + public limit?: number; + public marker?: string; + private 'sort_key'?: string; + private 'sort_dir'?: SortDir; + public id?: Array; + public name?: Array; + public state?: Array; + private 'enterprise_project_id'?: Array; + private 'global_dc_gateway_id'?: Array; + private 'global_connection_bandwidth_id'?: Array; + private 'connection_id'?: Array; + public constructor() { + } + public withLimit(limit: number): ListSiteNetworksRequest { + this['limit'] = limit; + return this; + } + public withMarker(marker: string): ListSiteNetworksRequest { + this['marker'] = marker; + return this; + } + public withSortKey(sortKey: string): ListSiteNetworksRequest { + this['sort_key'] = sortKey; + return this; + } + public set sortKey(sortKey: string | undefined) { + this['sort_key'] = sortKey; + } + public get sortKey(): string | undefined { + return this['sort_key']; + } + public withSortDir(sortDir: SortDir): ListSiteNetworksRequest { + this['sort_dir'] = sortDir; + return this; + } + public set sortDir(sortDir: SortDir | undefined) { + this['sort_dir'] = sortDir; + } + public get sortDir(): SortDir | undefined { + return this['sort_dir']; + } + public withId(id: Array): ListSiteNetworksRequest { + this['id'] = id; + return this; + } + public withName(name: Array): ListSiteNetworksRequest { + this['name'] = name; + return this; + } + public withState(state: Array): ListSiteNetworksRequest { + this['state'] = state; + return this; + } + public withEnterpriseProjectId(enterpriseProjectId: Array): ListSiteNetworksRequest { + this['enterprise_project_id'] = enterpriseProjectId; + return this; + } + public set enterpriseProjectId(enterpriseProjectId: Array | undefined) { + this['enterprise_project_id'] = enterpriseProjectId; + } + public get enterpriseProjectId(): Array | undefined { + return this['enterprise_project_id']; + } + public withGlobalDcGatewayId(globalDcGatewayId: Array): ListSiteNetworksRequest { + this['global_dc_gateway_id'] = globalDcGatewayId; + return this; + } + public set globalDcGatewayId(globalDcGatewayId: Array | undefined) { + this['global_dc_gateway_id'] = globalDcGatewayId; + } + public get globalDcGatewayId(): Array | undefined { + return this['global_dc_gateway_id']; + } + public withGlobalConnectionBandwidthId(globalConnectionBandwidthId: Array): ListSiteNetworksRequest { + this['global_connection_bandwidth_id'] = globalConnectionBandwidthId; + return this; + } + public set globalConnectionBandwidthId(globalConnectionBandwidthId: Array | undefined) { + this['global_connection_bandwidth_id'] = globalConnectionBandwidthId; + } + public get globalConnectionBandwidthId(): Array | undefined { + return this['global_connection_bandwidth_id']; + } + public withConnectionId(connectionId: Array): ListSiteNetworksRequest { + this['connection_id'] = connectionId; + return this; + } + public set connectionId(connectionId: Array | undefined) { + this['connection_id'] = connectionId; + } + public get connectionId(): Array | undefined { + return this['connection_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ListSiteNetworksResponse.ts b/services/cc/v3/model/ListSiteNetworksResponse.ts new file mode 100644 index 000000000..1e509ebb8 --- /dev/null +++ b/services/cc/v3/model/ListSiteNetworksResponse.ts @@ -0,0 +1,46 @@ +import { ListResponseBody } from './ListResponseBody'; +import { PageInfo } from './PageInfo'; +import { SiteNetworkEntry } from './SiteNetworkEntry'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListSiteNetworksResponse extends SdkResponse { + private 'request_id'?: string; + private 'page_info'?: PageInfo; + private 'site_networks'?: Array; + public constructor(requestId?: string, siteNetworks?: Array) { + super(); + this['request_id'] = requestId; + this['site_networks'] = siteNetworks; + } + public withRequestId(requestId: string): ListSiteNetworksResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withPageInfo(pageInfo: PageInfo): ListSiteNetworksResponse { + this['page_info'] = pageInfo; + return this; + } + public set pageInfo(pageInfo: PageInfo | undefined) { + this['page_info'] = pageInfo; + } + public get pageInfo(): PageInfo | undefined { + return this['page_info']; + } + public withSiteNetworks(siteNetworks: Array): ListSiteNetworksResponse { + this['site_networks'] = siteNetworks; + return this; + } + public set siteNetworks(siteNetworks: Array | undefined) { + this['site_networks'] = siteNetworks; + } + public get siteNetworks(): Array | undefined { + return this['site_networks']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ShowSiteNetworkRequest.ts b/services/cc/v3/model/ShowSiteNetworkRequest.ts new file mode 100644 index 000000000..e5a6f5d8b --- /dev/null +++ b/services/cc/v3/model/ShowSiteNetworkRequest.ts @@ -0,0 +1,18 @@ + + +export class ShowSiteNetworkRequest { + private 'site_network_id'?: string; + public constructor(siteNetworkId?: string) { + this['site_network_id'] = siteNetworkId; + } + public withSiteNetworkId(siteNetworkId: string): ShowSiteNetworkRequest { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/ShowSiteNetworkResponse.ts b/services/cc/v3/model/ShowSiteNetworkResponse.ts new file mode 100644 index 000000000..71bab4755 --- /dev/null +++ b/services/cc/v3/model/ShowSiteNetworkResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteNetworkEntry } from './SiteNetworkEntry'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowSiteNetworkResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_network'?: SiteNetworkEntry; + public constructor(requestId?: string, siteNetwork?: SiteNetworkEntry) { + super(); + this['request_id'] = requestId; + this['site_network'] = siteNetwork; + } + public withRequestId(requestId: string): ShowSiteNetworkResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteNetwork(siteNetwork: SiteNetworkEntry): ShowSiteNetworkResponse { + this['site_network'] = siteNetwork; + return this; + } + public set siteNetwork(siteNetwork: SiteNetworkEntry | undefined) { + this['site_network'] = siteNetwork; + } + public get siteNetwork(): SiteNetworkEntry | undefined { + return this['site_network']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteConnection.ts b/services/cc/v3/model/SiteConnection.ts new file mode 100644 index 000000000..1d0fce27c --- /dev/null +++ b/services/cc/v3/model/SiteConnection.ts @@ -0,0 +1,149 @@ +import { BandwidthSize } from './BandwidthSize'; +import { CreatedAt } from './CreatedAt'; +import { CrossRegionType } from './CrossRegionType'; +import { CrossRegionTypeEnum } from './CrossRegionTypeEnum'; +import { DirectedEdge } from './DirectedEdge'; +import { DirectedEdgePair } from './DirectedEdgePair'; +import { FrozenEffect } from './FrozenEffect'; +import { FrozenEffectEnum } from './FrozenEffectEnum'; +import { GlobalConnectionBandwidthId } from './GlobalConnectionBandwidthId'; +import { IsFrozen } from './IsFrozen'; +import { SiteConnectionState } from './SiteConnectionState'; +import { SiteConnectionStateEnum } from './SiteConnectionStateEnum'; +import { SiteNetworkId } from './SiteNetworkId'; +import { UUID64Identifier } from './UUID64Identifier'; +import { UpdatedAt } from './UpdatedAt'; + + +export class SiteConnection { + public id?: string; + private 'site_network_id'?: string; + public state?: SiteConnectionStateEnum; + private 'created_at'?: Date; + private 'updated_at'?: Date; + private 'edge_pair'?: Array; + private 'cross_region_type'?: CrossRegionTypeEnum; + private 'global_connection_bandwidth_id'?: string; + private 'bandwidth_size'?: number; + private 'is_frozen'?: boolean; + private 'frozen_effect'?: FrozenEffectEnum; + private 'is_bind_bandwidth'?: boolean; + public constructor(id?: string, siteNetworkId?: string, state?: SiteConnectionStateEnum, createdAt?: Date, updatedAt?: Date, edgePair?: Array, crossRegionType?: CrossRegionTypeEnum, isFrozen?: boolean) { + this['id'] = id; + this['site_network_id'] = siteNetworkId; + this['state'] = state; + this['created_at'] = createdAt; + this['updated_at'] = updatedAt; + this['edge_pair'] = edgePair; + this['cross_region_type'] = crossRegionType; + this['is_frozen'] = isFrozen; + } + public withId(id: string): SiteConnection { + this['id'] = id; + return this; + } + public withSiteNetworkId(siteNetworkId: string): SiteConnection { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } + public withState(state: SiteConnectionStateEnum): SiteConnection { + this['state'] = state; + return this; + } + public withCreatedAt(createdAt: Date): SiteConnection { + this['created_at'] = createdAt; + return this; + } + public set createdAt(createdAt: Date | undefined) { + this['created_at'] = createdAt; + } + public get createdAt(): Date | undefined { + return this['created_at']; + } + public withUpdatedAt(updatedAt: Date): SiteConnection { + this['updated_at'] = updatedAt; + return this; + } + public set updatedAt(updatedAt: Date | undefined) { + this['updated_at'] = updatedAt; + } + public get updatedAt(): Date | undefined { + return this['updated_at']; + } + public withEdgePair(edgePair: Array): SiteConnection { + this['edge_pair'] = edgePair; + return this; + } + public set edgePair(edgePair: Array | undefined) { + this['edge_pair'] = edgePair; + } + public get edgePair(): Array | undefined { + return this['edge_pair']; + } + public withCrossRegionType(crossRegionType: CrossRegionTypeEnum): SiteConnection { + this['cross_region_type'] = crossRegionType; + return this; + } + public set crossRegionType(crossRegionType: CrossRegionTypeEnum | undefined) { + this['cross_region_type'] = crossRegionType; + } + public get crossRegionType(): CrossRegionTypeEnum | undefined { + return this['cross_region_type']; + } + public withGlobalConnectionBandwidthId(globalConnectionBandwidthId: string): SiteConnection { + this['global_connection_bandwidth_id'] = globalConnectionBandwidthId; + return this; + } + public set globalConnectionBandwidthId(globalConnectionBandwidthId: string | undefined) { + this['global_connection_bandwidth_id'] = globalConnectionBandwidthId; + } + public get globalConnectionBandwidthId(): string | undefined { + return this['global_connection_bandwidth_id']; + } + public withBandwidthSize(bandwidthSize: number): SiteConnection { + this['bandwidth_size'] = bandwidthSize; + return this; + } + public set bandwidthSize(bandwidthSize: number | undefined) { + this['bandwidth_size'] = bandwidthSize; + } + public get bandwidthSize(): number | undefined { + return this['bandwidth_size']; + } + public withIsFrozen(isFrozen: boolean): SiteConnection { + this['is_frozen'] = isFrozen; + return this; + } + public set isFrozen(isFrozen: boolean | undefined) { + this['is_frozen'] = isFrozen; + } + public get isFrozen(): boolean | undefined { + return this['is_frozen']; + } + public withFrozenEffect(frozenEffect: FrozenEffectEnum): SiteConnection { + this['frozen_effect'] = frozenEffect; + return this; + } + public set frozenEffect(frozenEffect: FrozenEffectEnum | undefined) { + this['frozen_effect'] = frozenEffect; + } + public get frozenEffect(): FrozenEffectEnum | undefined { + return this['frozen_effect']; + } + public withIsBindBandwidth(isBindBandwidth: boolean): SiteConnection { + this['is_bind_bandwidth'] = isBindBandwidth; + return this; + } + public set isBindBandwidth(isBindBandwidth: boolean | undefined) { + this['is_bind_bandwidth'] = isBindBandwidth; + } + public get isBindBandwidth(): boolean | undefined { + return this['is_bind_bandwidth']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteConnectionState.ts b/services/cc/v3/model/SiteConnectionState.ts new file mode 100644 index 000000000..de4919569 --- /dev/null +++ b/services/cc/v3/model/SiteConnectionState.ts @@ -0,0 +1,13 @@ +import { SiteConnectionStateEnum } from './SiteConnectionStateEnum'; + + +export class SiteConnectionState { + public state?: SiteConnectionStateEnum; + public constructor(state?: SiteConnectionStateEnum) { + this['state'] = state; + } + public withState(state: SiteConnectionStateEnum): SiteConnectionState { + this['state'] = state; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteConnectionStateEnum.ts b/services/cc/v3/model/SiteConnectionStateEnum.ts new file mode 100644 index 000000000..b4d2b3faa --- /dev/null +++ b/services/cc/v3/model/SiteConnectionStateEnum.ts @@ -0,0 +1,6 @@ + + +export class SiteConnectionStateEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteInformation.ts b/services/cc/v3/model/SiteInformation.ts new file mode 100644 index 000000000..706e495ce --- /dev/null +++ b/services/cc/v3/model/SiteInformation.ts @@ -0,0 +1,79 @@ +import { Asn } from './Asn'; +import { GatewayId } from './GatewayId'; +import { GatewayType } from './GatewayType'; +import { GatewayTypeEnum } from './GatewayTypeEnum'; +import { ProjectId } from './ProjectId'; +import { RegionId } from './RegionId'; +import { SiteCode } from './SiteCode'; + + +export class SiteInformation { + private 'region_id'?: string; + private 'project_id'?: string; + private 'gateway_type'?: GatewayTypeEnum; + private 'gateway_id'?: string; + private 'site_code'?: string; + public asn?: number; + public constructor(regionId?: string, projectId?: string, gatewayType?: GatewayTypeEnum, gatewayId?: string, siteCode?: string, asn?: number) { + this['region_id'] = regionId; + this['project_id'] = projectId; + this['gateway_type'] = gatewayType; + this['gateway_id'] = gatewayId; + this['site_code'] = siteCode; + this['asn'] = asn; + } + public withRegionId(regionId: string): SiteInformation { + this['region_id'] = regionId; + return this; + } + public set regionId(regionId: string | undefined) { + this['region_id'] = regionId; + } + public get regionId(): string | undefined { + return this['region_id']; + } + public withProjectId(projectId: string): SiteInformation { + 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 withGatewayType(gatewayType: GatewayTypeEnum): SiteInformation { + this['gateway_type'] = gatewayType; + return this; + } + public set gatewayType(gatewayType: GatewayTypeEnum | undefined) { + this['gateway_type'] = gatewayType; + } + public get gatewayType(): GatewayTypeEnum | undefined { + return this['gateway_type']; + } + public withGatewayId(gatewayId: string): SiteInformation { + this['gateway_id'] = gatewayId; + return this; + } + public set gatewayId(gatewayId: string | undefined) { + this['gateway_id'] = gatewayId; + } + public get gatewayId(): string | undefined { + return this['gateway_id']; + } + public withSiteCode(siteCode: string): SiteInformation { + this['site_code'] = siteCode; + return this; + } + public set siteCode(siteCode: string | undefined) { + this['site_code'] = siteCode; + } + public get siteCode(): string | undefined { + return this['site_code']; + } + public withAsn(asn: number): SiteInformation { + this['asn'] = asn; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkCapabilityEntry.ts b/services/cc/v3/model/SiteNetworkCapabilityEntry.ts new file mode 100644 index 000000000..9053cd036 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkCapabilityEntry.ts @@ -0,0 +1,157 @@ +import { ConnectionBandwidthChargeModeEnum } from './ConnectionBandwidthChargeModeEnum'; +import { ConnectionBandwidthSizeRange } from './ConnectionBandwidthSizeRange'; +import { DomainId } from './DomainId'; +import { SiteNetworkSpecificationEnum } from './SiteNetworkSpecificationEnum'; +import { SiteNetworkTopologyEnum } from './SiteNetworkTopologyEnum'; +import { UUID64Identifier } from './UUID64Identifier'; + + +export class SiteNetworkCapabilityEntry { + public id?: string; + private 'domain_id'?: string; + public specification?: SiteNetworkSpecificationEnum; + private 'is_support'?: boolean; + private 'is_support_enterprise_project'?: boolean; + private 'is_support_tag'?: boolean; + private 'is_support_intra_region'?: boolean; + private 'support_topologies'?: Array; + private 'support_regions'?: Array; + private 'support_dscp_regions'?: Array; + private 'support_freeze_regions'?: Array; + private 'support_locations'?: Array; + private 'size_range'?: ConnectionBandwidthSizeRange; + private 'charge_mode'?: Array; + public constructor(id?: string, domainId?: string, specification?: SiteNetworkSpecificationEnum) { + this['id'] = id; + this['domain_id'] = domainId; + this['specification'] = specification; + } + public withId(id: string): SiteNetworkCapabilityEntry { + this['id'] = id; + return this; + } + public withDomainId(domainId: string): SiteNetworkCapabilityEntry { + this['domain_id'] = domainId; + return this; + } + public set domainId(domainId: string | undefined) { + this['domain_id'] = domainId; + } + public get domainId(): string | undefined { + return this['domain_id']; + } + public withSpecification(specification: SiteNetworkSpecificationEnum): SiteNetworkCapabilityEntry { + this['specification'] = specification; + return this; + } + public withIsSupport(isSupport: boolean): SiteNetworkCapabilityEntry { + this['is_support'] = isSupport; + return this; + } + public set isSupport(isSupport: boolean | undefined) { + this['is_support'] = isSupport; + } + public get isSupport(): boolean | undefined { + return this['is_support']; + } + public withIsSupportEnterpriseProject(isSupportEnterpriseProject: boolean): SiteNetworkCapabilityEntry { + this['is_support_enterprise_project'] = isSupportEnterpriseProject; + return this; + } + public set isSupportEnterpriseProject(isSupportEnterpriseProject: boolean | undefined) { + this['is_support_enterprise_project'] = isSupportEnterpriseProject; + } + public get isSupportEnterpriseProject(): boolean | undefined { + return this['is_support_enterprise_project']; + } + public withIsSupportTag(isSupportTag: boolean): SiteNetworkCapabilityEntry { + this['is_support_tag'] = isSupportTag; + return this; + } + public set isSupportTag(isSupportTag: boolean | undefined) { + this['is_support_tag'] = isSupportTag; + } + public get isSupportTag(): boolean | undefined { + return this['is_support_tag']; + } + public withIsSupportIntraRegion(isSupportIntraRegion: boolean): SiteNetworkCapabilityEntry { + this['is_support_intra_region'] = isSupportIntraRegion; + return this; + } + public set isSupportIntraRegion(isSupportIntraRegion: boolean | undefined) { + this['is_support_intra_region'] = isSupportIntraRegion; + } + public get isSupportIntraRegion(): boolean | undefined { + return this['is_support_intra_region']; + } + public withSupportTopologies(supportTopologies: Array): SiteNetworkCapabilityEntry { + this['support_topologies'] = supportTopologies; + return this; + } + public set supportTopologies(supportTopologies: Array | undefined) { + this['support_topologies'] = supportTopologies; + } + public get supportTopologies(): Array | undefined { + return this['support_topologies']; + } + public withSupportRegions(supportRegions: Array): SiteNetworkCapabilityEntry { + this['support_regions'] = supportRegions; + return this; + } + public set supportRegions(supportRegions: Array | undefined) { + this['support_regions'] = supportRegions; + } + public get supportRegions(): Array | undefined { + return this['support_regions']; + } + public withSupportDscpRegions(supportDscpRegions: Array): SiteNetworkCapabilityEntry { + this['support_dscp_regions'] = supportDscpRegions; + return this; + } + public set supportDscpRegions(supportDscpRegions: Array | undefined) { + this['support_dscp_regions'] = supportDscpRegions; + } + public get supportDscpRegions(): Array | undefined { + return this['support_dscp_regions']; + } + public withSupportFreezeRegions(supportFreezeRegions: Array): SiteNetworkCapabilityEntry { + this['support_freeze_regions'] = supportFreezeRegions; + return this; + } + public set supportFreezeRegions(supportFreezeRegions: Array | undefined) { + this['support_freeze_regions'] = supportFreezeRegions; + } + public get supportFreezeRegions(): Array | undefined { + return this['support_freeze_regions']; + } + public withSupportLocations(supportLocations: Array): SiteNetworkCapabilityEntry { + this['support_locations'] = supportLocations; + return this; + } + public set supportLocations(supportLocations: Array | undefined) { + this['support_locations'] = supportLocations; + } + public get supportLocations(): Array | undefined { + return this['support_locations']; + } + public withSizeRange(sizeRange: ConnectionBandwidthSizeRange): SiteNetworkCapabilityEntry { + this['size_range'] = sizeRange; + return this; + } + public set sizeRange(sizeRange: ConnectionBandwidthSizeRange | undefined) { + this['size_range'] = sizeRange; + } + public get sizeRange(): ConnectionBandwidthSizeRange | undefined { + return this['size_range']; + } + public withChargeMode(chargeMode: Array): SiteNetworkCapabilityEntry { + this['charge_mode'] = chargeMode; + return this; + } + public set chargeMode(chargeMode: Array | undefined) { + this['charge_mode'] = chargeMode; + } + public get chargeMode(): Array | undefined { + return this['charge_mode']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkEntry.ts b/services/cc/v3/model/SiteNetworkEntry.ts new file mode 100644 index 000000000..6bd943658 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkEntry.ts @@ -0,0 +1,148 @@ +import { ApplyPolicyId } from './ApplyPolicyId'; +import { CreatedAt } from './CreatedAt'; +import { Description } from './Description'; +import { DomainId } from './DomainId'; +import { EnterpriseProjectId } from './EnterpriseProjectId'; +import { Name } from './Name'; +import { SiteConnection } from './SiteConnection'; +import { SiteInformation } from './SiteInformation'; +import { SiteNetworkState } from './SiteNetworkState'; +import { SiteNetworkStateEnum } from './SiteNetworkStateEnum'; +import { SiteNetworkTopology } from './SiteNetworkTopology'; +import { SiteNetworkTopologyEnum } from './SiteNetworkTopologyEnum'; +import { Tag } from './Tag'; +import { Tags } from './Tags'; +import { UUID64Identifier } from './UUID64Identifier'; +import { UpdatedAt } from './UpdatedAt'; + + +export class SiteNetworkEntry { + public id?: string; + public name?: string; + public description?: string; + private 'created_at'?: Date; + private 'updated_at'?: Date; + private 'domain_id'?: string; + public state?: SiteNetworkStateEnum; + private 'enterprise_project_id'?: string; + private 'apply_policy_id'?: string; + public tags?: Array; + public topology?: SiteNetworkTopologyEnum; + public connections?: Array; + public sites?: Array; + private 'hub_site'?: SiteInformation; + private 'spoke_sites'?: Array; + public constructor(id?: string, name?: string, createdAt?: Date, updatedAt?: Date, domainId?: string, state?: SiteNetworkStateEnum, applyPolicyId?: string, topology?: SiteNetworkTopologyEnum, connections?: Array) { + this['id'] = id; + this['name'] = name; + this['created_at'] = createdAt; + this['updated_at'] = updatedAt; + this['domain_id'] = domainId; + this['state'] = state; + this['apply_policy_id'] = applyPolicyId; + this['topology'] = topology; + this['connections'] = connections; + } + public withId(id: string): SiteNetworkEntry { + this['id'] = id; + return this; + } + public withName(name: string): SiteNetworkEntry { + this['name'] = name; + return this; + } + public withDescription(description: string): SiteNetworkEntry { + this['description'] = description; + return this; + } + public withCreatedAt(createdAt: Date): SiteNetworkEntry { + this['created_at'] = createdAt; + return this; + } + public set createdAt(createdAt: Date | undefined) { + this['created_at'] = createdAt; + } + public get createdAt(): Date | undefined { + return this['created_at']; + } + public withUpdatedAt(updatedAt: Date): SiteNetworkEntry { + this['updated_at'] = updatedAt; + return this; + } + public set updatedAt(updatedAt: Date | undefined) { + this['updated_at'] = updatedAt; + } + public get updatedAt(): Date | undefined { + return this['updated_at']; + } + public withDomainId(domainId: string): SiteNetworkEntry { + this['domain_id'] = domainId; + return this; + } + public set domainId(domainId: string | undefined) { + this['domain_id'] = domainId; + } + public get domainId(): string | undefined { + return this['domain_id']; + } + public withState(state: SiteNetworkStateEnum): SiteNetworkEntry { + this['state'] = state; + return this; + } + public withEnterpriseProjectId(enterpriseProjectId: string): SiteNetworkEntry { + this['enterprise_project_id'] = enterpriseProjectId; + return this; + } + public set enterpriseProjectId(enterpriseProjectId: string | undefined) { + this['enterprise_project_id'] = enterpriseProjectId; + } + public get enterpriseProjectId(): string | undefined { + return this['enterprise_project_id']; + } + public withApplyPolicyId(applyPolicyId: string): SiteNetworkEntry { + this['apply_policy_id'] = applyPolicyId; + return this; + } + public set applyPolicyId(applyPolicyId: string | undefined) { + this['apply_policy_id'] = applyPolicyId; + } + public get applyPolicyId(): string | undefined { + return this['apply_policy_id']; + } + public withTags(tags: Array): SiteNetworkEntry { + this['tags'] = tags; + return this; + } + public withTopology(topology: SiteNetworkTopologyEnum): SiteNetworkEntry { + this['topology'] = topology; + return this; + } + public withConnections(connections: Array): SiteNetworkEntry { + this['connections'] = connections; + return this; + } + public withSites(sites: Array): SiteNetworkEntry { + this['sites'] = sites; + return this; + } + public withHubSite(hubSite: SiteInformation): SiteNetworkEntry { + this['hub_site'] = hubSite; + return this; + } + public set hubSite(hubSite: SiteInformation | undefined) { + this['hub_site'] = hubSite; + } + public get hubSite(): SiteInformation | undefined { + return this['hub_site']; + } + public withSpokeSites(spokeSites: Array): SiteNetworkEntry { + this['spoke_sites'] = spokeSites; + return this; + } + public set spokeSites(spokeSites: Array | undefined) { + this['spoke_sites'] = spokeSites; + } + public get spokeSites(): Array | undefined { + return this['spoke_sites']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkId.ts b/services/cc/v3/model/SiteNetworkId.ts new file mode 100644 index 000000000..7ecf1051c --- /dev/null +++ b/services/cc/v3/model/SiteNetworkId.ts @@ -0,0 +1,18 @@ + + +export class SiteNetworkId { + private 'site_network_id'?: string; + public constructor(siteNetworkId?: string) { + this['site_network_id'] = siteNetworkId; + } + public withSiteNetworkId(siteNetworkId: string): SiteNetworkId { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkQuota.ts b/services/cc/v3/model/SiteNetworkQuota.ts new file mode 100644 index 000000000..9a83c570d --- /dev/null +++ b/services/cc/v3/model/SiteNetworkQuota.ts @@ -0,0 +1,47 @@ +import { QuotaLimit } from './QuotaLimit'; +import { QuotaUnit } from './QuotaUnit'; +import { QuotaUsed } from './QuotaUsed'; +import { SiteNetworkQuotaKey } from './SiteNetworkQuotaKey'; +import { SiteNetworkQuotaKeyEnum } from './SiteNetworkQuotaKeyEnum'; + + +export class SiteNetworkQuota { + private 'quota_key'?: SiteNetworkQuotaKeyEnum; + private 'quota_limit'?: number; + public used?: number; + public unit?: string; + public constructor(quotaKey?: SiteNetworkQuotaKeyEnum, quotaLimit?: number, used?: number, unit?: string) { + this['quota_key'] = quotaKey; + this['quota_limit'] = quotaLimit; + this['used'] = used; + this['unit'] = unit; + } + public withQuotaKey(quotaKey: SiteNetworkQuotaKeyEnum): SiteNetworkQuota { + this['quota_key'] = quotaKey; + return this; + } + public set quotaKey(quotaKey: SiteNetworkQuotaKeyEnum | undefined) { + this['quota_key'] = quotaKey; + } + public get quotaKey(): SiteNetworkQuotaKeyEnum | undefined { + return this['quota_key']; + } + public withQuotaLimit(quotaLimit: number): SiteNetworkQuota { + this['quota_limit'] = quotaLimit; + return this; + } + public set quotaLimit(quotaLimit: number | undefined) { + this['quota_limit'] = quotaLimit; + } + public get quotaLimit(): number | undefined { + return this['quota_limit']; + } + public withUsed(used: number): SiteNetworkQuota { + this['used'] = used; + return this; + } + public withUnit(unit: string): SiteNetworkQuota { + this['unit'] = unit; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkQuotaKey.ts b/services/cc/v3/model/SiteNetworkQuotaKey.ts new file mode 100644 index 000000000..8af2b81d6 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkQuotaKey.ts @@ -0,0 +1,19 @@ +import { SiteNetworkQuotaKeyEnum } from './SiteNetworkQuotaKeyEnum'; + + +export class SiteNetworkQuotaKey { + private 'quota_key'?: SiteNetworkQuotaKeyEnum; + public constructor(quotaKey?: SiteNetworkQuotaKeyEnum) { + this['quota_key'] = quotaKey; + } + public withQuotaKey(quotaKey: SiteNetworkQuotaKeyEnum): SiteNetworkQuotaKey { + this['quota_key'] = quotaKey; + return this; + } + public set quotaKey(quotaKey: SiteNetworkQuotaKeyEnum | undefined) { + this['quota_key'] = quotaKey; + } + public get quotaKey(): SiteNetworkQuotaKeyEnum | undefined { + return this['quota_key']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkQuotaKeyEnum.ts b/services/cc/v3/model/SiteNetworkQuotaKeyEnum.ts new file mode 100644 index 000000000..09c4e26b7 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkQuotaKeyEnum.ts @@ -0,0 +1,6 @@ + + +export class SiteNetworkQuotaKeyEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkSpecificationEnum.ts b/services/cc/v3/model/SiteNetworkSpecificationEnum.ts new file mode 100644 index 000000000..9ce82fabf --- /dev/null +++ b/services/cc/v3/model/SiteNetworkSpecificationEnum.ts @@ -0,0 +1,6 @@ + + +export class SiteNetworkSpecificationEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkState.ts b/services/cc/v3/model/SiteNetworkState.ts new file mode 100644 index 000000000..f10042079 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkState.ts @@ -0,0 +1,13 @@ +import { SiteNetworkStateEnum } from './SiteNetworkStateEnum'; + + +export class SiteNetworkState { + public state?: SiteNetworkStateEnum; + public constructor(state?: SiteNetworkStateEnum) { + this['state'] = state; + } + public withState(state: SiteNetworkStateEnum): SiteNetworkState { + this['state'] = state; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkStateEnum.ts b/services/cc/v3/model/SiteNetworkStateEnum.ts new file mode 100644 index 000000000..7ed156018 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkStateEnum.ts @@ -0,0 +1,6 @@ + + +export class SiteNetworkStateEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkTopology.ts b/services/cc/v3/model/SiteNetworkTopology.ts new file mode 100644 index 000000000..611734e58 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkTopology.ts @@ -0,0 +1,13 @@ +import { SiteNetworkTopologyEnum } from './SiteNetworkTopologyEnum'; + + +export class SiteNetworkTopology { + public topology?: SiteNetworkTopologyEnum; + public constructor(topology?: SiteNetworkTopologyEnum) { + this['topology'] = topology; + } + public withTopology(topology: SiteNetworkTopologyEnum): SiteNetworkTopology { + this['topology'] = topology; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/SiteNetworkTopologyEnum.ts b/services/cc/v3/model/SiteNetworkTopologyEnum.ts new file mode 100644 index 000000000..7731c7d26 --- /dev/null +++ b/services/cc/v3/model/SiteNetworkTopologyEnum.ts @@ -0,0 +1,6 @@ + + +export class SiteNetworkTopologyEnum { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteConnectionBandwidthSize.ts b/services/cc/v3/model/UpdateSiteConnectionBandwidthSize.ts new file mode 100644 index 000000000..fe7fe7a1f --- /dev/null +++ b/services/cc/v3/model/UpdateSiteConnectionBandwidthSize.ts @@ -0,0 +1,18 @@ +import { BandwidthSize } from './BandwidthSize'; + + +export class UpdateSiteConnectionBandwidthSize { + private 'bandwidth_size'?: number; + public constructor() { + } + public withBandwidthSize(bandwidthSize: number): UpdateSiteConnectionBandwidthSize { + this['bandwidth_size'] = bandwidthSize; + return this; + } + public set bandwidthSize(bandwidthSize: number | undefined) { + this['bandwidth_size'] = bandwidthSize; + } + public get bandwidthSize(): number | undefined { + return this['bandwidth_size']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteConnectionBandwidthSizeRequestBody.ts b/services/cc/v3/model/UpdateSiteConnectionBandwidthSizeRequestBody.ts new file mode 100644 index 000000000..57192eedb --- /dev/null +++ b/services/cc/v3/model/UpdateSiteConnectionBandwidthSizeRequestBody.ts @@ -0,0 +1,19 @@ +import { UpdateSiteConnectionBandwidthSize } from './UpdateSiteConnectionBandwidthSize'; + + +export class UpdateSiteConnectionBandwidthSizeRequestBody { + private 'site_connection'?: UpdateSiteConnectionBandwidthSize; + public constructor(siteConnection?: UpdateSiteConnectionBandwidthSize) { + this['site_connection'] = siteConnection; + } + public withSiteConnection(siteConnection: UpdateSiteConnectionBandwidthSize): UpdateSiteConnectionBandwidthSizeRequestBody { + this['site_connection'] = siteConnection; + return this; + } + public set siteConnection(siteConnection: UpdateSiteConnectionBandwidthSize | undefined) { + this['site_connection'] = siteConnection; + } + public get siteConnection(): UpdateSiteConnectionBandwidthSize | undefined { + return this['site_connection']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetwork.ts b/services/cc/v3/model/UpdateSiteNetwork.ts new file mode 100644 index 000000000..903db8953 --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetwork.ts @@ -0,0 +1,25 @@ +import { Description } from './Description'; +import { NonRequiredName } from './NonRequiredName'; +import { Tag } from './Tag'; +import { Tags } from './Tags'; + + +export class UpdateSiteNetwork { + public name?: string; + public description?: string; + public tags?: Array; + public constructor() { + } + public withName(name: string): UpdateSiteNetwork { + this['name'] = name; + return this; + } + public withDescription(description: string): UpdateSiteNetwork { + this['description'] = description; + return this; + } + public withTags(tags: Array): UpdateSiteNetwork { + this['tags'] = tags; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetworkBandwidthRequest.ts b/services/cc/v3/model/UpdateSiteNetworkBandwidthRequest.ts new file mode 100644 index 000000000..1873686ca --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetworkBandwidthRequest.ts @@ -0,0 +1,36 @@ +import { AssociateSiteConnectionBandwidthRequestBody } from './AssociateSiteConnectionBandwidthRequestBody'; + + +export class UpdateSiteNetworkBandwidthRequest { + private 'site_network_id'?: string; + private 'site_connection_id'?: string; + public body?: AssociateSiteConnectionBandwidthRequestBody; + public constructor(siteNetworkId?: string, siteConnectionId?: string) { + this['site_network_id'] = siteNetworkId; + this['site_connection_id'] = siteConnectionId; + } + public withSiteNetworkId(siteNetworkId: string): UpdateSiteNetworkBandwidthRequest { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } + public withSiteConnectionId(siteConnectionId: string): UpdateSiteNetworkBandwidthRequest { + this['site_connection_id'] = siteConnectionId; + return this; + } + public set siteConnectionId(siteConnectionId: string | undefined) { + this['site_connection_id'] = siteConnectionId; + } + public get siteConnectionId(): string | undefined { + return this['site_connection_id']; + } + public withBody(body: AssociateSiteConnectionBandwidthRequestBody): UpdateSiteNetworkBandwidthRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetworkBandwidthResponse.ts b/services/cc/v3/model/UpdateSiteNetworkBandwidthResponse.ts new file mode 100644 index 000000000..2b7071d25 --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetworkBandwidthResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteConnection } from './SiteConnection'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateSiteNetworkBandwidthResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_connection'?: SiteConnection; + public constructor(requestId?: string, siteConnection?: SiteConnection) { + super(); + this['request_id'] = requestId; + this['site_connection'] = siteConnection; + } + public withRequestId(requestId: string): UpdateSiteNetworkBandwidthResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteConnection(siteConnection: SiteConnection): UpdateSiteNetworkBandwidthResponse { + this['site_connection'] = siteConnection; + return this; + } + public set siteConnection(siteConnection: SiteConnection | undefined) { + this['site_connection'] = siteConnection; + } + public get siteConnection(): SiteConnection | undefined { + return this['site_connection']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetworkBandwidthSizeRequest.ts b/services/cc/v3/model/UpdateSiteNetworkBandwidthSizeRequest.ts new file mode 100644 index 000000000..25513f9a0 --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetworkBandwidthSizeRequest.ts @@ -0,0 +1,36 @@ +import { UpdateSiteConnectionBandwidthSizeRequestBody } from './UpdateSiteConnectionBandwidthSizeRequestBody'; + + +export class UpdateSiteNetworkBandwidthSizeRequest { + private 'site_network_id'?: string; + private 'site_connection_id'?: string; + public body?: UpdateSiteConnectionBandwidthSizeRequestBody; + public constructor(siteNetworkId?: string, siteConnectionId?: string) { + this['site_network_id'] = siteNetworkId; + this['site_connection_id'] = siteConnectionId; + } + public withSiteNetworkId(siteNetworkId: string): UpdateSiteNetworkBandwidthSizeRequest { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } + public withSiteConnectionId(siteConnectionId: string): UpdateSiteNetworkBandwidthSizeRequest { + this['site_connection_id'] = siteConnectionId; + return this; + } + public set siteConnectionId(siteConnectionId: string | undefined) { + this['site_connection_id'] = siteConnectionId; + } + public get siteConnectionId(): string | undefined { + return this['site_connection_id']; + } + public withBody(body: UpdateSiteConnectionBandwidthSizeRequestBody): UpdateSiteNetworkBandwidthSizeRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetworkBandwidthSizeResponse.ts b/services/cc/v3/model/UpdateSiteNetworkBandwidthSizeResponse.ts new file mode 100644 index 000000000..1ba57bd1d --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetworkBandwidthSizeResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteConnection } from './SiteConnection'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateSiteNetworkBandwidthSizeResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_connection'?: SiteConnection; + public constructor(requestId?: string, siteConnection?: SiteConnection) { + super(); + this['request_id'] = requestId; + this['site_connection'] = siteConnection; + } + public withRequestId(requestId: string): UpdateSiteNetworkBandwidthSizeResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteConnection(siteConnection: SiteConnection): UpdateSiteNetworkBandwidthSizeResponse { + this['site_connection'] = siteConnection; + return this; + } + public set siteConnection(siteConnection: SiteConnection | undefined) { + this['site_connection'] = siteConnection; + } + public get siteConnection(): SiteConnection | undefined { + return this['site_connection']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetworkRequest.ts b/services/cc/v3/model/UpdateSiteNetworkRequest.ts new file mode 100644 index 000000000..b5a3fa331 --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetworkRequest.ts @@ -0,0 +1,24 @@ +import { UpdateSiteNetworkRequestBody } from './UpdateSiteNetworkRequestBody'; + + +export class UpdateSiteNetworkRequest { + private 'site_network_id'?: string; + public body?: UpdateSiteNetworkRequestBody; + public constructor(siteNetworkId?: string) { + this['site_network_id'] = siteNetworkId; + } + public withSiteNetworkId(siteNetworkId: string): UpdateSiteNetworkRequest { + this['site_network_id'] = siteNetworkId; + return this; + } + public set siteNetworkId(siteNetworkId: string | undefined) { + this['site_network_id'] = siteNetworkId; + } + public get siteNetworkId(): string | undefined { + return this['site_network_id']; + } + public withBody(body: UpdateSiteNetworkRequestBody): UpdateSiteNetworkRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetworkRequestBody.ts b/services/cc/v3/model/UpdateSiteNetworkRequestBody.ts new file mode 100644 index 000000000..af58cf3f3 --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetworkRequestBody.ts @@ -0,0 +1,19 @@ +import { UpdateSiteNetwork } from './UpdateSiteNetwork'; + + +export class UpdateSiteNetworkRequestBody { + private 'site_network'?: UpdateSiteNetwork; + public constructor(siteNetwork?: UpdateSiteNetwork) { + this['site_network'] = siteNetwork; + } + public withSiteNetwork(siteNetwork: UpdateSiteNetwork): UpdateSiteNetworkRequestBody { + this['site_network'] = siteNetwork; + return this; + } + public set siteNetwork(siteNetwork: UpdateSiteNetwork | undefined) { + this['site_network'] = siteNetwork; + } + public get siteNetwork(): UpdateSiteNetwork | undefined { + return this['site_network']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateSiteNetworkResponse.ts b/services/cc/v3/model/UpdateSiteNetworkResponse.ts new file mode 100644 index 000000000..3ff38e181 --- /dev/null +++ b/services/cc/v3/model/UpdateSiteNetworkResponse.ts @@ -0,0 +1,34 @@ +import { RequestId } from './RequestId'; +import { SiteNetworkEntry } from './SiteNetworkEntry'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateSiteNetworkResponse extends SdkResponse { + private 'request_id'?: string; + private 'site_network'?: SiteNetworkEntry; + public constructor(requestId?: string, siteNetwork?: SiteNetworkEntry) { + super(); + this['request_id'] = requestId; + this['site_network'] = siteNetwork; + } + public withRequestId(requestId: string): UpdateSiteNetworkResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } + public withSiteNetwork(siteNetwork: SiteNetworkEntry): UpdateSiteNetworkResponse { + this['site_network'] = siteNetwork; + return this; + } + public set siteNetwork(siteNetwork: SiteNetworkEntry | undefined) { + this['site_network'] = siteNetwork; + } + public get siteNetwork(): SiteNetworkEntry | undefined { + return this['site_network']; + } +} \ No newline at end of file diff --git a/services/cc/v3/public-api.ts b/services/cc/v3/public-api.ts index 95f69bf77..1e7fdab30 100644 --- a/services/cc/v3/public-api.ts +++ b/services/cc/v3/public-api.ts @@ -3,6 +3,7 @@ export * from './GlobalCredentials'; export * from './model/ApplyCentralNetworkPolicyRequest'; export * from './model/ApplyCentralNetworkPolicyResponse'; +export * from './model/ApplyPolicyId'; export * from './model/ApprovedStateEnum'; export * from './model/AreaIdDef'; export * from './model/Asn'; @@ -17,6 +18,10 @@ export * from './model/AssociateGlobalConnectionBandwidthInstanceRequestBody'; export * from './model/AssociateGlobalConnectionBandwidthInstanceRequestInfo'; export * from './model/AssociateGlobalConnectionBandwidthInstanceResponse'; export * from './model/AssociateGlobalConnectionBandwidthInstanceResponseInfo'; +export * from './model/AssociateSiteConnectionBandwidth'; +export * from './model/AssociateSiteConnectionBandwidthRequestBody'; +export * from './model/AssociateSiteNetworkBandwidthRequest'; +export * from './model/AssociateSiteNetworkBandwidthResponse'; export * from './model/AttachedEnterpriseRouterAttachmentId'; export * from './model/AttachedEnterpriseRouterId'; export * from './model/AttachedEnterpriseRouterProjectId'; @@ -36,6 +41,10 @@ export * from './model/AutoAssociateRouteEnabled'; export * from './model/AutoPropagateRouteEnabled'; export * from './model/BandwidthPackage'; export * from './model/BandwidthPackageId'; +export * from './model/BandwidthPackageLevel'; +export * from './model/BandwidthPackageLine'; +export * from './model/BandwidthPackageLineSpecCode'; +export * from './model/BandwidthPackageSite'; export * from './model/BandwidthSize'; export * from './model/BandwidthSizeDefine'; export * from './model/BandwidthType'; @@ -78,6 +87,8 @@ export * from './model/CloudConnection'; export * from './model/CloudConnectionId'; export * from './model/CloudConnectionQuota'; export * from './model/CloudConnectionRoute'; +export * from './model/ConnectionBandwidthChargeModeEnum'; +export * from './model/ConnectionBandwidthSizeRange'; export * from './model/ConnectionPoint'; export * from './model/ConnectionPointInstanceId'; export * from './model/ConnectionPointPair'; @@ -130,7 +141,15 @@ export * from './model/CreateNetworkInstance'; export * from './model/CreateNetworkInstanceRequest'; export * from './model/CreateNetworkInstanceRequestBody'; export * from './model/CreateNetworkInstanceResponse'; +export * from './model/CreateP2PSiteNetwork'; +export * from './model/CreateP2PSiteNetworkRequest'; +export * from './model/CreateP2PSiteNetworkRequestBody'; +export * from './model/CreateP2PSiteNetworkResponse'; +export * from './model/CreateSiteInformation'; +export * from './model/CreateSiteInformationPair'; export * from './model/CreatedAt'; +export * from './model/CrossRegionType'; +export * from './model/CrossRegionTypeEnum'; export * from './model/DeleteAuthorisationRequest'; export * from './model/DeleteAuthorisationResponse'; export * from './model/DeleteBandwidthPackageRequest'; @@ -151,7 +170,11 @@ export * from './model/DeleteInterRegionBandwidthRequest'; export * from './model/DeleteInterRegionBandwidthResponse'; export * from './model/DeleteNetworkInstanceRequest'; export * from './model/DeleteNetworkInstanceResponse'; +export * from './model/DeleteSiteNetworkRequest'; +export * from './model/DeleteSiteNetworkResponse'; export * from './model/Description'; +export * from './model/DirectedEdge'; +export * from './model/DirectedEdgePair'; export * from './model/DisassociateBandwidthPackage'; export * from './model/DisassociateBandwidthPackageRequest'; export * from './model/DisassociateBandwidthPackageRequestBody'; @@ -161,6 +184,8 @@ export * from './model/DisassociateGlobalConnectionBandwidthInstanceRequestBody' export * from './model/DisassociateGlobalConnectionBandwidthInstanceRequestInfo'; export * from './model/DisassociateGlobalConnectionBandwidthInstanceResponse'; export * from './model/DisassociateGlobalConnectionBandwidthInstanceResponseInfo'; +export * from './model/DisassociateSiteNetworkBandwidthRequest'; +export * from './model/DisassociateSiteNetworkBandwidthResponse'; export * from './model/DocumentTemplateVersion'; export * from './model/DocumentTemplateVersionEnum'; export * from './model/DomainId'; @@ -172,6 +197,11 @@ export * from './model/EnterpriseRouterProjectId'; export * from './model/EnterpriseRouterRegionId'; export * from './model/EnterpriseRouterSiteCode'; export * from './model/EnterpriseRouterTableId'; +export * from './model/FrozenEffect'; +export * from './model/FrozenEffectEnum'; +export * from './model/GatewayId'; +export * from './model/GatewayType'; +export * from './model/GatewayTypeEnum'; export * from './model/GcbAdminState'; export * from './model/GcbBindingServiceAll'; export * from './model/GcbBorderCross'; @@ -212,6 +242,12 @@ export * from './model/InterRegionBandwidth'; export * from './model/IsFrozen'; export * from './model/ListAuthorisationsRequest'; export * from './model/ListAuthorisationsResponse'; +export * from './model/ListBandwidthPackageLevelsRequest'; +export * from './model/ListBandwidthPackageLevelsResponse'; +export * from './model/ListBandwidthPackageLinesRequest'; +export * from './model/ListBandwidthPackageLinesResponse'; +export * from './model/ListBandwidthPackageSitesRequest'; +export * from './model/ListBandwidthPackageSitesResponse'; export * from './model/ListBandwidthPackageTagsRequest'; export * from './model/ListBandwidthPackageTagsResponse'; export * from './model/ListBandwidthPackagesByTagsRequest'; @@ -277,6 +313,12 @@ export * from './model/ListNetworkInstancesResponse'; export * from './model/ListPermissionsRequest'; export * from './model/ListPermissionsResponse'; export * from './model/ListResponseBody'; +export * from './model/ListSiteNetworkCapabilitiesRequest'; +export * from './model/ListSiteNetworkCapabilitiesResponse'; +export * from './model/ListSiteNetworkQuotasRequest'; +export * from './model/ListSiteNetworkQuotasResponse'; +export * from './model/ListSiteNetworksRequest'; +export * from './model/ListSiteNetworksResponse'; export * from './model/ListSupportBindingConnectionBandwidthsRequest'; export * from './model/ListSupportBindingConnectionBandwidthsResponse'; export * from './model/LocalAreaId'; @@ -329,9 +371,26 @@ export * from './model/ShowInterRegionBandwidthRequest'; export * from './model/ShowInterRegionBandwidthResponse'; export * from './model/ShowNetworkInstanceRequest'; export * from './model/ShowNetworkInstanceResponse'; +export * from './model/ShowSiteNetworkRequest'; +export * from './model/ShowSiteNetworkResponse'; export * from './model/SiteCode'; export * from './model/SiteCodeDef'; +export * from './model/SiteConnection'; +export * from './model/SiteConnectionState'; +export * from './model/SiteConnectionStateEnum'; export * from './model/SiteGroupReferenceInfo'; +export * from './model/SiteInformation'; +export * from './model/SiteNetworkCapabilityEntry'; +export * from './model/SiteNetworkEntry'; +export * from './model/SiteNetworkId'; +export * from './model/SiteNetworkQuota'; +export * from './model/SiteNetworkQuotaKey'; +export * from './model/SiteNetworkQuotaKeyEnum'; +export * from './model/SiteNetworkSpecificationEnum'; +export * from './model/SiteNetworkState'; +export * from './model/SiteNetworkStateEnum'; +export * from './model/SiteNetworkTopology'; +export * from './model/SiteNetworkTopologyEnum'; export * from './model/SortDir'; export * from './model/SpecCode'; export * from './model/Tag'; @@ -403,6 +462,16 @@ export * from './model/UpdateNetworkInstance'; export * from './model/UpdateNetworkInstanceRequest'; export * from './model/UpdateNetworkInstanceRequestBody'; export * from './model/UpdateNetworkInstanceResponse'; +export * from './model/UpdateSiteConnectionBandwidthSize'; +export * from './model/UpdateSiteConnectionBandwidthSizeRequestBody'; +export * from './model/UpdateSiteNetwork'; +export * from './model/UpdateSiteNetworkBandwidthRequest'; +export * from './model/UpdateSiteNetworkBandwidthResponse'; +export * from './model/UpdateSiteNetworkBandwidthSizeRequest'; +export * from './model/UpdateSiteNetworkBandwidthSizeResponse'; +export * from './model/UpdateSiteNetworkRequest'; +export * from './model/UpdateSiteNetworkRequestBody'; +export * from './model/UpdateSiteNetworkResponse'; export * from './model/UpdatedAt'; export * from './model/Version'; export * from './model/VersionDef'; diff --git a/services/ga/v1/GaClient.ts b/services/ga/v1/GaClient.ts index b8bddfdb9..ff020aee1 100644 --- a/services/ga/v1/GaClient.ts +++ b/services/ga/v1/GaClient.ts @@ -41,6 +41,10 @@ import { CreateListenerOption } from './model/CreateListenerOption'; import { CreateListenerRequest } from './model/CreateListenerRequest'; import { CreateListenerRequestBody } from './model/CreateListenerRequestBody'; import { CreateListenerResponse } from './model/CreateListenerResponse'; +import { CreateLogtankOption } from './model/CreateLogtankOption'; +import { CreateLogtankRequest } from './model/CreateLogtankRequest'; +import { CreateLogtankRequestBody } from './model/CreateLogtankRequestBody'; +import { CreateLogtankResponse } from './model/CreateLogtankResponse'; import { CreateTagsRequest } from './model/CreateTagsRequest'; import { CreateTagsRequestBody } from './model/CreateTagsRequestBody'; import { CreateTagsResponse } from './model/CreateTagsResponse'; @@ -56,6 +60,8 @@ import { DeleteIpGroupRequest } from './model/DeleteIpGroupRequest'; import { DeleteIpGroupResponse } from './model/DeleteIpGroupResponse'; import { DeleteListenerRequest } from './model/DeleteListenerRequest'; import { DeleteListenerResponse } from './model/DeleteListenerResponse'; +import { DeleteLogtankRequest } from './model/DeleteLogtankRequest'; +import { DeleteLogtankResponse } from './model/DeleteLogtankResponse'; import { DeleteTagsRequest } from './model/DeleteTagsRequest'; import { DeleteTagsRequestBody } from './model/DeleteTagsRequestBody'; import { DeleteTagsResponse } from './model/DeleteTagsResponse'; @@ -84,6 +90,8 @@ import { ListIpGroupsRequest } from './model/ListIpGroupsRequest'; import { ListIpGroupsResponse } from './model/ListIpGroupsResponse'; import { ListListenersRequest } from './model/ListListenersRequest'; import { ListListenersResponse } from './model/ListListenersResponse'; +import { ListLogtanksRequest } from './model/ListLogtanksRequest'; +import { ListLogtanksResponse } from './model/ListLogtanksResponse'; import { ListRegionsRequest } from './model/ListRegionsRequest'; import { ListRegionsResponse } from './model/ListRegionsResponse'; import { ListResourcesByTagRequest } from './model/ListResourcesByTagRequest'; @@ -95,6 +103,8 @@ import { ListenerAccessControlPolicy } from './model/ListenerAccessControlPolicy import { ListenerAccessControlType } from './model/ListenerAccessControlType'; import { ListenerDetail } from './model/ListenerDetail'; import { ListenerProtocol } from './model/ListenerProtocol'; +import { LogtankDetail } from './model/LogtankDetail'; +import { LogtankResourceType } from './model/LogtankResourceType'; import { Match } from './model/Match'; import { PageInfo } from './model/PageInfo'; import { PortRange } from './model/PortRange'; @@ -117,6 +127,8 @@ import { ShowIpGroupRequest } from './model/ShowIpGroupRequest'; import { ShowIpGroupResponse } from './model/ShowIpGroupResponse'; import { ShowListenerRequest } from './model/ShowListenerRequest'; import { ShowListenerResponse } from './model/ShowListenerResponse'; +import { ShowLogtankRequest } from './model/ShowLogtankRequest'; +import { ShowLogtankResponse } from './model/ShowLogtankResponse'; import { ShowResourceTagsRequest } from './model/ShowResourceTagsRequest'; import { ShowResourceTagsResponse } from './model/ShowResourceTagsResponse'; import { Tag } from './model/Tag'; @@ -145,6 +157,10 @@ import { UpdateListenerOption } from './model/UpdateListenerOption'; import { UpdateListenerRequest } from './model/UpdateListenerRequest'; import { UpdateListenerRequestBody } from './model/UpdateListenerRequestBody'; import { UpdateListenerResponse } from './model/UpdateListenerResponse'; +import { UpdateLogtankOption } from './model/UpdateLogtankOption'; +import { UpdateLogtankRequest } from './model/UpdateLogtankRequest'; +import { UpdateLogtankRequestBody } from './model/UpdateLogtankRequestBody'; +import { UpdateLogtankResponse } from './model/UpdateLogtankResponse'; export class GaClient { public static newBuilder(): ClientBuilder { @@ -857,6 +873,107 @@ export class GaClient { return this.hcClient.sendRequest(options); } + /** + * 创建云日志。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 创建云日志 + * @param {CreateLogtankRequestBody} createLogtankRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createLogtank(createLogtankRequest?: CreateLogtankRequest): Promise { + const options = ParamCreater().createLogtank(createLogtankRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 删除云日志。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除云日志 + * @param {string} logtankId 云日志ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteLogtank(deleteLogtankRequest?: DeleteLogtankRequest): Promise { + const options = ParamCreater().deleteLogtank(deleteLogtankRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询云日志列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询云日志列表 + * @param {number} [limit] 分页查询每页的资源个数。如果不设置,则默认为500。 + * @param {string} [marker] 分页查询的起始的资源ID,表示上一页最后一条查询资源记录的ID。不指定时表示查询第一页。 必须与limit一起使用。 + * @param {string} [id] 资源ID。 + * @param {'ACTIVE' | 'PENDING' | 'ERROR' | 'DELETING'} [status] 配置状态,可选范围: - ACTIVE:运行中 - PENDING:待定 - ERROR:错误 - DELETING:正在删除 + * @param {Array} [resourceIds] 资源ID列表。 + * @param {'LISTENER'} [resourceType] 关联云日志的资源类型。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listLogtanks(listLogtanksRequest?: ListLogtanksRequest): Promise { + const options = ParamCreater().listLogtanks(listLogtanksRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询云日志详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询云日志详情 + * @param {string} logtankId 云日志ID。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showLogtank(showLogtankRequest?: ShowLogtankRequest): Promise { + const options = ParamCreater().showLogtank(showLogtankRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 更新云日志。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 更新云日志 + * @param {string} logtankId 云日志ID。 + * @param {UpdateLogtankRequestBody} updateLogtankRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateLogtank(updateLogtankRequest?: UpdateLogtankRequest): Promise { + const options = ParamCreater().updateLogtank(updateLogtankRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 查询区域列表。 * @@ -2604,6 +2721,236 @@ export const ParamCreater = function () { return options; }, + /** + * 创建云日志。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + createLogtank(createLogtankRequest?: CreateLogtankRequest) { + const options = { + method: "POST", + url: "/v1/logtanks", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (createLogtankRequest !== null && createLogtankRequest !== undefined) { + if (createLogtankRequest instanceof CreateLogtankRequest) { + body = createLogtankRequest.body + } else { + body = createLogtankRequest['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'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除云日志。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteLogtank(deleteLogtankRequest?: DeleteLogtankRequest) { + const options = { + method: "DELETE", + url: "/v1/logtanks/{logtank_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let logtankId; + + if (deleteLogtankRequest !== null && deleteLogtankRequest !== undefined) { + if (deleteLogtankRequest instanceof DeleteLogtankRequest) { + logtankId = deleteLogtankRequest.logtankId; + } else { + logtankId = deleteLogtankRequest['logtank_id']; + } + } + + + if (logtankId === null || logtankId === undefined) { + throw new RequiredError('logtankId','Required parameter logtankId was null or undefined when calling deleteLogtank.'); + } + + options.pathParams = { 'logtank_id': logtankId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询云日志列表。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listLogtanks(listLogtanksRequest?: ListLogtanksRequest) { + const options = { + method: "GET", + url: "/v1/logtanks", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let limit; + + let marker; + + let id; + + let status; + + let resourceIds; + + let resourceType; + + if (listLogtanksRequest !== null && listLogtanksRequest !== undefined) { + if (listLogtanksRequest instanceof ListLogtanksRequest) { + limit = listLogtanksRequest.limit; + marker = listLogtanksRequest.marker; + id = listLogtanksRequest.id; + status = listLogtanksRequest.status; + resourceIds = listLogtanksRequest.resourceIds; + resourceType = listLogtanksRequest.resourceType; + } else { + limit = listLogtanksRequest['limit']; + marker = listLogtanksRequest['marker']; + id = listLogtanksRequest['id']; + status = listLogtanksRequest['status']; + resourceIds = listLogtanksRequest['resource_ids']; + resourceType = listLogtanksRequest['resource_type']; + } + } + + + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (marker !== null && marker !== undefined) { + localVarQueryParameter['marker'] = marker; + } + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (resourceIds !== null && resourceIds !== undefined) { + localVarQueryParameter['resource_ids'] = resourceIds; + } + if (resourceType !== null && resourceType !== undefined) { + localVarQueryParameter['resource_type'] = resourceType; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询云日志详情。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + showLogtank(showLogtankRequest?: ShowLogtankRequest) { + const options = { + method: "GET", + url: "/v1/logtanks/{logtank_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let logtankId; + + if (showLogtankRequest !== null && showLogtankRequest !== undefined) { + if (showLogtankRequest instanceof ShowLogtankRequest) { + logtankId = showLogtankRequest.logtankId; + } else { + logtankId = showLogtankRequest['logtank_id']; + } + } + + + if (logtankId === null || logtankId === undefined) { + throw new RequiredError('logtankId','Required parameter logtankId was null or undefined when calling showLogtank.'); + } + + options.pathParams = { 'logtank_id': logtankId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 更新云日志。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateLogtank(updateLogtankRequest?: UpdateLogtankRequest) { + const options = { + method: "PUT", + url: "/v1/logtanks/{logtank_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let logtankId; + + if (updateLogtankRequest !== null && updateLogtankRequest !== undefined) { + if (updateLogtankRequest instanceof UpdateLogtankRequest) { + logtankId = updateLogtankRequest.logtankId; + body = updateLogtankRequest.body + } else { + logtankId = updateLogtankRequest['logtank_id']; + body = updateLogtankRequest['body']; + } + } + + + if (logtankId === null || logtankId === undefined) { + throw new RequiredError('logtankId','Required parameter logtankId was null or undefined when calling updateLogtank.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'logtank_id': logtankId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询区域列表。 * diff --git a/services/ga/v1/model/CreateLogtankOption.ts b/services/ga/v1/model/CreateLogtankOption.ts new file mode 100644 index 000000000..34845b070 --- /dev/null +++ b/services/ga/v1/model/CreateLogtankOption.ts @@ -0,0 +1,55 @@ +import { LogtankResourceType } from './LogtankResourceType'; + + +export class CreateLogtankOption { + private 'resource_type'?: LogtankResourceType; + private 'resource_id'?: string; + private 'log_group_id'?: string; + private 'log_stream_id'?: string; + public constructor(resourceType?: LogtankResourceType, resourceId?: string, logGroupId?: string, logStreamId?: string) { + this['resource_type'] = resourceType; + this['resource_id'] = resourceId; + this['log_group_id'] = logGroupId; + this['log_stream_id'] = logStreamId; + } + public withResourceType(resourceType: LogtankResourceType): CreateLogtankOption { + this['resource_type'] = resourceType; + return this; + } + public set resourceType(resourceType: LogtankResourceType | undefined) { + this['resource_type'] = resourceType; + } + public get resourceType(): LogtankResourceType | undefined { + return this['resource_type']; + } + public withResourceId(resourceId: string): CreateLogtankOption { + 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 withLogGroupId(logGroupId: string): CreateLogtankOption { + this['log_group_id'] = logGroupId; + return this; + } + public set logGroupId(logGroupId: string | undefined) { + this['log_group_id'] = logGroupId; + } + public get logGroupId(): string | undefined { + return this['log_group_id']; + } + public withLogStreamId(logStreamId: string): CreateLogtankOption { + this['log_stream_id'] = logStreamId; + return this; + } + public set logStreamId(logStreamId: string | undefined) { + this['log_stream_id'] = logStreamId; + } + public get logStreamId(): string | undefined { + return this['log_stream_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/CreateLogtankRequest.ts b/services/ga/v1/model/CreateLogtankRequest.ts new file mode 100644 index 000000000..556b8e7bf --- /dev/null +++ b/services/ga/v1/model/CreateLogtankRequest.ts @@ -0,0 +1,12 @@ +import { CreateLogtankRequestBody } from './CreateLogtankRequestBody'; + + +export class CreateLogtankRequest { + public body?: CreateLogtankRequestBody; + public constructor() { + } + public withBody(body: CreateLogtankRequestBody): CreateLogtankRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/CreateLogtankRequestBody.ts b/services/ga/v1/model/CreateLogtankRequestBody.ts new file mode 100644 index 000000000..557f6293f --- /dev/null +++ b/services/ga/v1/model/CreateLogtankRequestBody.ts @@ -0,0 +1,13 @@ +import { CreateLogtankOption } from './CreateLogtankOption'; + + +export class CreateLogtankRequestBody { + public logtank?: CreateLogtankOption; + public constructor(logtank?: CreateLogtankOption) { + this['logtank'] = logtank; + } + public withLogtank(logtank: CreateLogtankOption): CreateLogtankRequestBody { + this['logtank'] = logtank; + return this; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/CreateLogtankResponse.ts b/services/ga/v1/model/CreateLogtankResponse.ts new file mode 100644 index 000000000..c16dfe99d --- /dev/null +++ b/services/ga/v1/model/CreateLogtankResponse.ts @@ -0,0 +1,25 @@ +import { LogtankDetail } from './LogtankDetail'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateLogtankResponse extends SdkResponse { + public logtank?: LogtankDetail; + private 'request_id'?: string; + public constructor() { + super(); + } + public withLogtank(logtank: LogtankDetail): CreateLogtankResponse { + this['logtank'] = logtank; + return this; + } + public withRequestId(requestId: string): CreateLogtankResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/DeleteLogtankRequest.ts b/services/ga/v1/model/DeleteLogtankRequest.ts new file mode 100644 index 000000000..8882e9a1e --- /dev/null +++ b/services/ga/v1/model/DeleteLogtankRequest.ts @@ -0,0 +1,18 @@ + + +export class DeleteLogtankRequest { + private 'logtank_id'?: string; + public constructor(logtankId?: string) { + this['logtank_id'] = logtankId; + } + public withLogtankId(logtankId: string): DeleteLogtankRequest { + this['logtank_id'] = logtankId; + return this; + } + public set logtankId(logtankId: string | undefined) { + this['logtank_id'] = logtankId; + } + public get logtankId(): string | undefined { + return this['logtank_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/DeleteLogtankResponse.ts b/services/ga/v1/model/DeleteLogtankResponse.ts new file mode 100644 index 000000000..0c9ba88f8 --- /dev/null +++ b/services/ga/v1/model/DeleteLogtankResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteLogtankResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/ga/v1/model/ListLogtanksRequest.ts b/services/ga/v1/model/ListLogtanksRequest.ts new file mode 100644 index 000000000..12a4e007a --- /dev/null +++ b/services/ga/v1/model/ListLogtanksRequest.ts @@ -0,0 +1,66 @@ + + +export class ListLogtanksRequest { + public limit?: number; + public marker?: string; + public id?: string; + public status?: ListLogtanksRequestStatusEnum | string; + private 'resource_ids'?: Array; + private 'resource_type'?: ListLogtanksRequestResourceTypeEnum | string; + public constructor() { + } + public withLimit(limit: number): ListLogtanksRequest { + this['limit'] = limit; + return this; + } + public withMarker(marker: string): ListLogtanksRequest { + this['marker'] = marker; + return this; + } + public withId(id: string): ListLogtanksRequest { + this['id'] = id; + return this; + } + public withStatus(status: ListLogtanksRequestStatusEnum | string): ListLogtanksRequest { + this['status'] = status; + return this; + } + public withResourceIds(resourceIds: Array): ListLogtanksRequest { + this['resource_ids'] = resourceIds; + return this; + } + public set resourceIds(resourceIds: Array | undefined) { + this['resource_ids'] = resourceIds; + } + public get resourceIds(): Array | undefined { + return this['resource_ids']; + } + public withResourceType(resourceType: ListLogtanksRequestResourceTypeEnum | string): ListLogtanksRequest { + this['resource_type'] = resourceType; + return this; + } + public set resourceType(resourceType: ListLogtanksRequestResourceTypeEnum | string | undefined) { + this['resource_type'] = resourceType; + } + public get resourceType(): ListLogtanksRequestResourceTypeEnum | string | undefined { + return this['resource_type']; + } +} + +/** + * @export + * @enum {string} + */ +export enum ListLogtanksRequestStatusEnum { + ACTIVE = 'ACTIVE', + PENDING = 'PENDING', + ERROR = 'ERROR', + DELETING = 'DELETING' +} +/** + * @export + * @enum {string} + */ +export enum ListLogtanksRequestResourceTypeEnum { + LISTENER = 'LISTENER' +} diff --git a/services/ga/v1/model/ListLogtanksResponse.ts b/services/ga/v1/model/ListLogtanksResponse.ts new file mode 100644 index 000000000..1174d2223 --- /dev/null +++ b/services/ga/v1/model/ListLogtanksResponse.ts @@ -0,0 +1,37 @@ +import { LogtankDetail } from './LogtankDetail'; +import { PageInfo } from './PageInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListLogtanksResponse extends SdkResponse { + public logtanks?: Array; + private 'page_info'?: PageInfo; + private 'request_id'?: string; + public constructor() { + super(); + } + public withLogtanks(logtanks: Array): ListLogtanksResponse { + this['logtanks'] = logtanks; + return this; + } + public withPageInfo(pageInfo: PageInfo): ListLogtanksResponse { + this['page_info'] = pageInfo; + return this; + } + public set pageInfo(pageInfo: PageInfo | undefined) { + this['page_info'] = pageInfo; + } + public get pageInfo(): PageInfo | undefined { + return this['page_info']; + } + public withRequestId(requestId: string): ListLogtanksResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/LogtankDetail.ts b/services/ga/v1/model/LogtankDetail.ts new file mode 100644 index 000000000..5f27f4c37 --- /dev/null +++ b/services/ga/v1/model/LogtankDetail.ts @@ -0,0 +1,106 @@ +import { ConfigStatus } from './ConfigStatus'; +import { LogtankResourceType } from './LogtankResourceType'; + + +export class LogtankDetail { + public id?: string; + private 'domain_id'?: string; + private 'project_id'?: string; + private 'resource_type'?: LogtankResourceType; + private 'resource_id'?: string; + private 'log_group_id'?: string; + private 'log_stream_id'?: string; + public status?: ConfigStatus; + private 'created_at'?: Date; + private 'updated_at'?: string; + public constructor() { + } + public withId(id: string): LogtankDetail { + this['id'] = id; + return this; + } + public withDomainId(domainId: string): LogtankDetail { + this['domain_id'] = domainId; + return this; + } + public set domainId(domainId: string | undefined) { + this['domain_id'] = domainId; + } + public get domainId(): string | undefined { + return this['domain_id']; + } + public withProjectId(projectId: string): LogtankDetail { + 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 withResourceType(resourceType: LogtankResourceType): LogtankDetail { + this['resource_type'] = resourceType; + return this; + } + public set resourceType(resourceType: LogtankResourceType | undefined) { + this['resource_type'] = resourceType; + } + public get resourceType(): LogtankResourceType | undefined { + return this['resource_type']; + } + public withResourceId(resourceId: string): LogtankDetail { + 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 withLogGroupId(logGroupId: string): LogtankDetail { + this['log_group_id'] = logGroupId; + return this; + } + public set logGroupId(logGroupId: string | undefined) { + this['log_group_id'] = logGroupId; + } + public get logGroupId(): string | undefined { + return this['log_group_id']; + } + public withLogStreamId(logStreamId: string): LogtankDetail { + this['log_stream_id'] = logStreamId; + return this; + } + public set logStreamId(logStreamId: string | undefined) { + this['log_stream_id'] = logStreamId; + } + public get logStreamId(): string | undefined { + return this['log_stream_id']; + } + public withStatus(status: ConfigStatus): LogtankDetail { + this['status'] = status; + return this; + } + public withCreatedAt(createdAt: Date): LogtankDetail { + this['created_at'] = createdAt; + return this; + } + public set createdAt(createdAt: Date | undefined) { + this['created_at'] = createdAt; + } + public get createdAt(): Date | undefined { + return this['created_at']; + } + public withUpdatedAt(updatedAt: string): LogtankDetail { + this['updated_at'] = updatedAt; + return this; + } + public set updatedAt(updatedAt: string | undefined) { + this['updated_at'] = updatedAt; + } + public get updatedAt(): string | undefined { + return this['updated_at']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/LogtankResourceType.ts b/services/ga/v1/model/LogtankResourceType.ts new file mode 100644 index 000000000..0c0413f1a --- /dev/null +++ b/services/ga/v1/model/LogtankResourceType.ts @@ -0,0 +1,6 @@ + + +export class LogtankResourceType { + public constructor() { + } +} \ No newline at end of file diff --git a/services/ga/v1/model/ShowLogtankRequest.ts b/services/ga/v1/model/ShowLogtankRequest.ts new file mode 100644 index 000000000..a3a0cca62 --- /dev/null +++ b/services/ga/v1/model/ShowLogtankRequest.ts @@ -0,0 +1,18 @@ + + +export class ShowLogtankRequest { + private 'logtank_id'?: string; + public constructor(logtankId?: string) { + this['logtank_id'] = logtankId; + } + public withLogtankId(logtankId: string): ShowLogtankRequest { + this['logtank_id'] = logtankId; + return this; + } + public set logtankId(logtankId: string | undefined) { + this['logtank_id'] = logtankId; + } + public get logtankId(): string | undefined { + return this['logtank_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/ShowLogtankResponse.ts b/services/ga/v1/model/ShowLogtankResponse.ts new file mode 100644 index 000000000..18e96000b --- /dev/null +++ b/services/ga/v1/model/ShowLogtankResponse.ts @@ -0,0 +1,25 @@ +import { LogtankDetail } from './LogtankDetail'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowLogtankResponse extends SdkResponse { + public logtank?: LogtankDetail; + private 'request_id'?: string; + public constructor() { + super(); + } + public withLogtank(logtank: LogtankDetail): ShowLogtankResponse { + this['logtank'] = logtank; + return this; + } + public withRequestId(requestId: string): ShowLogtankResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/UpdateLogtankOption.ts b/services/ga/v1/model/UpdateLogtankOption.ts new file mode 100644 index 000000000..38229e576 --- /dev/null +++ b/services/ga/v1/model/UpdateLogtankOption.ts @@ -0,0 +1,30 @@ + + +export class UpdateLogtankOption { + private 'log_group_id'?: string; + private 'log_stream_id'?: string; + public constructor(logGroupId?: string, logStreamId?: string) { + this['log_group_id'] = logGroupId; + this['log_stream_id'] = logStreamId; + } + public withLogGroupId(logGroupId: string): UpdateLogtankOption { + this['log_group_id'] = logGroupId; + return this; + } + public set logGroupId(logGroupId: string | undefined) { + this['log_group_id'] = logGroupId; + } + public get logGroupId(): string | undefined { + return this['log_group_id']; + } + public withLogStreamId(logStreamId: string): UpdateLogtankOption { + this['log_stream_id'] = logStreamId; + return this; + } + public set logStreamId(logStreamId: string | undefined) { + this['log_stream_id'] = logStreamId; + } + public get logStreamId(): string | undefined { + return this['log_stream_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/UpdateLogtankRequest.ts b/services/ga/v1/model/UpdateLogtankRequest.ts new file mode 100644 index 000000000..9550c154c --- /dev/null +++ b/services/ga/v1/model/UpdateLogtankRequest.ts @@ -0,0 +1,24 @@ +import { UpdateLogtankRequestBody } from './UpdateLogtankRequestBody'; + + +export class UpdateLogtankRequest { + private 'logtank_id'?: string; + public body?: UpdateLogtankRequestBody; + public constructor(logtankId?: string) { + this['logtank_id'] = logtankId; + } + public withLogtankId(logtankId: string): UpdateLogtankRequest { + this['logtank_id'] = logtankId; + return this; + } + public set logtankId(logtankId: string | undefined) { + this['logtank_id'] = logtankId; + } + public get logtankId(): string | undefined { + return this['logtank_id']; + } + public withBody(body: UpdateLogtankRequestBody): UpdateLogtankRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/UpdateLogtankRequestBody.ts b/services/ga/v1/model/UpdateLogtankRequestBody.ts new file mode 100644 index 000000000..5febfb3f6 --- /dev/null +++ b/services/ga/v1/model/UpdateLogtankRequestBody.ts @@ -0,0 +1,13 @@ +import { UpdateLogtankOption } from './UpdateLogtankOption'; + + +export class UpdateLogtankRequestBody { + public logtank?: UpdateLogtankOption; + public constructor(logtank?: UpdateLogtankOption) { + this['logtank'] = logtank; + } + public withLogtank(logtank: UpdateLogtankOption): UpdateLogtankRequestBody { + this['logtank'] = logtank; + return this; + } +} \ No newline at end of file diff --git a/services/ga/v1/model/UpdateLogtankResponse.ts b/services/ga/v1/model/UpdateLogtankResponse.ts new file mode 100644 index 000000000..289014681 --- /dev/null +++ b/services/ga/v1/model/UpdateLogtankResponse.ts @@ -0,0 +1,25 @@ +import { LogtankDetail } from './LogtankDetail'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateLogtankResponse extends SdkResponse { + public logtank?: LogtankDetail; + private 'request_id'?: string; + public constructor() { + super(); + } + public withLogtank(logtank: LogtankDetail): UpdateLogtankResponse { + this['logtank'] = logtank; + return this; + } + public withRequestId(requestId: string): UpdateLogtankResponse { + this['request_id'] = requestId; + return this; + } + public set requestId(requestId: string | undefined) { + this['request_id'] = requestId; + } + public get requestId(): string | undefined { + return this['request_id']; + } +} \ No newline at end of file diff --git a/services/ga/v1/public-api.ts b/services/ga/v1/public-api.ts index 458233137..346809a83 100644 --- a/services/ga/v1/public-api.ts +++ b/services/ga/v1/public-api.ts @@ -39,6 +39,10 @@ export * from './model/CreateListenerOption'; export * from './model/CreateListenerRequest'; export * from './model/CreateListenerRequestBody'; export * from './model/CreateListenerResponse'; +export * from './model/CreateLogtankOption'; +export * from './model/CreateLogtankRequest'; +export * from './model/CreateLogtankRequestBody'; +export * from './model/CreateLogtankResponse'; export * from './model/CreateTagsRequest'; export * from './model/CreateTagsRequestBody'; export * from './model/CreateTagsResponse'; @@ -54,6 +58,8 @@ export * from './model/DeleteIpGroupRequest'; export * from './model/DeleteIpGroupResponse'; export * from './model/DeleteListenerRequest'; export * from './model/DeleteListenerResponse'; +export * from './model/DeleteLogtankRequest'; +export * from './model/DeleteLogtankResponse'; export * from './model/DeleteTagsRequest'; export * from './model/DeleteTagsRequestBody'; export * from './model/DeleteTagsResponse'; @@ -82,6 +88,8 @@ export * from './model/ListIpGroupsRequest'; export * from './model/ListIpGroupsResponse'; export * from './model/ListListenersRequest'; export * from './model/ListListenersResponse'; +export * from './model/ListLogtanksRequest'; +export * from './model/ListLogtanksResponse'; export * from './model/ListRegionsRequest'; export * from './model/ListRegionsResponse'; export * from './model/ListResourcesByTagRequest'; @@ -93,6 +101,8 @@ export * from './model/ListenerAccessControlPolicy'; export * from './model/ListenerAccessControlType'; export * from './model/ListenerDetail'; export * from './model/ListenerProtocol'; +export * from './model/LogtankDetail'; +export * from './model/LogtankResourceType'; export * from './model/Match'; export * from './model/PageInfo'; export * from './model/PortRange'; @@ -115,6 +125,8 @@ export * from './model/ShowIpGroupRequest'; export * from './model/ShowIpGroupResponse'; export * from './model/ShowListenerRequest'; export * from './model/ShowListenerResponse'; +export * from './model/ShowLogtankRequest'; +export * from './model/ShowLogtankResponse'; export * from './model/ShowResourceTagsRequest'; export * from './model/ShowResourceTagsResponse'; export * from './model/Tag'; @@ -143,4 +155,8 @@ export * from './model/UpdateListenerOption'; export * from './model/UpdateListenerRequest'; export * from './model/UpdateListenerRequestBody'; export * from './model/UpdateListenerResponse'; +export * from './model/UpdateLogtankOption'; +export * from './model/UpdateLogtankRequest'; +export * from './model/UpdateLogtankRequestBody'; +export * from './model/UpdateLogtankResponse'; export * from './GaRegion'; diff --git a/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts b/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts index 6be268539..7e4c3a127 100644 --- a/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts +++ b/services/gaussdbfornosql/v3/GaussDBforNoSQLClient.ts @@ -18,6 +18,9 @@ import { BatchTagActionRequest } from './model/BatchTagActionRequest'; import { BatchTagActionRequestBody } from './model/BatchTagActionRequestBody'; import { BatchTagActionResponse } from './model/BatchTagActionResponse'; import { BatchTagActionTagOption } from './model/BatchTagActionTagOption'; +import { BatchUpgradeDatabaseVersionRequest } from './model/BatchUpgradeDatabaseVersionRequest'; +import { BatchUpgradeDatabaseVersionRequestBody } from './model/BatchUpgradeDatabaseVersionRequestBody'; +import { BatchUpgradeDatabaseVersionResponse } from './model/BatchUpgradeDatabaseVersionResponse'; import { BigKeysInfoResponseBody } from './model/BigKeysInfoResponseBody'; import { CassandraSlowLogDetail } from './model/CassandraSlowLogDetail'; import { ChargeInfoOption } from './model/ChargeInfoOption'; @@ -359,6 +362,7 @@ import { UpdateSecurityGroupRequestBody } from './model/UpdateSecurityGroupReque import { UpdateSecurityGroupResponse } from './model/UpdateSecurityGroupResponse'; import { UpgradeDbVersionRequest } from './model/UpgradeDbVersionRequest'; import { UpgradeDbVersionResponse } from './model/UpgradeDbVersionResponse'; +import { UpgradeResult } from './model/UpgradeResult'; import { Volume } from './model/Volume'; export class GaussDBforNoSQLClient { @@ -416,6 +420,25 @@ export class GaussDBforNoSQLClient { return this.hcClient.sendRequest(options); } + /** + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 批量数据库补丁升级 + * @param {BatchUpgradeDatabaseVersionRequestBody} batchUpgradeDatabaseVersionRequestBody 请求体。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public batchUpgradeDatabaseVersion(batchUpgradeDatabaseVersionRequest?: BatchUpgradeDatabaseVersionRequest): Promise { + const options = ParamCreater().batchUpgradeDatabaseVersion(batchUpgradeDatabaseVersionRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 校验实例是否可以与指定实例建立/解除容灾关系。若接口返回成功,表示可以与指定实例建立/解除容灾关系。 * 该接口需要对建立/解除容灾关系的两个实例各调用一次,2次调用都响应成功才能进行容灾关系的搭建/解除。 @@ -2679,6 +2702,44 @@ export const ParamCreater = function () { return options; }, + /** + * 批量升级数据库补丁版本。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + batchUpgradeDatabaseVersion(batchUpgradeDatabaseVersionRequest?: BatchUpgradeDatabaseVersionRequest) { + const options = { + method: "POST", + url: "/v3/{project_id}/instances/db-upgrade", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (batchUpgradeDatabaseVersionRequest !== null && batchUpgradeDatabaseVersionRequest !== undefined) { + if (batchUpgradeDatabaseVersionRequest instanceof BatchUpgradeDatabaseVersionRequest) { + body = batchUpgradeDatabaseVersionRequest.body + } else { + body = batchUpgradeDatabaseVersionRequest['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'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 校验实例是否可以与指定实例建立/解除容灾关系。若接口返回成功,表示可以与指定实例建立/解除容灾关系。 * 该接口需要对建立/解除容灾关系的两个实例各调用一次,2次调用都响应成功才能进行容灾关系的搭建/解除。 diff --git a/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequest.ts b/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequest.ts new file mode 100644 index 000000000..7410312cb --- /dev/null +++ b/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequest.ts @@ -0,0 +1,12 @@ +import { BatchUpgradeDatabaseVersionRequestBody } from './BatchUpgradeDatabaseVersionRequestBody'; + + +export class BatchUpgradeDatabaseVersionRequest { + public body?: BatchUpgradeDatabaseVersionRequestBody; + public constructor() { + } + public withBody(body: BatchUpgradeDatabaseVersionRequestBody): BatchUpgradeDatabaseVersionRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts b/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts new file mode 100644 index 000000000..3e2c93b4e --- /dev/null +++ b/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionRequestBody.ts @@ -0,0 +1,18 @@ + + +export class BatchUpgradeDatabaseVersionRequestBody { + private 'instance_ids'?: Array; + public constructor(instanceIds?: Array) { + this['instance_ids'] = instanceIds; + } + public withInstanceIds(instanceIds: Array): BatchUpgradeDatabaseVersionRequestBody { + this['instance_ids'] = instanceIds; + return this; + } + public set instanceIds(instanceIds: Array | undefined) { + this['instance_ids'] = instanceIds; + } + public get instanceIds(): Array | undefined { + return this['instance_ids']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionResponse.ts b/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionResponse.ts new file mode 100644 index 000000000..743afc352 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/BatchUpgradeDatabaseVersionResponse.ts @@ -0,0 +1,20 @@ +import { UpgradeResult } from './UpgradeResult'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class BatchUpgradeDatabaseVersionResponse extends SdkResponse { + private 'upgrade_results'?: Array; + public constructor() { + super(); + } + public withUpgradeResults(upgradeResults: Array): BatchUpgradeDatabaseVersionResponse { + this['upgrade_results'] = upgradeResults; + return this; + } + public set upgradeResults(upgradeResults: Array | undefined) { + this['upgrade_results'] = upgradeResults; + } + public get upgradeResults(): Array | undefined { + return this['upgrade_results']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/model/UpgradeResult.ts b/services/gaussdbfornosql/v3/model/UpgradeResult.ts new file mode 100644 index 000000000..42b0f4a22 --- /dev/null +++ b/services/gaussdbfornosql/v3/model/UpgradeResult.ts @@ -0,0 +1,51 @@ + + +export class UpgradeResult { + private 'job_id'?: string; + private 'instance_id'?: string; + private 'error_code'?: string; + private 'error_message'?: string; + public constructor(instanceId?: string) { + this['instance_id'] = instanceId; + } + public withJobId(jobId: string): UpgradeResult { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withInstanceId(instanceId: string): UpgradeResult { + 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 withErrorCode(errorCode: string): UpgradeResult { + this['error_code'] = errorCode; + return this; + } + public set errorCode(errorCode: string | undefined) { + this['error_code'] = errorCode; + } + public get errorCode(): string | undefined { + return this['error_code']; + } + public withErrorMessage(errorMessage: string): UpgradeResult { + this['error_message'] = errorMessage; + return this; + } + public set errorMessage(errorMessage: string | undefined) { + this['error_message'] = errorMessage; + } + public get errorMessage(): string | undefined { + return this['error_message']; + } +} \ No newline at end of file diff --git a/services/gaussdbfornosql/v3/public-api.ts b/services/gaussdbfornosql/v3/public-api.ts index 470f7d29a..980bc7cbd 100644 --- a/services/gaussdbfornosql/v3/public-api.ts +++ b/services/gaussdbfornosql/v3/public-api.ts @@ -16,6 +16,9 @@ export * from './model/BatchTagActionRequest'; export * from './model/BatchTagActionRequestBody'; export * from './model/BatchTagActionResponse'; export * from './model/BatchTagActionTagOption'; +export * from './model/BatchUpgradeDatabaseVersionRequest'; +export * from './model/BatchUpgradeDatabaseVersionRequestBody'; +export * from './model/BatchUpgradeDatabaseVersionResponse'; export * from './model/BigKeysInfoResponseBody'; export * from './model/CassandraSlowLogDetail'; export * from './model/ChargeInfoOption'; @@ -357,5 +360,6 @@ export * from './model/UpdateSecurityGroupRequestBody'; export * from './model/UpdateSecurityGroupResponse'; export * from './model/UpgradeDbVersionRequest'; export * from './model/UpgradeDbVersionResponse'; +export * from './model/UpgradeResult'; export * from './model/Volume'; export * from './GaussDBforNoSQLRegion'; diff --git a/services/iamaccessanalyzer/v1/IAMAccessAnalyzerClient.ts b/services/iamaccessanalyzer/v1/IAMAccessAnalyzerClient.ts index 799b0b1eb..29ba8c1ec 100644 --- a/services/iamaccessanalyzer/v1/IAMAccessAnalyzerClient.ts +++ b/services/iamaccessanalyzer/v1/IAMAccessAnalyzerClient.ts @@ -104,8 +104,10 @@ import { TagValue } from './model/TagValue'; import { UntagResourceReqBody } from './model/UntagResourceReqBody'; import { UntagResourceRequest } from './model/UntagResourceRequest'; import { UntagResourceResponse } from './model/UntagResourceResponse'; +import { UnusedAction } from './model/UnusedAction'; import { UnusedIamUserAccessKeyDetails } from './model/UnusedIamUserAccessKeyDetails'; import { UnusedIamUserPasswordDetails } from './model/UnusedIamUserPasswordDetails'; +import { UnusedPermissionDetails } from './model/UnusedPermissionDetails'; import { UpdateArchiveRuleReqBody } from './model/UpdateArchiveRuleReqBody'; import { UpdateArchiveRuleRequest } from './model/UpdateArchiveRuleRequest'; import { UpdateArchiveRuleResponse } from './model/UpdateArchiveRuleResponse'; diff --git a/services/iamaccessanalyzer/v1/model/FindingDetails.ts b/services/iamaccessanalyzer/v1/model/FindingDetails.ts index c44219687..862edec0b 100644 --- a/services/iamaccessanalyzer/v1/model/FindingDetails.ts +++ b/services/iamaccessanalyzer/v1/model/FindingDetails.ts @@ -1,12 +1,14 @@ import { ExternalAccessDetails } from './ExternalAccessDetails'; import { UnusedIamUserAccessKeyDetails } from './UnusedIamUserAccessKeyDetails'; import { UnusedIamUserPasswordDetails } from './UnusedIamUserPasswordDetails'; +import { UnusedPermissionDetails } from './UnusedPermissionDetails'; export class FindingDetails { private 'external_access_details'?: ExternalAccessDetails; private 'unused_iam_user_access_key_details'?: UnusedIamUserAccessKeyDetails; private 'unused_iam_user_password_details'?: UnusedIamUserPasswordDetails; + private 'unused_permission_details'?: UnusedPermissionDetails; public constructor() { } public withExternalAccessDetails(externalAccessDetails: ExternalAccessDetails): FindingDetails { @@ -39,4 +41,14 @@ export class FindingDetails { public get unusedIamUserPasswordDetails(): UnusedIamUserPasswordDetails | undefined { return this['unused_iam_user_password_details']; } + public withUnusedPermissionDetails(unusedPermissionDetails: UnusedPermissionDetails): FindingDetails { + this['unused_permission_details'] = unusedPermissionDetails; + return this; + } + public set unusedPermissionDetails(unusedPermissionDetails: UnusedPermissionDetails | undefined) { + this['unused_permission_details'] = unusedPermissionDetails; + } + public get unusedPermissionDetails(): UnusedPermissionDetails | undefined { + return this['unused_permission_details']; + } } \ No newline at end of file diff --git a/services/iamaccessanalyzer/v1/model/UnusedAction.ts b/services/iamaccessanalyzer/v1/model/UnusedAction.ts new file mode 100644 index 000000000..2c1175175 --- /dev/null +++ b/services/iamaccessanalyzer/v1/model/UnusedAction.ts @@ -0,0 +1,12 @@ + + +export class UnusedAction { + public action?: string; + public constructor(action?: string) { + this['action'] = action; + } + public withAction(action: string): UnusedAction { + this['action'] = action; + return this; + } +} \ No newline at end of file diff --git a/services/iamaccessanalyzer/v1/model/UnusedPermissionDetails.ts b/services/iamaccessanalyzer/v1/model/UnusedPermissionDetails.ts new file mode 100644 index 000000000..18b4bc38a --- /dev/null +++ b/services/iamaccessanalyzer/v1/model/UnusedPermissionDetails.ts @@ -0,0 +1,19 @@ +import { UnusedAction } from './UnusedAction'; + + +export class UnusedPermissionDetails { + public service?: string; + public actions?: Array; + public constructor(service?: string, actions?: Array) { + this['service'] = service; + this['actions'] = actions; + } + public withService(service: string): UnusedPermissionDetails { + this['service'] = service; + return this; + } + public withActions(actions: Array): UnusedPermissionDetails { + this['actions'] = actions; + return this; + } +} \ No newline at end of file diff --git a/services/iamaccessanalyzer/v1/public-api.ts b/services/iamaccessanalyzer/v1/public-api.ts index 4915a5f46..2cf98a9ea 100644 --- a/services/iamaccessanalyzer/v1/public-api.ts +++ b/services/iamaccessanalyzer/v1/public-api.ts @@ -102,8 +102,10 @@ export * from './model/TagValue'; export * from './model/UntagResourceReqBody'; export * from './model/UntagResourceRequest'; export * from './model/UntagResourceResponse'; +export * from './model/UnusedAction'; export * from './model/UnusedIamUserAccessKeyDetails'; export * from './model/UnusedIamUserPasswordDetails'; +export * from './model/UnusedPermissionDetails'; export * from './model/UpdateArchiveRuleReqBody'; export * from './model/UpdateArchiveRuleRequest'; export * from './model/UpdateArchiveRuleResponse'; diff --git a/services/iotda/v5/IoTDAClient.ts b/services/iotda/v5/IoTDAClient.ts index e9bf957a0..492c8bd0e 100644 --- a/services/iotda/v5/IoTDAClient.ts +++ b/services/iotda/v5/IoTDAClient.ts @@ -23,6 +23,8 @@ import { AddDeviceProxy } from './model/AddDeviceProxy'; import { AddDeviceRequest } from './model/AddDeviceRequest'; import { AddDeviceResponse } from './model/AddDeviceResponse'; import { AddFlowControlPolicy } from './model/AddFlowControlPolicy'; +import { AddFunctionsRequest } from './model/AddFunctionsRequest'; +import { AddFunctionsResponse } from './model/AddFunctionsResponse'; import { AddProduct } from './model/AddProduct'; import { AddQueueRequest } from './model/AddQueueRequest'; import { AddQueueResponse } from './model/AddQueueResponse'; @@ -33,6 +35,7 @@ import { AddTunnelResponse } from './model/AddTunnelResponse'; import { AmqpForwarding } from './model/AmqpForwarding'; import { ApplicationDTO } from './model/ApplicationDTO'; import { AsyncDeviceCommandRequest } from './model/AsyncDeviceCommandRequest'; +import { AsyncDeviceListCommand } from './model/AsyncDeviceListCommand'; import { AuthInfo } from './model/AuthInfo'; import { AuthInfoRes } from './model/AuthInfoRes'; import { AuthInfoWithoutSecret } from './model/AuthInfoWithoutSecret'; @@ -62,6 +65,8 @@ import { Cmd } from './model/Cmd'; import { ColumnMapping } from './model/ColumnMapping'; import { ConditionGroup } from './model/ConditionGroup'; import { ConnectState } from './model/ConnectState'; +import { CountAsyncHistoryCommandsRequest } from './model/CountAsyncHistoryCommandsRequest'; +import { CountAsyncHistoryCommandsResponse } from './model/CountAsyncHistoryCommandsResponse'; import { CreateAccessCodeRequest } from './model/CreateAccessCodeRequest'; import { CreateAccessCodeRequestBody } from './model/CreateAccessCodeRequestBody'; import { CreateAccessCodeResponse } from './model/CreateAccessCodeResponse'; @@ -126,6 +131,8 @@ import { DeleteDeviceRequest } from './model/DeleteDeviceRequest'; import { DeleteDeviceResponse } from './model/DeleteDeviceResponse'; import { DeleteDeviceTunnelRequest } from './model/DeleteDeviceTunnelRequest'; import { DeleteDeviceTunnelResponse } from './model/DeleteDeviceTunnelResponse'; +import { DeleteFunctionsRequest } from './model/DeleteFunctionsRequest'; +import { DeleteFunctionsResponse } from './model/DeleteFunctionsResponse'; import { DeleteOtaPackageRequest } from './model/DeleteOtaPackageRequest'; import { DeleteOtaPackageResponse } from './model/DeleteOtaPackageResponse'; import { DeleteProductRequest } from './model/DeleteProductRequest'; @@ -169,10 +176,17 @@ import { FileLocation } from './model/FileLocation'; import { FlowControlPolicyInfo } from './model/FlowControlPolicyInfo'; import { FreezeDeviceRequest } from './model/FreezeDeviceRequest'; import { FreezeDeviceResponse } from './model/FreezeDeviceResponse'; +import { FunctionDTO } from './model/FunctionDTO'; import { FunctionGraphForwarding } from './model/FunctionGraphForwarding'; +import { FunctionRequestDTO } from './model/FunctionRequestDTO'; +import { HistoryCommandPage } from './model/HistoryCommandPage'; import { HttpForwarding } from './model/HttpForwarding'; import { InfluxDBForwarding } from './model/InfluxDBForwarding'; import { InitialDesired } from './model/InitialDesired'; +import { ListAsyncCommandsRequest } from './model/ListAsyncCommandsRequest'; +import { ListAsyncCommandsResponse } from './model/ListAsyncCommandsResponse'; +import { ListAsyncHistoryCommandsRequest } from './model/ListAsyncHistoryCommandsRequest'; +import { ListAsyncHistoryCommandsResponse } from './model/ListAsyncHistoryCommandsResponse'; import { ListBatchTaskFilesRequest } from './model/ListBatchTaskFilesRequest'; import { ListBatchTaskFilesResponse } from './model/ListBatchTaskFilesResponse'; import { ListBatchTasksRequest } from './model/ListBatchTasksRequest'; @@ -199,6 +213,8 @@ import { ListDeviceTunnelsRequest } from './model/ListDeviceTunnelsRequest'; import { ListDeviceTunnelsResponse } from './model/ListDeviceTunnelsResponse'; import { ListDevicesRequest } from './model/ListDevicesRequest'; import { ListDevicesResponse } from './model/ListDevicesResponse'; +import { ListFunctionsRequest } from './model/ListFunctionsRequest'; +import { ListFunctionsResponse } from './model/ListFunctionsResponse'; import { ListOtaPackageInfoRequest } from './model/ListOtaPackageInfoRequest'; import { ListOtaPackageInfoResponse } from './model/ListOtaPackageInfoResponse'; import { ListProductsRequest } from './model/ListProductsRequest'; @@ -240,6 +256,7 @@ import { QueryDeviceProxySimplify } from './model/QueryDeviceProxySimplify'; import { QueryDeviceSimplify } from './model/QueryDeviceSimplify'; import { QueryQueueBase } from './model/QueryQueueBase'; import { QueryResourceByTagsDTO } from './model/QueryResourceByTagsDTO'; +import { QueueCommandPage } from './model/QueueCommandPage'; import { QueueInfo } from './model/QueueInfo'; import { ResetBridgeSecret } from './model/ResetBridgeSecret'; import { ResetBridgeSecretRequest } from './model/ResetBridgeSecretRequest'; @@ -613,6 +630,30 @@ export class IoTDAClient { return this.hcClient.sendRequest(options); } + /** + * 统计设备下的历史命令总数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 统计设备下的历史命令总数 + * @param {string} deviceId **参数说明**:下发命令的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @param {string} [startTime] **参数说明**:查询命令下发时间在startTime之后的记录,格式:yyyyMMdd\'T\'HHmmss\'Z\',如20151212T121212Z。 + * @param {string} [endTime] **参数说明**:查询命令下发时间在endTime之前的记录,格式:yyyyMMdd\'T\'HHmmss\'Z\',如20151212T121212Z。 + * @param {string} [status] **参数说明**:命令状态。 + * @param {string} [commandName] **参数说明**:命令名称。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public countAsyncHistoryCommands(countAsyncHistoryCommandsRequest?: CountAsyncHistoryCommandsRequest): Promise { + const options = ParamCreater().countAsyncHistoryCommands(countAsyncHistoryCommandsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 设备的产品模型中定义了物联网平台可向设备下发的命令,应用服务器可调用此接口向指定设备下发异步命令,以实现对设备的控制。平台负责将命令发送给设备,并将设备执行命令结果异步通知应用服务器。 命令执行结果支持灵活的数据流转,应用服务器通过调用物联网平台的创建规则触发条件(Resource:device.command.status,Event:update)、创建规则动作并激活规则后,当命令状态变更时,物联网平台会根据规则将结果发送到规则指定的服务器,如用户自定义的HTTP服务器,AMQP服务器,以及华为云的其他储存服务器等, 详情参考[[设备命令状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01212.html)](tag:hws)[[设备命令状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01212.html)](tag:hws_hk)。 * 注意: @@ -624,7 +665,7 @@ export class IoTDAClient { * @summary 下发异步设备命令 * @param {string} deviceId **参数说明**:下发命令的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 * @param {AsyncDeviceCommandRequest} createAsyncCommandRequestBody 请求结构体,见请求结构体说明 - * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -637,6 +678,60 @@ export class IoTDAClient { return this.hcClient.sendRequest(options); } + /** + * 查询设备下队列中的命令(处理中的命令),包含PENDING、SENT、DELIVERED三种状态,注意:DELIVERED状态的命令经过系统设定的一段时间(具体以系统配置为准)仍然没有更新,就会从队列中移除,变为历史命令。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询设备下队列中的命令 + * @param {string} deviceId **参数说明**:下发命令的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @param {number} [limit] **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为1-50的整数。 + * @param {string} [marker] **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 + * @param {number} [offset] **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 + * @param {string} [startTime] **参数说明**:查询命令下发时间在startTime之后的记录,格式:yyyyMMdd\'T\'HHmmss\'Z\',如20151212T121212Z。 + * @param {string} [endTime] **参数说明**:查询命令下发时间在endTime之前的记录,格式:yyyyMMdd\'T\'HHmmss\'Z\',如20151212T121212Z。 + * @param {string} [status] **参数说明**:命令状态。 + * @param {string} [commandName] **参数说明**:命令名称。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listAsyncCommands(listAsyncCommandsRequest?: ListAsyncCommandsRequest): Promise { + const options = ParamCreater().listAsyncCommands(listAsyncCommandsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询设备下发的历史异步命令,包含EXPIRED、SUCCESSFUL、FAILED、TIMEOUT、DELIVERED五种状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询设备下的历史命令 + * @param {string} deviceId **参数说明**:下发命令的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @param {number} [limit] **参数说明**:分页查询时每页显示的记录数,默认值为10,取值范围为1-50的整数。 + * @param {string} [marker] **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 + * @param {number} [offset] **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 + * @param {string} [startTime] **参数说明**:查询命令下发时间在startTime之后的记录,格式:yyyyMMdd\'T\'HHmmss\'Z\',如20151212T121212Z。 + * @param {string} [endTime] **参数说明**:查询命令下发时间在endTime之前的记录,格式:yyyyMMdd\'T\'HHmmss\'Z\',如20151212T121212Z。 + * @param {string} [status] **参数说明**:命令状态。 + * @param {string} [commandName] **参数说明**:命令名称。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listAsyncHistoryCommands(listAsyncHistoryCommandsRequest?: ListAsyncHistoryCommandsRequest): Promise { + const options = ParamCreater().listAsyncHistoryCommands(listAsyncHistoryCommandsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 物联网平台可查询指定id的命令。 * @@ -645,7 +740,7 @@ export class IoTDAClient { * @summary 查询指定id的命令 * @param {string} deviceId **参数说明**:下发命令的设备ID,用于唯一标识一个设备,在注册设备时由物联网平台分配获得。 **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。 * @param {string} commandId **参数说明**:下发命令的命令id,用于唯一标识一个消息,在下发命令时由物联网平台分配获得。 **取值范围**:长度不超过100,只允许字母、数字、下划线(_)、连接符(-)的组合。 - * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0121.html)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0121.html)](tag:hws_hk)。 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2064,6 +2159,73 @@ export class IoTDAClient { return this.hcClient.sendRequest(options); } + /** + * 提供创建编解码函数的功能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 创建编解码函数 + * @param {FunctionRequestDTO} addFunctionsRequestBody 创建的编解码函数信息 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @param {string} [spAuthToken] **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 + * @param {string} [stageAuthToken] **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public addFunctions(addFunctionsRequest?: AddFunctionsRequest): Promise { + const options = ParamCreater().addFunctions(addFunctionsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 提供删除编解码函数的功能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除编解码函数 + * @param {string} functionId **参数说明**:函数ID。 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @param {string} [spAuthToken] **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 + * @param {string} [stageAuthToken] **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteFunctions(deleteFunctionsRequest?: DeleteFunctionsRequest): Promise { + const options = ParamCreater().deleteFunctions(deleteFunctionsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 提供查询编解码函数的功能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询编解码函数 + * @param {string} productId **参数说明**:设备关联的产品ID,用于唯一标识一个产品模型,创建产品后获得。方法请参见 [[创建产品](https://support.huaweicloud.com/api-iothub/iot_06_v5_0050.html)](tag:hws)[[创建产品](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_0050.html)](tag:hws_hk)。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + * @param {string} [instanceId] **参数说明**:实例ID。物理多租下各实例的唯一标识,建议携带该参数,在使用专业版时必须携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID,具体获取方式请参考[[查看实例详情](https://support.huaweicloud.com/usermanual-iothub/iot_01_0079.html#section1)](tag:hws) [[查看实例详情](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0079.html#section1)](tag:hws_hk)。 + * @param {string} [spAuthToken] **参数说明**:Sp用户Token。通过调用IoBPS服务获取SP用户Token。 + * @param {string} [stageAuthToken] **参数说明**:Stage用户的Token, 仅提供给IoStage服务使用。 + * @param {string} [appId] **参数说明**:资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,可以携带该参数查询指定资源空间下的产品列表,不携带该参数则会查询该用户下所有产品列表。 **取值范围**:长度不超过36,只允许字母、数字、下划线(_)、连接符(-)的组合。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listFunctions(listFunctionsRequest?: ListFunctionsRequest): Promise { + const options = ParamCreater().listFunctions(listFunctionsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。平台返回应用响应结果不一定是设备接收结果,建议用户应用通过订阅[[设备消息状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01203.html)](tag:hws)[[设备消息状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01203.html)](tag:hws_hk),订阅后平台会将设备接收结果推送给订阅的应用。 * 注意: @@ -3642,6 +3804,79 @@ export const ParamCreater = function () { return options; }, + /** + * 统计设备下的历史命令总数。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + countAsyncHistoryCommands(countAsyncHistoryCommandsRequest?: CountAsyncHistoryCommandsRequest) { + const options = { + method: "POST", + url: "/v5/iot/{project_id}/devices/{device_id}/async-commands-history/count", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let deviceId; + + let instanceId; + + let startTime; + + let endTime; + + let status; + + let commandName; + + if (countAsyncHistoryCommandsRequest !== null && countAsyncHistoryCommandsRequest !== undefined) { + if (countAsyncHistoryCommandsRequest instanceof CountAsyncHistoryCommandsRequest) { + deviceId = countAsyncHistoryCommandsRequest.deviceId; + instanceId = countAsyncHistoryCommandsRequest.instanceId; + startTime = countAsyncHistoryCommandsRequest.startTime; + endTime = countAsyncHistoryCommandsRequest.endTime; + status = countAsyncHistoryCommandsRequest.status; + commandName = countAsyncHistoryCommandsRequest.commandName; + } else { + deviceId = countAsyncHistoryCommandsRequest['device_id']; + instanceId = countAsyncHistoryCommandsRequest['Instance-Id']; + startTime = countAsyncHistoryCommandsRequest['start_time']; + endTime = countAsyncHistoryCommandsRequest['end_time']; + status = countAsyncHistoryCommandsRequest['status']; + commandName = countAsyncHistoryCommandsRequest['command_name']; + } + } + + + if (deviceId === null || deviceId === undefined) { + throw new RequiredError('deviceId','Required parameter deviceId was null or undefined when calling countAsyncHistoryCommands.'); + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (commandName !== null && commandName !== undefined) { + localVarQueryParameter['command_name'] = commandName; + } + if (instanceId !== undefined && instanceId !== null) { + localVarHeaderParameter['Instance-Id'] = String(instanceId); + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'device_id': deviceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 设备的产品模型中定义了物联网平台可向设备下发的命令,应用服务器可调用此接口向指定设备下发异步命令,以实现对设备的控制。平台负责将命令发送给设备,并将设备执行命令结果异步通知应用服务器。 命令执行结果支持灵活的数据流转,应用服务器通过调用物联网平台的创建规则触发条件(Resource:device.command.status,Event:update)、创建规则动作并激活规则后,当命令状态变更时,物联网平台会根据规则将结果发送到规则指定的服务器,如用户自定义的HTTP服务器,AMQP服务器,以及华为云的其他储存服务器等, 详情参考[[设备命令状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01212.html)](tag:hws)[[设备命令状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01212.html)](tag:hws_hk)。 * 注意: @@ -3698,6 +3933,194 @@ export const ParamCreater = function () { return options; }, + /** + * 查询设备下队列中的命令(处理中的命令),包含PENDING、SENT、DELIVERED三种状态,注意:DELIVERED状态的命令经过系统设定的一段时间(具体以系统配置为准)仍然没有更新,就会从队列中移除,变为历史命令。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAsyncCommands(listAsyncCommandsRequest?: ListAsyncCommandsRequest) { + const options = { + method: "GET", + url: "/v5/iot/{project_id}/devices/{device_id}/async-commands", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let deviceId; + + let instanceId; + + let limit; + + let marker; + + let offset; + + let startTime; + + let endTime; + + let status; + + let commandName; + + if (listAsyncCommandsRequest !== null && listAsyncCommandsRequest !== undefined) { + if (listAsyncCommandsRequest instanceof ListAsyncCommandsRequest) { + deviceId = listAsyncCommandsRequest.deviceId; + instanceId = listAsyncCommandsRequest.instanceId; + limit = listAsyncCommandsRequest.limit; + marker = listAsyncCommandsRequest.marker; + offset = listAsyncCommandsRequest.offset; + startTime = listAsyncCommandsRequest.startTime; + endTime = listAsyncCommandsRequest.endTime; + status = listAsyncCommandsRequest.status; + commandName = listAsyncCommandsRequest.commandName; + } else { + deviceId = listAsyncCommandsRequest['device_id']; + instanceId = listAsyncCommandsRequest['Instance-Id']; + limit = listAsyncCommandsRequest['limit']; + marker = listAsyncCommandsRequest['marker']; + offset = listAsyncCommandsRequest['offset']; + startTime = listAsyncCommandsRequest['start_time']; + endTime = listAsyncCommandsRequest['end_time']; + status = listAsyncCommandsRequest['status']; + commandName = listAsyncCommandsRequest['command_name']; + } + } + + + if (deviceId === null || deviceId === undefined) { + throw new RequiredError('deviceId','Required parameter deviceId was null or undefined when calling listAsyncCommands.'); + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (marker !== null && marker !== undefined) { + localVarQueryParameter['marker'] = marker; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (commandName !== null && commandName !== undefined) { + localVarQueryParameter['command_name'] = commandName; + } + if (instanceId !== undefined && instanceId !== null) { + localVarHeaderParameter['Instance-Id'] = String(instanceId); + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'device_id': deviceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询设备下发的历史异步命令,包含EXPIRED、SUCCESSFUL、FAILED、TIMEOUT、DELIVERED五种状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listAsyncHistoryCommands(listAsyncHistoryCommandsRequest?: ListAsyncHistoryCommandsRequest) { + const options = { + method: "GET", + url: "/v5/iot/{project_id}/devices/{device_id}/async-commands-history", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let deviceId; + + let instanceId; + + let limit; + + let marker; + + let offset; + + let startTime; + + let endTime; + + let status; + + let commandName; + + if (listAsyncHistoryCommandsRequest !== null && listAsyncHistoryCommandsRequest !== undefined) { + if (listAsyncHistoryCommandsRequest instanceof ListAsyncHistoryCommandsRequest) { + deviceId = listAsyncHistoryCommandsRequest.deviceId; + instanceId = listAsyncHistoryCommandsRequest.instanceId; + limit = listAsyncHistoryCommandsRequest.limit; + marker = listAsyncHistoryCommandsRequest.marker; + offset = listAsyncHistoryCommandsRequest.offset; + startTime = listAsyncHistoryCommandsRequest.startTime; + endTime = listAsyncHistoryCommandsRequest.endTime; + status = listAsyncHistoryCommandsRequest.status; + commandName = listAsyncHistoryCommandsRequest.commandName; + } else { + deviceId = listAsyncHistoryCommandsRequest['device_id']; + instanceId = listAsyncHistoryCommandsRequest['Instance-Id']; + limit = listAsyncHistoryCommandsRequest['limit']; + marker = listAsyncHistoryCommandsRequest['marker']; + offset = listAsyncHistoryCommandsRequest['offset']; + startTime = listAsyncHistoryCommandsRequest['start_time']; + endTime = listAsyncHistoryCommandsRequest['end_time']; + status = listAsyncHistoryCommandsRequest['status']; + commandName = listAsyncHistoryCommandsRequest['command_name']; + } + } + + + if (deviceId === null || deviceId === undefined) { + throw new RequiredError('deviceId','Required parameter deviceId was null or undefined when calling listAsyncHistoryCommands.'); + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (marker !== null && marker !== undefined) { + localVarQueryParameter['marker'] = marker; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (commandName !== null && commandName !== undefined) { + localVarQueryParameter['command_name'] = commandName; + } + if (instanceId !== undefined && instanceId !== null) { + localVarHeaderParameter['Instance-Id'] = String(instanceId); + } + + options.queryParams = localVarQueryParameter; + options.pathParams = { 'device_id': deviceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 物联网平台可查询指定id的命令。 * @@ -7072,6 +7495,191 @@ export const ParamCreater = function () { return options; }, + /** + * 提供创建编解码函数的功能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + addFunctions(addFunctionsRequest?: AddFunctionsRequest) { + const options = { + method: "POST", + url: "/v5/iot/{project_id}/product-functions", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let instanceId; + + let spAuthToken; + + let stageAuthToken; + + if (addFunctionsRequest !== null && addFunctionsRequest !== undefined) { + if (addFunctionsRequest instanceof AddFunctionsRequest) { + body = addFunctionsRequest.body + instanceId = addFunctionsRequest.instanceId; + spAuthToken = addFunctionsRequest.spAuthToken; + stageAuthToken = addFunctionsRequest.stageAuthToken; + } else { + body = addFunctionsRequest['body']; + instanceId = addFunctionsRequest['Instance-Id']; + spAuthToken = addFunctionsRequest['Sp-Auth-Token']; + stageAuthToken = addFunctionsRequest['Stage-Auth-Token']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (instanceId !== undefined && instanceId !== null) { + localVarHeaderParameter['Instance-Id'] = String(instanceId); + } + if (spAuthToken !== undefined && spAuthToken !== null) { + localVarHeaderParameter['Sp-Auth-Token'] = String(spAuthToken); + } + if (stageAuthToken !== undefined && stageAuthToken !== null) { + localVarHeaderParameter['Stage-Auth-Token'] = String(stageAuthToken); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 提供删除编解码函数的功能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteFunctions(deleteFunctionsRequest?: DeleteFunctionsRequest) { + const options = { + method: "DELETE", + url: "/v5/iot/{project_id}/product-functions/{function_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let functionId; + + let instanceId; + + let spAuthToken; + + let stageAuthToken; + + if (deleteFunctionsRequest !== null && deleteFunctionsRequest !== undefined) { + if (deleteFunctionsRequest instanceof DeleteFunctionsRequest) { + functionId = deleteFunctionsRequest.functionId; + instanceId = deleteFunctionsRequest.instanceId; + spAuthToken = deleteFunctionsRequest.spAuthToken; + stageAuthToken = deleteFunctionsRequest.stageAuthToken; + } else { + functionId = deleteFunctionsRequest['function_id']; + instanceId = deleteFunctionsRequest['Instance-Id']; + spAuthToken = deleteFunctionsRequest['Sp-Auth-Token']; + stageAuthToken = deleteFunctionsRequest['Stage-Auth-Token']; + } + } + + + if (functionId === null || functionId === undefined) { + throw new RequiredError('functionId','Required parameter functionId was null or undefined when calling deleteFunctions.'); + } + if (instanceId !== undefined && instanceId !== null) { + localVarHeaderParameter['Instance-Id'] = String(instanceId); + } + if (spAuthToken !== undefined && spAuthToken !== null) { + localVarHeaderParameter['Sp-Auth-Token'] = String(spAuthToken); + } + if (stageAuthToken !== undefined && stageAuthToken !== null) { + localVarHeaderParameter['Stage-Auth-Token'] = String(stageAuthToken); + } + + options.pathParams = { 'function_id': functionId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 提供查询编解码函数的功能。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listFunctions(listFunctionsRequest?: ListFunctionsRequest) { + const options = { + method: "GET", + url: "/v5/iot/{project_id}/product-functions", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let productId; + + let instanceId; + + let spAuthToken; + + let stageAuthToken; + + let appId; + + if (listFunctionsRequest !== null && listFunctionsRequest !== undefined) { + if (listFunctionsRequest instanceof ListFunctionsRequest) { + productId = listFunctionsRequest.productId; + instanceId = listFunctionsRequest.instanceId; + spAuthToken = listFunctionsRequest.spAuthToken; + stageAuthToken = listFunctionsRequest.stageAuthToken; + appId = listFunctionsRequest.appId; + } else { + productId = listFunctionsRequest['product_id']; + instanceId = listFunctionsRequest['Instance-Id']; + spAuthToken = listFunctionsRequest['Sp-Auth-Token']; + stageAuthToken = listFunctionsRequest['Stage-Auth-Token']; + appId = listFunctionsRequest['app_id']; + } + } + + + if (productId === null || productId === undefined) { + throw new RequiredError('productId','Required parameter productId was null or undefined when calling listFunctions.'); + } + if (productId !== null && productId !== undefined) { + localVarQueryParameter['product_id'] = productId; + } + if (appId !== null && appId !== undefined) { + localVarQueryParameter['app_id'] = appId; + } + if (instanceId !== undefined && instanceId !== null) { + localVarHeaderParameter['Instance-Id'] = String(instanceId); + } + if (spAuthToken !== undefined && spAuthToken !== null) { + localVarHeaderParameter['Sp-Auth-Token'] = String(spAuthToken); + } + if (stageAuthToken !== undefined && stageAuthToken !== null) { + localVarHeaderParameter['Stage-Auth-Token'] = String(stageAuthToken); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 物联网平台可向设备下发消息,应用服务器可调用此接口向指定设备下发消息,以实现对设备的控制。应用将消息下发给平台后,平台返回应用响应结果,平台再将消息发送给设备。平台返回应用响应结果不一定是设备接收结果,建议用户应用通过订阅[[设备消息状态变更通知](https://support.huaweicloud.com/api-iothub/iot_06_v5_01203.html)](tag:hws)[[设备消息状态变更通知](https://support.huaweicloud.com/intl/zh-cn/api-iothub/iot_06_v5_01203.html)](tag:hws_hk),订阅后平台会将设备接收结果推送给订阅的应用。 * 注意: diff --git a/services/iotda/v5/model/AddFunctionsRequest.ts b/services/iotda/v5/model/AddFunctionsRequest.ts new file mode 100644 index 000000000..98e9c1118 --- /dev/null +++ b/services/iotda/v5/model/AddFunctionsRequest.ts @@ -0,0 +1,45 @@ +import { FunctionRequestDTO } from './FunctionRequestDTO'; + + +export class AddFunctionsRequest { + private 'Instance-Id'?: string; + private 'Sp-Auth-Token'?: string; + private 'Stage-Auth-Token'?: string; + public body?: FunctionRequestDTO; + public constructor() { + } + public withInstanceId(instanceId: string): AddFunctionsRequest { + 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 withSpAuthToken(spAuthToken: string): AddFunctionsRequest { + this['Sp-Auth-Token'] = spAuthToken; + return this; + } + public set spAuthToken(spAuthToken: string | undefined) { + this['Sp-Auth-Token'] = spAuthToken; + } + public get spAuthToken(): string | undefined { + return this['Sp-Auth-Token']; + } + public withStageAuthToken(stageAuthToken: string): AddFunctionsRequest { + this['Stage-Auth-Token'] = stageAuthToken; + return this; + } + public set stageAuthToken(stageAuthToken: string | undefined) { + this['Stage-Auth-Token'] = stageAuthToken; + } + public get stageAuthToken(): string | undefined { + return this['Stage-Auth-Token']; + } + public withBody(body: FunctionRequestDTO): AddFunctionsRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/AddFunctionsResponse.ts b/services/iotda/v5/model/AddFunctionsResponse.ts new file mode 100644 index 000000000..51fdccda5 --- /dev/null +++ b/services/iotda/v5/model/AddFunctionsResponse.ts @@ -0,0 +1,62 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class AddFunctionsResponse extends SdkResponse { + private 'app_id'?: string; + private 'product_id'?: string; + private 'function_id'?: string; + public urn?: string; + public description?: string; + private 'create_time'?: string; + public constructor() { + super(); + } + public withAppId(appId: string): AddFunctionsResponse { + this['app_id'] = appId; + return this; + } + public set appId(appId: string | undefined) { + this['app_id'] = appId; + } + public get appId(): string | undefined { + return this['app_id']; + } + public withProductId(productId: string): AddFunctionsResponse { + this['product_id'] = productId; + return this; + } + public set productId(productId: string | undefined) { + this['product_id'] = productId; + } + public get productId(): string | undefined { + return this['product_id']; + } + public withFunctionId(functionId: string): AddFunctionsResponse { + this['function_id'] = functionId; + return this; + } + public set functionId(functionId: string | undefined) { + this['function_id'] = functionId; + } + public get functionId(): string | undefined { + return this['function_id']; + } + public withUrn(urn: string): AddFunctionsResponse { + this['urn'] = urn; + return this; + } + public withDescription(description: string): AddFunctionsResponse { + this['description'] = description; + return this; + } + public withCreateTime(createTime: string): AddFunctionsResponse { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime(): string | undefined { + return this['create_time']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/AsyncDeviceListCommand.ts b/services/iotda/v5/model/AsyncDeviceListCommand.ts new file mode 100644 index 000000000..7ab6d2d29 --- /dev/null +++ b/services/iotda/v5/model/AsyncDeviceListCommand.ts @@ -0,0 +1,121 @@ + + +export class AsyncDeviceListCommand { + private 'device_id'?: string; + private 'command_id'?: string; + private 'service_id'?: string; + private 'command_name'?: string; + private 'expire_time'?: number; + public status?: string; + private 'created_time'?: string; + private 'sent_time'?: string; + private 'delivered_time'?: string; + private 'send_strategy'?: string; + private 'response_time'?: string; + public constructor() { + } + public withDeviceId(deviceId: string): AsyncDeviceListCommand { + this['device_id'] = deviceId; + return this; + } + public set deviceId(deviceId: string | undefined) { + this['device_id'] = deviceId; + } + public get deviceId(): string | undefined { + return this['device_id']; + } + public withCommandId(commandId: string): AsyncDeviceListCommand { + this['command_id'] = commandId; + return this; + } + public set commandId(commandId: string | undefined) { + this['command_id'] = commandId; + } + public get commandId(): string | undefined { + return this['command_id']; + } + public withServiceId(serviceId: string): AsyncDeviceListCommand { + this['service_id'] = serviceId; + return this; + } + public set serviceId(serviceId: string | undefined) { + this['service_id'] = serviceId; + } + public get serviceId(): string | undefined { + return this['service_id']; + } + public withCommandName(commandName: string): AsyncDeviceListCommand { + this['command_name'] = commandName; + return this; + } + public set commandName(commandName: string | undefined) { + this['command_name'] = commandName; + } + public get commandName(): string | undefined { + return this['command_name']; + } + public withExpireTime(expireTime: number): AsyncDeviceListCommand { + this['expire_time'] = expireTime; + return this; + } + public set expireTime(expireTime: number | undefined) { + this['expire_time'] = expireTime; + } + public get expireTime(): number | undefined { + return this['expire_time']; + } + public withStatus(status: string): AsyncDeviceListCommand { + this['status'] = status; + return this; + } + public withCreatedTime(createdTime: string): AsyncDeviceListCommand { + this['created_time'] = createdTime; + return this; + } + public set createdTime(createdTime: string | undefined) { + this['created_time'] = createdTime; + } + public get createdTime(): string | undefined { + return this['created_time']; + } + public withSentTime(sentTime: string): AsyncDeviceListCommand { + this['sent_time'] = sentTime; + return this; + } + public set sentTime(sentTime: string | undefined) { + this['sent_time'] = sentTime; + } + public get sentTime(): string | undefined { + return this['sent_time']; + } + public withDeliveredTime(deliveredTime: string): AsyncDeviceListCommand { + this['delivered_time'] = deliveredTime; + return this; + } + public set deliveredTime(deliveredTime: string | undefined) { + this['delivered_time'] = deliveredTime; + } + public get deliveredTime(): string | undefined { + return this['delivered_time']; + } + public withSendStrategy(sendStrategy: string): AsyncDeviceListCommand { + this['send_strategy'] = sendStrategy; + return this; + } + public set sendStrategy(sendStrategy: string | undefined) { + this['send_strategy'] = sendStrategy; + } + public get sendStrategy(): string | undefined { + return this['send_strategy']; + } + public withResponseTime(responseTime: string): AsyncDeviceListCommand { + this['response_time'] = responseTime; + return this; + } + public set responseTime(responseTime: string | undefined) { + this['response_time'] = responseTime; + } + public get responseTime(): string | undefined { + return this['response_time']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/CountAsyncHistoryCommandsRequest.ts b/services/iotda/v5/model/CountAsyncHistoryCommandsRequest.ts new file mode 100644 index 000000000..37daff793 --- /dev/null +++ b/services/iotda/v5/model/CountAsyncHistoryCommandsRequest.ts @@ -0,0 +1,67 @@ + + +export class CountAsyncHistoryCommandsRequest { + private 'device_id'?: string; + private 'Instance-Id'?: string; + private 'start_time'?: string; + private 'end_time'?: string; + public status?: string; + private 'command_name'?: string; + public constructor(deviceId?: string) { + this['device_id'] = deviceId; + } + public withDeviceId(deviceId: string): CountAsyncHistoryCommandsRequest { + this['device_id'] = deviceId; + return this; + } + public set deviceId(deviceId: string | undefined) { + this['device_id'] = deviceId; + } + public get deviceId(): string | undefined { + return this['device_id']; + } + public withInstanceId(instanceId: string): CountAsyncHistoryCommandsRequest { + 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 withStartTime(startTime: string): CountAsyncHistoryCommandsRequest { + 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): CountAsyncHistoryCommandsRequest { + 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']; + } + public withStatus(status: string): CountAsyncHistoryCommandsRequest { + this['status'] = status; + return this; + } + public withCommandName(commandName: string): CountAsyncHistoryCommandsRequest { + this['command_name'] = commandName; + return this; + } + public set commandName(commandName: string | undefined) { + this['command_name'] = commandName; + } + public get commandName(): string | undefined { + return this['command_name']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/CountAsyncHistoryCommandsResponse.ts b/services/iotda/v5/model/CountAsyncHistoryCommandsResponse.ts new file mode 100644 index 000000000..2d260f5b3 --- /dev/null +++ b/services/iotda/v5/model/CountAsyncHistoryCommandsResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CountAsyncHistoryCommandsResponse extends SdkResponse { + public count?: number; + public constructor() { + super(); + } + public withCount(count: number): CountAsyncHistoryCommandsResponse { + this['count'] = count; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/DeleteFunctionsRequest.ts b/services/iotda/v5/model/DeleteFunctionsRequest.ts new file mode 100644 index 000000000..817d31461 --- /dev/null +++ b/services/iotda/v5/model/DeleteFunctionsRequest.ts @@ -0,0 +1,51 @@ + + +export class DeleteFunctionsRequest { + private 'Instance-Id'?: string; + private 'Sp-Auth-Token'?: string; + private 'Stage-Auth-Token'?: string; + private 'function_id'?: string; + public constructor(functionId?: string) { + this['function_id'] = functionId; + } + public withInstanceId(instanceId: string): DeleteFunctionsRequest { + 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 withSpAuthToken(spAuthToken: string): DeleteFunctionsRequest { + this['Sp-Auth-Token'] = spAuthToken; + return this; + } + public set spAuthToken(spAuthToken: string | undefined) { + this['Sp-Auth-Token'] = spAuthToken; + } + public get spAuthToken(): string | undefined { + return this['Sp-Auth-Token']; + } + public withStageAuthToken(stageAuthToken: string): DeleteFunctionsRequest { + this['Stage-Auth-Token'] = stageAuthToken; + return this; + } + public set stageAuthToken(stageAuthToken: string | undefined) { + this['Stage-Auth-Token'] = stageAuthToken; + } + public get stageAuthToken(): string | undefined { + return this['Stage-Auth-Token']; + } + public withFunctionId(functionId: string): DeleteFunctionsRequest { + this['function_id'] = functionId; + return this; + } + public set functionId(functionId: string | undefined) { + this['function_id'] = functionId; + } + public get functionId(): string | undefined { + return this['function_id']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/DeleteFunctionsResponse.ts b/services/iotda/v5/model/DeleteFunctionsResponse.ts new file mode 100644 index 000000000..11e66dc56 --- /dev/null +++ b/services/iotda/v5/model/DeleteFunctionsResponse.ts @@ -0,0 +1,13 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteFunctionsResponse extends SdkResponse { + public body?: string; + public constructor() { + super(); + } + public withBody(body: string): DeleteFunctionsResponse { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/FunctionDTO.ts b/services/iotda/v5/model/FunctionDTO.ts new file mode 100644 index 000000000..04e80f8b8 --- /dev/null +++ b/services/iotda/v5/model/FunctionDTO.ts @@ -0,0 +1,63 @@ + + +export class FunctionDTO { + private 'app_id'?: string; + private 'product_id'?: string; + private 'function_id'?: string; + public urn?: string; + public description?: string; + private 'create_time'?: string; + public constructor(productId?: string, functionId?: string, urn?: string) { + this['product_id'] = productId; + this['function_id'] = functionId; + this['urn'] = urn; + } + public withAppId(appId: string): FunctionDTO { + this['app_id'] = appId; + return this; + } + public set appId(appId: string | undefined) { + this['app_id'] = appId; + } + public get appId(): string | undefined { + return this['app_id']; + } + public withProductId(productId: string): FunctionDTO { + this['product_id'] = productId; + return this; + } + public set productId(productId: string | undefined) { + this['product_id'] = productId; + } + public get productId(): string | undefined { + return this['product_id']; + } + public withFunctionId(functionId: string): FunctionDTO { + this['function_id'] = functionId; + return this; + } + public set functionId(functionId: string | undefined) { + this['function_id'] = functionId; + } + public get functionId(): string | undefined { + return this['function_id']; + } + public withUrn(urn: string): FunctionDTO { + this['urn'] = urn; + return this; + } + public withDescription(description: string): FunctionDTO { + this['description'] = description; + return this; + } + public withCreateTime(createTime: string): FunctionDTO { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime(): string | undefined { + return this['create_time']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/FunctionRequestDTO.ts b/services/iotda/v5/model/FunctionRequestDTO.ts new file mode 100644 index 000000000..7b2858b99 --- /dev/null +++ b/services/iotda/v5/model/FunctionRequestDTO.ts @@ -0,0 +1,40 @@ + + +export class FunctionRequestDTO { + private 'app_id'?: string; + private 'product_id'?: string; + public urn?: string; + public description?: string; + public constructor(productId?: string, urn?: string) { + this['product_id'] = productId; + this['urn'] = urn; + } + public withAppId(appId: string): FunctionRequestDTO { + this['app_id'] = appId; + return this; + } + public set appId(appId: string | undefined) { + this['app_id'] = appId; + } + public get appId(): string | undefined { + return this['app_id']; + } + public withProductId(productId: string): FunctionRequestDTO { + this['product_id'] = productId; + return this; + } + public set productId(productId: string | undefined) { + this['product_id'] = productId; + } + public get productId(): string | undefined { + return this['product_id']; + } + public withUrn(urn: string): FunctionRequestDTO { + this['urn'] = urn; + return this; + } + public withDescription(description: string): FunctionRequestDTO { + this['description'] = description; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/HistoryCommandPage.ts b/services/iotda/v5/model/HistoryCommandPage.ts new file mode 100644 index 000000000..87c28eb09 --- /dev/null +++ b/services/iotda/v5/model/HistoryCommandPage.ts @@ -0,0 +1,11 @@ + + +export class HistoryCommandPage { + public marker?: string; + public constructor() { + } + public withMarker(marker: string): HistoryCommandPage { + this['marker'] = marker; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/ListAsyncCommandsRequest.ts b/services/iotda/v5/model/ListAsyncCommandsRequest.ts new file mode 100644 index 000000000..885033031 --- /dev/null +++ b/services/iotda/v5/model/ListAsyncCommandsRequest.ts @@ -0,0 +1,82 @@ + + +export class ListAsyncCommandsRequest { + private 'device_id'?: string; + private 'Instance-Id'?: string; + public limit?: number; + public marker?: string; + public offset?: number; + private 'start_time'?: string; + private 'end_time'?: string; + public status?: string; + private 'command_name'?: string; + public constructor(deviceId?: string) { + this['device_id'] = deviceId; + } + public withDeviceId(deviceId: string): ListAsyncCommandsRequest { + this['device_id'] = deviceId; + return this; + } + public set deviceId(deviceId: string | undefined) { + this['device_id'] = deviceId; + } + public get deviceId(): string | undefined { + return this['device_id']; + } + public withInstanceId(instanceId: string): ListAsyncCommandsRequest { + 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 withLimit(limit: number): ListAsyncCommandsRequest { + this['limit'] = limit; + return this; + } + public withMarker(marker: string): ListAsyncCommandsRequest { + this['marker'] = marker; + return this; + } + public withOffset(offset: number): ListAsyncCommandsRequest { + this['offset'] = offset; + return this; + } + public withStartTime(startTime: string): ListAsyncCommandsRequest { + 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): ListAsyncCommandsRequest { + 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']; + } + public withStatus(status: string): ListAsyncCommandsRequest { + this['status'] = status; + return this; + } + public withCommandName(commandName: string): ListAsyncCommandsRequest { + this['command_name'] = commandName; + return this; + } + public set commandName(commandName: string | undefined) { + this['command_name'] = commandName; + } + public get commandName(): string | undefined { + return this['command_name']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/ListAsyncCommandsResponse.ts b/services/iotda/v5/model/ListAsyncCommandsResponse.ts new file mode 100644 index 000000000..b780b65bb --- /dev/null +++ b/services/iotda/v5/model/ListAsyncCommandsResponse.ts @@ -0,0 +1,20 @@ +import { AsyncDeviceListCommand } from './AsyncDeviceListCommand'; +import { QueueCommandPage } from './QueueCommandPage'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAsyncCommandsResponse extends SdkResponse { + public commands?: Array; + public page?: QueueCommandPage; + public constructor() { + super(); + } + public withCommands(commands: Array): ListAsyncCommandsResponse { + this['commands'] = commands; + return this; + } + public withPage(page: QueueCommandPage): ListAsyncCommandsResponse { + this['page'] = page; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/ListAsyncHistoryCommandsRequest.ts b/services/iotda/v5/model/ListAsyncHistoryCommandsRequest.ts new file mode 100644 index 000000000..1a68319c3 --- /dev/null +++ b/services/iotda/v5/model/ListAsyncHistoryCommandsRequest.ts @@ -0,0 +1,82 @@ + + +export class ListAsyncHistoryCommandsRequest { + private 'device_id'?: string; + private 'Instance-Id'?: string; + public limit?: number; + public marker?: string; + public offset?: number; + private 'start_time'?: string; + private 'end_time'?: string; + public status?: string; + private 'command_name'?: string; + public constructor(deviceId?: string) { + this['device_id'] = deviceId; + } + public withDeviceId(deviceId: string): ListAsyncHistoryCommandsRequest { + this['device_id'] = deviceId; + return this; + } + public set deviceId(deviceId: string | undefined) { + this['device_id'] = deviceId; + } + public get deviceId(): string | undefined { + return this['device_id']; + } + public withInstanceId(instanceId: string): ListAsyncHistoryCommandsRequest { + 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 withLimit(limit: number): ListAsyncHistoryCommandsRequest { + this['limit'] = limit; + return this; + } + public withMarker(marker: string): ListAsyncHistoryCommandsRequest { + this['marker'] = marker; + return this; + } + public withOffset(offset: number): ListAsyncHistoryCommandsRequest { + this['offset'] = offset; + return this; + } + public withStartTime(startTime: string): ListAsyncHistoryCommandsRequest { + 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): ListAsyncHistoryCommandsRequest { + 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']; + } + public withStatus(status: string): ListAsyncHistoryCommandsRequest { + this['status'] = status; + return this; + } + public withCommandName(commandName: string): ListAsyncHistoryCommandsRequest { + this['command_name'] = commandName; + return this; + } + public set commandName(commandName: string | undefined) { + this['command_name'] = commandName; + } + public get commandName(): string | undefined { + return this['command_name']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/ListAsyncHistoryCommandsResponse.ts b/services/iotda/v5/model/ListAsyncHistoryCommandsResponse.ts new file mode 100644 index 000000000..a11c6340b --- /dev/null +++ b/services/iotda/v5/model/ListAsyncHistoryCommandsResponse.ts @@ -0,0 +1,20 @@ +import { AsyncDeviceListCommand } from './AsyncDeviceListCommand'; +import { HistoryCommandPage } from './HistoryCommandPage'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAsyncHistoryCommandsResponse extends SdkResponse { + public commands?: Array; + public page?: HistoryCommandPage; + public constructor() { + super(); + } + public withCommands(commands: Array): ListAsyncHistoryCommandsResponse { + this['commands'] = commands; + return this; + } + public withPage(page: HistoryCommandPage): ListAsyncHistoryCommandsResponse { + this['page'] = page; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/ListFunctionsRequest.ts b/services/iotda/v5/model/ListFunctionsRequest.ts new file mode 100644 index 000000000..7bf895892 --- /dev/null +++ b/services/iotda/v5/model/ListFunctionsRequest.ts @@ -0,0 +1,62 @@ + + +export class ListFunctionsRequest { + private 'Instance-Id'?: string; + private 'Sp-Auth-Token'?: string; + private 'Stage-Auth-Token'?: string; + private 'app_id'?: string; + private 'product_id'?: string; + public constructor(productId?: string) { + this['product_id'] = productId; + } + public withInstanceId(instanceId: string): ListFunctionsRequest { + 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 withSpAuthToken(spAuthToken: string): ListFunctionsRequest { + this['Sp-Auth-Token'] = spAuthToken; + return this; + } + public set spAuthToken(spAuthToken: string | undefined) { + this['Sp-Auth-Token'] = spAuthToken; + } + public get spAuthToken(): string | undefined { + return this['Sp-Auth-Token']; + } + public withStageAuthToken(stageAuthToken: string): ListFunctionsRequest { + this['Stage-Auth-Token'] = stageAuthToken; + return this; + } + public set stageAuthToken(stageAuthToken: string | undefined) { + this['Stage-Auth-Token'] = stageAuthToken; + } + public get stageAuthToken(): string | undefined { + return this['Stage-Auth-Token']; + } + public withAppId(appId: string): ListFunctionsRequest { + this['app_id'] = appId; + return this; + } + public set appId(appId: string | undefined) { + this['app_id'] = appId; + } + public get appId(): string | undefined { + return this['app_id']; + } + public withProductId(productId: string): ListFunctionsRequest { + this['product_id'] = productId; + return this; + } + public set productId(productId: string | undefined) { + this['product_id'] = productId; + } + public get productId(): string | undefined { + return this['product_id']; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/ListFunctionsResponse.ts b/services/iotda/v5/model/ListFunctionsResponse.ts new file mode 100644 index 000000000..eeebde483 --- /dev/null +++ b/services/iotda/v5/model/ListFunctionsResponse.ts @@ -0,0 +1,25 @@ +import { FunctionDTO } from './FunctionDTO'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListFunctionsResponse extends SdkResponse { + private 'product_functions'?: Array; + public count?: number; + public constructor() { + super(); + } + public withProductFunctions(productFunctions: Array): ListFunctionsResponse { + this['product_functions'] = productFunctions; + return this; + } + public set productFunctions(productFunctions: Array | undefined) { + this['product_functions'] = productFunctions; + } + public get productFunctions(): Array | undefined { + return this['product_functions']; + } + public withCount(count: number): ListFunctionsResponse { + this['count'] = count; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/model/QueueCommandPage.ts b/services/iotda/v5/model/QueueCommandPage.ts new file mode 100644 index 000000000..e861a50ea --- /dev/null +++ b/services/iotda/v5/model/QueueCommandPage.ts @@ -0,0 +1,16 @@ + + +export class QueueCommandPage { + public count?: number; + public marker?: string; + public constructor() { + } + public withCount(count: number): QueueCommandPage { + this['count'] = count; + return this; + } + public withMarker(marker: string): QueueCommandPage { + this['marker'] = marker; + return this; + } +} \ No newline at end of file diff --git a/services/iotda/v5/public-api.ts b/services/iotda/v5/public-api.ts index 6b83f9a2b..f8209d858 100644 --- a/services/iotda/v5/public-api.ts +++ b/services/iotda/v5/public-api.ts @@ -21,6 +21,8 @@ export * from './model/AddDeviceProxy'; export * from './model/AddDeviceRequest'; export * from './model/AddDeviceResponse'; export * from './model/AddFlowControlPolicy'; +export * from './model/AddFunctionsRequest'; +export * from './model/AddFunctionsResponse'; export * from './model/AddProduct'; export * from './model/AddQueueRequest'; export * from './model/AddQueueResponse'; @@ -31,6 +33,7 @@ export * from './model/AddTunnelResponse'; export * from './model/AmqpForwarding'; export * from './model/ApplicationDTO'; export * from './model/AsyncDeviceCommandRequest'; +export * from './model/AsyncDeviceListCommand'; export * from './model/AuthInfo'; export * from './model/AuthInfoRes'; export * from './model/AuthInfoWithoutSecret'; @@ -60,6 +63,8 @@ export * from './model/Cmd'; export * from './model/ColumnMapping'; export * from './model/ConditionGroup'; export * from './model/ConnectState'; +export * from './model/CountAsyncHistoryCommandsRequest'; +export * from './model/CountAsyncHistoryCommandsResponse'; export * from './model/CreateAccessCodeRequest'; export * from './model/CreateAccessCodeRequestBody'; export * from './model/CreateAccessCodeResponse'; @@ -124,6 +129,8 @@ export * from './model/DeleteDeviceRequest'; export * from './model/DeleteDeviceResponse'; export * from './model/DeleteDeviceTunnelRequest'; export * from './model/DeleteDeviceTunnelResponse'; +export * from './model/DeleteFunctionsRequest'; +export * from './model/DeleteFunctionsResponse'; export * from './model/DeleteOtaPackageRequest'; export * from './model/DeleteOtaPackageResponse'; export * from './model/DeleteProductRequest'; @@ -167,10 +174,17 @@ export * from './model/FileLocation'; export * from './model/FlowControlPolicyInfo'; export * from './model/FreezeDeviceRequest'; export * from './model/FreezeDeviceResponse'; +export * from './model/FunctionDTO'; export * from './model/FunctionGraphForwarding'; +export * from './model/FunctionRequestDTO'; +export * from './model/HistoryCommandPage'; export * from './model/HttpForwarding'; export * from './model/InfluxDBForwarding'; export * from './model/InitialDesired'; +export * from './model/ListAsyncCommandsRequest'; +export * from './model/ListAsyncCommandsResponse'; +export * from './model/ListAsyncHistoryCommandsRequest'; +export * from './model/ListAsyncHistoryCommandsResponse'; export * from './model/ListBatchTaskFilesRequest'; export * from './model/ListBatchTaskFilesResponse'; export * from './model/ListBatchTasksRequest'; @@ -197,6 +211,8 @@ export * from './model/ListDeviceTunnelsRequest'; export * from './model/ListDeviceTunnelsResponse'; export * from './model/ListDevicesRequest'; export * from './model/ListDevicesResponse'; +export * from './model/ListFunctionsRequest'; +export * from './model/ListFunctionsResponse'; export * from './model/ListOtaPackageInfoRequest'; export * from './model/ListOtaPackageInfoResponse'; export * from './model/ListProductsRequest'; @@ -238,6 +254,7 @@ export * from './model/QueryDeviceProxySimplify'; export * from './model/QueryDeviceSimplify'; export * from './model/QueryQueueBase'; export * from './model/QueryResourceByTagsDTO'; +export * from './model/QueueCommandPage'; export * from './model/QueueInfo'; export * from './model/ResetBridgeSecret'; export * from './model/ResetBridgeSecretRequest'; diff --git a/services/metastudio/v1/MetaStudioClient.ts b/services/metastudio/v1/MetaStudioClient.ts index 297ea60fe..b45a0476d 100644 --- a/services/metastudio/v1/MetaStudioClient.ts +++ b/services/metastudio/v1/MetaStudioClient.ts @@ -533,6 +533,9 @@ import { UpdateWelcomeSpeechResponse } from './model/UpdateWelcomeSpeechResponse import { UpdateWelcomeSpeechSwitchReq } from './model/UpdateWelcomeSpeechSwitchReq'; import { UpdateWelcomeSpeechSwitchRequest } from './model/UpdateWelcomeSpeechSwitchRequest'; import { UpdateWelcomeSpeechSwitchResponse } from './model/UpdateWelcomeSpeechSwitchResponse'; +import { ValidateRobotReq } from './model/ValidateRobotReq'; +import { ValidateRobotRequest } from './model/ValidateRobotRequest'; +import { ValidateRobotResponse } from './model/ValidateRobotResponse'; import { VerifyVideoMattingInfo } from './model/VerifyVideoMattingInfo'; import { VideoAssetMeta } from './model/VideoAssetMeta'; import { VideoConfig } from './model/VideoConfig'; @@ -2667,6 +2670,29 @@ export class MetaStudioClient { return this.hcClient.sendRequest(options); } + /** + * 该接口用于校验应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 校验应用 + * @param {ValidateRobotReq} validateRobotRequestBody 校验应用请求。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 + * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public validateRobot(validateRobotRequest?: ValidateRobotRequest): Promise { + const options = ParamCreater().validateRobot(validateRobotRequest); + + // @ts-ignore + options['responseHeaders'] = ['X-Request-Id']; + + return this.hcClient.sendRequest(options); + } + /** * 该接口用于创建智能交互对话。 * @@ -2887,7 +2913,7 @@ export class MetaStudioClient { * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 * @param {string} [xAppUserId] 第三方用户ID。不允许输入中文。 * @param {string} [authKey] 鉴权Key。通过HmacSHA256生成的鉴权key - * @param {number} [expiresTime] **参数解释**: 鉴权key过期时间。从1970年1月1日(UTC/GMT的午夜)开始所经过的豪秒数。 + * @param {number} [expiresTime] **参数解释**: 鉴权key过期时间。从1970年1月1日(UTC/GMT的午夜)开始所经过的毫秒数。 * @param {boolean} [refreshUrl] 是否刷新URL * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -3225,15 +3251,15 @@ export class MetaStudioClient { } /** - * 统计时间段内资源数量 + * 统计指定时间段内即将过期的包周期与一次性资源数量。 * * Please refer to HUAWEI cloud API Explorer for details. * - * @summary 统计时间段内资源数量 + * @summary 统计时间段内过期的资源数量 * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。 * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 - * @param {string} [business] 业务类型。 + * @param {string} [business] 业务类型。可填多个用\",\"分隔 * VOICE_CLONE:声音制作 * SYNTHETICS_SOUND:声音合成 * ASSET_MANAGER:资产管理 * MODELING_2D:形象制作 * LIVE_2D:分身数字人视频直播 * VIDEO_2D:分身数字人视频制作 * CHAT_2D:分身数字人智能交互 * BUSINESS_CARD_2D:分身数字人名片 * PICTURE_2D:照片数字人视频 * MODELING_3D:3D照片建模 * VDS_3D:3D视觉驱动 * TTSA_3D:3D语音驱动 * FLEXUS_2D:FLEXUS版本资源 * @param {string} [resourceExpireStartTime] 资源过期时间段 开始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" * @param {string} [resourceExpireEndTime] 资源过期时间段 结束时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" * @param {*} [options] Override http request option. @@ -3249,26 +3275,27 @@ export class MetaStudioClient { } /** - * 查看租户资源列表 + * 查看租户资源列表。 + * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询。[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。 + * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查看租户资源列表 - * @param {string} resourceSource 资源来源。 + * @param {string} resourceSource 资源来源,可填多个 例如:PURCHASED,ADMIN_ALLOCATED,将返回商用资源与管理员分配资源。 * PURCHASED: 用户购买的资源 * SP_ALLOCATED: SP分配的资源 * ADMIN_ALLOCATED: 系统管理员分配的资源 * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。 * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 * @param {number} [limit] 每页显示的条目数量。 * @param {number} [offset] 偏移量,表示从此偏移量开始查询。 - * @param {string} [resource] 资源类型。 - * @param {string} [business] 业务类型。 - * @param {string} [resourceName] 资源名称。 + * @param {string} [resource] 资源类型。可填多个,用\",\"分隔。详见[资源类型](metastudio_02_0042.xml)。 + * @param {string} [business] 业务类型。可填多个,用\",\"分隔。 * VOICE_CLONE:声音制作 * SYNTHETICS_SOUND:声音合成 * ASSET_MANAGER:资产管理 * MODELING_2D:形象制作 * LIVE_2D:分身数字人视频直播 * VIDEO_2D:分身数字人视频制作 * CHAT_2D:分身数字人智能交互 * BUSINESS_CARD_2D:分身数字人名片 * PICTURE_2D:照片数字人视频 * MODELING_3D:3D照片建模 * VDS_3D:3D视觉驱动 * TTSA_3D:3D语音驱动 * FLEXUS_2D:FLEXUS版本资源 * @param {string} [resourceId] 资源id。 * @param {string} [orderId] 订单id。 - * @param {string} [chargingMode] 计费模式。 + * @param {string} [chargingMode] 计费类型。 * PERIODIC: 包周期 * ONE_TIME:一次性 * ON_DEMAND:按需 计费模式。 * @param {string} [resourceExpireStartTime] 资源过期时间段 开始时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" * @param {string} [resourceExpireEndTime] 资源过期时间段 结束时间。格式遵循:RFC 3339 如\"2021-01-10T08:43:17Z\" - * @param {string} [subResource] 子资源类型。 + * @param {string} [subResource] 子资源类型。当前只有flexus套餐包存在该字段 * voice_clone_flexus: 语音克隆Flexus版 * modeling_count_2d_model_flexus: 分身数字人形象制作Flexus版 * video_time_flexus_2d_model: 分身数字人Flexus版本视频制作 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3282,7 +3309,9 @@ export class MetaStudioClient { } /** - * 查看租户资源用量信息 + * 查询租户一次性和包周期(包年/包月)资源用量信息。 + * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询。[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。 + * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -3290,8 +3319,8 @@ export class MetaStudioClient { * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 格式为(YYYYMMDD\'T\'HHMMSS\'Z\')。 * @param {string} [xProjectId] 使用AK/SK方式认证时必选,携带项目ID信息。 - * @param {string} [resource] 资源类型。 - * @param {string} [business] 业务类型。 + * @param {string} [resource] 资源类型。可填多个,用\",\"分隔。详见[资源类型](metastudio_02_0042.xml)。 + * @param {string} [business] 业务类型。可填多个,用\",\"分隔。 * VOICE_CLONE:声音制作 * SYNTHETICS_SOUND:声音合成 * ASSET_MANAGER:资产管理 * MODELING_2D:形象制作 * LIVE_2D:分身数字人视频直播 * VIDEO_2D:分身数字人视频制作 * CHAT_2D:分身数字人智能交互 * BUSINESS_CARD_2D:分身数字人名片 * PICTURE_2D:照片数字人视频 * MODELING_3D:3D照片建模 * VDS_3D:3D视觉驱动 * TTSA_3D:3D语音驱动 * FLEXUS_2D:FLEXUS版本资源 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -10658,6 +10687,72 @@ export const ParamCreater = function () { return options; }, + /** + * 该接口用于校验应用。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + validateRobot(validateRobotRequest?: ValidateRobotRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/digital-human-chat/robot/validate", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let authorization; + + let xSdkDate; + + let xProjectId; + + let xAppUserId; + + if (validateRobotRequest !== null && validateRobotRequest !== undefined) { + if (validateRobotRequest instanceof ValidateRobotRequest) { + body = validateRobotRequest.body + authorization = validateRobotRequest.authorization; + xSdkDate = validateRobotRequest.xSdkDate; + xProjectId = validateRobotRequest.xProjectId; + xAppUserId = validateRobotRequest.xAppUserId; + } else { + body = validateRobotRequest['body']; + authorization = validateRobotRequest['Authorization']; + xSdkDate = validateRobotRequest['X-Sdk-Date']; + xProjectId = validateRobotRequest['X-Project-Id']; + xAppUserId = validateRobotRequest['X-App-UserId']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + if (xProjectId !== undefined && xProjectId !== null) { + localVarHeaderParameter['X-Project-Id'] = String(xProjectId); + } + if (xAppUserId !== undefined && xAppUserId !== null) { + localVarHeaderParameter['X-App-UserId'] = String(xAppUserId); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 该接口用于创建智能交互对话。 * @@ -12463,7 +12558,7 @@ export const ParamCreater = function () { }, /** - * 统计时间段内资源数量 + * 统计指定时间段内即将过期的包周期与一次性资源数量。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -12535,7 +12630,9 @@ export const ParamCreater = function () { }, /** - * 查看租户资源列表 + * 查看租户资源列表。 + * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询。[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。 + * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -12567,8 +12664,6 @@ export const ParamCreater = function () { let business; - let resourceName; - let resourceId; let orderId; @@ -12591,7 +12686,6 @@ export const ParamCreater = function () { offset = listTenantResourcesRequest.offset; resource = listTenantResourcesRequest.resource; business = listTenantResourcesRequest.business; - resourceName = listTenantResourcesRequest.resourceName; resourceId = listTenantResourcesRequest.resourceId; orderId = listTenantResourcesRequest.orderId; chargingMode = listTenantResourcesRequest.chargingMode; @@ -12607,7 +12701,6 @@ export const ParamCreater = function () { offset = listTenantResourcesRequest['offset']; resource = listTenantResourcesRequest['resource']; business = listTenantResourcesRequest['business']; - resourceName = listTenantResourcesRequest['resource_name']; resourceId = listTenantResourcesRequest['resource_id']; orderId = listTenantResourcesRequest['order_id']; chargingMode = listTenantResourcesRequest['charging_mode']; @@ -12636,9 +12729,6 @@ export const ParamCreater = function () { if (business !== null && business !== undefined) { localVarQueryParameter['business'] = business; } - if (resourceName !== null && resourceName !== undefined) { - localVarQueryParameter['resource_name'] = resourceName; - } if (resourceId !== null && resourceId !== undefined) { localVarQueryParameter['resource_id'] = resourceId; } @@ -12673,7 +12763,9 @@ export const ParamCreater = function () { }, /** - * 查看租户资源用量信息 + * 查询租户一次性和包周期(包年/包月)资源用量信息。 + * > 按需套餐包用量本接口无法查询,需要调用CBC接口查询。[按需套餐包用量查询](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0001239.html)和[查询资源包信息](https://cbc.huaweicloud.com/bm/support/api-apidt/CBCInterface_0000511.html)。 + * > 各种资源的计费方式请参考[计费说明](https://support.huaweicloud.com/productdesc-metastudio/metastudio_01_0006.html)。 * * Please refer to HUAWEI cloud API Explorer for details. */ diff --git a/services/metastudio/v1/model/ListTenantResourcesRequest.ts b/services/metastudio/v1/model/ListTenantResourcesRequest.ts index b25393498..fb94b3743 100644 --- a/services/metastudio/v1/model/ListTenantResourcesRequest.ts +++ b/services/metastudio/v1/model/ListTenantResourcesRequest.ts @@ -9,7 +9,6 @@ export class ListTenantResourcesRequest { public resource?: string; public business?: string; private 'resource_source'?: string; - private 'resource_name'?: string; private 'resource_id'?: string; private 'order_id'?: string; private 'charging_mode'?: string; @@ -75,16 +74,6 @@ export class ListTenantResourcesRequest { public get resourceSource(): string | undefined { return this['resource_source']; } - public withResourceName(resourceName: string): ListTenantResourcesRequest { - this['resource_name'] = resourceName; - return this; - } - public set resourceName(resourceName: string | undefined) { - this['resource_name'] = resourceName; - } - public get resourceName(): string | undefined { - return this['resource_name']; - } public withResourceId(resourceId: string): ListTenantResourcesRequest { this['resource_id'] = resourceId; return this; diff --git a/services/metastudio/v1/model/SystemProperty.ts b/services/metastudio/v1/model/SystemProperty.ts index e95d27dd1..30123f799 100644 --- a/services/metastudio/v1/model/SystemProperty.ts +++ b/services/metastudio/v1/model/SystemProperty.ts @@ -49,5 +49,6 @@ export enum SystemPropertyKeyEnum { PHOTO_VIDEO = 'PHOTO_VIDEO', TO_BE_TRANSLATED_VIDEO = 'TO_BE_TRANSLATED_VIDEO', TRANSLATED_VIDEO = 'TRANSLATED_VIDEO', - LAYER_CONFIG_ENABLE = 'LAYER_CONFIG_ENABLE' + LAYER_CONFIG_ENABLE = 'LAYER_CONFIG_ENABLE', + MEITUAN_MATERIAL_APPROVED = 'MEITUAN_MATERIAL_APPROVED' } diff --git a/services/metastudio/v1/model/ValidateRobotReq.ts b/services/metastudio/v1/model/ValidateRobotReq.ts new file mode 100644 index 000000000..7f67fb2ea --- /dev/null +++ b/services/metastudio/v1/model/ValidateRobotReq.ts @@ -0,0 +1,77 @@ +import { HuaweiEiCbs } from './HuaweiEiCbs'; +import { IflytekAiuiConfig } from './IflytekAiuiConfig'; +import { IflytekSpark } from './IflytekSpark'; +import { MobvoiConfig } from './MobvoiConfig'; +import { ThirdPartyModelConfig } from './ThirdPartyModelConfig'; + + +export class ValidateRobotReq { + private 'app_type'?: number; + private 'huawei_ei_cbs'?: HuaweiEiCbs; + private 'iflytek_aiui_config'?: IflytekAiuiConfig; + private 'iflytek_spark'?: IflytekSpark; + private 'third_party_model_config'?: ThirdPartyModelConfig; + private 'mobvoi_config'?: MobvoiConfig; + public constructor() { + } + public withAppType(appType: number): ValidateRobotReq { + this['app_type'] = appType; + return this; + } + public set appType(appType: number | undefined) { + this['app_type'] = appType; + } + public get appType(): number | undefined { + return this['app_type']; + } + public withHuaweiEiCbs(huaweiEiCbs: HuaweiEiCbs): ValidateRobotReq { + this['huawei_ei_cbs'] = huaweiEiCbs; + return this; + } + public set huaweiEiCbs(huaweiEiCbs: HuaweiEiCbs | undefined) { + this['huawei_ei_cbs'] = huaweiEiCbs; + } + public get huaweiEiCbs(): HuaweiEiCbs | undefined { + return this['huawei_ei_cbs']; + } + public withIflytekAiuiConfig(iflytekAiuiConfig: IflytekAiuiConfig): ValidateRobotReq { + this['iflytek_aiui_config'] = iflytekAiuiConfig; + return this; + } + public set iflytekAiuiConfig(iflytekAiuiConfig: IflytekAiuiConfig | undefined) { + this['iflytek_aiui_config'] = iflytekAiuiConfig; + } + public get iflytekAiuiConfig(): IflytekAiuiConfig | undefined { + return this['iflytek_aiui_config']; + } + public withIflytekSpark(iflytekSpark: IflytekSpark): ValidateRobotReq { + this['iflytek_spark'] = iflytekSpark; + return this; + } + public set iflytekSpark(iflytekSpark: IflytekSpark | undefined) { + this['iflytek_spark'] = iflytekSpark; + } + public get iflytekSpark(): IflytekSpark | undefined { + return this['iflytek_spark']; + } + public withThirdPartyModelConfig(thirdPartyModelConfig: ThirdPartyModelConfig): ValidateRobotReq { + this['third_party_model_config'] = thirdPartyModelConfig; + return this; + } + public set thirdPartyModelConfig(thirdPartyModelConfig: ThirdPartyModelConfig | undefined) { + this['third_party_model_config'] = thirdPartyModelConfig; + } + public get thirdPartyModelConfig(): ThirdPartyModelConfig | undefined { + return this['third_party_model_config']; + } + public withMobvoiConfig(mobvoiConfig: MobvoiConfig): ValidateRobotReq { + this['mobvoi_config'] = mobvoiConfig; + return this; + } + public set mobvoiConfig(mobvoiConfig: MobvoiConfig | undefined) { + this['mobvoi_config'] = mobvoiConfig; + } + public get mobvoiConfig(): MobvoiConfig | undefined { + return this['mobvoi_config']; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/model/ValidateRobotRequest.ts b/services/metastudio/v1/model/ValidateRobotRequest.ts new file mode 100644 index 000000000..605dffa98 --- /dev/null +++ b/services/metastudio/v1/model/ValidateRobotRequest.ts @@ -0,0 +1,56 @@ +import { ValidateRobotReq } from './ValidateRobotReq'; + + +export class ValidateRobotRequest { + private 'Authorization'?: string; + private 'X-Sdk-Date'?: string; + private 'X-Project-Id'?: string; + private 'X-App-UserId'?: string; + public body?: ValidateRobotReq; + public constructor() { + } + public withAuthorization(authorization: string): ValidateRobotRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization(): string | undefined { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ValidateRobotRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate(): string | undefined { + return this['X-Sdk-Date']; + } + public withXProjectId(xProjectId: string): ValidateRobotRequest { + this['X-Project-Id'] = xProjectId; + return this; + } + public set xProjectId(xProjectId: string | undefined) { + this['X-Project-Id'] = xProjectId; + } + public get xProjectId(): string | undefined { + return this['X-Project-Id']; + } + public withXAppUserId(xAppUserId: string): ValidateRobotRequest { + this['X-App-UserId'] = xAppUserId; + return this; + } + public set xAppUserId(xAppUserId: string | undefined) { + this['X-App-UserId'] = xAppUserId; + } + public get xAppUserId(): string | undefined { + return this['X-App-UserId']; + } + public withBody(body: ValidateRobotReq): ValidateRobotRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/model/ValidateRobotResponse.ts b/services/metastudio/v1/model/ValidateRobotResponse.ts new file mode 100644 index 000000000..0a4e8df22 --- /dev/null +++ b/services/metastudio/v1/model/ValidateRobotResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ValidateRobotResponse extends SdkResponse { + private 'X-Request-Id'?: string; + public constructor() { + super(); + } + public withXRequestId(xRequestId: string): ValidateRobotResponse { + this['X-Request-Id'] = xRequestId; + return this; + } + public set xRequestId(xRequestId: string | undefined) { + this['X-Request-Id'] = xRequestId; + } + public get xRequestId(): string | undefined { + return this['X-Request-Id']; + } +} \ No newline at end of file diff --git a/services/metastudio/v1/public-api.ts b/services/metastudio/v1/public-api.ts index 3e819a1d7..42a64548e 100644 --- a/services/metastudio/v1/public-api.ts +++ b/services/metastudio/v1/public-api.ts @@ -530,6 +530,9 @@ export * from './model/UpdateWelcomeSpeechResponse'; export * from './model/UpdateWelcomeSpeechSwitchReq'; export * from './model/UpdateWelcomeSpeechSwitchRequest'; export * from './model/UpdateWelcomeSpeechSwitchResponse'; +export * from './model/ValidateRobotReq'; +export * from './model/ValidateRobotRequest'; +export * from './model/ValidateRobotResponse'; export * from './model/VerifyVideoMattingInfo'; export * from './model/VideoAssetMeta'; export * from './model/VideoConfig'; diff --git a/services/mpc/v1/model/CreateExtractTaskReq.ts b/services/mpc/v1/model/CreateExtractTaskReq.ts index 17db9a958..e3dc7eb89 100644 --- a/services/mpc/v1/model/CreateExtractTaskReq.ts +++ b/services/mpc/v1/model/CreateExtractTaskReq.ts @@ -1,4 +1,5 @@ import { CommonCreateTaskReq } from './CommonCreateTaskReq'; +import { Encryption } from './Encryption'; import { ObsObjInfo } from './ObsObjInfo'; @@ -7,6 +8,7 @@ export class CreateExtractTaskReq { public output?: ObsObjInfo; private 'user_data'?: string; public sync?: number; + public encryption?: Encryption; public constructor() { } public withInput(input: ObsObjInfo): CreateExtractTaskReq { @@ -31,4 +33,8 @@ export class CreateExtractTaskReq { this['sync'] = sync; return this; } + public withEncryption(encryption: Encryption): CreateExtractTaskReq { + this['encryption'] = encryption; + return this; + } } \ No newline at end of file diff --git a/services/mpc/v1/model/VideoParameters.ts b/services/mpc/v1/model/VideoParameters.ts index c8acf5a5c..552e940f7 100644 --- a/services/mpc/v1/model/VideoParameters.ts +++ b/services/mpc/v1/model/VideoParameters.ts @@ -4,6 +4,8 @@ import { OutputPolicy } from './OutputPolicy'; export class VideoParameters { private 'output_policy'?: VideoParametersOutputPolicyEnum | string; public codec?: number; + public crf?: object; + private 'max_bitrate'?: number; public bitrate?: number; public profile?: number; public level?: number; @@ -30,6 +32,20 @@ export class VideoParameters { this['codec'] = codec; return this; } + public withCrf(crf: object): VideoParameters { + this['crf'] = crf; + return this; + } + public withMaxBitrate(maxBitrate: number): VideoParameters { + this['max_bitrate'] = maxBitrate; + return this; + } + public set maxBitrate(maxBitrate: number | undefined) { + this['max_bitrate'] = maxBitrate; + } + public get maxBitrate(): number | undefined { + return this['max_bitrate']; + } public withBitrate(bitrate: number): VideoParameters { this['bitrate'] = bitrate; return this; diff --git a/services/nat/v2/NatRegion.ts b/services/nat/v2/NatRegion.ts index 18515cd38..83617316f 100644 --- a/services/nat/v2/NatRegion.ts +++ b/services/nat/v2/NatRegion.ts @@ -32,6 +32,7 @@ export class NatRegion { public static CN_SOUTH_4 = new Region("cn-south-4", ["https://nat.cn-south-4.myhuaweicloud.com"]); public static EU_WEST_101 = new Region("eu-west-101", ["https://nat.eu-west-101.myhuaweicloud.eu"]); public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://nat.my-kualalumpur-1.myhuaweicloud.com"]); + public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://nat.ru-moscow-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -60,7 +61,8 @@ export class NatRegion { "ap-southeast-4":NatRegion.AP_SOUTHEAST_4, "cn-south-4":NatRegion.CN_SOUTH_4, "eu-west-101":NatRegion.EU_WEST_101, - "my-kualalumpur-1":NatRegion.MY_KUALALUMPUR_1 + "my-kualalumpur-1":NatRegion.MY_KUALALUMPUR_1, + "ru-moscow-1":NatRegion.RU_MOSCOW_1 }; public static valueOf(regionId: string) { diff --git a/services/vpcep/v1/model/ListEndpointInfoDetailsResponse.ts b/services/vpcep/v1/model/ListEndpointInfoDetailsResponse.ts index 9dd93e4b0..3cb88212c 100644 --- a/services/vpcep/v1/model/ListEndpointInfoDetailsResponse.ts +++ b/services/vpcep/v1/model/ListEndpointInfoDetailsResponse.ts @@ -23,7 +23,7 @@ export class ListEndpointInfoDetailsResponse extends SdkResponse { private 'updated_at'?: Date; private 'project_id'?: string; public tags?: Array; - public error?: QueryError; + public error?: Array; public whitelist?: Array; private 'enable_whitelist'?: boolean; public routetables?: Array; @@ -192,7 +192,7 @@ export class ListEndpointInfoDetailsResponse extends SdkResponse { this['tags'] = tags; return this; } - public withError(error: QueryError): ListEndpointInfoDetailsResponse { + public withError(error: Array): ListEndpointInfoDetailsResponse { this['error'] = error; return this; } diff --git a/services/waf/v1/model/CloudWafHostItem.ts b/services/waf/v1/model/CloudWafHostItem.ts index ac5bca99f..b651c4bf9 100644 --- a/services/waf/v1/model/CloudWafHostItem.ts +++ b/services/waf/v1/model/CloudWafHostItem.ts @@ -1,3 +1,4 @@ +import { CloudWafServer } from './CloudWafServer'; import { Flag } from './Flag'; @@ -6,6 +7,7 @@ export class CloudWafHostItem { public hostid?: string; public region?: string; public description?: string; + public server?: Array; public type?: number; public proxy?: boolean; public hostname?: string; @@ -36,6 +38,10 @@ export class CloudWafHostItem { this['description'] = description; return this; } + public withServer(server: Array): CloudWafHostItem { + this['server'] = server; + return this; + } public withType(type: number): CloudWafHostItem { this['type'] = type; return this;