forked from TencentCloud/tencentcloud-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
4966 lines (3681 loc) · 159 KB
/
models.go
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// 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.
package v20180529
import (
"encoding/json"
tchttp "github.com/liucy1983/tencentcloud-sdk-go/tencentcloud/common/http"
)
type AccessConfiguration struct {
// 加速地域。
AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"`
// 通道带宽上限,单位:Mbps。
Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"`
// 通道并发量上限,表示同时在线的连接数,单位:万。
Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"`
}
type AccessRegionDetial struct {
// 区域ID
RegionId *string `json:"RegionId,omitempty" name:"RegionId"`
// 区域的中文或英文名称
RegionName *string `json:"RegionName,omitempty" name:"RegionName"`
// 可选的并发量取值数组
ConcurrentList []*int64 `json:"ConcurrentList,omitempty" name:"ConcurrentList" list`
// 可选的带宽取值数组
BandwidthList []*int64 `json:"BandwidthList,omitempty" name:"BandwidthList" list`
}
type AccessRegionDomainConf struct {
// 地域ID。
RegionId *string `json:"RegionId,omitempty" name:"RegionId"`
// 就近接入区域国家内部编码,编码列表可通过DescribeCountryAreaMapping接口获取。
NationCountryInnerList []*string `json:"NationCountryInnerList,omitempty" name:"NationCountryInnerList" list`
}
type AddRealServersRequest struct {
*tchttp.BaseRequest
// 源站对应的项目ID
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// 源站对应的IP或域名
RealServerIP []*string `json:"RealServerIP,omitempty" name:"RealServerIP" list`
// 源站名称
RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"`
// 标签列表
TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet" list`
}
func (r *AddRealServersRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *AddRealServersRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type AddRealServersResponse struct {
*tchttp.BaseResponse
Response *struct {
// 源站信息列表
RealServerSet []*NewRealServer `json:"RealServerSet,omitempty" name:"RealServerSet" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *AddRealServersResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *AddRealServersResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type BandwidthPriceGradient struct {
// 带宽范围。
BandwidthRange []*int64 `json:"BandwidthRange,omitempty" name:"BandwidthRange" list`
// 在对应带宽范围内的单宽单价,单位:元/Mbps/天。
BandwidthUnitPrice *float64 `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"`
}
type BindListenerRealServersRequest struct {
*tchttp.BaseRequest
// 监听器ID
ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"`
// 待绑定源站列表。如果该监听器的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。
RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet" list`
}
func (r *BindListenerRealServersRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *BindListenerRealServersRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type BindListenerRealServersResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *BindListenerRealServersResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *BindListenerRealServersResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type BindRealServer struct {
// 源站ID
RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"`
// 源站IP或者域名
RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"`
// 该源站所占权重
RealServerWeight *int64 `json:"RealServerWeight,omitempty" name:"RealServerWeight"`
// 源站健康检查状态,其中:
// 0表示正常;
// 1表示异常。
// 未开启健康检查状态时,该状态始终为正常。
// 注意:此字段可能返回 null,表示取不到有效值。
RealServerStatus *int64 `json:"RealServerStatus,omitempty" name:"RealServerStatus"`
// 源站的端口号
// 注意:此字段可能返回 null,表示取不到有效值。
RealServerPort *int64 `json:"RealServerPort,omitempty" name:"RealServerPort"`
// 当源站为域名时,域名被解析成一个或者多个IP,该字段表示其中异常的IP列表。状态异常,但该字段为空时,表示域名解析异常。
DownIPList []*string `json:"DownIPList,omitempty" name:"DownIPList" list`
}
type BindRealServerInfo struct {
// 源站的IP或域名
RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"`
// 源站ID
RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"`
// 源站名称
RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"`
// 项目ID
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// 标签列表
// 注意:此字段可能返回 null,表示取不到有效值。
TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet" list`
}
type BindRuleRealServersRequest struct {
*tchttp.BaseRequest
// 转发规则ID
RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
// 需要绑定的源站信息列表。
// 如果已经存在绑定的源站,则会覆盖更新成这个源站列表。
// 当不带该字段时,表示解绑该规则上的所有源站。
// 如果该规则的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。
RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet" list`
}
func (r *BindRuleRealServersRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *BindRuleRealServersRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type BindRuleRealServersResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *BindRuleRealServersResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *BindRuleRealServersResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type Certificate struct {
// 证书ID
CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"`
// 证书名称(旧参数,请使用CertificateAlias)。
CertificateName *string `json:"CertificateName,omitempty" name:"CertificateName"`
// 证书类型。
CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"`
// 证书名称。
// 注意:此字段可能返回 null,表示取不到有效值。
CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"`
// 证书创建时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。
CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
// 证书生效起始时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。
// 注意:此字段可能返回 null,表示取不到有效值。
BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"`
// 证书过期时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。
// 注意:此字段可能返回 null,表示取不到有效值。
EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
// 证书签发者通用名称。
// 注意:此字段可能返回 null,表示取不到有效值。
IssuerCN *string `json:"IssuerCN,omitempty" name:"IssuerCN"`
// 证书主题通用名称。
// 注意:此字段可能返回 null,表示取不到有效值。
SubjectCN *string `json:"SubjectCN,omitempty" name:"SubjectCN"`
}
type CertificateAliasInfo struct {
// 证书ID
CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"`
// 证书别名
CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"`
}
type CertificateDetail struct {
// 证书ID。
CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"`
// 证书类型。
CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"`
// 证书名字。
// 注意:此字段可能返回 null,表示取不到有效值。
CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"`
// 证书内容。
CertificateContent *string `json:"CertificateContent,omitempty" name:"CertificateContent"`
// 密钥内容。仅当证书类型为SSL证书时,返回该字段。
// 注意:此字段可能返回 null,表示取不到有效值。
CertificateKey *string `json:"CertificateKey,omitempty" name:"CertificateKey"`
// 创建时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。
// 注意:此字段可能返回 null,表示取不到有效值。
CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
// 证书生效起始时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。
// 注意:此字段可能返回 null,表示取不到有效值。
BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"`
// 证书过期时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。
// 注意:此字段可能返回 null,表示取不到有效值。
EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"`
// 证书签发者通用名称。
// 注意:此字段可能返回 null,表示取不到有效值。
IssuerCN *string `json:"IssuerCN,omitempty" name:"IssuerCN"`
// 证书主题通用名称。
// 注意:此字段可能返回 null,表示取不到有效值。
SubjectCN *string `json:"SubjectCN,omitempty" name:"SubjectCN"`
}
type CheckProxyCreateRequest struct {
*tchttp.BaseRequest
// 通道的接入(加速)区域。取值可通过接口DescribeAccessRegionsByDestRegion获取到
AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"`
// 通道的源站区域。取值可通过接口DescribeDestRegions获取到
RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"`
// 通道带宽上限,单位:Mbps。
Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"`
// 通道并发量上限,表示同时在线的连接数,单位:万。
Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"`
// 如果在通道组下创建通道,需要填写通道组的ID
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
}
func (r *CheckProxyCreateRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CheckProxyCreateRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CheckProxyCreateResponse struct {
*tchttp.BaseResponse
Response *struct {
// 查询能否创建给定配置的通道,1可以创建,0不可创建。
CheckFlag *uint64 `json:"CheckFlag,omitempty" name:"CheckFlag"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CheckProxyCreateResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CheckProxyCreateResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CloseProxiesRequest struct {
*tchttp.BaseRequest
// (旧参数,请切换到ProxyIds)通道的实例ID。
InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds" list`
// 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
// 更多详细信息请参阅:如何保证幂等性。
ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`
// (新参数)通道的实例ID。
ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds" list`
}
func (r *CloseProxiesRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CloseProxiesRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CloseProxiesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 非运行状态下的通道实例ID列表,不可开启。
InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet" list`
// 开启操作失败的通道实例ID列表。
OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CloseProxiesResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CloseProxiesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CloseProxyGroupRequest struct {
*tchttp.BaseRequest
// 通道组的实例 ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
}
func (r *CloseProxyGroupRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CloseProxyGroupRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CloseProxyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 非运行状态下的通道实例ID列表,不可开启。
InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet" list`
// 开启操作失败的通道实例ID列表。
OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CloseProxyGroupResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CloseProxyGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CloseSecurityPolicyRequest struct {
*tchttp.BaseRequest
// 通道ID
ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"`
// 安全组策略ID
PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"`
}
func (r *CloseSecurityPolicyRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CloseSecurityPolicyRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CloseSecurityPolicyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 异步流程ID,可以通过DescribeAsyncTaskStatus 查询流程执行进展和状态
TaskId *string `json:"TaskId,omitempty" name:"TaskId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CloseSecurityPolicyResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CloseSecurityPolicyResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CountryAreaMap struct {
// 国家名称。
NationCountryName *string `json:"NationCountryName,omitempty" name:"NationCountryName"`
// 国家编码。
NationCountryInnerCode *string `json:"NationCountryInnerCode,omitempty" name:"NationCountryInnerCode"`
// 地区名称。
GeographicalZoneName *string `json:"GeographicalZoneName,omitempty" name:"GeographicalZoneName"`
// 地区编码。
GeographicalZoneInnerCode *string `json:"GeographicalZoneInnerCode,omitempty" name:"GeographicalZoneInnerCode"`
// 大洲名称。
ContinentName *string `json:"ContinentName,omitempty" name:"ContinentName"`
// 大洲编码。
ContinentInnerCode *string `json:"ContinentInnerCode,omitempty" name:"ContinentInnerCode"`
}
type CreateCertificateRequest struct {
*tchttp.BaseRequest
// 证书类型。其中:
// 0,表示基础认证配置;
// 1,表示客户端CA证书;
// 2,服务器SSL证书;
// 3,表示源站CA证书;
// 4,表示通道SSL证书。
CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"`
// 证书内容。采用url编码。其中:
// 当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。
// 当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。
CertificateContent *string `json:"CertificateContent,omitempty" name:"CertificateContent"`
// 证书名称
CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"`
// 密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。
CertificateKey *string `json:"CertificateKey,omitempty" name:"CertificateKey"`
}
func (r *CreateCertificateRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateCertificateRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateCertificateResponse struct {
*tchttp.BaseResponse
Response *struct {
// 证书ID
CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateCertificateResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateCertificateResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateDomainErrorPageInfoRequest struct {
*tchttp.BaseRequest
// 监听器ID
ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"`
// 域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 原始错误码
ErrorNos []*int64 `json:"ErrorNos,omitempty" name:"ErrorNos" list`
// 新的响应包体
Body *string `json:"Body,omitempty" name:"Body"`
// 新错误码
NewErrorNo *int64 `json:"NewErrorNo,omitempty" name:"NewErrorNo"`
// 需要删除的响应头
ClearHeaders []*string `json:"ClearHeaders,omitempty" name:"ClearHeaders" list`
// 需要设置的响应头
SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitempty" name:"SetHeaders" list`
}
func (r *CreateDomainErrorPageInfoRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateDomainErrorPageInfoRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateDomainErrorPageInfoResponse struct {
*tchttp.BaseResponse
Response *struct {
// 错误定制响应的配置ID
ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateDomainErrorPageInfoResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateDomainErrorPageInfoResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateDomainRequest struct {
*tchttp.BaseRequest
// 监听器ID。
ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"`
// 需要创建的域名,一个监听器下最大支持100个域名。
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 服务器证书,用于客户端与GAAP的HTTPS的交互。
CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"`
// 客户端CA证书,用于客户端与GAAP的HTTPS的交互。
// 仅当采用双向认证的方式时,需要设置该字段或PolyClientCertificateIds字段。
ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"`
// 客户端CA证书,用于客户端与GAAP的HTTPS的交互。
// 仅当采用双向认证的方式时,需要设置该字段或ClientCertificateId字段。
PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds" list`
}
func (r *CreateDomainRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateDomainRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateDomainResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateDomainResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateHTTPListenerRequest struct {
*tchttp.BaseRequest
// 监听器名称
ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"`
// 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复
Port *uint64 `json:"Port,omitempty" name:"Port"`
// 通道ID,与GroupId不能同时设置,对应为通道创建监听器
ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"`
// 通道组ID,与ProxyId不能同时设置,对应为通道组创建监听器
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
}
func (r *CreateHTTPListenerRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateHTTPListenerRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateHTTPListenerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 创建的监听器ID
ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateHTTPListenerResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateHTTPListenerResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateHTTPSListenerRequest struct {
*tchttp.BaseRequest
// 监听器名称
ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"`
// 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复
Port *uint64 `json:"Port,omitempty" name:"Port"`
// 服务器证书ID
CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"`
// 加速通道转发到源站的协议类型:HTTP | HTTPS
ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"`
// 通道ID,与GroupId之间只能设置一个。表示创建通道的监听器。
ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"`
// 认证类型,其中:
// 0,单向认证;
// 1,双向认证。
// 默认使用单向认证。
AuthType *uint64 `json:"AuthType,omitempty" name:"AuthType"`
// 客户端CA单证书ID,仅当双向认证时设置该参数或PolyClientCertificateIds参数
ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"`
// 新的客户端多CA证书ID,仅当双向认证时设置该参数或设置ClientCertificateId参数
PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds" list`
// 通道组ID,与ProxyId之间只能设置一个。表示创建通道组的监听器。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
}
func (r *CreateHTTPSListenerRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateHTTPSListenerRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateHTTPSListenerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 创建的监听器ID
ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateHTTPSListenerResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateHTTPSListenerResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateProxyGroupDomainRequest struct {
*tchttp.BaseRequest
// 需要开启域名的通道组ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
}
func (r *CreateProxyGroupDomainRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateProxyGroupDomainRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateProxyGroupDomainResponse struct {
*tchttp.BaseResponse
Response *struct {
// 通道组ID。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateProxyGroupDomainResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateProxyGroupDomainResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateProxyGroupRequest struct {
*tchttp.BaseRequest
// 通道组所属项目ID
ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"`
// 通道组别名
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// 源站地域,参考接口DescribeDestRegions 返回参数RegionDetail中的RegionId
RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"`
// 标签列表
TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet" list`
// 加速地域列表,包括加速地域名,及该地域对应的带宽和并发配置。
AccessRegionSet []*AccessConfiguration `json:"AccessRegionSet,omitempty" name:"AccessRegionSet" list`
}
func (r *CreateProxyGroupRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateProxyGroupRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateProxyGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 通道组ID
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateProxyGroupResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateProxyGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateProxyRequest struct {
*tchttp.BaseRequest
// 通道的项目ID。
ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"`
// 通道名称。
ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"`
// 接入地域。
AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"`
// 通道带宽上限,单位:Mbps。
Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"`
// 通道并发量上限,表示同时在线的连接数,单位:万。
Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"`
// 源站地域。当GroupId存在时,源站地域为通道组的源站地域,此时可不填该字段。当GroupId不存在时,需要填写该字段
RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"`
// 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
// 更多详细信息请参阅:如何保证幂等性。
ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"`
// 通道所在的通道组ID,当在通道组中创建通道时必带,否则忽略该字段。
GroupId *string `json:"GroupId,omitempty" name:"GroupId"`
// 通道需要添加的标签列表。
TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet" list`
// 被复制的通道ID。只有处于运行中状态的通道可以被复制。
// 当设置该参数时,表示复制该通道。
ClonedProxyId *string `json:"ClonedProxyId,omitempty" name:"ClonedProxyId"`
// 计费方式 (0:按带宽计费,1:按流量计费 默认按带宽计费)
BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"`
}
func (r *CreateProxyRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateProxyRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateProxyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 通道的实例ID。
InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateProxyResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateProxyResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateRuleRequest struct {
*tchttp.BaseRequest
// 7层监听器ID
ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"`
// 转发规则的域名
Domain *string `json:"Domain,omitempty" name:"Domain"`
// 转发规则的路径
Path *string `json:"Path,omitempty" name:"Path"`
// 转发规则对应源站的类型,支持IP和DOMAIN类型。
RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"`
// 规则转发源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc)。
Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"`
// 规则是否开启健康检查,1开启,0关闭。
HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"`
// 源站健康检查相关参数
CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"`
// 加速通道转发到源站的协议类型:支持HTTP或HTTPS。
// 不传递该字段时表示使用对应监听器的ForwardProtocol。
ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"`
// 加速通道转发到远照的host,不设置该参数时,使用默认的host设置,即客户端发起的http请求的host。
ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"`
}
func (r *CreateRuleRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateRuleRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateRuleResponse struct {
*tchttp.BaseResponse
Response *struct {
// 创建转发规则成功返回规则ID
RuleId *string `json:"RuleId,omitempty" name:"RuleId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateRuleResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateRuleResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateSecurityPolicyRequest struct {