tencentcloud-sdk-python 3.0.1294__py2.py3-none-any.whl → 3.0.1295__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.
@@ -240,6 +240,29 @@ class ScfClient(AbstractClient):
240
240
  raise TencentCloudSDKException(type(e).__name__, str(e))
241
241
 
242
242
 
243
+ def DeleteFunctionVersion(self, request):
244
+ """该接口根据传入参数删除函数的指定版本。
245
+
246
+ :param request: Request instance for DeleteFunctionVersion.
247
+ :type request: :class:`tencentcloud.scf.v20180416.models.DeleteFunctionVersionRequest`
248
+ :rtype: :class:`tencentcloud.scf.v20180416.models.DeleteFunctionVersionResponse`
249
+
250
+ """
251
+ try:
252
+ params = request._serialize()
253
+ headers = request.headers
254
+ body = self.call("DeleteFunctionVersion", params, headers=headers)
255
+ response = json.loads(body)
256
+ model = models.DeleteFunctionVersionResponse()
257
+ model._deserialize(response["Response"])
258
+ return model
259
+ except Exception as e:
260
+ if isinstance(e, TencentCloudSDKException):
261
+ raise
262
+ else:
263
+ raise TencentCloudSDKException(type(e).__name__, str(e))
264
+
265
+
243
266
  def DeleteLayerVersion(self, request):
244
267
  """删除指定层的指定版本,被删除的版本无法再关联到函数上,但不会影响正在引用这个层的函数。
245
268
 
@@ -9298,7 +9298,7 @@ class DescribeServiceAccountsRequest(AbstractModel):
9298
9298
  :type All: bool
9299
9299
  :param _EmbedPermission: 是否填充权限信息
9300
9300
  :type EmbedPermission: bool
9301
- :param _Filters: 过滤条件
9301
+ :param _Filters: 过滤条件,key 目前只支持ServiceAccountName
9302
9302
  :type Filters: list of Filter
9303
9303
  :param _Offset: 偏移量,默认0
9304
9304
  :type Offset: int
@@ -9347,7 +9347,7 @@ class DescribeServiceAccountsRequest(AbstractModel):
9347
9347
 
9348
9348
  @property
9349
9349
  def Filters(self):
9350
- """过滤条件
9350
+ """过滤条件,key 目前只支持ServiceAccountName
9351
9351
  :rtype: list of Filter
9352
9352
  """
9353
9353
  return self._Filters
@@ -18440,6 +18440,9 @@ class WebhookTrigger(AbstractModel):
18440
18440
  :type Description: str
18441
18441
  :param _NamespaceId: 触发器所属命名空间 Id
18442
18442
  :type NamespaceId: int
18443
+ :param _NamespaceName: 触发器所属命名空间名称
18444
+ 注意:此字段可能返回 null,表示取不到有效值。
18445
+ :type NamespaceName: str
18443
18446
  """
18444
18447
  self._Name = None
18445
18448
  self._Targets = None
@@ -18449,6 +18452,7 @@ class WebhookTrigger(AbstractModel):
18449
18452
  self._Id = None
18450
18453
  self._Description = None
18451
18454
  self._NamespaceId = None
18455
+ self._NamespaceName = None
18452
18456
 
18453
18457
  @property
18454
18458
  def Name(self):
@@ -18538,6 +18542,18 @@ class WebhookTrigger(AbstractModel):
18538
18542
  def NamespaceId(self, NamespaceId):
18539
18543
  self._NamespaceId = NamespaceId
18540
18544
 
18545
+ @property
18546
+ def NamespaceName(self):
18547
+ """触发器所属命名空间名称
18548
+ 注意:此字段可能返回 null,表示取不到有效值。
18549
+ :rtype: str
18550
+ """
18551
+ return self._NamespaceName
18552
+
18553
+ @NamespaceName.setter
18554
+ def NamespaceName(self, NamespaceName):
18555
+ self._NamespaceName = NamespaceName
18556
+
18541
18557
 
18542
18558
  def _deserialize(self, params):
18543
18559
  self._Name = params.get("Name")
@@ -18553,6 +18569,7 @@ class WebhookTrigger(AbstractModel):
18553
18569
  self._Id = params.get("Id")
18554
18570
  self._Description = params.get("Description")
18555
18571
  self._NamespaceId = params.get("NamespaceId")
18572
+ self._NamespaceName = params.get("NamespaceName")
18556
18573
  memeber_set = set(params.keys())
18557
18574
  for name, value in vars(self).items():
18558
18575
  property_name = name[1:]
@@ -3089,7 +3089,7 @@ class ClusterBasicSettings(AbstractModel):
3089
3089
  :type ClusterName: str
3090
3090
  :param _ClusterDescription: 集群描述
3091
3091
  :type ClusterDescription: str
3092
- :param _VpcId: 私有网络ID,形如vpc-xxx。创建托管空集群时必传。
3092
+ :param _VpcId: 私有网络ID,形如vpc-e55paxnt。创建托管空集群时必传。
3093
3093
  :type VpcId: str
3094
3094
  :param _ProjectId: 集群内新增资源所属项目ID。
3095
3095
  :type ProjectId: int
@@ -3165,7 +3165,7 @@ class ClusterBasicSettings(AbstractModel):
3165
3165
 
3166
3166
  @property
3167
3167
  def VpcId(self):
3168
- """私有网络ID,形如vpc-xxx。创建托管空集群时必传。
3168
+ """私有网络ID,形如vpc-e55paxnt。创建托管空集群时必传。
3169
3169
  :rtype: str
3170
3170
  """
3171
3171
  return self._VpcId
@@ -15445,7 +15445,7 @@ class DescribeClusterNodePoolsRequest(AbstractModel):
15445
15445
  类型:String
15446
15446
  必选:否
15447
15447
 
15448
- · "Name":"Tags","Values": ["abc:1"]
15448
+ · "Name":"Tags","Values": ["product:tke"]
15449
15449
  按照【标签键值对】进行过滤。
15450
15450
  类型:String
15451
15451
  必选:否
@@ -15477,7 +15477,7 @@ class DescribeClusterNodePoolsRequest(AbstractModel):
15477
15477
  类型:String
15478
15478
  必选:否
15479
15479
 
15480
- · "Name":"Tags","Values": ["abc:1"]
15480
+ · "Name":"Tags","Values": ["product:tke"]
15481
15481
  按照【标签键值对】进行过滤。
15482
15482
  类型:String
15483
15483
  必选:否
@@ -17000,7 +17000,7 @@ class DescribeClustersRequest(AbstractModel):
17000
17000
  :type Offset: int
17001
17001
  :param _Limit: 最大输出条数,默认20,最大为100
17002
17002
  :type Limit: int
17003
- :param _Filters: · "Name":"ClusterName","Values": ["test"] 按照【集群名】进行过滤。 类型:String 必选:否 · "Name":"ClusterType","Values": ["MANAGED_CLUSTER"] 按照【集群类型】进行过滤。 类型:String 必选:否 · "Name":"ClusterStatus","Values": ["Running"] 按照【集群状态】进行过滤。 类型:String 必选:否 · "Name":"vpc-id","Values": ["vpc-123qajzs"] 按照【VPC】进行过滤。 类型:String 必选:否 · "Name":"tag-key","Values": ["testKey"] 按照【标签键】进行过滤。 类型:String 必选:否 · "Name":"tag-value","Values": ["testValue"] 按照【标签值】进行过滤。 类型:String 必选:否 · "Name":"Tags","Values": ["abc:1"] 按照【标签键值对】进行过滤。 类型:String 必选:否
17003
+ :param _Filters: · "Name":"ClusterName","Values": ["test"] 按照【集群名】进行过滤。 类型:String 必选:否 · "Name":"ClusterType","Values": ["MANAGED_CLUSTER"] 按照【集群类型】进行过滤。 类型:String 必选:否 · "Name":"ClusterStatus","Values": ["Running"] 按照【集群状态】进行过滤。 类型:String 必选:否 · "Name":"vpc-id","Values": ["vpc-2wds9k9p"] 按照【VPC】进行过滤。 类型:String 必选:否 · "Name":"tag-key","Values": ["testKey"] 按照【标签键】进行过滤。 类型:String 必选:否 · "Name":"tag-value","Values": ["testValue"] 按照【标签值】进行过滤。 类型:String 必选:否 · "Name":"Tags","Values": ["product:tke"] 按照【标签键值对】进行过滤。 类型:String 必选:否
17004
17004
  :type Filters: list of Filter
17005
17005
  :param _ClusterType: 集群类型,例如:MANAGED_CLUSTER
17006
17006
  :type ClusterType: str
@@ -17047,7 +17047,7 @@ class DescribeClustersRequest(AbstractModel):
17047
17047
 
17048
17048
  @property
17049
17049
  def Filters(self):
17050
- """· "Name":"ClusterName","Values": ["test"] 按照【集群名】进行过滤。 类型:String 必选:否 · "Name":"ClusterType","Values": ["MANAGED_CLUSTER"] 按照【集群类型】进行过滤。 类型:String 必选:否 · "Name":"ClusterStatus","Values": ["Running"] 按照【集群状态】进行过滤。 类型:String 必选:否 · "Name":"vpc-id","Values": ["vpc-123qajzs"] 按照【VPC】进行过滤。 类型:String 必选:否 · "Name":"tag-key","Values": ["testKey"] 按照【标签键】进行过滤。 类型:String 必选:否 · "Name":"tag-value","Values": ["testValue"] 按照【标签值】进行过滤。 类型:String 必选:否 · "Name":"Tags","Values": ["abc:1"] 按照【标签键值对】进行过滤。 类型:String 必选:否
17050
+ """· "Name":"ClusterName","Values": ["test"] 按照【集群名】进行过滤。 类型:String 必选:否 · "Name":"ClusterType","Values": ["MANAGED_CLUSTER"] 按照【集群类型】进行过滤。 类型:String 必选:否 · "Name":"ClusterStatus","Values": ["Running"] 按照【集群状态】进行过滤。 类型:String 必选:否 · "Name":"vpc-id","Values": ["vpc-2wds9k9p"] 按照【VPC】进行过滤。 类型:String 必选:否 · "Name":"tag-key","Values": ["testKey"] 按照【标签键】进行过滤。 类型:String 必选:否 · "Name":"tag-value","Values": ["testValue"] 按照【标签值】进行过滤。 类型:String 必选:否 · "Name":"Tags","Values": ["product:tke"] 按照【标签键值对】进行过滤。 类型:String 必选:否
17051
17051
  :rtype: list of Filter
17052
17052
  """
17053
17053
  return self._Filters
@@ -28685,7 +28685,7 @@ class ExistedInstance(AbstractModel):
28685
28685
  :param _AlreadyInCluster: 实例已经所在的集群ID。
28686
28686
  注意:此字段可能返回 null,表示取不到有效值。
28687
28687
  :type AlreadyInCluster: str
28688
- :param _InstanceId: 实例ID形如:ins-xxxxxxxx
28688
+ :param _InstanceId: 实例ID形如:ins-e55paxnt
28689
28689
  :type InstanceId: str
28690
28690
  :param _InstanceName: 实例名称。
28691
28691
  注意:此字段可能返回 null,表示取不到有效值。
@@ -28777,7 +28777,7 @@ class ExistedInstance(AbstractModel):
28777
28777
 
28778
28778
  @property
28779
28779
  def InstanceId(self):
28780
- """实例ID形如:ins-xxxxxxxx
28780
+ """实例ID形如:ins-e55paxnt
28781
28781
  :rtype: str
28782
28782
  """
28783
28783
  return self._InstanceId
@@ -34178,7 +34178,7 @@ class ModifyClusterImageRequest(AbstractModel):
34178
34178
  r"""
34179
34179
  :param _ClusterId: 集群ID
34180
34180
  :type ClusterId: str
34181
- :param _ImageId: 指定有效的镜像ID,格式形如img-xxxx。可通过登录控制台查询,也可调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715),取返回信息中的ImageId字段。
34181
+ :param _ImageId: 指定有效的镜像ID,格式形如img-e55paxnt。可通过登录控制台查询,也可调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715),取返回信息中的ImageId字段。
34182
34182
  :type ImageId: str
34183
34183
  """
34184
34184
  self._ClusterId = None
@@ -34197,7 +34197,7 @@ class ModifyClusterImageRequest(AbstractModel):
34197
34197
 
34198
34198
  @property
34199
34199
  def ImageId(self):
34200
- """指定有效的镜像ID,格式形如img-xxxx。可通过登录控制台查询,也可调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715),取返回信息中的ImageId字段。
34200
+ """指定有效的镜像ID,格式形如img-e55paxnt。可通过登录控制台查询,也可调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715),取返回信息中的ImageId字段。
34201
34201
  :rtype: str
34202
34202
  """
34203
34203
  return self._ImageId