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