Skip to content

Commit 3cdec87

Browse files
Merge pull request #180 from jdcloud-apigateway/master
2022-08-04
2 parents 8bb15cc + dec28fb commit 3cdec87

177 files changed

Lines changed: 971 additions & 1218 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/jdccs/ChangeLog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# 更新历史 #
2-
API版本:1.1.2
2+
API版本:1.1.4
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2022-07-21|1.1.4|新增接口|新增按照时间段查询机房下单个机柜AB路电流接口<br>新增查询机房下多个机柜AB路实时电流接口|
7+
|2022-04-13|1.1.3|接口变更|机房巡检接口新增参数|
68
|2021-03-15|1.1.2|新增接口|金山云需求:开放设备数据信息接口|
79
|2020-11-03|1.1.1|新增接口|新增机房巡检列表接口<br>新增设备巡检接口<br>新增机房巡检详情接口|
810
|2020-08-04|1.1.0|新增接口|新增机房概览接口<br>新增提交通用服务工单接口<br>新增创建、启用、禁用和删除报警规则|

services/jdccs/apis/CreateAlarm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ type CreateAlarmRequest struct {
7171

7272
/* 通知对象组ID (Optional) */
7373
GroupId *string `json:"groupId"`
74+
7475
}
7576

7677
/*
@@ -246,6 +247,7 @@ func (r *CreateAlarmRequest) SetGroupId(groupId string) {
246247
r.GroupId = &groupId
247248
}
248249

250+
249251
// GetRegionId returns path parameter 'regionId' if exist,
250252
// otherwise return empty string
251253
func (r CreateAlarmRequest) GetRegionId() string {

services/jdccs/apis/CreateGeneralServicesTicket.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type CreateGeneralServicesTicketRequest struct {
5454

5555
/* 附件 (Optional) */
5656
Attach []jdccs.Attach `json:"attach"`
57+
5758
}
5859

5960
/*
@@ -181,6 +182,7 @@ func (r *CreateGeneralServicesTicketRequest) SetAttach(attach []jdccs.Attach) {
181182
r.Attach = attach
182183
}
183184

185+
184186
// GetRegionId returns path parameter 'regionId' if exist,
185187
// otherwise return empty string
186188
func (r CreateGeneralServicesTicketRequest) GetRegionId() string {

services/jdccs/apis/DeleteAlarm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type DeleteAlarmRequest struct {
2626

2727
/* 报警规则ID */
2828
AlarmId string `json:"alarmId"`
29+
2930
}
3031

3132
/*
@@ -84,6 +85,7 @@ func (r *DeleteAlarmRequest) SetAlarmId(alarmId string) {
8485
r.AlarmId = alarmId
8586
}
8687

88+
8789
// GetRegionId returns path parameter 'regionId' if exist,
8890
// otherwise return empty string
8991
func (r DeleteAlarmRequest) GetRegionId() string {

services/jdccs/apis/DescribeAlarm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type DescribeAlarmRequest struct {
2727

2828
/* 报警规则ID */
2929
AlarmId string `json:"alarmId"`
30+
3031
}
3132

3233
/*
@@ -85,6 +86,7 @@ func (r *DescribeAlarmRequest) SetAlarmId(alarmId string) {
8586
r.AlarmId = alarmId
8687
}
8788

89+
8890
// GetRegionId returns path parameter 'regionId' if exist,
8991
// otherwise return empty string
9092
func (r DescribeAlarmRequest) GetRegionId() string {

services/jdccs/apis/DescribeAlarmHistory.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type DescribeAlarmHistoryRequest struct {
4242

4343
/* 查询时间范围的结束时间, UNIX时间戳 (Optional) */
4444
EndTime *int `json:"endTime"`
45+
4546
}
4647

4748
/*
@@ -137,6 +138,7 @@ func (r *DescribeAlarmHistoryRequest) SetEndTime(endTime int) {
137138
r.EndTime = &endTime
138139
}
139140

141+
140142
// GetRegionId returns path parameter 'regionId' if exist,
141143
// otherwise return empty string
142144
func (r DescribeAlarmHistoryRequest) GetRegionId() string {

services/jdccs/apis/DescribeAlarms.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ type DescribeAlarmsRequest struct {
3232
/* 分页大小,默认为20 (Optional) */
3333
PageSize *int `json:"pageSize"`
3434

35-
/* 是否查询全部,默认分页 (Optional) */
36-
All *int `json:"all"`
37-
3835
/* 资源类型 bandwidth:带宽 (Optional) */
3936
ResourceType *string `json:"resourceType"`
4037

@@ -50,6 +47,7 @@ type DescribeAlarmsRequest struct {
5047
/* alarmId - 规则实施ID,精确匹配,支持多个
5148
(Optional) */
5249
Filters []common.Filter `json:"filters"`
50+
5351
}
5452

5553
/*
@@ -72,7 +70,6 @@ func NewDescribeAlarmsRequest(
7270
/*
7371
* param pageNumber: 页码, 默认为1 (Optional)
7472
* param pageSize: 分页大小,默认为20 (Optional)
75-
* param all: 是否查询全部,默认分页 (Optional)
7673
* param resourceType: 资源类型 bandwidth:带宽 (Optional)
7774
* param resourceId: 资源ID,指定resourceId时须指定resourceType (Optional)
7875
* param idc: 机房英文标识 (Optional)
@@ -83,7 +80,6 @@ func NewDescribeAlarmsRequest(
8380
func NewDescribeAlarmsRequestWithAllParams(
8481
pageNumber *int,
8582
pageSize *int,
86-
all *int,
8783
resourceType *string,
8884
resourceId *string,
8985
idc *string,
@@ -100,7 +96,6 @@ func NewDescribeAlarmsRequestWithAllParams(
10096
},
10197
PageNumber: pageNumber,
10298
PageSize: pageSize,
103-
All: all,
10499
ResourceType: resourceType,
105100
ResourceId: resourceId,
106101
Idc: idc,
@@ -132,11 +127,6 @@ func (r *DescribeAlarmsRequest) SetPageSize(pageSize int) {
132127
r.PageSize = &pageSize
133128
}
134129

135-
/* param all: 是否查询全部,默认分页(Optional) */
136-
func (r *DescribeAlarmsRequest) SetAll(all int) {
137-
r.All = &all
138-
}
139-
140130
/* param resourceType: 资源类型 bandwidth:带宽(Optional) */
141131
func (r *DescribeAlarmsRequest) SetResourceType(resourceType string) {
142132
r.ResourceType = &resourceType
@@ -163,6 +153,7 @@ func (r *DescribeAlarmsRequest) SetFilters(filters []common.Filter) {
163153
r.Filters = filters
164154
}
165155

156+
166157
// GetRegionId returns path parameter 'regionId' if exist,
167158
// otherwise return empty string
168159
func (r DescribeAlarmsRequest) GetRegionId() string {

services/jdccs/apis/DescribeBandwidth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type DescribeBandwidthRequest struct {
3030

3131
/* 带宽(出口)实例ID */
3232
BandwidthId string `json:"bandwidthId"`
33+
3334
}
3435

3536
/*
@@ -99,6 +100,7 @@ func (r *DescribeBandwidthRequest) SetBandwidthId(bandwidthId string) {
99100
r.BandwidthId = bandwidthId
100101
}
101102

103+
102104
// GetRegionId returns path parameter 'regionId' if exist,
103105
// otherwise return empty string
104106
func (r DescribeBandwidthRequest) GetRegionId() string {

services/jdccs/apis/DescribeBandwidthTraffic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type DescribeBandwidthTrafficRequest struct {
3030

3131
/* 带宽(出口)实例ID */
3232
BandwidthId string `json:"bandwidthId"`
33+
3334
}
3435

3536
/*
@@ -99,6 +100,7 @@ func (r *DescribeBandwidthTrafficRequest) SetBandwidthId(bandwidthId string) {
99100
r.BandwidthId = bandwidthId
100101
}
101102

103+
102104
// GetRegionId returns path parameter 'regionId' if exist,
103105
// otherwise return empty string
104106
func (r DescribeBandwidthTrafficRequest) GetRegionId() string {

services/jdccs/apis/DescribeBandwidthTraffics.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ type DescribeBandwidthTrafficsRequest struct {
3434
/* 分页大小,默认为20 (Optional) */
3535
PageSize *int `json:"pageSize"`
3636

37-
/* 是否查询全部,默认分页 (Optional) */
38-
All *int `json:"all"`
39-
4037
/* 带宽(出口)名称 (Optional) */
4138
BandwidthName *string `json:"bandwidthName"`
39+
4240
}
4341

4442
/*
@@ -65,14 +63,12 @@ func NewDescribeBandwidthTrafficsRequest(
6563
* param idc: IDC机房ID (Required)
6664
* param pageNumber: 页码, 默认为1 (Optional)
6765
* param pageSize: 分页大小,默认为20 (Optional)
68-
* param all: 是否查询全部,默认分页 (Optional)
6966
* param bandwidthName: 带宽(出口)名称 (Optional)
7067
*/
7168
func NewDescribeBandwidthTrafficsRequestWithAllParams(
7269
idc string,
7370
pageNumber *int,
7471
pageSize *int,
75-
all *int,
7672
bandwidthName *string,
7773
) *DescribeBandwidthTrafficsRequest {
7874

@@ -86,7 +82,6 @@ func NewDescribeBandwidthTrafficsRequestWithAllParams(
8682
Idc: idc,
8783
PageNumber: pageNumber,
8884
PageSize: pageSize,
89-
All: all,
9085
BandwidthName: bandwidthName,
9186
}
9287
}
@@ -119,16 +114,12 @@ func (r *DescribeBandwidthTrafficsRequest) SetPageSize(pageSize int) {
119114
r.PageSize = &pageSize
120115
}
121116

122-
/* param all: 是否查询全部,默认分页(Optional) */
123-
func (r *DescribeBandwidthTrafficsRequest) SetAll(all int) {
124-
r.All = &all
125-
}
126-
127117
/* param bandwidthName: 带宽(出口)名称(Optional) */
128118
func (r *DescribeBandwidthTrafficsRequest) SetBandwidthName(bandwidthName string) {
129119
r.BandwidthName = &bandwidthName
130120
}
131121

122+
132123
// GetRegionId returns path parameter 'regionId' if exist,
133124
// otherwise return empty string
134125
func (r DescribeBandwidthTrafficsRequest) GetRegionId() string {

0 commit comments

Comments
 (0)