kingsoftcloud-sdk-python 1.5.8.44__py2.py3-none-any.whl → 1.5.8.49__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/METADATA +24 -13
  2. {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/RECORD +118 -118
  3. {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/WHEEL +1 -1
  4. ksyun/__init__.py +1 -1
  5. ksyun/client/actiontrail/v20190401/client.py +1 -3
  6. ksyun/client/aicp/v20240612/client.py +168 -53
  7. ksyun/client/aicp/v20240612/models.py +192 -7
  8. ksyun/client/aicp/v20251212/client.py +2 -2
  9. ksyun/client/aicp/v20251212/models.py +1 -1
  10. ksyun/client/bill/v20180601/client.py +3 -5
  11. ksyun/client/bill/v20220601/client.py +2 -4
  12. ksyun/client/bill_union/v20200101/client.py +9 -11
  13. ksyun/client/bill_union/v20200101/models.py +5 -5
  14. ksyun/client/bill_union/v20221222/client.py +6 -8
  15. ksyun/client/bill_union/v20250801/client.py +2 -4
  16. ksyun/client/bill_union/v20250801/models.py +1 -1
  17. ksyun/client/bws/v20160304/client.py +7 -9
  18. ksyun/client/cdn/v20160901/client.py +3 -5
  19. ksyun/client/cdn/v20200630/client.py +17 -19
  20. ksyun/client/cdn/v20200901/client.py +7 -9
  21. ksyun/client/cdn/v20211201/client.py +1 -3
  22. ksyun/client/cdn/v3/client.py +43 -45
  23. ksyun/client/cdn/v3/models.py +11 -11
  24. ksyun/client/cen/v20160304/client.py +26 -28
  25. ksyun/client/clickhouse/v20210101/client.py +39 -41
  26. ksyun/client/cloud_advisor/v20250610/client.py +3 -5
  27. ksyun/client/dmp/v20240101/client.py +20 -22
  28. ksyun/client/dts/v20180108/client.py +19 -21
  29. ksyun/client/ebs/v20160304/client.py +28 -30
  30. ksyun/client/ebs/v20160304/models.py +1 -1
  31. ksyun/client/eip/v20160304/client.py +12 -14
  32. ksyun/client/epc/v20151101/client.py +105 -107
  33. ksyun/client/epc/v20151101/models.py +19 -4
  34. ksyun/client/iam/v20151101/client.py +65 -67
  35. ksyun/client/iam/v20240513/client.py +1 -3
  36. ksyun/client/iam/v20240703/client.py +1 -3
  37. ksyun/client/influxdb/v20191010/client.py +27 -29
  38. ksyun/client/kad/v20161122/client.py +8 -10
  39. ksyun/client/kce/v20180314/client.py +17 -19
  40. ksyun/client/kce/v20190806/client.py +34 -36
  41. ksyun/client/kce/v20201231/client.py +1 -3
  42. ksyun/client/kce/v20230101/client.py +9 -11
  43. ksyun/client/kce/v20230306/client.py +22 -24
  44. ksyun/client/kce/v20231115/client.py +2 -4
  45. ksyun/client/kce2/v20230101/client.py +15 -17
  46. ksyun/client/kcf/v20211215/client.py +9 -11
  47. ksyun/client/kci/v20200702/client.py +15 -17
  48. ksyun/client/kci/v20200702/models.py +1 -1
  49. ksyun/client/kcm/v20160304/client.py +10 -12
  50. ksyun/client/kcrs/v20211109/client.py +44 -46
  51. ksyun/client/kcs/v20160701/client.py +66 -68
  52. ksyun/client/kcs/v20170401/client.py +1 -3
  53. ksyun/client/kcs/v20240701/client.py +1 -3
  54. ksyun/client/kead/v20200101/client.py +3 -5
  55. ksyun/client/kec/v20160304/client.py +565 -105
  56. ksyun/client/kec/v20160304/models.py +689 -22
  57. ksyun/client/ked/v1/client.py +44 -46
  58. ksyun/client/kes/v20201215/client.py +8 -10
  59. ksyun/client/ket/v20170101/client.py +8 -10
  60. ksyun/client/kfw/v20160304/client.py +648 -12
  61. ksyun/client/kfw/v20160304/models.py +1003 -9
  62. ksyun/client/kingpay/v1/client.py +1 -3
  63. ksyun/client/kkms/v20160304/client.py +8 -10
  64. ksyun/client/klog/v20200731/client.py +16 -18
  65. ksyun/client/kls/v20170101/client.py +8 -10
  66. ksyun/client/kmr/v20210902/client.py +23 -25
  67. ksyun/client/kmr/v20231231/client.py +7 -9
  68. ksyun/client/kmr/v20240814/client.py +19 -21
  69. ksyun/client/knad/v20230323/client.py +17 -19
  70. ksyun/client/kpfs/v20240930/client.py +54 -54
  71. ksyun/client/kpfs/v20240930/models.py +286 -81
  72. ksyun/client/krds/v20160701/client.py +91 -93
  73. ksyun/client/krds/v20200825/client.py +10 -12
  74. ksyun/client/memcached/v20180627/client.py +13 -15
  75. ksyun/client/milvus/v20231010/client.py +19 -21
  76. ksyun/client/mongodb/v20170101/client.py +44 -46
  77. ksyun/client/mongodb/v20250101/client.py +1 -3
  78. ksyun/client/monitor/v20100525/client.py +2 -4
  79. ksyun/client/monitor/v20181114/client.py +1 -3
  80. ksyun/client/monitor/v20210101/client.py +12 -14
  81. ksyun/client/monitor/v20220101/client.py +2 -4
  82. ksyun/client/monitor/v20250101/client.py +45 -3
  83. ksyun/client/monitor/v20250101/models.py +34 -2
  84. ksyun/client/pdns/v20160304/client.py +35 -37
  85. ksyun/client/postgresql/v20181225/client.py +50 -52
  86. ksyun/client/postgresql/v20181225/models.py +1 -1
  87. ksyun/client/rabbitmq/v20191017/client.py +19 -21
  88. ksyun/client/relyt/v20240117/client.py +1 -3
  89. ksyun/client/resourcemanager/v20210320/client.py +8 -10
  90. ksyun/client/sks/v20151101/client.py +6 -8
  91. ksyun/client/sks/v20151101/models.py +21 -2
  92. ksyun/client/slb/v20160304/client.py +93 -95
  93. ksyun/client/slb/v20160304/models.py +5 -5
  94. ksyun/client/slb/v20250430/client.py +35 -37
  95. ksyun/client/sqlserver/v20190425/client.py +46 -48
  96. ksyun/client/sts/v20151101/client.py +2 -4
  97. ksyun/client/tagv2/v20200901/client.py +10 -12
  98. ksyun/client/ter/v20240415/client.py +5 -7
  99. ksyun/client/tidb/v20210520/client.py +40 -42
  100. ksyun/client/trade/v20200114/client.py +1 -3
  101. ksyun/client/trade/v20200831/client.py +1 -3
  102. ksyun/client/trade/v20250220/client.py +4 -6
  103. ksyun/client/trade/v20250321/client.py +4 -6
  104. ksyun/client/trade/v20250828/client.py +1 -3
  105. ksyun/client/trade/v20250828/models.py +1 -1
  106. ksyun/client/vpc/v20160304/client.py +132 -134
  107. ksyun/client/vpc/v20160304/models.py +5 -0
  108. ksyun/client/waf/v20200707/client.py +20 -22
  109. ksyun/common/abstract_client.py +15 -3
  110. ksyun/common/abstract_model.py +3 -3
  111. ksyun/common/common_client.py +2 -0
  112. ksyun/common/credential.py +2 -0
  113. ksyun/common/exception/ksyun_sdk_exception.py +11 -7
  114. ksyun/common/http/request.py +2 -0
  115. ksyun/common/profile/client_profile.py +3 -0
  116. ksyun/common/profile/http_profile.py +2 -0
  117. {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/licenses/LICENSE +0 -0
  118. {kingsoftcloud_sdk_python-1.5.8.44.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
@@ -91,7 +91,7 @@ class RunInstancesRequest(AbstractModel):
91
91
  :param InstanceNameSuffix: 实例名称后缀,InstanceName参数如果缺省,此参数不生效;当大于1台的批量创建主机,后缀编号自动+1,例如后缀输入5,主机名输入"host",批量3台,则生成的三台主机名分别为:"host-5"、"host-6"、"host-7";
92
92
  :type PathPrefix: String
93
93
  :param ProjectId: 实例所属项目ID
94
- :type PathPrefix: Int
94
+ :type PathPrefix: Long
95
95
  :param DataDisk: 数据盘是否随实例释放
96
96
  :type PathPrefix: Filter
97
97
  :param NetworkInterface: 辅网卡
@@ -104,7 +104,7 @@ class RunInstancesRequest(AbstractModel):
104
104
  示例值:3f0d6229-ed2d-4c9c-8554-b9433517cf8b
105
105
  :type PathPrefix: String
106
106
  :param ModelVersion: 实例启动模板版本号。如不指定,则采用默认版本号
107
- :type PathPrefix: Int
107
+ :type PathPrefix: Long
108
108
  :param AssembledImageDataDiskType: 整机镜像所开云盘数据盘的类型
109
109
  :type PathPrefix: String
110
110
  :param AutoCreateEbs: 整机镜像是否展开镜像中的数据盘
@@ -1088,7 +1088,7 @@ class CreateDedicatedHostsRequest(AbstractModel):
1088
1088
  :param AvailabilityZone: 可用区
1089
1089
  :type PathPrefix: String
1090
1090
  :param ProjectId: 项目制ID
1091
- :type PathPrefix: Int
1091
+ :type PathPrefix: Long
1092
1092
  :param EbsClusterMode: 存储集群模式
1093
1093
  Mixed:混合模式;
1094
1094
  Public:公共集群;
@@ -2594,6 +2594,23 @@ class CreateFileSystemRequest(AbstractModel):
2594
2594
  :param FileSystemName: 文件系统名称,有效值:长度2-64字符,支持中文,字母,数字,以及-_;
2595
2595
  :type PathPrefix: String
2596
2596
  :param ProjectId: 项目制id
2597
+ :type PathPrefix: Long
2598
+ :param IsTrashEnable: • 回收站功能是否开启,默认不开启
2599
+ ◦ TRUE :表示回收站功能开启
2600
+ ◦ FALSE:表示回收站功能不开启
2601
+ :type PathPrefix: Boolean
2602
+ :param IsTrashVisible: • 回收站目录是否可见,默认不可见
2603
+ ◦ TRUE :表示回收站目录可见
2604
+ ◦ FALSE:表示回收站目录不可见
2605
+ :type PathPrefix: Boolean
2606
+ :param IntervalTrash: • 回收站内数据保留时长,默认1天
2607
+ ◦ 0:表示“永久保留”,不自动删除。
2608
+ ◦ 1:表示“固定周期保留”,取值范围:
2609
+ ▪ 天:[1, 180]
2610
+ :type PathPrefix: Int
2611
+ :param RecycleOpPermission: • 可以选择操作回收站内文件的用户权限,默认“普通用户”
2612
+ ◦ 0:表示“root用户”,只有root用户具有操作所有用户目录的权限
2613
+ ◦ 1:表示“普通用户”,系统根据用户名和用户ID为每个用户创建自己的目录,用户有操作个人目录下文件的权限
2597
2614
  :type PathPrefix: Int
2598
2615
  """
2599
2616
  self.AvailabilityZone = None
@@ -2602,6 +2619,10 @@ class CreateFileSystemRequest(AbstractModel):
2602
2619
  self.ProtocolType = None
2603
2620
  self.FileSystemName = None
2604
2621
  self.ProjectId = None
2622
+ self.IsTrashEnable = None
2623
+ self.IsTrashVisible = None
2624
+ self.IntervalTrash = None
2625
+ self.RecycleOpPermission = None
2605
2626
 
2606
2627
  def _deserialize(self, params):
2607
2628
  if params.get("AvailabilityZone"):
@@ -2616,6 +2637,14 @@ class CreateFileSystemRequest(AbstractModel):
2616
2637
  self.FileSystemName = params.get("FileSystemName")
2617
2638
  if params.get("ProjectId"):
2618
2639
  self.ProjectId = params.get("ProjectId")
2640
+ if params.get("IsTrashEnable"):
2641
+ self.IsTrashEnable = params.get("IsTrashEnable")
2642
+ if params.get("IsTrashVisible"):
2643
+ self.IsTrashVisible = params.get("IsTrashVisible")
2644
+ if params.get("IntervalTrash"):
2645
+ self.IntervalTrash = params.get("IntervalTrash")
2646
+ if params.get("RecycleOpPermission"):
2647
+ self.RecycleOpPermission = params.get("RecycleOpPermission")
2619
2648
 
2620
2649
 
2621
2650
  class DeleteFileSystemRequest(AbstractModel):
@@ -2708,10 +2737,13 @@ class CreateMountTargetRequest(AbstractModel):
2708
2737
  :type PathPrefix: String
2709
2738
  :param IpVersion: 取值为【ipv4,ipv6】,默认为 ipv4,如果选择了不支持ipv6的VPC且ip version选择 ipv6则报错
2710
2739
  :type PathPrefix: String
2740
+ :param AccessGroupId: 权限组ID
2741
+ :type PathPrefix: String
2711
2742
  """
2712
2743
  self.FileSystemId = None
2713
2744
  self.SubnetId = None
2714
2745
  self.IpVersion = None
2746
+ self.AccessGroupId = None
2715
2747
 
2716
2748
  def _deserialize(self, params):
2717
2749
  if params.get("FileSystemId"):
@@ -2720,6 +2752,8 @@ class CreateMountTargetRequest(AbstractModel):
2720
2752
  self.SubnetId = params.get("SubnetId")
2721
2753
  if params.get("IpVersion"):
2722
2754
  self.IpVersion = params.get("IpVersion")
2755
+ if params.get("AccessGroupId"):
2756
+ self.AccessGroupId = params.get("AccessGroupId")
2723
2757
 
2724
2758
 
2725
2759
  class DeleteMountTargetRequest(AbstractModel):
@@ -2816,7 +2850,7 @@ Monthly(包年包月)、Daily(按量付费(按日月结))、 HourlyInsta
2816
2850
  :type PathPrefix: String
2817
2851
  :param ProjectId: 实例所属项目ID
2818
2852
  账户有权限的项目ID,0为默认项目,默认值为默认项目
2819
- :type PathPrefix: Int
2853
+ :type PathPrefix: Long
2820
2854
  :param DataGuardId: 容灾分组ID
2821
2855
  :type PathPrefix: String
2822
2856
  :param AddressBandWidth: 弹性IP的带宽
@@ -2989,7 +3023,7 @@ class TerminateModelsRequest(AbstractModel):
2989
3023
  :param ModelId: 只传ModelId删除模板以及模板下对应的版本
2990
3024
  :type PathPrefix: String
2991
3025
  :param ModelVersion: 传ModelId和ModelVersion,删除某个模板下的版本
2992
- :type PathPrefix: Int
3026
+ :type PathPrefix: Long
2993
3027
  """
2994
3028
  self.ModelId = None
2995
3029
  self.ModelVersion = None
@@ -3211,32 +3245,17 @@ class DescribeKecInventoryRequest(AbstractModel):
3211
3245
 
3212
3246
  def __init__(self):
3213
3247
  r"""查询云主机库存
3214
- :param InstanceType: 实例类型
3215
- :type PathPrefix: String
3216
- :param DataDiskGb: 数据卷容量,单位GB
3217
- :type PathPrefix: Int
3218
- :param SystemDisk.DiskSize: 系统盘大小
3219
- :type PathPrefix: Int
3220
- :param SystemDisk.DiskType: 系统盘类型
3248
+ :param InstanceType: 云服务器的实例规格。
3221
3249
  :type PathPrefix: String
3222
- :param AvailabilityZone: 可用区信息
3250
+ :param AvailabilityZone: 可用区。
3223
3251
  :type PathPrefix: String
3224
3252
  """
3225
3253
  self.InstanceType = None
3226
- self.DataDiskGb = None
3227
- self.SystemDisk_DiskSize = None
3228
- self.SystemDisk_DiskType = None
3229
3254
  self.AvailabilityZone = None
3230
3255
 
3231
3256
  def _deserialize(self, params):
3232
3257
  if params.get("InstanceType"):
3233
3258
  self.InstanceType = params.get("InstanceType")
3234
- if params.get("DataDiskGb"):
3235
- self.DataDiskGb = params.get("DataDiskGb")
3236
- if params.get("SystemDisk.DiskSize"):
3237
- self.SystemDisk_DiskSize = params.get("SystemDisk.DiskSize")
3238
- if params.get("SystemDisk.DiskType"):
3239
- self.SystemDisk_DiskType = params.get("SystemDisk.DiskType")
3240
3259
  if params.get("AvailabilityZone"):
3241
3260
  self.AvailabilityZone = params.get("AvailabilityZone")
3242
3261
 
@@ -3722,3 +3741,651 @@ class DescribeInstanceVncUrlRequest(AbstractModel):
3722
3741
  self.InstanceId = params.get("InstanceId")
3723
3742
 
3724
3743
 
3744
+ class CreateSnapshotRequest(AbstractModel):
3745
+ """CreateSnapshot请求参数结构体
3746
+ """
3747
+
3748
+ def __init__(self):
3749
+ r"""创建文件系统快照
3750
+ :param FileSystemId: 指定文件系统实例ID
3751
+ :type PathPrefix: String
3752
+ :param SnapshotName: 快照名称
3753
+ :type PathPrefix: String
3754
+ :param Description: 快照描述
3755
+ :type PathPrefix: String
3756
+ :param AliveDays: 快照保留天数
3757
+ :type PathPrefix: Int
3758
+ """
3759
+ self.FileSystemId = None
3760
+ self.SnapshotName = None
3761
+ self.Description = None
3762
+ self.AliveDays = None
3763
+
3764
+ def _deserialize(self, params):
3765
+ if params.get("FileSystemId"):
3766
+ self.FileSystemId = params.get("FileSystemId")
3767
+ if params.get("SnapshotName"):
3768
+ self.SnapshotName = params.get("SnapshotName")
3769
+ if params.get("Description"):
3770
+ self.Description = params.get("Description")
3771
+ if params.get("AliveDays"):
3772
+ self.AliveDays = params.get("AliveDays")
3773
+
3774
+
3775
+ class UpdateSnapshotRequest(AbstractModel):
3776
+ """UpdateSnapshot请求参数结构体
3777
+ """
3778
+
3779
+ def __init__(self):
3780
+ r"""修改文件系统快照
3781
+ :param FileSystemId: 指定文件系统实例ID
3782
+ :type PathPrefix: String
3783
+ :param SnapshotId: 生成的快照ID
3784
+ :type PathPrefix: String
3785
+ :param SnapshotName: 快照名称
3786
+ :type PathPrefix: String
3787
+ :param Description: 快照描述
3788
+ :type PathPrefix: String
3789
+ :param AliveDays: 快照保留天数
3790
+ :type PathPrefix: Int
3791
+ """
3792
+ self.FileSystemId = None
3793
+ self.SnapshotId = None
3794
+ self.SnapshotName = None
3795
+ self.Description = None
3796
+ self.AliveDays = None
3797
+
3798
+ def _deserialize(self, params):
3799
+ if params.get("FileSystemId"):
3800
+ self.FileSystemId = params.get("FileSystemId")
3801
+ if params.get("SnapshotId"):
3802
+ self.SnapshotId = params.get("SnapshotId")
3803
+ if params.get("SnapshotName"):
3804
+ self.SnapshotName = params.get("SnapshotName")
3805
+ if params.get("Description"):
3806
+ self.Description = params.get("Description")
3807
+ if params.get("AliveDays"):
3808
+ self.AliveDays = params.get("AliveDays")
3809
+
3810
+
3811
+ class DeleteSnapshotRequest(AbstractModel):
3812
+ """DeleteSnapshot请求参数结构体
3813
+ """
3814
+
3815
+ def __init__(self):
3816
+ r"""删除文件系统快照
3817
+ :param SnapshotId: 快照ID,支持批量删除
3818
+ :type PathPrefix: Filter
3819
+ """
3820
+ self.SnapshotId = None
3821
+
3822
+ def _deserialize(self, params):
3823
+ if params.get("SnapshotId"):
3824
+ self.SnapshotId = params.get("SnapshotId")
3825
+
3826
+
3827
+ class RevertSnapshotRequest(AbstractModel):
3828
+ """RevertSnapshot请求参数结构体
3829
+ """
3830
+
3831
+ def __init__(self):
3832
+ r"""文件系统快照回滚
3833
+ :param FileSystemId: 文件系统实例ID
3834
+ :type PathPrefix: String
3835
+ :param SnapshotId: 快照ID
3836
+ :type PathPrefix: String
3837
+ """
3838
+ self.FileSystemId = None
3839
+ self.SnapshotId = None
3840
+
3841
+ def _deserialize(self, params):
3842
+ if params.get("FileSystemId"):
3843
+ self.FileSystemId = params.get("FileSystemId")
3844
+ if params.get("SnapshotId"):
3845
+ self.SnapshotId = params.get("SnapshotId")
3846
+
3847
+
3848
+ class DescribeSnapshotListRequest(AbstractModel):
3849
+ """DescribeSnapshotList请求参数结构体
3850
+ """
3851
+
3852
+ def __init__(self):
3853
+ r"""查询文件系统的快照信息
3854
+ :param FileSystemId: 文件系统实例ID,支持批量查询
3855
+ :type PathPrefix: Filter
3856
+ :param SnapshotId: 快照ID,支持批量查询
3857
+ :type PathPrefix: Filter
3858
+ :param SnapshotName: 快照名称
3859
+ :type PathPrefix: String
3860
+ :param SnapshotType: 快照类型。有效取值:
3861
+ • auto:自动快照
3862
+ • user:手动创建的快照
3863
+ :type PathPrefix: String
3864
+ :param Sort: 排序规则,CreateTime.desc、CreateTime.asc、ExpireTime.desc、ExpireTime.asc
3865
+ :type PathPrefix: String
3866
+ :param PageNum: 页码,默认为1
3867
+ :type PathPrefix: Int
3868
+ :param PageSize: 分页大小,默认为10
3869
+ :type PathPrefix: Int
3870
+ """
3871
+ self.FileSystemId = None
3872
+ self.SnapshotId = None
3873
+ self.SnapshotName = None
3874
+ self.SnapshotType = None
3875
+ self.Sort = None
3876
+ self.PageNum = None
3877
+ self.PageSize = None
3878
+
3879
+ def _deserialize(self, params):
3880
+ if params.get("FileSystemId"):
3881
+ self.FileSystemId = params.get("FileSystemId")
3882
+ if params.get("SnapshotId"):
3883
+ self.SnapshotId = params.get("SnapshotId")
3884
+ if params.get("SnapshotName"):
3885
+ self.SnapshotName = params.get("SnapshotName")
3886
+ if params.get("SnapshotType"):
3887
+ self.SnapshotType = params.get("SnapshotType")
3888
+ if params.get("Sort"):
3889
+ self.Sort = params.get("Sort")
3890
+ if params.get("PageNum"):
3891
+ self.PageNum = params.get("PageNum")
3892
+ if params.get("PageSize"):
3893
+ self.PageSize = params.get("PageSize")
3894
+
3895
+
3896
+ class CreateSnapshotPolicyRequest(AbstractModel):
3897
+ """CreateSnapshotPolicy请求参数结构体
3898
+ """
3899
+
3900
+ def __init__(self):
3901
+ r"""创建文件系统自动快照策略
3902
+ :param AutoSnapshotPolicyName: 自动快照策略名称。格式规范为:
3903
+ • 长度为2~30个字符。必须以字母开头,可包含数字、下划线(_)
3904
+ :type PathPrefix: String
3905
+ :param FrequencyUnit: 自动快照策略备份周期。有效值:
3906
+ • day:按天(默认值)
3907
+ • week:按周
3908
+ • month:按月
3909
+ :type PathPrefix: String
3910
+ :param IndexOfFrequency: 备份日期
3911
+ 按天不传, 按周(必传) (1-7 可多选)按月(必传)(1-31 )[1,2,3,4,5]
3912
+ :type PathPrefix: Filter
3913
+ :param SnapshotTimePoint: 备份时间点
3914
+ 快照定期备份时间点(在一天的哪一小时) 00:00,01:00 ... 默认 00:00, 只支持小时
3915
+ :type PathPrefix: Filter
3916
+ :param AliveDays: 快照保留天数
3917
+ :type PathPrefix: Int
3918
+ """
3919
+ self.AutoSnapshotPolicyName = None
3920
+ self.FrequencyUnit = None
3921
+ self.IndexOfFrequency = None
3922
+ self.SnapshotTimePoint = None
3923
+ self.AliveDays = None
3924
+
3925
+ def _deserialize(self, params):
3926
+ if params.get("AutoSnapshotPolicyName"):
3927
+ self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
3928
+ if params.get("FrequencyUnit"):
3929
+ self.FrequencyUnit = params.get("FrequencyUnit")
3930
+ if params.get("IndexOfFrequency"):
3931
+ self.IndexOfFrequency = params.get("IndexOfFrequency")
3932
+ if params.get("SnapshotTimePoint"):
3933
+ self.SnapshotTimePoint = params.get("SnapshotTimePoint")
3934
+ if params.get("AliveDays"):
3935
+ self.AliveDays = params.get("AliveDays")
3936
+
3937
+
3938
+ class UpdateSnapshotPolicyRequest(AbstractModel):
3939
+ """UpdateSnapshotPolicy请求参数结构体
3940
+ """
3941
+
3942
+ def __init__(self):
3943
+ r"""修改文件系统自动快照策略
3944
+ :param AutoSnapshotPolicyId: 策略ID
3945
+ :type PathPrefix: String
3946
+ :param AutoSnapshotPolicyName: 策略名称
3947
+ :type PathPrefix: String
3948
+ :param FrequencyUnit: 自动快照策略备份周期。有效值:
3949
+ • day:按天(默认值)
3950
+ • week:按周
3951
+ • month:按月
3952
+ :type PathPrefix: String
3953
+ :param IndexOfFrequency: 备份日期
3954
+ 按天不传, 按周(必传)(1-7 可多选)按月(必传)(1-31 )[1,2,3,4,5]
3955
+ :type PathPrefix: Filter
3956
+ :param SnapshotTimePoint: 备份时间点
3957
+ 快照定期备份时间点(在一天的哪一小时) 00:00,01:00 ... 默认 00:00,只支持小时
3958
+ :type PathPrefix: Filter
3959
+ :param AliveDays: 快照保留天数
3960
+ :type PathPrefix: Int
3961
+ """
3962
+ self.AutoSnapshotPolicyId = None
3963
+ self.AutoSnapshotPolicyName = None
3964
+ self.FrequencyUnit = None
3965
+ self.IndexOfFrequency = None
3966
+ self.SnapshotTimePoint = None
3967
+ self.AliveDays = None
3968
+
3969
+ def _deserialize(self, params):
3970
+ if params.get("AutoSnapshotPolicyId"):
3971
+ self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
3972
+ if params.get("AutoSnapshotPolicyName"):
3973
+ self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
3974
+ if params.get("FrequencyUnit"):
3975
+ self.FrequencyUnit = params.get("FrequencyUnit")
3976
+ if params.get("IndexOfFrequency"):
3977
+ self.IndexOfFrequency = params.get("IndexOfFrequency")
3978
+ if params.get("SnapshotTimePoint"):
3979
+ self.SnapshotTimePoint = params.get("SnapshotTimePoint")
3980
+ if params.get("AliveDays"):
3981
+ self.AliveDays = params.get("AliveDays")
3982
+
3983
+
3984
+ class DeleteSnapshotPolicyRequest(AbstractModel):
3985
+ """DeleteSnapshotPolicy请求参数结构体
3986
+ """
3987
+
3988
+ def __init__(self):
3989
+ r"""删除文件系统自动快照策略
3990
+ :param AutoSnapshotPolicyId: 自动快照策略ID,支持批量删除
3991
+ :type PathPrefix: Filter
3992
+ """
3993
+ self.AutoSnapshotPolicyId = None
3994
+
3995
+ def _deserialize(self, params):
3996
+ if params.get("AutoSnapshotPolicyId"):
3997
+ self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
3998
+
3999
+
4000
+ class ApplySnapshotPolicyRequest(AbstractModel):
4001
+ """ApplySnapshotPolicy请求参数结构体
4002
+ """
4003
+
4004
+ def __init__(self):
4005
+ r"""文件系统关联自动快照策略
4006
+ :param AutoSnapshotPolicyId: 自动快照策略ID
4007
+ :type PathPrefix: String
4008
+ :param FileSystemId: 文件系统ID
4009
+ :type PathPrefix: String
4010
+ """
4011
+ self.AutoSnapshotPolicyId = None
4012
+ self.FileSystemId = None
4013
+
4014
+ def _deserialize(self, params):
4015
+ if params.get("AutoSnapshotPolicyId"):
4016
+ self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
4017
+ if params.get("FileSystemId"):
4018
+ self.FileSystemId = params.get("FileSystemId")
4019
+
4020
+
4021
+ class CancelSnapshotPolicyRequest(AbstractModel):
4022
+ """CancelSnapshotPolicy请求参数结构体
4023
+ """
4024
+
4025
+ def __init__(self):
4026
+ r"""文件系统移除自动快照策略
4027
+ :param AutoSnapshotPolicyId: 快照策略ID
4028
+ :type PathPrefix: String
4029
+ :param FileSystemId: 文件系统ID
4030
+ :type PathPrefix: String
4031
+ """
4032
+ self.AutoSnapshotPolicyId = None
4033
+ self.FileSystemId = None
4034
+
4035
+ def _deserialize(self, params):
4036
+ if params.get("AutoSnapshotPolicyId"):
4037
+ self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
4038
+ if params.get("FileSystemId"):
4039
+ self.FileSystemId = params.get("FileSystemId")
4040
+
4041
+
4042
+ class DescribeSnapshotPolicyListRequest(AbstractModel):
4043
+ """DescribeSnapshotPolicyList请求参数结构体
4044
+ """
4045
+
4046
+ def __init__(self):
4047
+ r"""获取文件系统自动快照策略列表
4048
+ :param FileSystemId: 文件系统ID
4049
+ :type PathPrefix: String
4050
+ :param AutoSnapshotPolicyId: 自动快照策略ID
4051
+ :type PathPrefix: Filter
4052
+ :param AutoSnapshotPolicyName: 自动快照策略名称
4053
+ :type PathPrefix: String
4054
+ :param Sort: 排序,CreateTime.desc、CreateTime.asc、NextActiveTime.desc、NextActiveTime.asc
4055
+ :type PathPrefix: String
4056
+ :param PageNum: 页码,默认为1
4057
+ :type PathPrefix: Int
4058
+ :param PageSize: 分页大小,默认为10
4059
+ :type PathPrefix: Int
4060
+ """
4061
+ self.FileSystemId = None
4062
+ self.AutoSnapshotPolicyId = None
4063
+ self.AutoSnapshotPolicyName = None
4064
+ self.Sort = None
4065
+ self.PageNum = None
4066
+ self.PageSize = None
4067
+
4068
+ def _deserialize(self, params):
4069
+ if params.get("FileSystemId"):
4070
+ self.FileSystemId = params.get("FileSystemId")
4071
+ if params.get("AutoSnapshotPolicyId"):
4072
+ self.AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
4073
+ if params.get("AutoSnapshotPolicyName"):
4074
+ self.AutoSnapshotPolicyName = params.get("AutoSnapshotPolicyName")
4075
+ if params.get("Sort"):
4076
+ self.Sort = params.get("Sort")
4077
+ if params.get("PageNum"):
4078
+ self.PageNum = params.get("PageNum")
4079
+ if params.get("PageSize"):
4080
+ self.PageSize = params.get("PageSize")
4081
+
4082
+
4083
+ class ModifyRecycleBinAttributeRequest(AbstractModel):
4084
+ """ModifyRecycleBinAttribute请求参数结构体
4085
+ """
4086
+
4087
+ def __init__(self):
4088
+ r"""修改回收站信息
4089
+ :param FileSystemId: 文件系统ID
4090
+ :type PathPrefix: String
4091
+ :param IsTrashEnable: 回收站功能是否开启,默认开启
4092
+ :type PathPrefix: Boolean
4093
+ :param IsTrashVisible: 回收站目录是否可见,默认可见
4094
+ :type PathPrefix: Boolean
4095
+ :param IntervalTrash: 回收站内数据保留时长,默认1天
4096
+ :type PathPrefix: Int
4097
+ :param RecycleOpPermission: 回收站操作权限级别:0(只读)/1(读写)
4098
+ :type PathPrefix: Int
4099
+ """
4100
+ self.FileSystemId = None
4101
+ self.IsTrashEnable = None
4102
+ self.IsTrashVisible = None
4103
+ self.IntervalTrash = None
4104
+ self.RecycleOpPermission = None
4105
+
4106
+ def _deserialize(self, params):
4107
+ if params.get("FileSystemId"):
4108
+ self.FileSystemId = params.get("FileSystemId")
4109
+ if params.get("IsTrashEnable"):
4110
+ self.IsTrashEnable = params.get("IsTrashEnable")
4111
+ if params.get("IsTrashVisible"):
4112
+ self.IsTrashVisible = params.get("IsTrashVisible")
4113
+ if params.get("IntervalTrash"):
4114
+ self.IntervalTrash = params.get("IntervalTrash")
4115
+ if params.get("RecycleOpPermission"):
4116
+ self.RecycleOpPermission = params.get("RecycleOpPermission")
4117
+
4118
+
4119
+ class DescribeAccessGroupsRequest(AbstractModel):
4120
+ """DescribeAccessGroups请求参数结构体
4121
+ """
4122
+
4123
+ def __init__(self):
4124
+ r"""查询权限组信息
4125
+ :param AccessGroupId: 权限组ID
4126
+ :type PathPrefix: String
4127
+ :param PageSize: 每个分页包含的权限组个数
4128
+ 取值范围:1~200
4129
+ 默认值:10
4130
+ :type PathPrefix: Int
4131
+ :param PageNumber: 列表的分页页码
4132
+ 起始值(默认值):1
4133
+ :type PathPrefix: Int
4134
+ """
4135
+ self.AccessGroupId = None
4136
+ self.PageSize = None
4137
+ self.PageNumber = None
4138
+
4139
+ def _deserialize(self, params):
4140
+ if params.get("AccessGroupId"):
4141
+ self.AccessGroupId = params.get("AccessGroupId")
4142
+ if params.get("PageSize"):
4143
+ self.PageSize = params.get("PageSize")
4144
+ if params.get("PageNumber"):
4145
+ self.PageNumber = params.get("PageNumber")
4146
+
4147
+
4148
+ class CreateAccessGroupRequest(AbstractModel):
4149
+ """CreateAccessGroup请求参数结构体
4150
+ """
4151
+
4152
+ def __init__(self):
4153
+ r"""创建权限组
4154
+ :param AccessGroupName: 权限组名称。
4155
+ 限制:
4156
+ • 长度为 3~64 个字符
4157
+ • 同一区域的权限组参数名称不可重复
4158
+ • 必须以大小写字母开头,可以包含英文字母、数字、下划线(_)或者短划线(-)
4159
+ :type PathPrefix: String
4160
+ :param Description: 权限组描述。
4161
+ 限制:
4162
+ • 长度为 0~128个英文或中文字符。
4163
+ • 必须以大小字母或中文开头,不可包含http://和https://
4164
+ • 可以包含数字、半角冒号(:)、下划线(_)或者短划号(-)
4165
+ :type PathPrefix: String
4166
+ """
4167
+ self.AccessGroupName = None
4168
+ self.Description = None
4169
+
4170
+ def _deserialize(self, params):
4171
+ if params.get("AccessGroupName"):
4172
+ self.AccessGroupName = params.get("AccessGroupName")
4173
+ if params.get("Description"):
4174
+ self.Description = params.get("Description")
4175
+
4176
+
4177
+ class ModifyAccessGroupRequest(AbstractModel):
4178
+ """ModifyAccessGroup请求参数结构体
4179
+ """
4180
+
4181
+ def __init__(self):
4182
+ r"""修改权限组
4183
+ :param AccessGroupId: 权限组ID
4184
+ :type PathPrefix: String
4185
+ :param AccessGroupName: 权限组名称
4186
+ 限制:
4187
+ • 长度为 3~64 个字符
4188
+ • 同一区域的权限组参数名称不可重复
4189
+ • 必须以大小写字母开头,可以包含英文字母、数字、下划线(_)或者短划线(-)
4190
+ :type PathPrefix: String
4191
+ :param Description: 权限组描述
4192
+ 限制:
4193
+ • 长度为 0~128个英文或中文字符
4194
+ • 必须以大小字母或中文开头,不可包含http://和https://
4195
+ • 可以包含数字、半角冒号(:)、下划线(_)或者短划号(-)
4196
+ :type PathPrefix: String
4197
+ """
4198
+ self.AccessGroupId = None
4199
+ self.AccessGroupName = None
4200
+ self.Description = None
4201
+
4202
+ def _deserialize(self, params):
4203
+ if params.get("AccessGroupId"):
4204
+ self.AccessGroupId = params.get("AccessGroupId")
4205
+ if params.get("AccessGroupName"):
4206
+ self.AccessGroupName = params.get("AccessGroupName")
4207
+ if params.get("Description"):
4208
+ self.Description = params.get("Description")
4209
+
4210
+
4211
+ class DeleteAccessGroupRequest(AbstractModel):
4212
+ """DeleteAccessGroup请求参数结构体
4213
+ """
4214
+
4215
+ def __init__(self):
4216
+ r"""删除权限组
4217
+ :param AccessGroupId: 权限组ID
4218
+ :type PathPrefix: String
4219
+ """
4220
+ self.AccessGroupId = None
4221
+
4222
+ def _deserialize(self, params):
4223
+ if params.get("AccessGroupId"):
4224
+ self.AccessGroupId = params.get("AccessGroupId")
4225
+
4226
+
4227
+ class DescribeAccessRulesRequest(AbstractModel):
4228
+ """DescribeAccessRules请求参数结构体
4229
+ """
4230
+
4231
+ def __init__(self):
4232
+ r"""查询权限组规则列表
4233
+ :param AccessGroupId: 权限组ID
4234
+ :type PathPrefix: String
4235
+ :param AccessRuleId: 权限规则ID
4236
+ :type PathPrefix: String
4237
+ :param PageSize: 分页查询时,每个分页包含的文件系统个数
4238
+ 取值范围:1~100
4239
+ 默认值:10
4240
+ :type PathPrefix: Int
4241
+ :param PageNumber: 文件系统列表的分页页码
4242
+ 起始值(默认值):1
4243
+ :type PathPrefix: Int
4244
+ """
4245
+ self.AccessGroupId = None
4246
+ self.AccessRuleId = None
4247
+ self.PageSize = None
4248
+ self.PageNumber = None
4249
+
4250
+ def _deserialize(self, params):
4251
+ if params.get("AccessGroupId"):
4252
+ self.AccessGroupId = params.get("AccessGroupId")
4253
+ if params.get("AccessRuleId"):
4254
+ self.AccessRuleId = params.get("AccessRuleId")
4255
+ if params.get("PageSize"):
4256
+ self.PageSize = params.get("PageSize")
4257
+ if params.get("PageNumber"):
4258
+ self.PageNumber = params.get("PageNumber")
4259
+
4260
+
4261
+ class CreateAccessRuleRequest(AbstractModel):
4262
+ """CreateAccessRule请求参数结构体
4263
+ """
4264
+
4265
+ def __init__(self):
4266
+ r"""创建权限组规则
4267
+ :param AccessGroupId: 权限组ID
4268
+ :type PathPrefix: String
4269
+ :param SourceCidrIp: 授权地址,授权对象的 IP 地址或网段
4270
+ 格式必须为 IP 地址或者 CIDR 网段,如果批量设置则逗号分隔
4271
+ 备注:批量录入后需按每个IP或每条CIDR地址段来拆解为多条规则
4272
+ :type PathPrefix: Filter
4273
+ :param RwAccessType: 读写权限,支持“读写权限、禁止访问”
4274
+ • RDWR:读写
4275
+ • RDONLY:只读
4276
+ • RDWR_NODELETE_NORENAME:读写(不支持删除和重命名)
4277
+ :type PathPrefix: String
4278
+ :param UserAccessType: 授权对象的系统用户对文件系统的访问权限
4279
+ 取值:
4280
+ • no_squash:允许使用 root 用户访问文件系统
4281
+ • root_squash:以 root 用户身份访问时,映射 nobody 用户
4282
+ • all_squash:无论以何种用户身份访问,均映射为 nobody 用户
4283
+ nobody 用户是 Linux 系统的默认用户,只能访问服务器上的公共内容,具有低权限,高安全性的特点
4284
+ :type PathPrefix: String
4285
+ """
4286
+ self.AccessGroupId = None
4287
+ self.SourceCidrIp = None
4288
+ self.RwAccessType = None
4289
+ self.UserAccessType = None
4290
+
4291
+ def _deserialize(self, params):
4292
+ if params.get("AccessGroupId"):
4293
+ self.AccessGroupId = params.get("AccessGroupId")
4294
+ if params.get("SourceCidrIp"):
4295
+ self.SourceCidrIp = params.get("SourceCidrIp")
4296
+ if params.get("RwAccessType"):
4297
+ self.RwAccessType = params.get("RwAccessType")
4298
+ if params.get("UserAccessType"):
4299
+ self.UserAccessType = params.get("UserAccessType")
4300
+
4301
+
4302
+ class ModifyAccessRuleRequest(AbstractModel):
4303
+ """ModifyAccessRule请求参数结构体
4304
+ """
4305
+
4306
+ def __init__(self):
4307
+ r"""修改权限组规则
4308
+ :param AccessGroupId: 权限组ID
4309
+ :type PathPrefix: String
4310
+ :param AccessRuleId: 权限组规则ID
4311
+ :type PathPrefix: String
4312
+ :param SourceCidrIp: 授权地址,授权对象的 IP 地址或网段。
4313
+ 格式必须为 IP 地址或者 CIDR 网段
4314
+ :type PathPrefix: String
4315
+ :param RwAccessType: 读写权限,支持“读写权限、禁止访问”
4316
+ • RDWR:读写
4317
+ • RDONLY:只读
4318
+ • RDWR_NODELETE_NORENAME:读写(不支持删除和重命名)
4319
+ :type PathPrefix: String
4320
+ :param UserAccessType: 授权对象的系统用户对文件系统的访问权限
4321
+ 取值:
4322
+ • no_squash:允许使用 root 用户访问文件系统
4323
+ • root_squash:以 root 用户身份访问时,映射 nobody 用户
4324
+ • all_squash:无论以何种用户身份访问,均映射为 nobody 用户
4325
+ nobody 用户是 Linux 系统的默认用户,只能访问服务器上的公共内容,具有低权限,高安全性的特点
4326
+ :type PathPrefix: String
4327
+ """
4328
+ self.AccessGroupId = None
4329
+ self.AccessRuleId = None
4330
+ self.SourceCidrIp = None
4331
+ self.RwAccessType = None
4332
+ self.UserAccessType = None
4333
+
4334
+ def _deserialize(self, params):
4335
+ if params.get("AccessGroupId"):
4336
+ self.AccessGroupId = params.get("AccessGroupId")
4337
+ if params.get("AccessRuleId"):
4338
+ self.AccessRuleId = params.get("AccessRuleId")
4339
+ if params.get("SourceCidrIp"):
4340
+ self.SourceCidrIp = params.get("SourceCidrIp")
4341
+ if params.get("RwAccessType"):
4342
+ self.RwAccessType = params.get("RwAccessType")
4343
+ if params.get("UserAccessType"):
4344
+ self.UserAccessType = params.get("UserAccessType")
4345
+
4346
+
4347
+ class DeleteAccessRuleRequest(AbstractModel):
4348
+ """DeleteAccessRule请求参数结构体
4349
+ """
4350
+
4351
+ def __init__(self):
4352
+ r"""删除权限组规则
4353
+ :param AccessGroupId: 权限组ID
4354
+ :type PathPrefix: String
4355
+ :param AccessRuleId: 权限组规则ID
4356
+ :type PathPrefix: Filter
4357
+ """
4358
+ self.AccessGroupId = None
4359
+ self.AccessRuleId = None
4360
+
4361
+ def _deserialize(self, params):
4362
+ if params.get("AccessGroupId"):
4363
+ self.AccessGroupId = params.get("AccessGroupId")
4364
+ if params.get("AccessRuleId"):
4365
+ self.AccessRuleId = params.get("AccessRuleId")
4366
+
4367
+
4368
+ class ModifyMountTargetRequest(AbstractModel):
4369
+ """ModifyMountTarget请求参数结构体
4370
+ """
4371
+
4372
+ def __init__(self):
4373
+ r"""修改文件系统挂载点
4374
+ :param FileSystemId: 文件系统ID
4375
+ :type PathPrefix: String
4376
+ :param MountTargetId: 挂载点ID
4377
+ :type PathPrefix: String
4378
+ :param AccessGroupId: 权限组ID
4379
+ :type PathPrefix: String
4380
+ """
4381
+ self.FileSystemId = None
4382
+ self.MountTargetId = None
4383
+ self.AccessGroupId = None
4384
+
4385
+ def _deserialize(self, params):
4386
+ if params.get("FileSystemId"):
4387
+ self.FileSystemId = params.get("FileSystemId")
4388
+ if params.get("MountTargetId"):
4389
+ self.MountTargetId = params.get("MountTargetId")
4390
+ if params.get("AccessGroupId"):
4391
+ self.AccessGroupId = params.get("AccessGroupId")