From 4498bd97e7cfcb3db36f5969de80914194d519bc Mon Sep 17 00:00:00 2001 From: Tanc009 Date: Thu, 17 Dec 2020 09:09:07 +0000 Subject: [PATCH] jdcloud-sdk-java --- cdn/ChangeLog.md | 3 +- cdn/pom.xml | 2 +- .../sdk/service/cdn/client/CdnClient.java | 42 ++ .../client/QueryAreaIspListV2Executor.java | 50 ++ .../QueryCustomizedDirBandWidthExecutor.java | 50 ++ .../client/QueryJBoxAvgBandwidthExecutor.java | 50 ++ .../sdk/service/cdn/model/FlowItem.java | 170 ++++++ .../cdn/model/QueryAreaIspListV2Request.java | 39 ++ .../cdn/model/QueryAreaIspListV2Response.java | 39 ++ .../cdn/model/QueryAreaIspListV2Result.java | 492 ++++++++++++++++++ .../cdn/model/QueryAvgBandwidthItem.java | 16 +- .../QueryCustomizedDirBandWidthRequest.java | 171 ++++++ .../QueryCustomizedDirBandWidthResponse.java | 39 ++ .../QueryCustomizedDirBandWidthResult.java | 120 +++++ .../model/QueryJBoxAvgBandwidthRequest.java | 244 +++++++++ .../model/QueryJBoxAvgBandwidthResponse.java | 39 ++ .../model/QueryJBoxAvgBandwidthResult.java | 121 +++++ .../cdn/model/QueryRefreshTaskRequest.java | 66 +++ 18 files changed, 1743 insertions(+), 10 deletions(-) create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryAreaIspListV2Executor.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryCustomizedDirBandWidthExecutor.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryJBoxAvgBandwidthExecutor.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/FlowItem.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Request.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Response.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Result.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthRequest.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResponse.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResult.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthRequest.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResponse.java create mode 100644 cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResult.java diff --git a/cdn/ChangeLog.md b/cdn/ChangeLog.md index dde799935..6fce41898 100644 --- a/cdn/ChangeLog.md +++ b/cdn/ChangeLog.md @@ -1,11 +1,12 @@ # 更新历史 # -API版本:0.10.23 +API版本:0.10.24 | 发布时间 | 版本号 | 更新 | 说明 | | ---------- | ------ | ---------------------------------------------------------- | ---- | +| 2020-11-05 | 0.10.24 |增加控制台获取地域运行商新接口 | | 2020-10-14 | 0.10.23 |增加子账号设置与查询刷新预热额度接口 | | 2020-08-25 | 0.10.22 |点播域名创建支持指定模板 | | 2020-08-14 | 0.10.21 |增加头条回源鉴权参数配置和dash鉴权参数配置接口| diff --git a/cdn/pom.xml b/cdn/pom.xml index 2a0f7cd94..5a4e4d5f8 100644 --- a/cdn/pom.xml +++ b/cdn/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.jdcloud.sdk cdn - 0.10.23 + 0.10.24 jar cdn http://www.jdcloud.com diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/CdnClient.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/CdnClient.java index 4e6e17a9c..026839bfb 100644 --- a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/CdnClient.java +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/CdnClient.java @@ -88,6 +88,9 @@ import com.jdcloud.sdk.service.cdn.model.SetDomainConfigRequest; import com.jdcloud.sdk.service.cdn.model.SetDomainConfigResponse; import com.jdcloud.sdk.service.cdn.client.SetDomainConfigExecutor; +import com.jdcloud.sdk.service.cdn.model.QueryCustomizedDirBandWidthRequest; +import com.jdcloud.sdk.service.cdn.model.QueryCustomizedDirBandWidthResponse; +import com.jdcloud.sdk.service.cdn.client.QueryCustomizedDirBandWidthExecutor; import com.jdcloud.sdk.service.cdn.model.SetRefreshLimitRequest; import com.jdcloud.sdk.service.cdn.model.SetRefreshLimitResponse; import com.jdcloud.sdk.service.cdn.client.SetRefreshLimitExecutor; @@ -259,6 +262,9 @@ import com.jdcloud.sdk.service.cdn.model.CreateWafWhiteRuleRequest; import com.jdcloud.sdk.service.cdn.model.CreateWafWhiteRuleResponse; import com.jdcloud.sdk.service.cdn.client.CreateWafWhiteRuleExecutor; +import com.jdcloud.sdk.service.cdn.model.QueryAreaIspListV2Request; +import com.jdcloud.sdk.service.cdn.model.QueryAreaIspListV2Response; +import com.jdcloud.sdk.service.cdn.client.QueryAreaIspListV2Executor; import com.jdcloud.sdk.service.cdn.model.QueryAvgBandwidthForPCdnRequest; import com.jdcloud.sdk.service.cdn.model.QueryAvgBandwidthForPCdnResponse; import com.jdcloud.sdk.service.cdn.client.QueryAvgBandwidthForPCdnExecutor; @@ -424,6 +430,9 @@ import com.jdcloud.sdk.service.cdn.model.QueryBackSourcePathRequest; import com.jdcloud.sdk.service.cdn.model.QueryBackSourcePathResponse; import com.jdcloud.sdk.service.cdn.client.QueryBackSourcePathExecutor; +import com.jdcloud.sdk.service.cdn.model.QueryJBoxAvgBandwidthRequest; +import com.jdcloud.sdk.service.cdn.model.QueryJBoxAvgBandwidthResponse; +import com.jdcloud.sdk.service.cdn.client.QueryJBoxAvgBandwidthExecutor; import com.jdcloud.sdk.service.cdn.model.SetSourceAuthConfigRequest; import com.jdcloud.sdk.service.cdn.model.SetSourceAuthConfigResponse; import com.jdcloud.sdk.service.cdn.client.SetSourceAuthConfigExecutor; @@ -836,6 +845,17 @@ public SetDomainConfigResponse setDomainConfig(SetDomainConfigRequest request) t return new SetDomainConfigExecutor().client(this).execute(request); } + /** + * 查询定制的目录带宽,仅有部分用户支持该功能 + * + * @param request + * @return + * @throws JdcloudSdkException + */ + public QueryCustomizedDirBandWidthResponse queryCustomizedDirBandWidth(QueryCustomizedDirBandWidthRequest request) throws JdcloudSdkException { + return new QueryCustomizedDirBandWidthExecutor().client(this).execute(request); + } + /** * 设置用户刷新预热限额 * @@ -1463,6 +1483,17 @@ public CreateWafWhiteRuleResponse createWafWhiteRule(CreateWafWhiteRuleRequest r return new CreateWafWhiteRuleExecutor().client(this).execute(request); } + /** + * 查找地域运营商列表 + * + * @param request + * @return + * @throws JdcloudSdkException + */ + public QueryAreaIspListV2Response queryAreaIspListV2(QueryAreaIspListV2Request request) throws JdcloudSdkException { + return new QueryAreaIspListV2Executor().client(this).execute(request); + } + /** * 查询平均带宽 * @@ -2068,6 +2099,17 @@ public QueryBackSourcePathResponse queryBackSourcePath(QueryBackSourcePathReques return new QueryBackSourcePathExecutor().client(this).execute(request); } + /** + * 查询平均带宽 + * + * @param request + * @return + * @throws JdcloudSdkException + */ + public QueryJBoxAvgBandwidthResponse queryJBoxAvgBandwidth(QueryJBoxAvgBandwidthRequest request) throws JdcloudSdkException { + return new QueryJBoxAvgBandwidthExecutor().client(this).execute(request); + } + /** * 回源鉴权设置 * diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryAreaIspListV2Executor.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryAreaIspListV2Executor.java new file mode 100644 index 000000000..0ef47ee69 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryAreaIspListV2Executor.java @@ -0,0 +1,50 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.client; + +import com.jdcloud.sdk.client.JdcloudExecutor; +import com.jdcloud.sdk.service.JdcloudResponse; +import com.jdcloud.sdk.service.cdn.model.QueryAreaIspListV2Response; + +/** + * 查找地域运营商列表 + */ +class QueryAreaIspListV2Executor extends JdcloudExecutor { + + @Override + public String method() { + return "GET"; + } + + @Override + public String url() { + return "/console:areaIspListV2"; + } + + @Override + public Class returnType() { + return QueryAreaIspListV2Response.class; + } +} diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryCustomizedDirBandWidthExecutor.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryCustomizedDirBandWidthExecutor.java new file mode 100644 index 000000000..b095cf68e --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryCustomizedDirBandWidthExecutor.java @@ -0,0 +1,50 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.client; + +import com.jdcloud.sdk.client.JdcloudExecutor; +import com.jdcloud.sdk.service.JdcloudResponse; +import com.jdcloud.sdk.service.cdn.model.QueryCustomizedDirBandWidthResponse; + +/** + * 查询定制的目录带宽,仅有部分用户支持该功能 + */ +class QueryCustomizedDirBandWidthExecutor extends JdcloudExecutor { + + @Override + public String method() { + return "POST"; + } + + @Override + public String url() { + return "/statistics:queryCustomizedDirBandWidth"; + } + + @Override + public Class returnType() { + return QueryCustomizedDirBandWidthResponse.class; + } +} diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryJBoxAvgBandwidthExecutor.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryJBoxAvgBandwidthExecutor.java new file mode 100644 index 000000000..06db1f2a7 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/client/QueryJBoxAvgBandwidthExecutor.java @@ -0,0 +1,50 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * PCdn统计查询接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.client; + +import com.jdcloud.sdk.client.JdcloudExecutor; +import com.jdcloud.sdk.service.JdcloudResponse; +import com.jdcloud.sdk.service.cdn.model.QueryJBoxAvgBandwidthResponse; + +/** + * 查询平均带宽 + */ +class QueryJBoxAvgBandwidthExecutor extends JdcloudExecutor { + + @Override + public String method() { + return "GET"; + } + + @Override + public String url() { + return "/jdbox:queryAvgBandwidth"; + } + + @Override + public Class returnType() { + return QueryJBoxAvgBandwidthResponse.class; + } +} diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/FlowItem.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/FlowItem.java new file mode 100644 index 000000000..fe87f9488 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/FlowItem.java @@ -0,0 +1,170 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + * + * + * + * Contact: + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + + +/** + * flowItem + */ +public class FlowItem implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 时间点,2020-12-08 00:00 + */ + private String time; + + /** + * 目录流量(Byte) + */ + private Double flow; + + /** + * 目录 + */ + private String dir; + + /** + * 目录访问次数 + */ + private Long pv; + + + /** + * get 时间点,2020-12-08 00:00 + * + * @return + */ + public String getTime() { + return time; + } + + /** + * set 时间点,2020-12-08 00:00 + * + * @param time + */ + public void setTime(String time) { + this.time = time; + } + + /** + * get 目录流量(Byte) + * + * @return + */ + public Double getFlow() { + return flow; + } + + /** + * set 目录流量(Byte) + * + * @param flow + */ + public void setFlow(Double flow) { + this.flow = flow; + } + + /** + * get 目录 + * + * @return + */ + public String getDir() { + return dir; + } + + /** + * set 目录 + * + * @param dir + */ + public void setDir(String dir) { + this.dir = dir; + } + + /** + * get 目录访问次数 + * + * @return + */ + public Long getPv() { + return pv; + } + + /** + * set 目录访问次数 + * + * @param pv + */ + public void setPv(Long pv) { + this.pv = pv; + } + + + /** + * set 时间点,2020-12-08 00:00 + * + * @param time + */ + public FlowItem time(String time) { + this.time = time; + return this; + } + + /** + * set 目录流量(Byte) + * + * @param flow + */ + public FlowItem flow(Double flow) { + this.flow = flow; + return this; + } + + /** + * set 目录 + * + * @param dir + */ + public FlowItem dir(String dir) { + this.dir = dir; + return this; + } + + /** + * set 目录访问次数 + * + * @param pv + */ + public FlowItem pv(Long pv) { + this.pv = pv; + return this; + } + + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Request.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Request.java new file mode 100644 index 000000000..4ee318cef --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Request.java @@ -0,0 +1,39 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import com.jdcloud.sdk.service.JdcloudRequest; + +/** + * 查找地域运营商列表 + */ +public class QueryAreaIspListV2Request extends JdcloudRequest implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + + + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Response.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Response.java new file mode 100644 index 000000000..ed77d8d2e --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Response.java @@ -0,0 +1,39 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import com.jdcloud.sdk.service.JdcloudResponse; + +/** + * 查找地域运营商列表 + */ +public class QueryAreaIspListV2Response extends JdcloudResponse implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + + + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Result.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Result.java new file mode 100644 index 000000000..664e265ec --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAreaIspListV2Result.java @@ -0,0 +1,492 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import java.util.List; +import java.util.ArrayList; +import com.jdcloud.sdk.service.cdn.model.AreaIspItem; +import com.jdcloud.sdk.service.JdcloudResult; + +/** + * 查找地域运营商列表 + */ +public class QueryAreaIspListV2Result extends JdcloudResult implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + /** + * mainLand + */ + private List mainLand; + + /** + * overseas + */ + private List overseas; + + /** + * isp + */ + private List isp; + + /** + * africa + */ + private List africa; + + /** + * oceania + */ + private List oceania; + + /** + * southAmerica + */ + private List southAmerica; + + /** + * northAmerica + */ + private List northAmerica; + + /** + * asia + */ + private List asia; + + /** + * europe + */ + private List europe; + + /** + * midEast + */ + private List midEast; + + + /** + * get mainLand + * + * @return + */ + public List getMainLand() { + return mainLand; + } + + /** + * set mainLand + * + * @param mainLand + */ + public void setMainLand(List mainLand) { + this.mainLand = mainLand; + } + + /** + * get overseas + * + * @return + */ + public List getOverseas() { + return overseas; + } + + /** + * set overseas + * + * @param overseas + */ + public void setOverseas(List overseas) { + this.overseas = overseas; + } + + /** + * get isp + * + * @return + */ + public List getIsp() { + return isp; + } + + /** + * set isp + * + * @param isp + */ + public void setIsp(List isp) { + this.isp = isp; + } + + /** + * get africa + * + * @return + */ + public List getAfrica() { + return africa; + } + + /** + * set africa + * + * @param africa + */ + public void setAfrica(List africa) { + this.africa = africa; + } + + /** + * get oceania + * + * @return + */ + public List getOceania() { + return oceania; + } + + /** + * set oceania + * + * @param oceania + */ + public void setOceania(List oceania) { + this.oceania = oceania; + } + + /** + * get southAmerica + * + * @return + */ + public List getSouthAmerica() { + return southAmerica; + } + + /** + * set southAmerica + * + * @param southAmerica + */ + public void setSouthAmerica(List southAmerica) { + this.southAmerica = southAmerica; + } + + /** + * get northAmerica + * + * @return + */ + public List getNorthAmerica() { + return northAmerica; + } + + /** + * set northAmerica + * + * @param northAmerica + */ + public void setNorthAmerica(List northAmerica) { + this.northAmerica = northAmerica; + } + + /** + * get asia + * + * @return + */ + public List getAsia() { + return asia; + } + + /** + * set asia + * + * @param asia + */ + public void setAsia(List asia) { + this.asia = asia; + } + + /** + * get europe + * + * @return + */ + public List getEurope() { + return europe; + } + + /** + * set europe + * + * @param europe + */ + public void setEurope(List europe) { + this.europe = europe; + } + + /** + * get midEast + * + * @return + */ + public List getMidEast() { + return midEast; + } + + /** + * set midEast + * + * @param midEast + */ + public void setMidEast(List midEast) { + this.midEast = midEast; + } + + + /** + * set mainLand + * + * @param mainLand + */ + public QueryAreaIspListV2Result mainLand(List mainLand) { + this.mainLand = mainLand; + return this; + } + + /** + * set overseas + * + * @param overseas + */ + public QueryAreaIspListV2Result overseas(List overseas) { + this.overseas = overseas; + return this; + } + + /** + * set isp + * + * @param isp + */ + public QueryAreaIspListV2Result isp(List isp) { + this.isp = isp; + return this; + } + + /** + * set africa + * + * @param africa + */ + public QueryAreaIspListV2Result africa(List africa) { + this.africa = africa; + return this; + } + + /** + * set oceania + * + * @param oceania + */ + public QueryAreaIspListV2Result oceania(List oceania) { + this.oceania = oceania; + return this; + } + + /** + * set southAmerica + * + * @param southAmerica + */ + public QueryAreaIspListV2Result southAmerica(List southAmerica) { + this.southAmerica = southAmerica; + return this; + } + + /** + * set northAmerica + * + * @param northAmerica + */ + public QueryAreaIspListV2Result northAmerica(List northAmerica) { + this.northAmerica = northAmerica; + return this; + } + + /** + * set asia + * + * @param asia + */ + public QueryAreaIspListV2Result asia(List asia) { + this.asia = asia; + return this; + } + + /** + * set europe + * + * @param europe + */ + public QueryAreaIspListV2Result europe(List europe) { + this.europe = europe; + return this; + } + + /** + * set midEast + * + * @param midEast + */ + public QueryAreaIspListV2Result midEast(List midEast) { + this.midEast = midEast; + return this; + } + + + /** + * add item to mainLand + * + * @param mainLand + */ + public void addMainLand(AreaIspItem mainLand) { + if (this.mainLand == null) { + this.mainLand = new ArrayList<>(); + } + this.mainLand.add(mainLand); + } + + /** + * add item to overseas + * + * @param oversea + */ + public void addOversea(AreaIspItem oversea) { + if (this.overseas == null) { + this.overseas = new ArrayList<>(); + } + this.overseas.add(oversea); + } + + /** + * add item to isp + * + * @param isp + */ + public void addIsp(AreaIspItem isp) { + if (this.isp == null) { + this.isp = new ArrayList<>(); + } + this.isp.add(isp); + } + + /** + * add item to africa + * + * @param africa + */ + public void addAfrica(AreaIspItem africa) { + if (this.africa == null) { + this.africa = new ArrayList<>(); + } + this.africa.add(africa); + } + + /** + * add item to oceania + * + * @param oceania + */ + public void addOceania(AreaIspItem oceania) { + if (this.oceania == null) { + this.oceania = new ArrayList<>(); + } + this.oceania.add(oceania); + } + + /** + * add item to southAmerica + * + * @param southAmerica + */ + public void addSouthAmerica(AreaIspItem southAmerica) { + if (this.southAmerica == null) { + this.southAmerica = new ArrayList<>(); + } + this.southAmerica.add(southAmerica); + } + + /** + * add item to northAmerica + * + * @param northAmerica + */ + public void addNorthAmerica(AreaIspItem northAmerica) { + if (this.northAmerica == null) { + this.northAmerica = new ArrayList<>(); + } + this.northAmerica.add(northAmerica); + } + + /** + * add item to asia + * + * @param asia + */ + public void addAsia(AreaIspItem asia) { + if (this.asia == null) { + this.asia = new ArrayList<>(); + } + this.asia.add(asia); + } + + /** + * add item to europe + * + * @param europe + */ + public void addEurope(AreaIspItem europe) { + if (this.europe == null) { + this.europe = new ArrayList<>(); + } + this.europe.add(europe); + } + + /** + * add item to midEast + * + * @param midEast + */ + public void addMidEast(AreaIspItem midEast) { + if (this.midEast == null) { + this.midEast = new ArrayList<>(); + } + this.midEast.add(midEast); + } + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAvgBandwidthItem.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAvgBandwidthItem.java index 5480c0312..117c60c2c 100644 --- a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAvgBandwidthItem.java +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryAvgBandwidthItem.java @@ -33,12 +33,12 @@ public class QueryAvgBandwidthItem implements java.io.Serializable { private static final long serialVersionUID = 1L; /** - * startTime + * 五分钟序列,202003021100 表示 从 2020-03-02 11:00 到 2020-03-02 11:05 这个时段 */ private String startTime; /** - * avgbandwidth + * 平均带宽kbps */ private Double avgbandwidth; @@ -49,7 +49,7 @@ public class QueryAvgBandwidthItem implements java.io.Serializable { /** - * get startTime + * get 五分钟序列,202003021100 表示 从 2020-03-02 11:00 到 2020-03-02 11:05 这个时段 * * @return */ @@ -58,7 +58,7 @@ public String getStartTime() { } /** - * set startTime + * set 五分钟序列,202003021100 表示 从 2020-03-02 11:00 到 2020-03-02 11:05 这个时段 * * @param startTime */ @@ -67,7 +67,7 @@ public void setStartTime(String startTime) { } /** - * get avgbandwidth + * get 平均带宽kbps * * @return */ @@ -76,7 +76,7 @@ public Double getAvgbandwidth() { } /** - * set avgbandwidth + * set 平均带宽kbps * * @param avgbandwidth */ @@ -104,7 +104,7 @@ public void setIsp(String isp) { /** - * set startTime + * set 五分钟序列,202003021100 表示 从 2020-03-02 11:00 到 2020-03-02 11:05 这个时段 * * @param startTime */ @@ -114,7 +114,7 @@ public QueryAvgBandwidthItem startTime(String startTime) { } /** - * set avgbandwidth + * set 平均带宽kbps * * @param avgbandwidth */ diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthRequest.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthRequest.java new file mode 100644 index 000000000..a5c438d96 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthRequest.java @@ -0,0 +1,171 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import com.jdcloud.sdk.service.JdcloudRequest; + +/** + * 查询定制的目录带宽,仅有部分用户支持该功能 + */ +public class QueryCustomizedDirBandWidthRequest extends JdcloudRequest implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:00:00Z + */ + private String startTime; + + /** + * 查询截止时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:20:00Z,开始时间和结束时间跨度 不能超过4个小时 + */ + private String endTime; + + /** + * 需要查询的域名, 必须为用户pin下有权限的域名,该接口仅支持单域名查询 + */ + private String domain; + + /** + * 需要过滤的目录,以正斜线(/)开头,不填表示查询所有目录。查询目录同时需要以正斜线(/)结尾。 如:/path1/path2/path3/ + */ + private String dir; + + + /** + * get 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:00:00Z + * + * @return + */ + public String getStartTime() { + return startTime; + } + + /** + * set 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:00:00Z + * + * @param startTime + */ + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + /** + * get 查询截止时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:20:00Z,开始时间和结束时间跨度 不能超过4个小时 + * + * @return + */ + public String getEndTime() { + return endTime; + } + + /** + * set 查询截止时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:20:00Z,开始时间和结束时间跨度 不能超过4个小时 + * + * @param endTime + */ + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + /** + * get 需要查询的域名, 必须为用户pin下有权限的域名,该接口仅支持单域名查询 + * + * @return + */ + public String getDomain() { + return domain; + } + + /** + * set 需要查询的域名, 必须为用户pin下有权限的域名,该接口仅支持单域名查询 + * + * @param domain + */ + public void setDomain(String domain) { + this.domain = domain; + } + + /** + * get 需要过滤的目录,以正斜线(/)开头,不填表示查询所有目录。查询目录同时需要以正斜线(/)结尾。 如:/path1/path2/path3/ + * + * @return + */ + public String getDir() { + return dir; + } + + /** + * set 需要过滤的目录,以正斜线(/)开头,不填表示查询所有目录。查询目录同时需要以正斜线(/)结尾。 如:/path1/path2/path3/ + * + * @param dir + */ + public void setDir(String dir) { + this.dir = dir; + } + + + /** + * set 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:00:00Z + * + * @param startTime + */ + public QueryCustomizedDirBandWidthRequest startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * set 查询截止时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2020-12-07T16:20:00Z,开始时间和结束时间跨度 不能超过4个小时 + * + * @param endTime + */ + public QueryCustomizedDirBandWidthRequest endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * set 需要查询的域名, 必须为用户pin下有权限的域名,该接口仅支持单域名查询 + * + * @param domain + */ + public QueryCustomizedDirBandWidthRequest domain(String domain) { + this.domain = domain; + return this; + } + + /** + * set 需要过滤的目录,以正斜线(/)开头,不填表示查询所有目录。查询目录同时需要以正斜线(/)结尾。 如:/path1/path2/path3/ + * + * @param dir + */ + public QueryCustomizedDirBandWidthRequest dir(String dir) { + this.dir = dir; + return this; + } + + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResponse.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResponse.java new file mode 100644 index 000000000..402a9ba51 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResponse.java @@ -0,0 +1,39 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import com.jdcloud.sdk.service.JdcloudResponse; + +/** + * 查询定制的目录带宽,仅有部分用户支持该功能 + */ +public class QueryCustomizedDirBandWidthResponse extends JdcloudResponse implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + + + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResult.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResult.java new file mode 100644 index 000000000..d7bc07568 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryCustomizedDirBandWidthResult.java @@ -0,0 +1,120 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * 统计查询类接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import java.util.List; +import java.util.ArrayList; +import com.jdcloud.sdk.service.cdn.model.FlowItem; +import com.jdcloud.sdk.service.JdcloudResult; + +/** + * 查询定制的目录带宽,仅有部分用户支持该功能 + */ +public class QueryCustomizedDirBandWidthResult extends JdcloudResult implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + /** + * domain + */ + private String domain; + + /** + * data + */ + private List data; + + + /** + * get domain + * + * @return + */ + public String getDomain() { + return domain; + } + + /** + * set domain + * + * @param domain + */ + public void setDomain(String domain) { + this.domain = domain; + } + + /** + * get data + * + * @return + */ + public List getData() { + return data; + } + + /** + * set data + * + * @param data + */ + public void setData(List data) { + this.data = data; + } + + + /** + * set domain + * + * @param domain + */ + public QueryCustomizedDirBandWidthResult domain(String domain) { + this.domain = domain; + return this; + } + + /** + * set data + * + * @param data + */ + public QueryCustomizedDirBandWidthResult data(List data) { + this.data = data; + return this; + } + + + /** + * add item to data + * + * @param data + */ + public void addData(FlowItem data) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(data); + } + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthRequest.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthRequest.java new file mode 100644 index 000000000..7831a5b46 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthRequest.java @@ -0,0 +1,244 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * PCdn统计查询接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import com.jdcloud.sdk.annotation.Required; +import com.jdcloud.sdk.service.JdcloudRequest; + +/** + * 查询平均带宽 + */ +public class QueryJBoxAvgBandwidthRequest extends JdcloudRequest implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 指定查询开始时间(格式:201906011000),返回数据包含该时间点。 + * Required:true + */ + @Required + private String starttime; + + /** + * 指定查询结束时间(格式:201906011100),返回数据不包含该时间点 + * Required:true + */ + @Required + private String stoptime; + + /** + * 插件pin,多个用,隔开 + * Required:true + */ + @Required + private String pluginPin; + + /** + * 按照设备ID查询设备带宽,即macaddr,多个用,隔开 + */ + private String clientid; + + /** + * 用于支持分页查询,默认为1,表示第几页。 + */ + private Integer page; + + /** + * 用于支持分页查询,表示每页返回多少条数据,默认每页返回10条数据,size必须是10的整数倍,并且最大值是100。 + */ + private Integer size; + + + /** + * get 指定查询开始时间(格式:201906011000),返回数据包含该时间点。 + * + * @return + */ + public String getStarttime() { + return starttime; + } + + /** + * set 指定查询开始时间(格式:201906011000),返回数据包含该时间点。 + * + * @param starttime + */ + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + /** + * get 指定查询结束时间(格式:201906011100),返回数据不包含该时间点 + * + * @return + */ + public String getStoptime() { + return stoptime; + } + + /** + * set 指定查询结束时间(格式:201906011100),返回数据不包含该时间点 + * + * @param stoptime + */ + public void setStoptime(String stoptime) { + this.stoptime = stoptime; + } + + /** + * get 插件pin,多个用,隔开 + * + * @return + */ + public String getPluginPin() { + return pluginPin; + } + + /** + * set 插件pin,多个用,隔开 + * + * @param pluginPin + */ + public void setPluginPin(String pluginPin) { + this.pluginPin = pluginPin; + } + + /** + * get 按照设备ID查询设备带宽,即macaddr,多个用,隔开 + * + * @return + */ + public String getClientid() { + return clientid; + } + + /** + * set 按照设备ID查询设备带宽,即macaddr,多个用,隔开 + * + * @param clientid + */ + public void setClientid(String clientid) { + this.clientid = clientid; + } + + /** + * get 用于支持分页查询,默认为1,表示第几页。 + * + * @return + */ + public Integer getPage() { + return page; + } + + /** + * set 用于支持分页查询,默认为1,表示第几页。 + * + * @param page + */ + public void setPage(Integer page) { + this.page = page; + } + + /** + * get 用于支持分页查询,表示每页返回多少条数据,默认每页返回10条数据,size必须是10的整数倍,并且最大值是100。 + * + * @return + */ + public Integer getSize() { + return size; + } + + /** + * set 用于支持分页查询,表示每页返回多少条数据,默认每页返回10条数据,size必须是10的整数倍,并且最大值是100。 + * + * @param size + */ + public void setSize(Integer size) { + this.size = size; + } + + + /** + * set 指定查询开始时间(格式:201906011000),返回数据包含该时间点。 + * + * @param starttime + */ + public QueryJBoxAvgBandwidthRequest starttime(String starttime) { + this.starttime = starttime; + return this; + } + + /** + * set 指定查询结束时间(格式:201906011100),返回数据不包含该时间点 + * + * @param stoptime + */ + public QueryJBoxAvgBandwidthRequest stoptime(String stoptime) { + this.stoptime = stoptime; + return this; + } + + /** + * set 插件pin,多个用,隔开 + * + * @param pluginPin + */ + public QueryJBoxAvgBandwidthRequest pluginPin(String pluginPin) { + this.pluginPin = pluginPin; + return this; + } + + /** + * set 按照设备ID查询设备带宽,即macaddr,多个用,隔开 + * + * @param clientid + */ + public QueryJBoxAvgBandwidthRequest clientid(String clientid) { + this.clientid = clientid; + return this; + } + + /** + * set 用于支持分页查询,默认为1,表示第几页。 + * + * @param page + */ + public QueryJBoxAvgBandwidthRequest page(Integer page) { + this.page = page; + return this; + } + + /** + * set 用于支持分页查询,表示每页返回多少条数据,默认每页返回10条数据,size必须是10的整数倍,并且最大值是100。 + * + * @param size + */ + public QueryJBoxAvgBandwidthRequest size(Integer size) { + this.size = size; + return this; + } + + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResponse.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResponse.java new file mode 100644 index 000000000..5a7b657f0 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResponse.java @@ -0,0 +1,39 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * PCdn统计查询接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import com.jdcloud.sdk.service.JdcloudResponse; + +/** + * 查询平均带宽 + */ +public class QueryJBoxAvgBandwidthResponse extends JdcloudResponse implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + + + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResult.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResult.java new file mode 100644 index 000000000..3019b0250 --- /dev/null +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryJBoxAvgBandwidthResult.java @@ -0,0 +1,121 @@ +/* + * Copyright 2018 JDCLOUD.COM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http:#www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * PCdn统计查询接口 + * Openapi For JCLOUD cdn + * + * OpenAPI spec version: v1 + * Contact: pid-cdn@jd.com + * + * NOTE: This class is auto generated by the jdcloud code generator program. + */ + +package com.jdcloud.sdk.service.cdn.model; + +import java.util.List; +import java.util.ArrayList; +import com.jdcloud.sdk.service.cdn.model.Page; +import com.jdcloud.sdk.service.cdn.model.QueryAvgBandwidthGroup; +import com.jdcloud.sdk.service.JdcloudResult; + +/** + * 查询平均带宽 + */ +public class QueryJBoxAvgBandwidthResult extends JdcloudResult implements java.io.Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 分页信息 + */ + private Page page; + + /** + * data + */ + private List data; + + + /** + * get 分页信息 + * + * @return + */ + public Page getPage() { + return page; + } + + /** + * set 分页信息 + * + * @param page + */ + public void setPage(Page page) { + this.page = page; + } + + /** + * get data + * + * @return + */ + public List getData() { + return data; + } + + /** + * set data + * + * @param data + */ + public void setData(List data) { + this.data = data; + } + + + /** + * set 分页信息 + * + * @param page + */ + public QueryJBoxAvgBandwidthResult page(Page page) { + this.page = page; + return this; + } + + /** + * set data + * + * @param data + */ + public QueryJBoxAvgBandwidthResult data(List data) { + this.data = data; + return this; + } + + + /** + * add item to data + * + * @param data + */ + public void addData(QueryAvgBandwidthGroup data) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(data); + } + +} \ No newline at end of file diff --git a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryRefreshTaskRequest.java b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryRefreshTaskRequest.java index 2d9834c8d..b08e1e8fe 100644 --- a/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryRefreshTaskRequest.java +++ b/cdn/src/main/java/com/jdcloud/sdk/service/cdn/model/QueryRefreshTaskRequest.java @@ -73,6 +73,16 @@ public class QueryRefreshTaskRequest extends JdcloudRequest implements java.io.S */ private Integer pageSize; + /** + * 查询的账号范围 + */ + private String accountType; + + /** + * 查询的子账号,多个用逗号隔开 + */ + private String subUsers; + /** * get 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2018-10-21T10:00:00Z @@ -218,6 +228,42 @@ public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } + /** + * get 查询的账号范围 + * + * @return + */ + public String getAccountType() { + return accountType; + } + + /** + * set 查询的账号范围 + * + * @param accountType + */ + public void setAccountType(String accountType) { + this.accountType = accountType; + } + + /** + * get 查询的子账号,多个用逗号隔开 + * + * @return + */ + public String getSubUsers() { + return subUsers; + } + + /** + * set 查询的子账号,多个用逗号隔开 + * + * @param subUsers + */ + public void setSubUsers(String subUsers) { + this.subUsers = subUsers; + } + /** * set 查询起始时间,UTC时间,格式为:yyyy-MM-dd'T'HH:mm:ss'Z',示例:2018-10-21T10:00:00Z @@ -299,5 +345,25 @@ public QueryRefreshTaskRequest pageSize(Integer pageSize) { return this; } + /** + * set 查询的账号范围 + * + * @param accountType + */ + public QueryRefreshTaskRequest accountType(String accountType) { + this.accountType = accountType; + return this; + } + + /** + * set 查询的子账号,多个用逗号隔开 + * + * @param subUsers + */ + public QueryRefreshTaskRequest subUsers(String subUsers) { + this.subUsers = subUsers; + return this; + } + } \ No newline at end of file