Skip to content

Commit a389e7d

Browse files
publish jdcloud-sdk-go version 0.10.35
1 parent 09328da commit a389e7d

197 files changed

Lines changed: 527 additions & 529 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

services/cdn/ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# 更新历史 #
2-
API版本:0.10.32
2+
API版本:0.10.35
33

44

55

66

77
| 发布时间 | 版本号 | 更新 | 说明 |
88
| ---------- | ------ | ---------------------------------------------------------- | ---- |
9+
| 2022-08-22 | 0.10.35 |接口支持ipV4/ipV6查询|
10+
| 2022-08-02 | 0.10.34 |批量下发ip黑名单|
11+
| 2022-07-25 | 0.10.33 |域名归属权验证|
912
| 2022-06-22 | 0.10.32 |增加域名限速接口|
1013
| 2022-04-08 | 0.10.31 |增加查询、设置回源OSS鉴权定制接口|
1114
| 2022-01-17 | 0.10.29 |设置、查询回源改写批量配置|

services/cdn/apis/BatCreatePrefetchTask.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func (r *BatCreatePrefetchTaskRequest) SetTasks(tasks []cdn.VodPrefetchTaskItem)
8282
r.Tasks = tasks
8383
}
8484

85+
8586
// GetRegionId returns path parameter 'regionId' if exist,
8687
// otherwise return empty string
8788
func (r BatCreatePrefetchTaskRequest) GetRegionId() string {

services/cdn/apis/BatchCreate.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -177,87 +177,72 @@ func NewBatchCreateRequestWithoutParam() *BatchCreateRequest {
177177
func (r *BatchCreateRequest) SetDomains(domains []string) {
178178
r.Domains = domains
179179
}
180-
181180
/* param sourceType: 回源类型只能是[ips,domain,oss]中的一种(Optional) */
182181
func (r *BatchCreateRequest) SetSourceType(sourceType string) {
183182
r.SourceType = &sourceType
184183
}
185-
186184
/* param cdnType: 点播域名的类型只能是[vod,download,web]中的一种(Optional) */
187185
func (r *BatchCreateRequest) SetCdnType(cdnType string) {
188186
r.CdnType = &cdnType
189187
}
190-
191188
/* param backSourceType: 回源方式,只能是[https,http]中的一种,默认http(Optional) */
192189
func (r *BatchCreateRequest) SetBackSourceType(backSourceType string) {
193190
r.BackSourceType = &backSourceType
194191
}
195-
196192
/* param dailyBandWidth: 日带宽(Mbps)(Optional) */
197193
func (r *BatchCreateRequest) SetDailyBandWidth(dailyBandWidth int64) {
198194
r.DailyBandWidth = &dailyBandWidth
199195
}
200-
201196
/* param quaility: 服务质量,只能是[good,general]中的一种,默认为good(Optional) */
202197
func (r *BatchCreateRequest) SetQuaility(quaility string) {
203198
r.Quaility = &quaility
204199
}
205-
206200
/* param maxFileSize: (Optional) */
207201
func (r *BatchCreateRequest) SetMaxFileSize(maxFileSize int64) {
208202
r.MaxFileSize = &maxFileSize
209203
}
210-
211204
/* param minFileSize: (Optional) */
212205
func (r *BatchCreateRequest) SetMinFileSize(minFileSize int64) {
213206
r.MinFileSize = &minFileSize
214207
}
215-
216208
/* param sumFileSize: (Optional) */
217209
func (r *BatchCreateRequest) SetSumFileSize(sumFileSize int64) {
218210
r.SumFileSize = &sumFileSize
219211
}
220-
221212
/* param avgFileSize: (Optional) */
222213
func (r *BatchCreateRequest) SetAvgFileSize(avgFileSize int64) {
223214
r.AvgFileSize = &avgFileSize
224215
}
225-
226216
/* param defaultSourceHost: (Optional) */
227217
func (r *BatchCreateRequest) SetDefaultSourceHost(defaultSourceHost string) {
228218
r.DefaultSourceHost = &defaultSourceHost
229219
}
230-
231220
/* param httpType: (Optional) */
232221
func (r *BatchCreateRequest) SetHttpType(httpType string) {
233222
r.HttpType = &httpType
234223
}
235-
236224
/* param ipSource: (Optional) */
237225
func (r *BatchCreateRequest) SetIpSource(ipSource []cdn.IpSourceInfo) {
238226
r.IpSource = ipSource
239227
}
240-
241228
/* param domainSource: (Optional) */
242229
func (r *BatchCreateRequest) SetDomainSource(domainSource []cdn.DomainSourceInfo) {
243230
r.DomainSource = domainSource
244231
}
245-
246232
/* param ossSource: (Optional) */
247233
func (r *BatchCreateRequest) SetOssSource(ossSource string) {
248234
r.OssSource = &ossSource
249235
}
250-
251236
/* param accelerateRegion: 加速区域 (mainLand:中国大陆,nonMainLand:海外加港澳台,all:全球)默认为中国大陆(Optional) */
252237
func (r *BatchCreateRequest) SetAccelerateRegion(accelerateRegion string) {
253238
r.AccelerateRegion = &accelerateRegion
254239
}
255-
256240
/* param tempInstId: (Optional) */
257241
func (r *BatchCreateRequest) SetTempInstId(tempInstId int64) {
258242
r.TempInstId = &tempInstId
259243
}
260244

245+
261246
// GetRegionId returns path parameter 'regionId' if exist,
262247
// otherwise return empty string
263248
func (r BatchCreateRequest) GetRegionId() string {

services/cdn/apis/BatchCreateLiveDomain.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,52 +135,44 @@ func NewBatchCreateLiveDomainRequestWithoutParam() *BatchCreateLiveDomainRequest
135135
func (r *BatchCreateLiveDomainRequest) SetPlayDomain(playDomain string) {
136136
r.PlayDomain = &playDomain
137137
}
138-
139138
/* param publishDomain: 创建推流域名时,必传推流域名(Optional) */
140139
func (r *BatchCreateLiveDomainRequest) SetPublishDomain(publishDomain string) {
141140
r.PublishDomain = &publishDomain
142141
}
143-
144142
/* param sourceType: 回源类型只能是[ips,domain]中的一种(Optional) */
145143
func (r *BatchCreateLiveDomainRequest) SetSourceType(sourceType string) {
146144
r.SourceType = &sourceType
147145
}
148-
149146
/* param backHttpType: (Optional) */
150147
func (r *BatchCreateLiveDomainRequest) SetBackHttpType(backHttpType string) {
151148
r.BackHttpType = &backHttpType
152149
}
153-
154150
/* param defaultSourceHost: 默认回源host(Optional) */
155151
func (r *BatchCreateLiveDomainRequest) SetDefaultSourceHost(defaultSourceHost string) {
156152
r.DefaultSourceHost = &defaultSourceHost
157153
}
158-
159154
/* param siteType: 站点类型pull(拉流)push(推流)(Optional) */
160155
func (r *BatchCreateLiveDomainRequest) SetSiteType(siteType string) {
161156
r.SiteType = &siteType
162157
}
163-
164158
/* param backSourceType: 回源类型,目前只能为rtmp(Optional) */
165159
func (r *BatchCreateLiveDomainRequest) SetBackSourceType(backSourceType string) {
166160
r.BackSourceType = &backSourceType
167161
}
168-
169162
/* param ipSource: (Optional) */
170163
func (r *BatchCreateLiveDomainRequest) SetIpSource(ipSource []cdn.IpSourceInfo) {
171164
r.IpSource = ipSource
172165
}
173-
174166
/* param domainSource: (Optional) */
175167
func (r *BatchCreateLiveDomainRequest) SetDomainSource(domainSource []cdn.DomainSourceInfo) {
176168
r.DomainSource = domainSource
177169
}
178-
179170
/* param accelerateRegion: 加速区域(mainLand:中国大陆,nonMainLand:海外加港澳台,all:全球)默认为中国大陆(Optional) */
180171
func (r *BatchCreateLiveDomainRequest) SetAccelerateRegion(accelerateRegion string) {
181172
r.AccelerateRegion = &accelerateRegion
182173
}
183174

175+
184176
// GetRegionId returns path parameter 'regionId' if exist,
185177
// otherwise return empty string
186178
func (r BatchCreateLiveDomainRequest) GetRegionId() string {

services/cdn/apis/BatchDeleteDomainGroup.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func (r *BatchDeleteDomainGroupRequest) SetIds(ids []int64) {
8484
r.Ids = ids
8585
}
8686

87+
8788
// GetRegionId returns path parameter 'regionId' if exist,
8889
// otherwise return empty string
8990
func (r BatchDeleteDomainGroupRequest) GetRegionId() string {
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
)
22+
23+
type BatchIpBlackListRequest struct {
24+
25+
core.JDCloudRequest
26+
27+
/* 域名列表。最多30个 (Optional) */
28+
Domains []string `json:"domains"`
29+
30+
/* ip列表。最多50个 (Optional) */
31+
IpList []string `json:"ipList"`
32+
33+
/* 封禁时长,单位分钟。默认1440 (Optional) */
34+
ForbidTime *int64 `json:"forbidTime"`
35+
36+
/* forbid or resume.代表封禁和解封。 (Optional) */
37+
Action *string `json:"action"`
38+
}
39+
40+
/*
41+
*
42+
* @Deprecated, not compatible when mandatory parameters changed
43+
*/
44+
func NewBatchIpBlackListRequest(
45+
) *BatchIpBlackListRequest {
46+
47+
return &BatchIpBlackListRequest{
48+
JDCloudRequest: core.JDCloudRequest{
49+
URL: "/batchIpBlackList",
50+
Method: "POST",
51+
Header: nil,
52+
Version: "v1",
53+
},
54+
}
55+
}
56+
57+
/*
58+
* param domains: 域名列表。最多30个 (Optional)
59+
* param ipList: ip列表。最多50个 (Optional)
60+
* param forbidTime: 封禁时长,单位分钟。默认1440 (Optional)
61+
* param action: forbid or resume.代表封禁和解封。 (Optional)
62+
*/
63+
func NewBatchIpBlackListRequestWithAllParams(
64+
domains []string,
65+
ipList []string,
66+
forbidTime *int64,
67+
action *string,
68+
) *BatchIpBlackListRequest {
69+
70+
return &BatchIpBlackListRequest{
71+
JDCloudRequest: core.JDCloudRequest{
72+
URL: "/batchIpBlackList",
73+
Method: "POST",
74+
Header: nil,
75+
Version: "v1",
76+
},
77+
Domains: domains,
78+
IpList: ipList,
79+
ForbidTime: forbidTime,
80+
Action: action,
81+
}
82+
}
83+
84+
/* This constructor has better compatible ability when API parameters changed */
85+
func NewBatchIpBlackListRequestWithoutParam() *BatchIpBlackListRequest {
86+
87+
return &BatchIpBlackListRequest{
88+
JDCloudRequest: core.JDCloudRequest{
89+
URL: "/batchIpBlackList",
90+
Method: "POST",
91+
Header: nil,
92+
Version: "v1",
93+
},
94+
}
95+
}
96+
97+
/* param domains: 域名列表。最多30个(Optional) */
98+
func (r *BatchIpBlackListRequest) SetDomains(domains []string) {
99+
r.Domains = domains
100+
}
101+
/* param ipList: ip列表。最多50个(Optional) */
102+
func (r *BatchIpBlackListRequest) SetIpList(ipList []string) {
103+
r.IpList = ipList
104+
}
105+
/* param forbidTime: 封禁时长,单位分钟。默认1440(Optional) */
106+
func (r *BatchIpBlackListRequest) SetForbidTime(forbidTime int64) {
107+
r.ForbidTime = &forbidTime
108+
}
109+
/* param action: forbid or resume.代表封禁和解封。(Optional) */
110+
func (r *BatchIpBlackListRequest) SetAction(action string) {
111+
r.Action = &action
112+
}
113+
114+
115+
// GetRegionId returns path parameter 'regionId' if exist,
116+
// otherwise return empty string
117+
func (r BatchIpBlackListRequest) GetRegionId() string {
118+
return ""
119+
}
120+
121+
type BatchIpBlackListResponse struct {
122+
RequestID string `json:"requestId"`
123+
Error core.ErrorResponse `json:"error"`
124+
Result BatchIpBlackListResult `json:"result"`
125+
}
126+
127+
type BatchIpBlackListResult struct {
128+
}

services/cdn/apis/BatchSetExtraCacheTime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ func NewBatchSetExtraCacheTimeRequestWithoutParam() *BatchSetExtraCacheTimeReque
8989
func (r *BatchSetExtraCacheTimeRequest) SetDomain(domain string) {
9090
r.Domain = domain
9191
}
92-
9392
/* param content: 状态码和过期时间,多个用英文分号分隔,如404:3;500:10;异常状态码 ["4xx","400", "401", "402", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "5xx","500", "501", "502", "503", "504", "505"]中的其中一个,缓存时间(单位:秒)(Optional) */
9493
func (r *BatchSetExtraCacheTimeRequest) SetContent(content string) {
9594
r.Content = &content
9695
}
9796

97+
9898
// GetRegionId returns path parameter 'regionId' if exist,
9999
// otherwise return empty string
100100
func (r BatchSetExtraCacheTimeRequest) GetRegionId() string {

services/cdn/apis/CheckWhetherIpBelongToJCloud.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func (r *CheckWhetherIpBelongToJCloudRequest) SetIps(ips []string) {
8282
r.Ips = ips
8383
}
8484

85+
8586
// GetRegionId returns path parameter 'regionId' if exist,
8687
// otherwise return empty string
8788
func (r CheckWhetherIpBelongToJCloudRequest) GetRegionId() string {

services/cdn/apis/ConfigBackSourceOss.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,37 +119,32 @@ func NewConfigBackSourceOssRequestWithoutParam() *ConfigBackSourceOssRequest {
119119
func (r *ConfigBackSourceOssRequest) SetDomain(domain string) {
120120
r.Domain = domain
121121
}
122-
123122
/* param status: on/off,若为on则以下必传参数不可为空[accessKey,secretKey,bucket,domain2],若为off则以下参数均不能有值[accessKey,secretKey,bucket,suffix,domain2](Optional) */
124123
func (r *ConfigBackSourceOssRequest) SetStatus(status string) {
125124
r.Status = &status
126125
}
127-
128126
/* param accessKey: status 为on时必填(Optional) */
129127
func (r *ConfigBackSourceOssRequest) SetAccessKey(accessKey string) {
130128
r.AccessKey = &accessKey
131129
}
132-
133130
/* param secretKey: status 为on时必填(Optional) */
134131
func (r *ConfigBackSourceOssRequest) SetSecretKey(secretKey string) {
135132
r.SecretKey = &secretKey
136133
}
137-
138134
/* param bucket: oss桶名,status 为on时必填(Optional) */
139135
func (r *ConfigBackSourceOssRequest) SetBucket(bucket string) {
140136
r.Bucket = &bucket
141137
}
142-
143138
/* param suffix: oss后缀,status 为on时选填(Optional) */
144139
func (r *ConfigBackSourceOssRequest) SetSuffix(suffix string) {
145140
r.Suffix = &suffix
146141
}
147-
148142
/* param domain2: status 为on时必填(Optional) */
149143
func (r *ConfigBackSourceOssRequest) SetDomain2(domain2 string) {
150144
r.Domain2 = &domain2
151145
}
152146

147+
153148
// GetRegionId returns path parameter 'regionId' if exist,
154149
// otherwise return empty string
155150
func (r ConfigBackSourceOssRequest) GetRegionId() string {

services/cdn/apis/ConfigBackSourcePath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ func NewConfigBackSourcePathRequestWithoutParam() *ConfigBackSourcePathRequest {
9090
func (r *ConfigBackSourcePathRequest) SetDomain(domain string) {
9191
r.Domain = domain
9292
}
93-
9493
/* param configs: (Optional) */
9594
func (r *ConfigBackSourcePathRequest) SetConfigs(configs []cdn.ConfigBackSourcePathItems) {
9695
r.Configs = configs
9796
}
9897

98+
9999
// GetRegionId returns path parameter 'regionId' if exist,
100100
// otherwise return empty string
101101
func (r ConfigBackSourcePathRequest) GetRegionId() string {

0 commit comments

Comments
 (0)