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

tencentcloud/__init__.py CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1149'
16
+ __version__ = '3.0.1150'
@@ -1736,7 +1736,7 @@ If at any time the user showed anger or wanted a human agent, call transfer_call
1736
1736
  :type Model: str
1737
1737
  :param _APIKey: Model API key, for authentication information, please refer to the respective model's official website
1738
1738
 
1739
- - OpenAI protocol: [GPT](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key), [Hunyuan](https://intl.cloud.tencent.com/document/product/1729/111008?from_cn_redirect=1), [DeepSeek](https://api-docs.deepseek.com/zh-cn/);
1739
+ - OpenAI protocol: [GPT](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key), [DeepSeek](https://api-docs.deepseek.com/zh-cn/);
1740
1740
 
1741
1741
  - Azure protocol: [Azure GPT](https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line%2Ctypescript%2Cpython-new&pivots=programming-language-studio#key-settings);
1742
1742
 
@@ -1792,7 +1792,7 @@ HoaiMy
1792
1792
  :type VoiceType: str
1793
1793
  :param _Callers: Caller number list
1794
1794
  :type Callers: list of str
1795
- :param _WelcomeMessage: Used to set the AI Agent Greeting.
1795
+ :param _WelcomeMessage: Used to set the AI Agent Welcome Message.
1796
1796
  :type WelcomeMessage: str
1797
1797
  :param _WelcomeType: 0: Use welcomeMessage (if empty, the callee speaks first; if not empty, the bot speaks first)
1798
1798
  1: Use AI to automatically generate welcomeMessage and speak first based on the prompt
@@ -2032,7 +2032,7 @@ If at any time the user showed anger or wanted a human agent, call transfer_call
2032
2032
  def APIKey(self):
2033
2033
  """Model API key, for authentication information, please refer to the respective model's official website
2034
2034
 
2035
- - OpenAI protocol: [GPT](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key), [Hunyuan](https://intl.cloud.tencent.com/document/product/1729/111008?from_cn_redirect=1), [DeepSeek](https://api-docs.deepseek.com/zh-cn/);
2035
+ - OpenAI protocol: [GPT](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key), [DeepSeek](https://api-docs.deepseek.com/zh-cn/);
2036
2036
 
2037
2037
  - Azure protocol: [Azure GPT](https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line%2Ctypescript%2Cpython-new&pivots=programming-language-studio#key-settings);
2038
2038
 
@@ -2124,7 +2124,7 @@ HoaiMy
2124
2124
 
2125
2125
  @property
2126
2126
  def WelcomeMessage(self):
2127
- """Used to set the AI Agent Greeting.
2127
+ """Used to set the AI Agent Welcome Message.
2128
2128
  :rtype: str
2129
2129
  """
2130
2130
  return self._WelcomeMessage
@@ -1461,6 +1461,32 @@ class CvmClient(AbstractClient):
1461
1461
  raise TencentCloudSDKException(type(e).__name__, str(e))
1462
1462
 
1463
1463
 
1464
+ def ModifyInstancesRenewFlag(self, request):
1465
+ """This API is used to modify the renewal flag of monthly subscription instances.
1466
+
1467
+ * After an instance is marked as auto-renewal, it will be automatically renewed for one month each time it expires.
1468
+ * Batch operations are supported. The maximum number of instances for each request is 100.* You can query the result of the instance operation by calling the API [DescribeInstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5). If the latest operation status (LatestOperationState) of the instance is **SUCCESS**, the operation is successful.
1469
+
1470
+ :param request: Request instance for ModifyInstancesRenewFlag.
1471
+ :type request: :class:`tencentcloud.cvm.v20170312.models.ModifyInstancesRenewFlagRequest`
1472
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.ModifyInstancesRenewFlagResponse`
1473
+
1474
+ """
1475
+ try:
1476
+ params = request._serialize()
1477
+ headers = request.headers
1478
+ body = self.call("ModifyInstancesRenewFlag", params, headers=headers)
1479
+ response = json.loads(body)
1480
+ model = models.ModifyInstancesRenewFlagResponse()
1481
+ model._deserialize(response["Response"])
1482
+ return model
1483
+ except Exception as e:
1484
+ if isinstance(e, TencentCloudSDKException):
1485
+ raise
1486
+ else:
1487
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1488
+
1489
+
1464
1490
  def ModifyInstancesVpcAttribute(self, request):
1465
1491
  """This API is used to modify the VPC attributes of an instance, such as the VPC IP address.
1466
1492
  * This action will shut down the instance, and restart it after the modification is completed.
@@ -2089,7 +2089,7 @@ false (default value): send a normal request and create instance(s) if all the r
2089
2089
  :type InstanceChargeType: str
2090
2090
  :param _InstanceChargePrepaid: Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`.
2091
2091
  :type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
2092
- :param _DisableApiTermination:
2092
+ :param _DisableApiTermination: Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:<br><li>true: Instance protection is enabled, and the instance is not allowed to be deleted through the API.</li><br><li>false: Instance protection is disabled, and the instance is allowed to be deleted through the API.</li><br><br>Default value: false.
2093
2093
  :type DisableApiTermination: bool
2094
2094
  :param _LaunchTemplateTagSpecification: Instance launch template tag description list. By specifying the TemplateTag parameter, you can bind tags to the instance launch template.
2095
2095
  :type LaunchTemplateTagSpecification: list of TagSpecification
@@ -2416,7 +2416,7 @@ false (default value): send a normal request and create instance(s) if all the r
2416
2416
 
2417
2417
  @property
2418
2418
  def DisableApiTermination(self):
2419
- """
2419
+ """Instance termination protection flag, indicating whether an instance is allowed to be deleted through an API. Valid values:<br><li>true: Instance protection is enabled, and the instance is not allowed to be deleted through the API.</li><br><li>false: Instance protection is disabled, and the instance is allowed to be deleted through the API.</li><br><br>Default value: false.
2420
2420
  :rtype: bool
2421
2421
  """
2422
2422
  return self._DisableApiTermination
@@ -13282,6 +13282,85 @@ class ModifyInstancesProjectResponse(AbstractModel):
13282
13282
  self._RequestId = params.get("RequestId")
13283
13283
 
13284
13284
 
13285
+ class ModifyInstancesRenewFlagRequest(AbstractModel):
13286
+ """ModifyInstancesRenewFlag request structure.
13287
+
13288
+ """
13289
+
13290
+ def __init__(self):
13291
+ r"""
13292
+ :param _InstanceIds: For one or more instance IDs to be operated, you can obtain the instance ID through the `instanceid` in the returned value from the API [describeinstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1). The maximum number of instances that can be operated for each request is 100.
13293
+ :type InstanceIds: list of str
13294
+ :param _RenewFlag: Auto-renewal flag. Valid values: <br><li>notify_and_auto_renew: Notifies of expiration and performs auto-renewal.</li><li>notify_and_manual_renew: Notifies of expiration but does not perform auto-renewal.</li><li>disable_notify_and_manual_renew: Not notifies of expiration nor perform auto-renewal.</li><br>If this parameter is specified to notify_and_auto_renew, the instance will be automatically renewed on a monthly basis after it expires when there is sufficient account balance.
13295
+ :type RenewFlag: str
13296
+ """
13297
+ self._InstanceIds = None
13298
+ self._RenewFlag = None
13299
+
13300
+ @property
13301
+ def InstanceIds(self):
13302
+ """For one or more instance IDs to be operated, you can obtain the instance ID through the `instanceid` in the returned value from the API [describeinstances](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1). The maximum number of instances that can be operated for each request is 100.
13303
+ :rtype: list of str
13304
+ """
13305
+ return self._InstanceIds
13306
+
13307
+ @InstanceIds.setter
13308
+ def InstanceIds(self, InstanceIds):
13309
+ self._InstanceIds = InstanceIds
13310
+
13311
+ @property
13312
+ def RenewFlag(self):
13313
+ """Auto-renewal flag. Valid values: <br><li>notify_and_auto_renew: Notifies of expiration and performs auto-renewal.</li><li>notify_and_manual_renew: Notifies of expiration but does not perform auto-renewal.</li><li>disable_notify_and_manual_renew: Not notifies of expiration nor perform auto-renewal.</li><br>If this parameter is specified to notify_and_auto_renew, the instance will be automatically renewed on a monthly basis after it expires when there is sufficient account balance.
13314
+ :rtype: str
13315
+ """
13316
+ return self._RenewFlag
13317
+
13318
+ @RenewFlag.setter
13319
+ def RenewFlag(self, RenewFlag):
13320
+ self._RenewFlag = RenewFlag
13321
+
13322
+
13323
+ def _deserialize(self, params):
13324
+ self._InstanceIds = params.get("InstanceIds")
13325
+ self._RenewFlag = params.get("RenewFlag")
13326
+ memeber_set = set(params.keys())
13327
+ for name, value in vars(self).items():
13328
+ property_name = name[1:]
13329
+ if property_name in memeber_set:
13330
+ memeber_set.remove(property_name)
13331
+ if len(memeber_set) > 0:
13332
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13333
+
13334
+
13335
+
13336
+ class ModifyInstancesRenewFlagResponse(AbstractModel):
13337
+ """ModifyInstancesRenewFlag response structure.
13338
+
13339
+ """
13340
+
13341
+ def __init__(self):
13342
+ r"""
13343
+ :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.
13344
+ :type RequestId: str
13345
+ """
13346
+ self._RequestId = None
13347
+
13348
+ @property
13349
+ def RequestId(self):
13350
+ """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.
13351
+ :rtype: str
13352
+ """
13353
+ return self._RequestId
13354
+
13355
+ @RequestId.setter
13356
+ def RequestId(self, RequestId):
13357
+ self._RequestId = RequestId
13358
+
13359
+
13360
+ def _deserialize(self, params):
13361
+ self._RequestId = params.get("RequestId")
13362
+
13363
+
13285
13364
  class ModifyInstancesVpcAttributeRequest(AbstractModel):
13286
13365
  """ModifyInstancesVpcAttribute request structure.
13287
13366
 
@@ -26,6 +26,29 @@ class MdpClient(AbstractClient):
26
26
  _service = 'mdp'
27
27
 
28
28
 
29
+ def BindLinearAssemblyCDNDomainWithChannel(self, request):
30
+ """Linear Assembly channel is bound to CDN playback domain name.
31
+
32
+ :param request: Request instance for BindLinearAssemblyCDNDomainWithChannel.
33
+ :type request: :class:`tencentcloud.mdp.v20200527.models.BindLinearAssemblyCDNDomainWithChannelRequest`
34
+ :rtype: :class:`tencentcloud.mdp.v20200527.models.BindLinearAssemblyCDNDomainWithChannelResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("BindLinearAssemblyCDNDomainWithChannel", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.BindLinearAssemblyCDNDomainWithChannelResponse()
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
+
29
52
  def BindNewLVBDomainWithChannel(self, request):
30
53
  """This API is used to bind an LVB domain name to a channel.
31
54
 
@@ -486,6 +509,52 @@ class MdpClient(AbstractClient):
486
509
  raise TencentCloudSDKException(type(e).__name__, str(e))
487
510
 
488
511
 
512
+ def DescribeLinearAssemblyCDNDomainWithChannel(self, request):
513
+ """Query the CDN domain name associated with the LinearAssembly channel.
514
+
515
+ :param request: Request instance for DescribeLinearAssemblyCDNDomainWithChannel.
516
+ :type request: :class:`tencentcloud.mdp.v20200527.models.DescribeLinearAssemblyCDNDomainWithChannelRequest`
517
+ :rtype: :class:`tencentcloud.mdp.v20200527.models.DescribeLinearAssemblyCDNDomainWithChannelResponse`
518
+
519
+ """
520
+ try:
521
+ params = request._serialize()
522
+ headers = request.headers
523
+ body = self.call("DescribeLinearAssemblyCDNDomainWithChannel", params, headers=headers)
524
+ response = json.loads(body)
525
+ model = models.DescribeLinearAssemblyCDNDomainWithChannelResponse()
526
+ model._deserialize(response["Response"])
527
+ return model
528
+ except Exception as e:
529
+ if isinstance(e, TencentCloudSDKException):
530
+ raise
531
+ else:
532
+ raise TencentCloudSDKException(type(e).__name__, str(e))
533
+
534
+
535
+ def DescribeLinearAssemblyCDNDomainWithChannels(self, request):
536
+ """Query the CDN domain names associated with all LinearAssembly channels.
537
+
538
+ :param request: Request instance for DescribeLinearAssemblyCDNDomainWithChannels.
539
+ :type request: :class:`tencentcloud.mdp.v20200527.models.DescribeLinearAssemblyCDNDomainWithChannelsRequest`
540
+ :rtype: :class:`tencentcloud.mdp.v20200527.models.DescribeLinearAssemblyCDNDomainWithChannelsResponse`
541
+
542
+ """
543
+ try:
544
+ params = request._serialize()
545
+ headers = request.headers
546
+ body = self.call("DescribeLinearAssemblyCDNDomainWithChannels", params, headers=headers)
547
+ response = json.loads(body)
548
+ model = models.DescribeLinearAssemblyCDNDomainWithChannelsResponse()
549
+ model._deserialize(response["Response"])
550
+ return model
551
+ except Exception as e:
552
+ if isinstance(e, TencentCloudSDKException):
553
+ raise
554
+ else:
555
+ raise TencentCloudSDKException(type(e).__name__, str(e))
556
+
557
+
489
558
  def DescribeStreamPackageChannel(self, request):
490
559
  """This API is used to query the information of a StreamPackage channel.
491
560
 
@@ -1146,6 +1215,29 @@ class MdpClient(AbstractClient):
1146
1215
  model = models.UnbindCdnDomainWithChannelResponse()
1147
1216
  model._deserialize(response["Response"])
1148
1217
  return model
1218
+ except Exception as e:
1219
+ if isinstance(e, TencentCloudSDKException):
1220
+ raise
1221
+ else:
1222
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1223
+
1224
+
1225
+ def UnbindLinearAssemblyCDNDomainWithChannel(self, request):
1226
+ """Unbind LinearAssembly channel with CDN domain name.
1227
+
1228
+ :param request: Request instance for UnbindLinearAssemblyCDNDomainWithChannel.
1229
+ :type request: :class:`tencentcloud.mdp.v20200527.models.UnbindLinearAssemblyCDNDomainWithChannelRequest`
1230
+ :rtype: :class:`tencentcloud.mdp.v20200527.models.UnbindLinearAssemblyCDNDomainWithChannelResponse`
1231
+
1232
+ """
1233
+ try:
1234
+ params = request._serialize()
1235
+ headers = request.headers
1236
+ body = self.call("UnbindLinearAssemblyCDNDomainWithChannel", params, headers=headers)
1237
+ response = json.loads(body)
1238
+ model = models.UnbindLinearAssemblyCDNDomainWithChannelResponse()
1239
+ model._deserialize(response["Response"])
1240
+ return model
1149
1241
  except Exception as e:
1150
1242
  if isinstance(e, TencentCloudSDKException):
1151
1243
  raise