tencentcloud-sdk-python-intl-en 3.0.1088__py2.py3-none-any.whl → 3.0.1090__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.

@@ -18,6 +18,72 @@ import warnings
18
18
  from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
+ class AutoScaleUpRule(AbstractModel):
22
+ """
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _Status:
29
+ :type Status: str
30
+ :param _ScaleThreshold:
31
+ :type ScaleThreshold: int
32
+ :param _TargetThreshold:
33
+ :type TargetThreshold: int
34
+ """
35
+ self._Status = None
36
+ self._ScaleThreshold = None
37
+ self._TargetThreshold = None
38
+
39
+ @property
40
+ def Status(self):
41
+ """
42
+ :rtype: str
43
+ """
44
+ return self._Status
45
+
46
+ @Status.setter
47
+ def Status(self, Status):
48
+ self._Status = Status
49
+
50
+ @property
51
+ def ScaleThreshold(self):
52
+ """
53
+ :rtype: int
54
+ """
55
+ return self._ScaleThreshold
56
+
57
+ @ScaleThreshold.setter
58
+ def ScaleThreshold(self, ScaleThreshold):
59
+ self._ScaleThreshold = ScaleThreshold
60
+
61
+ @property
62
+ def TargetThreshold(self):
63
+ """
64
+ :rtype: int
65
+ """
66
+ return self._TargetThreshold
67
+
68
+ @TargetThreshold.setter
69
+ def TargetThreshold(self, TargetThreshold):
70
+ self._TargetThreshold = TargetThreshold
71
+
72
+
73
+ def _deserialize(self, params):
74
+ self._Status = params.get("Status")
75
+ self._ScaleThreshold = params.get("ScaleThreshold")
76
+ self._TargetThreshold = params.get("TargetThreshold")
77
+ memeber_set = set(params.keys())
78
+ for name, value in vars(self).items():
79
+ property_name = name[1:]
80
+ if property_name in memeber_set:
81
+ memeber_set.remove(property_name)
82
+ if len(memeber_set) > 0:
83
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
84
+
85
+
86
+
21
87
  class AutoSnapshotPolicyInfo(AbstractModel):
22
88
  """Snapshot policy information
23
89
 
@@ -3097,10 +3163,19 @@ class DescribeCfsFileSystemsRequest(AbstractModel):
3097
3163
  :type VpcId: str
3098
3164
  :param _SubnetId: Subnet ID
3099
3165
  :type SubnetId: str
3166
+ :param _Offset:
3167
+ :type Offset: int
3168
+ :param _Limit:
3169
+ :type Limit: int
3170
+ :param _CreationToken:
3171
+ :type CreationToken: str
3100
3172
  """
3101
3173
  self._FileSystemId = None
3102
3174
  self._VpcId = None
3103
3175
  self._SubnetId = None
3176
+ self._Offset = None
3177
+ self._Limit = None
3178
+ self._CreationToken = None
3104
3179
 
3105
3180
  @property
3106
3181
  def FileSystemId(self):
@@ -3135,11 +3210,47 @@ class DescribeCfsFileSystemsRequest(AbstractModel):
3135
3210
  def SubnetId(self, SubnetId):
3136
3211
  self._SubnetId = SubnetId
3137
3212
 
3213
+ @property
3214
+ def Offset(self):
3215
+ """
3216
+ :rtype: int
3217
+ """
3218
+ return self._Offset
3219
+
3220
+ @Offset.setter
3221
+ def Offset(self, Offset):
3222
+ self._Offset = Offset
3223
+
3224
+ @property
3225
+ def Limit(self):
3226
+ """
3227
+ :rtype: int
3228
+ """
3229
+ return self._Limit
3230
+
3231
+ @Limit.setter
3232
+ def Limit(self, Limit):
3233
+ self._Limit = Limit
3234
+
3235
+ @property
3236
+ def CreationToken(self):
3237
+ """
3238
+ :rtype: str
3239
+ """
3240
+ return self._CreationToken
3241
+
3242
+ @CreationToken.setter
3243
+ def CreationToken(self, CreationToken):
3244
+ self._CreationToken = CreationToken
3245
+
3138
3246
 
3139
3247
  def _deserialize(self, params):
3140
3248
  self._FileSystemId = params.get("FileSystemId")
3141
3249
  self._VpcId = params.get("VpcId")
3142
3250
  self._SubnetId = params.get("SubnetId")
3251
+ self._Offset = params.get("Offset")
3252
+ self._Limit = params.get("Limit")
3253
+ self._CreationToken = params.get("CreationToken")
3143
3254
  memeber_set = set(params.keys())
3144
3255
  for name, value in vars(self).items():
3145
3256
  property_name = name[1:]
@@ -3161,7 +3272,7 @@ class DescribeCfsFileSystemsResponse(AbstractModel):
3161
3272
  :type FileSystems: list of FileSystemInfo
3162
3273
  :param _TotalCount: Total number of file systems
3163
3274
  :type TotalCount: int
3164
- :param _RequestId: The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3275
+ :param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
3165
3276
  :type RequestId: str
3166
3277
  """
3167
3278
  self._FileSystems = None
@@ -3192,7 +3303,7 @@ class DescribeCfsFileSystemsResponse(AbstractModel):
3192
3303
 
3193
3304
  @property
3194
3305
  def RequestId(self):
3195
- """The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3306
+ """The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
3196
3307
  :rtype: str
3197
3308
  """
3198
3309
  return self._RequestId
@@ -4339,6 +4450,10 @@ class FileSystemInfo(AbstractModel):
4339
4450
  :type AppId: int
4340
4451
  :param _BandwidthLimit: The upper limit on the file system’s throughput, which is determined based on its current usage, and bound resource packs for both storage and throughput
4341
4452
  :type BandwidthLimit: float
4453
+ :param _AutoSnapshotPolicyId:
4454
+ :type AutoSnapshotPolicyId: str
4455
+ :param _SnapStatus:
4456
+ :type SnapStatus: str
4342
4457
  :param _Capacity: Total capacity of the file system
4343
4458
  :type Capacity: int
4344
4459
  :param _Tags: File system tag list
@@ -4348,6 +4463,8 @@ class FileSystemInfo(AbstractModel):
4348
4463
  :param _TieringDetail: The details about tiered storage.
4349
4464
  Note: This field may return null, indicating that no valid values can be obtained.
4350
4465
  :type TieringDetail: :class:`tencentcloud.cfs.v20190719.models.TieringDetailInfo`
4466
+ :param _AutoScaleUpRule:
4467
+ :type AutoScaleUpRule: :class:`tencentcloud.cfs.v20190719.models.AutoScaleUpRule`
4351
4468
  """
4352
4469
  self._CreationTime = None
4353
4470
  self._CreationToken = None
@@ -4367,10 +4484,13 @@ Note: This field may return null, indicating that no valid values can be obtaine
4367
4484
  self._KmsKeyId = None
4368
4485
  self._AppId = None
4369
4486
  self._BandwidthLimit = None
4487
+ self._AutoSnapshotPolicyId = None
4488
+ self._SnapStatus = None
4370
4489
  self._Capacity = None
4371
4490
  self._Tags = None
4372
4491
  self._TieringState = None
4373
4492
  self._TieringDetail = None
4493
+ self._AutoScaleUpRule = None
4374
4494
 
4375
4495
  @property
4376
4496
  def CreationTime(self):
@@ -4576,6 +4696,28 @@ Note: This field may return null, indicating that no valid values can be obtaine
4576
4696
  def BandwidthLimit(self, BandwidthLimit):
4577
4697
  self._BandwidthLimit = BandwidthLimit
4578
4698
 
4699
+ @property
4700
+ def AutoSnapshotPolicyId(self):
4701
+ """
4702
+ :rtype: str
4703
+ """
4704
+ return self._AutoSnapshotPolicyId
4705
+
4706
+ @AutoSnapshotPolicyId.setter
4707
+ def AutoSnapshotPolicyId(self, AutoSnapshotPolicyId):
4708
+ self._AutoSnapshotPolicyId = AutoSnapshotPolicyId
4709
+
4710
+ @property
4711
+ def SnapStatus(self):
4712
+ """
4713
+ :rtype: str
4714
+ """
4715
+ return self._SnapStatus
4716
+
4717
+ @SnapStatus.setter
4718
+ def SnapStatus(self, SnapStatus):
4719
+ self._SnapStatus = SnapStatus
4720
+
4579
4721
  @property
4580
4722
  def Capacity(self):
4581
4723
  """Total capacity of the file system
@@ -4621,6 +4763,17 @@ Note: This field may return null, indicating that no valid values can be obtaine
4621
4763
  def TieringDetail(self, TieringDetail):
4622
4764
  self._TieringDetail = TieringDetail
4623
4765
 
4766
+ @property
4767
+ def AutoScaleUpRule(self):
4768
+ """
4769
+ :rtype: :class:`tencentcloud.cfs.v20190719.models.AutoScaleUpRule`
4770
+ """
4771
+ return self._AutoScaleUpRule
4772
+
4773
+ @AutoScaleUpRule.setter
4774
+ def AutoScaleUpRule(self, AutoScaleUpRule):
4775
+ self._AutoScaleUpRule = AutoScaleUpRule
4776
+
4624
4777
 
4625
4778
  def _deserialize(self, params):
4626
4779
  self._CreationTime = params.get("CreationTime")
@@ -4643,6 +4796,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
4643
4796
  self._KmsKeyId = params.get("KmsKeyId")
4644
4797
  self._AppId = params.get("AppId")
4645
4798
  self._BandwidthLimit = params.get("BandwidthLimit")
4799
+ self._AutoSnapshotPolicyId = params.get("AutoSnapshotPolicyId")
4800
+ self._SnapStatus = params.get("SnapStatus")
4646
4801
  self._Capacity = params.get("Capacity")
4647
4802
  if params.get("Tags") is not None:
4648
4803
  self._Tags = []
@@ -4654,6 +4809,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
4654
4809
  if params.get("TieringDetail") is not None:
4655
4810
  self._TieringDetail = TieringDetailInfo()
4656
4811
  self._TieringDetail._deserialize(params.get("TieringDetail"))
4812
+ if params.get("AutoScaleUpRule") is not None:
4813
+ self._AutoScaleUpRule = AutoScaleUpRule()
4814
+ self._AutoScaleUpRule._deserialize(params.get("AutoScaleUpRule"))
4657
4815
  memeber_set = set(params.keys())
4658
4816
  for name, value in vars(self).items():
4659
4817
  property_name = name[1:]
File without changes
File without changes
@@ -0,0 +1,141 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.config.v20220802 import models
21
+
22
+
23
+ class ConfigClient(AbstractClient):
24
+ _apiVersion = '2022-08-02'
25
+ _endpoint = 'config.tencentcloudapi.com'
26
+ _service = 'config'
27
+
28
+
29
+ def DescribeDiscoveredResource(self, request):
30
+ """Resource details.
31
+
32
+ :param request: Request instance for DescribeDiscoveredResource.
33
+ :type request: :class:`tencentcloud.config.v20220802.models.DescribeDiscoveredResourceRequest`
34
+ :rtype: :class:`tencentcloud.config.v20220802.models.DescribeDiscoveredResourceResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("DescribeDiscoveredResource", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.DescribeDiscoveredResourceResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
52
+ def ListAggregateConfigRules(self, request):
53
+ """This API is used to get the account group rule list.
54
+
55
+ :param request: Request instance for ListAggregateConfigRules.
56
+ :type request: :class:`tencentcloud.config.v20220802.models.ListAggregateConfigRulesRequest`
57
+ :rtype: :class:`tencentcloud.config.v20220802.models.ListAggregateConfigRulesResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("ListAggregateConfigRules", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.ListAggregateConfigRulesResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
75
+ def ListConfigRules(self, request):
76
+ """This API is used to get the rule list.
77
+
78
+ :param request: Request instance for ListConfigRules.
79
+ :type request: :class:`tencentcloud.config.v20220802.models.ListConfigRulesRequest`
80
+ :rtype: :class:`tencentcloud.config.v20220802.models.ListConfigRulesResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ headers = request.headers
86
+ body = self.call("ListConfigRules", params, headers=headers)
87
+ response = json.loads(body)
88
+ model = models.ListConfigRulesResponse()
89
+ model._deserialize(response["Response"])
90
+ return model
91
+ except Exception as e:
92
+ if isinstance(e, TencentCloudSDKException):
93
+ raise
94
+ else:
95
+ raise TencentCloudSDKException(type(e).__name__, str(e))
96
+
97
+
98
+ def ListDiscoveredResources(self, request):
99
+ """This API is used to get the resource list.
100
+
101
+ :param request: Request instance for ListDiscoveredResources.
102
+ :type request: :class:`tencentcloud.config.v20220802.models.ListDiscoveredResourcesRequest`
103
+ :rtype: :class:`tencentcloud.config.v20220802.models.ListDiscoveredResourcesResponse`
104
+
105
+ """
106
+ try:
107
+ params = request._serialize()
108
+ headers = request.headers
109
+ body = self.call("ListDiscoveredResources", params, headers=headers)
110
+ response = json.loads(body)
111
+ model = models.ListDiscoveredResourcesResponse()
112
+ model._deserialize(response["Response"])
113
+ return model
114
+ except Exception as e:
115
+ if isinstance(e, TencentCloudSDKException):
116
+ raise
117
+ else:
118
+ raise TencentCloudSDKException(type(e).__name__, str(e))
119
+
120
+
121
+ def PutEvaluations(self, request):
122
+ """This API is used to report custom rule evaluation results.
123
+
124
+ :param request: Request instance for PutEvaluations.
125
+ :type request: :class:`tencentcloud.config.v20220802.models.PutEvaluationsRequest`
126
+ :rtype: :class:`tencentcloud.config.v20220802.models.PutEvaluationsResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("PutEvaluations", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.PutEvaluationsResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -0,0 +1,27 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # Parameter error.
18
+ INVALIDPARAMETER = 'InvalidParameter'
19
+
20
+ # Account group does not exist.
21
+ RESOURCENOTFOUND_ACCOUNTGROUPISNOTEXIST = 'ResourceNotFound.AccountGroupIsNotExist'
22
+
23
+ # The resource does not exist.
24
+ RESOURCENOTFOUND_RESOURCENOTEXIST = 'ResourceNotFound.ResourceNotExist'
25
+
26
+ # The rule does not exist.
27
+ RESOURCENOTFOUND_RULEISNOTEXIST = 'ResourceNotFound.RuleIsNotExist'