1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
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
15package v20201028
16
17import (
18    "encoding/json"
19    tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
20    tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
21)
22
23type AuditLog struct {
24
25	// 日志类型
26	Resource *string `json:"Resource,omitempty" name:"Resource"`
27
28	// 日志表名
29	Metric *string `json:"Metric,omitempty" name:"Metric"`
30
31	// 日志总数
32	TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
33
34	// 日志列表
35	DataSet []*AuditLogInfo `json:"DataSet,omitempty" name:"DataSet"`
36}
37
38type AuditLogInfo struct {
39
40	// 时间
41	Date *string `json:"Date,omitempty" name:"Date"`
42
43	// 操作人uin
44	OperatorUin *string `json:"OperatorUin,omitempty" name:"OperatorUin"`
45
46	// 日志内容
47	Content *string `json:"Content,omitempty" name:"Content"`
48}
49
50type CreatePrivateZoneRecordRequest struct {
51	*tchttp.BaseRequest
52
53	// 私有域ID
54	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
55
56	// 记录类型,可选的记录类型为:"A", "AAAA", "CNAME", "MX", "TXT", "PTR"
57	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`
58
59	// 子域名,例如 "www", "m", "@"
60	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`
61
62	// 记录值,例如 IP:192.168.10.2,CNAME:cname.qcloud.com.,MX:mail.qcloud.com.
63	RecordValue *string `json:"RecordValue,omitempty" name:"RecordValue"`
64
65	// 记录权重,值为1-100
66	Weight *int64 `json:"Weight,omitempty" name:"Weight"`
67
68	// MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50
69	MX *int64 `json:"MX,omitempty" name:"MX"`
70
71	// 记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600
72	TTL *int64 `json:"TTL,omitempty" name:"TTL"`
73}
74
75func (r *CreatePrivateZoneRecordRequest) ToJsonString() string {
76    b, _ := json.Marshal(r)
77    return string(b)
78}
79
80// FromJsonString It is highly **NOT** recommended to use this function
81// because it has no param check, nor strict type check
82func (r *CreatePrivateZoneRecordRequest) FromJsonString(s string) error {
83	f := make(map[string]interface{})
84	if err := json.Unmarshal([]byte(s), &f); err != nil {
85		return err
86	}
87	delete(f, "ZoneId")
88	delete(f, "RecordType")
89	delete(f, "SubDomain")
90	delete(f, "RecordValue")
91	delete(f, "Weight")
92	delete(f, "MX")
93	delete(f, "TTL")
94	if len(f) > 0 {
95		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePrivateZoneRecordRequest has unknown keys!", "")
96	}
97	return json.Unmarshal([]byte(s), &r)
98}
99
100type CreatePrivateZoneRecordResponse struct {
101	*tchttp.BaseResponse
102	Response *struct {
103
104		// 记录Id
105		RecordId *string `json:"RecordId,omitempty" name:"RecordId"`
106
107		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
108		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
109	} `json:"Response"`
110}
111
112func (r *CreatePrivateZoneRecordResponse) ToJsonString() string {
113    b, _ := json.Marshal(r)
114    return string(b)
115}
116
117// FromJsonString It is highly **NOT** recommended to use this function
118// because it has no param check, nor strict type check
119func (r *CreatePrivateZoneRecordResponse) FromJsonString(s string) error {
120	return json.Unmarshal([]byte(s), &r)
121}
122
123type CreatePrivateZoneRequest struct {
124	*tchttp.BaseRequest
125
126	// 域名,格式必须是标准的TLD
127	Domain *string `json:"Domain,omitempty" name:"Domain"`
128
129	// 创建私有域的同时,为其打上标签
130	TagSet []*TagInfo `json:"TagSet,omitempty" name:"TagSet"`
131
132	// 创建私有域的同时,将其关联至VPC
133	VpcSet []*VpcInfo `json:"VpcSet,omitempty" name:"VpcSet"`
134
135	// 备注
136	Remark *string `json:"Remark,omitempty" name:"Remark"`
137
138	// 是否开启子域名递归, ENABLED, DISABLED。默认值为DISABLED
139	DnsForwardStatus *string `json:"DnsForwardStatus,omitempty" name:"DnsForwardStatus"`
140
141	// 创建私有域的同时,将其关联至VPC
142	Vpcs []*VpcInfo `json:"Vpcs,omitempty" name:"Vpcs"`
143}
144
145func (r *CreatePrivateZoneRequest) ToJsonString() string {
146    b, _ := json.Marshal(r)
147    return string(b)
148}
149
150// FromJsonString It is highly **NOT** recommended to use this function
151// because it has no param check, nor strict type check
152func (r *CreatePrivateZoneRequest) FromJsonString(s string) error {
153	f := make(map[string]interface{})
154	if err := json.Unmarshal([]byte(s), &f); err != nil {
155		return err
156	}
157	delete(f, "Domain")
158	delete(f, "TagSet")
159	delete(f, "VpcSet")
160	delete(f, "Remark")
161	delete(f, "DnsForwardStatus")
162	delete(f, "Vpcs")
163	if len(f) > 0 {
164		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePrivateZoneRequest has unknown keys!", "")
165	}
166	return json.Unmarshal([]byte(s), &r)
167}
168
169type CreatePrivateZoneResponse struct {
170	*tchttp.BaseResponse
171	Response *struct {
172
173		// 私有域ID, zone-xxxxxx
174		ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
175
176		// 私有域名
177		Domain *string `json:"Domain,omitempty" name:"Domain"`
178
179		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
180		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
181	} `json:"Response"`
182}
183
184func (r *CreatePrivateZoneResponse) ToJsonString() string {
185    b, _ := json.Marshal(r)
186    return string(b)
187}
188
189// FromJsonString It is highly **NOT** recommended to use this function
190// because it has no param check, nor strict type check
191func (r *CreatePrivateZoneResponse) FromJsonString(s string) error {
192	return json.Unmarshal([]byte(s), &r)
193}
194
195type DatePoint struct {
196
197	// 时间
198	Date *string `json:"Date,omitempty" name:"Date"`
199
200	// 值
201	Value *int64 `json:"Value,omitempty" name:"Value"`
202}
203
204type DeletePrivateZoneRecordRequest struct {
205	*tchttp.BaseRequest
206
207	// 私有域ID
208	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
209
210	// 记录ID
211	RecordId *string `json:"RecordId,omitempty" name:"RecordId"`
212
213	// 记录ID数组,RecordId 优先
214	RecordIdSet []*string `json:"RecordIdSet,omitempty" name:"RecordIdSet"`
215}
216
217func (r *DeletePrivateZoneRecordRequest) ToJsonString() string {
218    b, _ := json.Marshal(r)
219    return string(b)
220}
221
222// FromJsonString It is highly **NOT** recommended to use this function
223// because it has no param check, nor strict type check
224func (r *DeletePrivateZoneRecordRequest) FromJsonString(s string) error {
225	f := make(map[string]interface{})
226	if err := json.Unmarshal([]byte(s), &f); err != nil {
227		return err
228	}
229	delete(f, "ZoneId")
230	delete(f, "RecordId")
231	delete(f, "RecordIdSet")
232	if len(f) > 0 {
233		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeletePrivateZoneRecordRequest has unknown keys!", "")
234	}
235	return json.Unmarshal([]byte(s), &r)
236}
237
238type DeletePrivateZoneRecordResponse struct {
239	*tchttp.BaseResponse
240	Response *struct {
241
242		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
243		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
244	} `json:"Response"`
245}
246
247func (r *DeletePrivateZoneRecordResponse) ToJsonString() string {
248    b, _ := json.Marshal(r)
249    return string(b)
250}
251
252// FromJsonString It is highly **NOT** recommended to use this function
253// because it has no param check, nor strict type check
254func (r *DeletePrivateZoneRecordResponse) FromJsonString(s string) error {
255	return json.Unmarshal([]byte(s), &r)
256}
257
258type DeletePrivateZoneRequest struct {
259	*tchttp.BaseRequest
260
261	// 私有域ID
262	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
263
264	// 私有域ID数组,ZoneId 优先
265	ZoneIdSet []*string `json:"ZoneIdSet,omitempty" name:"ZoneIdSet"`
266}
267
268func (r *DeletePrivateZoneRequest) ToJsonString() string {
269    b, _ := json.Marshal(r)
270    return string(b)
271}
272
273// FromJsonString It is highly **NOT** recommended to use this function
274// because it has no param check, nor strict type check
275func (r *DeletePrivateZoneRequest) FromJsonString(s string) error {
276	f := make(map[string]interface{})
277	if err := json.Unmarshal([]byte(s), &f); err != nil {
278		return err
279	}
280	delete(f, "ZoneId")
281	delete(f, "ZoneIdSet")
282	if len(f) > 0 {
283		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeletePrivateZoneRequest has unknown keys!", "")
284	}
285	return json.Unmarshal([]byte(s), &r)
286}
287
288type DeletePrivateZoneResponse struct {
289	*tchttp.BaseResponse
290	Response *struct {
291
292		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
293		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
294	} `json:"Response"`
295}
296
297func (r *DeletePrivateZoneResponse) ToJsonString() string {
298    b, _ := json.Marshal(r)
299    return string(b)
300}
301
302// FromJsonString It is highly **NOT** recommended to use this function
303// because it has no param check, nor strict type check
304func (r *DeletePrivateZoneResponse) FromJsonString(s string) error {
305	return json.Unmarshal([]byte(s), &r)
306}
307
308type DescribeAuditLogRequest struct {
309	*tchttp.BaseRequest
310
311	// 请求量统计起始时间
312	TimeRangeBegin *string `json:"TimeRangeBegin,omitempty" name:"TimeRangeBegin"`
313
314	// 筛选参数:ZoneId:私有域ID;Domain:私有域;OperatorUin:操作者账号ID
315	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
316
317	// 请求量统计结束时间
318	TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"`
319
320	// 分页偏移量,从0开始
321	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
322
323	// 分页限制数目, 最大100,默认20
324	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
325}
326
327func (r *DescribeAuditLogRequest) ToJsonString() string {
328    b, _ := json.Marshal(r)
329    return string(b)
330}
331
332// FromJsonString It is highly **NOT** recommended to use this function
333// because it has no param check, nor strict type check
334func (r *DescribeAuditLogRequest) FromJsonString(s string) error {
335	f := make(map[string]interface{})
336	if err := json.Unmarshal([]byte(s), &f); err != nil {
337		return err
338	}
339	delete(f, "TimeRangeBegin")
340	delete(f, "Filters")
341	delete(f, "TimeRangeEnd")
342	delete(f, "Offset")
343	delete(f, "Limit")
344	if len(f) > 0 {
345		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAuditLogRequest has unknown keys!", "")
346	}
347	return json.Unmarshal([]byte(s), &r)
348}
349
350type DescribeAuditLogResponse struct {
351	*tchttp.BaseResponse
352	Response *struct {
353
354		// 操作日志列表
355		Data []*AuditLog `json:"Data,omitempty" name:"Data"`
356
357		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
358		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
359	} `json:"Response"`
360}
361
362func (r *DescribeAuditLogResponse) ToJsonString() string {
363    b, _ := json.Marshal(r)
364    return string(b)
365}
366
367// FromJsonString It is highly **NOT** recommended to use this function
368// because it has no param check, nor strict type check
369func (r *DescribeAuditLogResponse) FromJsonString(s string) error {
370	return json.Unmarshal([]byte(s), &r)
371}
372
373type DescribeDashboardRequest struct {
374	*tchttp.BaseRequest
375}
376
377func (r *DescribeDashboardRequest) ToJsonString() string {
378    b, _ := json.Marshal(r)
379    return string(b)
380}
381
382// FromJsonString It is highly **NOT** recommended to use this function
383// because it has no param check, nor strict type check
384func (r *DescribeDashboardRequest) FromJsonString(s string) error {
385	f := make(map[string]interface{})
386	if err := json.Unmarshal([]byte(s), &f); err != nil {
387		return err
388	}
389	if len(f) > 0 {
390		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDashboardRequest has unknown keys!", "")
391	}
392	return json.Unmarshal([]byte(s), &r)
393}
394
395type DescribeDashboardResponse struct {
396	*tchttp.BaseResponse
397	Response *struct {
398
399		// 私有域解析总数
400		ZoneTotal *int64 `json:"ZoneTotal,omitempty" name:"ZoneTotal"`
401
402		// 私有域关联VPC数量
403		ZoneVpcCount *int64 `json:"ZoneVpcCount,omitempty" name:"ZoneVpcCount"`
404
405		// 历史请求量总数
406		RequestTotalCount *int64 `json:"RequestTotalCount,omitempty" name:"RequestTotalCount"`
407
408		// 流量包用量
409		FlowUsage []*FlowUsage `json:"FlowUsage,omitempty" name:"FlowUsage"`
410
411		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
412		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
413	} `json:"Response"`
414}
415
416func (r *DescribeDashboardResponse) ToJsonString() string {
417    b, _ := json.Marshal(r)
418    return string(b)
419}
420
421// FromJsonString It is highly **NOT** recommended to use this function
422// because it has no param check, nor strict type check
423func (r *DescribeDashboardResponse) FromJsonString(s string) error {
424	return json.Unmarshal([]byte(s), &r)
425}
426
427type DescribePrivateZoneListRequest struct {
428	*tchttp.BaseRequest
429
430	// 分页偏移量,从0开始
431	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
432
433	// 分页限制数目, 最大100,默认20
434	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
435
436	// 过滤参数
437	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
438}
439
440func (r *DescribePrivateZoneListRequest) ToJsonString() string {
441    b, _ := json.Marshal(r)
442    return string(b)
443}
444
445// FromJsonString It is highly **NOT** recommended to use this function
446// because it has no param check, nor strict type check
447func (r *DescribePrivateZoneListRequest) FromJsonString(s string) error {
448	f := make(map[string]interface{})
449	if err := json.Unmarshal([]byte(s), &f); err != nil {
450		return err
451	}
452	delete(f, "Offset")
453	delete(f, "Limit")
454	delete(f, "Filters")
455	if len(f) > 0 {
456		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrivateZoneListRequest has unknown keys!", "")
457	}
458	return json.Unmarshal([]byte(s), &r)
459}
460
461type DescribePrivateZoneListResponse struct {
462	*tchttp.BaseResponse
463	Response *struct {
464
465		// 私有域数量
466		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
467
468		// 私有域列表
469		PrivateZoneSet []*PrivateZone `json:"PrivateZoneSet,omitempty" name:"PrivateZoneSet"`
470
471		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
472		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
473	} `json:"Response"`
474}
475
476func (r *DescribePrivateZoneListResponse) ToJsonString() string {
477    b, _ := json.Marshal(r)
478    return string(b)
479}
480
481// FromJsonString It is highly **NOT** recommended to use this function
482// because it has no param check, nor strict type check
483func (r *DescribePrivateZoneListResponse) FromJsonString(s string) error {
484	return json.Unmarshal([]byte(s), &r)
485}
486
487type DescribePrivateZoneRecordListRequest struct {
488	*tchttp.BaseRequest
489
490	// 私有域ID: zone-xxxxxx
491	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
492
493	// 过滤参数
494	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
495
496	// 分页偏移量,从0开始
497	Offset *int64 `json:"Offset,omitempty" name:"Offset"`
498
499	// 分页限制数目, 最大100,默认20
500	Limit *int64 `json:"Limit,omitempty" name:"Limit"`
501}
502
503func (r *DescribePrivateZoneRecordListRequest) ToJsonString() string {
504    b, _ := json.Marshal(r)
505    return string(b)
506}
507
508// FromJsonString It is highly **NOT** recommended to use this function
509// because it has no param check, nor strict type check
510func (r *DescribePrivateZoneRecordListRequest) FromJsonString(s string) error {
511	f := make(map[string]interface{})
512	if err := json.Unmarshal([]byte(s), &f); err != nil {
513		return err
514	}
515	delete(f, "ZoneId")
516	delete(f, "Filters")
517	delete(f, "Offset")
518	delete(f, "Limit")
519	if len(f) > 0 {
520		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrivateZoneRecordListRequest has unknown keys!", "")
521	}
522	return json.Unmarshal([]byte(s), &r)
523}
524
525type DescribePrivateZoneRecordListResponse struct {
526	*tchttp.BaseResponse
527	Response *struct {
528
529		// 解析记录数量
530		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
531
532		// 解析记录列表
533		RecordSet []*PrivateZoneRecord `json:"RecordSet,omitempty" name:"RecordSet"`
534
535		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
536		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
537	} `json:"Response"`
538}
539
540func (r *DescribePrivateZoneRecordListResponse) ToJsonString() string {
541    b, _ := json.Marshal(r)
542    return string(b)
543}
544
545// FromJsonString It is highly **NOT** recommended to use this function
546// because it has no param check, nor strict type check
547func (r *DescribePrivateZoneRecordListResponse) FromJsonString(s string) error {
548	return json.Unmarshal([]byte(s), &r)
549}
550
551type DescribePrivateZoneRequest struct {
552	*tchttp.BaseRequest
553
554	// 域名,格式必须是标准的TLD
555	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
556}
557
558func (r *DescribePrivateZoneRequest) ToJsonString() string {
559    b, _ := json.Marshal(r)
560    return string(b)
561}
562
563// FromJsonString It is highly **NOT** recommended to use this function
564// because it has no param check, nor strict type check
565func (r *DescribePrivateZoneRequest) FromJsonString(s string) error {
566	f := make(map[string]interface{})
567	if err := json.Unmarshal([]byte(s), &f); err != nil {
568		return err
569	}
570	delete(f, "ZoneId")
571	if len(f) > 0 {
572		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrivateZoneRequest has unknown keys!", "")
573	}
574	return json.Unmarshal([]byte(s), &r)
575}
576
577type DescribePrivateZoneResponse struct {
578	*tchttp.BaseResponse
579	Response *struct {
580
581		// 私有域详情
582		PrivateZone *PrivateZone `json:"PrivateZone,omitempty" name:"PrivateZone"`
583
584		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
585		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
586	} `json:"Response"`
587}
588
589func (r *DescribePrivateZoneResponse) ToJsonString() string {
590    b, _ := json.Marshal(r)
591    return string(b)
592}
593
594// FromJsonString It is highly **NOT** recommended to use this function
595// because it has no param check, nor strict type check
596func (r *DescribePrivateZoneResponse) FromJsonString(s string) error {
597	return json.Unmarshal([]byte(s), &r)
598}
599
600type DescribePrivateZoneServiceRequest struct {
601	*tchttp.BaseRequest
602}
603
604func (r *DescribePrivateZoneServiceRequest) ToJsonString() string {
605    b, _ := json.Marshal(r)
606    return string(b)
607}
608
609// FromJsonString It is highly **NOT** recommended to use this function
610// because it has no param check, nor strict type check
611func (r *DescribePrivateZoneServiceRequest) FromJsonString(s string) error {
612	f := make(map[string]interface{})
613	if err := json.Unmarshal([]byte(s), &f); err != nil {
614		return err
615	}
616	if len(f) > 0 {
617		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePrivateZoneServiceRequest has unknown keys!", "")
618	}
619	return json.Unmarshal([]byte(s), &r)
620}
621
622type DescribePrivateZoneServiceResponse struct {
623	*tchttp.BaseResponse
624	Response *struct {
625
626		// 私有域解析服务开通状态。ENABLED已开通,DISABLED未开通
627		ServiceStatus *string `json:"ServiceStatus,omitempty" name:"ServiceStatus"`
628
629		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
630		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
631	} `json:"Response"`
632}
633
634func (r *DescribePrivateZoneServiceResponse) ToJsonString() string {
635    b, _ := json.Marshal(r)
636    return string(b)
637}
638
639// FromJsonString It is highly **NOT** recommended to use this function
640// because it has no param check, nor strict type check
641func (r *DescribePrivateZoneServiceResponse) FromJsonString(s string) error {
642	return json.Unmarshal([]byte(s), &r)
643}
644
645type DescribeRequestDataRequest struct {
646	*tchttp.BaseRequest
647
648	// 请求量统计起始时间,格式:2020-11-22 00:00:00
649	TimeRangeBegin *string `json:"TimeRangeBegin,omitempty" name:"TimeRangeBegin"`
650
651	// 筛选参数:
652	Filters []*Filter `json:"Filters,omitempty" name:"Filters"`
653
654	// 请求量统计结束时间,格式:2020-11-22 23:59:59
655	TimeRangeEnd *string `json:"TimeRangeEnd,omitempty" name:"TimeRangeEnd"`
656}
657
658func (r *DescribeRequestDataRequest) ToJsonString() string {
659    b, _ := json.Marshal(r)
660    return string(b)
661}
662
663// FromJsonString It is highly **NOT** recommended to use this function
664// because it has no param check, nor strict type check
665func (r *DescribeRequestDataRequest) FromJsonString(s string) error {
666	f := make(map[string]interface{})
667	if err := json.Unmarshal([]byte(s), &f); err != nil {
668		return err
669	}
670	delete(f, "TimeRangeBegin")
671	delete(f, "Filters")
672	delete(f, "TimeRangeEnd")
673	if len(f) > 0 {
674		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRequestDataRequest has unknown keys!", "")
675	}
676	return json.Unmarshal([]byte(s), &r)
677}
678
679type DescribeRequestDataResponse struct {
680	*tchttp.BaseResponse
681	Response *struct {
682
683		// 请求量统计表
684		Data []*MetricData `json:"Data,omitempty" name:"Data"`
685
686		// 请求量单位时间: Day:天,Hour:小时
687		Interval *string `json:"Interval,omitempty" name:"Interval"`
688
689		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
690		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
691	} `json:"Response"`
692}
693
694func (r *DescribeRequestDataResponse) ToJsonString() string {
695    b, _ := json.Marshal(r)
696    return string(b)
697}
698
699// FromJsonString It is highly **NOT** recommended to use this function
700// because it has no param check, nor strict type check
701func (r *DescribeRequestDataResponse) FromJsonString(s string) error {
702	return json.Unmarshal([]byte(s), &r)
703}
704
705type Filter struct {
706
707	// 参数名
708	Name *string `json:"Name,omitempty" name:"Name"`
709
710	// 参数值数组
711	Values []*string `json:"Values,omitempty" name:"Values"`
712}
713
714type FlowUsage struct {
715
716	// 流量包类型:ZONE 私有域;TRAFFIC 解析流量包
717	FlowType *string `json:"FlowType,omitempty" name:"FlowType"`
718
719	// 流量包总额度
720	TotalQuantity *int64 `json:"TotalQuantity,omitempty" name:"TotalQuantity"`
721
722	// 流量包可用额度
723	AvailableQuantity *int64 `json:"AvailableQuantity,omitempty" name:"AvailableQuantity"`
724}
725
726type MetricData struct {
727
728	// 资源描述
729	Resource *string `json:"Resource,omitempty" name:"Resource"`
730
731	// 表名
732	Metric *string `json:"Metric,omitempty" name:"Metric"`
733
734	// 表数据
735	DataSet []*DatePoint `json:"DataSet,omitempty" name:"DataSet"`
736}
737
738type ModifyPrivateZoneRecordRequest struct {
739	*tchttp.BaseRequest
740
741	// 私有域ID
742	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
743
744	// 记录ID
745	RecordId *string `json:"RecordId,omitempty" name:"RecordId"`
746
747	// 记录类型,可选的记录类型为:"A", "AAAA", "CNAME", "MX", "TXT", "PTR"
748	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`
749
750	// 子域名,例如 "www", "m", "@"
751	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`
752
753	// 记录值,例如 IP:192.168.10.2,CNAME:cname.qcloud.com.,MX:mail.qcloud.com.
754	RecordValue *string `json:"RecordValue,omitempty" name:"RecordValue"`
755
756	// 记录权重,值为1-100
757	Weight *int64 `json:"Weight,omitempty" name:"Weight"`
758
759	// MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50
760	MX *int64 `json:"MX,omitempty" name:"MX"`
761
762	// 记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600
763	TTL *int64 `json:"TTL,omitempty" name:"TTL"`
764}
765
766func (r *ModifyPrivateZoneRecordRequest) ToJsonString() string {
767    b, _ := json.Marshal(r)
768    return string(b)
769}
770
771// FromJsonString It is highly **NOT** recommended to use this function
772// because it has no param check, nor strict type check
773func (r *ModifyPrivateZoneRecordRequest) FromJsonString(s string) error {
774	f := make(map[string]interface{})
775	if err := json.Unmarshal([]byte(s), &f); err != nil {
776		return err
777	}
778	delete(f, "ZoneId")
779	delete(f, "RecordId")
780	delete(f, "RecordType")
781	delete(f, "SubDomain")
782	delete(f, "RecordValue")
783	delete(f, "Weight")
784	delete(f, "MX")
785	delete(f, "TTL")
786	if len(f) > 0 {
787		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyPrivateZoneRecordRequest has unknown keys!", "")
788	}
789	return json.Unmarshal([]byte(s), &r)
790}
791
792type ModifyPrivateZoneRecordResponse struct {
793	*tchttp.BaseResponse
794	Response *struct {
795
796		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
797		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
798	} `json:"Response"`
799}
800
801func (r *ModifyPrivateZoneRecordResponse) ToJsonString() string {
802    b, _ := json.Marshal(r)
803    return string(b)
804}
805
806// FromJsonString It is highly **NOT** recommended to use this function
807// because it has no param check, nor strict type check
808func (r *ModifyPrivateZoneRecordResponse) FromJsonString(s string) error {
809	return json.Unmarshal([]byte(s), &r)
810}
811
812type ModifyPrivateZoneRequest struct {
813	*tchttp.BaseRequest
814
815	// 私有域ID
816	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
817
818	// 备注
819	Remark *string `json:"Remark,omitempty" name:"Remark"`
820
821	// 是否开启子域名递归, ENABLED, DISABLED
822	DnsForwardStatus *string `json:"DnsForwardStatus,omitempty" name:"DnsForwardStatus"`
823}
824
825func (r *ModifyPrivateZoneRequest) ToJsonString() string {
826    b, _ := json.Marshal(r)
827    return string(b)
828}
829
830// FromJsonString It is highly **NOT** recommended to use this function
831// because it has no param check, nor strict type check
832func (r *ModifyPrivateZoneRequest) FromJsonString(s string) error {
833	f := make(map[string]interface{})
834	if err := json.Unmarshal([]byte(s), &f); err != nil {
835		return err
836	}
837	delete(f, "ZoneId")
838	delete(f, "Remark")
839	delete(f, "DnsForwardStatus")
840	if len(f) > 0 {
841		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyPrivateZoneRequest has unknown keys!", "")
842	}
843	return json.Unmarshal([]byte(s), &r)
844}
845
846type ModifyPrivateZoneResponse struct {
847	*tchttp.BaseResponse
848	Response *struct {
849
850		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
851		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
852	} `json:"Response"`
853}
854
855func (r *ModifyPrivateZoneResponse) ToJsonString() string {
856    b, _ := json.Marshal(r)
857    return string(b)
858}
859
860// FromJsonString It is highly **NOT** recommended to use this function
861// because it has no param check, nor strict type check
862func (r *ModifyPrivateZoneResponse) FromJsonString(s string) error {
863	return json.Unmarshal([]byte(s), &r)
864}
865
866type ModifyPrivateZoneVpcRequest struct {
867	*tchttp.BaseRequest
868
869	// 私有域ID
870	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
871
872	// 私有域关联的全部VPC列表
873	VpcSet []*VpcInfo `json:"VpcSet,omitempty" name:"VpcSet"`
874}
875
876func (r *ModifyPrivateZoneVpcRequest) ToJsonString() string {
877    b, _ := json.Marshal(r)
878    return string(b)
879}
880
881// FromJsonString It is highly **NOT** recommended to use this function
882// because it has no param check, nor strict type check
883func (r *ModifyPrivateZoneVpcRequest) FromJsonString(s string) error {
884	f := make(map[string]interface{})
885	if err := json.Unmarshal([]byte(s), &f); err != nil {
886		return err
887	}
888	delete(f, "ZoneId")
889	delete(f, "VpcSet")
890	if len(f) > 0 {
891		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyPrivateZoneVpcRequest has unknown keys!", "")
892	}
893	return json.Unmarshal([]byte(s), &r)
894}
895
896type ModifyPrivateZoneVpcResponse struct {
897	*tchttp.BaseResponse
898	Response *struct {
899
900		// 私有域ID, zone-xxxxxx
901		ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
902
903		// 解析域关联的VPC列表
904		VpcSet []*VpcInfo `json:"VpcSet,omitempty" name:"VpcSet"`
905
906		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
907		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
908	} `json:"Response"`
909}
910
911func (r *ModifyPrivateZoneVpcResponse) ToJsonString() string {
912    b, _ := json.Marshal(r)
913    return string(b)
914}
915
916// FromJsonString It is highly **NOT** recommended to use this function
917// because it has no param check, nor strict type check
918func (r *ModifyPrivateZoneVpcResponse) FromJsonString(s string) error {
919	return json.Unmarshal([]byte(s), &r)
920}
921
922type PrivateZone struct {
923
924	// 私有域id: zone-xxxxxxxx
925	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
926
927	// 域名所有者uin
928	OwnerUin *int64 `json:"OwnerUin,omitempty" name:"OwnerUin"`
929
930	// 私有域名
931	Domain *string `json:"Domain,omitempty" name:"Domain"`
932
933	// 创建时间
934	CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"`
935
936	// 修改时间
937	UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"`
938
939	// 记录数
940	RecordCount *int64 `json:"RecordCount,omitempty" name:"RecordCount"`
941
942	// 备注
943	// 注意:此字段可能返回 null,表示取不到有效值。
944	Remark *string `json:"Remark,omitempty" name:"Remark"`
945
946	// 绑定的Vpc列表
947	VpcSet []*VpcInfo `json:"VpcSet,omitempty" name:"VpcSet"`
948
949	// 私有域状态:正常解析:ENABLED, 暂停解析:SUSPEND, 锁定:FROZEN
950	Status *string `json:"Status,omitempty" name:"Status"`
951
952	// 域名递归解析状态:开通:ENABLED, 关闭,DISABLED
953	DnsForwardStatus *string `json:"DnsForwardStatus,omitempty" name:"DnsForwardStatus"`
954
955	// 标签键值对集合
956	Tags []*TagInfo `json:"Tags,omitempty" name:"Tags"`
957}
958
959type PrivateZoneRecord struct {
960
961	// 记录id
962	RecordId *string `json:"RecordId,omitempty" name:"RecordId"`
963
964	// 私有域id: zone-xxxxxxxx
965	ZoneId *string `json:"ZoneId,omitempty" name:"ZoneId"`
966
967	// 子域名
968	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`
969
970	// 记录类型,可选的记录类型为:"A", "AAAA", "CNAME", "MX", "TXT", "PTR"
971	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`
972
973	// 记录值
974	RecordValue *string `json:"RecordValue,omitempty" name:"RecordValue"`
975
976	// 记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600
977	TTL *int64 `json:"TTL,omitempty" name:"TTL"`
978
979	// MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50
980	// 注意:此字段可能返回 null,表示取不到有效值。
981	MX *int64 `json:"MX,omitempty" name:"MX"`
982
983	// 记录状态:ENABLED
984	Status *string `json:"Status,omitempty" name:"Status"`
985
986	// 记录权重,值为1-100
987	// 注意:此字段可能返回 null,表示取不到有效值。
988	Weight *int64 `json:"Weight,omitempty" name:"Weight"`
989
990	// 记录创建时间
991	CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"`
992
993	// 记录更新时间
994	UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"`
995
996	// 附加信息
997	// 注意:此字段可能返回 null,表示取不到有效值。
998	Extra *string `json:"Extra,omitempty" name:"Extra"`
999}
1000
1001type SubscribePrivateZoneServiceRequest struct {
1002	*tchttp.BaseRequest
1003}
1004
1005func (r *SubscribePrivateZoneServiceRequest) ToJsonString() string {
1006    b, _ := json.Marshal(r)
1007    return string(b)
1008}
1009
1010// FromJsonString It is highly **NOT** recommended to use this function
1011// because it has no param check, nor strict type check
1012func (r *SubscribePrivateZoneServiceRequest) FromJsonString(s string) error {
1013	f := make(map[string]interface{})
1014	if err := json.Unmarshal([]byte(s), &f); err != nil {
1015		return err
1016	}
1017	if len(f) > 0 {
1018		return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SubscribePrivateZoneServiceRequest has unknown keys!", "")
1019	}
1020	return json.Unmarshal([]byte(s), &r)
1021}
1022
1023type SubscribePrivateZoneServiceResponse struct {
1024	*tchttp.BaseResponse
1025	Response *struct {
1026
1027		// 私有域解析服务开通状态
1028		ServiceStatus *string `json:"ServiceStatus,omitempty" name:"ServiceStatus"`
1029
1030		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1031		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
1032	} `json:"Response"`
1033}
1034
1035func (r *SubscribePrivateZoneServiceResponse) ToJsonString() string {
1036    b, _ := json.Marshal(r)
1037    return string(b)
1038}
1039
1040// FromJsonString It is highly **NOT** recommended to use this function
1041// because it has no param check, nor strict type check
1042func (r *SubscribePrivateZoneServiceResponse) FromJsonString(s string) error {
1043	return json.Unmarshal([]byte(s), &r)
1044}
1045
1046type TagInfo struct {
1047
1048	// 标签键
1049	TagKey *string `json:"TagKey,omitempty" name:"TagKey"`
1050
1051	// 标签值
1052	TagValue *string `json:"TagValue,omitempty" name:"TagValue"`
1053}
1054
1055type VpcInfo struct {
1056
1057	// VpcId: vpc-xadsafsdasd
1058	UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"`
1059
1060	// Vpc所属地区: ap-guangzhou, ap-shanghai
1061	Region *string `json:"Region,omitempty" name:"Region"`
1062}
1063