forked from TencentCloud/tencentcloud-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
840 lines (625 loc) · 22.9 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
// 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 v20190718
import (
"encoding/json"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
)
type AccessGroup struct {
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
// 权限组名称
AccessGroupName *string `json:"AccessGroupName,omitempty" name:"AccessGroupName"`
// 权限组描述
Description *string `json:"Description,omitempty" name:"Description"`
// 创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}
type AccessRule struct {
// 权限规则ID
AccessRuleId *uint64 `json:"AccessRuleId,omitempty" name:"AccessRuleId"`
// 权限规则地址(网段或IP)
Address *string `json:"Address,omitempty" name:"Address"`
// 权限规则访问模式(1:只读;2:读写)
AccessMode *uint64 `json:"AccessMode,omitempty" name:"AccessMode"`
// 优先级(取值范围1~100,值越小优先级越高)
Priority *uint64 `json:"Priority,omitempty" name:"Priority"`
// 创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}
type CreateAccessGroupRequest struct {
*tchttp.BaseRequest
// 权限组名称
AccessGroupName *string `json:"AccessGroupName,omitempty" name:"AccessGroupName"`
// 权限组描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func (r *CreateAccessGroupRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateAccessGroupRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateAccessGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 权限组
AccessGroup *AccessGroup `json:"AccessGroup,omitempty" name:"AccessGroup"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateAccessGroupResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateAccessGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateAccessRulesRequest struct {
*tchttp.BaseRequest
// 多个权限规则,上限为10
AccessRules []*AccessRule `json:"AccessRules,omitempty" name:"AccessRules" list`
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
}
func (r *CreateAccessRulesRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateAccessRulesRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateAccessRulesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateAccessRulesResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateAccessRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateFileSystemRequest struct {
*tchttp.BaseRequest
// 文件系统名称
FileSystemName *string `json:"FileSystemName,omitempty" name:"FileSystemName"`
// 文件系统容量(byte),下限为1M,上限为1P,且必须是1M的整数倍
CapacityQuota *uint64 `json:"CapacityQuota,omitempty" name:"CapacityQuota"`
// 文件系统描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func (r *CreateFileSystemRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateFileSystemRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateFileSystemResponse struct {
*tchttp.BaseResponse
Response *struct {
// 文件系统
FileSystem *FileSystem `json:"FileSystem,omitempty" name:"FileSystem"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateFileSystemResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateFileSystemResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateMountPointRequest struct {
*tchttp.BaseRequest
// 挂载点名称
MountPointName *string `json:"MountPointName,omitempty" name:"MountPointName"`
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
// VPC网络ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// 挂载点状态(1:打开;2:关闭)
MountPointStatus *uint64 `json:"MountPointStatus,omitempty" name:"MountPointStatus"`
// VPC网络类型(1:CVM;2:黑石1.0;3:黑石2.0)
VpcType *uint64 `json:"VpcType,omitempty" name:"VpcType"`
}
func (r *CreateMountPointRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateMountPointRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateMountPointResponse struct {
*tchttp.BaseResponse
Response *struct {
// 挂载点
MountPoint *MountPoint `json:"MountPoint,omitempty" name:"MountPoint"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateMountPointResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateMountPointResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteAccessGroupRequest struct {
*tchttp.BaseRequest
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
}
func (r *DeleteAccessGroupRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteAccessGroupRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteAccessGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DeleteAccessGroupResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteAccessGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteAccessRulesRequest struct {
*tchttp.BaseRequest
// 多个权限规则ID,上限为10
AccessRuleIds []*uint64 `json:"AccessRuleIds,omitempty" name:"AccessRuleIds" list`
}
func (r *DeleteAccessRulesRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteAccessRulesRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteAccessRulesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DeleteAccessRulesResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteAccessRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteFileSystemRequest struct {
*tchttp.BaseRequest
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
}
func (r *DeleteFileSystemRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteFileSystemRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteFileSystemResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DeleteFileSystemResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteFileSystemResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteMountPointRequest struct {
*tchttp.BaseRequest
// 挂载点ID
MountPointId *string `json:"MountPointId,omitempty" name:"MountPointId"`
}
func (r *DeleteMountPointRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteMountPointRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteMountPointResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DeleteMountPointResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteMountPointResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeAccessGroupsRequest struct {
*tchttp.BaseRequest
// 过滤条件,Name可选“AccessGroupId“和“AccessGroupName”,Values上限为10
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
// 偏移量,默认为0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数量,默认为所有
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func (r *DescribeAccessGroupsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeAccessGroupsRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeAccessGroupsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 权限组列表
AccessGroups []*AccessGroup `json:"AccessGroups,omitempty" name:"AccessGroups" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DescribeAccessGroupsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeAccessGroupsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeAccessRulesRequest struct {
*tchttp.BaseRequest
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
// 偏移量,默认为0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数量,默认为所有
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func (r *DescribeAccessRulesRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeAccessRulesRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeAccessRulesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 权限规则列表
AccessRules []*AccessRule `json:"AccessRules,omitempty" name:"AccessRules" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DescribeAccessRulesResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeAccessRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeFileSystemRequest struct {
*tchttp.BaseRequest
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
}
func (r *DescribeFileSystemRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeFileSystemRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeFileSystemResponse struct {
*tchttp.BaseResponse
Response *struct {
// 文件系统
FileSystem *FileSystem `json:"FileSystem,omitempty" name:"FileSystem"`
// 文件系统已使用大小(byte)
FileSystemCapacityUsed *uint64 `json:"FileSystemCapacityUsed,omitempty" name:"FileSystemCapacityUsed"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DescribeFileSystemResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeFileSystemResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeFileSystemsRequest struct {
*tchttp.BaseRequest
// 偏移量,默认为0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数量,默认为所有
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func (r *DescribeFileSystemsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeFileSystemsRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeFileSystemsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 文件系统列表
FileSystems []*FileSystem `json:"FileSystems,omitempty" name:"FileSystems" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DescribeFileSystemsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeFileSystemsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeMountPointRequest struct {
*tchttp.BaseRequest
// 挂载点ID
MountPointId *string `json:"MountPointId,omitempty" name:"MountPointId"`
}
func (r *DescribeMountPointRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeMountPointRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeMountPointResponse struct {
*tchttp.BaseResponse
Response *struct {
// 挂载点
MountPoint *MountPoint `json:"MountPoint,omitempty" name:"MountPoint"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DescribeMountPointResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeMountPointResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeMountPointsRequest struct {
*tchttp.BaseRequest
// 文件系统ID
// 注意:若根据AccessGroupId查看挂载点列表,则无需设置FileSystemId
FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
// 权限组ID
// 注意:若根据FileSystemId查看挂载点列表,则无需设置AccessGroupId
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
// 偏移量,默认为0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数量,默认为所有
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}
func (r *DescribeMountPointsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeMountPointsRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeMountPointsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 挂载点列表
MountPoints []*MountPoint `json:"MountPoints,omitempty" name:"MountPoints" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DescribeMountPointsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeMountPointsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type FileSystem struct {
// appid
AppId *uint64 `json:"AppId,omitempty" name:"AppId"`
// 文件系统名称
FileSystemName *string `json:"FileSystemName,omitempty" name:"FileSystemName"`
// 文件系统描述
Description *string `json:"Description,omitempty" name:"Description"`
// 地域
Region *string `json:"Region,omitempty" name:"Region"`
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
// 创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// 文件系统块大小(byte)
BlockSize *uint64 `json:"BlockSize,omitempty" name:"BlockSize"`
// 文件系统容量(byte)
CapacityQuota *uint64 `json:"CapacityQuota,omitempty" name:"CapacityQuota"`
// 文件系统状态(1:创建中;2:创建成功;3:创建失败)
Status *uint64 `json:"Status,omitempty" name:"Status"`
}
type Filter struct {
// 过滤字段
Name *string `json:"Name,omitempty" name:"Name"`
// 过滤值
Values []*string `json:"Values,omitempty" name:"Values" list`
}
type ModifyAccessGroupRequest struct {
*tchttp.BaseRequest
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
// 权限组名称
AccessGroupName *string `json:"AccessGroupName,omitempty" name:"AccessGroupName"`
// 权限组描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func (r *ModifyAccessGroupRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyAccessGroupRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ModifyAccessGroupResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ModifyAccessGroupResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyAccessGroupResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ModifyAccessRulesRequest struct {
*tchttp.BaseRequest
// 多个权限规则,上限为10
AccessRules []*AccessRule `json:"AccessRules,omitempty" name:"AccessRules" list`
}
func (r *ModifyAccessRulesRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyAccessRulesRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ModifyAccessRulesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ModifyAccessRulesResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyAccessRulesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ModifyFileSystemRequest struct {
*tchttp.BaseRequest
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
// 文件系统名称
FileSystemName *string `json:"FileSystemName,omitempty" name:"FileSystemName"`
// 文件系统描述
Description *string `json:"Description,omitempty" name:"Description"`
// 文件系统容量(byte),下限为1M,上限为1P,且必须是1M的整数倍
// 注意:修改的文件系统容量不能小于当前使用量
CapacityQuota *uint64 `json:"CapacityQuota,omitempty" name:"CapacityQuota"`
}
func (r *ModifyFileSystemRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyFileSystemRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ModifyFileSystemResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ModifyFileSystemResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyFileSystemResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ModifyMountPointRequest struct {
*tchttp.BaseRequest
// 挂载点ID
MountPointId *string `json:"MountPointId,omitempty" name:"MountPointId"`
// 挂载点名称
MountPointName *string `json:"MountPointName,omitempty" name:"MountPointName"`
// 挂载点状态
MountPointStatus *uint64 `json:"MountPointStatus,omitempty" name:"MountPointStatus"`
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
}
func (r *ModifyMountPointRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyMountPointRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ModifyMountPointResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ModifyMountPointResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ModifyMountPointResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type MountPoint struct {
// 挂载点ID
MountPointId *string `json:"MountPointId,omitempty" name:"MountPointId"`
// 挂载点名称
MountPointName *string `json:"MountPointName,omitempty" name:"MountPointName"`
// 文件系统ID
FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"`
// 权限组ID
AccessGroupId *string `json:"AccessGroupId,omitempty" name:"AccessGroupId"`
// VPC网络ID
VpcId *string `json:"VpcId,omitempty" name:"VpcId"`
// 挂载点状态(1:打开;2:关闭)
Status *uint64 `json:"Status,omitempty" name:"Status"`
// 创建时间
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// VPC网络类型
VpcType *uint64 `json:"VpcType,omitempty" name:"VpcType"`
}