-
Notifications
You must be signed in to change notification settings - Fork 195
/
models.go
7082 lines (5548 loc) · 259 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 v20210323
import (
tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json"
)
type AddRecordBatch struct {
// 记录类型, 详见 DescribeRecordType 接口。
RecordType *string `json:"RecordType,omitnil,omitempty" name:"RecordType"`
// 记录值。
Value *string `json:"Value,omitnil,omitempty" name:"Value"`
// 子域名(主机记录),默认为@。
SubDomain *string `json:"SubDomain,omitnil,omitempty" name:"SubDomain"`
// 解析记录的线路,详见 DescribeRecordLineList 接口,RecordLine和RecordLineId都未填时,默认为「默认」线路。
RecordLine *string `json:"RecordLine,omitnil,omitempty" name:"RecordLine"`
// 解析记录的线路 ID,RecordLine和RecordLineId都有时,系统优先取 RecordLineId。
RecordLineId *string `json:"RecordLineId,omitnil,omitempty" name:"RecordLineId"`
// 记录权重值(暂未支持)。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// 记录的 MX 记录值,非 MX 记录类型,默认为 0,MX记录则必选。
MX *uint64 `json:"MX,omitnil,omitempty" name:"MX"`
// 记录的 TTL 值,默认600。
TTL *uint64 `json:"TTL,omitnil,omitempty" name:"TTL"`
// 记录状态(暂未支持)。0表示禁用,1表示启用。默认启用。
Enabled *uint64 `json:"Enabled,omitnil,omitempty" name:"Enabled"`
// 记录备注(暂未支持)。
Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`
}
type BatchRecordInfo struct {
// 记录 ID
// 注意:此字段可能返回 null,表示取不到有效值。
RecordId *uint64 `json:"RecordId,omitnil,omitempty" name:"RecordId"`
// 子域名(主机记录)。
// 注意:此字段可能返回 null,表示取不到有效值。
SubDomain *string `json:"SubDomain,omitnil,omitempty" name:"SubDomain"`
// 记录类型, 详见 DescribeRecordType 接口
// 注意:此字段可能返回 null,表示取不到有效值。
RecordType *string `json:"RecordType,omitnil,omitempty" name:"RecordType"`
// 解析记录的线路,详见 DescribeRecordLineList 接口
// 注意:此字段可能返回 null,表示取不到有效值。
RecordLine *string `json:"RecordLine,omitnil,omitempty" name:"RecordLine"`
// 记录值
// 注意:此字段可能返回 null,表示取不到有效值。
Value *string `json:"Value,omitnil,omitempty" name:"Value"`
// 记录的 TTL 值
// 注意:此字段可能返回 null,表示取不到有效值。
TTL *uint64 `json:"TTL,omitnil,omitempty" name:"TTL"`
// 记录添加状态
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 操作类型
// 注意:此字段可能返回 null,表示取不到有效值。
Operation *string `json:"Operation,omitnil,omitempty" name:"Operation"`
// 错误信息
// 注意:此字段可能返回 null,表示取不到有效值。
ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`
// 此条记录在列表中的ID
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
// 记录生效状态
// 注意:此字段可能返回 null,表示取不到有效值。
Enabled *uint64 `json:"Enabled,omitnil,omitempty" name:"Enabled"`
// 记录的MX权重
// 注意:此字段可能返回 null,表示取不到有效值。
MX *uint64 `json:"MX,omitnil,omitempty" name:"MX"`
// 记录权重
// 注意:此字段可能返回 null,表示取不到有效值。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
// 备注信息
// 注意:此字段可能返回 null,表示取不到有效值。
Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`
}
// Predefined struct for user
type CheckRecordSnapshotRollbackRequestParams struct {
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 快照 ID
SnapshotId *string `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"`
// 解析记录信息
Record *SnapshotRecord `json:"Record,omitnil,omitempty" name:"Record"`
// 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
type CheckRecordSnapshotRollbackRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 快照 ID
SnapshotId *string `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"`
// 解析记录信息
Record *SnapshotRecord `json:"Record,omitnil,omitempty" name:"Record"`
// 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
func (r *CheckRecordSnapshotRollbackRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CheckRecordSnapshotRollbackRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Domain")
delete(f, "SnapshotId")
delete(f, "Record")
delete(f, "DomainId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckRecordSnapshotRollbackRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CheckRecordSnapshotRollbackResponseParams struct {
// 错误原因
// 注意:此字段可能返回 null,表示取不到有效值。
Reason *string `json:"Reason,omitnil,omitempty" name:"Reason"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CheckRecordSnapshotRollbackResponse struct {
*tchttp.BaseResponse
Response *CheckRecordSnapshotRollbackResponseParams `json:"Response"`
}
func (r *CheckRecordSnapshotRollbackResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CheckRecordSnapshotRollbackResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CheckSnapshotRollbackRequestParams struct {
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 快照记录 ID
SnapshotId *string `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"`
// 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
type CheckSnapshotRollbackRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 快照记录 ID
SnapshotId *string `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"`
// 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
func (r *CheckSnapshotRollbackRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CheckSnapshotRollbackRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Domain")
delete(f, "SnapshotId")
delete(f, "DomainId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckSnapshotRollbackRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CheckSnapshotRollbackResponseParams struct {
// 快照记录 ID
SnapshotId *string `json:"SnapshotId,omitnil,omitempty" name:"SnapshotId"`
// 回滚时长(分钟)
CostMinutes *uint64 `json:"CostMinutes,omitnil,omitempty" name:"CostMinutes"`
// 快照所属域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 解析记录总数
Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`
// 值为 1,表示超时
// 注意:此字段可能返回 null,表示取不到有效值。
Timeout *uint64 `json:"Timeout,omitnil,omitempty" name:"Timeout"`
// 检查失败数量
// 注意:此字段可能返回 null,表示取不到有效值。
Failed *uint64 `json:"Failed,omitnil,omitempty" name:"Failed"`
// 失败记录信息
// 注意:此字段可能返回 null,表示取不到有效值。
FailedRecordList []*SnapshotRecord `json:"FailedRecordList,omitnil,omitempty" name:"FailedRecordList"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CheckSnapshotRollbackResponse struct {
*tchttp.BaseResponse
Response *CheckSnapshotRollbackResponseParams `json:"Response"`
}
func (r *CheckSnapshotRollbackResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CheckSnapshotRollbackResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDealRequestParams struct {
// 询价类型,1 新购,2 续费,3 套餐升级(增值服务暂时只支持新购)
DealType *uint64 `json:"DealType,omitnil,omitempty" name:"DealType"`
// 商品类型,1 域名套餐 2 增值服务
GoodsType *uint64 `json:"GoodsType,omitnil,omitempty" name:"GoodsType"`
// 套餐类型:
// DP_PLUS:专业版
// DP_EXPERT:企业版
// DP_ULTRA:尊享版
//
// 增值服务类型
// LB:负载均衡
// URL:URL转发
// DMONITOR_TASKS:D监控任务数
// DMONITOR_IP:D监控备用 IP 数
// CUSTOMLINE:自定义线路数
GoodsChildType *string `json:"GoodsChildType,omitnil,omitempty" name:"GoodsChildType"`
// 增值服务购买数量,如果是域名套餐固定为1,如果是增值服务则按以下规则:
// 负载均衡、D监控任务数、D监控备用 IP 数、自定义线路数、URL 转发(必须是5的正整数倍,如 5、10、15 等)
GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// 是否开启自动续费,1 开启,2 不开启(增值服务暂不支持自动续费),默认值为 2 不开启
AutoRenew *uint64 `json:"AutoRenew,omitnil,omitempty" name:"AutoRenew"`
// 需要绑定套餐的域名,如 dnspod.cn,如果是续费或升级,domain 参数必须要传,新购可不传。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 套餐时长:
// 1. 套餐以月为单位(按月只能是 3、6 还有 12 的倍数),套餐例如购买一年则传12,最大120 。(续费最低一年)
// 2. 升级套餐时不需要传。
// 3. 增值服务的时长单位为年,买一年传1(增值服务新购按年只能是 1,增值服务续费最大为 10)
TimeSpan *uint64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 套餐类型,需要升级到的套餐类型,只有升级时需要。
NewPackageType *string `json:"NewPackageType,omitnil,omitempty" name:"NewPackageType"`
}
type CreateDealRequest struct {
*tchttp.BaseRequest
// 询价类型,1 新购,2 续费,3 套餐升级(增值服务暂时只支持新购)
DealType *uint64 `json:"DealType,omitnil,omitempty" name:"DealType"`
// 商品类型,1 域名套餐 2 增值服务
GoodsType *uint64 `json:"GoodsType,omitnil,omitempty" name:"GoodsType"`
// 套餐类型:
// DP_PLUS:专业版
// DP_EXPERT:企业版
// DP_ULTRA:尊享版
//
// 增值服务类型
// LB:负载均衡
// URL:URL转发
// DMONITOR_TASKS:D监控任务数
// DMONITOR_IP:D监控备用 IP 数
// CUSTOMLINE:自定义线路数
GoodsChildType *string `json:"GoodsChildType,omitnil,omitempty" name:"GoodsChildType"`
// 增值服务购买数量,如果是域名套餐固定为1,如果是增值服务则按以下规则:
// 负载均衡、D监控任务数、D监控备用 IP 数、自定义线路数、URL 转发(必须是5的正整数倍,如 5、10、15 等)
GoodsNum *uint64 `json:"GoodsNum,omitnil,omitempty" name:"GoodsNum"`
// 是否开启自动续费,1 开启,2 不开启(增值服务暂不支持自动续费),默认值为 2 不开启
AutoRenew *uint64 `json:"AutoRenew,omitnil,omitempty" name:"AutoRenew"`
// 需要绑定套餐的域名,如 dnspod.cn,如果是续费或升级,domain 参数必须要传,新购可不传。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 套餐时长:
// 1. 套餐以月为单位(按月只能是 3、6 还有 12 的倍数),套餐例如购买一年则传12,最大120 。(续费最低一年)
// 2. 升级套餐时不需要传。
// 3. 增值服务的时长单位为年,买一年传1(增值服务新购按年只能是 1,增值服务续费最大为 10)
TimeSpan *uint64 `json:"TimeSpan,omitnil,omitempty" name:"TimeSpan"`
// 套餐类型,需要升级到的套餐类型,只有升级时需要。
NewPackageType *string `json:"NewPackageType,omitnil,omitempty" name:"NewPackageType"`
}
func (r *CreateDealRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDealRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "DealType")
delete(f, "GoodsType")
delete(f, "GoodsChildType")
delete(f, "GoodsNum")
delete(f, "AutoRenew")
delete(f, "Domain")
delete(f, "TimeSpan")
delete(f, "NewPackageType")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDealRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDealResponseParams struct {
// 大订单号,一个大订单号下可以有多个子订单,说明是同一次下单
BigDealId *string `json:"BigDealId,omitnil,omitempty" name:"BigDealId"`
// 子订单列表
DealList []*Deals `json:"DealList,omitnil,omitempty" name:"DealList"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateDealResponse struct {
*tchttp.BaseResponse
Response *CreateDealResponseParams `json:"Response"`
}
func (r *CreateDealResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDealResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainAliasRequestParams struct {
// 域名别名
DomainAlias *string `json:"DomainAlias,omitnil,omitempty" name:"DomainAlias"`
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId
DomainId *int64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
type CreateDomainAliasRequest struct {
*tchttp.BaseRequest
// 域名别名
DomainAlias *string `json:"DomainAlias,omitnil,omitempty" name:"DomainAlias"`
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId
DomainId *int64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
func (r *CreateDomainAliasRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainAliasRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "DomainAlias")
delete(f, "Domain")
delete(f, "DomainId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDomainAliasRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainAliasResponseParams struct {
// 域名别名ID
DomainAliasId *int64 `json:"DomainAliasId,omitnil,omitempty" name:"DomainAliasId"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateDomainAliasResponse struct {
*tchttp.BaseResponse
Response *CreateDomainAliasResponseParams `json:"Response"`
}
func (r *CreateDomainAliasResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainAliasResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateDomainBatchDetail struct {
// 见RecordInfoBatch
// 注意:此字段可能返回 null,表示取不到有效值。
RecordList []*CreateDomainBatchRecord `json:"RecordList,omitnil,omitempty" name:"RecordList"`
// 任务编号
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
// 域名
// 注意:此字段可能返回 null,表示取不到有效值。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 域名等级
// 注意:此字段可能返回 null,表示取不到有效值。
DomainGrade *string `json:"DomainGrade,omitnil,omitempty" name:"DomainGrade"`
// 错误信息
// 注意:此字段可能返回 null,表示取不到有效值。
ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`
// 该条任务运行状态
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 操作类型
// 注意:此字段可能返回 null,表示取不到有效值。
Operation *string `json:"Operation,omitnil,omitempty" name:"Operation"`
}
type CreateDomainBatchRecord struct {
// 子域名(主机记录)。
// 注意:此字段可能返回 null,表示取不到有效值。
SubDomain *string `json:"SubDomain,omitnil,omitempty" name:"SubDomain"`
// 记录类型, 详见 DescribeRecordType 接口
// 注意:此字段可能返回 null,表示取不到有效值。
RecordType *string `json:"RecordType,omitnil,omitempty" name:"RecordType"`
// 解析记录的线路,详见 DescribeRecordLineList 接口
// 注意:此字段可能返回 null,表示取不到有效值。
RecordLine *string `json:"RecordLine,omitnil,omitempty" name:"RecordLine"`
// 记录值
// 注意:此字段可能返回 null,表示取不到有效值。
Value *string `json:"Value,omitnil,omitempty" name:"Value"`
// 记录的 TTL 值
// 注意:此字段可能返回 null,表示取不到有效值。
TTL *uint64 `json:"TTL,omitnil,omitempty" name:"TTL"`
// 记录添加状态
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 操作类型
// 注意:此字段可能返回 null,表示取不到有效值。
Operation *string `json:"Operation,omitnil,omitempty" name:"Operation"`
// 错误信息
// 注意:此字段可能返回 null,表示取不到有效值。
ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`
// 此条记录在列表中的ID
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
}
// Predefined struct for user
type CreateDomainBatchRequestParams struct {
// 域名数组
DomainList []*string `json:"DomainList,omitnil,omitempty" name:"DomainList"`
// 每个域名添加 @ 和 www 的 A 记录值,记录值为IP,如果不传此参数或者传空,将只添加域名,不添加记录。
RecordValue *string `json:"RecordValue,omitnil,omitempty" name:"RecordValue"`
}
type CreateDomainBatchRequest struct {
*tchttp.BaseRequest
// 域名数组
DomainList []*string `json:"DomainList,omitnil,omitempty" name:"DomainList"`
// 每个域名添加 @ 和 www 的 A 记录值,记录值为IP,如果不传此参数或者传空,将只添加域名,不添加记录。
RecordValue *string `json:"RecordValue,omitnil,omitempty" name:"RecordValue"`
}
func (r *CreateDomainBatchRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainBatchRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "DomainList")
delete(f, "RecordValue")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDomainBatchRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainBatchResponseParams struct {
// 批量添加域名信息
DetailList []*CreateDomainBatchDetail `json:"DetailList,omitnil,omitempty" name:"DetailList"`
// 批量任务的ID
JobId *uint64 `json:"JobId,omitnil,omitempty" name:"JobId"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateDomainBatchResponse struct {
*tchttp.BaseResponse
Response *CreateDomainBatchResponseParams `json:"Response"`
}
func (r *CreateDomainBatchResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainBatchResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainCustomLineRequestParams struct {
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 自定义线路名称
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// 自定义线路IP段,用-分割
Area *string `json:"Area,omitnil,omitempty" name:"Area"`
// 域名ID,如果传了DomainId,系统将会忽略Domain参数,优先使用DomainId
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
type CreateDomainCustomLineRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 自定义线路名称
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
// 自定义线路IP段,用-分割
Area *string `json:"Area,omitnil,omitempty" name:"Area"`
// 域名ID,如果传了DomainId,系统将会忽略Domain参数,优先使用DomainId
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
func (r *CreateDomainCustomLineRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainCustomLineRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Domain")
delete(f, "Name")
delete(f, "Area")
delete(f, "DomainId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDomainCustomLineRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainCustomLineResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateDomainCustomLineResponse struct {
*tchttp.BaseResponse
Response *CreateDomainCustomLineResponseParams `json:"Response"`
}
func (r *CreateDomainCustomLineResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainCustomLineResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainGroupRequestParams struct {
// 域名分组
GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
}
type CreateDomainGroupRequest struct {
*tchttp.BaseRequest
// 域名分组
GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
}
func (r *CreateDomainGroupRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainGroupRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "GroupName")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDomainGroupRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainGroupResponseParams struct {
// 域名分组ID
GroupId *int64 `json:"GroupId,omitnil,omitempty" name:"GroupId"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateDomainGroupResponse struct {
*tchttp.BaseResponse
Response *CreateDomainGroupResponseParams `json:"Response"`
}
func (r *CreateDomainGroupResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainRequestParams struct {
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 域名分组ID。可以通过接口DescribeDomainGroupList查看当前域名分组信息
GroupId *uint64 `json:"GroupId,omitnil,omitempty" name:"GroupId"`
// 是否星标域名,”yes”、”no” 分别代表是和否。
IsMark *string `json:"IsMark,omitnil,omitempty" name:"IsMark"`
// 添加子域名时,是否迁移相关父域名的解析记录。不传默认为 true
TransferSubDomain *bool `json:"TransferSubDomain,omitnil,omitempty" name:"TransferSubDomain"`
// 域名绑定的标签
Tags []*TagItem `json:"Tags,omitnil,omitempty" name:"Tags"`
}
type CreateDomainRequest struct {
*tchttp.BaseRequest
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 域名分组ID。可以通过接口DescribeDomainGroupList查看当前域名分组信息
GroupId *uint64 `json:"GroupId,omitnil,omitempty" name:"GroupId"`
// 是否星标域名,”yes”、”no” 分别代表是和否。
IsMark *string `json:"IsMark,omitnil,omitempty" name:"IsMark"`
// 添加子域名时,是否迁移相关父域名的解析记录。不传默认为 true
TransferSubDomain *bool `json:"TransferSubDomain,omitnil,omitempty" name:"TransferSubDomain"`
// 域名绑定的标签
Tags []*TagItem `json:"Tags,omitnil,omitempty" name:"Tags"`
}
func (r *CreateDomainRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Domain")
delete(f, "GroupId")
delete(f, "IsMark")
delete(f, "TransferSubDomain")
delete(f, "Tags")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDomainRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateDomainResponseParams struct {
// 域名信息
DomainInfo *DomainCreateInfo `json:"DomainInfo,omitnil,omitempty" name:"DomainInfo"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateDomainResponse struct {
*tchttp.BaseResponse
Response *CreateDomainResponseParams `json:"Response"`
}
func (r *CreateDomainResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateDomainResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateRecordBatchDetail struct {
// 见RecordInfoBatch
// 注意:此字段可能返回 null,表示取不到有效值。
RecordList []*CreateRecordBatchRecord `json:"RecordList,omitnil,omitempty" name:"RecordList"`
// 任务编号
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
// 域名
// 注意:此字段可能返回 null,表示取不到有效值。
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 域名等级
// 注意:此字段可能返回 null,表示取不到有效值。
DomainGrade *string `json:"DomainGrade,omitnil,omitempty" name:"DomainGrade"`
// 错误信息
// 注意:此字段可能返回 null,表示取不到有效值。
ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`
// 该条任务运行状态
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 操作类型
// 注意:此字段可能返回 null,表示取不到有效值。
Operation *string `json:"Operation,omitnil,omitempty" name:"Operation"`
// 域名ID
// 注意:此字段可能返回 null,表示取不到有效值。
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
type CreateRecordBatchRecord struct {
// 子域名(主机记录)。
// 注意:此字段可能返回 null,表示取不到有效值。
SubDomain *string `json:"SubDomain,omitnil,omitempty" name:"SubDomain"`
// 记录类型, 详见 DescribeRecordType 接口
// 注意:此字段可能返回 null,表示取不到有效值。
RecordType *string `json:"RecordType,omitnil,omitempty" name:"RecordType"`
// 解析记录的线路,详见 DescribeRecordLineList 接口
// 注意:此字段可能返回 null,表示取不到有效值。
RecordLine *string `json:"RecordLine,omitnil,omitempty" name:"RecordLine"`
// 记录值
// 注意:此字段可能返回 null,表示取不到有效值。
Value *string `json:"Value,omitnil,omitempty" name:"Value"`
// 记录的 TTL 值
// 注意:此字段可能返回 null,表示取不到有效值。
TTL *uint64 `json:"TTL,omitnil,omitempty" name:"TTL"`
// 记录添加状态
// 注意:此字段可能返回 null,表示取不到有效值。
Status *string `json:"Status,omitnil,omitempty" name:"Status"`
// 操作类型
// 注意:此字段可能返回 null,表示取不到有效值。
Operation *string `json:"Operation,omitnil,omitempty" name:"Operation"`
// 错误信息
// 注意:此字段可能返回 null,表示取不到有效值。
ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"`
// 此条记录在列表中的ID
Id *uint64 `json:"Id,omitnil,omitempty" name:"Id"`
// 记录的MX权重
// 注意:此字段可能返回 null,表示取不到有效值。
MX *uint64 `json:"MX,omitnil,omitempty" name:"MX"`
// 记录的权重
// 注意:此字段可能返回 null,表示取不到有效值。
Weight *uint64 `json:"Weight,omitnil,omitempty" name:"Weight"`
}
// Predefined struct for user
type CreateRecordBatchRequestParams struct {
// 域名ID,多个 domain_id 用英文逗号进行分割。
DomainIdList []*string `json:"DomainIdList,omitnil,omitempty" name:"DomainIdList"`
// 记录数组
RecordList []*AddRecordBatch `json:"RecordList,omitnil,omitempty" name:"RecordList"`
}
type CreateRecordBatchRequest struct {
*tchttp.BaseRequest
// 域名ID,多个 domain_id 用英文逗号进行分割。
DomainIdList []*string `json:"DomainIdList,omitnil,omitempty" name:"DomainIdList"`
// 记录数组
RecordList []*AddRecordBatch `json:"RecordList,omitnil,omitempty" name:"RecordList"`
}
func (r *CreateRecordBatchRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateRecordBatchRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "DomainIdList")
delete(f, "RecordList")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateRecordBatchRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateRecordBatchResponseParams struct {
// 批量添加域名信息
DetailList []*CreateRecordBatchDetail `json:"DetailList,omitnil,omitempty" name:"DetailList"`
// 批量任务的ID
JobId *uint64 `json:"JobId,omitnil,omitempty" name:"JobId"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateRecordBatchResponse struct {
*tchttp.BaseResponse
Response *CreateRecordBatchResponseParams `json:"Response"`
}
func (r *CreateRecordBatchResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *CreateRecordBatchResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateRecordGroupRequestParams struct {
// 域名
Domain *string `json:"Domain,omitnil,omitempty" name:"Domain"`
// 分组名称
GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
// 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。
DomainId *uint64 `json:"DomainId,omitnil,omitempty" name:"DomainId"`
}
type CreateRecordGroupRequest struct {
*tchttp.BaseRequest