-
Notifications
You must be signed in to change notification settings - Fork 194
/
models.go
2083 lines (1676 loc) · 71.5 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 v20201112
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 AccessGroup struct {
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
// 权限组名称
AccessGroupName *string `json:"AccessGroupName,omitnil,omitempty" name:"AccessGroupName"`
// 权限组描述
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 创建时间
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
// VPC网络类型(1:CVM;2:黑石1.0)
VpcType *uint64 `json:"VpcType,omitnil,omitempty" name:"VpcType"`
// VPC网络ID
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
}
type AccessRule struct {
// 权限规则ID
AccessRuleId *uint64 `json:"AccessRuleId,omitnil,omitempty" name:"AccessRuleId"`
// 权限规则地址(网段或IP)
Address *string `json:"Address,omitnil,omitempty" name:"Address"`
// 权限规则访问模式(1:只读;2:读写)
AccessMode *uint64 `json:"AccessMode,omitnil,omitempty" name:"AccessMode"`
// 优先级(取值范围1~100,值越小优先级越高)
Priority *uint64 `json:"Priority,omitnil,omitempty" name:"Priority"`
// 创建时间
CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`
}
// Predefined struct for user
type AssociateAccessGroupsRequestParams struct {
// 挂载点ID
MountPointId *string `json:"MountPointId,omitnil,omitempty" name:"MountPointId"`
// 权限组ID列表
AccessGroupIds []*string `json:"AccessGroupIds,omitnil,omitempty" name:"AccessGroupIds"`
}
type AssociateAccessGroupsRequest struct {
*tchttp.BaseRequest
// 挂载点ID
MountPointId *string `json:"MountPointId,omitnil,omitempty" name:"MountPointId"`
// 权限组ID列表
AccessGroupIds []*string `json:"AccessGroupIds,omitnil,omitempty" name:"AccessGroupIds"`
}
func (r *AssociateAccessGroupsRequest) 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 *AssociateAccessGroupsRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "MountPointId")
delete(f, "AccessGroupIds")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "AssociateAccessGroupsRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type AssociateAccessGroupsResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type AssociateAccessGroupsResponse struct {
*tchttp.BaseResponse
Response *AssociateAccessGroupsResponseParams `json:"Response"`
}
func (r *AssociateAccessGroupsResponse) 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 *AssociateAccessGroupsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateAccessGroupRequestParams struct {
// 权限组名称
AccessGroupName *string `json:"AccessGroupName,omitnil,omitempty" name:"AccessGroupName"`
// VPC网络类型(1:CVM;2:黑石1.0)
VpcType *uint64 `json:"VpcType,omitnil,omitempty" name:"VpcType"`
// VPC网络ID
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 权限组描述,默认为空字符串
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}
type CreateAccessGroupRequest struct {
*tchttp.BaseRequest
// 权限组名称
AccessGroupName *string `json:"AccessGroupName,omitnil,omitempty" name:"AccessGroupName"`
// VPC网络类型(1:CVM;2:黑石1.0)
VpcType *uint64 `json:"VpcType,omitnil,omitempty" name:"VpcType"`
// VPC网络ID
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 权限组描述,默认为空字符串
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}
func (r *CreateAccessGroupRequest) 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 *CreateAccessGroupRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AccessGroupName")
delete(f, "VpcType")
delete(f, "VpcId")
delete(f, "Description")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAccessGroupRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateAccessGroupResponseParams struct {
// 权限组
AccessGroup *AccessGroup `json:"AccessGroup,omitnil,omitempty" name:"AccessGroup"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateAccessGroupResponse struct {
*tchttp.BaseResponse
Response *CreateAccessGroupResponseParams `json:"Response"`
}
func (r *CreateAccessGroupResponse) 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 *CreateAccessGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateAccessRulesRequestParams struct {
// 多个权限规则,上限为10
AccessRules []*AccessRule `json:"AccessRules,omitnil,omitempty" name:"AccessRules"`
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
type CreateAccessRulesRequest struct {
*tchttp.BaseRequest
// 多个权限规则,上限为10
AccessRules []*AccessRule `json:"AccessRules,omitnil,omitempty" name:"AccessRules"`
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
func (r *CreateAccessRulesRequest) 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 *CreateAccessRulesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AccessRules")
delete(f, "AccessGroupId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAccessRulesRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateAccessRulesResponseParams struct {
// 权限规则列表
// 注意:此字段可能返回 null,表示取不到有效值。
AccessRules []*AccessRule `json:"AccessRules,omitnil,omitempty" name:"AccessRules"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateAccessRulesResponse struct {
*tchttp.BaseResponse
Response *CreateAccessRulesResponseParams `json:"Response"`
}
func (r *CreateAccessRulesResponse) 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 *CreateAccessRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateFileSystemRequestParams struct {
// 文件系统名称
FileSystemName *string `json:"FileSystemName,omitnil,omitempty" name:"FileSystemName"`
// 文件系统容量(byte),下限为1GB,上限为1PB,且必须是1GB的整数倍
CapacityQuota *uint64 `json:"CapacityQuota,omitnil,omitempty" name:"CapacityQuota"`
// 是否校验POSIX ACL
PosixAcl *bool `json:"PosixAcl,omitnil,omitempty" name:"PosixAcl"`
// 文件系统描述,默认为空字符串
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 超级用户名列表,默认为空数组
SuperUsers []*string `json:"SuperUsers,omitnil,omitempty" name:"SuperUsers"`
// 根目录Inode用户名,默认为hadoop
RootInodeUser *string `json:"RootInodeUser,omitnil,omitempty" name:"RootInodeUser"`
// 根目录Inode组名,默认为supergroup
RootInodeGroup *string `json:"RootInodeGroup,omitnil,omitempty" name:"RootInodeGroup"`
// 是否打开Ranger地址校验
EnableRanger *bool `json:"EnableRanger,omitnil,omitempty" name:"EnableRanger"`
// Ranger地址列表,默认为空数组
RangerServiceAddresses []*string `json:"RangerServiceAddresses,omitnil,omitempty" name:"RangerServiceAddresses"`
// 多个资源标签,可以为空数组
Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`
}
type CreateFileSystemRequest struct {
*tchttp.BaseRequest
// 文件系统名称
FileSystemName *string `json:"FileSystemName,omitnil,omitempty" name:"FileSystemName"`
// 文件系统容量(byte),下限为1GB,上限为1PB,且必须是1GB的整数倍
CapacityQuota *uint64 `json:"CapacityQuota,omitnil,omitempty" name:"CapacityQuota"`
// 是否校验POSIX ACL
PosixAcl *bool `json:"PosixAcl,omitnil,omitempty" name:"PosixAcl"`
// 文件系统描述,默认为空字符串
Description *string `json:"Description,omitnil,omitempty" name:"Description"`
// 超级用户名列表,默认为空数组
SuperUsers []*string `json:"SuperUsers,omitnil,omitempty" name:"SuperUsers"`
// 根目录Inode用户名,默认为hadoop
RootInodeUser *string `json:"RootInodeUser,omitnil,omitempty" name:"RootInodeUser"`
// 根目录Inode组名,默认为supergroup
RootInodeGroup *string `json:"RootInodeGroup,omitnil,omitempty" name:"RootInodeGroup"`
// 是否打开Ranger地址校验
EnableRanger *bool `json:"EnableRanger,omitnil,omitempty" name:"EnableRanger"`
// Ranger地址列表,默认为空数组
RangerServiceAddresses []*string `json:"RangerServiceAddresses,omitnil,omitempty" name:"RangerServiceAddresses"`
// 多个资源标签,可以为空数组
Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"`
}
func (r *CreateFileSystemRequest) 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 *CreateFileSystemRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "FileSystemName")
delete(f, "CapacityQuota")
delete(f, "PosixAcl")
delete(f, "Description")
delete(f, "SuperUsers")
delete(f, "RootInodeUser")
delete(f, "RootInodeGroup")
delete(f, "EnableRanger")
delete(f, "RangerServiceAddresses")
delete(f, "Tags")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateFileSystemRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateFileSystemResponseParams struct {
// 文件系统
FileSystem *FileSystem `json:"FileSystem,omitnil,omitempty" name:"FileSystem"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateFileSystemResponse struct {
*tchttp.BaseResponse
Response *CreateFileSystemResponseParams `json:"Response"`
}
func (r *CreateFileSystemResponse) 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 *CreateFileSystemResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateLifeCycleRulesRequestParams struct {
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
// 多个生命周期规则,上限为10
LifeCycleRules []*LifeCycleRule `json:"LifeCycleRules,omitnil,omitempty" name:"LifeCycleRules"`
}
type CreateLifeCycleRulesRequest struct {
*tchttp.BaseRequest
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
// 多个生命周期规则,上限为10
LifeCycleRules []*LifeCycleRule `json:"LifeCycleRules,omitnil,omitempty" name:"LifeCycleRules"`
}
func (r *CreateLifeCycleRulesRequest) 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 *CreateLifeCycleRulesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "FileSystemId")
delete(f, "LifeCycleRules")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateLifeCycleRulesRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateLifeCycleRulesResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateLifeCycleRulesResponse struct {
*tchttp.BaseResponse
Response *CreateLifeCycleRulesResponseParams `json:"Response"`
}
func (r *CreateLifeCycleRulesResponse) 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 *CreateLifeCycleRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateMountPointRequestParams struct {
// 挂载点名称
MountPointName *string `json:"MountPointName,omitnil,omitempty" name:"MountPointName"`
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
// 挂载点状态(1:打开;2:关闭)
MountPointStatus *uint64 `json:"MountPointStatus,omitnil,omitempty" name:"MountPointStatus"`
}
type CreateMountPointRequest struct {
*tchttp.BaseRequest
// 挂载点名称
MountPointName *string `json:"MountPointName,omitnil,omitempty" name:"MountPointName"`
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
// 挂载点状态(1:打开;2:关闭)
MountPointStatus *uint64 `json:"MountPointStatus,omitnil,omitempty" name:"MountPointStatus"`
}
func (r *CreateMountPointRequest) 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 *CreateMountPointRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "MountPointName")
delete(f, "FileSystemId")
delete(f, "MountPointStatus")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateMountPointRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateMountPointResponseParams struct {
// 挂载点
MountPoint *MountPoint `json:"MountPoint,omitnil,omitempty" name:"MountPoint"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateMountPointResponse struct {
*tchttp.BaseResponse
Response *CreateMountPointResponseParams `json:"Response"`
}
func (r *CreateMountPointResponse) 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 *CreateMountPointResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateRestoreTasksRequestParams struct {
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
// 多个回热任务,上限为10
RestoreTasks []*RestoreTask `json:"RestoreTasks,omitnil,omitempty" name:"RestoreTasks"`
}
type CreateRestoreTasksRequest struct {
*tchttp.BaseRequest
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
// 多个回热任务,上限为10
RestoreTasks []*RestoreTask `json:"RestoreTasks,omitnil,omitempty" name:"RestoreTasks"`
}
func (r *CreateRestoreTasksRequest) 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 *CreateRestoreTasksRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "FileSystemId")
delete(f, "RestoreTasks")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateRestoreTasksRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type CreateRestoreTasksResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type CreateRestoreTasksResponse struct {
*tchttp.BaseResponse
Response *CreateRestoreTasksResponseParams `json:"Response"`
}
func (r *CreateRestoreTasksResponse) 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 *CreateRestoreTasksResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteAccessGroupRequestParams struct {
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
type DeleteAccessGroupRequest struct {
*tchttp.BaseRequest
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
func (r *DeleteAccessGroupRequest) 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 *DeleteAccessGroupRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AccessGroupId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAccessGroupRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteAccessGroupResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteAccessGroupResponse struct {
*tchttp.BaseResponse
Response *DeleteAccessGroupResponseParams `json:"Response"`
}
func (r *DeleteAccessGroupResponse) 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 *DeleteAccessGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteAccessRulesRequestParams struct {
// 多个权限规则ID,上限为10
AccessRuleIds []*uint64 `json:"AccessRuleIds,omitnil,omitempty" name:"AccessRuleIds"`
}
type DeleteAccessRulesRequest struct {
*tchttp.BaseRequest
// 多个权限规则ID,上限为10
AccessRuleIds []*uint64 `json:"AccessRuleIds,omitnil,omitempty" name:"AccessRuleIds"`
}
func (r *DeleteAccessRulesRequest) 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 *DeleteAccessRulesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AccessRuleIds")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAccessRulesRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteAccessRulesResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteAccessRulesResponse struct {
*tchttp.BaseResponse
Response *DeleteAccessRulesResponseParams `json:"Response"`
}
func (r *DeleteAccessRulesResponse) 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 *DeleteAccessRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteFileSystemRequestParams struct {
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
}
type DeleteFileSystemRequest struct {
*tchttp.BaseRequest
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitnil,omitempty" name:"FileSystemId"`
}
func (r *DeleteFileSystemRequest) 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 *DeleteFileSystemRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "FileSystemId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteFileSystemRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteFileSystemResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteFileSystemResponse struct {
*tchttp.BaseResponse
Response *DeleteFileSystemResponseParams `json:"Response"`
}
func (r *DeleteFileSystemResponse) 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 *DeleteFileSystemResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteLifeCycleRulesRequestParams struct {
// 多个生命周期规则ID,上限为10
LifeCycleRuleIds []*uint64 `json:"LifeCycleRuleIds,omitnil,omitempty" name:"LifeCycleRuleIds"`
}
type DeleteLifeCycleRulesRequest struct {
*tchttp.BaseRequest
// 多个生命周期规则ID,上限为10
LifeCycleRuleIds []*uint64 `json:"LifeCycleRuleIds,omitnil,omitempty" name:"LifeCycleRuleIds"`
}
func (r *DeleteLifeCycleRulesRequest) 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 *DeleteLifeCycleRulesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "LifeCycleRuleIds")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteLifeCycleRulesRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteLifeCycleRulesResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteLifeCycleRulesResponse struct {
*tchttp.BaseResponse
Response *DeleteLifeCycleRulesResponseParams `json:"Response"`
}
func (r *DeleteLifeCycleRulesResponse) 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 *DeleteLifeCycleRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteMountPointRequestParams struct {
// 挂载点ID
MountPointId *string `json:"MountPointId,omitnil,omitempty" name:"MountPointId"`
}
type DeleteMountPointRequest struct {
*tchttp.BaseRequest
// 挂载点ID
MountPointId *string `json:"MountPointId,omitnil,omitempty" name:"MountPointId"`
}
func (r *DeleteMountPointRequest) 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 *DeleteMountPointRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "MountPointId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteMountPointRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DeleteMountPointResponseParams struct {
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DeleteMountPointResponse struct {
*tchttp.BaseResponse
Response *DeleteMountPointResponseParams `json:"Response"`
}
func (r *DeleteMountPointResponse) 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 *DeleteMountPointResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeAccessGroupRequestParams struct {
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
type DescribeAccessGroupRequest struct {
*tchttp.BaseRequest
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
func (r *DescribeAccessGroupRequest) 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 *DescribeAccessGroupRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AccessGroupId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccessGroupRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeAccessGroupResponseParams struct {
// 权限组
AccessGroup *AccessGroup `json:"AccessGroup,omitnil,omitempty" name:"AccessGroup"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAccessGroupResponse struct {
*tchttp.BaseResponse
Response *DescribeAccessGroupResponseParams `json:"Response"`
}
func (r *DescribeAccessGroupResponse) 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 *DescribeAccessGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeAccessGroupsRequestParams struct {
// VPC网络ID
// 备注:入参只能指定VpcId和OwnerUin的其中一个
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 资源所属者Uin
OwnerUin *uint64 `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"`
}
type DescribeAccessGroupsRequest struct {
*tchttp.BaseRequest
// VPC网络ID
// 备注:入参只能指定VpcId和OwnerUin的其中一个
VpcId *string `json:"VpcId,omitnil,omitempty" name:"VpcId"`
// 资源所属者Uin
OwnerUin *uint64 `json:"OwnerUin,omitnil,omitempty" name:"OwnerUin"`
}
func (r *DescribeAccessGroupsRequest) 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 *DescribeAccessGroupsRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "VpcId")
delete(f, "OwnerUin")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccessGroupsRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeAccessGroupsResponseParams struct {
// 权限组列表
AccessGroups []*AccessGroup `json:"AccessGroups,omitnil,omitempty" name:"AccessGroups"`
// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeAccessGroupsResponse struct {
*tchttp.BaseResponse
Response *DescribeAccessGroupsResponseParams `json:"Response"`
}
func (r *DescribeAccessGroupsResponse) 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 *DescribeAccessGroupsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeAccessRulesRequestParams struct {
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
type DescribeAccessRulesRequest struct {
*tchttp.BaseRequest
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitnil,omitempty" name:"AccessGroupId"`
}
func (r *DescribeAccessRulesRequest) 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 *DescribeAccessRulesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AccessGroupId")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccessRulesRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}