@huaweicloud/huaweicloud-sdk-cdn 3.1.45 → 3.1.46
Sign up to get free protection for your applications and to get access to all the features.
- package/huaweicloud-sdk-cdn.ts +6 -0
- package/package.json +4 -4
- package/v1/{CdnClient.js → CdnClient.ts} +1429 -895
- package/v1/CdnRegion.ts +28 -0
- package/v1/model/BatchDeleteTagsRequest.ts +12 -0
- package/v1/model/BatchDeleteTagsResponse.ts +8 -0
- package/v1/model/BlackWhiteListBody.ts +23 -0
- package/v1/model/CacheConfig.ts +40 -0
- package/v1/model/CacheConfigRequest.ts +40 -0
- package/v1/model/CacheConfigRequestBody.ts +19 -0
- package/v1/model/CacheRules.ts +88 -0
- package/v1/model/CacheUrlParameterFilter.ts +16 -0
- package/v1/model/CdnIps.ts +31 -0
- package/v1/model/Compress.ts +17 -0
- package/v1/model/CompressRequest.ts +17 -0
- package/v1/model/CompressResponse.ts +30 -0
- package/v1/model/CompressRules.ts +28 -0
- package/v1/model/Configs.ts +206 -0
- package/v1/model/ConfigsGetBody.ts +206 -0
- package/v1/model/CreateDomainRequest.ts +12 -0
- package/v1/model/CreateDomainRequestBody.ts +13 -0
- package/v1/model/CreateDomainResponse.ts +14 -0
- package/v1/model/CreateDomainResponseBodyContent.ts +176 -0
- package/v1/model/CreatePreheatingTasksRequest.ts +23 -0
- package/v1/model/CreatePreheatingTasksResponse.ts +19 -0
- package/v1/model/CreateRefreshTasksRequest.ts +23 -0
- package/v1/model/CreateRefreshTasksResponse.ts +19 -0
- package/v1/model/CreateTagsRequest.ts +12 -0
- package/v1/model/CreateTagsRequestBody.ts +24 -0
- package/v1/model/CreateTagsResponse.ts +8 -0
- package/v1/model/DeleteDomainRequest.ts +29 -0
- package/v1/model/DeleteDomainResponse.ts +14 -0
- package/v1/model/DeleteTagsRequestBody.ts +24 -0
- package/v1/model/DisableDomainRequest.ts +29 -0
- package/v1/model/DisableDomainResponse.ts +14 -0
- package/v1/model/DomainBody.ts +80 -0
- package/v1/model/DomainItemDetail.ts +44 -0
- package/v1/model/DomainItemLocationDetails.ts +45 -0
- package/v1/model/DomainOriginHost.ts +40 -0
- package/v1/model/DomainRegion.ts +28 -0
- package/v1/model/Domains.ts +225 -0
- package/v1/model/DomainsWithPort.ts +219 -0
- package/v1/model/EnableDomainRequest.ts +29 -0
- package/v1/model/EnableDomainResponse.ts +14 -0
- package/v1/model/EpResourceTag.ts +18 -0
- package/v1/model/ErrorCodeCache.ts +16 -0
- package/v1/model/ErrorCodeRedirectRules.ts +42 -0
- package/v1/model/Follow302StatusBody.ts +37 -0
- package/v1/model/Follow302StatusRequest.ts +27 -0
- package/v1/model/ForceRedirect.ts +29 -0
- package/v1/model/ForceRedirectConfig.ts +28 -0
- package/v1/model/HeaderBody.ts +12 -0
- package/v1/model/HeaderMap.ts +72 -0
- package/v1/model/HttpGetBody.ts +72 -0
- package/v1/model/HttpInfoRequest.ts +13 -0
- package/v1/model/HttpInfoRequestBody.ts +85 -0
- package/v1/model/HttpInfoResponseBody.ts +94 -0
- package/v1/model/HttpPutBody.ts +83 -0
- package/v1/model/HttpResponseHeader.ts +23 -0
- package/v1/model/HttpsDetail.ts +116 -0
- package/v1/model/IpFilter.ts +17 -0
- package/v1/model/ListDomainsRequest.ts +138 -0
- package/v1/model/ListDomainsResponse.ts +19 -0
- package/v1/model/LogObject.ts +54 -0
- package/v1/model/ModelMap.ts +17 -0
- package/v1/model/ModifyDomainConfigRequestBody.ts +12 -0
- package/v1/model/OriginHostBody.ts +38 -0
- package/v1/model/OriginHostRequest.ts +19 -0
- package/v1/model/OriginRangeBody.ts +37 -0
- package/v1/model/OriginRequest.ts +13 -0
- package/v1/model/OriginRequestHeader.ts +23 -0
- package/v1/model/OriginRequestUrlRewrite.ts +47 -0
- package/v1/model/PreheatingTaskRequest.ts +19 -0
- package/v1/model/PreheatingTaskRequestBody.ts +12 -0
- package/v1/model/Quotas.ts +38 -0
- package/v1/model/RangeStatusRequest.ts +27 -0
- package/v1/model/Referer.ts +40 -0
- package/v1/model/RefererBody.ts +13 -0
- package/v1/model/RefererConfig.ts +28 -0
- package/v1/model/RefererRsp.ts +39 -0
- package/v1/model/RefreshTaskRequest.ts +19 -0
- package/v1/model/RefreshTaskRequestBody.ts +39 -0
- package/v1/model/ResourceBody.ts +13 -0
- package/v1/model/Rules.ts +47 -0
- package/v1/model/ShowBlackWhiteListRequest.ts +29 -0
- package/v1/model/ShowBlackWhiteListResponse.ts +24 -0
- package/v1/model/ShowCacheRulesRequest.ts +29 -0
- package/v1/model/ShowCacheRulesResponse.ts +20 -0
- package/v1/model/ShowCertificatesHttpsInfoRequest.ts +61 -0
- package/v1/model/ShowCertificatesHttpsInfoResponse.ts +19 -0
- package/v1/model/ShowDomainDetailRequest.ts +29 -0
- package/v1/model/ShowDomainDetailResponse.ts +14 -0
- package/v1/model/ShowDomainFullConfigRequest.ts +29 -0
- package/v1/model/ShowDomainFullConfigResponse.ts +14 -0
- package/v1/model/ShowDomainItemDetailsRequest.ts +76 -0
- package/v1/model/ShowDomainItemDetailsResponse.ts +20 -0
- package/v1/model/ShowDomainItemLocationDetailsRequest.ts +77 -0
- package/v1/model/ShowDomainItemLocationDetailsResponse.ts +20 -0
- package/v1/model/ShowDomainLocationStatsRequest.ts +102 -0
- package/v1/model/ShowDomainLocationStatsResponse.ts +24 -0
- package/v1/model/ShowDomainStatsRequest.ts +98 -0
- package/v1/model/ShowDomainStatsResponse.ts +13 -0
- package/v1/model/ShowHistoryTaskDetailsRequest.ts +72 -0
- package/v1/model/ShowHistoryTaskDetailsResponse.ts +77 -0
- package/v1/model/ShowHistoryTasksRequest.ts +116 -0
- package/v1/model/ShowHistoryTasksResponse.ts +19 -0
- package/v1/model/ShowHttpInfoRequest.ts +29 -0
- package/v1/model/ShowHttpInfoResponse.ts +14 -0
- package/v1/model/ShowIpInfoRequest.ts +23 -0
- package/v1/model/ShowIpInfoResponse.ts +20 -0
- package/v1/model/ShowLogsRequest.ts +73 -0
- package/v1/model/ShowLogsResponse.ts +19 -0
- package/v1/model/ShowOriginHostRequest.ts +29 -0
- package/v1/model/ShowOriginHostResponse.ts +20 -0
- package/v1/model/ShowQuotaRequest.ts +6 -0
- package/v1/model/ShowQuotaResponse.ts +14 -0
- package/v1/model/ShowReferRequest.ts +29 -0
- package/v1/model/ShowReferResponse.ts +14 -0
- package/v1/model/ShowResponseHeaderRequest.ts +29 -0
- package/v1/model/ShowResponseHeaderResponse.ts +14 -0
- package/v1/model/ShowTagsRequest.ts +18 -0
- package/v1/model/ShowTagsResponse.ts +13 -0
- package/v1/model/ShowTopUrlRequest.ts +93 -0
- package/v1/model/ShowTopUrlResponse.ts +31 -0
- package/v1/model/ShowUrlTaskInfoRequest.ts +70 -0
- package/v1/model/ShowUrlTaskInfoResponse.ts +35 -0
- package/v1/model/SourceWithPort.ts +96 -0
- package/v1/model/Sources.ts +74 -0
- package/v1/model/SourcesConfig.ts +80 -0
- package/v1/model/TasksObject.ts +86 -0
- package/v1/model/TopUrlSummary.ts +49 -0
- package/v1/model/UpdateBlackWhiteListRequest.ts +35 -0
- package/v1/model/UpdateBlackWhiteListResponse.ts +23 -0
- package/v1/model/UpdateCacheRulesRequest.ts +35 -0
- package/v1/model/UpdateCacheRulesResponse.ts +20 -0
- package/v1/model/UpdateDomainFullConfigRequest.ts +35 -0
- package/v1/model/UpdateDomainFullConfigResponse.ts +8 -0
- package/v1/model/UpdateDomainMultiCertificatesRequest.ts +23 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.ts +12 -0
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.ts +107 -0
- package/v1/model/UpdateDomainMultiCertificatesResponse.ts +14 -0
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.ts +106 -0
- package/v1/model/UpdateDomainOriginRequest.ts +35 -0
- package/v1/model/UpdateDomainOriginResponse.ts +14 -0
- package/v1/model/UpdateFollow302SwitchRequest.ts +35 -0
- package/v1/model/UpdateFollow302SwitchResponse.ts +20 -0
- package/v1/model/UpdateHttpsInfoRequest.ts +35 -0
- package/v1/model/UpdateHttpsInfoResponse.ts +14 -0
- package/v1/model/UpdateOriginHostRequest.ts +35 -0
- package/v1/model/UpdateOriginHostResponse.ts +20 -0
- package/v1/model/UpdatePrivateBucketAccessBody.ts +11 -0
- package/v1/model/UpdatePrivateBucketAccessRequest.ts +35 -0
- package/v1/model/UpdatePrivateBucketAccessResponse.ts +13 -0
- package/v1/model/UpdateRangeSwitchRequest.ts +35 -0
- package/v1/model/UpdateRangeSwitchResponse.ts +20 -0
- package/v1/model/UpdateReferRequest.ts +35 -0
- package/v1/model/UpdateReferResponse.ts +14 -0
- package/v1/model/UpdateResponseHeaderRequest.ts +35 -0
- package/v1/model/UpdateResponseHeaderResponse.ts +14 -0
- package/v1/model/UrlAuth.ts +44 -0
- package/v1/model/UrlAuthGetBody.ts +39 -0
- package/v1/model/UrlObject.ts +54 -0
- package/v1/model/Urls.ts +70 -0
- package/v1/model/UserAgentFilter.ts +17 -0
- package/v1/{public-api.d.ts → public-api.ts} +1 -0
- package/v2/{CdnClient.js → CdnClient.ts} +666 -449
- package/v2/CdnRegion.ts +28 -0
- package/v2/model/BackSources.ts +63 -0
- package/v2/model/BatchCopyConfigs.ts +42 -0
- package/v2/model/BatchCopyDRequestBody.ts +13 -0
- package/v2/model/BatchCopyDomainRequest.ts +12 -0
- package/v2/model/BatchCopyDomainResponse.ts +14 -0
- package/v2/model/BatchCopyErrorRsp.ts +12 -0
- package/v2/model/BatchCopyErrorRspError.ts +28 -0
- package/v2/model/BatchCopyResultVo.ts +38 -0
- package/v2/model/CacheRules.ts +88 -0
- package/v2/model/CacheUrlParameterFilter.ts +16 -0
- package/v2/model/CommonRemoteAuth.ts +31 -0
- package/v2/model/Compress.ts +29 -0
- package/v2/model/Configs.ts +304 -0
- package/v2/model/ConfigsGetBody.ts +304 -0
- package/v2/model/CustomArgs.ts +24 -0
- package/v2/model/DomainOriginHost.ts +40 -0
- package/v2/model/Domains.ts +214 -0
- package/v2/model/DomainsWithPort.ts +119 -0
- package/v2/model/DownloadRegionCarrierExcelRequest.ts +96 -0
- package/v2/model/DownloadRegionCarrierExcelResponse.ts +8 -0
- package/v2/model/DownloadStatisticsExcelRequest.ts +92 -0
- package/v2/model/DownloadStatisticsExcelResponse.ts +8 -0
- package/v2/model/EpResourceTag.ts +18 -0
- package/v2/model/ErrMsg.ts +30 -0
- package/v2/model/ErrRsp.ts +13 -0
- package/v2/model/ErrorCodeCache.ts +16 -0
- package/v2/model/ErrorCodeRedirectRules.ts +42 -0
- package/v2/model/FlexibleOrigins.ts +49 -0
- package/v2/model/ForceRedirectConfig.ts +28 -0
- package/v2/model/HttpGetBody.ts +105 -0
- package/v2/model/HttpPutBody.ts +105 -0
- package/v2/model/HttpResponseHeader.ts +23 -0
- package/v2/model/IpFilter.ts +17 -0
- package/v2/model/ListDomainsRequest.ts +105 -0
- package/v2/model/ListDomainsResponse.ts +19 -0
- package/v2/model/ModifyDomainConfigRequestBody.ts +12 -0
- package/v2/model/OriginRequestHeader.ts +23 -0
- package/v2/model/OriginRequestUrlRewrite.ts +47 -0
- package/v2/model/RefererConfig.ts +28 -0
- package/v2/model/RemoteAuthRuleVo.ts +176 -0
- package/v2/model/RequestLimitRules.ts +40 -0
- package/v2/model/SetChargeModesBody.ts +42 -0
- package/v2/model/SetChargeModesRequest.ts +12 -0
- package/v2/model/SetChargeModesResponse.ts +68 -0
- package/v2/model/ShowBandwidthCalcRequest.ts +76 -0
- package/v2/model/ShowBandwidthCalcResponse.ts +19 -0
- package/v2/model/ShowChargeModesRequest.ts +34 -0
- package/v2/model/ShowChargeModesResponse.ts +13 -0
- package/v2/model/ShowDomainDetailByNameRequest.ts +29 -0
- package/v2/model/ShowDomainDetailByNameResponse.ts +14 -0
- package/v2/model/ShowDomainFullConfigRequest.ts +40 -0
- package/v2/model/ShowDomainFullConfigResponse.ts +14 -0
- package/v2/model/ShowDomainLocationStatsRequest.ts +102 -0
- package/v2/model/ShowDomainLocationStatsResponse.ts +24 -0
- package/v2/model/ShowDomainStatsRequest.ts +98 -0
- package/v2/model/ShowDomainStatsResponse.ts +13 -0
- package/v2/model/ShowTopDomainNamesRequest.ts +69 -0
- package/v2/model/ShowTopDomainNamesResponse.ts +19 -0
- package/v2/model/ShowTopUrlRequest.ts +76 -0
- package/v2/model/ShowTopUrlResponse.ts +31 -0
- package/v2/model/Sources.ts +74 -0
- package/v2/model/SourcesConfig.ts +96 -0
- package/v2/model/TopUrlSummary.ts +49 -0
- package/v2/model/UpdateDomainFullConfigRequest.ts +35 -0
- package/v2/model/UpdateDomainFullConfigResponse.ts +8 -0
- package/v2/model/UrlAuth.ts +91 -0
- package/v2/model/UrlAuthGetBody.ts +88 -0
- package/v2/model/UserAgentFilter.ts +28 -0
- package/v2/model/VideoSeek.ts +51 -0
- package/v2/model/WebSocketSeek.ts +18 -0
- package/v2/{public-api.d.ts → public-api.ts} +1 -0
- package/LICENSE +0 -13
- package/README.md +0 -1
- package/huaweicloud-sdk-cdn.d.ts +0 -3
- package/huaweicloud-sdk-cdn.js +0 -32
- package/v1/CdnClient.d.ts +0 -1357
- package/v1/CdnRegion.d.ts +0 -6
- package/v1/CdnRegion.js +0 -25
- package/v1/model/BatchDeleteTagsRequest.d.ts +0 -6
- package/v1/model/BatchDeleteTagsRequest.js +0 -13
- package/v1/model/BatchDeleteTagsResponse.d.ts +0 -4
- package/v1/model/BatchDeleteTagsResponse.js +0 -27
- package/v1/model/BlackWhiteListBody.d.ts +0 -9
- package/v1/model/BlackWhiteListBody.js +0 -28
- package/v1/model/CacheConfig.d.ts +0 -17
- package/v1/model/CacheConfig.js +0 -45
- package/v1/model/CacheConfigRequest.d.ts +0 -17
- package/v1/model/CacheConfigRequest.js +0 -45
- package/v1/model/CacheConfigRequestBody.d.ts +0 -8
- package/v1/model/CacheConfigRequestBody.js +0 -24
- package/v1/model/CacheRules.d.ts +0 -31
- package/v1/model/CacheRules.js +0 -107
- package/v1/model/CacheUrlParameterFilter.d.ts +0 -7
- package/v1/model/CacheUrlParameterFilter.js +0 -17
- package/v1/model/CdnIps.d.ts +0 -13
- package/v1/model/CdnIps.js +0 -29
- package/v1/model/Compress.d.ts +0 -7
- package/v1/model/Compress.js +0 -18
- package/v1/model/CompressRequest.d.ts +0 -7
- package/v1/model/CompressRequest.js +0 -23
- package/v1/model/CompressResponse.d.ts +0 -12
- package/v1/model/CompressResponse.js +0 -38
- package/v1/model/CompressRules.d.ts +0 -11
- package/v1/model/CompressRules.js +0 -37
- package/v1/model/Configs.d.ts +0 -86
- package/v1/model/Configs.js +0 -235
- package/v1/model/ConfigsGetBody.d.ts +0 -86
- package/v1/model/ConfigsGetBody.js +0 -235
- package/v1/model/CreateDomainRequest.d.ts +0 -6
- package/v1/model/CreateDomainRequest.js +0 -13
- package/v1/model/CreateDomainRequestBody.d.ts +0 -6
- package/v1/model/CreateDomainRequestBody.js +0 -14
- package/v1/model/CreateDomainResponse.d.ts +0 -7
- package/v1/model/CreateDomainResponse.js +0 -31
- package/v1/model/CreateDomainResponseBodyContent.d.ts +0 -67
- package/v1/model/CreateDomainResponseBodyContent.js +0 -211
- package/v1/model/CreatePreheatingTasksRequest.d.ts +0 -10
- package/v1/model/CreatePreheatingTasksRequest.js +0 -27
- package/v1/model/CreatePreheatingTasksResponse.d.ts +0 -8
- package/v1/model/CreatePreheatingTasksResponse.js +0 -41
- package/v1/model/CreateRefreshTasksRequest.d.ts +0 -10
- package/v1/model/CreateRefreshTasksRequest.js +0 -27
- package/v1/model/CreateRefreshTasksResponse.d.ts +0 -8
- package/v1/model/CreateRefreshTasksResponse.js +0 -41
- package/v1/model/CreateTagsRequest.d.ts +0 -6
- package/v1/model/CreateTagsRequest.js +0 -13
- package/v1/model/CreateTagsRequestBody.d.ts +0 -9
- package/v1/model/CreateTagsRequestBody.js +0 -29
- package/v1/model/CreateTagsResponse.d.ts +0 -4
- package/v1/model/CreateTagsResponse.js +0 -27
- package/v1/model/DeleteDomainRequest.d.ts +0 -11
- package/v1/model/DeleteDomainRequest.js +0 -38
- package/v1/model/DeleteDomainResponse.d.ts +0 -7
- package/v1/model/DeleteDomainResponse.js +0 -31
- package/v1/model/DeleteTagsRequestBody.d.ts +0 -9
- package/v1/model/DeleteTagsRequestBody.js +0 -29
- package/v1/model/DisableDomainRequest.d.ts +0 -11
- package/v1/model/DisableDomainRequest.js +0 -38
- package/v1/model/DisableDomainResponse.d.ts +0 -7
- package/v1/model/DisableDomainResponse.js +0 -31
- package/v1/model/DomainBody.d.ts +0 -41
- package/v1/model/DomainBody.js +0 -94
- package/v1/model/DomainItemDetail.d.ts +0 -21
- package/v1/model/DomainItemDetail.js +0 -55
- package/v1/model/DomainItemLocationDetails.d.ts +0 -18
- package/v1/model/DomainItemLocationDetails.js +0 -55
- package/v1/model/DomainOriginHost.d.ts +0 -15
- package/v1/model/DomainOriginHost.js +0 -52
- package/v1/model/DomainRegion.d.ts +0 -17
- package/v1/model/DomainRegion.js +0 -37
- package/v1/model/Domains.d.ts +0 -91
- package/v1/model/Domains.js +0 -267
- package/v1/model/DomainsWithPort.d.ts +0 -88
- package/v1/model/DomainsWithPort.js +0 -263
- package/v1/model/EnableDomainRequest.d.ts +0 -11
- package/v1/model/EnableDomainRequest.js +0 -38
- package/v1/model/EnableDomainResponse.d.ts +0 -7
- package/v1/model/EnableDomainResponse.js +0 -31
- package/v1/model/EpResourceTag.d.ts +0 -7
- package/v1/model/EpResourceTag.js +0 -19
- package/v1/model/ErrorCodeCache.d.ts +0 -7
- package/v1/model/ErrorCodeCache.js +0 -17
- package/v1/model/ErrorCodeRedirectRules.d.ts +0 -15
- package/v1/model/ErrorCodeRedirectRules.js +0 -54
- package/v1/model/Follow302StatusBody.d.ts +0 -19
- package/v1/model/Follow302StatusBody.js +0 -46
- package/v1/model/Follow302StatusRequest.d.ts +0 -15
- package/v1/model/Follow302StatusRequest.js +0 -33
- package/v1/model/ForceRedirect.d.ts +0 -11
- package/v1/model/ForceRedirect.js +0 -38
- package/v1/model/ForceRedirectConfig.d.ts +0 -11
- package/v1/model/ForceRedirectConfig.js +0 -32
- package/v1/model/HeaderBody.d.ts +0 -6
- package/v1/model/HeaderBody.js +0 -13
- package/v1/model/HeaderMap.d.ts +0 -27
- package/v1/model/HeaderMap.js +0 -93
- package/v1/model/HttpGetBody.d.ts +0 -27
- package/v1/model/HttpGetBody.js +0 -93
- package/v1/model/HttpInfoRequest.d.ts +0 -6
- package/v1/model/HttpInfoRequest.js +0 -14
- package/v1/model/HttpInfoRequestBody.d.ts +0 -32
- package/v1/model/HttpInfoRequestBody.js +0 -103
- package/v1/model/HttpInfoResponseBody.d.ts +0 -36
- package/v1/model/HttpInfoResponseBody.js +0 -115
- package/v1/model/HttpPutBody.d.ts +0 -31
- package/v1/model/HttpPutBody.js +0 -107
- package/v1/model/HttpResponseHeader.d.ts +0 -9
- package/v1/model/HttpResponseHeader.js +0 -23
- package/v1/model/HttpsDetail.d.ts +0 -44
- package/v1/model/HttpsDetail.js +0 -143
- package/v1/model/IpFilter.d.ts +0 -7
- package/v1/model/IpFilter.js +0 -18
- package/v1/model/ListDomainsRequest.d.ts +0 -71
- package/v1/model/ListDomainsRequest.js +0 -170
- package/v1/model/ListDomainsResponse.d.ts +0 -9
- package/v1/model/ListDomainsResponse.js +0 -35
- package/v1/model/LogObject.d.ts +0 -21
- package/v1/model/LogObject.js +0 -63
- package/v1/model/ModelMap.d.ts +0 -7
- package/v1/model/ModelMap.js +0 -18
- package/v1/model/ModifyDomainConfigRequestBody.d.ts +0 -6
- package/v1/model/ModifyDomainConfigRequestBody.js +0 -13
- package/v1/model/OriginHostBody.d.ts +0 -19
- package/v1/model/OriginHostBody.js +0 -47
- package/v1/model/OriginHostRequest.d.ts +0 -8
- package/v1/model/OriginHostRequest.js +0 -24
- package/v1/model/OriginRangeBody.d.ts +0 -19
- package/v1/model/OriginRangeBody.js +0 -46
- package/v1/model/OriginRequest.d.ts +0 -6
- package/v1/model/OriginRequest.js +0 -14
- package/v1/model/OriginRequestHeader.d.ts +0 -9
- package/v1/model/OriginRequestHeader.js +0 -23
- package/v1/model/OriginRequestUrlRewrite.d.ts +0 -17
- package/v1/model/OriginRequestUrlRewrite.js +0 -58
- package/v1/model/PreheatingTaskRequest.d.ts +0 -8
- package/v1/model/PreheatingTaskRequest.js +0 -24
- package/v1/model/PreheatingTaskRequestBody.d.ts +0 -5
- package/v1/model/PreheatingTaskRequestBody.js +0 -14
- package/v1/model/Quotas.d.ts +0 -15
- package/v1/model/Quotas.js +0 -45
- package/v1/model/RangeStatusRequest.d.ts +0 -15
- package/v1/model/RangeStatusRequest.js +0 -33
- package/v1/model/Referer.d.ts +0 -15
- package/v1/model/Referer.js +0 -52
- package/v1/model/RefererBody.d.ts +0 -6
- package/v1/model/RefererBody.js +0 -14
- package/v1/model/RefererConfig.d.ts +0 -11
- package/v1/model/RefererConfig.js +0 -32
- package/v1/model/RefererRsp.d.ts +0 -15
- package/v1/model/RefererRsp.js +0 -51
- package/v1/model/RefreshTaskRequest.d.ts +0 -8
- package/v1/model/RefreshTaskRequest.js +0 -24
- package/v1/model/RefreshTaskRequestBody.d.ts +0 -25
- package/v1/model/RefreshTaskRequestBody.js +0 -40
- package/v1/model/ResourceBody.d.ts +0 -6
- package/v1/model/ResourceBody.js +0 -14
- package/v1/model/Rules.d.ts +0 -17
- package/v1/model/Rules.js +0 -53
- package/v1/model/ShowBlackWhiteListRequest.d.ts +0 -11
- package/v1/model/ShowBlackWhiteListRequest.js +0 -38
- package/v1/model/ShowBlackWhiteListResponse.d.ts +0 -10
- package/v1/model/ShowBlackWhiteListResponse.js +0 -45
- package/v1/model/ShowCacheRulesRequest.d.ts +0 -11
- package/v1/model/ShowCacheRulesRequest.js +0 -38
- package/v1/model/ShowCacheRulesResponse.d.ts +0 -9
- package/v1/model/ShowCacheRulesResponse.js +0 -41
- package/v1/model/ShowCertificatesHttpsInfoRequest.d.ts +0 -23
- package/v1/model/ShowCertificatesHttpsInfoRequest.js +0 -79
- package/v1/model/ShowCertificatesHttpsInfoResponse.d.ts +0 -9
- package/v1/model/ShowCertificatesHttpsInfoResponse.js +0 -35
- package/v1/model/ShowDomainDetailRequest.d.ts +0 -11
- package/v1/model/ShowDomainDetailRequest.js +0 -38
- package/v1/model/ShowDomainDetailResponse.d.ts +0 -7
- package/v1/model/ShowDomainDetailResponse.js +0 -31
- package/v1/model/ShowDomainFullConfigRequest.d.ts +0 -11
- package/v1/model/ShowDomainFullConfigRequest.js +0 -38
- package/v1/model/ShowDomainFullConfigResponse.d.ts +0 -7
- package/v1/model/ShowDomainFullConfigResponse.js +0 -31
- package/v1/model/ShowDomainItemDetailsRequest.d.ts +0 -27
- package/v1/model/ShowDomainItemDetailsRequest.js +0 -97
- package/v1/model/ShowDomainItemDetailsResponse.d.ts +0 -9
- package/v1/model/ShowDomainItemDetailsResponse.js +0 -41
- package/v1/model/ShowDomainItemLocationDetailsRequest.d.ts +0 -27
- package/v1/model/ShowDomainItemLocationDetailsRequest.js +0 -93
- package/v1/model/ShowDomainItemLocationDetailsResponse.d.ts +0 -9
- package/v1/model/ShowDomainItemLocationDetailsResponse.js +0 -41
- package/v1/model/ShowDomainLocationStatsRequest.d.ts +0 -37
- package/v1/model/ShowDomainLocationStatsRequest.js +0 -118
- package/v1/model/ShowDomainLocationStatsResponse.d.ts +0 -14
- package/v1/model/ShowDomainLocationStatsResponse.js +0 -45
- package/v1/model/ShowDomainStatsRequest.d.ts +0 -35
- package/v1/model/ShowDomainStatsRequest.js +0 -120
- package/v1/model/ShowDomainStatsResponse.d.ts +0 -10
- package/v1/model/ShowDomainStatsResponse.js +0 -31
- package/v1/model/ShowHistoryTaskDetailsRequest.d.ts +0 -27
- package/v1/model/ShowHistoryTaskDetailsRequest.js +0 -88
- package/v1/model/ShowHistoryTaskDetailsResponse.d.ts +0 -31
- package/v1/model/ShowHistoryTaskDetailsResponse.js +0 -97
- package/v1/model/ShowHistoryTasksRequest.d.ts +0 -53
- package/v1/model/ShowHistoryTasksRequest.js +0 -143
- package/v1/model/ShowHistoryTasksResponse.d.ts +0 -9
- package/v1/model/ShowHistoryTasksResponse.js +0 -35
- package/v1/model/ShowHttpInfoRequest.d.ts +0 -11
- package/v1/model/ShowHttpInfoRequest.js +0 -38
- package/v1/model/ShowHttpInfoResponse.d.ts +0 -7
- package/v1/model/ShowHttpInfoResponse.js +0 -31
- package/v1/model/ShowIpInfoRequest.d.ts +0 -9
- package/v1/model/ShowIpInfoRequest.js +0 -28
- package/v1/model/ShowIpInfoResponse.d.ts +0 -9
- package/v1/model/ShowIpInfoResponse.js +0 -41
- package/v1/model/ShowLogsRequest.d.ts +0 -27
- package/v1/model/ShowLogsRequest.js +0 -94
- package/v1/model/ShowLogsResponse.d.ts +0 -9
- package/v1/model/ShowLogsResponse.js +0 -35
- package/v1/model/ShowOriginHostRequest.d.ts +0 -11
- package/v1/model/ShowOriginHostRequest.js +0 -38
- package/v1/model/ShowOriginHostResponse.d.ts +0 -9
- package/v1/model/ShowOriginHostResponse.js +0 -41
- package/v1/model/ShowQuotaRequest.d.ts +0 -3
- package/v1/model/ShowQuotaRequest.js +0 -9
- package/v1/model/ShowQuotaResponse.d.ts +0 -7
- package/v1/model/ShowQuotaResponse.js +0 -31
- package/v1/model/ShowReferRequest.d.ts +0 -11
- package/v1/model/ShowReferRequest.js +0 -38
- package/v1/model/ShowReferResponse.d.ts +0 -7
- package/v1/model/ShowReferResponse.js +0 -31
- package/v1/model/ShowResponseHeaderRequest.d.ts +0 -11
- package/v1/model/ShowResponseHeaderRequest.js +0 -38
- package/v1/model/ShowResponseHeaderResponse.d.ts +0 -7
- package/v1/model/ShowResponseHeaderResponse.js +0 -31
- package/v1/model/ShowTagsRequest.d.ts +0 -7
- package/v1/model/ShowTagsRequest.js +0 -24
- package/v1/model/ShowTagsResponse.d.ts +0 -6
- package/v1/model/ShowTagsResponse.js +0 -31
- package/v1/model/ShowTopUrlRequest.d.ts +0 -43
- package/v1/model/ShowTopUrlRequest.js +0 -115
- package/v1/model/ShowTopUrlResponse.d.ts +0 -13
- package/v1/model/ShowTopUrlResponse.js +0 -55
- package/v1/model/ShowUrlTaskInfoRequest.d.ts +0 -27
- package/v1/model/ShowUrlTaskInfoRequest.js +0 -81
- package/v1/model/ShowUrlTaskInfoResponse.d.ts +0 -15
- package/v1/model/ShowUrlTaskInfoResponse.js +0 -53
- package/v1/model/SourceWithPort.d.ts +0 -40
- package/v1/model/SourceWithPort.js +0 -120
- package/v1/model/Sources.d.ts +0 -32
- package/v1/model/Sources.js +0 -92
- package/v1/model/SourcesConfig.d.ts +0 -29
- package/v1/model/SourcesConfig.js +0 -100
- package/v1/model/TasksObject.d.ts +0 -43
- package/v1/model/TasksObject.js +0 -93
- package/v1/model/TopUrlSummary.d.ts +0 -19
- package/v1/model/TopUrlSummary.js +0 -59
- package/v1/model/UpdateBlackWhiteListRequest.d.ts +0 -14
- package/v1/model/UpdateBlackWhiteListRequest.js +0 -42
- package/v1/model/UpdateBlackWhiteListResponse.d.ts +0 -10
- package/v1/model/UpdateBlackWhiteListResponse.js +0 -39
- package/v1/model/UpdateCacheRulesRequest.d.ts +0 -14
- package/v1/model/UpdateCacheRulesRequest.js +0 -42
- package/v1/model/UpdateCacheRulesResponse.d.ts +0 -9
- package/v1/model/UpdateCacheRulesResponse.js +0 -41
- package/v1/model/UpdateDomainFullConfigRequest.d.ts +0 -14
- package/v1/model/UpdateDomainFullConfigRequest.js +0 -42
- package/v1/model/UpdateDomainFullConfigResponse.d.ts +0 -4
- package/v1/model/UpdateDomainFullConfigResponse.js +0 -27
- package/v1/model/UpdateDomainMultiCertificatesRequest.d.ts +0 -10
- package/v1/model/UpdateDomainMultiCertificatesRequest.js +0 -27
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.d.ts +0 -6
- package/v1/model/UpdateDomainMultiCertificatesRequestBody.js +0 -13
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.d.ts +0 -40
- package/v1/model/UpdateDomainMultiCertificatesRequestBodyContent.js +0 -131
- package/v1/model/UpdateDomainMultiCertificatesResponse.d.ts +0 -7
- package/v1/model/UpdateDomainMultiCertificatesResponse.js +0 -31
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.d.ts +0 -40
- package/v1/model/UpdateDomainMultiCertificatesResponseBodyContent.js +0 -130
- package/v1/model/UpdateDomainOriginRequest.d.ts +0 -14
- package/v1/model/UpdateDomainOriginRequest.js +0 -42
- package/v1/model/UpdateDomainOriginResponse.d.ts +0 -7
- package/v1/model/UpdateDomainOriginResponse.js +0 -31
- package/v1/model/UpdateFollow302SwitchRequest.d.ts +0 -14
- package/v1/model/UpdateFollow302SwitchRequest.js +0 -42
- package/v1/model/UpdateFollow302SwitchResponse.d.ts +0 -9
- package/v1/model/UpdateFollow302SwitchResponse.js +0 -41
- package/v1/model/UpdateHttpsInfoRequest.d.ts +0 -14
- package/v1/model/UpdateHttpsInfoRequest.js +0 -42
- package/v1/model/UpdateHttpsInfoResponse.d.ts +0 -7
- package/v1/model/UpdateHttpsInfoResponse.js +0 -31
- package/v1/model/UpdateOriginHostRequest.d.ts +0 -14
- package/v1/model/UpdateOriginHostRequest.js +0 -42
- package/v1/model/UpdateOriginHostResponse.d.ts +0 -9
- package/v1/model/UpdateOriginHostResponse.js +0 -41
- package/v1/model/UpdatePrivateBucketAccessBody.d.ts +0 -5
- package/v1/model/UpdatePrivateBucketAccessBody.js +0 -13
- package/v1/model/UpdatePrivateBucketAccessRequest.d.ts +0 -14
- package/v1/model/UpdatePrivateBucketAccessRequest.js +0 -42
- package/v1/model/UpdatePrivateBucketAccessResponse.d.ts +0 -6
- package/v1/model/UpdatePrivateBucketAccessResponse.js +0 -31
- package/v1/model/UpdateRangeSwitchRequest.d.ts +0 -14
- package/v1/model/UpdateRangeSwitchRequest.js +0 -42
- package/v1/model/UpdateRangeSwitchResponse.d.ts +0 -9
- package/v1/model/UpdateRangeSwitchResponse.js +0 -41
- package/v1/model/UpdateReferRequest.d.ts +0 -14
- package/v1/model/UpdateReferRequest.js +0 -42
- package/v1/model/UpdateReferResponse.d.ts +0 -7
- package/v1/model/UpdateReferResponse.js +0 -31
- package/v1/model/UpdateResponseHeaderRequest.d.ts +0 -14
- package/v1/model/UpdateResponseHeaderRequest.js +0 -42
- package/v1/model/UpdateResponseHeaderResponse.d.ts +0 -7
- package/v1/model/UpdateResponseHeaderResponse.js +0 -31
- package/v1/model/UrlAuth.d.ts +0 -17
- package/v1/model/UrlAuth.js +0 -50
- package/v1/model/UrlAuthGetBody.d.ts +0 -15
- package/v1/model/UrlAuthGetBody.js +0 -46
- package/v1/model/UrlObject.d.ts +0 -21
- package/v1/model/UrlObject.js +0 -63
- package/v1/model/Urls.d.ts +0 -27
- package/v1/model/Urls.js +0 -81
- package/v1/model/UserAgentFilter.d.ts +0 -7
- package/v1/model/UserAgentFilter.js +0 -18
- package/v1/public-api.js +0 -178
- package/v2/CdnClient.d.ts +0 -650
- package/v2/CdnRegion.d.ts +0 -6
- package/v2/CdnRegion.js +0 -25
- package/v2/model/BackSources.d.ts +0 -23
- package/v2/model/BackSources.js +0 -81
- package/v2/model/BatchCopyConfigs.d.ts +0 -15
- package/v2/model/BatchCopyConfigs.js +0 -54
- package/v2/model/BatchCopyDRequestBody.d.ts +0 -6
- package/v2/model/BatchCopyDRequestBody.js +0 -14
- package/v2/model/BatchCopyDomainRequest.d.ts +0 -6
- package/v2/model/BatchCopyDomainRequest.js +0 -13
- package/v2/model/BatchCopyDomainResponse.d.ts +0 -7
- package/v2/model/BatchCopyDomainResponse.js +0 -31
- package/v2/model/BatchCopyErrorRsp.d.ts +0 -6
- package/v2/model/BatchCopyErrorRsp.js +0 -13
- package/v2/model/BatchCopyErrorRspError.d.ts +0 -11
- package/v2/model/BatchCopyErrorRspError.js +0 -37
- package/v2/model/BatchCopyResultVo.d.ts +0 -19
- package/v2/model/BatchCopyResultVo.js +0 -42
- package/v2/model/CacheRules.d.ts +0 -31
- package/v2/model/CacheRules.js +0 -107
- package/v2/model/CacheUrlParameterFilter.d.ts +0 -7
- package/v2/model/CacheUrlParameterFilter.js +0 -17
- package/v2/model/CommonRemoteAuth.d.ts +0 -12
- package/v2/model/CommonRemoteAuth.js +0 -39
- package/v2/model/Compress.d.ts +0 -11
- package/v2/model/Compress.js +0 -33
- package/v2/model/Configs.d.ts +0 -125
- package/v2/model/Configs.js +0 -351
- package/v2/model/ConfigsGetBody.d.ts +0 -125
- package/v2/model/ConfigsGetBody.js +0 -351
- package/v2/model/CustomArgs.d.ts +0 -9
- package/v2/model/CustomArgs.js +0 -24
- package/v2/model/DomainOriginHost.d.ts +0 -15
- package/v2/model/DomainOriginHost.js +0 -52
- package/v2/model/Domains.d.ts +0 -87
- package/v2/model/Domains.js +0 -253
- package/v2/model/DomainsWithPort.d.ts +0 -51
- package/v2/model/DomainsWithPort.js +0 -137
- package/v2/model/DownloadRegionCarrierExcelRequest.d.ts +0 -35
- package/v2/model/DownloadRegionCarrierExcelRequest.js +0 -113
- package/v2/model/DownloadRegionCarrierExcelResponse.d.ts +0 -4
- package/v2/model/DownloadRegionCarrierExcelResponse.js +0 -27
- package/v2/model/DownloadStatisticsExcelRequest.d.ts +0 -33
- package/v2/model/DownloadStatisticsExcelRequest.js +0 -115
- package/v2/model/DownloadStatisticsExcelResponse.d.ts +0 -4
- package/v2/model/DownloadStatisticsExcelResponse.js +0 -27
- package/v2/model/EpResourceTag.d.ts +0 -7
- package/v2/model/EpResourceTag.js +0 -19
- package/v2/model/ErrMsg.d.ts +0 -11
- package/v2/model/ErrMsg.js +0 -39
- package/v2/model/ErrRsp.d.ts +0 -6
- package/v2/model/ErrRsp.js +0 -14
- package/v2/model/ErrorCodeCache.d.ts +0 -7
- package/v2/model/ErrorCodeCache.js +0 -17
- package/v2/model/ErrorCodeRedirectRules.d.ts +0 -15
- package/v2/model/ErrorCodeRedirectRules.js +0 -54
- package/v2/model/FlexibleOrigins.d.ts +0 -18
- package/v2/model/FlexibleOrigins.js +0 -59
- package/v2/model/ForceRedirectConfig.d.ts +0 -11
- package/v2/model/ForceRedirectConfig.js +0 -32
- package/v2/model/HttpGetBody.d.ts +0 -39
- package/v2/model/HttpGetBody.js +0 -135
- package/v2/model/HttpPutBody.d.ts +0 -39
- package/v2/model/HttpPutBody.js +0 -135
- package/v2/model/HttpResponseHeader.d.ts +0 -9
- package/v2/model/HttpResponseHeader.js +0 -23
- package/v2/model/IpFilter.d.ts +0 -7
- package/v2/model/IpFilter.js +0 -18
- package/v2/model/ListDomainsRequest.d.ts +0 -39
- package/v2/model/ListDomainsRequest.js +0 -135
- package/v2/model/ListDomainsResponse.d.ts +0 -9
- package/v2/model/ListDomainsResponse.js +0 -35
- package/v2/model/ModifyDomainConfigRequestBody.d.ts +0 -6
- package/v2/model/ModifyDomainConfigRequestBody.js +0 -13
- package/v2/model/OriginRequestHeader.d.ts +0 -9
- package/v2/model/OriginRequestHeader.js +0 -23
- package/v2/model/OriginRequestUrlRewrite.d.ts +0 -17
- package/v2/model/OriginRequestUrlRewrite.js +0 -58
- package/v2/model/RefererConfig.d.ts +0 -11
- package/v2/model/RefererConfig.js +0 -32
- package/v2/model/RemoteAuthRuleVo.d.ts +0 -62
- package/v2/model/RemoteAuthRuleVo.js +0 -219
- package/v2/model/RequestLimitRules.d.ts +0 -15
- package/v2/model/RequestLimitRules.js +0 -47
- package/v2/model/SetChargeModesBody.d.ts +0 -15
- package/v2/model/SetChargeModesBody.js +0 -54
- package/v2/model/SetChargeModesRequest.d.ts +0 -6
- package/v2/model/SetChargeModesRequest.js +0 -13
- package/v2/model/SetChargeModesResponse.d.ts +0 -26
- package/v2/model/SetChargeModesResponse.js +0 -101
- package/v2/model/ShowBandwidthCalcRequest.d.ts +0 -27
- package/v2/model/ShowBandwidthCalcRequest.js +0 -97
- package/v2/model/ShowBandwidthCalcResponse.d.ts +0 -14
- package/v2/model/ShowBandwidthCalcResponse.js +0 -41
- package/v2/model/ShowChargeModesRequest.d.ts +0 -13
- package/v2/model/ShowChargeModesRequest.js +0 -42
- package/v2/model/ShowChargeModesResponse.d.ts +0 -10
- package/v2/model/ShowChargeModesResponse.js +0 -31
- package/v2/model/ShowDomainDetailByNameRequest.d.ts +0 -11
- package/v2/model/ShowDomainDetailByNameRequest.js +0 -38
- package/v2/model/ShowDomainDetailByNameResponse.d.ts +0 -7
- package/v2/model/ShowDomainDetailByNameResponse.js +0 -31
- package/v2/model/ShowDomainFullConfigRequest.d.ts +0 -15
- package/v2/model/ShowDomainFullConfigRequest.js +0 -52
- package/v2/model/ShowDomainFullConfigResponse.d.ts +0 -7
- package/v2/model/ShowDomainFullConfigResponse.js +0 -31
- package/v2/model/ShowDomainLocationStatsRequest.d.ts +0 -37
- package/v2/model/ShowDomainLocationStatsRequest.js +0 -118
- package/v2/model/ShowDomainLocationStatsResponse.d.ts +0 -14
- package/v2/model/ShowDomainLocationStatsResponse.js +0 -45
- package/v2/model/ShowDomainStatsRequest.d.ts +0 -35
- package/v2/model/ShowDomainStatsRequest.js +0 -120
- package/v2/model/ShowDomainStatsResponse.d.ts +0 -10
- package/v2/model/ShowDomainStatsResponse.js +0 -31
- package/v2/model/ShowTopDomainNamesRequest.d.ts +0 -25
- package/v2/model/ShowTopDomainNamesRequest.js +0 -86
- package/v2/model/ShowTopDomainNamesResponse.d.ts +0 -14
- package/v2/model/ShowTopDomainNamesResponse.js +0 -41
- package/v2/model/ShowTopUrlRequest.d.ts +0 -27
- package/v2/model/ShowTopUrlRequest.js +0 -97
- package/v2/model/ShowTopUrlResponse.d.ts +0 -13
- package/v2/model/ShowTopUrlResponse.js +0 -55
- package/v2/model/Sources.d.ts +0 -32
- package/v2/model/Sources.js +0 -92
- package/v2/model/SourcesConfig.d.ts +0 -35
- package/v2/model/SourcesConfig.js +0 -118
- package/v2/model/TopUrlSummary.d.ts +0 -19
- package/v2/model/TopUrlSummary.js +0 -59
- package/v2/model/UpdateDomainFullConfigRequest.d.ts +0 -14
- package/v2/model/UpdateDomainFullConfigRequest.js +0 -42
- package/v2/model/UpdateDomainFullConfigResponse.d.ts +0 -4
- package/v2/model/UpdateDomainFullConfigResponse.js +0 -27
- package/v2/model/UrlAuth.d.ts +0 -33
- package/v2/model/UrlAuth.js +0 -109
- package/v2/model/UrlAuthGetBody.d.ts +0 -33
- package/v2/model/UrlAuthGetBody.js +0 -106
- package/v2/model/UserAgentFilter.d.ts +0 -11
- package/v2/model/UserAgentFilter.js +0 -32
- package/v2/model/VideoSeek.d.ts +0 -19
- package/v2/model/VideoSeek.js +0 -66
- package/v2/model/WebSocketSeek.d.ts +0 -7
- package/v2/model/WebSocketSeek.js +0 -19
- package/v2/public-api.js +0 -88
@@ -1,76 +1,186 @@
|
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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 { BatchDeleteTagsRequest } from './model/BatchDeleteTagsRequest';
|
6
|
+
import { BatchDeleteTagsResponse } from './model/BatchDeleteTagsResponse';
|
7
|
+
import { BlackWhiteListBody } from './model/BlackWhiteListBody';
|
8
|
+
import { CacheConfig } from './model/CacheConfig';
|
9
|
+
import { CacheConfigRequest } from './model/CacheConfigRequest';
|
10
|
+
import { CacheConfigRequestBody } from './model/CacheConfigRequestBody';
|
11
|
+
import { CacheRules } from './model/CacheRules';
|
12
|
+
import { CacheUrlParameterFilter } from './model/CacheUrlParameterFilter';
|
13
|
+
import { CdnIps } from './model/CdnIps';
|
14
|
+
import { Compress } from './model/Compress';
|
15
|
+
import { CompressRequest } from './model/CompressRequest';
|
16
|
+
import { CompressResponse } from './model/CompressResponse';
|
17
|
+
import { CompressRules } from './model/CompressRules';
|
18
|
+
import { Configs } from './model/Configs';
|
19
|
+
import { ConfigsGetBody } from './model/ConfigsGetBody';
|
20
|
+
import { CreateDomainRequest } from './model/CreateDomainRequest';
|
21
|
+
import { CreateDomainRequestBody } from './model/CreateDomainRequestBody';
|
22
|
+
import { CreateDomainResponse } from './model/CreateDomainResponse';
|
23
|
+
import { CreateDomainResponseBodyContent } from './model/CreateDomainResponseBodyContent';
|
24
|
+
import { CreatePreheatingTasksRequest } from './model/CreatePreheatingTasksRequest';
|
25
|
+
import { CreatePreheatingTasksResponse } from './model/CreatePreheatingTasksResponse';
|
26
|
+
import { CreateRefreshTasksRequest } from './model/CreateRefreshTasksRequest';
|
27
|
+
import { CreateRefreshTasksResponse } from './model/CreateRefreshTasksResponse';
|
28
|
+
import { CreateTagsRequest } from './model/CreateTagsRequest';
|
29
|
+
import { CreateTagsRequestBody } from './model/CreateTagsRequestBody';
|
30
|
+
import { CreateTagsResponse } from './model/CreateTagsResponse';
|
31
|
+
import { DeleteDomainRequest } from './model/DeleteDomainRequest';
|
32
|
+
import { DeleteDomainResponse } from './model/DeleteDomainResponse';
|
33
|
+
import { DeleteTagsRequestBody } from './model/DeleteTagsRequestBody';
|
34
|
+
import { DisableDomainRequest } from './model/DisableDomainRequest';
|
35
|
+
import { DisableDomainResponse } from './model/DisableDomainResponse';
|
36
|
+
import { DomainBody } from './model/DomainBody';
|
37
|
+
import { DomainItemDetail } from './model/DomainItemDetail';
|
38
|
+
import { DomainItemLocationDetails } from './model/DomainItemLocationDetails';
|
39
|
+
import { DomainOriginHost } from './model/DomainOriginHost';
|
40
|
+
import { DomainRegion } from './model/DomainRegion';
|
41
|
+
import { Domains } from './model/Domains';
|
42
|
+
import { DomainsWithPort } from './model/DomainsWithPort';
|
43
|
+
import { EnableDomainRequest } from './model/EnableDomainRequest';
|
44
|
+
import { EnableDomainResponse } from './model/EnableDomainResponse';
|
45
|
+
import { EpResourceTag } from './model/EpResourceTag';
|
46
|
+
import { ErrorCodeCache } from './model/ErrorCodeCache';
|
47
|
+
import { ErrorCodeRedirectRules } from './model/ErrorCodeRedirectRules';
|
48
|
+
import { Follow302StatusBody } from './model/Follow302StatusBody';
|
49
|
+
import { Follow302StatusRequest } from './model/Follow302StatusRequest';
|
50
|
+
import { ForceRedirect } from './model/ForceRedirect';
|
51
|
+
import { ForceRedirectConfig } from './model/ForceRedirectConfig';
|
52
|
+
import { HeaderBody } from './model/HeaderBody';
|
53
|
+
import { HeaderMap } from './model/HeaderMap';
|
54
|
+
import { HttpGetBody } from './model/HttpGetBody';
|
55
|
+
import { HttpInfoRequest } from './model/HttpInfoRequest';
|
56
|
+
import { HttpInfoRequestBody } from './model/HttpInfoRequestBody';
|
57
|
+
import { HttpInfoResponseBody } from './model/HttpInfoResponseBody';
|
58
|
+
import { HttpPutBody } from './model/HttpPutBody';
|
59
|
+
import { HttpResponseHeader } from './model/HttpResponseHeader';
|
60
|
+
import { HttpsDetail } from './model/HttpsDetail';
|
61
|
+
import { IpFilter } from './model/IpFilter';
|
62
|
+
import { ListDomainsRequest } from './model/ListDomainsRequest';
|
63
|
+
import { ListDomainsResponse } from './model/ListDomainsResponse';
|
64
|
+
import { LogObject } from './model/LogObject';
|
65
|
+
import { ModelMap } from './model/ModelMap';
|
66
|
+
import { ModifyDomainConfigRequestBody } from './model/ModifyDomainConfigRequestBody';
|
67
|
+
import { OriginHostBody } from './model/OriginHostBody';
|
68
|
+
import { OriginHostRequest } from './model/OriginHostRequest';
|
69
|
+
import { OriginRangeBody } from './model/OriginRangeBody';
|
70
|
+
import { OriginRequest } from './model/OriginRequest';
|
71
|
+
import { OriginRequestHeader } from './model/OriginRequestHeader';
|
72
|
+
import { OriginRequestUrlRewrite } from './model/OriginRequestUrlRewrite';
|
73
|
+
import { PreheatingTaskRequest } from './model/PreheatingTaskRequest';
|
74
|
+
import { PreheatingTaskRequestBody } from './model/PreheatingTaskRequestBody';
|
75
|
+
import { Quotas } from './model/Quotas';
|
76
|
+
import { RangeStatusRequest } from './model/RangeStatusRequest';
|
77
|
+
import { Referer } from './model/Referer';
|
78
|
+
import { RefererBody } from './model/RefererBody';
|
79
|
+
import { RefererConfig } from './model/RefererConfig';
|
80
|
+
import { RefererRsp } from './model/RefererRsp';
|
81
|
+
import { RefreshTaskRequest } from './model/RefreshTaskRequest';
|
82
|
+
import { RefreshTaskRequestBody } from './model/RefreshTaskRequestBody';
|
83
|
+
import { ResourceBody } from './model/ResourceBody';
|
84
|
+
import { Rules } from './model/Rules';
|
85
|
+
import { ShowBlackWhiteListRequest } from './model/ShowBlackWhiteListRequest';
|
86
|
+
import { ShowBlackWhiteListResponse } from './model/ShowBlackWhiteListResponse';
|
87
|
+
import { ShowCacheRulesRequest } from './model/ShowCacheRulesRequest';
|
88
|
+
import { ShowCacheRulesResponse } from './model/ShowCacheRulesResponse';
|
89
|
+
import { ShowCertificatesHttpsInfoRequest } from './model/ShowCertificatesHttpsInfoRequest';
|
90
|
+
import { ShowCertificatesHttpsInfoResponse } from './model/ShowCertificatesHttpsInfoResponse';
|
91
|
+
import { ShowDomainDetailRequest } from './model/ShowDomainDetailRequest';
|
92
|
+
import { ShowDomainDetailResponse } from './model/ShowDomainDetailResponse';
|
93
|
+
import { ShowDomainFullConfigRequest } from './model/ShowDomainFullConfigRequest';
|
94
|
+
import { ShowDomainFullConfigResponse } from './model/ShowDomainFullConfigResponse';
|
95
|
+
import { ShowDomainItemDetailsRequest } from './model/ShowDomainItemDetailsRequest';
|
96
|
+
import { ShowDomainItemDetailsResponse } from './model/ShowDomainItemDetailsResponse';
|
97
|
+
import { ShowDomainItemLocationDetailsRequest } from './model/ShowDomainItemLocationDetailsRequest';
|
98
|
+
import { ShowDomainItemLocationDetailsResponse } from './model/ShowDomainItemLocationDetailsResponse';
|
99
|
+
import { ShowDomainLocationStatsRequest } from './model/ShowDomainLocationStatsRequest';
|
100
|
+
import { ShowDomainLocationStatsResponse } from './model/ShowDomainLocationStatsResponse';
|
101
|
+
import { ShowDomainStatsRequest } from './model/ShowDomainStatsRequest';
|
102
|
+
import { ShowDomainStatsResponse } from './model/ShowDomainStatsResponse';
|
103
|
+
import { ShowHistoryTaskDetailsRequest } from './model/ShowHistoryTaskDetailsRequest';
|
104
|
+
import { ShowHistoryTaskDetailsResponse } from './model/ShowHistoryTaskDetailsResponse';
|
105
|
+
import { ShowHistoryTasksRequest } from './model/ShowHistoryTasksRequest';
|
106
|
+
import { ShowHistoryTasksResponse } from './model/ShowHistoryTasksResponse';
|
107
|
+
import { ShowHttpInfoRequest } from './model/ShowHttpInfoRequest';
|
108
|
+
import { ShowHttpInfoResponse } from './model/ShowHttpInfoResponse';
|
109
|
+
import { ShowIpInfoRequest } from './model/ShowIpInfoRequest';
|
110
|
+
import { ShowIpInfoResponse } from './model/ShowIpInfoResponse';
|
111
|
+
import { ShowLogsRequest } from './model/ShowLogsRequest';
|
112
|
+
import { ShowLogsResponse } from './model/ShowLogsResponse';
|
113
|
+
import { ShowOriginHostRequest } from './model/ShowOriginHostRequest';
|
114
|
+
import { ShowOriginHostResponse } from './model/ShowOriginHostResponse';
|
115
|
+
import { ShowQuotaRequest } from './model/ShowQuotaRequest';
|
116
|
+
import { ShowQuotaResponse } from './model/ShowQuotaResponse';
|
117
|
+
import { ShowReferRequest } from './model/ShowReferRequest';
|
118
|
+
import { ShowReferResponse } from './model/ShowReferResponse';
|
119
|
+
import { ShowResponseHeaderRequest } from './model/ShowResponseHeaderRequest';
|
120
|
+
import { ShowResponseHeaderResponse } from './model/ShowResponseHeaderResponse';
|
121
|
+
import { ShowTagsRequest } from './model/ShowTagsRequest';
|
122
|
+
import { ShowTagsResponse } from './model/ShowTagsResponse';
|
123
|
+
import { ShowTopUrlRequest } from './model/ShowTopUrlRequest';
|
124
|
+
import { ShowTopUrlResponse } from './model/ShowTopUrlResponse';
|
125
|
+
import { ShowUrlTaskInfoRequest } from './model/ShowUrlTaskInfoRequest';
|
126
|
+
import { ShowUrlTaskInfoResponse } from './model/ShowUrlTaskInfoResponse';
|
127
|
+
import { SourceWithPort } from './model/SourceWithPort';
|
128
|
+
import { Sources } from './model/Sources';
|
129
|
+
import { SourcesConfig } from './model/SourcesConfig';
|
130
|
+
import { TasksObject } from './model/TasksObject';
|
131
|
+
import { TopUrlSummary } from './model/TopUrlSummary';
|
132
|
+
import { UpdateBlackWhiteListRequest } from './model/UpdateBlackWhiteListRequest';
|
133
|
+
import { UpdateBlackWhiteListResponse } from './model/UpdateBlackWhiteListResponse';
|
134
|
+
import { UpdateCacheRulesRequest } from './model/UpdateCacheRulesRequest';
|
135
|
+
import { UpdateCacheRulesResponse } from './model/UpdateCacheRulesResponse';
|
136
|
+
import { UpdateDomainFullConfigRequest } from './model/UpdateDomainFullConfigRequest';
|
137
|
+
import { UpdateDomainFullConfigResponse } from './model/UpdateDomainFullConfigResponse';
|
138
|
+
import { UpdateDomainMultiCertificatesRequest } from './model/UpdateDomainMultiCertificatesRequest';
|
139
|
+
import { UpdateDomainMultiCertificatesRequestBody } from './model/UpdateDomainMultiCertificatesRequestBody';
|
140
|
+
import { UpdateDomainMultiCertificatesRequestBodyContent } from './model/UpdateDomainMultiCertificatesRequestBodyContent';
|
141
|
+
import { UpdateDomainMultiCertificatesResponse } from './model/UpdateDomainMultiCertificatesResponse';
|
142
|
+
import { UpdateDomainMultiCertificatesResponseBodyContent } from './model/UpdateDomainMultiCertificatesResponseBodyContent';
|
143
|
+
import { UpdateDomainOriginRequest } from './model/UpdateDomainOriginRequest';
|
144
|
+
import { UpdateDomainOriginResponse } from './model/UpdateDomainOriginResponse';
|
145
|
+
import { UpdateFollow302SwitchRequest } from './model/UpdateFollow302SwitchRequest';
|
146
|
+
import { UpdateFollow302SwitchResponse } from './model/UpdateFollow302SwitchResponse';
|
147
|
+
import { UpdateHttpsInfoRequest } from './model/UpdateHttpsInfoRequest';
|
148
|
+
import { UpdateHttpsInfoResponse } from './model/UpdateHttpsInfoResponse';
|
149
|
+
import { UpdateOriginHostRequest } from './model/UpdateOriginHostRequest';
|
150
|
+
import { UpdateOriginHostResponse } from './model/UpdateOriginHostResponse';
|
151
|
+
import { UpdatePrivateBucketAccessBody } from './model/UpdatePrivateBucketAccessBody';
|
152
|
+
import { UpdatePrivateBucketAccessRequest } from './model/UpdatePrivateBucketAccessRequest';
|
153
|
+
import { UpdatePrivateBucketAccessResponse } from './model/UpdatePrivateBucketAccessResponse';
|
154
|
+
import { UpdateRangeSwitchRequest } from './model/UpdateRangeSwitchRequest';
|
155
|
+
import { UpdateRangeSwitchResponse } from './model/UpdateRangeSwitchResponse';
|
156
|
+
import { UpdateReferRequest } from './model/UpdateReferRequest';
|
157
|
+
import { UpdateReferResponse } from './model/UpdateReferResponse';
|
158
|
+
import { UpdateResponseHeaderRequest } from './model/UpdateResponseHeaderRequest';
|
159
|
+
import { UpdateResponseHeaderResponse } from './model/UpdateResponseHeaderResponse';
|
160
|
+
import { UrlAuth } from './model/UrlAuth';
|
161
|
+
import { UrlAuthGetBody } from './model/UrlAuthGetBody';
|
162
|
+
import { UrlObject } from './model/UrlObject';
|
163
|
+
import { Urls } from './model/Urls';
|
164
|
+
import { UserAgentFilter } from './model/UserAgentFilter';
|
165
|
+
|
166
|
+
export class CdnClient {
|
167
|
+
public static newBuilder(): ClientBuilder<CdnClient> {
|
168
|
+
return new ClientBuilder<CdnClient>(newClient);
|
169
|
+
}
|
170
|
+
|
171
|
+
private hcClient: HcClient;
|
172
|
+
public constructor(client: HcClient) {
|
63
173
|
this.hcClient = client;
|
64
174
|
}
|
65
|
-
|
66
|
-
|
67
|
-
};
|
68
|
-
CdnClient.prototype.getPath = function () {
|
175
|
+
|
176
|
+
public getPath() {
|
69
177
|
return __dirname;
|
70
|
-
}
|
178
|
+
}
|
179
|
+
|
180
|
+
|
71
181
|
/**
|
72
182
|
* 用于删除资源标签。
|
73
|
-
*
|
183
|
+
*
|
74
184
|
* Please refer to HUAWEI cloud API Explorer for details.
|
75
185
|
*
|
76
186
|
* @summary 删除资源标签配置接口
|
@@ -78,15 +188,18 @@ var CdnClient = /** @class */ (function () {
|
|
78
188
|
* @param {*} [options] Override http request option.
|
79
189
|
* @throws {RequiredError}
|
80
190
|
*/
|
81
|
-
|
82
|
-
|
83
|
-
|
191
|
+
public batchDeleteTags(batchDeleteTagsRequest?: BatchDeleteTagsRequest): Promise<BatchDeleteTagsResponse> {
|
192
|
+
const options = ParamCreater().batchDeleteTags(batchDeleteTagsRequest);
|
193
|
+
|
194
|
+
// @ts-ignore
|
84
195
|
options['responseHeaders'] = [''];
|
196
|
+
|
85
197
|
return this.hcClient.sendRequest(options);
|
86
|
-
}
|
198
|
+
}
|
199
|
+
|
87
200
|
/**
|
88
201
|
* 创建加速域名。
|
89
|
-
*
|
202
|
+
*
|
90
203
|
* Please refer to HUAWEI cloud API Explorer for details.
|
91
204
|
*
|
92
205
|
* @summary 创建加速域名
|
@@ -94,15 +207,18 @@ var CdnClient = /** @class */ (function () {
|
|
94
207
|
* @param {*} [options] Override http request option.
|
95
208
|
* @throws {RequiredError}
|
96
209
|
*/
|
97
|
-
|
98
|
-
|
99
|
-
|
210
|
+
public createDomain(createDomainRequest?: CreateDomainRequest): Promise<CreateDomainResponse> {
|
211
|
+
const options = ParamCreater().createDomain(createDomainRequest);
|
212
|
+
|
213
|
+
// @ts-ignore
|
100
214
|
options['responseHeaders'] = [''];
|
215
|
+
|
101
216
|
return this.hcClient.sendRequest(options);
|
102
|
-
}
|
217
|
+
}
|
218
|
+
|
103
219
|
/**
|
104
220
|
* 创建预热任务。
|
105
|
-
*
|
221
|
+
*
|
106
222
|
* Please refer to HUAWEI cloud API Explorer for details.
|
107
223
|
*
|
108
224
|
* @summary 创建预热缓存任务
|
@@ -111,15 +227,18 @@ var CdnClient = /** @class */ (function () {
|
|
111
227
|
* @param {*} [options] Override http request option.
|
112
228
|
* @throws {RequiredError}
|
113
229
|
*/
|
114
|
-
|
115
|
-
|
116
|
-
|
230
|
+
public createPreheatingTasks(createPreheatingTasksRequest?: CreatePreheatingTasksRequest): Promise<CreatePreheatingTasksResponse> {
|
231
|
+
const options = ParamCreater().createPreheatingTasks(createPreheatingTasksRequest);
|
232
|
+
|
233
|
+
// @ts-ignore
|
117
234
|
options['responseHeaders'] = [''];
|
235
|
+
|
118
236
|
return this.hcClient.sendRequest(options);
|
119
|
-
}
|
237
|
+
}
|
238
|
+
|
120
239
|
/**
|
121
240
|
* 创建刷新缓存任务。
|
122
|
-
*
|
241
|
+
*
|
123
242
|
* Please refer to HUAWEI cloud API Explorer for details.
|
124
243
|
*
|
125
244
|
* @summary 创建刷新缓存任务
|
@@ -128,15 +247,18 @@ var CdnClient = /** @class */ (function () {
|
|
128
247
|
* @param {*} [options] Override http request option.
|
129
248
|
* @throws {RequiredError}
|
130
249
|
*/
|
131
|
-
|
132
|
-
|
133
|
-
|
250
|
+
public createRefreshTasks(createRefreshTasksRequest?: CreateRefreshTasksRequest): Promise<CreateRefreshTasksResponse> {
|
251
|
+
const options = ParamCreater().createRefreshTasks(createRefreshTasksRequest);
|
252
|
+
|
253
|
+
// @ts-ignore
|
134
254
|
options['responseHeaders'] = [''];
|
255
|
+
|
135
256
|
return this.hcClient.sendRequest(options);
|
136
|
-
}
|
257
|
+
}
|
258
|
+
|
137
259
|
/**
|
138
260
|
* 用于创建资源标签。
|
139
|
-
*
|
261
|
+
*
|
140
262
|
* Please refer to HUAWEI cloud API Explorer for details.
|
141
263
|
*
|
142
264
|
* @summary 创建资源标签配置接口
|
@@ -144,15 +266,18 @@ var CdnClient = /** @class */ (function () {
|
|
144
266
|
* @param {*} [options] Override http request option.
|
145
267
|
* @throws {RequiredError}
|
146
268
|
*/
|
147
|
-
|
148
|
-
|
149
|
-
|
269
|
+
public createTags(createTagsRequest?: CreateTagsRequest): Promise<CreateTagsResponse> {
|
270
|
+
const options = ParamCreater().createTags(createTagsRequest);
|
271
|
+
|
272
|
+
// @ts-ignore
|
150
273
|
options['responseHeaders'] = [''];
|
274
|
+
|
151
275
|
return this.hcClient.sendRequest(options);
|
152
|
-
}
|
276
|
+
}
|
277
|
+
|
153
278
|
/**
|
154
279
|
* 删除加速域名。
|
155
|
-
*
|
280
|
+
*
|
156
281
|
* Please refer to HUAWEI cloud API Explorer for details.
|
157
282
|
*
|
158
283
|
* @summary 删除加速域名
|
@@ -161,15 +286,18 @@ var CdnClient = /** @class */ (function () {
|
|
161
286
|
* @param {*} [options] Override http request option.
|
162
287
|
* @throws {RequiredError}
|
163
288
|
*/
|
164
|
-
|
165
|
-
|
166
|
-
|
289
|
+
public deleteDomain(deleteDomainRequest?: DeleteDomainRequest): Promise<DeleteDomainResponse> {
|
290
|
+
const options = ParamCreater().deleteDomain(deleteDomainRequest);
|
291
|
+
|
292
|
+
// @ts-ignore
|
167
293
|
options['responseHeaders'] = [''];
|
294
|
+
|
168
295
|
return this.hcClient.sendRequest(options);
|
169
|
-
}
|
296
|
+
}
|
297
|
+
|
170
298
|
/**
|
171
299
|
* 停用加速域名。
|
172
|
-
*
|
300
|
+
*
|
173
301
|
* Please refer to HUAWEI cloud API Explorer for details.
|
174
302
|
*
|
175
303
|
* @summary 停用加速域名
|
@@ -178,15 +306,18 @@ var CdnClient = /** @class */ (function () {
|
|
178
306
|
* @param {*} [options] Override http request option.
|
179
307
|
* @throws {RequiredError}
|
180
308
|
*/
|
181
|
-
|
182
|
-
|
183
|
-
|
309
|
+
public disableDomain(disableDomainRequest?: DisableDomainRequest): Promise<DisableDomainResponse> {
|
310
|
+
const options = ParamCreater().disableDomain(disableDomainRequest);
|
311
|
+
|
312
|
+
// @ts-ignore
|
184
313
|
options['responseHeaders'] = [''];
|
314
|
+
|
185
315
|
return this.hcClient.sendRequest(options);
|
186
|
-
}
|
316
|
+
}
|
317
|
+
|
187
318
|
/**
|
188
319
|
* 启用加速域名。
|
189
|
-
*
|
320
|
+
*
|
190
321
|
* Please refer to HUAWEI cloud API Explorer for details.
|
191
322
|
*
|
192
323
|
* @summary 启用加速域名
|
@@ -195,15 +326,18 @@ var CdnClient = /** @class */ (function () {
|
|
195
326
|
* @param {*} [options] Override http request option.
|
196
327
|
* @throws {RequiredError}
|
197
328
|
*/
|
198
|
-
|
199
|
-
|
200
|
-
|
329
|
+
public enableDomain(enableDomainRequest?: EnableDomainRequest): Promise<EnableDomainResponse> {
|
330
|
+
const options = ParamCreater().enableDomain(enableDomainRequest);
|
331
|
+
|
332
|
+
// @ts-ignore
|
201
333
|
options['responseHeaders'] = [''];
|
334
|
+
|
202
335
|
return this.hcClient.sendRequest(options);
|
203
|
-
}
|
336
|
+
}
|
337
|
+
|
204
338
|
/**
|
205
339
|
* 查询加速域名信息
|
206
|
-
*
|
340
|
+
*
|
207
341
|
* Please refer to HUAWEI cloud API Explorer for details.
|
208
342
|
*
|
209
343
|
* @summary 查询加速域名
|
@@ -219,15 +353,18 @@ var CdnClient = /** @class */ (function () {
|
|
219
353
|
* @param {*} [options] Override http request option.
|
220
354
|
* @throws {RequiredError}
|
221
355
|
*/
|
222
|
-
|
223
|
-
|
224
|
-
|
356
|
+
public listDomains(listDomainsRequest?: ListDomainsRequest): Promise<ListDomainsResponse> {
|
357
|
+
const options = ParamCreater().listDomains(listDomainsRequest);
|
358
|
+
|
359
|
+
// @ts-ignore
|
225
360
|
options['responseHeaders'] = [''];
|
361
|
+
|
226
362
|
return this.hcClient.sendRequest(options);
|
227
|
-
}
|
363
|
+
}
|
364
|
+
|
228
365
|
/**
|
229
366
|
* 查询域名已经设置的IP黑白名单。
|
230
|
-
*
|
367
|
+
*
|
231
368
|
* Please refer to HUAWEI cloud API Explorer for details.
|
232
369
|
*
|
233
370
|
* @summary 查询IP黑白名单
|
@@ -236,15 +373,18 @@ var CdnClient = /** @class */ (function () {
|
|
236
373
|
* @param {*} [options] Override http request option.
|
237
374
|
* @throws {RequiredError}
|
238
375
|
*/
|
239
|
-
|
240
|
-
|
241
|
-
|
376
|
+
public showBlackWhiteList(showBlackWhiteListRequest?: ShowBlackWhiteListRequest): Promise<ShowBlackWhiteListResponse> {
|
377
|
+
const options = ParamCreater().showBlackWhiteList(showBlackWhiteListRequest);
|
378
|
+
|
379
|
+
// @ts-ignore
|
242
380
|
options['responseHeaders'] = [''];
|
381
|
+
|
243
382
|
return this.hcClient.sendRequest(options);
|
244
|
-
}
|
383
|
+
}
|
384
|
+
|
245
385
|
/**
|
246
386
|
* 查询缓存规则。
|
247
|
-
*
|
387
|
+
*
|
248
388
|
* Please refer to HUAWEI cloud API Explorer for details.
|
249
389
|
*
|
250
390
|
* @summary 查询缓存规则
|
@@ -253,15 +393,18 @@ var CdnClient = /** @class */ (function () {
|
|
253
393
|
* @param {*} [options] Override http request option.
|
254
394
|
* @throws {RequiredError}
|
255
395
|
*/
|
256
|
-
|
257
|
-
|
258
|
-
|
396
|
+
public showCacheRules(showCacheRulesRequest?: ShowCacheRulesRequest): Promise<ShowCacheRulesResponse> {
|
397
|
+
const options = ParamCreater().showCacheRules(showCacheRulesRequest);
|
398
|
+
|
399
|
+
// @ts-ignore
|
259
400
|
options['responseHeaders'] = [''];
|
401
|
+
|
260
402
|
return this.hcClient.sendRequest(options);
|
261
|
-
}
|
403
|
+
}
|
404
|
+
|
262
405
|
/**
|
263
406
|
* 查询所有绑定HTTPS证书的域名信息
|
264
|
-
*
|
407
|
+
*
|
265
408
|
* Please refer to HUAWEI cloud API Explorer for details.
|
266
409
|
*
|
267
410
|
* @summary 查询所有绑定HTTPS证书的域名信息
|
@@ -273,15 +416,18 @@ var CdnClient = /** @class */ (function () {
|
|
273
416
|
* @param {*} [options] Override http request option.
|
274
417
|
* @throws {RequiredError}
|
275
418
|
*/
|
276
|
-
|
277
|
-
|
278
|
-
|
419
|
+
public showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest?: ShowCertificatesHttpsInfoRequest): Promise<ShowCertificatesHttpsInfoResponse> {
|
420
|
+
const options = ParamCreater().showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest);
|
421
|
+
|
422
|
+
// @ts-ignore
|
279
423
|
options['responseHeaders'] = [''];
|
424
|
+
|
280
425
|
return this.hcClient.sendRequest(options);
|
281
|
-
}
|
426
|
+
}
|
427
|
+
|
282
428
|
/**
|
283
429
|
* 查询加速域名详情。
|
284
|
-
*
|
430
|
+
*
|
285
431
|
* Please refer to HUAWEI cloud API Explorer for details.
|
286
432
|
*
|
287
433
|
* @summary 查询加速域名详情
|
@@ -290,16 +436,19 @@ var CdnClient = /** @class */ (function () {
|
|
290
436
|
* @param {*} [options] Override http request option.
|
291
437
|
* @throws {RequiredError}
|
292
438
|
*/
|
293
|
-
|
294
|
-
|
295
|
-
|
439
|
+
public showDomainDetail(showDomainDetailRequest?: ShowDomainDetailRequest): Promise<ShowDomainDetailResponse> {
|
440
|
+
const options = ParamCreater().showDomainDetail(showDomainDetailRequest);
|
441
|
+
|
442
|
+
// @ts-ignore
|
296
443
|
options['responseHeaders'] = [''];
|
444
|
+
|
297
445
|
return this.hcClient.sendRequest(options);
|
298
|
-
}
|
446
|
+
}
|
447
|
+
|
299
448
|
/**
|
300
449
|
* 查询域名配置接口,
|
301
450
|
* 支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
302
|
-
*
|
451
|
+
*
|
303
452
|
* Please refer to HUAWEI cloud API Explorer for details.
|
304
453
|
*
|
305
454
|
* @summary 查询域名配置接口
|
@@ -308,12 +457,15 @@ var CdnClient = /** @class */ (function () {
|
|
308
457
|
* @param {*} [options] Override http request option.
|
309
458
|
* @throws {RequiredError}
|
310
459
|
*/
|
311
|
-
|
312
|
-
|
313
|
-
|
460
|
+
public showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): Promise<ShowDomainFullConfigResponse> {
|
461
|
+
const options = ParamCreater().showDomainFullConfig(showDomainFullConfigRequest);
|
462
|
+
|
463
|
+
// @ts-ignore
|
314
464
|
options['responseHeaders'] = [''];
|
465
|
+
|
315
466
|
return this.hcClient.sendRequest(options);
|
316
|
-
}
|
467
|
+
}
|
468
|
+
|
317
469
|
/**
|
318
470
|
* - 支持查询90天内的数据。
|
319
471
|
* - 查询跨度不能超过7天。
|
@@ -324,7 +476,7 @@ var CdnClient = /** @class */ (function () {
|
|
324
476
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
325
477
|
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
326
478
|
* - 支持同时查询多个指标,不超过10个。
|
327
|
-
*
|
479
|
+
*
|
328
480
|
* Please refer to HUAWEI cloud API Explorer for details.
|
329
481
|
*
|
330
482
|
* @summary 批量查询域名的统计明细-按域名单独返回
|
@@ -337,12 +489,15 @@ var CdnClient = /** @class */ (function () {
|
|
337
489
|
* @param {*} [options] Override http request option.
|
338
490
|
* @throws {RequiredError}
|
339
491
|
*/
|
340
|
-
|
341
|
-
|
342
|
-
|
492
|
+
public showDomainItemDetails(showDomainItemDetailsRequest?: ShowDomainItemDetailsRequest): Promise<ShowDomainItemDetailsResponse> {
|
493
|
+
const options = ParamCreater().showDomainItemDetails(showDomainItemDetailsRequest);
|
494
|
+
|
495
|
+
// @ts-ignore
|
343
496
|
options['responseHeaders'] = [''];
|
497
|
+
|
344
498
|
return this.hcClient.sendRequest(options);
|
345
|
-
}
|
499
|
+
}
|
500
|
+
|
346
501
|
/**
|
347
502
|
* - 支持查询90天内的数据。
|
348
503
|
* - 查询跨度是7天。
|
@@ -356,7 +511,7 @@ var CdnClient = /** @class */ (function () {
|
|
356
511
|
* - 支持按区域、运营商维度查询统计数据, 回源指标除外。
|
357
512
|
* - 支持同时查询多个指标,不超过10个。
|
358
513
|
* - 域名为海外加速场景不适用。
|
359
|
-
*
|
514
|
+
*
|
360
515
|
* Please refer to HUAWEI cloud API Explorer for details.
|
361
516
|
*
|
362
517
|
* @summary 批量查询域名的区域、运营商统计明细-按域名单独返回
|
@@ -370,27 +525,30 @@ var CdnClient = /** @class */ (function () {
|
|
370
525
|
* @param {*} [options] Override http request option.
|
371
526
|
* @throws {RequiredError}
|
372
527
|
*/
|
373
|
-
|
374
|
-
|
375
|
-
|
528
|
+
public showDomainItemLocationDetails(showDomainItemLocationDetailsRequest?: ShowDomainItemLocationDetailsRequest): Promise<ShowDomainItemLocationDetailsResponse> {
|
529
|
+
const options = ParamCreater().showDomainItemLocationDetails(showDomainItemLocationDetailsRequest);
|
530
|
+
|
531
|
+
// @ts-ignore
|
376
532
|
options['responseHeaders'] = [''];
|
533
|
+
|
377
534
|
return this.hcClient.sendRequest(options);
|
378
|
-
}
|
535
|
+
}
|
536
|
+
|
379
537
|
/**
|
380
538
|
* - 支持查询90天内的数据。
|
381
|
-
*
|
539
|
+
*
|
382
540
|
* - 支持多指标同时查询,不超过5个。
|
383
|
-
*
|
541
|
+
*
|
384
542
|
* - 最多同时指定20个域名。
|
385
|
-
*
|
543
|
+
*
|
386
544
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
387
|
-
*
|
545
|
+
*
|
388
546
|
* - action取值:location_detail,location_summary
|
389
|
-
*
|
547
|
+
*
|
390
548
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
391
|
-
*
|
549
|
+
*
|
392
550
|
* - 单租户调用频率:15次/s。
|
393
|
-
*
|
551
|
+
*
|
394
552
|
* Please refer to HUAWEI cloud API Explorer for details.
|
395
553
|
*
|
396
554
|
* @summary 按区域运营商查询域名统计数据
|
@@ -408,27 +566,30 @@ var CdnClient = /** @class */ (function () {
|
|
408
566
|
* @param {*} [options] Override http request option.
|
409
567
|
* @throws {RequiredError}
|
410
568
|
*/
|
411
|
-
|
412
|
-
|
413
|
-
|
569
|
+
public showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest): Promise<ShowDomainLocationStatsResponse> {
|
570
|
+
const options = ParamCreater().showDomainLocationStats(showDomainLocationStatsRequest);
|
571
|
+
|
572
|
+
// @ts-ignore
|
414
573
|
options['responseHeaders'] = [''];
|
574
|
+
|
415
575
|
return this.hcClient.sendRequest(options);
|
416
|
-
}
|
576
|
+
}
|
577
|
+
|
417
578
|
/**
|
418
579
|
* - 支持查询90天内的数据。
|
419
|
-
*
|
580
|
+
*
|
420
581
|
* - 支持多指标同时查询,不超过5个。
|
421
|
-
*
|
582
|
+
*
|
422
583
|
* - 最多同时指定20个域名。
|
423
|
-
*
|
584
|
+
*
|
424
585
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
425
|
-
*
|
586
|
+
*
|
426
587
|
* - action取值:detail,summary
|
427
|
-
*
|
588
|
+
*
|
428
589
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
429
|
-
*
|
590
|
+
*
|
430
591
|
* - 单租户调用频率:15次/s。
|
431
|
-
*
|
592
|
+
*
|
432
593
|
* Please refer to HUAWEI cloud API Explorer for details.
|
433
594
|
*
|
434
595
|
* @summary 查询域名统计数据
|
@@ -444,15 +605,18 @@ var CdnClient = /** @class */ (function () {
|
|
444
605
|
* @param {*} [options] Override http request option.
|
445
606
|
* @throws {RequiredError}
|
446
607
|
*/
|
447
|
-
|
448
|
-
|
449
|
-
|
608
|
+
public showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest): Promise<ShowDomainStatsResponse> {
|
609
|
+
const options = ParamCreater().showDomainStats(showDomainStatsRequest);
|
610
|
+
|
611
|
+
// @ts-ignore
|
450
612
|
options['responseHeaders'] = [''];
|
613
|
+
|
451
614
|
return this.hcClient.sendRequest(options);
|
452
|
-
}
|
615
|
+
}
|
616
|
+
|
453
617
|
/**
|
454
618
|
* 查询刷新预热任务详情。
|
455
|
-
*
|
619
|
+
*
|
456
620
|
* Please refer to HUAWEI cloud API Explorer for details.
|
457
621
|
*
|
458
622
|
* @summary 查询刷新预热任务详情
|
@@ -466,15 +630,18 @@ var CdnClient = /** @class */ (function () {
|
|
466
630
|
* @param {*} [options] Override http request option.
|
467
631
|
* @throws {RequiredError}
|
468
632
|
*/
|
469
|
-
|
470
|
-
|
471
|
-
|
633
|
+
public showHistoryTaskDetails(showHistoryTaskDetailsRequest?: ShowHistoryTaskDetailsRequest): Promise<ShowHistoryTaskDetailsResponse> {
|
634
|
+
const options = ParamCreater().showHistoryTaskDetails(showHistoryTaskDetailsRequest);
|
635
|
+
|
636
|
+
// @ts-ignore
|
472
637
|
options['responseHeaders'] = [''];
|
638
|
+
|
473
639
|
return this.hcClient.sendRequest(options);
|
474
|
-
}
|
640
|
+
}
|
641
|
+
|
475
642
|
/**
|
476
643
|
* 查询刷新预热任务。
|
477
|
-
*
|
644
|
+
*
|
478
645
|
* Please refer to HUAWEI cloud API Explorer for details.
|
479
646
|
*
|
480
647
|
* @summary 查询刷新预热任务
|
@@ -490,15 +657,18 @@ var CdnClient = /** @class */ (function () {
|
|
490
657
|
* @param {*} [options] Override http request option.
|
491
658
|
* @throws {RequiredError}
|
492
659
|
*/
|
493
|
-
|
494
|
-
|
495
|
-
|
660
|
+
public showHistoryTasks(showHistoryTasksRequest?: ShowHistoryTasksRequest): Promise<ShowHistoryTasksResponse> {
|
661
|
+
const options = ParamCreater().showHistoryTasks(showHistoryTasksRequest);
|
662
|
+
|
663
|
+
// @ts-ignore
|
496
664
|
options['responseHeaders'] = [''];
|
665
|
+
|
497
666
|
return this.hcClient.sendRequest(options);
|
498
|
-
}
|
667
|
+
}
|
668
|
+
|
499
669
|
/**
|
500
670
|
* 获取加速域名证书。
|
501
|
-
*
|
671
|
+
*
|
502
672
|
* Please refer to HUAWEI cloud API Explorer for details.
|
503
673
|
*
|
504
674
|
* @summary 查询HTTPS配置
|
@@ -507,15 +677,18 @@ var CdnClient = /** @class */ (function () {
|
|
507
677
|
* @param {*} [options] Override http request option.
|
508
678
|
* @throws {RequiredError}
|
509
679
|
*/
|
510
|
-
|
511
|
-
|
512
|
-
|
680
|
+
public showHttpInfo(showHttpInfoRequest?: ShowHttpInfoRequest): Promise<ShowHttpInfoResponse> {
|
681
|
+
const options = ParamCreater().showHttpInfo(showHttpInfoRequest);
|
682
|
+
|
683
|
+
// @ts-ignore
|
513
684
|
options['responseHeaders'] = [''];
|
685
|
+
|
514
686
|
return this.hcClient.sendRequest(options);
|
515
|
-
}
|
687
|
+
}
|
688
|
+
|
516
689
|
/**
|
517
690
|
* 查询IP归属信息。
|
518
|
-
*
|
691
|
+
*
|
519
692
|
* Please refer to HUAWEI cloud API Explorer for details.
|
520
693
|
*
|
521
694
|
* @summary 查询IP归属信息
|
@@ -524,15 +697,18 @@ var CdnClient = /** @class */ (function () {
|
|
524
697
|
* @param {*} [options] Override http request option.
|
525
698
|
* @throws {RequiredError}
|
526
699
|
*/
|
527
|
-
|
528
|
-
|
529
|
-
|
700
|
+
public showIpInfo(showIpInfoRequest?: ShowIpInfoRequest): Promise<ShowIpInfoResponse> {
|
701
|
+
const options = ParamCreater().showIpInfo(showIpInfoRequest);
|
702
|
+
|
703
|
+
// @ts-ignore
|
530
704
|
options['responseHeaders'] = [''];
|
705
|
+
|
531
706
|
return this.hcClient.sendRequest(options);
|
532
|
-
}
|
707
|
+
}
|
708
|
+
|
533
709
|
/**
|
534
710
|
* 查询日志下载链接,支持查询30天内的日志信息。
|
535
|
-
*
|
711
|
+
*
|
536
712
|
* Please refer to HUAWEI cloud API Explorer for details.
|
537
713
|
*
|
538
714
|
* @summary 日志查询
|
@@ -545,15 +721,18 @@ var CdnClient = /** @class */ (function () {
|
|
545
721
|
* @param {*} [options] Override http request option.
|
546
722
|
* @throws {RequiredError}
|
547
723
|
*/
|
548
|
-
|
549
|
-
|
550
|
-
|
724
|
+
public showLogs(showLogsRequest?: ShowLogsRequest): Promise<ShowLogsResponse> {
|
725
|
+
const options = ParamCreater().showLogs(showLogsRequest);
|
726
|
+
|
727
|
+
// @ts-ignore
|
551
728
|
options['responseHeaders'] = [''];
|
729
|
+
|
552
730
|
return this.hcClient.sendRequest(options);
|
553
|
-
}
|
731
|
+
}
|
732
|
+
|
554
733
|
/**
|
555
734
|
* 查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
556
|
-
*
|
735
|
+
*
|
557
736
|
* Please refer to HUAWEI cloud API Explorer for details.
|
558
737
|
*
|
559
738
|
* @summary 查询回源HOST
|
@@ -562,30 +741,36 @@ var CdnClient = /** @class */ (function () {
|
|
562
741
|
* @param {*} [options] Override http request option.
|
563
742
|
* @throws {RequiredError}
|
564
743
|
*/
|
565
|
-
|
566
|
-
|
567
|
-
|
744
|
+
public showOriginHost(showOriginHostRequest?: ShowOriginHostRequest): Promise<ShowOriginHostResponse> {
|
745
|
+
const options = ParamCreater().showOriginHost(showOriginHostRequest);
|
746
|
+
|
747
|
+
// @ts-ignore
|
568
748
|
options['responseHeaders'] = [''];
|
749
|
+
|
569
750
|
return this.hcClient.sendRequest(options);
|
570
|
-
}
|
751
|
+
}
|
752
|
+
|
571
753
|
/**
|
572
754
|
* 查询当前用户域名、刷新文件、刷新目录和预热的配额
|
573
|
-
*
|
755
|
+
*
|
574
756
|
* Please refer to HUAWEI cloud API Explorer for details.
|
575
757
|
*
|
576
758
|
* @summary 查询用户配额
|
577
759
|
* @param {*} [options] Override http request option.
|
578
760
|
* @throws {RequiredError}
|
579
761
|
*/
|
580
|
-
|
581
|
-
|
582
|
-
|
762
|
+
public showQuota(): Promise<ShowQuotaResponse> {
|
763
|
+
const options = ParamCreater().showQuota();
|
764
|
+
|
765
|
+
// @ts-ignore
|
583
766
|
options['responseHeaders'] = [''];
|
767
|
+
|
584
768
|
return this.hcClient.sendRequest(options);
|
585
|
-
}
|
769
|
+
}
|
770
|
+
|
586
771
|
/**
|
587
772
|
* 查询Referer过滤规则。
|
588
|
-
*
|
773
|
+
*
|
589
774
|
* Please refer to HUAWEI cloud API Explorer for details.
|
590
775
|
*
|
591
776
|
* @summary 查询Referer过滤规则
|
@@ -594,15 +779,18 @@ var CdnClient = /** @class */ (function () {
|
|
594
779
|
* @param {*} [options] Override http request option.
|
595
780
|
* @throws {RequiredError}
|
596
781
|
*/
|
597
|
-
|
598
|
-
|
599
|
-
|
782
|
+
public showRefer(showReferRequest?: ShowReferRequest): Promise<ShowReferResponse> {
|
783
|
+
const options = ParamCreater().showRefer(showReferRequest);
|
784
|
+
|
785
|
+
// @ts-ignore
|
600
786
|
options['responseHeaders'] = [''];
|
787
|
+
|
601
788
|
return this.hcClient.sendRequest(options);
|
602
|
-
}
|
789
|
+
}
|
790
|
+
|
603
791
|
/**
|
604
792
|
* 列举header所有配置。
|
605
|
-
*
|
793
|
+
*
|
606
794
|
* Please refer to HUAWEI cloud API Explorer for details.
|
607
795
|
*
|
608
796
|
* @summary 查询响应头配置
|
@@ -611,15 +799,18 @@ var CdnClient = /** @class */ (function () {
|
|
611
799
|
* @param {*} [options] Override http request option.
|
612
800
|
* @throws {RequiredError}
|
613
801
|
*/
|
614
|
-
|
615
|
-
|
616
|
-
|
802
|
+
public showResponseHeader(showResponseHeaderRequest?: ShowResponseHeaderRequest): Promise<ShowResponseHeaderResponse> {
|
803
|
+
const options = ParamCreater().showResponseHeader(showResponseHeaderRequest);
|
804
|
+
|
805
|
+
// @ts-ignore
|
617
806
|
options['responseHeaders'] = [''];
|
807
|
+
|
618
808
|
return this.hcClient.sendRequest(options);
|
619
|
-
}
|
809
|
+
}
|
810
|
+
|
620
811
|
/**
|
621
812
|
* 用于查询资源标签列表。
|
622
|
-
*
|
813
|
+
*
|
623
814
|
* Please refer to HUAWEI cloud API Explorer for details.
|
624
815
|
*
|
625
816
|
* @summary 查询资源标签列表配置接口
|
@@ -627,28 +818,31 @@ var CdnClient = /** @class */ (function () {
|
|
627
818
|
* @param {*} [options] Override http request option.
|
628
819
|
* @throws {RequiredError}
|
629
820
|
*/
|
630
|
-
|
631
|
-
|
632
|
-
|
821
|
+
public showTags(showTagsRequest?: ShowTagsRequest): Promise<ShowTagsResponse> {
|
822
|
+
const options = ParamCreater().showTags(showTagsRequest);
|
823
|
+
|
824
|
+
// @ts-ignore
|
633
825
|
options['responseHeaders'] = [''];
|
826
|
+
|
634
827
|
return this.hcClient.sendRequest(options);
|
635
|
-
}
|
828
|
+
}
|
829
|
+
|
636
830
|
/**
|
637
831
|
* - 查询TOP100 URL明细。
|
638
|
-
*
|
832
|
+
*
|
639
833
|
* - 支持查询90天内的数据。
|
640
|
-
*
|
834
|
+
*
|
641
835
|
* - 查询跨度不能超过31天。
|
642
|
-
*
|
836
|
+
*
|
643
837
|
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00
|
644
838
|
* 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
645
|
-
*
|
839
|
+
*
|
646
840
|
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
647
|
-
*
|
841
|
+
*
|
648
842
|
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
649
|
-
*
|
843
|
+
*
|
650
844
|
* - 单租户调用频率:5次/s。
|
651
|
-
*
|
845
|
+
*
|
652
846
|
* Please refer to HUAWEI cloud API Explorer for details.
|
653
847
|
*
|
654
848
|
* @summary 查询TOP100 URL明细
|
@@ -661,15 +855,18 @@ var CdnClient = /** @class */ (function () {
|
|
661
855
|
* @param {*} [options] Override http request option.
|
662
856
|
* @throws {RequiredError}
|
663
857
|
*/
|
664
|
-
|
665
|
-
|
666
|
-
|
858
|
+
public showTopUrl(showTopUrlRequest?: ShowTopUrlRequest): Promise<ShowTopUrlResponse> {
|
859
|
+
const options = ParamCreater().showTopUrl(showTopUrlRequest);
|
860
|
+
|
861
|
+
// @ts-ignore
|
667
862
|
options['responseHeaders'] = [''];
|
863
|
+
|
668
864
|
return this.hcClient.sendRequest(options);
|
669
|
-
}
|
865
|
+
}
|
866
|
+
|
670
867
|
/**
|
671
868
|
* 查询刷新预热URL记录。如需此接口,请提交工单开通
|
672
|
-
*
|
869
|
+
*
|
673
870
|
* Please refer to HUAWEI cloud API Explorer for details.
|
674
871
|
*
|
675
872
|
* @summary 查询刷新预热URL记录
|
@@ -684,15 +881,18 @@ var CdnClient = /** @class */ (function () {
|
|
684
881
|
* @param {*} [options] Override http request option.
|
685
882
|
* @throws {RequiredError}
|
686
883
|
*/
|
687
|
-
|
688
|
-
|
689
|
-
|
884
|
+
public showUrlTaskInfo(showUrlTaskInfoRequest?: ShowUrlTaskInfoRequest): Promise<ShowUrlTaskInfoResponse> {
|
885
|
+
const options = ParamCreater().showUrlTaskInfo(showUrlTaskInfoRequest);
|
886
|
+
|
887
|
+
// @ts-ignore
|
690
888
|
options['responseHeaders'] = ['X-request-id'];
|
889
|
+
|
691
890
|
return this.hcClient.sendRequest(options);
|
692
|
-
}
|
891
|
+
}
|
892
|
+
|
693
893
|
/**
|
694
894
|
* 设置域名的IP黑白名单。
|
695
|
-
*
|
895
|
+
*
|
696
896
|
* Please refer to HUAWEI cloud API Explorer for details.
|
697
897
|
*
|
698
898
|
* @summary 设置IP黑白名单
|
@@ -702,34 +902,40 @@ var CdnClient = /** @class */ (function () {
|
|
702
902
|
* @param {*} [options] Override http request option.
|
703
903
|
* @throws {RequiredError}
|
704
904
|
*/
|
705
|
-
|
706
|
-
|
707
|
-
|
905
|
+
public updateBlackWhiteList(updateBlackWhiteListRequest?: UpdateBlackWhiteListRequest): Promise<UpdateBlackWhiteListResponse> {
|
906
|
+
const options = ParamCreater().updateBlackWhiteList(updateBlackWhiteListRequest);
|
907
|
+
|
908
|
+
// @ts-ignore
|
708
909
|
options['responseHeaders'] = [''];
|
910
|
+
|
709
911
|
return this.hcClient.sendRequest(options);
|
710
|
-
}
|
912
|
+
}
|
913
|
+
|
711
914
|
/**
|
712
915
|
* 设置CDN节点上缓存资源的缓存策略。
|
713
|
-
*
|
916
|
+
*
|
714
917
|
* Please refer to HUAWEI cloud API Explorer for details.
|
715
918
|
*
|
716
919
|
* @summary 设置缓存规则
|
717
920
|
* @param {string} domainId 加速域名ID。
|
718
|
-
* @param {CacheConfigRequestBody} cacheConfig This is a auto create Body Object
|
921
|
+
* @param {CacheConfigRequestBody} cacheConfig This is a auto create Body Object
|
719
922
|
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
720
923
|
* @param {*} [options] Override http request option.
|
721
924
|
* @throws {RequiredError}
|
722
925
|
*/
|
723
|
-
|
724
|
-
|
725
|
-
|
926
|
+
public updateCacheRules(updateCacheRulesRequest?: UpdateCacheRulesRequest): Promise<UpdateCacheRulesResponse> {
|
927
|
+
const options = ParamCreater().updateCacheRules(updateCacheRulesRequest);
|
928
|
+
|
929
|
+
// @ts-ignore
|
726
930
|
options['responseHeaders'] = [''];
|
931
|
+
|
727
932
|
return this.hcClient.sendRequest(options);
|
728
|
-
}
|
933
|
+
}
|
934
|
+
|
729
935
|
/**
|
730
936
|
* 修改域名配置接口,
|
731
937
|
* 支持修改回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
732
|
-
*
|
938
|
+
*
|
733
939
|
* Please refer to HUAWEI cloud API Explorer for details.
|
734
940
|
*
|
735
941
|
* @summary 修改域名全量配置接口
|
@@ -739,15 +945,18 @@ var CdnClient = /** @class */ (function () {
|
|
739
945
|
* @param {*} [options] Override http request option.
|
740
946
|
* @throws {RequiredError}
|
741
947
|
*/
|
742
|
-
|
743
|
-
|
744
|
-
|
948
|
+
public updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<UpdateDomainFullConfigResponse> {
|
949
|
+
const options = ParamCreater().updateDomainFullConfig(updateDomainFullConfigRequest);
|
950
|
+
|
951
|
+
// @ts-ignore
|
745
952
|
options['responseHeaders'] = [''];
|
953
|
+
|
746
954
|
return this.hcClient.sendRequest(options);
|
747
|
-
}
|
955
|
+
}
|
956
|
+
|
748
957
|
/**
|
749
958
|
* 一个证书配置多个域名,设置域名强制https回源参数。
|
750
|
-
*
|
959
|
+
*
|
751
960
|
* Please refer to HUAWEI cloud API Explorer for details.
|
752
961
|
*
|
753
962
|
* @summary 一个证书批量设置多个域名
|
@@ -756,15 +965,18 @@ var CdnClient = /** @class */ (function () {
|
|
756
965
|
* @param {*} [options] Override http request option.
|
757
966
|
* @throws {RequiredError}
|
758
967
|
*/
|
759
|
-
|
760
|
-
|
761
|
-
|
968
|
+
public updateDomainMultiCertificates(updateDomainMultiCertificatesRequest?: UpdateDomainMultiCertificatesRequest): Promise<UpdateDomainMultiCertificatesResponse> {
|
969
|
+
const options = ParamCreater().updateDomainMultiCertificates(updateDomainMultiCertificatesRequest);
|
970
|
+
|
971
|
+
// @ts-ignore
|
762
972
|
options['responseHeaders'] = [''];
|
973
|
+
|
763
974
|
return this.hcClient.sendRequest(options);
|
764
|
-
}
|
975
|
+
}
|
976
|
+
|
765
977
|
/**
|
766
978
|
* 修改加速域名的源站配置。
|
767
|
-
*
|
979
|
+
*
|
768
980
|
* Please refer to HUAWEI cloud API Explorer for details.
|
769
981
|
*
|
770
982
|
* @summary 修改源站信息。
|
@@ -774,15 +986,18 @@ var CdnClient = /** @class */ (function () {
|
|
774
986
|
* @param {*} [options] Override http request option.
|
775
987
|
* @throws {RequiredError}
|
776
988
|
*/
|
777
|
-
|
778
|
-
|
779
|
-
|
989
|
+
public updateDomainOrigin(updateDomainOriginRequest?: UpdateDomainOriginRequest): Promise<UpdateDomainOriginResponse> {
|
990
|
+
const options = ParamCreater().updateDomainOrigin(updateDomainOriginRequest);
|
991
|
+
|
992
|
+
// @ts-ignore
|
780
993
|
options['responseHeaders'] = [''];
|
994
|
+
|
781
995
|
return this.hcClient.sendRequest(options);
|
782
|
-
}
|
996
|
+
}
|
997
|
+
|
783
998
|
/**
|
784
999
|
* 开启此项配置后,当CDN节点回源请求源站返回301/302状态码时,CDN节点会先跳转到301/302对应地址获取资源并缓存后再返回给用户。
|
785
|
-
*
|
1000
|
+
*
|
786
1001
|
* Please refer to HUAWEI cloud API Explorer for details.
|
787
1002
|
*
|
788
1003
|
* @summary 开启/关闭回源跟随
|
@@ -792,15 +1007,18 @@ var CdnClient = /** @class */ (function () {
|
|
792
1007
|
* @param {*} [options] Override http request option.
|
793
1008
|
* @throws {RequiredError}
|
794
1009
|
*/
|
795
|
-
|
796
|
-
|
797
|
-
|
1010
|
+
public updateFollow302Switch(updateFollow302SwitchRequest?: UpdateFollow302SwitchRequest): Promise<UpdateFollow302SwitchResponse> {
|
1011
|
+
const options = ParamCreater().updateFollow302Switch(updateFollow302SwitchRequest);
|
1012
|
+
|
1013
|
+
// @ts-ignore
|
798
1014
|
options['responseHeaders'] = [''];
|
1015
|
+
|
799
1016
|
return this.hcClient.sendRequest(options);
|
800
|
-
}
|
1017
|
+
}
|
1018
|
+
|
801
1019
|
/**
|
802
1020
|
* 设置加速域名HTTPS。通过配置加速域名的HTTPS证书,并将其部署在全网CDN节点,实现HTTPS安全加速。
|
803
|
-
*
|
1021
|
+
*
|
804
1022
|
* Please refer to HUAWEI cloud API Explorer for details.
|
805
1023
|
*
|
806
1024
|
* @summary 配置HTTPS
|
@@ -810,15 +1028,18 @@ var CdnClient = /** @class */ (function () {
|
|
810
1028
|
* @param {*} [options] Override http request option.
|
811
1029
|
* @throws {RequiredError}
|
812
1030
|
*/
|
813
|
-
|
814
|
-
|
815
|
-
|
1031
|
+
public updateHttpsInfo(updateHttpsInfoRequest?: UpdateHttpsInfoRequest): Promise<UpdateHttpsInfoResponse> {
|
1032
|
+
const options = ParamCreater().updateHttpsInfo(updateHttpsInfoRequest);
|
1033
|
+
|
1034
|
+
// @ts-ignore
|
816
1035
|
options['responseHeaders'] = [''];
|
1036
|
+
|
817
1037
|
return this.hcClient.sendRequest(options);
|
818
|
-
}
|
1038
|
+
}
|
1039
|
+
|
819
1040
|
/**
|
820
1041
|
* 修改回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
821
|
-
*
|
1042
|
+
*
|
822
1043
|
* Please refer to HUAWEI cloud API Explorer for details.
|
823
1044
|
*
|
824
1045
|
* @summary 修改回源HOST。
|
@@ -828,15 +1049,18 @@ var CdnClient = /** @class */ (function () {
|
|
828
1049
|
* @param {*} [options] Override http request option.
|
829
1050
|
* @throws {RequiredError}
|
830
1051
|
*/
|
831
|
-
|
832
|
-
|
833
|
-
|
1052
|
+
public updateOriginHost(updateOriginHostRequest?: UpdateOriginHostRequest): Promise<UpdateOriginHostResponse> {
|
1053
|
+
const options = ParamCreater().updateOriginHost(updateOriginHostRequest);
|
1054
|
+
|
1055
|
+
// @ts-ignore
|
834
1056
|
options['responseHeaders'] = [''];
|
1057
|
+
|
835
1058
|
return this.hcClient.sendRequest(options);
|
836
|
-
}
|
1059
|
+
}
|
1060
|
+
|
837
1061
|
/**
|
838
1062
|
* 修改私有桶开启关闭状态。
|
839
|
-
*
|
1063
|
+
*
|
840
1064
|
* Please refer to HUAWEI cloud API Explorer for details.
|
841
1065
|
*
|
842
1066
|
* @summary 修改私有桶开启关闭状态
|
@@ -846,17 +1070,20 @@ var CdnClient = /** @class */ (function () {
|
|
846
1070
|
* @param {*} [options] Override http request option.
|
847
1071
|
* @throws {RequiredError}
|
848
1072
|
*/
|
849
|
-
|
850
|
-
|
851
|
-
|
1073
|
+
public updatePrivateBucketAccess(updatePrivateBucketAccessRequest?: UpdatePrivateBucketAccessRequest): Promise<UpdatePrivateBucketAccessResponse> {
|
1074
|
+
const options = ParamCreater().updatePrivateBucketAccess(updatePrivateBucketAccessRequest);
|
1075
|
+
|
1076
|
+
// @ts-ignore
|
852
1077
|
options['responseHeaders'] = [''];
|
1078
|
+
|
853
1079
|
return this.hcClient.sendRequest(options);
|
854
|
-
}
|
1080
|
+
}
|
1081
|
+
|
855
1082
|
/**
|
856
1083
|
* Range回源是指源站在收到CDN节点回源请求时,根据http请求头中的Range信息返回指定范围的数据给CDN节点。
|
857
|
-
*
|
1084
|
+
*
|
858
1085
|
* 开启Range回源前需要确认源站是否支持Range请求,若源站不支持Range请求,开启Range回源将导致资源无法缓存。
|
859
|
-
*
|
1086
|
+
*
|
860
1087
|
* Please refer to HUAWEI cloud API Explorer for details.
|
861
1088
|
*
|
862
1089
|
* @summary 开启/关闭Range回源
|
@@ -866,33 +1093,39 @@ var CdnClient = /** @class */ (function () {
|
|
866
1093
|
* @param {*} [options] Override http request option.
|
867
1094
|
* @throws {RequiredError}
|
868
1095
|
*/
|
869
|
-
|
870
|
-
|
871
|
-
|
1096
|
+
public updateRangeSwitch(updateRangeSwitchRequest?: UpdateRangeSwitchRequest): Promise<UpdateRangeSwitchResponse> {
|
1097
|
+
const options = ParamCreater().updateRangeSwitch(updateRangeSwitchRequest);
|
1098
|
+
|
1099
|
+
// @ts-ignore
|
872
1100
|
options['responseHeaders'] = [''];
|
1101
|
+
|
873
1102
|
return this.hcClient.sendRequest(options);
|
874
|
-
}
|
1103
|
+
}
|
1104
|
+
|
875
1105
|
/**
|
876
1106
|
* 设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。
|
877
|
-
*
|
1107
|
+
*
|
878
1108
|
* Please refer to HUAWEI cloud API Explorer for details.
|
879
1109
|
*
|
880
1110
|
* @summary 设置Referer过滤规则
|
881
1111
|
* @param {string} domainId 加速域名ID。
|
882
|
-
* @param {RefererBody} refer
|
1112
|
+
* @param {RefererBody} refer
|
883
1113
|
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
884
1114
|
* @param {*} [options] Override http request option.
|
885
1115
|
* @throws {RequiredError}
|
886
1116
|
*/
|
887
|
-
|
888
|
-
|
889
|
-
|
1117
|
+
public updateRefer(updateReferRequest?: UpdateReferRequest): Promise<UpdateReferResponse> {
|
1118
|
+
const options = ParamCreater().updateRefer(updateReferRequest);
|
1119
|
+
|
1120
|
+
// @ts-ignore
|
890
1121
|
options['responseHeaders'] = [''];
|
1122
|
+
|
891
1123
|
return this.hcClient.sendRequest(options);
|
892
|
-
}
|
1124
|
+
}
|
1125
|
+
|
893
1126
|
/**
|
894
1127
|
* 新增/修改域名响应头配置。
|
895
|
-
*
|
1128
|
+
*
|
896
1129
|
* Please refer to HUAWEI cloud API Explorer for details.
|
897
1130
|
*
|
898
1131
|
* @summary 新增/修改响应头配置
|
@@ -902,24 +1135,26 @@ var CdnClient = /** @class */ (function () {
|
|
902
1135
|
* @param {*} [options] Override http request option.
|
903
1136
|
* @throws {RequiredError}
|
904
1137
|
*/
|
905
|
-
|
906
|
-
|
907
|
-
|
1138
|
+
public updateResponseHeader(updateResponseHeaderRequest?: UpdateResponseHeaderRequest): Promise<UpdateResponseHeaderResponse> {
|
1139
|
+
const options = ParamCreater().updateResponseHeader(updateResponseHeaderRequest);
|
1140
|
+
|
1141
|
+
// @ts-ignore
|
908
1142
|
options['responseHeaders'] = [''];
|
1143
|
+
|
909
1144
|
return this.hcClient.sendRequest(options);
|
910
|
-
}
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
var ParamCreater = function () {
|
1145
|
+
}
|
1146
|
+
}
|
1147
|
+
|
1148
|
+
export const ParamCreater = function () {
|
915
1149
|
return {
|
1150
|
+
|
916
1151
|
/**
|
917
1152
|
* 用于删除资源标签。
|
918
|
-
*
|
1153
|
+
*
|
919
1154
|
* Please refer to HUAWEI cloud API Explorer for details.
|
920
1155
|
*/
|
921
|
-
batchDeleteTags
|
922
|
-
|
1156
|
+
batchDeleteTags(batchDeleteTagsRequest?: BatchDeleteTagsRequest) {
|
1157
|
+
const options = {
|
923
1158
|
method: "POST",
|
924
1159
|
url: "/v1.0/cdn/configuration/tags/batch-delete",
|
925
1160
|
contentType: "application/json",
|
@@ -928,31 +1163,36 @@ var ParamCreater = function () {
|
|
928
1163
|
headers: {},
|
929
1164
|
data: {}
|
930
1165
|
};
|
931
|
-
|
932
|
-
|
1166
|
+
const localVarHeaderParameter = {} as any;
|
1167
|
+
|
1168
|
+
let body: any;
|
1169
|
+
|
933
1170
|
if (batchDeleteTagsRequest !== null && batchDeleteTagsRequest !== undefined) {
|
934
|
-
if (batchDeleteTagsRequest instanceof
|
935
|
-
body = batchDeleteTagsRequest.body
|
936
|
-
}
|
937
|
-
else {
|
1171
|
+
if (batchDeleteTagsRequest instanceof BatchDeleteTagsRequest) {
|
1172
|
+
body = batchDeleteTagsRequest.body
|
1173
|
+
} else {
|
938
1174
|
body = batchDeleteTagsRequest['body'];
|
939
1175
|
}
|
940
1176
|
}
|
1177
|
+
|
1178
|
+
|
941
1179
|
if (body === null || body === undefined) {
|
942
|
-
throw new RequiredError('body',
|
1180
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
943
1181
|
}
|
944
1182
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1183
|
+
|
945
1184
|
options.data = body !== undefined ? body : {};
|
946
1185
|
options.headers = localVarHeaderParameter;
|
947
1186
|
return options;
|
948
1187
|
},
|
1188
|
+
|
949
1189
|
/**
|
950
1190
|
* 创建加速域名。
|
951
|
-
*
|
1191
|
+
*
|
952
1192
|
* Please refer to HUAWEI cloud API Explorer for details.
|
953
1193
|
*/
|
954
|
-
createDomain
|
955
|
-
|
1194
|
+
createDomain(createDomainRequest?: CreateDomainRequest) {
|
1195
|
+
const options = {
|
956
1196
|
method: "POST",
|
957
1197
|
url: "/v1.0/cdn/domains",
|
958
1198
|
contentType: "application/json",
|
@@ -961,31 +1201,36 @@ var ParamCreater = function () {
|
|
961
1201
|
headers: {},
|
962
1202
|
data: {}
|
963
1203
|
};
|
964
|
-
|
965
|
-
|
1204
|
+
const localVarHeaderParameter = {} as any;
|
1205
|
+
|
1206
|
+
let body: any;
|
1207
|
+
|
966
1208
|
if (createDomainRequest !== null && createDomainRequest !== undefined) {
|
967
|
-
if (createDomainRequest instanceof
|
968
|
-
body = createDomainRequest.body
|
969
|
-
}
|
970
|
-
else {
|
1209
|
+
if (createDomainRequest instanceof CreateDomainRequest) {
|
1210
|
+
body = createDomainRequest.body
|
1211
|
+
} else {
|
971
1212
|
body = createDomainRequest['body'];
|
972
1213
|
}
|
973
1214
|
}
|
1215
|
+
|
1216
|
+
|
974
1217
|
if (body === null || body === undefined) {
|
975
|
-
throw new RequiredError('body',
|
1218
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
976
1219
|
}
|
977
1220
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1221
|
+
|
978
1222
|
options.data = body !== undefined ? body : {};
|
979
1223
|
options.headers = localVarHeaderParameter;
|
980
1224
|
return options;
|
981
1225
|
},
|
1226
|
+
|
982
1227
|
/**
|
983
1228
|
* 创建预热任务。
|
984
|
-
*
|
1229
|
+
*
|
985
1230
|
* Please refer to HUAWEI cloud API Explorer for details.
|
986
1231
|
*/
|
987
|
-
createPreheatingTasks
|
988
|
-
|
1232
|
+
createPreheatingTasks(createPreheatingTasksRequest?: CreatePreheatingTasksRequest) {
|
1233
|
+
const options = {
|
989
1234
|
method: "POST",
|
990
1235
|
url: "/v1.0/cdn/content/preheating-tasks",
|
991
1236
|
contentType: "application/json",
|
@@ -994,39 +1239,44 @@ var ParamCreater = function () {
|
|
994
1239
|
headers: {},
|
995
1240
|
data: {}
|
996
1241
|
};
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1242
|
+
const localVarHeaderParameter = {} as any;
|
1243
|
+
const localVarQueryParameter = {} as any;
|
1244
|
+
let body: any;
|
1245
|
+
|
1246
|
+
let enterpriseProjectId;
|
1247
|
+
|
1001
1248
|
if (createPreheatingTasksRequest !== null && createPreheatingTasksRequest !== undefined) {
|
1002
|
-
if (createPreheatingTasksRequest instanceof
|
1003
|
-
body = createPreheatingTasksRequest.body
|
1249
|
+
if (createPreheatingTasksRequest instanceof CreatePreheatingTasksRequest) {
|
1250
|
+
body = createPreheatingTasksRequest.body
|
1004
1251
|
enterpriseProjectId = createPreheatingTasksRequest.enterpriseProjectId;
|
1005
|
-
}
|
1006
|
-
else {
|
1252
|
+
} else {
|
1007
1253
|
body = createPreheatingTasksRequest['body'];
|
1008
1254
|
enterpriseProjectId = createPreheatingTasksRequest['enterprise_project_id'];
|
1009
1255
|
}
|
1010
1256
|
}
|
1257
|
+
|
1258
|
+
|
1011
1259
|
if (body === null || body === undefined) {
|
1012
|
-
throw new RequiredError('body',
|
1260
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1013
1261
|
}
|
1014
1262
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1015
1263
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1016
1264
|
}
|
1017
1265
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1266
|
+
|
1018
1267
|
options.data = body !== undefined ? body : {};
|
1019
1268
|
options.queryParams = localVarQueryParameter;
|
1020
1269
|
options.headers = localVarHeaderParameter;
|
1021
1270
|
return options;
|
1022
1271
|
},
|
1272
|
+
|
1023
1273
|
/**
|
1024
1274
|
* 创建刷新缓存任务。
|
1025
|
-
*
|
1275
|
+
*
|
1026
1276
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1027
1277
|
*/
|
1028
|
-
createRefreshTasks
|
1029
|
-
|
1278
|
+
createRefreshTasks(createRefreshTasksRequest?: CreateRefreshTasksRequest) {
|
1279
|
+
const options = {
|
1030
1280
|
method: "POST",
|
1031
1281
|
url: "/v1.0/cdn/content/refresh-tasks",
|
1032
1282
|
contentType: "application/json",
|
@@ -1035,39 +1285,44 @@ var ParamCreater = function () {
|
|
1035
1285
|
headers: {},
|
1036
1286
|
data: {}
|
1037
1287
|
};
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1288
|
+
const localVarHeaderParameter = {} as any;
|
1289
|
+
const localVarQueryParameter = {} as any;
|
1290
|
+
let body: any;
|
1291
|
+
|
1292
|
+
let enterpriseProjectId;
|
1293
|
+
|
1042
1294
|
if (createRefreshTasksRequest !== null && createRefreshTasksRequest !== undefined) {
|
1043
|
-
if (createRefreshTasksRequest instanceof
|
1044
|
-
body = createRefreshTasksRequest.body
|
1295
|
+
if (createRefreshTasksRequest instanceof CreateRefreshTasksRequest) {
|
1296
|
+
body = createRefreshTasksRequest.body
|
1045
1297
|
enterpriseProjectId = createRefreshTasksRequest.enterpriseProjectId;
|
1046
|
-
}
|
1047
|
-
else {
|
1298
|
+
} else {
|
1048
1299
|
body = createRefreshTasksRequest['body'];
|
1049
1300
|
enterpriseProjectId = createRefreshTasksRequest['enterprise_project_id'];
|
1050
1301
|
}
|
1051
1302
|
}
|
1303
|
+
|
1304
|
+
|
1052
1305
|
if (body === null || body === undefined) {
|
1053
|
-
throw new RequiredError('body',
|
1306
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1054
1307
|
}
|
1055
1308
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1056
1309
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1057
1310
|
}
|
1058
1311
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1312
|
+
|
1059
1313
|
options.data = body !== undefined ? body : {};
|
1060
1314
|
options.queryParams = localVarQueryParameter;
|
1061
1315
|
options.headers = localVarHeaderParameter;
|
1062
1316
|
return options;
|
1063
1317
|
},
|
1318
|
+
|
1064
1319
|
/**
|
1065
1320
|
* 用于创建资源标签。
|
1066
|
-
*
|
1321
|
+
*
|
1067
1322
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1068
1323
|
*/
|
1069
|
-
createTags
|
1070
|
-
|
1324
|
+
createTags(createTagsRequest?: CreateTagsRequest) {
|
1325
|
+
const options = {
|
1071
1326
|
method: "POST",
|
1072
1327
|
url: "/v1.0/cdn/configuration/tags",
|
1073
1328
|
contentType: "application/json",
|
@@ -1076,31 +1331,36 @@ var ParamCreater = function () {
|
|
1076
1331
|
headers: {},
|
1077
1332
|
data: {}
|
1078
1333
|
};
|
1079
|
-
|
1080
|
-
|
1334
|
+
const localVarHeaderParameter = {} as any;
|
1335
|
+
|
1336
|
+
let body: any;
|
1337
|
+
|
1081
1338
|
if (createTagsRequest !== null && createTagsRequest !== undefined) {
|
1082
|
-
if (createTagsRequest instanceof
|
1083
|
-
body = createTagsRequest.body
|
1084
|
-
}
|
1085
|
-
else {
|
1339
|
+
if (createTagsRequest instanceof CreateTagsRequest) {
|
1340
|
+
body = createTagsRequest.body
|
1341
|
+
} else {
|
1086
1342
|
body = createTagsRequest['body'];
|
1087
1343
|
}
|
1088
1344
|
}
|
1345
|
+
|
1346
|
+
|
1089
1347
|
if (body === null || body === undefined) {
|
1090
|
-
throw new RequiredError('body',
|
1348
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
1091
1349
|
}
|
1092
1350
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1351
|
+
|
1093
1352
|
options.data = body !== undefined ? body : {};
|
1094
1353
|
options.headers = localVarHeaderParameter;
|
1095
1354
|
return options;
|
1096
1355
|
},
|
1356
|
+
|
1097
1357
|
/**
|
1098
1358
|
* 删除加速域名。
|
1099
|
-
*
|
1359
|
+
*
|
1100
1360
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1101
1361
|
*/
|
1102
|
-
deleteDomain
|
1103
|
-
|
1362
|
+
deleteDomain(deleteDomainRequest?: DeleteDomainRequest) {
|
1363
|
+
const options = {
|
1104
1364
|
method: "DELETE",
|
1105
1365
|
url: "/v1.0/cdn/domains/{domain_id}",
|
1106
1366
|
contentType: "application/json",
|
@@ -1108,38 +1368,44 @@ var ParamCreater = function () {
|
|
1108
1368
|
pathParams: {},
|
1109
1369
|
headers: {}
|
1110
1370
|
};
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1371
|
+
const localVarHeaderParameter = {} as any;
|
1372
|
+
const localVarQueryParameter = {} as any;
|
1373
|
+
|
1374
|
+
let domainId;
|
1375
|
+
|
1376
|
+
let enterpriseProjectId;
|
1377
|
+
|
1115
1378
|
if (deleteDomainRequest !== null && deleteDomainRequest !== undefined) {
|
1116
|
-
if (deleteDomainRequest instanceof
|
1379
|
+
if (deleteDomainRequest instanceof DeleteDomainRequest) {
|
1117
1380
|
domainId = deleteDomainRequest.domainId;
|
1118
1381
|
enterpriseProjectId = deleteDomainRequest.enterpriseProjectId;
|
1119
|
-
}
|
1120
|
-
else {
|
1382
|
+
} else {
|
1121
1383
|
domainId = deleteDomainRequest['domain_id'];
|
1122
1384
|
enterpriseProjectId = deleteDomainRequest['enterprise_project_id'];
|
1123
1385
|
}
|
1124
1386
|
}
|
1387
|
+
|
1388
|
+
|
1125
1389
|
if (domainId === null || domainId === undefined) {
|
1126
|
-
|
1390
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling deleteDomain.');
|
1127
1391
|
}
|
1128
1392
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1129
1393
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1130
1394
|
}
|
1395
|
+
|
1131
1396
|
options.queryParams = localVarQueryParameter;
|
1132
1397
|
options.pathParams = { 'domain_id': domainId, };
|
1133
1398
|
options.headers = localVarHeaderParameter;
|
1134
1399
|
return options;
|
1135
1400
|
},
|
1401
|
+
|
1136
1402
|
/**
|
1137
1403
|
* 停用加速域名。
|
1138
|
-
*
|
1404
|
+
*
|
1139
1405
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1140
1406
|
*/
|
1141
|
-
disableDomain
|
1142
|
-
|
1407
|
+
disableDomain(disableDomainRequest?: DisableDomainRequest) {
|
1408
|
+
const options = {
|
1143
1409
|
method: "PUT",
|
1144
1410
|
url: "/v1.0/cdn/domains/{domain_id}/disable",
|
1145
1411
|
contentType: "application/json",
|
@@ -1147,38 +1413,44 @@ var ParamCreater = function () {
|
|
1147
1413
|
pathParams: {},
|
1148
1414
|
headers: {}
|
1149
1415
|
};
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1416
|
+
const localVarHeaderParameter = {} as any;
|
1417
|
+
const localVarQueryParameter = {} as any;
|
1418
|
+
|
1419
|
+
let domainId;
|
1420
|
+
|
1421
|
+
let enterpriseProjectId;
|
1422
|
+
|
1154
1423
|
if (disableDomainRequest !== null && disableDomainRequest !== undefined) {
|
1155
|
-
if (disableDomainRequest instanceof
|
1424
|
+
if (disableDomainRequest instanceof DisableDomainRequest) {
|
1156
1425
|
domainId = disableDomainRequest.domainId;
|
1157
1426
|
enterpriseProjectId = disableDomainRequest.enterpriseProjectId;
|
1158
|
-
}
|
1159
|
-
else {
|
1427
|
+
} else {
|
1160
1428
|
domainId = disableDomainRequest['domain_id'];
|
1161
1429
|
enterpriseProjectId = disableDomainRequest['enterprise_project_id'];
|
1162
1430
|
}
|
1163
1431
|
}
|
1432
|
+
|
1433
|
+
|
1164
1434
|
if (domainId === null || domainId === undefined) {
|
1165
|
-
|
1435
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling disableDomain.');
|
1166
1436
|
}
|
1167
1437
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1168
1438
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1169
1439
|
}
|
1440
|
+
|
1170
1441
|
options.queryParams = localVarQueryParameter;
|
1171
1442
|
options.pathParams = { 'domain_id': domainId, };
|
1172
1443
|
options.headers = localVarHeaderParameter;
|
1173
1444
|
return options;
|
1174
1445
|
},
|
1446
|
+
|
1175
1447
|
/**
|
1176
1448
|
* 启用加速域名。
|
1177
|
-
*
|
1449
|
+
*
|
1178
1450
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1179
1451
|
*/
|
1180
|
-
enableDomain
|
1181
|
-
|
1452
|
+
enableDomain(enableDomainRequest?: EnableDomainRequest) {
|
1453
|
+
const options = {
|
1182
1454
|
method: "PUT",
|
1183
1455
|
url: "/v1.0/cdn/domains/{domain_id}/enable",
|
1184
1456
|
contentType: "application/json",
|
@@ -1186,38 +1458,44 @@ var ParamCreater = function () {
|
|
1186
1458
|
pathParams: {},
|
1187
1459
|
headers: {}
|
1188
1460
|
};
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1461
|
+
const localVarHeaderParameter = {} as any;
|
1462
|
+
const localVarQueryParameter = {} as any;
|
1463
|
+
|
1464
|
+
let domainId;
|
1465
|
+
|
1466
|
+
let enterpriseProjectId;
|
1467
|
+
|
1193
1468
|
if (enableDomainRequest !== null && enableDomainRequest !== undefined) {
|
1194
|
-
if (enableDomainRequest instanceof
|
1469
|
+
if (enableDomainRequest instanceof EnableDomainRequest) {
|
1195
1470
|
domainId = enableDomainRequest.domainId;
|
1196
1471
|
enterpriseProjectId = enableDomainRequest.enterpriseProjectId;
|
1197
|
-
}
|
1198
|
-
else {
|
1472
|
+
} else {
|
1199
1473
|
domainId = enableDomainRequest['domain_id'];
|
1200
1474
|
enterpriseProjectId = enableDomainRequest['enterprise_project_id'];
|
1201
1475
|
}
|
1202
1476
|
}
|
1477
|
+
|
1478
|
+
|
1203
1479
|
if (domainId === null || domainId === undefined) {
|
1204
|
-
|
1480
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling enableDomain.');
|
1205
1481
|
}
|
1206
1482
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1207
1483
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1208
1484
|
}
|
1485
|
+
|
1209
1486
|
options.queryParams = localVarQueryParameter;
|
1210
1487
|
options.pathParams = { 'domain_id': domainId, };
|
1211
1488
|
options.headers = localVarHeaderParameter;
|
1212
1489
|
return options;
|
1213
1490
|
},
|
1491
|
+
|
1214
1492
|
/**
|
1215
1493
|
* 查询加速域名信息
|
1216
|
-
*
|
1494
|
+
*
|
1217
1495
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1218
1496
|
*/
|
1219
|
-
listDomains
|
1220
|
-
|
1497
|
+
listDomains(listDomainsRequest?: ListDomainsRequest) {
|
1498
|
+
const options = {
|
1221
1499
|
method: "GET",
|
1222
1500
|
url: "/v1.0/cdn/domains",
|
1223
1501
|
contentType: "application/json",
|
@@ -1225,19 +1503,29 @@ var ParamCreater = function () {
|
|
1225
1503
|
pathParams: {},
|
1226
1504
|
headers: {}
|
1227
1505
|
};
|
1228
|
-
|
1229
|
-
|
1230
|
-
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1506
|
+
const localVarHeaderParameter = {} as any;
|
1507
|
+
const localVarQueryParameter = {} as any;
|
1508
|
+
|
1509
|
+
let domainName;
|
1510
|
+
|
1511
|
+
let businessType;
|
1512
|
+
|
1513
|
+
let domainStatus;
|
1514
|
+
|
1515
|
+
let serviceArea;
|
1516
|
+
|
1517
|
+
let pageSize;
|
1518
|
+
|
1519
|
+
let pageNumber;
|
1520
|
+
|
1521
|
+
let showTags;
|
1522
|
+
|
1523
|
+
let exactMatch;
|
1524
|
+
|
1525
|
+
let enterpriseProjectId;
|
1526
|
+
|
1239
1527
|
if (listDomainsRequest !== null && listDomainsRequest !== undefined) {
|
1240
|
-
if (listDomainsRequest instanceof
|
1528
|
+
if (listDomainsRequest instanceof ListDomainsRequest) {
|
1241
1529
|
domainName = listDomainsRequest.domainName;
|
1242
1530
|
businessType = listDomainsRequest.businessType;
|
1243
1531
|
domainStatus = listDomainsRequest.domainStatus;
|
@@ -1247,8 +1535,7 @@ var ParamCreater = function () {
|
|
1247
1535
|
showTags = listDomainsRequest.showTags;
|
1248
1536
|
exactMatch = listDomainsRequest.exactMatch;
|
1249
1537
|
enterpriseProjectId = listDomainsRequest.enterpriseProjectId;
|
1250
|
-
}
|
1251
|
-
else {
|
1538
|
+
} else {
|
1252
1539
|
domainName = listDomainsRequest['domain_name'];
|
1253
1540
|
businessType = listDomainsRequest['business_type'];
|
1254
1541
|
domainStatus = listDomainsRequest['domain_status'];
|
@@ -1260,6 +1547,8 @@ var ParamCreater = function () {
|
|
1260
1547
|
enterpriseProjectId = listDomainsRequest['enterprise_project_id'];
|
1261
1548
|
}
|
1262
1549
|
}
|
1550
|
+
|
1551
|
+
|
1263
1552
|
if (domainName !== null && domainName !== undefined) {
|
1264
1553
|
localVarQueryParameter['domain_name'] = domainName;
|
1265
1554
|
}
|
@@ -1287,17 +1576,19 @@ var ParamCreater = function () {
|
|
1287
1576
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1288
1577
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1289
1578
|
}
|
1579
|
+
|
1290
1580
|
options.queryParams = localVarQueryParameter;
|
1291
1581
|
options.headers = localVarHeaderParameter;
|
1292
1582
|
return options;
|
1293
1583
|
},
|
1584
|
+
|
1294
1585
|
/**
|
1295
1586
|
* 查询域名已经设置的IP黑白名单。
|
1296
|
-
*
|
1587
|
+
*
|
1297
1588
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1298
1589
|
*/
|
1299
|
-
showBlackWhiteList
|
1300
|
-
|
1590
|
+
showBlackWhiteList(showBlackWhiteListRequest?: ShowBlackWhiteListRequest) {
|
1591
|
+
const options = {
|
1301
1592
|
method: "GET",
|
1302
1593
|
url: "/v1.0/cdn/domains/{domain_id}/ip-acl",
|
1303
1594
|
contentType: "application/json",
|
@@ -1305,38 +1596,44 @@ var ParamCreater = function () {
|
|
1305
1596
|
pathParams: {},
|
1306
1597
|
headers: {}
|
1307
1598
|
};
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1599
|
+
const localVarHeaderParameter = {} as any;
|
1600
|
+
const localVarQueryParameter = {} as any;
|
1601
|
+
|
1602
|
+
let domainId;
|
1603
|
+
|
1604
|
+
let enterpriseProjectId;
|
1605
|
+
|
1312
1606
|
if (showBlackWhiteListRequest !== null && showBlackWhiteListRequest !== undefined) {
|
1313
|
-
if (showBlackWhiteListRequest instanceof
|
1607
|
+
if (showBlackWhiteListRequest instanceof ShowBlackWhiteListRequest) {
|
1314
1608
|
domainId = showBlackWhiteListRequest.domainId;
|
1315
1609
|
enterpriseProjectId = showBlackWhiteListRequest.enterpriseProjectId;
|
1316
|
-
}
|
1317
|
-
else {
|
1610
|
+
} else {
|
1318
1611
|
domainId = showBlackWhiteListRequest['domain_id'];
|
1319
1612
|
enterpriseProjectId = showBlackWhiteListRequest['enterprise_project_id'];
|
1320
1613
|
}
|
1321
1614
|
}
|
1615
|
+
|
1616
|
+
|
1322
1617
|
if (domainId === null || domainId === undefined) {
|
1323
|
-
|
1618
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showBlackWhiteList.');
|
1324
1619
|
}
|
1325
1620
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1326
1621
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1327
1622
|
}
|
1623
|
+
|
1328
1624
|
options.queryParams = localVarQueryParameter;
|
1329
1625
|
options.pathParams = { 'domain_id': domainId, };
|
1330
1626
|
options.headers = localVarHeaderParameter;
|
1331
1627
|
return options;
|
1332
1628
|
},
|
1629
|
+
|
1333
1630
|
/**
|
1334
1631
|
* 查询缓存规则。
|
1335
|
-
*
|
1632
|
+
*
|
1336
1633
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1337
1634
|
*/
|
1338
|
-
showCacheRules
|
1339
|
-
|
1635
|
+
showCacheRules(showCacheRulesRequest?: ShowCacheRulesRequest) {
|
1636
|
+
const options = {
|
1340
1637
|
method: "GET",
|
1341
1638
|
url: "/v1.0/cdn/domains/{domain_id}/cache",
|
1342
1639
|
contentType: "application/json",
|
@@ -1344,38 +1641,44 @@ var ParamCreater = function () {
|
|
1344
1641
|
pathParams: {},
|
1345
1642
|
headers: {}
|
1346
1643
|
};
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
1350
|
-
|
1644
|
+
const localVarHeaderParameter = {} as any;
|
1645
|
+
const localVarQueryParameter = {} as any;
|
1646
|
+
|
1647
|
+
let domainId;
|
1648
|
+
|
1649
|
+
let enterpriseProjectId;
|
1650
|
+
|
1351
1651
|
if (showCacheRulesRequest !== null && showCacheRulesRequest !== undefined) {
|
1352
|
-
if (showCacheRulesRequest instanceof
|
1652
|
+
if (showCacheRulesRequest instanceof ShowCacheRulesRequest) {
|
1353
1653
|
domainId = showCacheRulesRequest.domainId;
|
1354
1654
|
enterpriseProjectId = showCacheRulesRequest.enterpriseProjectId;
|
1355
|
-
}
|
1356
|
-
else {
|
1655
|
+
} else {
|
1357
1656
|
domainId = showCacheRulesRequest['domain_id'];
|
1358
1657
|
enterpriseProjectId = showCacheRulesRequest['enterprise_project_id'];
|
1359
1658
|
}
|
1360
1659
|
}
|
1660
|
+
|
1661
|
+
|
1361
1662
|
if (domainId === null || domainId === undefined) {
|
1362
|
-
|
1663
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showCacheRules.');
|
1363
1664
|
}
|
1364
1665
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1365
1666
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1366
1667
|
}
|
1668
|
+
|
1367
1669
|
options.queryParams = localVarQueryParameter;
|
1368
1670
|
options.pathParams = { 'domain_id': domainId, };
|
1369
1671
|
options.headers = localVarHeaderParameter;
|
1370
1672
|
return options;
|
1371
1673
|
},
|
1674
|
+
|
1372
1675
|
/**
|
1373
1676
|
* 查询所有绑定HTTPS证书的域名信息
|
1374
|
-
*
|
1677
|
+
*
|
1375
1678
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1376
1679
|
*/
|
1377
|
-
showCertificatesHttpsInfo
|
1378
|
-
|
1680
|
+
showCertificatesHttpsInfo(showCertificatesHttpsInfoRequest?: ShowCertificatesHttpsInfoRequest) {
|
1681
|
+
const options = {
|
1379
1682
|
method: "GET",
|
1380
1683
|
url: "/v1.0/cdn/domains/https-certificate-info",
|
1381
1684
|
contentType: "application/json",
|
@@ -1383,22 +1686,27 @@ var ParamCreater = function () {
|
|
1383
1686
|
pathParams: {},
|
1384
1687
|
headers: {}
|
1385
1688
|
};
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1689
|
+
const localVarHeaderParameter = {} as any;
|
1690
|
+
const localVarQueryParameter = {} as any;
|
1691
|
+
|
1692
|
+
let pageSize;
|
1693
|
+
|
1694
|
+
let pageNumber;
|
1695
|
+
|
1696
|
+
let domainName;
|
1697
|
+
|
1698
|
+
let userDomainId;
|
1699
|
+
|
1700
|
+
let enterpriseProjectId;
|
1701
|
+
|
1393
1702
|
if (showCertificatesHttpsInfoRequest !== null && showCertificatesHttpsInfoRequest !== undefined) {
|
1394
|
-
if (showCertificatesHttpsInfoRequest instanceof
|
1703
|
+
if (showCertificatesHttpsInfoRequest instanceof ShowCertificatesHttpsInfoRequest) {
|
1395
1704
|
pageSize = showCertificatesHttpsInfoRequest.pageSize;
|
1396
1705
|
pageNumber = showCertificatesHttpsInfoRequest.pageNumber;
|
1397
1706
|
domainName = showCertificatesHttpsInfoRequest.domainName;
|
1398
1707
|
userDomainId = showCertificatesHttpsInfoRequest.userDomainId;
|
1399
1708
|
enterpriseProjectId = showCertificatesHttpsInfoRequest.enterpriseProjectId;
|
1400
|
-
}
|
1401
|
-
else {
|
1709
|
+
} else {
|
1402
1710
|
pageSize = showCertificatesHttpsInfoRequest['page_size'];
|
1403
1711
|
pageNumber = showCertificatesHttpsInfoRequest['page_number'];
|
1404
1712
|
domainName = showCertificatesHttpsInfoRequest['domain_name'];
|
@@ -1406,6 +1714,8 @@ var ParamCreater = function () {
|
|
1406
1714
|
enterpriseProjectId = showCertificatesHttpsInfoRequest['enterprise_project_id'];
|
1407
1715
|
}
|
1408
1716
|
}
|
1717
|
+
|
1718
|
+
|
1409
1719
|
if (pageSize !== null && pageSize !== undefined) {
|
1410
1720
|
localVarQueryParameter['page_size'] = pageSize;
|
1411
1721
|
}
|
@@ -1421,17 +1731,19 @@ var ParamCreater = function () {
|
|
1421
1731
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1422
1732
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1423
1733
|
}
|
1734
|
+
|
1424
1735
|
options.queryParams = localVarQueryParameter;
|
1425
1736
|
options.headers = localVarHeaderParameter;
|
1426
1737
|
return options;
|
1427
1738
|
},
|
1739
|
+
|
1428
1740
|
/**
|
1429
1741
|
* 查询加速域名详情。
|
1430
|
-
*
|
1742
|
+
*
|
1431
1743
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1432
1744
|
*/
|
1433
|
-
showDomainDetail
|
1434
|
-
|
1745
|
+
showDomainDetail(showDomainDetailRequest?: ShowDomainDetailRequest) {
|
1746
|
+
const options = {
|
1435
1747
|
method: "GET",
|
1436
1748
|
url: "/v1.0/cdn/domains/{domain_id}/detail",
|
1437
1749
|
contentType: "application/json",
|
@@ -1439,39 +1751,45 @@ var ParamCreater = function () {
|
|
1439
1751
|
pathParams: {},
|
1440
1752
|
headers: {}
|
1441
1753
|
};
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1754
|
+
const localVarHeaderParameter = {} as any;
|
1755
|
+
const localVarQueryParameter = {} as any;
|
1756
|
+
|
1757
|
+
let domainId;
|
1758
|
+
|
1759
|
+
let enterpriseProjectId;
|
1760
|
+
|
1446
1761
|
if (showDomainDetailRequest !== null && showDomainDetailRequest !== undefined) {
|
1447
|
-
if (showDomainDetailRequest instanceof
|
1762
|
+
if (showDomainDetailRequest instanceof ShowDomainDetailRequest) {
|
1448
1763
|
domainId = showDomainDetailRequest.domainId;
|
1449
1764
|
enterpriseProjectId = showDomainDetailRequest.enterpriseProjectId;
|
1450
|
-
}
|
1451
|
-
else {
|
1765
|
+
} else {
|
1452
1766
|
domainId = showDomainDetailRequest['domain_id'];
|
1453
1767
|
enterpriseProjectId = showDomainDetailRequest['enterprise_project_id'];
|
1454
1768
|
}
|
1455
1769
|
}
|
1770
|
+
|
1771
|
+
|
1456
1772
|
if (domainId === null || domainId === undefined) {
|
1457
|
-
|
1773
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showDomainDetail.');
|
1458
1774
|
}
|
1459
1775
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1460
1776
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1461
1777
|
}
|
1778
|
+
|
1462
1779
|
options.queryParams = localVarQueryParameter;
|
1463
1780
|
options.pathParams = { 'domain_id': domainId, };
|
1464
1781
|
options.headers = localVarHeaderParameter;
|
1465
1782
|
return options;
|
1466
1783
|
},
|
1784
|
+
|
1467
1785
|
/**
|
1468
1786
|
* 查询域名配置接口,
|
1469
1787
|
* 支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
1470
|
-
*
|
1788
|
+
*
|
1471
1789
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1472
1790
|
*/
|
1473
|
-
showDomainFullConfig
|
1474
|
-
|
1791
|
+
showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest) {
|
1792
|
+
const options = {
|
1475
1793
|
method: "GET",
|
1476
1794
|
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
1477
1795
|
contentType: "application/json",
|
@@ -1479,31 +1797,37 @@ var ParamCreater = function () {
|
|
1479
1797
|
pathParams: {},
|
1480
1798
|
headers: {}
|
1481
1799
|
};
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1800
|
+
const localVarHeaderParameter = {} as any;
|
1801
|
+
const localVarQueryParameter = {} as any;
|
1802
|
+
|
1803
|
+
let domainName;
|
1804
|
+
|
1805
|
+
let enterpriseProjectId;
|
1806
|
+
|
1486
1807
|
if (showDomainFullConfigRequest !== null && showDomainFullConfigRequest !== undefined) {
|
1487
|
-
if (showDomainFullConfigRequest instanceof
|
1808
|
+
if (showDomainFullConfigRequest instanceof ShowDomainFullConfigRequest) {
|
1488
1809
|
domainName = showDomainFullConfigRequest.domainName;
|
1489
1810
|
enterpriseProjectId = showDomainFullConfigRequest.enterpriseProjectId;
|
1490
|
-
}
|
1491
|
-
else {
|
1811
|
+
} else {
|
1492
1812
|
domainName = showDomainFullConfigRequest['domain_name'];
|
1493
1813
|
enterpriseProjectId = showDomainFullConfigRequest['enterprise_project_id'];
|
1494
1814
|
}
|
1495
1815
|
}
|
1816
|
+
|
1817
|
+
|
1496
1818
|
if (domainName === null || domainName === undefined) {
|
1497
|
-
|
1819
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainFullConfig.');
|
1498
1820
|
}
|
1499
1821
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1500
1822
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1501
1823
|
}
|
1824
|
+
|
1502
1825
|
options.queryParams = localVarQueryParameter;
|
1503
1826
|
options.pathParams = { 'domain_name': domainName, };
|
1504
1827
|
options.headers = localVarHeaderParameter;
|
1505
1828
|
return options;
|
1506
1829
|
},
|
1830
|
+
|
1507
1831
|
/**
|
1508
1832
|
* - 支持查询90天内的数据。
|
1509
1833
|
* - 查询跨度不能超过7天。
|
@@ -1514,11 +1838,11 @@ var ParamCreater = function () {
|
|
1514
1838
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1515
1839
|
* - 如果传的是多个域名,则每个域名的数据分开返回。
|
1516
1840
|
* - 支持同时查询多个指标,不超过10个。
|
1517
|
-
*
|
1841
|
+
*
|
1518
1842
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1519
1843
|
*/
|
1520
|
-
showDomainItemDetails
|
1521
|
-
|
1844
|
+
showDomainItemDetails(showDomainItemDetailsRequest?: ShowDomainItemDetailsRequest) {
|
1845
|
+
const options = {
|
1522
1846
|
method: "GET",
|
1523
1847
|
url: "/v1.0/cdn/statistics/domain-item-details",
|
1524
1848
|
contentType: "application/json",
|
@@ -1526,24 +1850,30 @@ var ParamCreater = function () {
|
|
1526
1850
|
pathParams: {},
|
1527
1851
|
headers: {}
|
1528
1852
|
};
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1853
|
+
const localVarHeaderParameter = {} as any;
|
1854
|
+
const localVarQueryParameter = {} as any;
|
1855
|
+
|
1856
|
+
let startTime;
|
1857
|
+
|
1858
|
+
let endTime;
|
1859
|
+
|
1860
|
+
let domainName;
|
1861
|
+
|
1862
|
+
let statType;
|
1863
|
+
|
1864
|
+
let enterpriseProjectId;
|
1865
|
+
|
1866
|
+
let serviceArea;
|
1867
|
+
|
1537
1868
|
if (showDomainItemDetailsRequest !== null && showDomainItemDetailsRequest !== undefined) {
|
1538
|
-
if (showDomainItemDetailsRequest instanceof
|
1869
|
+
if (showDomainItemDetailsRequest instanceof ShowDomainItemDetailsRequest) {
|
1539
1870
|
startTime = showDomainItemDetailsRequest.startTime;
|
1540
1871
|
endTime = showDomainItemDetailsRequest.endTime;
|
1541
1872
|
domainName = showDomainItemDetailsRequest.domainName;
|
1542
1873
|
statType = showDomainItemDetailsRequest.statType;
|
1543
1874
|
enterpriseProjectId = showDomainItemDetailsRequest.enterpriseProjectId;
|
1544
1875
|
serviceArea = showDomainItemDetailsRequest.serviceArea;
|
1545
|
-
}
|
1546
|
-
else {
|
1876
|
+
} else {
|
1547
1877
|
startTime = showDomainItemDetailsRequest['start_time'];
|
1548
1878
|
endTime = showDomainItemDetailsRequest['end_time'];
|
1549
1879
|
domainName = showDomainItemDetailsRequest['domain_name'];
|
@@ -1552,26 +1882,28 @@ var ParamCreater = function () {
|
|
1552
1882
|
serviceArea = showDomainItemDetailsRequest['service_area'];
|
1553
1883
|
}
|
1554
1884
|
}
|
1885
|
+
|
1886
|
+
|
1555
1887
|
if (startTime === null || startTime === undefined) {
|
1556
|
-
throw new RequiredError('startTime',
|
1888
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainItemDetails.');
|
1557
1889
|
}
|
1558
1890
|
if (startTime !== null && startTime !== undefined) {
|
1559
1891
|
localVarQueryParameter['start_time'] = startTime;
|
1560
1892
|
}
|
1561
1893
|
if (endTime === null || endTime === undefined) {
|
1562
|
-
throw new RequiredError('endTime',
|
1894
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainItemDetails.');
|
1563
1895
|
}
|
1564
1896
|
if (endTime !== null && endTime !== undefined) {
|
1565
1897
|
localVarQueryParameter['end_time'] = endTime;
|
1566
1898
|
}
|
1567
1899
|
if (domainName === null || domainName === undefined) {
|
1568
|
-
throw new RequiredError('domainName',
|
1900
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainItemDetails.');
|
1569
1901
|
}
|
1570
1902
|
if (domainName !== null && domainName !== undefined) {
|
1571
1903
|
localVarQueryParameter['domain_name'] = domainName;
|
1572
1904
|
}
|
1573
1905
|
if (statType === null || statType === undefined) {
|
1574
|
-
throw new RequiredError('statType',
|
1906
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainItemDetails.');
|
1575
1907
|
}
|
1576
1908
|
if (statType !== null && statType !== undefined) {
|
1577
1909
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -1582,10 +1914,12 @@ var ParamCreater = function () {
|
|
1582
1914
|
if (serviceArea !== null && serviceArea !== undefined) {
|
1583
1915
|
localVarQueryParameter['service_area'] = serviceArea;
|
1584
1916
|
}
|
1917
|
+
|
1585
1918
|
options.queryParams = localVarQueryParameter;
|
1586
1919
|
options.headers = localVarHeaderParameter;
|
1587
1920
|
return options;
|
1588
1921
|
},
|
1922
|
+
|
1589
1923
|
/**
|
1590
1924
|
* - 支持查询90天内的数据。
|
1591
1925
|
* - 查询跨度是7天。
|
@@ -1599,11 +1933,11 @@ var ParamCreater = function () {
|
|
1599
1933
|
* - 支持按区域、运营商维度查询统计数据, 回源指标除外。
|
1600
1934
|
* - 支持同时查询多个指标,不超过10个。
|
1601
1935
|
* - 域名为海外加速场景不适用。
|
1602
|
-
*
|
1936
|
+
*
|
1603
1937
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1604
1938
|
*/
|
1605
|
-
showDomainItemLocationDetails
|
1606
|
-
|
1939
|
+
showDomainItemLocationDetails(showDomainItemLocationDetailsRequest?: ShowDomainItemLocationDetailsRequest) {
|
1940
|
+
const options = {
|
1607
1941
|
method: "GET",
|
1608
1942
|
url: "/v1.0/cdn/statistics/domain-item-location-details",
|
1609
1943
|
contentType: "application/json",
|
@@ -1611,17 +1945,25 @@ var ParamCreater = function () {
|
|
1611
1945
|
pathParams: {},
|
1612
1946
|
headers: {}
|
1613
1947
|
};
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
|
1948
|
+
const localVarHeaderParameter = {} as any;
|
1949
|
+
const localVarQueryParameter = {} as any;
|
1950
|
+
|
1951
|
+
let startTime;
|
1952
|
+
|
1953
|
+
let endTime;
|
1954
|
+
|
1955
|
+
let domainName;
|
1956
|
+
|
1957
|
+
let statType;
|
1958
|
+
|
1959
|
+
let region;
|
1960
|
+
|
1961
|
+
let isp;
|
1962
|
+
|
1963
|
+
let enterpriseProjectId;
|
1964
|
+
|
1623
1965
|
if (showDomainItemLocationDetailsRequest !== null && showDomainItemLocationDetailsRequest !== undefined) {
|
1624
|
-
if (showDomainItemLocationDetailsRequest instanceof
|
1966
|
+
if (showDomainItemLocationDetailsRequest instanceof ShowDomainItemLocationDetailsRequest) {
|
1625
1967
|
startTime = showDomainItemLocationDetailsRequest.startTime;
|
1626
1968
|
endTime = showDomainItemLocationDetailsRequest.endTime;
|
1627
1969
|
domainName = showDomainItemLocationDetailsRequest.domainName;
|
@@ -1629,8 +1971,7 @@ var ParamCreater = function () {
|
|
1629
1971
|
region = showDomainItemLocationDetailsRequest.region;
|
1630
1972
|
isp = showDomainItemLocationDetailsRequest.isp;
|
1631
1973
|
enterpriseProjectId = showDomainItemLocationDetailsRequest.enterpriseProjectId;
|
1632
|
-
}
|
1633
|
-
else {
|
1974
|
+
} else {
|
1634
1975
|
startTime = showDomainItemLocationDetailsRequest['start_time'];
|
1635
1976
|
endTime = showDomainItemLocationDetailsRequest['end_time'];
|
1636
1977
|
domainName = showDomainItemLocationDetailsRequest['domain_name'];
|
@@ -1640,38 +1981,40 @@ var ParamCreater = function () {
|
|
1640
1981
|
enterpriseProjectId = showDomainItemLocationDetailsRequest['enterprise_project_id'];
|
1641
1982
|
}
|
1642
1983
|
}
|
1984
|
+
|
1985
|
+
|
1643
1986
|
if (startTime === null || startTime === undefined) {
|
1644
|
-
throw new RequiredError('startTime',
|
1987
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainItemLocationDetails.');
|
1645
1988
|
}
|
1646
1989
|
if (startTime !== null && startTime !== undefined) {
|
1647
1990
|
localVarQueryParameter['start_time'] = startTime;
|
1648
1991
|
}
|
1649
1992
|
if (endTime === null || endTime === undefined) {
|
1650
|
-
throw new RequiredError('endTime',
|
1993
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainItemLocationDetails.');
|
1651
1994
|
}
|
1652
1995
|
if (endTime !== null && endTime !== undefined) {
|
1653
1996
|
localVarQueryParameter['end_time'] = endTime;
|
1654
1997
|
}
|
1655
1998
|
if (domainName === null || domainName === undefined) {
|
1656
|
-
throw new RequiredError('domainName',
|
1999
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainItemLocationDetails.');
|
1657
2000
|
}
|
1658
2001
|
if (domainName !== null && domainName !== undefined) {
|
1659
2002
|
localVarQueryParameter['domain_name'] = domainName;
|
1660
2003
|
}
|
1661
2004
|
if (statType === null || statType === undefined) {
|
1662
|
-
throw new RequiredError('statType',
|
2005
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainItemLocationDetails.');
|
1663
2006
|
}
|
1664
2007
|
if (statType !== null && statType !== undefined) {
|
1665
2008
|
localVarQueryParameter['stat_type'] = statType;
|
1666
2009
|
}
|
1667
2010
|
if (region === null || region === undefined) {
|
1668
|
-
throw new RequiredError('region',
|
2011
|
+
throw new RequiredError('region','Required parameter region was null or undefined when calling showDomainItemLocationDetails.');
|
1669
2012
|
}
|
1670
2013
|
if (region !== null && region !== undefined) {
|
1671
2014
|
localVarQueryParameter['region'] = region;
|
1672
2015
|
}
|
1673
2016
|
if (isp === null || isp === undefined) {
|
1674
|
-
throw new RequiredError('isp',
|
2017
|
+
throw new RequiredError('isp','Required parameter isp was null or undefined when calling showDomainItemLocationDetails.');
|
1675
2018
|
}
|
1676
2019
|
if (isp !== null && isp !== undefined) {
|
1677
2020
|
localVarQueryParameter['isp'] = isp;
|
@@ -1679,29 +2022,31 @@ var ParamCreater = function () {
|
|
1679
2022
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1680
2023
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1681
2024
|
}
|
2025
|
+
|
1682
2026
|
options.queryParams = localVarQueryParameter;
|
1683
2027
|
options.headers = localVarHeaderParameter;
|
1684
2028
|
return options;
|
1685
2029
|
},
|
2030
|
+
|
1686
2031
|
/**
|
1687
2032
|
* - 支持查询90天内的数据。
|
1688
|
-
*
|
2033
|
+
*
|
1689
2034
|
* - 支持多指标同时查询,不超过5个。
|
1690
|
-
*
|
2035
|
+
*
|
1691
2036
|
* - 最多同时指定20个域名。
|
1692
|
-
*
|
2037
|
+
*
|
1693
2038
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1694
|
-
*
|
2039
|
+
*
|
1695
2040
|
* - action取值:location_detail,location_summary
|
1696
|
-
*
|
2041
|
+
*
|
1697
2042
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
|
1698
|
-
*
|
2043
|
+
*
|
1699
2044
|
* - 单租户调用频率:15次/s。
|
1700
|
-
*
|
2045
|
+
*
|
1701
2046
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1702
2047
|
*/
|
1703
|
-
showDomainLocationStats
|
1704
|
-
|
2048
|
+
showDomainLocationStats(showDomainLocationStatsRequest?: ShowDomainLocationStatsRequest) {
|
2049
|
+
const options = {
|
1705
2050
|
method: "GET",
|
1706
2051
|
url: "/v1.0/cdn/statistics/domain-location-stats",
|
1707
2052
|
contentType: "application/json",
|
@@ -1709,21 +2054,33 @@ var ParamCreater = function () {
|
|
1709
2054
|
pathParams: {},
|
1710
2055
|
headers: {}
|
1711
2056
|
};
|
1712
|
-
|
1713
|
-
|
1714
|
-
|
1715
|
-
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
|
1723
|
-
|
1724
|
-
|
2057
|
+
const localVarHeaderParameter = {} as any;
|
2058
|
+
const localVarQueryParameter = {} as any;
|
2059
|
+
|
2060
|
+
let action;
|
2061
|
+
|
2062
|
+
let startTime;
|
2063
|
+
|
2064
|
+
let endTime;
|
2065
|
+
|
2066
|
+
let domainName;
|
2067
|
+
|
2068
|
+
let statType;
|
2069
|
+
|
2070
|
+
let interval;
|
2071
|
+
|
2072
|
+
let groupBy;
|
2073
|
+
|
2074
|
+
let country;
|
2075
|
+
|
2076
|
+
let province;
|
2077
|
+
|
2078
|
+
let isp;
|
2079
|
+
|
2080
|
+
let enterpriseProjectId;
|
2081
|
+
|
1725
2082
|
if (showDomainLocationStatsRequest !== null && showDomainLocationStatsRequest !== undefined) {
|
1726
|
-
if (showDomainLocationStatsRequest instanceof
|
2083
|
+
if (showDomainLocationStatsRequest instanceof ShowDomainLocationStatsRequest) {
|
1727
2084
|
action = showDomainLocationStatsRequest.action;
|
1728
2085
|
startTime = showDomainLocationStatsRequest.startTime;
|
1729
2086
|
endTime = showDomainLocationStatsRequest.endTime;
|
@@ -1735,8 +2092,7 @@ var ParamCreater = function () {
|
|
1735
2092
|
province = showDomainLocationStatsRequest.province;
|
1736
2093
|
isp = showDomainLocationStatsRequest.isp;
|
1737
2094
|
enterpriseProjectId = showDomainLocationStatsRequest.enterpriseProjectId;
|
1738
|
-
}
|
1739
|
-
else {
|
2095
|
+
} else {
|
1740
2096
|
action = showDomainLocationStatsRequest['action'];
|
1741
2097
|
startTime = showDomainLocationStatsRequest['start_time'];
|
1742
2098
|
endTime = showDomainLocationStatsRequest['end_time'];
|
@@ -1750,32 +2106,34 @@ var ParamCreater = function () {
|
|
1750
2106
|
enterpriseProjectId = showDomainLocationStatsRequest['enterprise_project_id'];
|
1751
2107
|
}
|
1752
2108
|
}
|
2109
|
+
|
2110
|
+
|
1753
2111
|
if (action === null || action === undefined) {
|
1754
|
-
throw new RequiredError('action',
|
2112
|
+
throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainLocationStats.');
|
1755
2113
|
}
|
1756
2114
|
if (action !== null && action !== undefined) {
|
1757
2115
|
localVarQueryParameter['action'] = action;
|
1758
2116
|
}
|
1759
2117
|
if (startTime === null || startTime === undefined) {
|
1760
|
-
throw new RequiredError('startTime',
|
2118
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainLocationStats.');
|
1761
2119
|
}
|
1762
2120
|
if (startTime !== null && startTime !== undefined) {
|
1763
2121
|
localVarQueryParameter['start_time'] = startTime;
|
1764
2122
|
}
|
1765
2123
|
if (endTime === null || endTime === undefined) {
|
1766
|
-
throw new RequiredError('endTime',
|
2124
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainLocationStats.');
|
1767
2125
|
}
|
1768
2126
|
if (endTime !== null && endTime !== undefined) {
|
1769
2127
|
localVarQueryParameter['end_time'] = endTime;
|
1770
2128
|
}
|
1771
2129
|
if (domainName === null || domainName === undefined) {
|
1772
|
-
throw new RequiredError('domainName',
|
2130
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainLocationStats.');
|
1773
2131
|
}
|
1774
2132
|
if (domainName !== null && domainName !== undefined) {
|
1775
2133
|
localVarQueryParameter['domain_name'] = domainName;
|
1776
2134
|
}
|
1777
2135
|
if (statType === null || statType === undefined) {
|
1778
|
-
throw new RequiredError('statType',
|
2136
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainLocationStats.');
|
1779
2137
|
}
|
1780
2138
|
if (statType !== null && statType !== undefined) {
|
1781
2139
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -1798,29 +2156,31 @@ var ParamCreater = function () {
|
|
1798
2156
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1799
2157
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1800
2158
|
}
|
2159
|
+
|
1801
2160
|
options.queryParams = localVarQueryParameter;
|
1802
2161
|
options.headers = localVarHeaderParameter;
|
1803
2162
|
return options;
|
1804
2163
|
},
|
2164
|
+
|
1805
2165
|
/**
|
1806
2166
|
* - 支持查询90天内的数据。
|
1807
|
-
*
|
2167
|
+
*
|
1808
2168
|
* - 支持多指标同时查询,不超过5个。
|
1809
|
-
*
|
2169
|
+
*
|
1810
2170
|
* - 最多同时指定20个域名。
|
1811
|
-
*
|
2171
|
+
*
|
1812
2172
|
* - 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
|
1813
|
-
*
|
2173
|
+
*
|
1814
2174
|
* - action取值:detail,summary
|
1815
|
-
*
|
2175
|
+
*
|
1816
2176
|
* - 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
1817
|
-
*
|
2177
|
+
*
|
1818
2178
|
* - 单租户调用频率:15次/s。
|
1819
|
-
*
|
2179
|
+
*
|
1820
2180
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1821
2181
|
*/
|
1822
|
-
showDomainStats
|
1823
|
-
|
2182
|
+
showDomainStats(showDomainStatsRequest?: ShowDomainStatsRequest) {
|
2183
|
+
const options = {
|
1824
2184
|
method: "GET",
|
1825
2185
|
url: "/v1.0/cdn/statistics/domain-stats",
|
1826
2186
|
contentType: "application/json",
|
@@ -1828,19 +2188,29 @@ var ParamCreater = function () {
|
|
1828
2188
|
pathParams: {},
|
1829
2189
|
headers: {}
|
1830
2190
|
};
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
2191
|
+
const localVarHeaderParameter = {} as any;
|
2192
|
+
const localVarQueryParameter = {} as any;
|
2193
|
+
|
2194
|
+
let action;
|
2195
|
+
|
2196
|
+
let startTime;
|
2197
|
+
|
2198
|
+
let endTime;
|
2199
|
+
|
2200
|
+
let domainName;
|
2201
|
+
|
2202
|
+
let statType;
|
2203
|
+
|
2204
|
+
let interval;
|
2205
|
+
|
2206
|
+
let groupBy;
|
2207
|
+
|
2208
|
+
let serviceArea;
|
2209
|
+
|
2210
|
+
let enterpriseProjectId;
|
2211
|
+
|
1842
2212
|
if (showDomainStatsRequest !== null && showDomainStatsRequest !== undefined) {
|
1843
|
-
if (showDomainStatsRequest instanceof
|
2213
|
+
if (showDomainStatsRequest instanceof ShowDomainStatsRequest) {
|
1844
2214
|
action = showDomainStatsRequest.action;
|
1845
2215
|
startTime = showDomainStatsRequest.startTime;
|
1846
2216
|
endTime = showDomainStatsRequest.endTime;
|
@@ -1850,8 +2220,7 @@ var ParamCreater = function () {
|
|
1850
2220
|
groupBy = showDomainStatsRequest.groupBy;
|
1851
2221
|
serviceArea = showDomainStatsRequest.serviceArea;
|
1852
2222
|
enterpriseProjectId = showDomainStatsRequest.enterpriseProjectId;
|
1853
|
-
}
|
1854
|
-
else {
|
2223
|
+
} else {
|
1855
2224
|
action = showDomainStatsRequest['action'];
|
1856
2225
|
startTime = showDomainStatsRequest['start_time'];
|
1857
2226
|
endTime = showDomainStatsRequest['end_time'];
|
@@ -1863,32 +2232,34 @@ var ParamCreater = function () {
|
|
1863
2232
|
enterpriseProjectId = showDomainStatsRequest['enterprise_project_id'];
|
1864
2233
|
}
|
1865
2234
|
}
|
2235
|
+
|
2236
|
+
|
1866
2237
|
if (action === null || action === undefined) {
|
1867
|
-
throw new RequiredError('action',
|
2238
|
+
throw new RequiredError('action','Required parameter action was null or undefined when calling showDomainStats.');
|
1868
2239
|
}
|
1869
2240
|
if (action !== null && action !== undefined) {
|
1870
2241
|
localVarQueryParameter['action'] = action;
|
1871
2242
|
}
|
1872
2243
|
if (startTime === null || startTime === undefined) {
|
1873
|
-
throw new RequiredError('startTime',
|
2244
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showDomainStats.');
|
1874
2245
|
}
|
1875
2246
|
if (startTime !== null && startTime !== undefined) {
|
1876
2247
|
localVarQueryParameter['start_time'] = startTime;
|
1877
2248
|
}
|
1878
2249
|
if (endTime === null || endTime === undefined) {
|
1879
|
-
throw new RequiredError('endTime',
|
2250
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showDomainStats.');
|
1880
2251
|
}
|
1881
2252
|
if (endTime !== null && endTime !== undefined) {
|
1882
2253
|
localVarQueryParameter['end_time'] = endTime;
|
1883
2254
|
}
|
1884
2255
|
if (domainName === null || domainName === undefined) {
|
1885
|
-
throw new RequiredError('domainName',
|
2256
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showDomainStats.');
|
1886
2257
|
}
|
1887
2258
|
if (domainName !== null && domainName !== undefined) {
|
1888
2259
|
localVarQueryParameter['domain_name'] = domainName;
|
1889
2260
|
}
|
1890
2261
|
if (statType === null || statType === undefined) {
|
1891
|
-
throw new RequiredError('statType',
|
2262
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showDomainStats.');
|
1892
2263
|
}
|
1893
2264
|
if (statType !== null && statType !== undefined) {
|
1894
2265
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -1905,17 +2276,19 @@ var ParamCreater = function () {
|
|
1905
2276
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1906
2277
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1907
2278
|
}
|
2279
|
+
|
1908
2280
|
options.queryParams = localVarQueryParameter;
|
1909
2281
|
options.headers = localVarHeaderParameter;
|
1910
2282
|
return options;
|
1911
2283
|
},
|
2284
|
+
|
1912
2285
|
/**
|
1913
2286
|
* 查询刷新预热任务详情。
|
1914
|
-
*
|
2287
|
+
*
|
1915
2288
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1916
2289
|
*/
|
1917
|
-
showHistoryTaskDetails
|
1918
|
-
|
2290
|
+
showHistoryTaskDetails(showHistoryTaskDetailsRequest?: ShowHistoryTaskDetailsRequest) {
|
2291
|
+
const options = {
|
1919
2292
|
method: "GET",
|
1920
2293
|
url: "/v1.0/cdn/historytasks/{history_tasks_id}/detail",
|
1921
2294
|
contentType: "application/json",
|
@@ -1923,17 +2296,25 @@ var ParamCreater = function () {
|
|
1923
2296
|
pathParams: {},
|
1924
2297
|
headers: {}
|
1925
2298
|
};
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
1930
|
-
|
1931
|
-
|
1932
|
-
|
1933
|
-
|
1934
|
-
|
2299
|
+
const localVarHeaderParameter = {} as any;
|
2300
|
+
const localVarQueryParameter = {} as any;
|
2301
|
+
|
2302
|
+
let historyTasksId;
|
2303
|
+
|
2304
|
+
let enterpriseProjectId;
|
2305
|
+
|
2306
|
+
let pageSize;
|
2307
|
+
|
2308
|
+
let pageNumber;
|
2309
|
+
|
2310
|
+
let status;
|
2311
|
+
|
2312
|
+
let url;
|
2313
|
+
|
2314
|
+
let createTime;
|
2315
|
+
|
1935
2316
|
if (showHistoryTaskDetailsRequest !== null && showHistoryTaskDetailsRequest !== undefined) {
|
1936
|
-
if (showHistoryTaskDetailsRequest instanceof
|
2317
|
+
if (showHistoryTaskDetailsRequest instanceof ShowHistoryTaskDetailsRequest) {
|
1937
2318
|
historyTasksId = showHistoryTaskDetailsRequest.historyTasksId;
|
1938
2319
|
enterpriseProjectId = showHistoryTaskDetailsRequest.enterpriseProjectId;
|
1939
2320
|
pageSize = showHistoryTaskDetailsRequest.pageSize;
|
@@ -1941,8 +2322,7 @@ var ParamCreater = function () {
|
|
1941
2322
|
status = showHistoryTaskDetailsRequest.status;
|
1942
2323
|
url = showHistoryTaskDetailsRequest.url;
|
1943
2324
|
createTime = showHistoryTaskDetailsRequest.createTime;
|
1944
|
-
}
|
1945
|
-
else {
|
2325
|
+
} else {
|
1946
2326
|
historyTasksId = showHistoryTaskDetailsRequest['history_tasks_id'];
|
1947
2327
|
enterpriseProjectId = showHistoryTaskDetailsRequest['enterprise_project_id'];
|
1948
2328
|
pageSize = showHistoryTaskDetailsRequest['page_size'];
|
@@ -1952,8 +2332,10 @@ var ParamCreater = function () {
|
|
1952
2332
|
createTime = showHistoryTaskDetailsRequest['create_time'];
|
1953
2333
|
}
|
1954
2334
|
}
|
2335
|
+
|
2336
|
+
|
1955
2337
|
if (historyTasksId === null || historyTasksId === undefined) {
|
1956
|
-
|
2338
|
+
throw new RequiredError('historyTasksId','Required parameter historyTasksId was null or undefined when calling showHistoryTaskDetails.');
|
1957
2339
|
}
|
1958
2340
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1959
2341
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
@@ -1973,18 +2355,20 @@ var ParamCreater = function () {
|
|
1973
2355
|
if (createTime !== null && createTime !== undefined) {
|
1974
2356
|
localVarQueryParameter['create_time'] = createTime;
|
1975
2357
|
}
|
2358
|
+
|
1976
2359
|
options.queryParams = localVarQueryParameter;
|
1977
2360
|
options.pathParams = { 'history_tasks_id': historyTasksId, };
|
1978
2361
|
options.headers = localVarHeaderParameter;
|
1979
2362
|
return options;
|
1980
2363
|
},
|
2364
|
+
|
1981
2365
|
/**
|
1982
2366
|
* 查询刷新预热任务。
|
1983
|
-
*
|
2367
|
+
*
|
1984
2368
|
* Please refer to HUAWEI cloud API Explorer for details.
|
1985
2369
|
*/
|
1986
|
-
showHistoryTasks
|
1987
|
-
|
2370
|
+
showHistoryTasks(showHistoryTasksRequest?: ShowHistoryTasksRequest) {
|
2371
|
+
const options = {
|
1988
2372
|
method: "GET",
|
1989
2373
|
url: "/v1.0/cdn/historytasks",
|
1990
2374
|
contentType: "application/json",
|
@@ -1992,19 +2376,29 @@ var ParamCreater = function () {
|
|
1992
2376
|
pathParams: {},
|
1993
2377
|
headers: {}
|
1994
2378
|
};
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
2001
|
-
|
2002
|
-
|
2003
|
-
|
2004
|
-
|
2005
|
-
|
2379
|
+
const localVarHeaderParameter = {} as any;
|
2380
|
+
const localVarQueryParameter = {} as any;
|
2381
|
+
|
2382
|
+
let enterpriseProjectId;
|
2383
|
+
|
2384
|
+
let pageSize;
|
2385
|
+
|
2386
|
+
let pageNumber;
|
2387
|
+
|
2388
|
+
let status;
|
2389
|
+
|
2390
|
+
let startDate;
|
2391
|
+
|
2392
|
+
let endDate;
|
2393
|
+
|
2394
|
+
let orderField;
|
2395
|
+
|
2396
|
+
let orderType;
|
2397
|
+
|
2398
|
+
let fileType;
|
2399
|
+
|
2006
2400
|
if (showHistoryTasksRequest !== null && showHistoryTasksRequest !== undefined) {
|
2007
|
-
if (showHistoryTasksRequest instanceof
|
2401
|
+
if (showHistoryTasksRequest instanceof ShowHistoryTasksRequest) {
|
2008
2402
|
enterpriseProjectId = showHistoryTasksRequest.enterpriseProjectId;
|
2009
2403
|
pageSize = showHistoryTasksRequest.pageSize;
|
2010
2404
|
pageNumber = showHistoryTasksRequest.pageNumber;
|
@@ -2014,8 +2408,7 @@ var ParamCreater = function () {
|
|
2014
2408
|
orderField = showHistoryTasksRequest.orderField;
|
2015
2409
|
orderType = showHistoryTasksRequest.orderType;
|
2016
2410
|
fileType = showHistoryTasksRequest.fileType;
|
2017
|
-
}
|
2018
|
-
else {
|
2411
|
+
} else {
|
2019
2412
|
enterpriseProjectId = showHistoryTasksRequest['enterprise_project_id'];
|
2020
2413
|
pageSize = showHistoryTasksRequest['page_size'];
|
2021
2414
|
pageNumber = showHistoryTasksRequest['page_number'];
|
@@ -2027,6 +2420,8 @@ var ParamCreater = function () {
|
|
2027
2420
|
fileType = showHistoryTasksRequest['file_type'];
|
2028
2421
|
}
|
2029
2422
|
}
|
2423
|
+
|
2424
|
+
|
2030
2425
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2031
2426
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2032
2427
|
}
|
@@ -2054,17 +2449,19 @@ var ParamCreater = function () {
|
|
2054
2449
|
if (fileType !== null && fileType !== undefined) {
|
2055
2450
|
localVarQueryParameter['file_type'] = fileType;
|
2056
2451
|
}
|
2452
|
+
|
2057
2453
|
options.queryParams = localVarQueryParameter;
|
2058
2454
|
options.headers = localVarHeaderParameter;
|
2059
2455
|
return options;
|
2060
2456
|
},
|
2457
|
+
|
2061
2458
|
/**
|
2062
2459
|
* 获取加速域名证书。
|
2063
|
-
*
|
2460
|
+
*
|
2064
2461
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2065
2462
|
*/
|
2066
|
-
showHttpInfo
|
2067
|
-
|
2463
|
+
showHttpInfo(showHttpInfoRequest?: ShowHttpInfoRequest) {
|
2464
|
+
const options = {
|
2068
2465
|
method: "GET",
|
2069
2466
|
url: "/v1.0/cdn/domains/{domain_id}/https-info",
|
2070
2467
|
contentType: "application/json",
|
@@ -2072,38 +2469,44 @@ var ParamCreater = function () {
|
|
2072
2469
|
pathParams: {},
|
2073
2470
|
headers: {}
|
2074
2471
|
};
|
2075
|
-
|
2076
|
-
|
2077
|
-
|
2078
|
-
|
2472
|
+
const localVarHeaderParameter = {} as any;
|
2473
|
+
const localVarQueryParameter = {} as any;
|
2474
|
+
|
2475
|
+
let domainId;
|
2476
|
+
|
2477
|
+
let enterpriseProjectId;
|
2478
|
+
|
2079
2479
|
if (showHttpInfoRequest !== null && showHttpInfoRequest !== undefined) {
|
2080
|
-
if (showHttpInfoRequest instanceof
|
2480
|
+
if (showHttpInfoRequest instanceof ShowHttpInfoRequest) {
|
2081
2481
|
domainId = showHttpInfoRequest.domainId;
|
2082
2482
|
enterpriseProjectId = showHttpInfoRequest.enterpriseProjectId;
|
2083
|
-
}
|
2084
|
-
else {
|
2483
|
+
} else {
|
2085
2484
|
domainId = showHttpInfoRequest['domain_id'];
|
2086
2485
|
enterpriseProjectId = showHttpInfoRequest['enterprise_project_id'];
|
2087
2486
|
}
|
2088
2487
|
}
|
2488
|
+
|
2489
|
+
|
2089
2490
|
if (domainId === null || domainId === undefined) {
|
2090
|
-
|
2491
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showHttpInfo.');
|
2091
2492
|
}
|
2092
2493
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2093
2494
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2094
2495
|
}
|
2496
|
+
|
2095
2497
|
options.queryParams = localVarQueryParameter;
|
2096
2498
|
options.pathParams = { 'domain_id': domainId, };
|
2097
2499
|
options.headers = localVarHeaderParameter;
|
2098
2500
|
return options;
|
2099
2501
|
},
|
2502
|
+
|
2100
2503
|
/**
|
2101
2504
|
* 查询IP归属信息。
|
2102
|
-
*
|
2505
|
+
*
|
2103
2506
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2104
2507
|
*/
|
2105
|
-
showIpInfo
|
2106
|
-
|
2508
|
+
showIpInfo(showIpInfoRequest?: ShowIpInfoRequest) {
|
2509
|
+
const options = {
|
2107
2510
|
method: "GET",
|
2108
2511
|
url: "/v1.0/cdn/ip-info",
|
2109
2512
|
contentType: "application/json",
|
@@ -2111,22 +2514,26 @@ var ParamCreater = function () {
|
|
2111
2514
|
pathParams: {},
|
2112
2515
|
headers: {}
|
2113
2516
|
};
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2517
|
+
const localVarHeaderParameter = {} as any;
|
2518
|
+
const localVarQueryParameter = {} as any;
|
2519
|
+
|
2520
|
+
let ips;
|
2521
|
+
|
2522
|
+
let enterpriseProjectId;
|
2523
|
+
|
2118
2524
|
if (showIpInfoRequest !== null && showIpInfoRequest !== undefined) {
|
2119
|
-
if (showIpInfoRequest instanceof
|
2525
|
+
if (showIpInfoRequest instanceof ShowIpInfoRequest) {
|
2120
2526
|
ips = showIpInfoRequest.ips;
|
2121
2527
|
enterpriseProjectId = showIpInfoRequest.enterpriseProjectId;
|
2122
|
-
}
|
2123
|
-
else {
|
2528
|
+
} else {
|
2124
2529
|
ips = showIpInfoRequest['ips'];
|
2125
2530
|
enterpriseProjectId = showIpInfoRequest['enterprise_project_id'];
|
2126
2531
|
}
|
2127
2532
|
}
|
2533
|
+
|
2534
|
+
|
2128
2535
|
if (ips === null || ips === undefined) {
|
2129
|
-
throw new RequiredError('ips',
|
2536
|
+
throw new RequiredError('ips','Required parameter ips was null or undefined when calling showIpInfo.');
|
2130
2537
|
}
|
2131
2538
|
if (ips !== null && ips !== undefined) {
|
2132
2539
|
localVarQueryParameter['ips'] = ips;
|
@@ -2134,17 +2541,19 @@ var ParamCreater = function () {
|
|
2134
2541
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2135
2542
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2136
2543
|
}
|
2544
|
+
|
2137
2545
|
options.queryParams = localVarQueryParameter;
|
2138
2546
|
options.headers = localVarHeaderParameter;
|
2139
2547
|
return options;
|
2140
2548
|
},
|
2549
|
+
|
2141
2550
|
/**
|
2142
2551
|
* 查询日志下载链接,支持查询30天内的日志信息。
|
2143
|
-
*
|
2552
|
+
*
|
2144
2553
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2145
2554
|
*/
|
2146
|
-
showLogs
|
2147
|
-
|
2555
|
+
showLogs(showLogsRequest?: ShowLogsRequest) {
|
2556
|
+
const options = {
|
2148
2557
|
method: "GET",
|
2149
2558
|
url: "/v1.0/cdn/logs",
|
2150
2559
|
contentType: "application/json",
|
@@ -2152,24 +2561,30 @@ var ParamCreater = function () {
|
|
2152
2561
|
pathParams: {},
|
2153
2562
|
headers: {}
|
2154
2563
|
};
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2564
|
+
const localVarHeaderParameter = {} as any;
|
2565
|
+
const localVarQueryParameter = {} as any;
|
2566
|
+
|
2567
|
+
let domainName;
|
2568
|
+
|
2569
|
+
let startTime;
|
2570
|
+
|
2571
|
+
let endTime;
|
2572
|
+
|
2573
|
+
let pageSize;
|
2574
|
+
|
2575
|
+
let pageNumber;
|
2576
|
+
|
2577
|
+
let enterpriseProjectId;
|
2578
|
+
|
2163
2579
|
if (showLogsRequest !== null && showLogsRequest !== undefined) {
|
2164
|
-
if (showLogsRequest instanceof
|
2580
|
+
if (showLogsRequest instanceof ShowLogsRequest) {
|
2165
2581
|
domainName = showLogsRequest.domainName;
|
2166
2582
|
startTime = showLogsRequest.startTime;
|
2167
2583
|
endTime = showLogsRequest.endTime;
|
2168
2584
|
pageSize = showLogsRequest.pageSize;
|
2169
2585
|
pageNumber = showLogsRequest.pageNumber;
|
2170
2586
|
enterpriseProjectId = showLogsRequest.enterpriseProjectId;
|
2171
|
-
}
|
2172
|
-
else {
|
2587
|
+
} else {
|
2173
2588
|
domainName = showLogsRequest['domain_name'];
|
2174
2589
|
startTime = showLogsRequest['start_time'];
|
2175
2590
|
endTime = showLogsRequest['end_time'];
|
@@ -2178,8 +2593,10 @@ var ParamCreater = function () {
|
|
2178
2593
|
enterpriseProjectId = showLogsRequest['enterprise_project_id'];
|
2179
2594
|
}
|
2180
2595
|
}
|
2596
|
+
|
2597
|
+
|
2181
2598
|
if (domainName === null || domainName === undefined) {
|
2182
|
-
throw new RequiredError('domainName',
|
2599
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showLogs.');
|
2183
2600
|
}
|
2184
2601
|
if (domainName !== null && domainName !== undefined) {
|
2185
2602
|
localVarQueryParameter['domain_name'] = domainName;
|
@@ -2199,17 +2616,19 @@ var ParamCreater = function () {
|
|
2199
2616
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2200
2617
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2201
2618
|
}
|
2619
|
+
|
2202
2620
|
options.queryParams = localVarQueryParameter;
|
2203
2621
|
options.headers = localVarHeaderParameter;
|
2204
2622
|
return options;
|
2205
2623
|
},
|
2624
|
+
|
2206
2625
|
/**
|
2207
2626
|
* 查询回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
2208
|
-
*
|
2627
|
+
*
|
2209
2628
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2210
2629
|
*/
|
2211
|
-
showOriginHost
|
2212
|
-
|
2630
|
+
showOriginHost(showOriginHostRequest?: ShowOriginHostRequest) {
|
2631
|
+
const options = {
|
2213
2632
|
method: "GET",
|
2214
2633
|
url: "/v1.0/cdn/domains/{domain_id}/originhost",
|
2215
2634
|
contentType: "application/json",
|
@@ -2217,38 +2636,44 @@ var ParamCreater = function () {
|
|
2217
2636
|
pathParams: {},
|
2218
2637
|
headers: {}
|
2219
2638
|
};
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2639
|
+
const localVarHeaderParameter = {} as any;
|
2640
|
+
const localVarQueryParameter = {} as any;
|
2641
|
+
|
2642
|
+
let domainId;
|
2643
|
+
|
2644
|
+
let enterpriseProjectId;
|
2645
|
+
|
2224
2646
|
if (showOriginHostRequest !== null && showOriginHostRequest !== undefined) {
|
2225
|
-
if (showOriginHostRequest instanceof
|
2647
|
+
if (showOriginHostRequest instanceof ShowOriginHostRequest) {
|
2226
2648
|
domainId = showOriginHostRequest.domainId;
|
2227
2649
|
enterpriseProjectId = showOriginHostRequest.enterpriseProjectId;
|
2228
|
-
}
|
2229
|
-
else {
|
2650
|
+
} else {
|
2230
2651
|
domainId = showOriginHostRequest['domain_id'];
|
2231
2652
|
enterpriseProjectId = showOriginHostRequest['enterprise_project_id'];
|
2232
2653
|
}
|
2233
2654
|
}
|
2655
|
+
|
2656
|
+
|
2234
2657
|
if (domainId === null || domainId === undefined) {
|
2235
|
-
|
2658
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showOriginHost.');
|
2236
2659
|
}
|
2237
2660
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2238
2661
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2239
2662
|
}
|
2663
|
+
|
2240
2664
|
options.queryParams = localVarQueryParameter;
|
2241
2665
|
options.pathParams = { 'domain_id': domainId, };
|
2242
2666
|
options.headers = localVarHeaderParameter;
|
2243
2667
|
return options;
|
2244
2668
|
},
|
2669
|
+
|
2245
2670
|
/**
|
2246
2671
|
* 查询当前用户域名、刷新文件、刷新目录和预热的配额
|
2247
|
-
*
|
2672
|
+
*
|
2248
2673
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2249
2674
|
*/
|
2250
|
-
showQuota
|
2251
|
-
|
2675
|
+
showQuota() {
|
2676
|
+
const options = {
|
2252
2677
|
method: "GET",
|
2253
2678
|
url: "/v1.0/cdn/quota",
|
2254
2679
|
contentType: "application/json",
|
@@ -2256,17 +2681,20 @@ var ParamCreater = function () {
|
|
2256
2681
|
pathParams: {},
|
2257
2682
|
headers: {}
|
2258
2683
|
};
|
2259
|
-
|
2684
|
+
const localVarHeaderParameter = {} as any;
|
2685
|
+
|
2686
|
+
|
2260
2687
|
options.headers = localVarHeaderParameter;
|
2261
2688
|
return options;
|
2262
2689
|
},
|
2690
|
+
|
2263
2691
|
/**
|
2264
2692
|
* 查询Referer过滤规则。
|
2265
|
-
*
|
2693
|
+
*
|
2266
2694
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2267
2695
|
*/
|
2268
|
-
showRefer
|
2269
|
-
|
2696
|
+
showRefer(showReferRequest?: ShowReferRequest) {
|
2697
|
+
const options = {
|
2270
2698
|
method: "GET",
|
2271
2699
|
url: "/v1.0/cdn/domains/{domain_id}/referer",
|
2272
2700
|
contentType: "application/json",
|
@@ -2274,38 +2702,44 @@ var ParamCreater = function () {
|
|
2274
2702
|
pathParams: {},
|
2275
2703
|
headers: {}
|
2276
2704
|
};
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2705
|
+
const localVarHeaderParameter = {} as any;
|
2706
|
+
const localVarQueryParameter = {} as any;
|
2707
|
+
|
2708
|
+
let domainId;
|
2709
|
+
|
2710
|
+
let enterpriseProjectId;
|
2711
|
+
|
2281
2712
|
if (showReferRequest !== null && showReferRequest !== undefined) {
|
2282
|
-
if (showReferRequest instanceof
|
2713
|
+
if (showReferRequest instanceof ShowReferRequest) {
|
2283
2714
|
domainId = showReferRequest.domainId;
|
2284
2715
|
enterpriseProjectId = showReferRequest.enterpriseProjectId;
|
2285
|
-
}
|
2286
|
-
else {
|
2716
|
+
} else {
|
2287
2717
|
domainId = showReferRequest['domain_id'];
|
2288
2718
|
enterpriseProjectId = showReferRequest['enterprise_project_id'];
|
2289
2719
|
}
|
2290
2720
|
}
|
2721
|
+
|
2722
|
+
|
2291
2723
|
if (domainId === null || domainId === undefined) {
|
2292
|
-
|
2724
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showRefer.');
|
2293
2725
|
}
|
2294
2726
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2295
2727
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2296
2728
|
}
|
2729
|
+
|
2297
2730
|
options.queryParams = localVarQueryParameter;
|
2298
2731
|
options.pathParams = { 'domain_id': domainId, };
|
2299
2732
|
options.headers = localVarHeaderParameter;
|
2300
2733
|
return options;
|
2301
2734
|
},
|
2735
|
+
|
2302
2736
|
/**
|
2303
2737
|
* 列举header所有配置。
|
2304
|
-
*
|
2738
|
+
*
|
2305
2739
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2306
2740
|
*/
|
2307
|
-
showResponseHeader
|
2308
|
-
|
2741
|
+
showResponseHeader(showResponseHeaderRequest?: ShowResponseHeaderRequest) {
|
2742
|
+
const options = {
|
2309
2743
|
method: "GET",
|
2310
2744
|
url: "/v1.0/cdn/domains/{domain_id}/response-header",
|
2311
2745
|
contentType: "application/json",
|
@@ -2313,38 +2747,44 @@ var ParamCreater = function () {
|
|
2313
2747
|
pathParams: {},
|
2314
2748
|
headers: {}
|
2315
2749
|
};
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2750
|
+
const localVarHeaderParameter = {} as any;
|
2751
|
+
const localVarQueryParameter = {} as any;
|
2752
|
+
|
2753
|
+
let domainId;
|
2754
|
+
|
2755
|
+
let enterpriseProjectId;
|
2756
|
+
|
2320
2757
|
if (showResponseHeaderRequest !== null && showResponseHeaderRequest !== undefined) {
|
2321
|
-
if (showResponseHeaderRequest instanceof
|
2758
|
+
if (showResponseHeaderRequest instanceof ShowResponseHeaderRequest) {
|
2322
2759
|
domainId = showResponseHeaderRequest.domainId;
|
2323
2760
|
enterpriseProjectId = showResponseHeaderRequest.enterpriseProjectId;
|
2324
|
-
}
|
2325
|
-
else {
|
2761
|
+
} else {
|
2326
2762
|
domainId = showResponseHeaderRequest['domain_id'];
|
2327
2763
|
enterpriseProjectId = showResponseHeaderRequest['enterprise_project_id'];
|
2328
2764
|
}
|
2329
2765
|
}
|
2766
|
+
|
2767
|
+
|
2330
2768
|
if (domainId === null || domainId === undefined) {
|
2331
|
-
|
2769
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling showResponseHeader.');
|
2332
2770
|
}
|
2333
2771
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2334
2772
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2335
2773
|
}
|
2774
|
+
|
2336
2775
|
options.queryParams = localVarQueryParameter;
|
2337
2776
|
options.pathParams = { 'domain_id': domainId, };
|
2338
2777
|
options.headers = localVarHeaderParameter;
|
2339
2778
|
return options;
|
2340
2779
|
},
|
2780
|
+
|
2341
2781
|
/**
|
2342
2782
|
* 用于查询资源标签列表。
|
2343
|
-
*
|
2783
|
+
*
|
2344
2784
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2345
2785
|
*/
|
2346
|
-
showTags
|
2347
|
-
|
2786
|
+
showTags(showTagsRequest?: ShowTagsRequest) {
|
2787
|
+
const options = {
|
2348
2788
|
method: "GET",
|
2349
2789
|
url: "/v1.0/cdn/configuration/tags",
|
2350
2790
|
contentType: "application/json",
|
@@ -2352,47 +2792,52 @@ var ParamCreater = function () {
|
|
2352
2792
|
pathParams: {},
|
2353
2793
|
headers: {}
|
2354
2794
|
};
|
2355
|
-
|
2356
|
-
|
2357
|
-
|
2795
|
+
const localVarHeaderParameter = {} as any;
|
2796
|
+
const localVarQueryParameter = {} as any;
|
2797
|
+
|
2798
|
+
let resourceId;
|
2799
|
+
|
2358
2800
|
if (showTagsRequest !== null && showTagsRequest !== undefined) {
|
2359
|
-
if (showTagsRequest instanceof
|
2801
|
+
if (showTagsRequest instanceof ShowTagsRequest) {
|
2360
2802
|
resourceId = showTagsRequest.resourceId;
|
2361
|
-
}
|
2362
|
-
else {
|
2803
|
+
} else {
|
2363
2804
|
resourceId = showTagsRequest['resource_id'];
|
2364
2805
|
}
|
2365
2806
|
}
|
2807
|
+
|
2808
|
+
|
2366
2809
|
if (resourceId === null || resourceId === undefined) {
|
2367
|
-
throw new RequiredError('resourceId',
|
2810
|
+
throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling showTags.');
|
2368
2811
|
}
|
2369
2812
|
if (resourceId !== null && resourceId !== undefined) {
|
2370
2813
|
localVarQueryParameter['resource_id'] = resourceId;
|
2371
2814
|
}
|
2815
|
+
|
2372
2816
|
options.queryParams = localVarQueryParameter;
|
2373
2817
|
options.headers = localVarHeaderParameter;
|
2374
2818
|
return options;
|
2375
2819
|
},
|
2820
|
+
|
2376
2821
|
/**
|
2377
2822
|
* - 查询TOP100 URL明细。
|
2378
|
-
*
|
2823
|
+
*
|
2379
2824
|
* - 支持查询90天内的数据。
|
2380
|
-
*
|
2825
|
+
*
|
2381
2826
|
* - 查询跨度不能超过31天。
|
2382
|
-
*
|
2827
|
+
*
|
2383
2828
|
* - 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00
|
2384
2829
|
* 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
|
2385
|
-
*
|
2830
|
+
*
|
2386
2831
|
* - 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
|
2387
|
-
*
|
2832
|
+
*
|
2388
2833
|
* - 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
|
2389
|
-
*
|
2834
|
+
*
|
2390
2835
|
* - 单租户调用频率:5次/s。
|
2391
|
-
*
|
2836
|
+
*
|
2392
2837
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2393
2838
|
*/
|
2394
|
-
showTopUrl
|
2395
|
-
|
2839
|
+
showTopUrl(showTopUrlRequest?: ShowTopUrlRequest) {
|
2840
|
+
const options = {
|
2396
2841
|
method: "GET",
|
2397
2842
|
url: "/v1.0/cdn/statistics/top-url",
|
2398
2843
|
contentType: "application/json",
|
@@ -2400,24 +2845,30 @@ var ParamCreater = function () {
|
|
2400
2845
|
pathParams: {},
|
2401
2846
|
headers: {}
|
2402
2847
|
};
|
2403
|
-
|
2404
|
-
|
2405
|
-
|
2406
|
-
|
2407
|
-
|
2408
|
-
|
2409
|
-
|
2410
|
-
|
2848
|
+
const localVarHeaderParameter = {} as any;
|
2849
|
+
const localVarQueryParameter = {} as any;
|
2850
|
+
|
2851
|
+
let startTime;
|
2852
|
+
|
2853
|
+
let endTime;
|
2854
|
+
|
2855
|
+
let domainName;
|
2856
|
+
|
2857
|
+
let statType;
|
2858
|
+
|
2859
|
+
let enterpriseProjectId;
|
2860
|
+
|
2861
|
+
let serviceArea;
|
2862
|
+
|
2411
2863
|
if (showTopUrlRequest !== null && showTopUrlRequest !== undefined) {
|
2412
|
-
if (showTopUrlRequest instanceof
|
2864
|
+
if (showTopUrlRequest instanceof ShowTopUrlRequest) {
|
2413
2865
|
startTime = showTopUrlRequest.startTime;
|
2414
2866
|
endTime = showTopUrlRequest.endTime;
|
2415
2867
|
domainName = showTopUrlRequest.domainName;
|
2416
2868
|
statType = showTopUrlRequest.statType;
|
2417
2869
|
enterpriseProjectId = showTopUrlRequest.enterpriseProjectId;
|
2418
2870
|
serviceArea = showTopUrlRequest.serviceArea;
|
2419
|
-
}
|
2420
|
-
else {
|
2871
|
+
} else {
|
2421
2872
|
startTime = showTopUrlRequest['start_time'];
|
2422
2873
|
endTime = showTopUrlRequest['end_time'];
|
2423
2874
|
domainName = showTopUrlRequest['domain_name'];
|
@@ -2426,26 +2877,28 @@ var ParamCreater = function () {
|
|
2426
2877
|
serviceArea = showTopUrlRequest['service_area'];
|
2427
2878
|
}
|
2428
2879
|
}
|
2880
|
+
|
2881
|
+
|
2429
2882
|
if (startTime === null || startTime === undefined) {
|
2430
|
-
throw new RequiredError('startTime',
|
2883
|
+
throw new RequiredError('startTime','Required parameter startTime was null or undefined when calling showTopUrl.');
|
2431
2884
|
}
|
2432
2885
|
if (startTime !== null && startTime !== undefined) {
|
2433
2886
|
localVarQueryParameter['start_time'] = startTime;
|
2434
2887
|
}
|
2435
2888
|
if (endTime === null || endTime === undefined) {
|
2436
|
-
throw new RequiredError('endTime',
|
2889
|
+
throw new RequiredError('endTime','Required parameter endTime was null or undefined when calling showTopUrl.');
|
2437
2890
|
}
|
2438
2891
|
if (endTime !== null && endTime !== undefined) {
|
2439
2892
|
localVarQueryParameter['end_time'] = endTime;
|
2440
2893
|
}
|
2441
2894
|
if (domainName === null || domainName === undefined) {
|
2442
|
-
throw new RequiredError('domainName',
|
2895
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling showTopUrl.');
|
2443
2896
|
}
|
2444
2897
|
if (domainName !== null && domainName !== undefined) {
|
2445
2898
|
localVarQueryParameter['domain_name'] = domainName;
|
2446
2899
|
}
|
2447
2900
|
if (statType === null || statType === undefined) {
|
2448
|
-
throw new RequiredError('statType',
|
2901
|
+
throw new RequiredError('statType','Required parameter statType was null or undefined when calling showTopUrl.');
|
2449
2902
|
}
|
2450
2903
|
if (statType !== null && statType !== undefined) {
|
2451
2904
|
localVarQueryParameter['stat_type'] = statType;
|
@@ -2456,17 +2909,19 @@ var ParamCreater = function () {
|
|
2456
2909
|
if (serviceArea !== null && serviceArea !== undefined) {
|
2457
2910
|
localVarQueryParameter['service_area'] = serviceArea;
|
2458
2911
|
}
|
2912
|
+
|
2459
2913
|
options.queryParams = localVarQueryParameter;
|
2460
2914
|
options.headers = localVarHeaderParameter;
|
2461
2915
|
return options;
|
2462
2916
|
},
|
2917
|
+
|
2463
2918
|
/**
|
2464
2919
|
* 查询刷新预热URL记录。如需此接口,请提交工单开通
|
2465
|
-
*
|
2920
|
+
*
|
2466
2921
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2467
2922
|
*/
|
2468
|
-
showUrlTaskInfo
|
2469
|
-
|
2923
|
+
showUrlTaskInfo(showUrlTaskInfoRequest?: ShowUrlTaskInfoRequest) {
|
2924
|
+
const options = {
|
2470
2925
|
method: "GET",
|
2471
2926
|
url: "/v1.0/cdn/contentgateway/url-tasks",
|
2472
2927
|
contentType: "application/json",
|
@@ -2474,18 +2929,27 @@ var ParamCreater = function () {
|
|
2474
2929
|
pathParams: {},
|
2475
2930
|
headers: {}
|
2476
2931
|
};
|
2477
|
-
|
2478
|
-
|
2479
|
-
|
2480
|
-
|
2481
|
-
|
2482
|
-
|
2483
|
-
|
2484
|
-
|
2485
|
-
|
2486
|
-
|
2932
|
+
const localVarHeaderParameter = {} as any;
|
2933
|
+
const localVarQueryParameter = {} as any;
|
2934
|
+
|
2935
|
+
let startTime;
|
2936
|
+
|
2937
|
+
let endTime;
|
2938
|
+
|
2939
|
+
let offset;
|
2940
|
+
|
2941
|
+
let limit;
|
2942
|
+
|
2943
|
+
let url;
|
2944
|
+
|
2945
|
+
let taskType;
|
2946
|
+
|
2947
|
+
let status;
|
2948
|
+
|
2949
|
+
let fileType;
|
2950
|
+
|
2487
2951
|
if (showUrlTaskInfoRequest !== null && showUrlTaskInfoRequest !== undefined) {
|
2488
|
-
if (showUrlTaskInfoRequest instanceof
|
2952
|
+
if (showUrlTaskInfoRequest instanceof ShowUrlTaskInfoRequest) {
|
2489
2953
|
startTime = showUrlTaskInfoRequest.startTime;
|
2490
2954
|
endTime = showUrlTaskInfoRequest.endTime;
|
2491
2955
|
offset = showUrlTaskInfoRequest.offset;
|
@@ -2494,8 +2958,7 @@ var ParamCreater = function () {
|
|
2494
2958
|
taskType = showUrlTaskInfoRequest.taskType;
|
2495
2959
|
status = showUrlTaskInfoRequest.status;
|
2496
2960
|
fileType = showUrlTaskInfoRequest.fileType;
|
2497
|
-
}
|
2498
|
-
else {
|
2961
|
+
} else {
|
2499
2962
|
startTime = showUrlTaskInfoRequest['start_time'];
|
2500
2963
|
endTime = showUrlTaskInfoRequest['end_time'];
|
2501
2964
|
offset = showUrlTaskInfoRequest['offset'];
|
@@ -2506,6 +2969,8 @@ var ParamCreater = function () {
|
|
2506
2969
|
fileType = showUrlTaskInfoRequest['file_type'];
|
2507
2970
|
}
|
2508
2971
|
}
|
2972
|
+
|
2973
|
+
|
2509
2974
|
if (startTime !== null && startTime !== undefined) {
|
2510
2975
|
localVarQueryParameter['start_time'] = startTime;
|
2511
2976
|
}
|
@@ -2530,17 +2995,19 @@ var ParamCreater = function () {
|
|
2530
2995
|
if (fileType !== null && fileType !== undefined) {
|
2531
2996
|
localVarQueryParameter['file_type'] = fileType;
|
2532
2997
|
}
|
2998
|
+
|
2533
2999
|
options.queryParams = localVarQueryParameter;
|
2534
3000
|
options.headers = localVarHeaderParameter;
|
2535
3001
|
return options;
|
2536
3002
|
},
|
3003
|
+
|
2537
3004
|
/**
|
2538
3005
|
* 设置域名的IP黑白名单。
|
2539
|
-
*
|
3006
|
+
*
|
2540
3007
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2541
3008
|
*/
|
2542
|
-
updateBlackWhiteList
|
2543
|
-
|
3009
|
+
updateBlackWhiteList(updateBlackWhiteListRequest?: UpdateBlackWhiteListRequest) {
|
3010
|
+
const options = {
|
2544
3011
|
method: "PUT",
|
2545
3012
|
url: "/v1.0/cdn/domains/{domain_id}/ip-acl",
|
2546
3013
|
contentType: "application/json",
|
@@ -2549,46 +3016,52 @@ var ParamCreater = function () {
|
|
2549
3016
|
headers: {},
|
2550
3017
|
data: {}
|
2551
3018
|
};
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2555
|
-
|
2556
|
-
|
3019
|
+
const localVarHeaderParameter = {} as any;
|
3020
|
+
const localVarQueryParameter = {} as any;
|
3021
|
+
let body: any;
|
3022
|
+
|
3023
|
+
let domainId;
|
3024
|
+
|
3025
|
+
let enterpriseProjectId;
|
3026
|
+
|
2557
3027
|
if (updateBlackWhiteListRequest !== null && updateBlackWhiteListRequest !== undefined) {
|
2558
|
-
if (updateBlackWhiteListRequest instanceof
|
3028
|
+
if (updateBlackWhiteListRequest instanceof UpdateBlackWhiteListRequest) {
|
2559
3029
|
domainId = updateBlackWhiteListRequest.domainId;
|
2560
|
-
body = updateBlackWhiteListRequest.body
|
3030
|
+
body = updateBlackWhiteListRequest.body
|
2561
3031
|
enterpriseProjectId = updateBlackWhiteListRequest.enterpriseProjectId;
|
2562
|
-
}
|
2563
|
-
else {
|
3032
|
+
} else {
|
2564
3033
|
domainId = updateBlackWhiteListRequest['domain_id'];
|
2565
3034
|
body = updateBlackWhiteListRequest['body'];
|
2566
3035
|
enterpriseProjectId = updateBlackWhiteListRequest['enterprise_project_id'];
|
2567
3036
|
}
|
2568
3037
|
}
|
3038
|
+
|
3039
|
+
|
2569
3040
|
if (domainId === null || domainId === undefined) {
|
2570
|
-
|
3041
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateBlackWhiteList.');
|
2571
3042
|
}
|
2572
3043
|
if (body === null || body === undefined) {
|
2573
|
-
throw new RequiredError('body',
|
3044
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2574
3045
|
}
|
2575
3046
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2576
3047
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2577
3048
|
}
|
2578
3049
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3050
|
+
|
2579
3051
|
options.data = body !== undefined ? body : {};
|
2580
3052
|
options.queryParams = localVarQueryParameter;
|
2581
3053
|
options.pathParams = { 'domain_id': domainId, };
|
2582
3054
|
options.headers = localVarHeaderParameter;
|
2583
3055
|
return options;
|
2584
3056
|
},
|
3057
|
+
|
2585
3058
|
/**
|
2586
3059
|
* 设置CDN节点上缓存资源的缓存策略。
|
2587
|
-
*
|
3060
|
+
*
|
2588
3061
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2589
3062
|
*/
|
2590
|
-
updateCacheRules
|
2591
|
-
|
3063
|
+
updateCacheRules(updateCacheRulesRequest?: UpdateCacheRulesRequest) {
|
3064
|
+
const options = {
|
2592
3065
|
method: "PUT",
|
2593
3066
|
url: "/v1.0/cdn/domains/{domain_id}/cache",
|
2594
3067
|
contentType: "application/json",
|
@@ -2597,47 +3070,53 @@ var ParamCreater = function () {
|
|
2597
3070
|
headers: {},
|
2598
3071
|
data: {}
|
2599
3072
|
};
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
3073
|
+
const localVarHeaderParameter = {} as any;
|
3074
|
+
const localVarQueryParameter = {} as any;
|
3075
|
+
let body: any;
|
3076
|
+
|
3077
|
+
let domainId;
|
3078
|
+
|
3079
|
+
let enterpriseProjectId;
|
3080
|
+
|
2605
3081
|
if (updateCacheRulesRequest !== null && updateCacheRulesRequest !== undefined) {
|
2606
|
-
if (updateCacheRulesRequest instanceof
|
3082
|
+
if (updateCacheRulesRequest instanceof UpdateCacheRulesRequest) {
|
2607
3083
|
domainId = updateCacheRulesRequest.domainId;
|
2608
|
-
body = updateCacheRulesRequest.body
|
3084
|
+
body = updateCacheRulesRequest.body
|
2609
3085
|
enterpriseProjectId = updateCacheRulesRequest.enterpriseProjectId;
|
2610
|
-
}
|
2611
|
-
else {
|
3086
|
+
} else {
|
2612
3087
|
domainId = updateCacheRulesRequest['domain_id'];
|
2613
3088
|
body = updateCacheRulesRequest['body'];
|
2614
3089
|
enterpriseProjectId = updateCacheRulesRequest['enterprise_project_id'];
|
2615
3090
|
}
|
2616
3091
|
}
|
3092
|
+
|
3093
|
+
|
2617
3094
|
if (domainId === null || domainId === undefined) {
|
2618
|
-
|
3095
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateCacheRules.');
|
2619
3096
|
}
|
2620
3097
|
if (body === null || body === undefined) {
|
2621
|
-
throw new RequiredError('body',
|
3098
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2622
3099
|
}
|
2623
3100
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2624
3101
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2625
3102
|
}
|
2626
3103
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3104
|
+
|
2627
3105
|
options.data = body !== undefined ? body : {};
|
2628
3106
|
options.queryParams = localVarQueryParameter;
|
2629
3107
|
options.pathParams = { 'domain_id': domainId, };
|
2630
3108
|
options.headers = localVarHeaderParameter;
|
2631
3109
|
return options;
|
2632
3110
|
},
|
3111
|
+
|
2633
3112
|
/**
|
2634
3113
|
* 修改域名配置接口,
|
2635
3114
|
* 支持修改回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面、缓存规则、IP黑白名单、防盗链、强制跳转。
|
2636
|
-
*
|
3115
|
+
*
|
2637
3116
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2638
3117
|
*/
|
2639
|
-
updateDomainFullConfig
|
2640
|
-
|
3118
|
+
updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest) {
|
3119
|
+
const options = {
|
2641
3120
|
method: "PUT",
|
2642
3121
|
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
2643
3122
|
contentType: "application/json",
|
@@ -2646,46 +3125,52 @@ var ParamCreater = function () {
|
|
2646
3125
|
headers: {},
|
2647
3126
|
data: {}
|
2648
3127
|
};
|
2649
|
-
|
2650
|
-
|
2651
|
-
|
2652
|
-
|
2653
|
-
|
3128
|
+
const localVarHeaderParameter = {} as any;
|
3129
|
+
const localVarQueryParameter = {} as any;
|
3130
|
+
let body: any;
|
3131
|
+
|
3132
|
+
let domainName;
|
3133
|
+
|
3134
|
+
let enterpriseProjectId;
|
3135
|
+
|
2654
3136
|
if (updateDomainFullConfigRequest !== null && updateDomainFullConfigRequest !== undefined) {
|
2655
|
-
if (updateDomainFullConfigRequest instanceof
|
3137
|
+
if (updateDomainFullConfigRequest instanceof UpdateDomainFullConfigRequest) {
|
2656
3138
|
domainName = updateDomainFullConfigRequest.domainName;
|
2657
|
-
body = updateDomainFullConfigRequest.body
|
3139
|
+
body = updateDomainFullConfigRequest.body
|
2658
3140
|
enterpriseProjectId = updateDomainFullConfigRequest.enterpriseProjectId;
|
2659
|
-
}
|
2660
|
-
else {
|
3141
|
+
} else {
|
2661
3142
|
domainName = updateDomainFullConfigRequest['domain_name'];
|
2662
3143
|
body = updateDomainFullConfigRequest['body'];
|
2663
3144
|
enterpriseProjectId = updateDomainFullConfigRequest['enterprise_project_id'];
|
2664
3145
|
}
|
2665
3146
|
}
|
3147
|
+
|
3148
|
+
|
2666
3149
|
if (domainName === null || domainName === undefined) {
|
2667
|
-
|
3150
|
+
throw new RequiredError('domainName','Required parameter domainName was null or undefined when calling updateDomainFullConfig.');
|
2668
3151
|
}
|
2669
3152
|
if (body === null || body === undefined) {
|
2670
|
-
throw new RequiredError('body',
|
3153
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2671
3154
|
}
|
2672
3155
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2673
3156
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2674
3157
|
}
|
2675
3158
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3159
|
+
|
2676
3160
|
options.data = body !== undefined ? body : {};
|
2677
3161
|
options.queryParams = localVarQueryParameter;
|
2678
3162
|
options.pathParams = { 'domain_name': domainName, };
|
2679
3163
|
options.headers = localVarHeaderParameter;
|
2680
3164
|
return options;
|
2681
3165
|
},
|
3166
|
+
|
2682
3167
|
/**
|
2683
3168
|
* 一个证书配置多个域名,设置域名强制https回源参数。
|
2684
|
-
*
|
3169
|
+
*
|
2685
3170
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2686
3171
|
*/
|
2687
|
-
updateDomainMultiCertificates
|
2688
|
-
|
3172
|
+
updateDomainMultiCertificates(updateDomainMultiCertificatesRequest?: UpdateDomainMultiCertificatesRequest) {
|
3173
|
+
const options = {
|
2689
3174
|
method: "PUT",
|
2690
3175
|
url: "/v1.0/cdn/domains/config-https-info",
|
2691
3176
|
contentType: "application/json",
|
@@ -2694,36 +3179,41 @@ var ParamCreater = function () {
|
|
2694
3179
|
headers: {},
|
2695
3180
|
data: {}
|
2696
3181
|
};
|
2697
|
-
|
2698
|
-
|
2699
|
-
|
2700
|
-
|
3182
|
+
const localVarHeaderParameter = {} as any;
|
3183
|
+
const localVarQueryParameter = {} as any;
|
3184
|
+
let body: any;
|
3185
|
+
|
3186
|
+
let enterpriseProjectId;
|
3187
|
+
|
2701
3188
|
if (updateDomainMultiCertificatesRequest !== null && updateDomainMultiCertificatesRequest !== undefined) {
|
2702
|
-
if (updateDomainMultiCertificatesRequest instanceof
|
3189
|
+
if (updateDomainMultiCertificatesRequest instanceof UpdateDomainMultiCertificatesRequest) {
|
2703
3190
|
enterpriseProjectId = updateDomainMultiCertificatesRequest.enterpriseProjectId;
|
2704
|
-
body = updateDomainMultiCertificatesRequest.body
|
2705
|
-
}
|
2706
|
-
else {
|
3191
|
+
body = updateDomainMultiCertificatesRequest.body
|
3192
|
+
} else {
|
2707
3193
|
enterpriseProjectId = updateDomainMultiCertificatesRequest['enterprise_project_id'];
|
2708
3194
|
body = updateDomainMultiCertificatesRequest['body'];
|
2709
3195
|
}
|
2710
3196
|
}
|
3197
|
+
|
3198
|
+
|
2711
3199
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2712
3200
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2713
3201
|
}
|
2714
3202
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3203
|
+
|
2715
3204
|
options.data = body !== undefined ? body : {};
|
2716
3205
|
options.queryParams = localVarQueryParameter;
|
2717
3206
|
options.headers = localVarHeaderParameter;
|
2718
3207
|
return options;
|
2719
3208
|
},
|
3209
|
+
|
2720
3210
|
/**
|
2721
3211
|
* 修改加速域名的源站配置。
|
2722
|
-
*
|
3212
|
+
*
|
2723
3213
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2724
3214
|
*/
|
2725
|
-
updateDomainOrigin
|
2726
|
-
|
3215
|
+
updateDomainOrigin(updateDomainOriginRequest?: UpdateDomainOriginRequest) {
|
3216
|
+
const options = {
|
2727
3217
|
method: "PUT",
|
2728
3218
|
url: "/v1.0/cdn/domains/{domain_id}/origin",
|
2729
3219
|
contentType: "application/json",
|
@@ -2732,46 +3222,52 @@ var ParamCreater = function () {
|
|
2732
3222
|
headers: {},
|
2733
3223
|
data: {}
|
2734
3224
|
};
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
3225
|
+
const localVarHeaderParameter = {} as any;
|
3226
|
+
const localVarQueryParameter = {} as any;
|
3227
|
+
let body: any;
|
3228
|
+
|
3229
|
+
let domainId;
|
3230
|
+
|
3231
|
+
let enterpriseProjectId;
|
3232
|
+
|
2740
3233
|
if (updateDomainOriginRequest !== null && updateDomainOriginRequest !== undefined) {
|
2741
|
-
if (updateDomainOriginRequest instanceof
|
3234
|
+
if (updateDomainOriginRequest instanceof UpdateDomainOriginRequest) {
|
2742
3235
|
domainId = updateDomainOriginRequest.domainId;
|
2743
|
-
body = updateDomainOriginRequest.body
|
3236
|
+
body = updateDomainOriginRequest.body
|
2744
3237
|
enterpriseProjectId = updateDomainOriginRequest.enterpriseProjectId;
|
2745
|
-
}
|
2746
|
-
else {
|
3238
|
+
} else {
|
2747
3239
|
domainId = updateDomainOriginRequest['domain_id'];
|
2748
3240
|
body = updateDomainOriginRequest['body'];
|
2749
3241
|
enterpriseProjectId = updateDomainOriginRequest['enterprise_project_id'];
|
2750
3242
|
}
|
2751
3243
|
}
|
3244
|
+
|
3245
|
+
|
2752
3246
|
if (domainId === null || domainId === undefined) {
|
2753
|
-
|
3247
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateDomainOrigin.');
|
2754
3248
|
}
|
2755
3249
|
if (body === null || body === undefined) {
|
2756
|
-
throw new RequiredError('body',
|
3250
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2757
3251
|
}
|
2758
3252
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2759
3253
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2760
3254
|
}
|
2761
3255
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3256
|
+
|
2762
3257
|
options.data = body !== undefined ? body : {};
|
2763
3258
|
options.queryParams = localVarQueryParameter;
|
2764
3259
|
options.pathParams = { 'domain_id': domainId, };
|
2765
3260
|
options.headers = localVarHeaderParameter;
|
2766
3261
|
return options;
|
2767
3262
|
},
|
3263
|
+
|
2768
3264
|
/**
|
2769
3265
|
* 开启此项配置后,当CDN节点回源请求源站返回301/302状态码时,CDN节点会先跳转到301/302对应地址获取资源并缓存后再返回给用户。
|
2770
|
-
*
|
3266
|
+
*
|
2771
3267
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2772
3268
|
*/
|
2773
|
-
updateFollow302Switch
|
2774
|
-
|
3269
|
+
updateFollow302Switch(updateFollow302SwitchRequest?: UpdateFollow302SwitchRequest) {
|
3270
|
+
const options = {
|
2775
3271
|
method: "PUT",
|
2776
3272
|
url: "/v1.0/cdn/domains/{domain_id}/follow302-switch",
|
2777
3273
|
contentType: "application/json",
|
@@ -2780,46 +3276,52 @@ var ParamCreater = function () {
|
|
2780
3276
|
headers: {},
|
2781
3277
|
data: {}
|
2782
3278
|
};
|
2783
|
-
|
2784
|
-
|
2785
|
-
|
2786
|
-
|
2787
|
-
|
3279
|
+
const localVarHeaderParameter = {} as any;
|
3280
|
+
const localVarQueryParameter = {} as any;
|
3281
|
+
let body: any;
|
3282
|
+
|
3283
|
+
let domainId;
|
3284
|
+
|
3285
|
+
let enterpriseProjectId;
|
3286
|
+
|
2788
3287
|
if (updateFollow302SwitchRequest !== null && updateFollow302SwitchRequest !== undefined) {
|
2789
|
-
if (updateFollow302SwitchRequest instanceof
|
3288
|
+
if (updateFollow302SwitchRequest instanceof UpdateFollow302SwitchRequest) {
|
2790
3289
|
domainId = updateFollow302SwitchRequest.domainId;
|
2791
|
-
body = updateFollow302SwitchRequest.body
|
3290
|
+
body = updateFollow302SwitchRequest.body
|
2792
3291
|
enterpriseProjectId = updateFollow302SwitchRequest.enterpriseProjectId;
|
2793
|
-
}
|
2794
|
-
else {
|
3292
|
+
} else {
|
2795
3293
|
domainId = updateFollow302SwitchRequest['domain_id'];
|
2796
3294
|
body = updateFollow302SwitchRequest['body'];
|
2797
3295
|
enterpriseProjectId = updateFollow302SwitchRequest['enterprise_project_id'];
|
2798
3296
|
}
|
2799
3297
|
}
|
3298
|
+
|
3299
|
+
|
2800
3300
|
if (domainId === null || domainId === undefined) {
|
2801
|
-
|
3301
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateFollow302Switch.');
|
2802
3302
|
}
|
2803
3303
|
if (body === null || body === undefined) {
|
2804
|
-
throw new RequiredError('body',
|
3304
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2805
3305
|
}
|
2806
3306
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2807
3307
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2808
3308
|
}
|
2809
3309
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3310
|
+
|
2810
3311
|
options.data = body !== undefined ? body : {};
|
2811
3312
|
options.queryParams = localVarQueryParameter;
|
2812
3313
|
options.pathParams = { 'domain_id': domainId, };
|
2813
3314
|
options.headers = localVarHeaderParameter;
|
2814
3315
|
return options;
|
2815
3316
|
},
|
3317
|
+
|
2816
3318
|
/**
|
2817
3319
|
* 设置加速域名HTTPS。通过配置加速域名的HTTPS证书,并将其部署在全网CDN节点,实现HTTPS安全加速。
|
2818
|
-
*
|
3320
|
+
*
|
2819
3321
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2820
3322
|
*/
|
2821
|
-
updateHttpsInfo
|
2822
|
-
|
3323
|
+
updateHttpsInfo(updateHttpsInfoRequest?: UpdateHttpsInfoRequest) {
|
3324
|
+
const options = {
|
2823
3325
|
method: "PUT",
|
2824
3326
|
url: "/v1.0/cdn/domains/{domain_id}/https-info",
|
2825
3327
|
contentType: "application/json",
|
@@ -2828,46 +3330,52 @@ var ParamCreater = function () {
|
|
2828
3330
|
headers: {},
|
2829
3331
|
data: {}
|
2830
3332
|
};
|
2831
|
-
|
2832
|
-
|
2833
|
-
|
2834
|
-
|
2835
|
-
|
3333
|
+
const localVarHeaderParameter = {} as any;
|
3334
|
+
const localVarQueryParameter = {} as any;
|
3335
|
+
let body: any;
|
3336
|
+
|
3337
|
+
let domainId;
|
3338
|
+
|
3339
|
+
let enterpriseProjectId;
|
3340
|
+
|
2836
3341
|
if (updateHttpsInfoRequest !== null && updateHttpsInfoRequest !== undefined) {
|
2837
|
-
if (updateHttpsInfoRequest instanceof
|
3342
|
+
if (updateHttpsInfoRequest instanceof UpdateHttpsInfoRequest) {
|
2838
3343
|
domainId = updateHttpsInfoRequest.domainId;
|
2839
|
-
body = updateHttpsInfoRequest.body
|
3344
|
+
body = updateHttpsInfoRequest.body
|
2840
3345
|
enterpriseProjectId = updateHttpsInfoRequest.enterpriseProjectId;
|
2841
|
-
}
|
2842
|
-
else {
|
3346
|
+
} else {
|
2843
3347
|
domainId = updateHttpsInfoRequest['domain_id'];
|
2844
3348
|
body = updateHttpsInfoRequest['body'];
|
2845
3349
|
enterpriseProjectId = updateHttpsInfoRequest['enterprise_project_id'];
|
2846
3350
|
}
|
2847
3351
|
}
|
3352
|
+
|
3353
|
+
|
2848
3354
|
if (domainId === null || domainId === undefined) {
|
2849
|
-
|
3355
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateHttpsInfo.');
|
2850
3356
|
}
|
2851
3357
|
if (body === null || body === undefined) {
|
2852
|
-
throw new RequiredError('body',
|
3358
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2853
3359
|
}
|
2854
3360
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2855
3361
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2856
3362
|
}
|
2857
3363
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3364
|
+
|
2858
3365
|
options.data = body !== undefined ? body : {};
|
2859
3366
|
options.queryParams = localVarQueryParameter;
|
2860
3367
|
options.pathParams = { 'domain_id': domainId, };
|
2861
3368
|
options.headers = localVarHeaderParameter;
|
2862
3369
|
return options;
|
2863
3370
|
},
|
3371
|
+
|
2864
3372
|
/**
|
2865
3373
|
* 修改回源HOST。回源HOST是CDN节点在回源过程中,在源站访问的站点域名,即http请求头中的host信息。
|
2866
|
-
*
|
3374
|
+
*
|
2867
3375
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2868
3376
|
*/
|
2869
|
-
updateOriginHost
|
2870
|
-
|
3377
|
+
updateOriginHost(updateOriginHostRequest?: UpdateOriginHostRequest) {
|
3378
|
+
const options = {
|
2871
3379
|
method: "PUT",
|
2872
3380
|
url: "/v1.0/cdn/domains/{domain_id}/originhost",
|
2873
3381
|
contentType: "application/json",
|
@@ -2876,46 +3384,52 @@ var ParamCreater = function () {
|
|
2876
3384
|
headers: {},
|
2877
3385
|
data: {}
|
2878
3386
|
};
|
2879
|
-
|
2880
|
-
|
2881
|
-
|
2882
|
-
|
2883
|
-
|
3387
|
+
const localVarHeaderParameter = {} as any;
|
3388
|
+
const localVarQueryParameter = {} as any;
|
3389
|
+
let body: any;
|
3390
|
+
|
3391
|
+
let domainId;
|
3392
|
+
|
3393
|
+
let enterpriseProjectId;
|
3394
|
+
|
2884
3395
|
if (updateOriginHostRequest !== null && updateOriginHostRequest !== undefined) {
|
2885
|
-
if (updateOriginHostRequest instanceof
|
3396
|
+
if (updateOriginHostRequest instanceof UpdateOriginHostRequest) {
|
2886
3397
|
domainId = updateOriginHostRequest.domainId;
|
2887
|
-
body = updateOriginHostRequest.body
|
3398
|
+
body = updateOriginHostRequest.body
|
2888
3399
|
enterpriseProjectId = updateOriginHostRequest.enterpriseProjectId;
|
2889
|
-
}
|
2890
|
-
else {
|
3400
|
+
} else {
|
2891
3401
|
domainId = updateOriginHostRequest['domain_id'];
|
2892
3402
|
body = updateOriginHostRequest['body'];
|
2893
3403
|
enterpriseProjectId = updateOriginHostRequest['enterprise_project_id'];
|
2894
3404
|
}
|
2895
3405
|
}
|
3406
|
+
|
3407
|
+
|
2896
3408
|
if (domainId === null || domainId === undefined) {
|
2897
|
-
|
3409
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateOriginHost.');
|
2898
3410
|
}
|
2899
3411
|
if (body === null || body === undefined) {
|
2900
|
-
throw new RequiredError('body',
|
3412
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2901
3413
|
}
|
2902
3414
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2903
3415
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2904
3416
|
}
|
2905
3417
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3418
|
+
|
2906
3419
|
options.data = body !== undefined ? body : {};
|
2907
3420
|
options.queryParams = localVarQueryParameter;
|
2908
3421
|
options.pathParams = { 'domain_id': domainId, };
|
2909
3422
|
options.headers = localVarHeaderParameter;
|
2910
3423
|
return options;
|
2911
3424
|
},
|
3425
|
+
|
2912
3426
|
/**
|
2913
3427
|
* 修改私有桶开启关闭状态。
|
2914
|
-
*
|
3428
|
+
*
|
2915
3429
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2916
3430
|
*/
|
2917
|
-
updatePrivateBucketAccess
|
2918
|
-
|
3431
|
+
updatePrivateBucketAccess(updatePrivateBucketAccessRequest?: UpdatePrivateBucketAccessRequest) {
|
3432
|
+
const options = {
|
2919
3433
|
method: "PUT",
|
2920
3434
|
url: "/v1.0/cdn/domains/{domain_id}/private-bucket-access",
|
2921
3435
|
contentType: "application/json",
|
@@ -2924,45 +3438,51 @@ var ParamCreater = function () {
|
|
2924
3438
|
headers: {},
|
2925
3439
|
data: {}
|
2926
3440
|
};
|
2927
|
-
|
2928
|
-
|
2929
|
-
|
2930
|
-
|
2931
|
-
|
3441
|
+
const localVarHeaderParameter = {} as any;
|
3442
|
+
const localVarQueryParameter = {} as any;
|
3443
|
+
let body: any;
|
3444
|
+
|
3445
|
+
let domainId;
|
3446
|
+
|
3447
|
+
let enterpriseProjectId;
|
3448
|
+
|
2932
3449
|
if (updatePrivateBucketAccessRequest !== null && updatePrivateBucketAccessRequest !== undefined) {
|
2933
|
-
if (updatePrivateBucketAccessRequest instanceof
|
3450
|
+
if (updatePrivateBucketAccessRequest instanceof UpdatePrivateBucketAccessRequest) {
|
2934
3451
|
domainId = updatePrivateBucketAccessRequest.domainId;
|
2935
3452
|
enterpriseProjectId = updatePrivateBucketAccessRequest.enterpriseProjectId;
|
2936
|
-
body = updatePrivateBucketAccessRequest.body
|
2937
|
-
}
|
2938
|
-
else {
|
3453
|
+
body = updatePrivateBucketAccessRequest.body
|
3454
|
+
} else {
|
2939
3455
|
domainId = updatePrivateBucketAccessRequest['domain_id'];
|
2940
3456
|
enterpriseProjectId = updatePrivateBucketAccessRequest['enterprise_project_id'];
|
2941
3457
|
body = updatePrivateBucketAccessRequest['body'];
|
2942
3458
|
}
|
2943
3459
|
}
|
3460
|
+
|
3461
|
+
|
2944
3462
|
if (domainId === null || domainId === undefined) {
|
2945
|
-
|
3463
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updatePrivateBucketAccess.');
|
2946
3464
|
}
|
2947
3465
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2948
3466
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2949
3467
|
}
|
2950
3468
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3469
|
+
|
2951
3470
|
options.data = body !== undefined ? body : {};
|
2952
3471
|
options.queryParams = localVarQueryParameter;
|
2953
3472
|
options.pathParams = { 'domain_id': domainId, };
|
2954
3473
|
options.headers = localVarHeaderParameter;
|
2955
3474
|
return options;
|
2956
3475
|
},
|
3476
|
+
|
2957
3477
|
/**
|
2958
3478
|
* Range回源是指源站在收到CDN节点回源请求时,根据http请求头中的Range信息返回指定范围的数据给CDN节点。
|
2959
|
-
*
|
3479
|
+
*
|
2960
3480
|
* 开启Range回源前需要确认源站是否支持Range请求,若源站不支持Range请求,开启Range回源将导致资源无法缓存。
|
2961
|
-
*
|
3481
|
+
*
|
2962
3482
|
* Please refer to HUAWEI cloud API Explorer for details.
|
2963
3483
|
*/
|
2964
|
-
updateRangeSwitch
|
2965
|
-
|
3484
|
+
updateRangeSwitch(updateRangeSwitchRequest?: UpdateRangeSwitchRequest) {
|
3485
|
+
const options = {
|
2966
3486
|
method: "PUT",
|
2967
3487
|
url: "/v1.0/cdn/domains/{domain_id}/range-switch",
|
2968
3488
|
contentType: "application/json",
|
@@ -2971,46 +3491,52 @@ var ParamCreater = function () {
|
|
2971
3491
|
headers: {},
|
2972
3492
|
data: {}
|
2973
3493
|
};
|
2974
|
-
|
2975
|
-
|
2976
|
-
|
2977
|
-
|
2978
|
-
|
3494
|
+
const localVarHeaderParameter = {} as any;
|
3495
|
+
const localVarQueryParameter = {} as any;
|
3496
|
+
let body: any;
|
3497
|
+
|
3498
|
+
let domainId;
|
3499
|
+
|
3500
|
+
let enterpriseProjectId;
|
3501
|
+
|
2979
3502
|
if (updateRangeSwitchRequest !== null && updateRangeSwitchRequest !== undefined) {
|
2980
|
-
if (updateRangeSwitchRequest instanceof
|
3503
|
+
if (updateRangeSwitchRequest instanceof UpdateRangeSwitchRequest) {
|
2981
3504
|
domainId = updateRangeSwitchRequest.domainId;
|
2982
|
-
body = updateRangeSwitchRequest.body
|
3505
|
+
body = updateRangeSwitchRequest.body
|
2983
3506
|
enterpriseProjectId = updateRangeSwitchRequest.enterpriseProjectId;
|
2984
|
-
}
|
2985
|
-
else {
|
3507
|
+
} else {
|
2986
3508
|
domainId = updateRangeSwitchRequest['domain_id'];
|
2987
3509
|
body = updateRangeSwitchRequest['body'];
|
2988
3510
|
enterpriseProjectId = updateRangeSwitchRequest['enterprise_project_id'];
|
2989
3511
|
}
|
2990
3512
|
}
|
3513
|
+
|
3514
|
+
|
2991
3515
|
if (domainId === null || domainId === undefined) {
|
2992
|
-
|
3516
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateRangeSwitch.');
|
2993
3517
|
}
|
2994
3518
|
if (body === null || body === undefined) {
|
2995
|
-
throw new RequiredError('body',
|
3519
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
2996
3520
|
}
|
2997
3521
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2998
3522
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2999
3523
|
}
|
3000
3524
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3525
|
+
|
3001
3526
|
options.data = body !== undefined ? body : {};
|
3002
3527
|
options.queryParams = localVarQueryParameter;
|
3003
3528
|
options.pathParams = { 'domain_id': domainId, };
|
3004
3529
|
options.headers = localVarHeaderParameter;
|
3005
3530
|
return options;
|
3006
3531
|
},
|
3532
|
+
|
3007
3533
|
/**
|
3008
3534
|
* 设置Referer过滤规则。通过设置过滤策略,对访问者身份进行识别和过滤,实现限制访问来源的目的。
|
3009
|
-
*
|
3535
|
+
*
|
3010
3536
|
* Please refer to HUAWEI cloud API Explorer for details.
|
3011
3537
|
*/
|
3012
|
-
updateRefer
|
3013
|
-
|
3538
|
+
updateRefer(updateReferRequest?: UpdateReferRequest) {
|
3539
|
+
const options = {
|
3014
3540
|
method: "PUT",
|
3015
3541
|
url: "/v1.0/cdn/domains/{domain_id}/referer",
|
3016
3542
|
contentType: "application/json",
|
@@ -3019,46 +3545,52 @@ var ParamCreater = function () {
|
|
3019
3545
|
headers: {},
|
3020
3546
|
data: {}
|
3021
3547
|
};
|
3022
|
-
|
3023
|
-
|
3024
|
-
|
3025
|
-
|
3026
|
-
|
3548
|
+
const localVarHeaderParameter = {} as any;
|
3549
|
+
const localVarQueryParameter = {} as any;
|
3550
|
+
let body: any;
|
3551
|
+
|
3552
|
+
let domainId;
|
3553
|
+
|
3554
|
+
let enterpriseProjectId;
|
3555
|
+
|
3027
3556
|
if (updateReferRequest !== null && updateReferRequest !== undefined) {
|
3028
|
-
if (updateReferRequest instanceof
|
3557
|
+
if (updateReferRequest instanceof UpdateReferRequest) {
|
3029
3558
|
domainId = updateReferRequest.domainId;
|
3030
|
-
body = updateReferRequest.body
|
3559
|
+
body = updateReferRequest.body
|
3031
3560
|
enterpriseProjectId = updateReferRequest.enterpriseProjectId;
|
3032
|
-
}
|
3033
|
-
else {
|
3561
|
+
} else {
|
3034
3562
|
domainId = updateReferRequest['domain_id'];
|
3035
3563
|
body = updateReferRequest['body'];
|
3036
3564
|
enterpriseProjectId = updateReferRequest['enterprise_project_id'];
|
3037
3565
|
}
|
3038
3566
|
}
|
3567
|
+
|
3568
|
+
|
3039
3569
|
if (domainId === null || domainId === undefined) {
|
3040
|
-
|
3570
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateRefer.');
|
3041
3571
|
}
|
3042
3572
|
if (body === null || body === undefined) {
|
3043
|
-
throw new RequiredError('body',
|
3573
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3044
3574
|
}
|
3045
3575
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3046
3576
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3047
3577
|
}
|
3048
3578
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3579
|
+
|
3049
3580
|
options.data = body !== undefined ? body : {};
|
3050
3581
|
options.queryParams = localVarQueryParameter;
|
3051
3582
|
options.pathParams = { 'domain_id': domainId, };
|
3052
3583
|
options.headers = localVarHeaderParameter;
|
3053
3584
|
return options;
|
3054
3585
|
},
|
3586
|
+
|
3055
3587
|
/**
|
3056
3588
|
* 新增/修改域名响应头配置。
|
3057
|
-
*
|
3589
|
+
*
|
3058
3590
|
* Please refer to HUAWEI cloud API Explorer for details.
|
3059
3591
|
*/
|
3060
|
-
updateResponseHeader
|
3061
|
-
|
3592
|
+
updateResponseHeader(updateResponseHeaderRequest?: UpdateResponseHeaderRequest) {
|
3593
|
+
const options = {
|
3062
3594
|
method: "PUT",
|
3063
3595
|
url: "/v1.0/cdn/domains/{domain_id}/response-header",
|
3064
3596
|
contentType: "application/json",
|
@@ -3067,59 +3599,61 @@ var ParamCreater = function () {
|
|
3067
3599
|
headers: {},
|
3068
3600
|
data: {}
|
3069
3601
|
};
|
3070
|
-
|
3071
|
-
|
3072
|
-
|
3073
|
-
|
3074
|
-
|
3602
|
+
const localVarHeaderParameter = {} as any;
|
3603
|
+
const localVarQueryParameter = {} as any;
|
3604
|
+
let body: any;
|
3605
|
+
|
3606
|
+
let domainId;
|
3607
|
+
|
3608
|
+
let enterpriseProjectId;
|
3609
|
+
|
3075
3610
|
if (updateResponseHeaderRequest !== null && updateResponseHeaderRequest !== undefined) {
|
3076
|
-
if (updateResponseHeaderRequest instanceof
|
3611
|
+
if (updateResponseHeaderRequest instanceof UpdateResponseHeaderRequest) {
|
3077
3612
|
domainId = updateResponseHeaderRequest.domainId;
|
3078
|
-
body = updateResponseHeaderRequest.body
|
3613
|
+
body = updateResponseHeaderRequest.body
|
3079
3614
|
enterpriseProjectId = updateResponseHeaderRequest.enterpriseProjectId;
|
3080
|
-
}
|
3081
|
-
else {
|
3615
|
+
} else {
|
3082
3616
|
domainId = updateResponseHeaderRequest['domain_id'];
|
3083
3617
|
body = updateResponseHeaderRequest['body'];
|
3084
3618
|
enterpriseProjectId = updateResponseHeaderRequest['enterprise_project_id'];
|
3085
3619
|
}
|
3086
3620
|
}
|
3621
|
+
|
3622
|
+
|
3087
3623
|
if (domainId === null || domainId === undefined) {
|
3088
|
-
|
3624
|
+
throw new RequiredError('domainId','Required parameter domainId was null or undefined when calling updateResponseHeader.');
|
3089
3625
|
}
|
3090
3626
|
if (body === null || body === undefined) {
|
3091
|
-
throw new RequiredError('body',
|
3627
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
3092
3628
|
}
|
3093
3629
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
3094
3630
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
3095
3631
|
}
|
3096
3632
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3633
|
+
|
3097
3634
|
options.data = body !== undefined ? body : {};
|
3098
3635
|
options.queryParams = localVarQueryParameter;
|
3099
3636
|
options.pathParams = { 'domain_id': domainId, };
|
3100
3637
|
options.headers = localVarHeaderParameter;
|
3101
3638
|
return options;
|
3102
3639
|
},
|
3103
|
-
|
3640
|
+
|
3641
|
+
}
|
3104
3642
|
};
|
3105
|
-
|
3106
|
-
function newClient(client) {
|
3643
|
+
|
3644
|
+
function newClient(client: HcClient): CdnClient {
|
3107
3645
|
return new CdnClient(client);
|
3108
3646
|
}
|
3647
|
+
|
3109
3648
|
/**
|
3110
3649
|
*
|
3111
3650
|
* @export
|
3112
3651
|
* @class RequiredError
|
3113
3652
|
* @extends {Error}
|
3114
3653
|
*/
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
_this.field = field;
|
3120
|
-
_this.name = "RequiredError";
|
3121
|
-
return _this;
|
3654
|
+
export class RequiredError extends Error {
|
3655
|
+
name: "RequiredError" = "RequiredError";
|
3656
|
+
constructor(public field: string, msg?: string) {
|
3657
|
+
super(msg);
|
3122
3658
|
}
|
3123
|
-
|
3124
|
-
}(Error));
|
3125
|
-
exports.RequiredError = RequiredError;
|
3659
|
+
}
|