@huaweicloud/huaweicloud-sdk-cdn 3.1.45 → 3.1.46
Sign up to get free protection for your applications and to get access to all the features.
- package/huaweicloud-sdk-cdn.ts +6 -0
- package/package.json +4 -4
- package/v1/{CdnClient.js → CdnClient.ts} +1429 -895
- package/v1/CdnRegion.ts +28 -0
- package/v1/model/BatchDeleteTagsRequest.ts +12 -0
- package/v1/model/BatchDeleteTagsResponse.ts +8 -0
- package/v1/model/BlackWhiteListBody.ts +23 -0
- package/v1/model/CacheConfig.ts +40 -0
- package/v1/model/CacheConfigRequest.ts +40 -0
- package/v1/model/CacheConfigRequestBody.ts +19 -0
- package/v1/model/CacheRules.ts +88 -0
- package/v1/model/CacheUrlParameterFilter.ts +16 -0
- package/v1/model/CdnIps.ts +31 -0
- package/v1/model/Compress.ts +17 -0
- package/v1/model/CompressRequest.ts +17 -0
- package/v1/model/CompressResponse.ts +30 -0
- package/v1/model/CompressRules.ts +28 -0
- package/v1/model/Configs.ts +206 -0
- package/v1/model/ConfigsGetBody.ts +206 -0
- package/v1/model/CreateDomainRequest.ts +12 -0
- package/v1/model/CreateDomainRequestBody.ts +13 -0
- package/v1/model/CreateDomainResponse.ts +14 -0
- package/v1/model/CreateDomainResponseBodyContent.ts +176 -0
- package/v1/model/CreatePreheatingTasksRequest.ts +23 -0
- package/v1/model/CreatePreheatingTasksResponse.ts +19 -0
- package/v1/model/CreateRefreshTasksRequest.ts +23 -0
- package/v1/model/CreateRefreshTasksResponse.ts +19 -0
- package/v1/model/CreateTagsRequest.ts +12 -0
- package/v1/model/CreateTagsRequestBody.ts +24 -0
- package/v1/model/CreateTagsResponse.ts +8 -0
- package/v1/model/DeleteDomainRequest.ts +29 -0
- package/v1/model/DeleteDomainResponse.ts +14 -0
- package/v1/model/DeleteTagsRequestBody.ts +24 -0
- package/v1/model/DisableDomainRequest.ts +29 -0
- package/v1/model/DisableDomainResponse.ts +14 -0
- package/v1/model/DomainBody.ts +80 -0
- package/v1/model/DomainItemDetail.ts +44 -0
- package/v1/model/DomainItemLocationDetails.ts +45 -0
- package/v1/model/DomainOriginHost.ts +40 -0
- package/v1/model/DomainRegion.ts +28 -0
- package/v1/model/Domains.ts +225 -0
- package/v1/model/DomainsWithPort.ts +219 -0
- package/v1/model/EnableDomainRequest.ts +29 -0
- package/v1/model/EnableDomainResponse.ts +14 -0
- package/v1/model/EpResourceTag.ts +18 -0
- package/v1/model/ErrorCodeCache.ts +16 -0
- package/v1/model/ErrorCodeRedirectRules.ts +42 -0
- package/v1/model/Follow302StatusBody.ts +37 -0
- package/v1/model/Follow302StatusRequest.ts +27 -0
- package/v1/model/ForceRedirect.ts +29 -0
- package/v1/model/ForceRedirectConfig.ts +28 -0
- package/v1/model/HeaderBody.ts +12 -0
- package/v1/model/HeaderMap.ts +72 -0
- package/v1/model/HttpGetBody.ts +72 -0
- package/v1/model/HttpInfoRequest.ts +13 -0
- package/v1/model/HttpInfoRequestBody.ts +85 -0
- package/v1/model/HttpInfoResponseBody.ts +94 -0
- package/v1/model/HttpPutBody.ts +83 -0
- package/v1/model/HttpResponseHeader.ts +23 -0
- package/v1/model/HttpsDetail.ts +116 -0
- package/v1/model/IpFilter.ts +17 -0
- package/v1/model/ListDomainsRequest.ts +138 -0
- package/v1/model/ListDomainsResponse.ts +19 -0
- package/v1/model/LogObject.ts +54 -0
- package/v1/model/ModelMap.ts +17 -0
- package/v1/model/ModifyDomainConfigRequestBody.ts +12 -0
- package/v1/model/OriginHostBody.ts +38 -0
- package/v1/model/OriginHostRequest.ts +19 -0
- package/v1/model/OriginRangeBody.ts +37 -0
- package/v1/model/OriginRequest.ts +13 -0
- package/v1/model/OriginRequestHeader.ts +23 -0
- package/v1/model/OriginRequestUrlRewrite.ts +47 -0
- package/v1/model/PreheatingTaskRequest.ts +19 -0
- package/v1/model/PreheatingTaskRequestBody.ts +12 -0
- package/v1/model/Quotas.ts +38 -0
- package/v1/model/RangeStatusRequest.ts +27 -0
- package/v1/model/Referer.ts +40 -0
- package/v1/model/RefererBody.ts +13 -0
- package/v1/model/RefererConfig.ts +28 -0
- package/v1/model/RefererRsp.ts +39 -0
- package/v1/model/RefreshTaskRequest.ts +19 -0
- package/v1/model/RefreshTaskRequestBody.ts +39 -0
- package/v1/model/ResourceBody.ts +13 -0
- package/v1/model/Rules.ts +47 -0
- package/v1/model/ShowBlackWhiteListRequest.ts +29 -0
- package/v1/model/ShowBlackWhiteListResponse.ts +24 -0
- package/v1/model/ShowCacheRulesRequest.ts +29 -0
- package/v1/model/ShowCacheRulesResponse.ts +20 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.ts +61 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.ts +19 -0
- package/v1/model/ShowDomainDetailRequest.ts +29 -0
- package/v1/model/ShowDomainDetailResponse.ts +14 -0
- package/v1/model/ShowDomainFullConfigRequest.ts +29 -0
- package/v1/model/ShowDomainFullConfigResponse.ts +14 -0
- package/v1/model/ShowDomainItemDetailsRequest.ts +76 -0
- package/v1/model/ShowDomainItemDetailsResponse.ts +20 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.ts +77 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.ts +20 -0
- package/v1/model/ShowDomainLocationStatsRequest.ts +102 -0
- package/v1/model/ShowDomainLocationStatsResponse.ts +24 -0
- package/v1/model/ShowDomainStatsRequest.ts +98 -0
- package/v1/model/ShowDomainStatsResponse.ts +13 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.ts +72 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.ts +77 -0
- package/v1/model/ShowHistoryTasksRequest.ts +116 -0
- package/v1/model/ShowHistoryTasksResponse.ts +19 -0
- package/v1/model/ShowHttpInfoRequest.ts +29 -0
- package/v1/model/ShowHttpInfoResponse.ts +14 -0
- package/v1/model/ShowIpInfoRequest.ts +23 -0
- package/v1/model/ShowIpInfoResponse.ts +20 -0
- package/v1/model/ShowLogsRequest.ts +73 -0
- package/v1/model/ShowLogsResponse.ts +19 -0
- package/v1/model/ShowOriginHostRequest.ts +29 -0
- package/v1/model/ShowOriginHostResponse.ts +20 -0
- package/v1/model/ShowQuotaRequest.ts +6 -0
- package/v1/model/ShowQuotaResponse.ts +14 -0
- package/v1/model/ShowReferRequest.ts +29 -0
- package/v1/model/ShowReferResponse.ts +14 -0
- package/v1/model/ShowResponseHeaderRequest.ts +29 -0
- package/v1/model/ShowResponseHeaderResponse.ts +14 -0
- package/v1/model/ShowTagsRequest.ts +18 -0
- package/v1/model/ShowTagsResponse.ts +13 -0
- package/v1/model/ShowTopUrlRequest.ts +93 -0
- package/v1/model/ShowTopUrlResponse.ts +31 -0
- package/v1/model/ShowUrlTaskInfoRequest.ts +70 -0
- package/v1/model/ShowUrlTaskInfoResponse.ts +35 -0
- package/v1/model/SourceWithPort.ts +96 -0
- package/v1/model/Sources.ts +74 -0
- package/v1/model/SourcesConfig.ts +80 -0
- package/v1/model/TasksObject.ts +86 -0
- package/v1/model/TopUrlSummary.ts +49 -0
- package/v1/model/UpdateBlackWhiteListRequest.ts +35 -0
- package/v1/model/UpdateBlackWhiteListResponse.ts +23 -0
- package/v1/model/UpdateCacheRulesRequest.ts +35 -0
- package/v1/model/UpdateCacheRulesResponse.ts +20 -0
- package/v1/model/UpdateDomainFullConfigRequest.ts +35 -0
- package/v1/model/UpdateDomainFullConfigResponse.ts +8 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.ts +23 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.ts +12 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.ts +107 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.ts +14 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.ts +106 -0
- package/v1/model/UpdateDomainOriginRequest.ts +35 -0
- package/v1/model/UpdateDomainOriginResponse.ts +14 -0
- package/v1/model/UpdateFollow302SwitchRequest.ts +35 -0
- package/v1/model/UpdateFollow302SwitchResponse.ts +20 -0
- package/v1/model/UpdateHttpsInfoRequest.ts +35 -0
- package/v1/model/UpdateHttpsInfoResponse.ts +14 -0
- package/v1/model/UpdateOriginHostRequest.ts +35 -0
- package/v1/model/UpdateOriginHostResponse.ts +20 -0
- package/v1/model/UpdatePrivateBucketAccessBody.ts +11 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.ts +35 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.ts +13 -0
- package/v1/model/UpdateRangeSwitchRequest.ts +35 -0
- package/v1/model/UpdateRangeSwitchResponse.ts +20 -0
- package/v1/model/UpdateReferRequest.ts +35 -0
- package/v1/model/UpdateReferResponse.ts +14 -0
- package/v1/model/UpdateResponseHeaderRequest.ts +35 -0
- package/v1/model/UpdateResponseHeaderResponse.ts +14 -0
- package/v1/model/UrlAuth.ts +44 -0
- package/v1/model/UrlAuthGetBody.ts +39 -0
- package/v1/model/UrlObject.ts +54 -0
- package/v1/model/Urls.ts +70 -0
- package/v1/model/UserAgentFilter.ts +17 -0
- package/v1/{public-api.d.ts → public-api.ts} +1 -0
- package/v2/{CdnClient.js → CdnClient.ts} +666 -449
- package/v2/CdnRegion.ts +28 -0
- package/v2/model/BackSources.ts +63 -0
- package/v2/model/BatchCopyConfigs.ts +42 -0
- package/v2/model/BatchCopyDRequestBody.ts +13 -0
- package/v2/model/BatchCopyDomainRequest.ts +12 -0
- package/v2/model/BatchCopyDomainResponse.ts +14 -0
- package/v2/model/BatchCopyErrorRsp.ts +12 -0
- package/v2/model/BatchCopyErrorRspError.ts +28 -0
- package/v2/model/BatchCopyResultVo.ts +38 -0
- package/v2/model/CacheRules.ts +88 -0
- package/v2/model/CacheUrlParameterFilter.ts +16 -0
- package/v2/model/CommonRemoteAuth.ts +31 -0
- package/v2/model/Compress.ts +29 -0
- package/v2/model/Configs.ts +304 -0
- package/v2/model/ConfigsGetBody.ts +304 -0
- package/v2/model/CustomArgs.ts +24 -0
- package/v2/model/DomainOriginHost.ts +40 -0
- package/v2/model/Domains.ts +214 -0
- package/v2/model/DomainsWithPort.ts +119 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.ts +96 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.ts +8 -0
- package/v2/model/DownloadStatisticsExcelRequest.ts +92 -0
- package/v2/model/DownloadStatisticsExcelResponse.ts +8 -0
- package/v2/model/EpResourceTag.ts +18 -0
- package/v2/model/ErrMsg.ts +30 -0
- package/v2/model/ErrRsp.ts +13 -0
- package/v2/model/ErrorCodeCache.ts +16 -0
- package/v2/model/ErrorCodeRedirectRules.ts +42 -0
- package/v2/model/FlexibleOrigins.ts +49 -0
- package/v2/model/ForceRedirectConfig.ts +28 -0
- package/v2/model/HttpGetBody.ts +105 -0
- package/v2/model/HttpPutBody.ts +105 -0
- package/v2/model/HttpResponseHeader.ts +23 -0
- package/v2/model/IpFilter.ts +17 -0
- package/v2/model/ListDomainsRequest.ts +105 -0
- package/v2/model/ListDomainsResponse.ts +19 -0
- package/v2/model/ModifyDomainConfigRequestBody.ts +12 -0
- package/v2/model/OriginRequestHeader.ts +23 -0
- package/v2/model/OriginRequestUrlRewrite.ts +47 -0
- package/v2/model/RefererConfig.ts +28 -0
- package/v2/model/RemoteAuthRuleVo.ts +176 -0
- package/v2/model/RequestLimitRules.ts +40 -0
- package/v2/model/SetChargeModesBody.ts +42 -0
- package/v2/model/SetChargeModesRequest.ts +12 -0
- package/v2/model/SetChargeModesResponse.ts +68 -0
- package/v2/model/ShowBandwidthCalcRequest.ts +76 -0
- package/v2/model/ShowBandwidthCalcResponse.ts +19 -0
- package/v2/model/ShowChargeModesRequest.ts +34 -0
- package/v2/model/ShowChargeModesResponse.ts +13 -0
- package/v2/model/ShowDomainDetailByNameRequest.ts +29 -0
- package/v2/model/ShowDomainDetailByNameResponse.ts +14 -0
- package/v2/model/ShowDomainFullConfigRequest.ts +40 -0
- package/v2/model/ShowDomainFullConfigResponse.ts +14 -0
- package/v2/model/ShowDomainLocationStatsRequest.ts +102 -0
- package/v2/model/ShowDomainLocationStatsResponse.ts +24 -0
- package/v2/model/ShowDomainStatsRequest.ts +98 -0
- package/v2/model/ShowDomainStatsResponse.ts +13 -0
- package/v2/model/ShowTopDomainNamesRequest.ts +69 -0
- package/v2/model/ShowTopDomainNamesResponse.ts +19 -0
- package/v2/model/ShowTopUrlRequest.ts +76 -0
- package/v2/model/ShowTopUrlResponse.ts +31 -0
- package/v2/model/Sources.ts +74 -0
- package/v2/model/SourcesConfig.ts +96 -0
- package/v2/model/TopUrlSummary.ts +49 -0
- package/v2/model/UpdateDomainFullConfigRequest.ts +35 -0
- package/v2/model/UpdateDomainFullConfigResponse.ts +8 -0
- package/v2/model/UrlAuth.ts +91 -0
- package/v2/model/UrlAuthGetBody.ts +88 -0
- package/v2/model/UserAgentFilter.ts +28 -0
- package/v2/model/VideoSeek.ts +51 -0
- package/v2/model/WebSocketSeek.ts +18 -0
- package/v2/{public-api.d.ts → public-api.ts} +1 -0
- package/LICENSE +0 -13
- package/README.md +0 -1
- package/huaweicloud-sdk-cdn.d.ts +0 -3
- package/huaweicloud-sdk-cdn.js +0 -32
- package/v1/CdnClient.d.ts +0 -1357
- package/v1/CdnRegion.d.ts +0 -6
- package/v1/CdnRegion.js +0 -25
- package/v1/model/BatchDeleteTagsRequest.d.ts +0 -6
- package/v1/model/BatchDeleteTagsRequest.js +0 -13
- package/v1/model/BatchDeleteTagsResponse.d.ts +0 -4
- package/v1/model/BatchDeleteTagsResponse.js +0 -27
- package/v1/model/BlackWhiteListBody.d.ts +0 -9
- package/v1/model/BlackWhiteListBody.js +0 -28
- package/v1/model/CacheConfig.d.ts +0 -17
- package/v1/model/CacheConfig.js +0 -45
- package/v1/model/CacheConfigRequest.d.ts +0 -17
- package/v1/model/CacheConfigRequest.js +0 -45
- package/v1/model/CacheConfigRequestBody.d.ts +0 -8
- package/v1/model/CacheConfigRequestBody.js +0 -24
- package/v1/model/CacheRules.d.ts +0 -31
- package/v1/model/CacheRules.js +0 -107
- package/v1/model/CacheUrlParameterFilter.d.ts +0 -7
- package/v1/model/CacheUrlParameterFilter.js +0 -17
- package/v1/model/CdnIps.d.ts +0 -13
- package/v1/model/CdnIps.js +0 -29
- package/v1/model/Compress.d.ts +0 -7
- package/v1/model/Compress.js +0 -18
- package/v1/model/CompressRequest.d.ts +0 -7
- package/v1/model/CompressRequest.js +0 -23
- package/v1/model/CompressResponse.d.ts +0 -12
- package/v1/model/CompressResponse.js +0 -38
- package/v1/model/CompressRules.d.ts +0 -11
- package/v1/model/CompressRules.js +0 -37
- package/v1/model/Configs.d.ts +0 -86
- package/v1/model/Configs.js +0 -235
- package/v1/model/ConfigsGetBody.d.ts +0 -86
- package/v1/model/ConfigsGetBody.js +0 -235
- package/v1/model/CreateDomainRequest.d.ts +0 -6
- package/v1/model/CreateDomainRequest.js +0 -13
- package/v1/model/CreateDomainRequestBody.d.ts +0 -6
- package/v1/model/CreateDomainRequestBody.js +0 -14
- package/v1/model/CreateDomainResponse.d.ts +0 -7
- package/v1/model/CreateDomainResponse.js +0 -31
- package/v1/model/CreateDomainResponseBodyContent.d.ts +0 -67
- package/v1/model/CreateDomainResponseBodyContent.js +0 -211
- package/v1/model/CreatePreheatingTasksRequest.d.ts +0 -10
- package/v1/model/CreatePreheatingTasksRequest.js +0 -27
- package/v1/model/CreatePreheatingTasksResponse.d.ts +0 -8
- package/v1/model/CreatePreheatingTasksResponse.js +0 -41
- package/v1/model/CreateRefreshTasksRequest.d.ts +0 -10
- package/v1/model/CreateRefreshTasksRequest.js +0 -27
- package/v1/model/CreateRefreshTasksResponse.d.ts +0 -8
- package/v1/model/CreateRefreshTasksResponse.js +0 -41
- package/v1/model/CreateTagsRequest.d.ts +0 -6
- package/v1/model/CreateTagsRequest.js +0 -13
- package/v1/model/CreateTagsRequestBody.d.ts +0 -9
- package/v1/model/CreateTagsRequestBody.js +0 -29
- package/v1/model/CreateTagsResponse.d.ts +0 -4
- package/v1/model/CreateTagsResponse.js +0 -27
- package/v1/model/DeleteDomainRequest.d.ts +0 -11
- package/v1/model/DeleteDomainRequest.js +0 -38
- package/v1/model/DeleteDomainResponse.d.ts +0 -7
- package/v1/model/DeleteDomainResponse.js +0 -31
- package/v1/model/DeleteTagsRequestBody.d.ts +0 -9
- package/v1/model/DeleteTagsRequestBody.js +0 -29
- package/v1/model/DisableDomainRequest.d.ts +0 -11
- package/v1/model/DisableDomainRequest.js +0 -38
- package/v1/model/DisableDomainResponse.d.ts +0 -7
- package/v1/model/DisableDomainResponse.js +0 -31
- package/v1/model/DomainBody.d.ts +0 -41
- package/v1/model/DomainBody.js +0 -94
- package/v1/model/DomainItemDetail.d.ts +0 -21
- package/v1/model/DomainItemDetail.js +0 -55
- package/v1/model/DomainItemLocationDetails.d.ts +0 -18
- package/v1/model/DomainItemLocationDetails.js +0 -55
- package/v1/model/DomainOriginHost.d.ts +0 -15
- package/v1/model/DomainOriginHost.js +0 -52
- package/v1/model/DomainRegion.d.ts +0 -17
- package/v1/model/DomainRegion.js +0 -37
- package/v1/model/Domains.d.ts +0 -91
- package/v1/model/Domains.js +0 -267
- package/v1/model/DomainsWithPort.d.ts +0 -88
- package/v1/model/DomainsWithPort.js +0 -263
- package/v1/model/EnableDomainRequest.d.ts +0 -11
- package/v1/model/EnableDomainRequest.js +0 -38
- package/v1/model/EnableDomainResponse.d.ts +0 -7
- package/v1/model/EnableDomainResponse.js +0 -31
- package/v1/model/EpResourceTag.d.ts +0 -7
- package/v1/model/EpResourceTag.js +0 -19
- package/v1/model/ErrorCodeCache.d.ts +0 -7
- package/v1/model/ErrorCodeCache.js +0 -17
- package/v1/model/ErrorCodeRedirectRules.d.ts +0 -15
- package/v1/model/ErrorCodeRedirectRules.js +0 -54
- package/v1/model/Follow302StatusBody.d.ts +0 -19
- package/v1/model/Follow302StatusBody.js +0 -46
- package/v1/model/Follow302StatusRequest.d.ts +0 -15
- package/v1/model/Follow302StatusRequest.js +0 -33
- package/v1/model/ForceRedirect.d.ts +0 -11
- package/v1/model/ForceRedirect.js +0 -38
- package/v1/model/ForceRedirectConfig.d.ts +0 -11
- package/v1/model/ForceRedirectConfig.js +0 -32
- package/v1/model/HeaderBody.d.ts +0 -6
- package/v1/model/HeaderBody.js +0 -13
- package/v1/model/HeaderMap.d.ts +0 -27
- package/v1/model/HeaderMap.js +0 -93
- package/v1/model/HttpGetBody.d.ts +0 -27
- package/v1/model/HttpGetBody.js +0 -93
- package/v1/model/HttpInfoRequest.d.ts +0 -6
- package/v1/model/HttpInfoRequest.js +0 -14
- package/v1/model/HttpInfoRequestBody.d.ts +0 -32
- package/v1/model/HttpInfoRequestBody.js +0 -103
- package/v1/model/HttpInfoResponseBody.d.ts +0 -36
- package/v1/model/HttpInfoResponseBody.js +0 -115
- package/v1/model/HttpPutBody.d.ts +0 -31
- package/v1/model/HttpPutBody.js +0 -107
- package/v1/model/HttpResponseHeader.d.ts +0 -9
- package/v1/model/HttpResponseHeader.js +0 -23
- package/v1/model/HttpsDetail.d.ts +0 -44
- package/v1/model/HttpsDetail.js +0 -143
- package/v1/model/IpFilter.d.ts +0 -7
- package/v1/model/IpFilter.js +0 -18
- package/v1/model/ListDomainsRequest.d.ts +0 -71
- package/v1/model/ListDomainsRequest.js +0 -170
- package/v1/model/ListDomainsResponse.d.ts +0 -9
- package/v1/model/ListDomainsResponse.js +0 -35
- package/v1/model/LogObject.d.ts +0 -21
- package/v1/model/LogObject.js +0 -63
- package/v1/model/ModelMap.d.ts +0 -7
- package/v1/model/ModelMap.js +0 -18
- package/v1/model/ModifyDomainConfigRequestBody.d.ts +0 -6
- package/v1/model/ModifyDomainConfigRequestBody.js +0 -13
- package/v1/model/OriginHostBody.d.ts +0 -19
- package/v1/model/OriginHostBody.js +0 -47
- package/v1/model/OriginHostRequest.d.ts +0 -8
- package/v1/model/OriginHostRequest.js +0 -24
- package/v1/model/OriginRangeBody.d.ts +0 -19
- package/v1/model/OriginRangeBody.js +0 -46
- package/v1/model/OriginRequest.d.ts +0 -6
- package/v1/model/OriginRequest.js +0 -14
- package/v1/model/OriginRequestHeader.d.ts +0 -9
- package/v1/model/OriginRequestHeader.js +0 -23
- package/v1/model/OriginRequestUrlRewrite.d.ts +0 -17
- package/v1/model/OriginRequestUrlRewrite.js +0 -58
- package/v1/model/PreheatingTaskRequest.d.ts +0 -8
- package/v1/model/PreheatingTaskRequest.js +0 -24
- package/v1/model/PreheatingTaskRequestBody.d.ts +0 -5
- package/v1/model/PreheatingTaskRequestBody.js +0 -14
- package/v1/model/Quotas.d.ts +0 -15
- package/v1/model/Quotas.js +0 -45
- package/v1/model/RangeStatusRequest.d.ts +0 -15
- package/v1/model/RangeStatusRequest.js +0 -33
- package/v1/model/Referer.d.ts +0 -15
- package/v1/model/Referer.js +0 -52
- package/v1/model/RefererBody.d.ts +0 -6
- package/v1/model/RefererBody.js +0 -14
- package/v1/model/RefererConfig.d.ts +0 -11
- package/v1/model/RefererConfig.js +0 -32
- package/v1/model/RefererRsp.d.ts +0 -15
- package/v1/model/RefererRsp.js +0 -51
- package/v1/model/RefreshTaskRequest.d.ts +0 -8
- package/v1/model/RefreshTaskRequest.js +0 -24
- package/v1/model/RefreshTaskRequestBody.d.ts +0 -25
- package/v1/model/RefreshTaskRequestBody.js +0 -40
- package/v1/model/ResourceBody.d.ts +0 -6
- package/v1/model/ResourceBody.js +0 -14
- package/v1/model/Rules.d.ts +0 -17
- package/v1/model/Rules.js +0 -53
- package/v1/model/ShowBlackWhiteListRequest.d.ts +0 -11
- package/v1/model/ShowBlackWhiteListRequest.js +0 -38
- package/v1/model/ShowBlackWhiteListResponse.d.ts +0 -10
- package/v1/model/ShowBlackWhiteListResponse.js +0 -45
- package/v1/model/ShowCacheRulesRequest.d.ts +0 -11
- package/v1/model/ShowCacheRulesRequest.js +0 -38
- package/v1/model/ShowCacheRulesResponse.d.ts +0 -9
- package/v1/model/ShowCacheRulesResponse.js +0 -41
- package/v1/model/ShowCertificatesHttpsInfoRequest.d.ts +0 -23
- package/v1/model/ShowCertificatesHttpsInfoRequest.js +0 -79
- package/v1/model/ShowCertificatesHttpsInfoResponse.d.ts +0 -9
- package/v1/model/ShowCertificatesHttpsInfoResponse.js +0 -35
- package/v1/model/ShowDomainDetailRequest.d.ts +0 -11
- package/v1/model/ShowDomainDetailRequest.js +0 -38
- package/v1/model/ShowDomainDetailResponse.d.ts +0 -7
- package/v1/model/ShowDomainDetailResponse.js +0 -31
- package/v1/model/ShowDomainFullConfigRequest.d.ts +0 -11
- package/v1/model/ShowDomainFullConfigRequest.js +0 -38
- package/v1/model/ShowDomainFullConfigResponse.d.ts +0 -7
- package/v1/model/ShowDomainFullConfigResponse.js +0 -31
- package/v1/model/ShowDomainItemDetailsRequest.d.ts +0 -27
- package/v1/model/ShowDomainItemDetailsRequest.js +0 -97
- package/v1/model/ShowDomainItemDetailsResponse.d.ts +0 -9
- package/v1/model/ShowDomainItemDetailsResponse.js +0 -41
- package/v1/model/ShowDomainItemLocationDetailsRequest.d.ts +0 -27
- package/v1/model/ShowDomainItemLocationDetailsRequest.js +0 -93
- package/v1/model/ShowDomainItemLocationDetailsResponse.d.ts +0 -9
- package/v1/model/ShowDomainItemLocationDetailsResponse.js +0 -41
- package/v1/model/ShowDomainLocationStatsRequest.d.ts +0 -37
- package/v1/model/ShowDomainLocationStatsRequest.js +0 -118
- package/v1/model/ShowDomainLocationStatsResponse.d.ts +0 -14
- package/v1/model/ShowDomainLocationStatsResponse.js +0 -45
- package/v1/model/ShowDomainStatsRequest.d.ts +0 -35
- package/v1/model/ShowDomainStatsRequest.js +0 -120
- package/v1/model/ShowDomainStatsResponse.d.ts +0 -10
- package/v1/model/ShowDomainStatsResponse.js +0 -31
- package/v1/model/ShowHistoryTaskDetailsRequest.d.ts +0 -27
- package/v1/model/ShowHistoryTaskDetailsRequest.js +0 -88
- package/v1/model/ShowHistoryTaskDetailsResponse.d.ts +0 -31
- package/v1/model/ShowHistoryTaskDetailsResponse.js +0 -97
- package/v1/model/ShowHistoryTasksRequest.d.ts +0 -53
- package/v1/model/ShowHistoryTasksRequest.js +0 -143
- package/v1/model/ShowHistoryTasksResponse.d.ts +0 -9
- package/v1/model/ShowHistoryTasksResponse.js +0 -35
- package/v1/model/ShowHttpInfoRequest.d.ts +0 -11
- package/v1/model/ShowHttpInfoRequest.js +0 -38
- package/v1/model/ShowHttpInfoResponse.d.ts +0 -7
- package/v1/model/ShowHttpInfoResponse.js +0 -31
- package/v1/model/ShowIpInfoRequest.d.ts +0 -9
- package/v1/model/ShowIpInfoRequest.js +0 -28
- package/v1/model/ShowIpInfoResponse.d.ts +0 -9
- package/v1/model/ShowIpInfoResponse.js +0 -41
- package/v1/model/ShowLogsRequest.d.ts +0 -27
- package/v1/model/ShowLogsRequest.js +0 -94
- package/v1/model/ShowLogsResponse.d.ts +0 -9
- package/v1/model/ShowLogsResponse.js +0 -35
- package/v1/model/ShowOriginHostRequest.d.ts +0 -11
- package/v1/model/ShowOriginHostRequest.js +0 -38
- package/v1/model/ShowOriginHostResponse.d.ts +0 -9
- package/v1/model/ShowOriginHostResponse.js +0 -41
- package/v1/model/ShowQuotaRequest.d.ts +0 -3
- package/v1/model/ShowQuotaRequest.js +0 -9
- package/v1/model/ShowQuotaResponse.d.ts +0 -7
- package/v1/model/ShowQuotaResponse.js +0 -31
- package/v1/model/ShowReferRequest.d.ts +0 -11
- package/v1/model/ShowReferRequest.js +0 -38
- package/v1/model/ShowReferResponse.d.ts +0 -7
- package/v1/model/ShowReferResponse.js +0 -31
- package/v1/model/ShowResponseHeaderRequest.d.ts +0 -11
- package/v1/model/ShowResponseHeaderRequest.js +0 -38
- package/v1/model/ShowResponseHeaderResponse.d.ts +0 -7
- package/v1/model/ShowResponseHeaderResponse.js +0 -31
- package/v1/model/ShowTagsRequest.d.ts +0 -7
- package/v1/model/ShowTagsRequest.js +0 -24
- package/v1/model/ShowTagsResponse.d.ts +0 -6
- package/v1/model/ShowTagsResponse.js +0 -31
- package/v1/model/ShowTopUrlRequest.d.ts +0 -43
- package/v1/model/ShowTopUrlRequest.js +0 -115
- package/v1/model/ShowTopUrlResponse.d.ts +0 -13
- package/v1/model/ShowTopUrlResponse.js +0 -55
- package/v1/model/ShowUrlTaskInfoRequest.d.ts +0 -27
- package/v1/model/ShowUrlTaskInfoRequest.js +0 -81
- package/v1/model/ShowUrlTaskInfoResponse.d.ts +0 -15
- package/v1/model/ShowUrlTaskInfoResponse.js +0 -53
- package/v1/model/SourceWithPort.d.ts +0 -40
- package/v1/model/SourceWithPort.js +0 -120
- package/v1/model/Sources.d.ts +0 -32
- package/v1/model/Sources.js +0 -92
- package/v1/model/SourcesConfig.d.ts +0 -29
- package/v1/model/SourcesConfig.js +0 -100
- package/v1/model/TasksObject.d.ts +0 -43
- package/v1/model/TasksObject.js +0 -93
- package/v1/model/TopUrlSummary.d.ts +0 -19
- package/v1/model/TopUrlSummary.js +0 -59
- package/v1/model/UpdateBlackWhiteListRequest.d.ts +0 -14
- package/v1/model/UpdateBlackWhiteListRequest.js +0 -42
- package/v1/model/UpdateBlackWhiteListResponse.d.ts +0 -10
- package/v1/model/UpdateBlackWhiteListResponse.js +0 -39
- package/v1/model/UpdateCacheRulesRequest.d.ts +0 -14
- package/v1/model/UpdateCacheRulesRequest.js +0 -42
- package/v1/model/UpdateCacheRulesResponse.d.ts +0 -9
- package/v1/model/UpdateCacheRulesResponse.js +0 -41
- package/v1/model/UpdateDomainFullConfigRequest.d.ts +0 -14
- package/v1/model/UpdateDomainFullConfigRequest.js +0 -42
- package/v1/model/UpdateDomainFullConfigResponse.d.ts +0 -4
- package/v1/model/UpdateDomainFullConfigResponse.js +0 -27
- package/v1/model/UpdateDomainMultiCertificatesRequest.d.ts +0 -10
- package/v1/model/UpdateDomainMultiCertificatesRequest.js +0 -27
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.d.ts +0 -6
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.js +0 -13
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts +0 -40
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.js +0 -131
- package/v1/model/UpdateDomainMultiCertificatesResponse.d.ts +0 -7
- package/v1/model/UpdateDomainMultiCertificatesResponse.js +0 -31
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts +0 -40
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.js +0 -130
- package/v1/model/UpdateDomainOriginRequest.d.ts +0 -14
- package/v1/model/UpdateDomainOriginRequest.js +0 -42
- package/v1/model/UpdateDomainOriginResponse.d.ts +0 -7
- package/v1/model/UpdateDomainOriginResponse.js +0 -31
- package/v1/model/UpdateFollow302SwitchRequest.d.ts +0 -14
- package/v1/model/UpdateFollow302SwitchRequest.js +0 -42
- package/v1/model/UpdateFollow302SwitchResponse.d.ts +0 -9
- package/v1/model/UpdateFollow302SwitchResponse.js +0 -41
- package/v1/model/UpdateHttpsInfoRequest.d.ts +0 -14
- package/v1/model/UpdateHttpsInfoRequest.js +0 -42
- package/v1/model/UpdateHttpsInfoResponse.d.ts +0 -7
- package/v1/model/UpdateHttpsInfoResponse.js +0 -31
- package/v1/model/UpdateOriginHostRequest.d.ts +0 -14
- package/v1/model/UpdateOriginHostRequest.js +0 -42
- package/v1/model/UpdateOriginHostResponse.d.ts +0 -9
- package/v1/model/UpdateOriginHostResponse.js +0 -41
- package/v1/model/UpdatePrivateBucketAccessBody.d.ts +0 -5
- package/v1/model/UpdatePrivateBucketAccessBody.js +0 -13
- package/v1/model/UpdatePrivateBucketAccessRequest.d.ts +0 -14
- package/v1/model/UpdatePrivateBucketAccessRequest.js +0 -42
- package/v1/model/UpdatePrivateBucketAccessResponse.d.ts +0 -6
- package/v1/model/UpdatePrivateBucketAccessResponse.js +0 -31
- package/v1/model/UpdateRangeSwitchRequest.d.ts +0 -14
- package/v1/model/UpdateRangeSwitchRequest.js +0 -42
- package/v1/model/UpdateRangeSwitchResponse.d.ts +0 -9
- package/v1/model/UpdateRangeSwitchResponse.js +0 -41
- package/v1/model/UpdateReferRequest.d.ts +0 -14
- package/v1/model/UpdateReferRequest.js +0 -42
- package/v1/model/UpdateReferResponse.d.ts +0 -7
- package/v1/model/UpdateReferResponse.js +0 -31
- package/v1/model/UpdateResponseHeaderRequest.d.ts +0 -14
- package/v1/model/UpdateResponseHeaderRequest.js +0 -42
- package/v1/model/UpdateResponseHeaderResponse.d.ts +0 -7
- package/v1/model/UpdateResponseHeaderResponse.js +0 -31
- package/v1/model/UrlAuth.d.ts +0 -17
- package/v1/model/UrlAuth.js +0 -50
- package/v1/model/UrlAuthGetBody.d.ts +0 -15
- package/v1/model/UrlAuthGetBody.js +0 -46
- package/v1/model/UrlObject.d.ts +0 -21
- package/v1/model/UrlObject.js +0 -63
- package/v1/model/Urls.d.ts +0 -27
- package/v1/model/Urls.js +0 -81
- package/v1/model/UserAgentFilter.d.ts +0 -7
- package/v1/model/UserAgentFilter.js +0 -18
- package/v1/public-api.js +0 -178
- package/v2/CdnClient.d.ts +0 -650
- package/v2/CdnRegion.d.ts +0 -6
- package/v2/CdnRegion.js +0 -25
- package/v2/model/BackSources.d.ts +0 -23
- package/v2/model/BackSources.js +0 -81
- package/v2/model/BatchCopyConfigs.d.ts +0 -15
- package/v2/model/BatchCopyConfigs.js +0 -54
- package/v2/model/BatchCopyDRequestBody.d.ts +0 -6
- package/v2/model/BatchCopyDRequestBody.js +0 -14
- package/v2/model/BatchCopyDomainRequest.d.ts +0 -6
- package/v2/model/BatchCopyDomainRequest.js +0 -13
- package/v2/model/BatchCopyDomainResponse.d.ts +0 -7
- package/v2/model/BatchCopyDomainResponse.js +0 -31
- package/v2/model/BatchCopyErrorRsp.d.ts +0 -6
- package/v2/model/BatchCopyErrorRsp.js +0 -13
- package/v2/model/BatchCopyErrorRspError.d.ts +0 -11
- package/v2/model/BatchCopyErrorRspError.js +0 -37
- package/v2/model/BatchCopyResultVo.d.ts +0 -19
- package/v2/model/BatchCopyResultVo.js +0 -42
- package/v2/model/CacheRules.d.ts +0 -31
- package/v2/model/CacheRules.js +0 -107
- package/v2/model/CacheUrlParameterFilter.d.ts +0 -7
- package/v2/model/CacheUrlParameterFilter.js +0 -17
- package/v2/model/CommonRemoteAuth.d.ts +0 -12
- package/v2/model/CommonRemoteAuth.js +0 -39
- package/v2/model/Compress.d.ts +0 -11
- package/v2/model/Compress.js +0 -33
- package/v2/model/Configs.d.ts +0 -125
- package/v2/model/Configs.js +0 -351
- package/v2/model/ConfigsGetBody.d.ts +0 -125
- package/v2/model/ConfigsGetBody.js +0 -351
- package/v2/model/CustomArgs.d.ts +0 -9
- package/v2/model/CustomArgs.js +0 -24
- package/v2/model/DomainOriginHost.d.ts +0 -15
- package/v2/model/DomainOriginHost.js +0 -52
- package/v2/model/Domains.d.ts +0 -87
- package/v2/model/Domains.js +0 -253
- package/v2/model/DomainsWithPort.d.ts +0 -51
- package/v2/model/DomainsWithPort.js +0 -137
- package/v2/model/DownloadRegionCarrierExcelRequest.d.ts +0 -35
- package/v2/model/DownloadRegionCarrierExcelRequest.js +0 -113
- package/v2/model/DownloadRegionCarrierExcelResponse.d.ts +0 -4
- package/v2/model/DownloadRegionCarrierExcelResponse.js +0 -27
- package/v2/model/DownloadStatisticsExcelRequest.d.ts +0 -33
- package/v2/model/DownloadStatisticsExcelRequest.js +0 -115
- package/v2/model/DownloadStatisticsExcelResponse.d.ts +0 -4
- package/v2/model/DownloadStatisticsExcelResponse.js +0 -27
- package/v2/model/EpResourceTag.d.ts +0 -7
- package/v2/model/EpResourceTag.js +0 -19
- package/v2/model/ErrMsg.d.ts +0 -11
- package/v2/model/ErrMsg.js +0 -39
- package/v2/model/ErrRsp.d.ts +0 -6
- package/v2/model/ErrRsp.js +0 -14
- package/v2/model/ErrorCodeCache.d.ts +0 -7
- package/v2/model/ErrorCodeCache.js +0 -17
- package/v2/model/ErrorCodeRedirectRules.d.ts +0 -15
- package/v2/model/ErrorCodeRedirectRules.js +0 -54
- package/v2/model/FlexibleOrigins.d.ts +0 -18
- package/v2/model/FlexibleOrigins.js +0 -59
- package/v2/model/ForceRedirectConfig.d.ts +0 -11
- package/v2/model/ForceRedirectConfig.js +0 -32
- package/v2/model/HttpGetBody.d.ts +0 -39
- package/v2/model/HttpGetBody.js +0 -135
- package/v2/model/HttpPutBody.d.ts +0 -39
- package/v2/model/HttpPutBody.js +0 -135
- package/v2/model/HttpResponseHeader.d.ts +0 -9
- package/v2/model/HttpResponseHeader.js +0 -23
- package/v2/model/IpFilter.d.ts +0 -7
- package/v2/model/IpFilter.js +0 -18
- package/v2/model/ListDomainsRequest.d.ts +0 -39
- package/v2/model/ListDomainsRequest.js +0 -135
- package/v2/model/ListDomainsResponse.d.ts +0 -9
- package/v2/model/ListDomainsResponse.js +0 -35
- package/v2/model/ModifyDomainConfigRequestBody.d.ts +0 -6
- package/v2/model/ModifyDomainConfigRequestBody.js +0 -13
- package/v2/model/OriginRequestHeader.d.ts +0 -9
- package/v2/model/OriginRequestHeader.js +0 -23
- package/v2/model/OriginRequestUrlRewrite.d.ts +0 -17
- package/v2/model/OriginRequestUrlRewrite.js +0 -58
- package/v2/model/RefererConfig.d.ts +0 -11
- package/v2/model/RefererConfig.js +0 -32
- package/v2/model/RemoteAuthRuleVo.d.ts +0 -62
- package/v2/model/RemoteAuthRuleVo.js +0 -219
- package/v2/model/RequestLimitRules.d.ts +0 -15
- package/v2/model/RequestLimitRules.js +0 -47
- package/v2/model/SetChargeModesBody.d.ts +0 -15
- package/v2/model/SetChargeModesBody.js +0 -54
- package/v2/model/SetChargeModesRequest.d.ts +0 -6
- package/v2/model/SetChargeModesRequest.js +0 -13
- package/v2/model/SetChargeModesResponse.d.ts +0 -26
- package/v2/model/SetChargeModesResponse.js +0 -101
- package/v2/model/ShowBandwidthCalcRequest.d.ts +0 -27
- package/v2/model/ShowBandwidthCalcRequest.js +0 -97
- package/v2/model/ShowBandwidthCalcResponse.d.ts +0 -14
- package/v2/model/ShowBandwidthCalcResponse.js +0 -41
- package/v2/model/ShowChargeModesRequest.d.ts +0 -13
- package/v2/model/ShowChargeModesRequest.js +0 -42
- package/v2/model/ShowChargeModesResponse.d.ts +0 -10
- package/v2/model/ShowChargeModesResponse.js +0 -31
- package/v2/model/ShowDomainDetailByNameRequest.d.ts +0 -11
- package/v2/model/ShowDomainDetailByNameRequest.js +0 -38
- package/v2/model/ShowDomainDetailByNameResponse.d.ts +0 -7
- package/v2/model/ShowDomainDetailByNameResponse.js +0 -31
- package/v2/model/ShowDomainFullConfigRequest.d.ts +0 -15
- package/v2/model/ShowDomainFullConfigRequest.js +0 -52
- package/v2/model/ShowDomainFullConfigResponse.d.ts +0 -7
- package/v2/model/ShowDomainFullConfigResponse.js +0 -31
- package/v2/model/ShowDomainLocationStatsRequest.d.ts +0 -37
- package/v2/model/ShowDomainLocationStatsRequest.js +0 -118
- package/v2/model/ShowDomainLocationStatsResponse.d.ts +0 -14
- package/v2/model/ShowDomainLocationStatsResponse.js +0 -45
- package/v2/model/ShowDomainStatsRequest.d.ts +0 -35
- package/v2/model/ShowDomainStatsRequest.js +0 -120
- package/v2/model/ShowDomainStatsResponse.d.ts +0 -10
- package/v2/model/ShowDomainStatsResponse.js +0 -31
- package/v2/model/ShowTopDomainNamesRequest.d.ts +0 -25
- package/v2/model/ShowTopDomainNamesRequest.js +0 -86
- package/v2/model/ShowTopDomainNamesResponse.d.ts +0 -14
- package/v2/model/ShowTopDomainNamesResponse.js +0 -41
- package/v2/model/ShowTopUrlRequest.d.ts +0 -27
- package/v2/model/ShowTopUrlRequest.js +0 -97
- package/v2/model/ShowTopUrlResponse.d.ts +0 -13
- package/v2/model/ShowTopUrlResponse.js +0 -55
- package/v2/model/Sources.d.ts +0 -32
- package/v2/model/Sources.js +0 -92
- package/v2/model/SourcesConfig.d.ts +0 -35
- package/v2/model/SourcesConfig.js +0 -118
- package/v2/model/TopUrlSummary.d.ts +0 -19
- package/v2/model/TopUrlSummary.js +0 -59
- package/v2/model/UpdateDomainFullConfigRequest.d.ts +0 -14
- package/v2/model/UpdateDomainFullConfigRequest.js +0 -42
- package/v2/model/UpdateDomainFullConfigResponse.d.ts +0 -4
- package/v2/model/UpdateDomainFullConfigResponse.js +0 -27
- package/v2/model/UrlAuth.d.ts +0 -33
- package/v2/model/UrlAuth.js +0 -109
- package/v2/model/UrlAuthGetBody.d.ts +0 -33
- package/v2/model/UrlAuthGetBody.js +0 -106
- package/v2/model/UserAgentFilter.d.ts +0 -11
- package/v2/model/UserAgentFilter.js +0 -32
- package/v2/model/VideoSeek.d.ts +0 -19
- package/v2/model/VideoSeek.js +0 -66
- package/v2/model/WebSocketSeek.d.ts +0 -7
- package/v2/model/WebSocketSeek.js +0 -19
- package/v2/public-api.js +0 -88
@@ -1,50 +1,97 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
1
|
+
import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
|
2
|
+
import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
|
3
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
4
|
+
|
5
|
+
import { BackSources } from './model/BackSources';
|
6
|
+
import { BatchCopyConfigs } from './model/BatchCopyConfigs';
|
7
|
+
import { BatchCopyDRequestBody } from './model/BatchCopyDRequestBody';
|
8
|
+
import { BatchCopyDomainRequest } from './model/BatchCopyDomainRequest';
|
9
|
+
import { BatchCopyDomainResponse } from './model/BatchCopyDomainResponse';
|
10
|
+
import { BatchCopyErrorRsp } from './model/BatchCopyErrorRsp';
|
11
|
+
import { BatchCopyErrorRspError } from './model/BatchCopyErrorRspError';
|
12
|
+
import { BatchCopyResultVo } from './model/BatchCopyResultVo';
|
13
|
+
import { CacheRules } from './model/CacheRules';
|
14
|
+
import { CacheUrlParameterFilter } from './model/CacheUrlParameterFilter';
|
15
|
+
import { CommonRemoteAuth } from './model/CommonRemoteAuth';
|
16
|
+
import { Compress } from './model/Compress';
|
17
|
+
import { Configs } from './model/Configs';
|
18
|
+
import { ConfigsGetBody } from './model/ConfigsGetBody';
|
19
|
+
import { CustomArgs } from './model/CustomArgs';
|
20
|
+
import { DomainOriginHost } from './model/DomainOriginHost';
|
21
|
+
import { Domains } from './model/Domains';
|
22
|
+
import { DomainsWithPort } from './model/DomainsWithPort';
|
23
|
+
import { DownloadRegionCarrierExcelRequest } from './model/DownloadRegionCarrierExcelRequest';
|
24
|
+
import { DownloadRegionCarrierExcelResponse } from './model/DownloadRegionCarrierExcelResponse';
|
25
|
+
import { DownloadStatisticsExcelRequest } from './model/DownloadStatisticsExcelRequest';
|
26
|
+
import { DownloadStatisticsExcelResponse } from './model/DownloadStatisticsExcelResponse';
|
27
|
+
import { EpResourceTag } from './model/EpResourceTag';
|
28
|
+
import { ErrMsg } from './model/ErrMsg';
|
29
|
+
import { ErrRsp } from './model/ErrRsp';
|
30
|
+
import { ErrorCodeCache } from './model/ErrorCodeCache';
|
31
|
+
import { ErrorCodeRedirectRules } from './model/ErrorCodeRedirectRules';
|
32
|
+
import { FlexibleOrigins } from './model/FlexibleOrigins';
|
33
|
+
import { ForceRedirectConfig } from './model/ForceRedirectConfig';
|
34
|
+
import { HttpGetBody } from './model/HttpGetBody';
|
35
|
+
import { HttpPutBody } from './model/HttpPutBody';
|
36
|
+
import { HttpResponseHeader } from './model/HttpResponseHeader';
|
37
|
+
import { IpFilter } from './model/IpFilter';
|
38
|
+
import { ListDomainsRequest } from './model/ListDomainsRequest';
|
39
|
+
import { ListDomainsResponse } from './model/ListDomainsResponse';
|
40
|
+
import { ModifyDomainConfigRequestBody } from './model/ModifyDomainConfigRequestBody';
|
41
|
+
import { OriginRequestHeader } from './model/OriginRequestHeader';
|
42
|
+
import { OriginRequestUrlRewrite } from './model/OriginRequestUrlRewrite';
|
43
|
+
import { RefererConfig } from './model/RefererConfig';
|
44
|
+
import { RemoteAuthRuleVo } from './model/RemoteAuthRuleVo';
|
45
|
+
import { RequestLimitRules } from './model/RequestLimitRules';
|
46
|
+
import { SetChargeModesBody } from './model/SetChargeModesBody';
|
47
|
+
import { SetChargeModesRequest } from './model/SetChargeModesRequest';
|
48
|
+
import { SetChargeModesResponse } from './model/SetChargeModesResponse';
|
49
|
+
import { ShowBandwidthCalcRequest } from './model/ShowBandwidthCalcRequest';
|
50
|
+
import { ShowBandwidthCalcResponse } from './model/ShowBandwidthCalcResponse';
|
51
|
+
import { ShowChargeModesRequest } from './model/ShowChargeModesRequest';
|
52
|
+
import { ShowChargeModesResponse } from './model/ShowChargeModesResponse';
|
53
|
+
import { ShowDomainDetailByNameRequest } from './model/ShowDomainDetailByNameRequest';
|
54
|
+
import { ShowDomainDetailByNameResponse } from './model/ShowDomainDetailByNameResponse';
|
55
|
+
import { ShowDomainFullConfigRequest } from './model/ShowDomainFullConfigRequest';
|
56
|
+
import { ShowDomainFullConfigResponse } from './model/ShowDomainFullConfigResponse';
|
57
|
+
import { ShowDomainLocationStatsRequest } from './model/ShowDomainLocationStatsRequest';
|
58
|
+
import { ShowDomainLocationStatsResponse } from './model/ShowDomainLocationStatsResponse';
|
59
|
+
import { ShowDomainStatsRequest } from './model/ShowDomainStatsRequest';
|
60
|
+
import { ShowDomainStatsResponse } from './model/ShowDomainStatsResponse';
|
61
|
+
import { ShowTopDomainNamesRequest } from './model/ShowTopDomainNamesRequest';
|
62
|
+
import { ShowTopDomainNamesResponse } from './model/ShowTopDomainNamesResponse';
|
63
|
+
import { ShowTopUrlRequest } from './model/ShowTopUrlRequest';
|
64
|
+
import { ShowTopUrlResponse } from './model/ShowTopUrlResponse';
|
65
|
+
import { Sources } from './model/Sources';
|
66
|
+
import { SourcesConfig } from './model/SourcesConfig';
|
67
|
+
import { TopUrlSummary } from './model/TopUrlSummary';
|
68
|
+
import { UpdateDomainFullConfigRequest } from './model/UpdateDomainFullConfigRequest';
|
69
|
+
import { UpdateDomainFullConfigResponse } from './model/UpdateDomainFullConfigResponse';
|
70
|
+
import { UrlAuth } from './model/UrlAuth';
|
71
|
+
import { UrlAuthGetBody } from './model/UrlAuthGetBody';
|
72
|
+
import { UserAgentFilter } from './model/UserAgentFilter';
|
73
|
+
import { VideoSeek } from './model/VideoSeek';
|
74
|
+
import { WebSocketSeek } from './model/WebSocketSeek';
|
75
|
+
|
76
|
+
export class CdnClient {
|
77
|
+
public static newBuilder(): ClientBuilder<CdnClient> {
|
78
|
+
return new ClientBuilder<CdnClient>(newClient);
|
79
|
+
}
|
80
|
+
|
81
|
+
private hcClient: HcClient;
|
82
|
+
public constructor(client: HcClient) {
|
36
83
|
this.hcClient = client;
|
37
84
|
}
|
38
|
-
|
39
|
-
|
40
|
-
};
|
41
|
-
CdnClient.prototype.getPath = function () {
|
85
|
+
|
86
|
+
public getPath() {
|
42
87
|
return __dirname;
|
43
|
-
}
|
88
|
+
}
|
89
|
+
|
90
|
+
|
44
91
|
/**
|
45
92
|
* 批量域名复制接口。
|
46
93
|
* > 将某个加速域名的配置批量复制到其他域名。
|
47
|
-
*
|
94
|
+
*
|
48
95
|
* Please refer to HUAWEI cloud API Explorer for details.
|
49
96
|
*
|
50
97
|
* @summary 批量域名复制
|
@@ -52,25 +99,28 @@ var CdnClient = /** @class */ (function () {
|
|
52
99
|
* @param {*} [options] Override http request option.
|
53
100
|
* @throws {RequiredError}
|
54
101
|
*/
|
55
|
-
|
56
|
-
|
57
|
-
|
102
|
+
public batchCopyDomain(batchCopyDomainRequest?: BatchCopyDomainRequest): Promise<BatchCopyDomainResponse> {
|
103
|
+
const options = ParamCreater().batchCopyDomain(batchCopyDomainRequest);
|
104
|
+
|
105
|
+
// @ts-ignore
|
58
106
|
options['responseHeaders'] = [''];
|
107
|
+
|
59
108
|
return this.hcClient.sendRequest(options);
|
60
|
-
}
|
109
|
+
}
|
110
|
+
|
61
111
|
/**
|
62
112
|
* - 下载区域运营商指标数据表格文件。
|
63
|
-
*
|
113
|
+
*
|
64
114
|
* - 支持下载90天内的指标数据表格。
|
65
|
-
*
|
115
|
+
*
|
66
116
|
* - 时间跨度不能超过31天。
|
67
|
-
*
|
117
|
+
*
|
68
118
|
* - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
69
|
-
*
|
119
|
+
*
|
70
120
|
* - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
|
71
|
-
*
|
121
|
+
*
|
72
122
|
* - 单租户调用频率:10次/min。
|
73
|
-
*
|
123
|
+
*
|
74
124
|
* Please refer to HUAWEI cloud API Explorer for details.
|
75
125
|
*
|
76
126
|
* @summary 下载区域运营商指标数据表格文件
|
@@ -87,25 +137,28 @@ var CdnClient = /** @class */ (function () {
|
|
87
137
|
* @param {*} [options] Override http request option.
|
88
138
|
* @throws {RequiredError}
|
89
139
|
*/
|
90
|
-
|
91
|
-
|
92
|
-
|
140
|
+
public downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest?: DownloadRegionCarrierExcelRequest): Promise<DownloadRegionCarrierExcelResponse> {
|
141
|
+
const options = ParamCreater().downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest);
|
142
|
+
|
143
|
+
// @ts-ignore
|
93
144
|
options['responseHeaders'] = [''];
|
145
|
+
|
94
146
|
return this.hcClient.sendRequest(options);
|
95
|
-
}
|
147
|
+
}
|
148
|
+
|
96
149
|
/**
|
97
150
|
* - 下载统计指标数据表格文件。
|
98
|
-
*
|
151
|
+
*
|
99
152
|
* - 支持下载90天内的指标数据。
|
100
|
-
*
|
153
|
+
*
|
101
154
|
* - 时间跨度不能超过31天。
|
102
|
-
*
|
155
|
+
*
|
103
156
|
* - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
104
|
-
*
|
157
|
+
*
|
105
158
|
* - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
|
106
|
-
*
|
159
|
+
*
|
107
160
|
* - 单租户调用频率:10次/min。
|
108
|
-
*
|
161
|
+
*
|
109
162
|
* Please refer to HUAWEI cloud API Explorer for details.
|
110
163
|
*
|
111
164
|
* @summary 下载统计指标数据表格文件
|
@@ -120,15 +173,18 @@ var CdnClient = /** @class */ (function () {
|
|
120
173
|
* @param {*} [options] Override http request option.
|
121
174
|
* @throws {RequiredError}
|
122
175
|
*/
|
123
|
-
|
124
|
-
|
125
|
-
|
176
|
+
public downloadStatisticsExcel(downloadStatisticsExcelRequest?: DownloadStatisticsExcelRequest): Promise<DownloadStatisticsExcelResponse> {
|
177
|
+
const options = ParamCreater().downloadStatisticsExcel(downloadStatisticsExcelRequest);
|
178
|
+
|
179
|
+
// @ts-ignore
|
126
180
|
options['responseHeaders'] = [''];
|
181
|
+
|
127
182
|
return this.hcClient.sendRequest(options);
|
128
|
-
}
|
183
|
+
}
|
184
|
+
|
129
185
|
/**
|
130
186
|
* 查询加速域名。
|
131
|
-
*
|
187
|
+
*
|
132
188
|
* Please refer to HUAWEI cloud API Explorer for details.
|
133
189
|
*
|
134
190
|
* @summary 查询加速域名
|
@@ -144,23 +200,26 @@ var CdnClient = /** @class */ (function () {
|
|
144
200
|
* @param {*} [options] Override http request option.
|
145
201
|
* @throws {RequiredError}
|
146
202
|
*/
|
147
|
-
|
148
|
-
|
149
|
-
|
203
|
+
public listDomains(listDomainsRequest?: ListDomainsRequest): Promise<ListDomainsResponse> {
|
204
|
+
const options = ParamCreater().listDomains(listDomainsRequest);
|
205
|
+
|
206
|
+
// @ts-ignore
|
150
207
|
options['responseHeaders'] = [''];
|
208
|
+
|
151
209
|
return this.hcClient.sendRequest(options);
|
152
|
-
}
|
210
|
+
}
|
211
|
+
|
153
212
|
/**
|
154
213
|
* - 设置用户计费模式。
|
155
|
-
*
|
214
|
+
*
|
156
215
|
* - 服务区域仅支持mainland_china(国内)
|
157
|
-
*
|
216
|
+
*
|
158
217
|
* - 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽)
|
159
|
-
*
|
218
|
+
*
|
160
219
|
* - 加速类型仅支持base(基础加速)
|
161
|
-
*
|
220
|
+
*
|
162
221
|
* - 单租户调用频率:10次/min。
|
163
|
-
*
|
222
|
+
*
|
164
223
|
* Please refer to HUAWEI cloud API Explorer for details.
|
165
224
|
*
|
166
225
|
* @summary 设置用户计费模式
|
@@ -168,27 +227,30 @@ var CdnClient = /** @class */ (function () {
|
|
168
227
|
* @param {*} [options] Override http request option.
|
169
228
|
* @throws {RequiredError}
|
170
229
|
*/
|
171
|
-
|
172
|
-
|
173
|
-
|
230
|
+
public setChargeModes(setChargeModesRequest?: SetChargeModesRequest): Promise<SetChargeModesResponse> {
|
231
|
+
const options = ParamCreater().setChargeModes(setChargeModesRequest);
|
232
|
+
|
233
|
+
// @ts-ignore
|
174
234
|
options['responseHeaders'] = [''];
|
235
|
+
|
175
236
|
return this.hcClient.sendRequest(options);
|
176
|
-
}
|
237
|
+
}
|
238
|
+
|
177
239
|
/**
|
178
240
|
* - 查询域名带宽峰值类数据。
|
179
|
-
*
|
241
|
+
*
|
180
242
|
* - 支持查询90天内的数据。
|
181
|
-
*
|
243
|
+
*
|
182
244
|
* - 查询时间跨度不能超过31天。
|
183
|
-
*
|
245
|
+
*
|
184
246
|
* - 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
185
|
-
*
|
247
|
+
*
|
186
248
|
* - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
|
187
|
-
*
|
249
|
+
*
|
188
250
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
189
|
-
*
|
251
|
+
*
|
190
252
|
* - 单租户调用频率:2次/s。
|
191
|
-
*
|
253
|
+
*
|
192
254
|
* Please refer to HUAWEI cloud API Explorer for details.
|
193
255
|
*
|
194
256
|
* @summary 查询域名带宽峰值类数据
|
@@ -201,23 +263,26 @@ var CdnClient = /** @class */ (function () {
|
|
201
263
|
* @param {*} [options] Override http request option.
|
202
264
|
* @throws {RequiredError}
|
203
265
|
*/
|
204
|
-
|
205
|
-
|
206
|
-
|
266
|
+
public showBandwidthCalc(showBandwidthCalcRequest?: ShowBandwidthCalcRequest): Promise<ShowBandwidthCalcResponse> {
|
267
|
+
const options = ParamCreater().showBandwidthCalc(showBandwidthCalcRequest);
|
268
|
+
|
269
|
+
// @ts-ignore
|
207
270
|
options['responseHeaders'] = [''];
|
271
|
+
|
208
272
|
return this.hcClient.sendRequest(options);
|
209
|
-
}
|
273
|
+
}
|
274
|
+
|
210
275
|
/**
|
211
276
|
* - 查询用户计费模式。
|
212
|
-
*
|
277
|
+
*
|
213
278
|
* - 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)
|
214
|
-
*
|
279
|
+
*
|
215
280
|
* - 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)
|
216
|
-
*
|
281
|
+
*
|
217
282
|
* - 加速类型仅支持base(基础加速)
|
218
|
-
*
|
283
|
+
*
|
219
284
|
* - 单租户调用频率:5次/s。
|
220
|
-
*
|
285
|
+
*
|
221
286
|
* Please refer to HUAWEI cloud API Explorer for details.
|
222
287
|
*
|
223
288
|
* @summary 查询用户计费模式
|
@@ -227,15 +292,18 @@ var CdnClient = /** @class */ (function () {
|
|
227
292
|
* @param {*} [options] Override http request option.
|
228
293
|
* @throws {RequiredError}
|
229
294
|
*/
|
230
|
-
|
231
|
-
|
232
|
-
|
295
|
+
public showChargeModes(showChargeModesRequest?: ShowChargeModesRequest): Promise<ShowChargeModesResponse> {
|
296
|
+
const options = ParamCreater().showChargeModes(showChargeModesRequest);
|
297
|
+
|
298
|
+
// @ts-ignore
|
233
299
|
options['responseHeaders'] = [''];
|
300
|
+
|
234
301
|
return this.hcClient.sendRequest(options);
|
235
|
-
}
|
302
|
+
}
|
303
|
+
|
236
304
|
/**
|
237
305
|
* 加速域名详情信息接口。
|
238
|
-
*
|
306
|
+
*
|
239
307
|
* Please refer to HUAWEI cloud API Explorer for details.
|
240
308
|
*
|
241
309
|
* @summary 查询加速域名详情
|
@@ -244,16 +312,19 @@ var CdnClient = /** @class */ (function () {
|
|
244
312
|
* @param {*} [options] Override http request option.
|
245
313
|
* @throws {RequiredError}
|
246
314
|
*/
|
247
|
-
|
248
|
-
|
249
|
-
|
315
|
+
public showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest): Promise<ShowDomainDetailByNameResponse> {
|
316
|
+
const options = ParamCreater().showDomainDetailByName(showDomainDetailByNameRequest);
|
317
|
+
|
318
|
+
// @ts-ignore
|
250
319
|
options['responseHeaders'] = [''];
|
320
|
+
|
251
321
|
return this.hcClient.sendRequest(options);
|
252
|
-
}
|
322
|
+
}
|
323
|
+
|
253
324
|
/**
|
254
325
|
* 查询域名配置接口,
|
255
326
|
* 支持查询回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
|
256
|
-
*
|
327
|
+
*
|
257
328
|
* Please refer to HUAWEI cloud API Explorer for details.
|
258
329
|
*
|
259
330
|
* @summary 查询域名配置接口
|
@@ -263,27 +334,30 @@ var CdnClient = /** @class */ (function () {
|
|
263
334
|
* @param {*} [options] Override http request option.
|
264
335
|
* @throws {RequiredError}
|
265
336
|
*/
|
266
|
-
|
267
|
-
|
268
|
-
|
337
|
+
public showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): Promise<ShowDomainFullConfigResponse> {
|
338
|
+
const options = ParamCreater().showDomainFullConfig(showDomainFullConfigRequest);
|
339
|
+
|
340
|
+
// @ts-ignore
|
269
341
|
options['responseHeaders'] = [''];
|
342
|
+
|
270
343
|
return this.hcClient.sendRequest(options);
|
271
|
-
}
|
344
|
+
}
|
345
|
+
|
272
346
|
/**
|
273
347
|
* - 支持查询90天内的数据。
|
274
|
-
*
|
348
|
+
*
|
275
349
|
* - 支持多指标同时查询,不超过5个。
|
276
|
-
*
|
350
|
+
*
|
277
351
|
* - 最多同时指定20个域名。
|
278
|
-
*
|
352
|
+
*
|
279
353
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
280
|
-
*
|
354
|
+
*
|
281
355
|
* - action取值:location_detail,location_summary
|
282
|
-
*
|
356
|
+
*
|
283
357
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
284
|
-
*
|
358
|
+
*
|
285
359
|
* - 单租户调用频率:15次/s。
|
286
|
-
*
|
360
|
+
*
|
287
361
|
* Please refer to HUAWEI cloud API Explorer for details.
|
288
362
|
*
|
289
363
|
* @summary 按区域运营商查询域名统计数据
|
@@ -301,27 +375,30 @@ var CdnClient = /** @class */ (function () {
|
|
301
375
|
* @param {*} [options] Override http request option.
|
302
376
|
* @throws {RequiredError}
|
303
377
|
*/
|
304
|
-
|
305
|
-
|
306
|
-
|
378
|
+
public showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest): Promise<ShowDomainLocationStatsResponse> {
|
379
|
+
const options = ParamCreater().showDomainLocationStats(showDomainLocationStatsRequest);
|
380
|
+
|
381
|
+
// @ts-ignore
|
307
382
|
options['responseHeaders'] = [''];
|
383
|
+
|
308
384
|
return this.hcClient.sendRequest(options);
|
309
|
-
}
|
385
|
+
}
|
386
|
+
|
310
387
|
/**
|
311
388
|
* - 支持查询90天内的数据。
|
312
|
-
*
|
389
|
+
*
|
313
390
|
* - 支持多指标同时查询,不超过5个。
|
314
|
-
*
|
391
|
+
*
|
315
392
|
* - 最多同时指定20个域名。
|
316
|
-
*
|
393
|
+
*
|
317
394
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
318
|
-
*
|
395
|
+
*
|
319
396
|
* - action取值:detail,summary
|
320
|
-
*
|
397
|
+
*
|
321
398
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
322
|
-
*
|
399
|
+
*
|
323
400
|
* - 单租户调用频率:15次/s。
|
324
|
-
*
|
401
|
+
*
|
325
402
|
* Please refer to HUAWEI cloud API Explorer for details.
|
326
403
|
*
|
327
404
|
* @summary 查询域名统计基础数据
|
@@ -337,27 +414,30 @@ var CdnClient = /** @class */ (function () {
|
|
337
414
|
* @param {*} [options] Override http request option.
|
338
415
|
* @throws {RequiredError}
|
339
416
|
*/
|
340
|
-
|
341
|
-
|
342
|
-
|
417
|
+
public showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest): Promise<ShowDomainStatsResponse> {
|
418
|
+
const options = ParamCreater().showDomainStats(showDomainStatsRequest);
|
419
|
+
|
420
|
+
// @ts-ignore
|
343
421
|
options['responseHeaders'] = [''];
|
422
|
+
|
344
423
|
return this.hcClient.sendRequest(options);
|
345
|
-
}
|
424
|
+
}
|
425
|
+
|
346
426
|
/**
|
347
427
|
* - 查询TOP域名。
|
348
|
-
*
|
428
|
+
*
|
349
429
|
* - 支持查询90天内的数据。
|
350
|
-
*
|
430
|
+
*
|
351
431
|
* - 查询时间跨度不能超过1天。
|
352
|
-
*
|
432
|
+
*
|
353
433
|
* - 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
354
|
-
*
|
434
|
+
*
|
355
435
|
* - 起始时间、结束时间必须传整点毫秒级时间戳。
|
356
|
-
*
|
436
|
+
*
|
357
437
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
358
|
-
*
|
438
|
+
*
|
359
439
|
* - 单租户调用频率:5次/s。
|
360
|
-
*
|
440
|
+
*
|
361
441
|
* Please refer to HUAWEI cloud API Explorer for details.
|
362
442
|
*
|
363
443
|
* @summary 查询TOP域名
|
@@ -370,27 +450,30 @@ var CdnClient = /** @class */ (function () {
|
|
370
450
|
* @param {*} [options] Override http request option.
|
371
451
|
* @throws {RequiredError}
|
372
452
|
*/
|
373
|
-
|
374
|
-
|
375
|
-
|
453
|
+
public showTopDomainNames(showTopDomainNamesRequest?: ShowTopDomainNamesRequest): Promise<ShowTopDomainNamesResponse> {
|
454
|
+
const options = ParamCreater().showTopDomainNames(showTopDomainNamesRequest);
|
455
|
+
|
456
|
+
// @ts-ignore
|
376
457
|
options['responseHeaders'] = [''];
|
458
|
+
|
377
459
|
return this.hcClient.sendRequest(options);
|
378
|
-
}
|
460
|
+
}
|
461
|
+
|
379
462
|
/**
|
380
463
|
* - 查询TOP100 URL明细。
|
381
|
-
*
|
464
|
+
*
|
382
465
|
* - 支持查询90天内的数据。
|
383
|
-
*
|
466
|
+
*
|
384
467
|
* - 查询跨度不能超过31天。
|
385
|
-
*
|
468
|
+
*
|
386
469
|
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
387
|
-
*
|
470
|
+
*
|
388
471
|
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
389
|
-
*
|
472
|
+
*
|
390
473
|
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
391
|
-
*
|
474
|
+
*
|
392
475
|
* - 单租户调用频率:5次/s。
|
393
|
-
*
|
476
|
+
*
|
394
477
|
* Please refer to HUAWEI cloud API Explorer for details.
|
395
478
|
*
|
396
479
|
* @summary 查询TOP100 URL明细
|
@@ -403,16 +486,19 @@ var CdnClient = /** @class */ (function () {
|
|
403
486
|
* @param {*} [options] Override http request option.
|
404
487
|
* @throws {RequiredError}
|
405
488
|
*/
|
406
|
-
|
407
|
-
|
408
|
-
|
489
|
+
public showTopUrl(showTopUrlRequest?: ShowTopUrlRequest): Promise<ShowTopUrlResponse> {
|
490
|
+
const options = ParamCreater().showTopUrl(showTopUrlRequest);
|
491
|
+
|
492
|
+
// @ts-ignore
|
409
493
|
options['responseHeaders'] = [''];
|
494
|
+
|
410
495
|
return this.hcClient.sendRequest(options);
|
411
|
-
}
|
496
|
+
}
|
497
|
+
|
412
498
|
/**
|
413
499
|
* 修改域名配置接口,
|
414
500
|
* 支持修改回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
|
415
|
-
*
|
501
|
+
*
|
416
502
|
* Please refer to HUAWEI cloud API Explorer for details.
|
417
503
|
*
|
418
504
|
* @summary 修改域名全量配置接口
|
@@ -422,25 +508,27 @@ var CdnClient = /** @class */ (function () {
|
|
422
508
|
* @param {*} [options] Override http request option.
|
423
509
|
* @throws {RequiredError}
|
424
510
|
*/
|
425
|
-
|
426
|
-
|
427
|
-
|
511
|
+
public updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<UpdateDomainFullConfigResponse> {
|
512
|
+
const options = ParamCreater().updateDomainFullConfig(updateDomainFullConfigRequest);
|
513
|
+
|
514
|
+
// @ts-ignore
|
428
515
|
options['responseHeaders'] = [''];
|
516
|
+
|
429
517
|
return this.hcClient.sendRequest(options);
|
430
|
-
}
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
var ParamCreater = function () {
|
518
|
+
}
|
519
|
+
}
|
520
|
+
|
521
|
+
export const ParamCreater = function () {
|
435
522
|
return {
|
523
|
+
|
436
524
|
/**
|
437
525
|
* 批量域名复制接口。
|
438
526
|
* > 将某个加速域名的配置批量复制到其他域名。
|
439
|
-
*
|
527
|
+
*
|
440
528
|
* Please refer to HUAWEI cloud API Explorer for details.
|
441
529
|
*/
|
442
|
-
batchCopyDomain
|
443
|
-
|
530
|
+
batchCopyDomain(batchCopyDomainRequest?: BatchCopyDomainRequest) {
|
531
|
+
const options = {
|
444
532
|
method: "POST",
|
445
533
|
url: "/v1.0/cdn/configuration/domains/batch-copy",
|
446
534
|
contentType: "application/json",
|
@@ -449,41 +537,46 @@ var ParamCreater = function () {
|
|
449
537
|
headers: {},
|
450
538
|
data: {}
|
451
539
|
};
|
452
|
-
|
453
|
-
|
540
|
+
const localVarHeaderParameter = {} as any;
|
541
|
+
|
542
|
+
let body: any;
|
543
|
+
|
454
544
|
if (batchCopyDomainRequest !== null && batchCopyDomainRequest !== undefined) {
|
455
|
-
if (batchCopyDomainRequest instanceof
|
456
|
-
body = batchCopyDomainRequest.body
|
457
|
-
}
|
458
|
-
else {
|
545
|
+
if (batchCopyDomainRequest instanceof BatchCopyDomainRequest) {
|
546
|
+
body = batchCopyDomainRequest.body
|
547
|
+
} else {
|
459
548
|
body = batchCopyDomainRequest['body'];
|
460
549
|
}
|
461
550
|
}
|
551
|
+
|
552
|
+
|
462
553
|
if (body === null || body === undefined) {
|
463
|
-
throw new RequiredError('body',
|
554
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
464
555
|
}
|
465
556
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
557
|
+
|
466
558
|
options.data = body !== undefined ? body : {};
|
467
559
|
options.headers = localVarHeaderParameter;
|
468
560
|
return options;
|
469
561
|
},
|
562
|
+
|
470
563
|
/**
|
471
564
|
* - 下载区域运营商指标数据表格文件。
|
472
|
-
*
|
565
|
+
*
|
473
566
|
* - 支持下载90天内的指标数据表格。
|
474
|
-
*
|
567
|
+
*
|
475
568
|
* - 时间跨度不能超过31天。
|
476
|
-
*
|
569
|
+
*
|
477
570
|
* - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
478
|
-
*
|
571
|
+
*
|
479
572
|
* - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
|
480
|
-
*
|
573
|
+
*
|
481
574
|
* - 单租户调用频率:10次/min。
|
482
|
-
*
|
575
|
+
*
|
483
576
|
* Please refer to HUAWEI cloud API Explorer for details.
|
484
577
|
*/
|
485
|
-
downloadRegionCarrierExcel
|
486
|
-
|
578
|
+
downloadRegionCarrierExcel(downloadRegionCarrierExcelRequest?: DownloadRegionCarrierExcelRequest) {
|
579
|
+
const options = {
|
487
580
|
method: "GET",
|
488
581
|
url: "/v1.0/cdn/statistics/region-carrier-excel",
|
489
582
|
contentType: "application/json",
|
@@ -491,20 +584,31 @@ var ParamCreater = function () {
|
|
491
584
|
pathParams: {},
|
492
585
|
headers: {}
|
493
586
|
};
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
587
|
+
const localVarHeaderParameter = {} as any;
|
588
|
+
const localVarQueryParameter = {} as any;
|
589
|
+
|
590
|
+
let startTime;
|
591
|
+
|
592
|
+
let endTime;
|
593
|
+
|
594
|
+
let domainName;
|
595
|
+
|
596
|
+
let excelType;
|
597
|
+
|
598
|
+
let interval;
|
599
|
+
|
600
|
+
let country;
|
601
|
+
|
602
|
+
let excelLanguage;
|
603
|
+
|
604
|
+
let enterpriseProjectId;
|
605
|
+
|
606
|
+
let region;
|
607
|
+
|
608
|
+
let carrier;
|
609
|
+
|
506
610
|
if (downloadRegionCarrierExcelRequest !== null && downloadRegionCarrierExcelRequest !== undefined) {
|
507
|
-
if (downloadRegionCarrierExcelRequest instanceof
|
611
|
+
if (downloadRegionCarrierExcelRequest instanceof DownloadRegionCarrierExcelRequest) {
|
508
612
|
startTime = downloadRegionCarrierExcelRequest.startTime;
|
509
613
|
endTime = downloadRegionCarrierExcelRequest.endTime;
|
510
614
|
domainName = downloadRegionCarrierExcelRequest.domainName;
|
@@ -515,8 +619,7 @@ var ParamCreater = function () {
|
|
515
619
|
enterpriseProjectId = downloadRegionCarrierExcelRequest.enterpriseProjectId;
|
516
620
|
region = downloadRegionCarrierExcelRequest.region;
|
517
621
|
carrier = downloadRegionCarrierExcelRequest.carrier;
|
518
|
-
}
|
519
|
-
else {
|
622
|
+
} else {
|
520
623
|
startTime = downloadRegionCarrierExcelRequest['start_time'];
|
521
624
|
endTime = downloadRegionCarrierExcelRequest['end_time'];
|
522
625
|
domainName = downloadRegionCarrierExcelRequest['domain_name'];
|
@@ -529,26 +632,28 @@ var ParamCreater = function () {
|
|
529
632
|
carrier = downloadRegionCarrierExcelRequest['carrier'];
|
530
633
|
}
|
531
634
|
}
|
635
|
+
|
636
|
+
|
532
637
|
if (startTime === null || startTime === undefined) {
|
533
|
-
throw new RequiredError('startTime',
|
638
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling downloadRegionCarrierExcel.');
|
534
639
|
}
|
535
640
|
if (startTime !== null && startTime !== undefined) {
|
536
641
|
localVarQueryParameter['start_time'] = startTime;
|
537
642
|
}
|
538
643
|
if (endTime === null || endTime === undefined) {
|
539
|
-
throw new RequiredError('endTime',
|
644
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling downloadRegionCarrierExcel.');
|
540
645
|
}
|
541
646
|
if (endTime !== null && endTime !== undefined) {
|
542
647
|
localVarQueryParameter['end_time'] = endTime;
|
543
648
|
}
|
544
649
|
if (domainName === null || domainName === undefined) {
|
545
|
-
throw new RequiredError('domainName',
|
650
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling downloadRegionCarrierExcel.');
|
546
651
|
}
|
547
652
|
if (domainName !== null && domainName !== undefined) {
|
548
653
|
localVarQueryParameter['domain_name'] = domainName;
|
549
654
|
}
|
550
655
|
if (excelType === null || excelType === undefined) {
|
551
|
-
throw new RequiredError('excelType',
|
656
|
+
throw new RequiredError('excelType','Required parameter excelType was null or undefined when calling downloadRegionCarrierExcel.');
|
552
657
|
}
|
553
658
|
if (excelType !== null && excelType !== undefined) {
|
554
659
|
localVarQueryParameter['excel_type'] = excelType;
|
@@ -571,27 +676,29 @@ var ParamCreater = function () {
|
|
571
676
|
if (carrier !== null && carrier !== undefined) {
|
572
677
|
localVarQueryParameter['carrier'] = carrier;
|
573
678
|
}
|
679
|
+
|
574
680
|
options.queryParams = localVarQueryParameter;
|
575
681
|
options.headers = localVarHeaderParameter;
|
576
682
|
return options;
|
577
683
|
},
|
684
|
+
|
578
685
|
/**
|
579
686
|
* - 下载统计指标数据表格文件。
|
580
|
-
*
|
687
|
+
*
|
581
688
|
* - 支持下载90天内的指标数据。
|
582
|
-
*
|
689
|
+
*
|
583
690
|
* - 时间跨度不能超过31天。
|
584
|
-
*
|
691
|
+
*
|
585
692
|
* - 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
586
|
-
*
|
693
|
+
*
|
587
694
|
* - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
|
588
|
-
*
|
695
|
+
*
|
589
696
|
* - 单租户调用频率:10次/min。
|
590
|
-
*
|
697
|
+
*
|
591
698
|
* Please refer to HUAWEI cloud API Explorer for details.
|
592
699
|
*/
|
593
|
-
downloadStatisticsExcel
|
594
|
-
|
700
|
+
downloadStatisticsExcel(downloadStatisticsExcelRequest?: DownloadStatisticsExcelRequest) {
|
701
|
+
const options = {
|
595
702
|
method: "GET",
|
596
703
|
url: "/v1.0/cdn/statistics/statistics-excel",
|
597
704
|
contentType: "application/json",
|
@@ -599,18 +706,27 @@ var ParamCreater = function () {
|
|
599
706
|
pathParams: {},
|
600
707
|
headers: {}
|
601
708
|
};
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
709
|
+
const localVarHeaderParameter = {} as any;
|
710
|
+
const localVarQueryParameter = {} as any;
|
711
|
+
|
712
|
+
let startTime;
|
713
|
+
|
714
|
+
let endTime;
|
715
|
+
|
716
|
+
let domainName;
|
717
|
+
|
718
|
+
let excelType;
|
719
|
+
|
720
|
+
let excelLanguage;
|
721
|
+
|
722
|
+
let serviceArea;
|
723
|
+
|
724
|
+
let interval;
|
725
|
+
|
726
|
+
let enterpriseProjectId;
|
727
|
+
|
612
728
|
if (downloadStatisticsExcelRequest !== null && downloadStatisticsExcelRequest !== undefined) {
|
613
|
-
if (downloadStatisticsExcelRequest instanceof
|
729
|
+
if (downloadStatisticsExcelRequest instanceof DownloadStatisticsExcelRequest) {
|
614
730
|
startTime = downloadStatisticsExcelRequest.startTime;
|
615
731
|
endTime = downloadStatisticsExcelRequest.endTime;
|
616
732
|
domainName = downloadStatisticsExcelRequest.domainName;
|
@@ -619,8 +735,7 @@ var ParamCreater = function () {
|
|
619
735
|
serviceArea = downloadStatisticsExcelRequest.serviceArea;
|
620
736
|
interval = downloadStatisticsExcelRequest.interval;
|
621
737
|
enterpriseProjectId = downloadStatisticsExcelRequest.enterpriseProjectId;
|
622
|
-
}
|
623
|
-
else {
|
738
|
+
} else {
|
624
739
|
startTime = downloadStatisticsExcelRequest['start_time'];
|
625
740
|
endTime = downloadStatisticsExcelRequest['end_time'];
|
626
741
|
domainName = downloadStatisticsExcelRequest['domain_name'];
|
@@ -631,26 +746,28 @@ var ParamCreater = function () {
|
|
631
746
|
enterpriseProjectId = downloadStatisticsExcelRequest['enterprise_project_id'];
|
632
747
|
}
|
633
748
|
}
|
749
|
+
|
750
|
+
|
634
751
|
if (startTime === null || startTime === undefined) {
|
635
|
-
throw new RequiredError('startTime',
|
752
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling downloadStatisticsExcel.');
|
636
753
|
}
|
637
754
|
if (startTime !== null && startTime !== undefined) {
|
638
755
|
localVarQueryParameter['start_time'] = startTime;
|
639
756
|
}
|
640
757
|
if (endTime === null || endTime === undefined) {
|
641
|
-
throw new RequiredError('endTime',
|
758
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling downloadStatisticsExcel.');
|
642
759
|
}
|
643
760
|
if (endTime !== null && endTime !== undefined) {
|
644
761
|
localVarQueryParameter['end_time'] = endTime;
|
645
762
|
}
|
646
763
|
if (domainName === null || domainName === undefined) {
|
647
|
-
throw new RequiredError('domainName',
|
764
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling downloadStatisticsExcel.');
|
648
765
|
}
|
649
766
|
if (domainName !== null && domainName !== undefined) {
|
650
767
|
localVarQueryParameter['domain_name'] = domainName;
|
651
768
|
}
|
652
769
|
if (excelType === null || excelType === undefined) {
|
653
|
-
throw new RequiredError('excelType',
|
770
|
+
throw new RequiredError('excelType','Required parameter excelType was null or undefined when calling downloadStatisticsExcel.');
|
654
771
|
}
|
655
772
|
if (excelType !== null && excelType !== undefined) {
|
656
773
|
localVarQueryParameter['excel_type'] = excelType;
|
@@ -667,17 +784,19 @@ var ParamCreater = function () {
|
|
667
784
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
668
785
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
669
786
|
}
|
787
|
+
|
670
788
|
options.queryParams = localVarQueryParameter;
|
671
789
|
options.headers = localVarHeaderParameter;
|
672
790
|
return options;
|
673
791
|
},
|
792
|
+
|
674
793
|
/**
|
675
794
|
* 查询加速域名。
|
676
|
-
*
|
795
|
+
*
|
677
796
|
* Please refer to HUAWEI cloud API Explorer for details.
|
678
797
|
*/
|
679
|
-
listDomains
|
680
|
-
|
798
|
+
listDomains(listDomainsRequest?: ListDomainsRequest) {
|
799
|
+
const options = {
|
681
800
|
method: "GET",
|
682
801
|
url: "/v1.0/cdn/domains",
|
683
802
|
contentType: "application/json",
|
@@ -685,19 +804,29 @@ var ParamCreater = function () {
|
|
685
804
|
pathParams: {},
|
686
805
|
headers: {}
|
687
806
|
};
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
807
|
+
const localVarHeaderParameter = {} as any;
|
808
|
+
const localVarQueryParameter = {} as any;
|
809
|
+
|
810
|
+
let domainName;
|
811
|
+
|
812
|
+
let businessType;
|
813
|
+
|
814
|
+
let domainStatus;
|
815
|
+
|
816
|
+
let serviceArea;
|
817
|
+
|
818
|
+
let pageSize;
|
819
|
+
|
820
|
+
let pageNumber;
|
821
|
+
|
822
|
+
let showTags;
|
823
|
+
|
824
|
+
let exactMatch;
|
825
|
+
|
826
|
+
let enterpriseProjectId;
|
827
|
+
|
699
828
|
if (listDomainsRequest !== null && listDomainsRequest !== undefined) {
|
700
|
-
if (listDomainsRequest instanceof
|
829
|
+
if (listDomainsRequest instanceof ListDomainsRequest) {
|
701
830
|
domainName = listDomainsRequest.domainName;
|
702
831
|
businessType = listDomainsRequest.businessType;
|
703
832
|
domainStatus = listDomainsRequest.domainStatus;
|
@@ -707,8 +836,7 @@ var ParamCreater = function () {
|
|
707
836
|
showTags = listDomainsRequest.showTags;
|
708
837
|
exactMatch = listDomainsRequest.exactMatch;
|
709
838
|
enterpriseProjectId = listDomainsRequest.enterpriseProjectId;
|
710
|
-
}
|
711
|
-
else {
|
839
|
+
} else {
|
712
840
|
domainName = listDomainsRequest['domain_name'];
|
713
841
|
businessType = listDomainsRequest['business_type'];
|
714
842
|
domainStatus = listDomainsRequest['domain_status'];
|
@@ -720,6 +848,8 @@ var ParamCreater = function () {
|
|
720
848
|
enterpriseProjectId = listDomainsRequest['enterprise_project_id'];
|
721
849
|
}
|
722
850
|
}
|
851
|
+
|
852
|
+
|
723
853
|
if (domainName !== null && domainName !== undefined) {
|
724
854
|
localVarQueryParameter['domain_name'] = domainName;
|
725
855
|
}
|
@@ -747,25 +877,27 @@ var ParamCreater = function () {
|
|
747
877
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
748
878
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
749
879
|
}
|
880
|
+
|
750
881
|
options.queryParams = localVarQueryParameter;
|
751
882
|
options.headers = localVarHeaderParameter;
|
752
883
|
return options;
|
753
884
|
},
|
885
|
+
|
754
886
|
/**
|
755
887
|
* - 设置用户计费模式。
|
756
|
-
*
|
888
|
+
*
|
757
889
|
* - 服务区域仅支持mainland_china(国内)
|
758
|
-
*
|
890
|
+
*
|
759
891
|
* - 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽)
|
760
|
-
*
|
892
|
+
*
|
761
893
|
* - 加速类型仅支持base(基础加速)
|
762
|
-
*
|
894
|
+
*
|
763
895
|
* - 单租户调用频率:10次/min。
|
764
|
-
*
|
896
|
+
*
|
765
897
|
* Please refer to HUAWEI cloud API Explorer for details.
|
766
898
|
*/
|
767
|
-
setChargeModes
|
768
|
-
|
899
|
+
setChargeModes(setChargeModesRequest?: SetChargeModesRequest) {
|
900
|
+
const options = {
|
769
901
|
method: "PUT",
|
770
902
|
url: "/v1.0/cdn/charge/charge-modes",
|
771
903
|
contentType: "application/json",
|
@@ -774,43 +906,48 @@ var ParamCreater = function () {
|
|
774
906
|
headers: {},
|
775
907
|
data: {}
|
776
908
|
};
|
777
|
-
|
778
|
-
|
909
|
+
const localVarHeaderParameter = {} as any;
|
910
|
+
|
911
|
+
let body: any;
|
912
|
+
|
779
913
|
if (setChargeModesRequest !== null && setChargeModesRequest !== undefined) {
|
780
|
-
if (setChargeModesRequest instanceof
|
781
|
-
body = setChargeModesRequest.body
|
782
|
-
}
|
783
|
-
else {
|
914
|
+
if (setChargeModesRequest instanceof SetChargeModesRequest) {
|
915
|
+
body = setChargeModesRequest.body
|
916
|
+
} else {
|
784
917
|
body = setChargeModesRequest['body'];
|
785
918
|
}
|
786
919
|
}
|
920
|
+
|
921
|
+
|
787
922
|
if (body === null || body === undefined) {
|
788
|
-
throw new RequiredError('body',
|
923
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
789
924
|
}
|
790
925
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
926
|
+
|
791
927
|
options.data = body !== undefined ? body : {};
|
792
928
|
options.headers = localVarHeaderParameter;
|
793
929
|
return options;
|
794
930
|
},
|
931
|
+
|
795
932
|
/**
|
796
933
|
* - 查询域名带宽峰值类数据。
|
797
|
-
*
|
934
|
+
*
|
798
935
|
* - 支持查询90天内的数据。
|
799
|
-
*
|
936
|
+
*
|
800
937
|
* - 查询时间跨度不能超过31天。
|
801
|
-
*
|
938
|
+
*
|
802
939
|
* - 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
803
|
-
*
|
940
|
+
*
|
804
941
|
* - 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
|
805
|
-
*
|
942
|
+
*
|
806
943
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
807
|
-
*
|
944
|
+
*
|
808
945
|
* - 单租户调用频率:2次/s。
|
809
|
-
*
|
946
|
+
*
|
810
947
|
* Please refer to HUAWEI cloud API Explorer for details.
|
811
948
|
*/
|
812
|
-
showBandwidthCalc
|
813
|
-
|
949
|
+
showBandwidthCalc(showBandwidthCalcRequest?: ShowBandwidthCalcRequest) {
|
950
|
+
const options = {
|
814
951
|
method: "GET",
|
815
952
|
url: "/v1.0/cdn/statistics/bandwidth-calc",
|
816
953
|
contentType: "application/json",
|
@@ -818,24 +955,30 @@ var ParamCreater = function () {
|
|
818
955
|
pathParams: {},
|
819
956
|
headers: {}
|
820
957
|
};
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
958
|
+
const localVarHeaderParameter = {} as any;
|
959
|
+
const localVarQueryParameter = {} as any;
|
960
|
+
|
961
|
+
let startTime;
|
962
|
+
|
963
|
+
let endTime;
|
964
|
+
|
965
|
+
let domainName;
|
966
|
+
|
967
|
+
let calcType;
|
968
|
+
|
969
|
+
let serviceArea;
|
970
|
+
|
971
|
+
let enterpriseProjectId;
|
972
|
+
|
829
973
|
if (showBandwidthCalcRequest !== null && showBandwidthCalcRequest !== undefined) {
|
830
|
-
if (showBandwidthCalcRequest instanceof
|
974
|
+
if (showBandwidthCalcRequest instanceof ShowBandwidthCalcRequest) {
|
831
975
|
startTime = showBandwidthCalcRequest.startTime;
|
832
976
|
endTime = showBandwidthCalcRequest.endTime;
|
833
977
|
domainName = showBandwidthCalcRequest.domainName;
|
834
978
|
calcType = showBandwidthCalcRequest.calcType;
|
835
979
|
serviceArea = showBandwidthCalcRequest.serviceArea;
|
836
980
|
enterpriseProjectId = showBandwidthCalcRequest.enterpriseProjectId;
|
837
|
-
}
|
838
|
-
else {
|
981
|
+
} else {
|
839
982
|
startTime = showBandwidthCalcRequest['start_time'];
|
840
983
|
endTime = showBandwidthCalcRequest['end_time'];
|
841
984
|
domainName = showBandwidthCalcRequest['domain_name'];
|
@@ -844,26 +987,28 @@ var ParamCreater = function () {
|
|
844
987
|
enterpriseProjectId = showBandwidthCalcRequest['enterprise_project_id'];
|
845
988
|
}
|
846
989
|
}
|
990
|
+
|
991
|
+
|
847
992
|
if (startTime === null || startTime === undefined) {
|
848
|
-
throw new RequiredError('startTime',
|
993
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showBandwidthCalc.');
|
849
994
|
}
|
850
995
|
if (startTime !== null && startTime !== undefined) {
|
851
996
|
localVarQueryParameter['start_time'] = startTime;
|
852
997
|
}
|
853
998
|
if (endTime === null || endTime === undefined) {
|
854
|
-
throw new RequiredError('endTime',
|
999
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showBandwidthCalc.');
|
855
1000
|
}
|
856
1001
|
if (endTime !== null && endTime !== undefined) {
|
857
1002
|
localVarQueryParameter['end_time'] = endTime;
|
858
1003
|
}
|
859
1004
|
if (domainName === null || domainName === undefined) {
|
860
|
-
throw new RequiredError('domainName',
|
1005
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showBandwidthCalc.');
|
861
1006
|
}
|
862
1007
|
if (domainName !== null && domainName !== undefined) {
|
863
1008
|
localVarQueryParameter['domain_name'] = domainName;
|
864
1009
|
}
|
865
1010
|
if (calcType === null || calcType === undefined) {
|
866
|
-
throw new RequiredError('calcType',
|
1011
|
+
throw new RequiredError('calcType','Required parameter calcType was null or undefined when calling showBandwidthCalc.');
|
867
1012
|
}
|
868
1013
|
if (calcType !== null && calcType !== undefined) {
|
869
1014
|
localVarQueryParameter['calc_type'] = calcType;
|
@@ -874,25 +1019,27 @@ var ParamCreater = function () {
|
|
874
1019
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
875
1020
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
876
1021
|
}
|
1022
|
+
|
877
1023
|
options.queryParams = localVarQueryParameter;
|
878
1024
|
options.headers = localVarHeaderParameter;
|
879
1025
|
return options;
|
880
1026
|
},
|
1027
|
+
|
881
1028
|
/**
|
882
1029
|
* - 查询用户计费模式。
|
883
|
-
*
|
1030
|
+
*
|
884
1031
|
* - 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)
|
885
|
-
*
|
1032
|
+
*
|
886
1033
|
* - 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)
|
887
|
-
*
|
1034
|
+
*
|
888
1035
|
* - 加速类型仅支持base(基础加速)
|
889
|
-
*
|
1036
|
+
*
|
890
1037
|
* - 单租户调用频率:5次/s。
|
891
|
-
*
|
1038
|
+
*
|
892
1039
|
* Please refer to HUAWEI cloud API Explorer for details.
|
893
1040
|
*/
|
894
|
-
showChargeModes
|
895
|
-
|
1041
|
+
showChargeModes(showChargeModesRequest?: ShowChargeModesRequest) {
|
1042
|
+
const options = {
|
896
1043
|
method: "GET",
|
897
1044
|
url: "/v1.0/cdn/charge/charge-modes",
|
898
1045
|
contentType: "application/json",
|
@@ -900,25 +1047,30 @@ var ParamCreater = function () {
|
|
900
1047
|
pathParams: {},
|
901
1048
|
headers: {}
|
902
1049
|
};
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
1050
|
+
const localVarHeaderParameter = {} as any;
|
1051
|
+
const localVarQueryParameter = {} as any;
|
1052
|
+
|
1053
|
+
let productType;
|
1054
|
+
|
1055
|
+
let status;
|
1056
|
+
|
1057
|
+
let serviceArea;
|
1058
|
+
|
908
1059
|
if (showChargeModesRequest !== null && showChargeModesRequest !== undefined) {
|
909
|
-
if (showChargeModesRequest instanceof
|
1060
|
+
if (showChargeModesRequest instanceof ShowChargeModesRequest) {
|
910
1061
|
productType = showChargeModesRequest.productType;
|
911
1062
|
status = showChargeModesRequest.status;
|
912
1063
|
serviceArea = showChargeModesRequest.serviceArea;
|
913
|
-
}
|
914
|
-
else {
|
1064
|
+
} else {
|
915
1065
|
productType = showChargeModesRequest['product_type'];
|
916
1066
|
status = showChargeModesRequest['status'];
|
917
1067
|
serviceArea = showChargeModesRequest['service_area'];
|
918
1068
|
}
|
919
1069
|
}
|
1070
|
+
|
1071
|
+
|
920
1072
|
if (productType === null || productType === undefined) {
|
921
|
-
throw new RequiredError('productType',
|
1073
|
+
throw new RequiredError('productType','Required parameter productType was null or undefined when calling showChargeModes.');
|
922
1074
|
}
|
923
1075
|
if (productType !== null && productType !== undefined) {
|
924
1076
|
localVarQueryParameter['product_type'] = productType;
|
@@ -929,17 +1081,19 @@ var ParamCreater = function () {
|
|
929
1081
|
if (serviceArea !== null && serviceArea !== undefined) {
|
930
1082
|
localVarQueryParameter['service_area'] = serviceArea;
|
931
1083
|
}
|
1084
|
+
|
932
1085
|
options.queryParams = localVarQueryParameter;
|
933
1086
|
options.headers = localVarHeaderParameter;
|
934
1087
|
return options;
|
935
1088
|
},
|
1089
|
+
|
936
1090
|
/**
|
937
1091
|
* 加速域名详情信息接口。
|
938
|
-
*
|
1092
|
+
*
|
939
1093
|
* Please refer to HUAWEI cloud API Explorer for details.
|
940
1094
|
*/
|
941
|
-
showDomainDetailByName
|
942
|
-
|
1095
|
+
showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest) {
|
1096
|
+
const options = {
|
943
1097
|
method: "GET",
|
944
1098
|
url: "/v1.0/cdn/configuration/domains/{domain_name}",
|
945
1099
|
contentType: "application/json",
|
@@ -947,39 +1101,45 @@ var ParamCreater = function () {
|
|
947
1101
|
pathParams: {},
|
948
1102
|
headers: {}
|
949
1103
|
};
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
1104
|
+
const localVarHeaderParameter = {} as any;
|
1105
|
+
const localVarQueryParameter = {} as any;
|
1106
|
+
|
1107
|
+
let domainName;
|
1108
|
+
|
1109
|
+
let enterpriseProjectId;
|
1110
|
+
|
954
1111
|
if (showDomainDetailByNameRequest !== null && showDomainDetailByNameRequest !== undefined) {
|
955
|
-
if (showDomainDetailByNameRequest instanceof
|
1112
|
+
if (showDomainDetailByNameRequest instanceof ShowDomainDetailByNameRequest) {
|
956
1113
|
domainName = showDomainDetailByNameRequest.domainName;
|
957
1114
|
enterpriseProjectId = showDomainDetailByNameRequest.enterpriseProjectId;
|
958
|
-
}
|
959
|
-
else {
|
1115
|
+
} else {
|
960
1116
|
domainName = showDomainDetailByNameRequest['domain_name'];
|
961
1117
|
enterpriseProjectId = showDomainDetailByNameRequest['enterprise_project_id'];
|
962
1118
|
}
|
963
1119
|
}
|
1120
|
+
|
1121
|
+
|
964
1122
|
if (domainName === null || domainName === undefined) {
|
965
|
-
|
1123
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainDetailByName.');
|
966
1124
|
}
|
967
1125
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
968
1126
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
969
1127
|
}
|
1128
|
+
|
970
1129
|
options.queryParams = localVarQueryParameter;
|
971
1130
|
options.pathParams = { 'domain_name': domainName, };
|
972
1131
|
options.headers = localVarHeaderParameter;
|
973
1132
|
return options;
|
974
1133
|
},
|
1134
|
+
|
975
1135
|
/**
|
976
1136
|
* 查询域名配置接口,
|
977
1137
|
* 支持查询回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
|
978
|
-
*
|
1138
|
+
*
|
979
1139
|
* Please refer to HUAWEI cloud API Explorer for details.
|
980
1140
|
*/
|
981
|
-
showDomainFullConfig
|
982
|
-
|
1141
|
+
showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest) {
|
1142
|
+
const options = {
|
983
1143
|
method: "GET",
|
984
1144
|
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
985
1145
|
contentType: "application/json",
|
@@ -987,25 +1147,30 @@ var ParamCreater = function () {
|
|
987
1147
|
pathParams: {},
|
988
1148
|
headers: {}
|
989
1149
|
};
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
1150
|
+
const localVarHeaderParameter = {} as any;
|
1151
|
+
const localVarQueryParameter = {} as any;
|
1152
|
+
|
1153
|
+
let domainName;
|
1154
|
+
|
1155
|
+
let enterpriseProjectId;
|
1156
|
+
|
1157
|
+
let showSpecialConfigs;
|
1158
|
+
|
995
1159
|
if (showDomainFullConfigRequest !== null && showDomainFullConfigRequest !== undefined) {
|
996
|
-
if (showDomainFullConfigRequest instanceof
|
1160
|
+
if (showDomainFullConfigRequest instanceof ShowDomainFullConfigRequest) {
|
997
1161
|
domainName = showDomainFullConfigRequest.domainName;
|
998
1162
|
enterpriseProjectId = showDomainFullConfigRequest.enterpriseProjectId;
|
999
1163
|
showSpecialConfigs = showDomainFullConfigRequest.showSpecialConfigs;
|
1000
|
-
}
|
1001
|
-
else {
|
1164
|
+
} else {
|
1002
1165
|
domainName = showDomainFullConfigRequest['domain_name'];
|
1003
1166
|
enterpriseProjectId = showDomainFullConfigRequest['enterprise_project_id'];
|
1004
1167
|
showSpecialConfigs = showDomainFullConfigRequest['show_special_configs'];
|
1005
1168
|
}
|
1006
1169
|
}
|
1170
|
+
|
1171
|
+
|
1007
1172
|
if (domainName === null || domainName === undefined) {
|
1008
|
-
|
1173
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainFullConfig.');
|
1009
1174
|
}
|
1010
1175
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1011
1176
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
@@ -1013,30 +1178,32 @@ var ParamCreater = function () {
|
|
1013
1178
|
if (showSpecialConfigs !== null && showSpecialConfigs !== undefined) {
|
1014
1179
|
localVarQueryParameter['show_special_configs'] = showSpecialConfigs;
|
1015
1180
|
}
|
1181
|
+
|
1016
1182
|
options.queryParams = localVarQueryParameter;
|
1017
1183
|
options.pathParams = { 'domain_name': domainName, };
|
1018
1184
|
options.headers = localVarHeaderParameter;
|
1019
1185
|
return options;
|
1020
1186
|
},
|
1187
|
+
|
1021
1188
|
/**
|
1022
1189
|
* - 支持查询90天内的数据。
|
1023
|
-
*
|
1190
|
+
*
|
1024
1191
|
* - 支持多指标同时查询,不超过5个。
|
1025
|
-
*
|
1192
|
+
*
|
1026
1193
|
* - 最多同时指定20个域名。
|
1027
|
-
*
|
1194
|
+
*
|
1028
1195
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1029
|
-
*
|
1196
|
+
*
|
1030
1197
|
* - action取值:location_detail,location_summary
|
1031
|
-
*
|
1198
|
+
*
|
1032
1199
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
1033
|
-
*
|
1200
|
+
*
|
1034
1201
|
* - 单租户调用频率:15次/s。
|
1035
|
-
*
|
1202
|
+
*
|
1036
1203
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1037
1204
|
*/
|
1038
|
-
showDomainLocationStats
|
1039
|
-
|
1205
|
+
showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest) {
|
1206
|
+
const options = {
|
1040
1207
|
method: "GET",
|
1041
1208
|
url: "/v1.0/cdn/statistics/domain-location-stats",
|
1042
1209
|
contentType: "application/json",
|
@@ -1044,21 +1211,33 @@ var ParamCreater = function () {
|
|
1044
1211
|
pathParams: {},
|
1045
1212
|
headers: {}
|
1046
1213
|
};
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1214
|
+
const localVarHeaderParameter = {} as any;
|
1215
|
+
const localVarQueryParameter = {} as any;
|
1216
|
+
|
1217
|
+
let action;
|
1218
|
+
|
1219
|
+
let startTime;
|
1220
|
+
|
1221
|
+
let endTime;
|
1222
|
+
|
1223
|
+
let domainName;
|
1224
|
+
|
1225
|
+
let statType;
|
1226
|
+
|
1227
|
+
let interval;
|
1228
|
+
|
1229
|
+
let country;
|
1230
|
+
|
1231
|
+
let province;
|
1232
|
+
|
1233
|
+
let isp;
|
1234
|
+
|
1235
|
+
let groupBy;
|
1236
|
+
|
1237
|
+
let enterpriseProjectId;
|
1238
|
+
|
1060
1239
|
if (showDomainLocationStatsRequest !== null && showDomainLocationStatsRequest !== undefined) {
|
1061
|
-
if (showDomainLocationStatsRequest instanceof
|
1240
|
+
if (showDomainLocationStatsRequest instanceof ShowDomainLocationStatsRequest) {
|
1062
1241
|
action = showDomainLocationStatsRequest.action;
|
1063
1242
|
startTime = showDomainLocationStatsRequest.startTime;
|
1064
1243
|
endTime = showDomainLocationStatsRequest.endTime;
|
@@ -1070,8 +1249,7 @@ var ParamCreater = function () {
|
|
1070
1249
|
isp = showDomainLocationStatsRequest.isp;
|
1071
1250
|
groupBy = showDomainLocationStatsRequest.groupBy;
|
1072
1251
|
enterpriseProjectId = showDomainLocationStatsRequest.enterpriseProjectId;
|
1073
|
-
}
|
1074
|
-
else {
|
1252
|
+
} else {
|
1075
1253
|
action = showDomainLocationStatsRequest['action'];
|
1076
1254
|
startTime = showDomainLocationStatsRequest['start_time'];
|
1077
1255
|
endTime = showDomainLocationStatsRequest['end_time'];
|
@@ -1085,32 +1263,34 @@ var ParamCreater = function () {
|
|
1085
1263
|
enterpriseProjectId = showDomainLocationStatsRequest['enterprise_project_id'];
|
1086
1264
|
}
|
1087
1265
|
}
|
1266
|
+
|
1267
|
+
|
1088
1268
|
if (action === null || action === undefined) {
|
1089
|
-
throw new RequiredError('action',
|
1269
|
+
throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainLocationStats.');
|
1090
1270
|
}
|
1091
1271
|
if (action !== null && action !== undefined) {
|
1092
1272
|
localVarQueryParameter['action'] = action;
|
1093
1273
|
}
|
1094
1274
|
if (startTime === null || startTime === undefined) {
|
1095
|
-
throw new RequiredError('startTime',
|
1275
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainLocationStats.');
|
1096
1276
|
}
|
1097
1277
|
if (startTime !== null && startTime !== undefined) {
|
1098
1278
|
localVarQueryParameter['start_time'] = startTime;
|
1099
1279
|
}
|
1100
1280
|
if (endTime === null || endTime === undefined) {
|
1101
|
-
throw new RequiredError('endTime',
|
1281
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainLocationStats.');
|
1102
1282
|
}
|
1103
1283
|
if (endTime !== null && endTime !== undefined) {
|
1104
1284
|
localVarQueryParameter['end_time'] = endTime;
|
1105
1285
|
}
|
1106
1286
|
if (domainName === null || domainName === undefined) {
|
1107
|
-
throw new RequiredError('domainName',
|
1287
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainLocationStats.');
|
1108
1288
|
}
|
1109
1289
|
if (domainName !== null && domainName !== undefined) {
|
1110
1290
|
localVarQueryParameter['domain_name'] = domainName;
|
1111
1291
|
}
|
1112
1292
|
if (statType === null || statType === undefined) {
|
1113
|
-
throw new RequiredError('statType',
|
1293
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainLocationStats.');
|
1114
1294
|
}
|
1115
1295
|
if (statType !== null && statType !== undefined) {
|
1116
1296
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -1133,29 +1313,31 @@ var ParamCreater = function () {
|
|
1133
1313
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1134
1314
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1135
1315
|
}
|
1316
|
+
|
1136
1317
|
options.queryParams = localVarQueryParameter;
|
1137
1318
|
options.headers = localVarHeaderParameter;
|
1138
1319
|
return options;
|
1139
1320
|
},
|
1321
|
+
|
1140
1322
|
/**
|
1141
1323
|
* - 支持查询90天内的数据。
|
1142
|
-
*
|
1324
|
+
*
|
1143
1325
|
* - 支持多指标同时查询,不超过5个。
|
1144
|
-
*
|
1326
|
+
*
|
1145
1327
|
* - 最多同时指定20个域名。
|
1146
|
-
*
|
1328
|
+
*
|
1147
1329
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1148
|
-
*
|
1330
|
+
*
|
1149
1331
|
* - action取值:detail,summary
|
1150
|
-
*
|
1332
|
+
*
|
1151
1333
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1152
|
-
*
|
1334
|
+
*
|
1153
1335
|
* - 单租户调用频率:15次/s。
|
1154
|
-
*
|
1336
|
+
*
|
1155
1337
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1156
1338
|
*/
|
1157
|
-
showDomainStats
|
1158
|
-
|
1339
|
+
showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest) {
|
1340
|
+
const options = {
|
1159
1341
|
method: "GET",
|
1160
1342
|
url: "/v1.0/cdn/statistics/domain-stats",
|
1161
1343
|
contentType: "application/json",
|
@@ -1163,19 +1345,29 @@ var ParamCreater = function () {
|
|
1163
1345
|
pathParams: {},
|
1164
1346
|
headers: {}
|
1165
1347
|
};
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
|
1348
|
+
const localVarHeaderParameter = {} as any;
|
1349
|
+
const localVarQueryParameter = {} as any;
|
1350
|
+
|
1351
|
+
let action;
|
1352
|
+
|
1353
|
+
let startTime;
|
1354
|
+
|
1355
|
+
let endTime;
|
1356
|
+
|
1357
|
+
let domainName;
|
1358
|
+
|
1359
|
+
let statType;
|
1360
|
+
|
1361
|
+
let interval;
|
1362
|
+
|
1363
|
+
let groupBy;
|
1364
|
+
|
1365
|
+
let serviceArea;
|
1366
|
+
|
1367
|
+
let enterpriseProjectId;
|
1368
|
+
|
1177
1369
|
if (showDomainStatsRequest !== null && showDomainStatsRequest !== undefined) {
|
1178
|
-
if (showDomainStatsRequest instanceof
|
1370
|
+
if (showDomainStatsRequest instanceof ShowDomainStatsRequest) {
|
1179
1371
|
action = showDomainStatsRequest.action;
|
1180
1372
|
startTime = showDomainStatsRequest.startTime;
|
1181
1373
|
endTime = showDomainStatsRequest.endTime;
|
@@ -1185,8 +1377,7 @@ var ParamCreater = function () {
|
|
1185
1377
|
groupBy = showDomainStatsRequest.groupBy;
|
1186
1378
|
serviceArea = showDomainStatsRequest.serviceArea;
|
1187
1379
|
enterpriseProjectId = showDomainStatsRequest.enterpriseProjectId;
|
1188
|
-
}
|
1189
|
-
else {
|
1380
|
+
} else {
|
1190
1381
|
action = showDomainStatsRequest['action'];
|
1191
1382
|
startTime = showDomainStatsRequest['start_time'];
|
1192
1383
|
endTime = showDomainStatsRequest['end_time'];
|
@@ -1198,32 +1389,34 @@ var ParamCreater = function () {
|
|
1198
1389
|
enterpriseProjectId = showDomainStatsRequest['enterprise_project_id'];
|
1199
1390
|
}
|
1200
1391
|
}
|
1392
|
+
|
1393
|
+
|
1201
1394
|
if (action === null || action === undefined) {
|
1202
|
-
throw new RequiredError('action',
|
1395
|
+
throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainStats.');
|
1203
1396
|
}
|
1204
1397
|
if (action !== null && action !== undefined) {
|
1205
1398
|
localVarQueryParameter['action'] = action;
|
1206
1399
|
}
|
1207
1400
|
if (startTime === null || startTime === undefined) {
|
1208
|
-
throw new RequiredError('startTime',
|
1401
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainStats.');
|
1209
1402
|
}
|
1210
1403
|
if (startTime !== null && startTime !== undefined) {
|
1211
1404
|
localVarQueryParameter['start_time'] = startTime;
|
1212
1405
|
}
|
1213
1406
|
if (endTime === null || endTime === undefined) {
|
1214
|
-
throw new RequiredError('endTime',
|
1407
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainStats.');
|
1215
1408
|
}
|
1216
1409
|
if (endTime !== null && endTime !== undefined) {
|
1217
1410
|
localVarQueryParameter['end_time'] = endTime;
|
1218
1411
|
}
|
1219
1412
|
if (domainName === null || domainName === undefined) {
|
1220
|
-
throw new RequiredError('domainName',
|
1413
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainStats.');
|
1221
1414
|
}
|
1222
1415
|
if (domainName !== null && domainName !== undefined) {
|
1223
1416
|
localVarQueryParameter['domain_name'] = domainName;
|
1224
1417
|
}
|
1225
1418
|
if (statType === null || statType === undefined) {
|
1226
|
-
throw new RequiredError('statType',
|
1419
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainStats.');
|
1227
1420
|
}
|
1228
1421
|
if (statType !== null && statType !== undefined) {
|
1229
1422
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -1240,29 +1433,31 @@ var ParamCreater = function () {
|
|
1240
1433
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1241
1434
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1242
1435
|
}
|
1436
|
+
|
1243
1437
|
options.queryParams = localVarQueryParameter;
|
1244
1438
|
options.headers = localVarHeaderParameter;
|
1245
1439
|
return options;
|
1246
1440
|
},
|
1441
|
+
|
1247
1442
|
/**
|
1248
1443
|
* - 查询TOP域名。
|
1249
|
-
*
|
1444
|
+
*
|
1250
1445
|
* - 支持查询90天内的数据。
|
1251
|
-
*
|
1446
|
+
*
|
1252
1447
|
* - 查询时间跨度不能超过1天。
|
1253
|
-
*
|
1448
|
+
*
|
1254
1449
|
* - 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
|
1255
|
-
*
|
1450
|
+
*
|
1256
1451
|
* - 起始时间、结束时间必须传整点毫秒级时间戳。
|
1257
|
-
*
|
1452
|
+
*
|
1258
1453
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1259
|
-
*
|
1454
|
+
*
|
1260
1455
|
* - 单租户调用频率:5次/s。
|
1261
|
-
*
|
1456
|
+
*
|
1262
1457
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1263
1458
|
*/
|
1264
|
-
showTopDomainNames
|
1265
|
-
|
1459
|
+
showTopDomainNames(showTopDomainNamesRequest?: ShowTopDomainNamesRequest) {
|
1460
|
+
const options = {
|
1266
1461
|
method: "GET",
|
1267
1462
|
url: "/v1/cdn/statistics/top-domain-names",
|
1268
1463
|
contentType: "application/json",
|
@@ -1270,24 +1465,30 @@ var ParamCreater = function () {
|
|
1270
1465
|
pathParams: {},
|
1271
1466
|
headers: {}
|
1272
1467
|
};
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1468
|
+
const localVarHeaderParameter = {} as any;
|
1469
|
+
const localVarQueryParameter = {} as any;
|
1470
|
+
|
1471
|
+
let startTime;
|
1472
|
+
|
1473
|
+
let endTime;
|
1474
|
+
|
1475
|
+
let statType;
|
1476
|
+
|
1477
|
+
let serviceArea;
|
1478
|
+
|
1479
|
+
let limit;
|
1480
|
+
|
1481
|
+
let enterpriseProjectId;
|
1482
|
+
|
1281
1483
|
if (showTopDomainNamesRequest !== null && showTopDomainNamesRequest !== undefined) {
|
1282
|
-
if (showTopDomainNamesRequest instanceof
|
1484
|
+
if (showTopDomainNamesRequest instanceof ShowTopDomainNamesRequest) {
|
1283
1485
|
startTime = showTopDomainNamesRequest.startTime;
|
1284
1486
|
endTime = showTopDomainNamesRequest.endTime;
|
1285
1487
|
statType = showTopDomainNamesRequest.statType;
|
1286
1488
|
serviceArea = showTopDomainNamesRequest.serviceArea;
|
1287
1489
|
limit = showTopDomainNamesRequest.limit;
|
1288
1490
|
enterpriseProjectId = showTopDomainNamesRequest.enterpriseProjectId;
|
1289
|
-
}
|
1290
|
-
else {
|
1491
|
+
} else {
|
1291
1492
|
startTime = showTopDomainNamesRequest['start_time'];
|
1292
1493
|
endTime = showTopDomainNamesRequest['end_time'];
|
1293
1494
|
statType = showTopDomainNamesRequest['stat_type'];
|
@@ -1296,20 +1497,22 @@ var ParamCreater = function () {
|
|
1296
1497
|
enterpriseProjectId = showTopDomainNamesRequest['enterprise_project_id'];
|
1297
1498
|
}
|
1298
1499
|
}
|
1500
|
+
|
1501
|
+
|
1299
1502
|
if (startTime === null || startTime === undefined) {
|
1300
|
-
throw new RequiredError('startTime',
|
1503
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showTopDomainNames.');
|
1301
1504
|
}
|
1302
1505
|
if (startTime !== null && startTime !== undefined) {
|
1303
1506
|
localVarQueryParameter['start_time'] = startTime;
|
1304
1507
|
}
|
1305
1508
|
if (endTime === null || endTime === undefined) {
|
1306
|
-
throw new RequiredError('endTime',
|
1509
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showTopDomainNames.');
|
1307
1510
|
}
|
1308
1511
|
if (endTime !== null && endTime !== undefined) {
|
1309
1512
|
localVarQueryParameter['end_time'] = endTime;
|
1310
1513
|
}
|
1311
1514
|
if (statType === null || statType === undefined) {
|
1312
|
-
throw new RequiredError('statType',
|
1515
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showTopDomainNames.');
|
1313
1516
|
}
|
1314
1517
|
if (statType !== null && statType !== undefined) {
|
1315
1518
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -1323,29 +1526,31 @@ var ParamCreater = function () {
|
|
1323
1526
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1324
1527
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1325
1528
|
}
|
1529
|
+
|
1326
1530
|
options.queryParams = localVarQueryParameter;
|
1327
1531
|
options.headers = localVarHeaderParameter;
|
1328
1532
|
return options;
|
1329
1533
|
},
|
1534
|
+
|
1330
1535
|
/**
|
1331
1536
|
* - 查询TOP100 URL明细。
|
1332
|
-
*
|
1537
|
+
*
|
1333
1538
|
* - 支持查询90天内的数据。
|
1334
|
-
*
|
1539
|
+
*
|
1335
1540
|
* - 查询跨度不能超过31天。
|
1336
|
-
*
|
1541
|
+
*
|
1337
1542
|
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
1338
|
-
*
|
1543
|
+
*
|
1339
1544
|
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
1340
|
-
*
|
1545
|
+
*
|
1341
1546
|
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1342
|
-
*
|
1547
|
+
*
|
1343
1548
|
* - 单租户调用频率:5次/s。
|
1344
|
-
*
|
1549
|
+
*
|
1345
1550
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1346
1551
|
*/
|
1347
|
-
showTopUrl
|
1348
|
-
|
1552
|
+
showTopUrl(showTopUrlRequest?: ShowTopUrlRequest) {
|
1553
|
+
const options = {
|
1349
1554
|
method: "GET",
|
1350
1555
|
url: "/v1.0/cdn/statistics/top-url",
|
1351
1556
|
contentType: "application/json",
|
@@ -1353,24 +1558,30 @@ var ParamCreater = function () {
|
|
1353
1558
|
pathParams: {},
|
1354
1559
|
headers: {}
|
1355
1560
|
};
|
1356
|
-
|
1357
|
-
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1561
|
+
const localVarHeaderParameter = {} as any;
|
1562
|
+
const localVarQueryParameter = {} as any;
|
1563
|
+
|
1564
|
+
let startTime;
|
1565
|
+
|
1566
|
+
let endTime;
|
1567
|
+
|
1568
|
+
let domainName;
|
1569
|
+
|
1570
|
+
let statType;
|
1571
|
+
|
1572
|
+
let serviceArea;
|
1573
|
+
|
1574
|
+
let enterpriseProjectId;
|
1575
|
+
|
1364
1576
|
if (showTopUrlRequest !== null && showTopUrlRequest !== undefined) {
|
1365
|
-
if (showTopUrlRequest instanceof
|
1577
|
+
if (showTopUrlRequest instanceof ShowTopUrlRequest) {
|
1366
1578
|
startTime = showTopUrlRequest.startTime;
|
1367
1579
|
endTime = showTopUrlRequest.endTime;
|
1368
1580
|
domainName = showTopUrlRequest.domainName;
|
1369
1581
|
statType = showTopUrlRequest.statType;
|
1370
1582
|
serviceArea = showTopUrlRequest.serviceArea;
|
1371
1583
|
enterpriseProjectId = showTopUrlRequest.enterpriseProjectId;
|
1372
|
-
}
|
1373
|
-
else {
|
1584
|
+
} else {
|
1374
1585
|
startTime = showTopUrlRequest['start_time'];
|
1375
1586
|
endTime = showTopUrlRequest['end_time'];
|
1376
1587
|
domainName = showTopUrlRequest['domain_name'];
|
@@ -1379,26 +1590,28 @@ var ParamCreater = function () {
|
|
1379
1590
|
enterpriseProjectId = showTopUrlRequest['enterprise_project_id'];
|
1380
1591
|
}
|
1381
1592
|
}
|
1593
|
+
|
1594
|
+
|
1382
1595
|
if (startTime === null || startTime === undefined) {
|
1383
|
-
throw new RequiredError('startTime',
|
1596
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showTopUrl.');
|
1384
1597
|
}
|
1385
1598
|
if (startTime !== null && startTime !== undefined) {
|
1386
1599
|
localVarQueryParameter['start_time'] = startTime;
|
1387
1600
|
}
|
1388
1601
|
if (endTime === null || endTime === undefined) {
|
1389
|
-
throw new RequiredError('endTime',
|
1602
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showTopUrl.');
|
1390
1603
|
}
|
1391
1604
|
if (endTime !== null && endTime !== undefined) {
|
1392
1605
|
localVarQueryParameter['end_time'] = endTime;
|
1393
1606
|
}
|
1394
1607
|
if (domainName === null || domainName === undefined) {
|
1395
|
-
throw new RequiredError('domainName',
|
1608
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showTopUrl.');
|
1396
1609
|
}
|
1397
1610
|
if (domainName !== null && domainName !== undefined) {
|
1398
1611
|
localVarQueryParameter['domain_name'] = domainName;
|
1399
1612
|
}
|
1400
1613
|
if (statType === null || statType === undefined) {
|
1401
|
-
throw new RequiredError('statType',
|
1614
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showTopUrl.');
|
1402
1615
|
}
|
1403
1616
|
if (statType !== null && statType !== undefined) {
|
1404
1617
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -1409,18 +1622,20 @@ var ParamCreater = function () {
|
|
1409
1622
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1410
1623
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1411
1624
|
}
|
1625
|
+
|
1412
1626
|
options.queryParams = localVarQueryParameter;
|
1413
1627
|
options.headers = localVarHeaderParameter;
|
1414
1628
|
return options;
|
1415
1629
|
},
|
1630
|
+
|
1416
1631
|
/**
|
1417
1632
|
* 修改域名配置接口,
|
1418
1633
|
* 支持修改回源请求头、业务类型、服务区域、HTTP header配置、URL鉴权、证书、源站、回源协议、回源跟随、ipv6设置、智能压缩、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转、高级回源、回源是否校验Etag、回源超时时间、远程鉴权配置、webSocket配置、视频拖拽、请求限速。
|
1419
|
-
*
|
1634
|
+
*
|
1420
1635
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1421
1636
|
*/
|
1422
|
-
updateDomainFullConfig
|
1423
|
-
|
1637
|
+
updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest) {
|
1638
|
+
const options = {
|
1424
1639
|
method: "PUT",
|
1425
1640
|
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
1426
1641
|
contentType: "application/json",
|
@@ -1429,56 +1644,58 @@ var ParamCreater = function () {
|
|
1429
1644
|
headers: {},
|
1430
1645
|
data: {}
|
1431
1646
|
};
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1647
|
+
const localVarHeaderParameter = {} as any;
|
1648
|
+
const localVarQueryParameter = {} as any;
|
1649
|
+
let body: any;
|
1650
|
+
|
1651
|
+
let domainName;
|
1652
|
+
|
1653
|
+
let enterpriseProjectId;
|
1654
|
+
|
1437
1655
|
if (updateDomainFullConfigRequest !== null && updateDomainFullConfigRequest !== undefined) {
|
1438
|
-
if (updateDomainFullConfigRequest instanceof
|
1656
|
+
if (updateDomainFullConfigRequest instanceof UpdateDomainFullConfigRequest) {
|
1439
1657
|
domainName = updateDomainFullConfigRequest.domainName;
|
1440
1658
|
enterpriseProjectId = updateDomainFullConfigRequest.enterpriseProjectId;
|
1441
|
-
body = updateDomainFullConfigRequest.body
|
1442
|
-
}
|
1443
|
-
else {
|
1659
|
+
body = updateDomainFullConfigRequest.body
|
1660
|
+
} else {
|
1444
1661
|
domainName = updateDomainFullConfigRequest['domain_name'];
|
1445
1662
|
enterpriseProjectId = updateDomainFullConfigRequest['enterprise_project_id'];
|
1446
1663
|
body = updateDomainFullConfigRequest['body'];
|
1447
1664
|
}
|
1448
1665
|
}
|
1666
|
+
|
1667
|
+
|
1449
1668
|
if (domainName === null || domainName === undefined) {
|
1450
|
-
|
1669
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling updateDomainFullConfig.');
|
1451
1670
|
}
|
1452
1671
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1453
1672
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1454
1673
|
}
|
1455
1674
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1675
|
+
|
1456
1676
|
options.data = body !== undefined ? body : {};
|
1457
1677
|
options.queryParams = localVarQueryParameter;
|
1458
1678
|
options.pathParams = { 'domain_name': domainName, };
|
1459
1679
|
options.headers = localVarHeaderParameter;
|
1460
1680
|
return options;
|
1461
1681
|
},
|
1462
|
-
|
1682
|
+
|
1683
|
+
}
|
1463
1684
|
};
|
1464
|
-
|
1465
|
-
function newClient(client) {
|
1685
|
+
|
1686
|
+
function newClient(client: HcClient): CdnClient {
|
1466
1687
|
return new CdnClient(client);
|
1467
1688
|
}
|
1689
|
+
|
1468
1690
|
/**
|
1469
1691
|
*
|
1470
1692
|
* @export
|
1471
1693
|
* @class RequiredError
|
1472
1694
|
* @extends {Error}
|
1473
1695
|
*/
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
_this.field = field;
|
1479
|
-
_this.name = "RequiredError";
|
1480
|
-
return _this;
|
1696
|
+
export class RequiredError extends Error {
|
1697
|
+
name: "RequiredError" = "RequiredError";
|
1698
|
+
constructor(public field: string, msg?: string) {
|
1699
|
+
super(msg);
|
1481
1700
|
}
|
1482
|
-
|
1483
|
-
}(Error));
|
1484
|
-
exports.RequiredError = RequiredError;
|
1701
|
+
}
|