tencentcloud-sdk-python-thpc 3.1.130__py2.py3-none-any.whl → 3.1.160__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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.130'
17
+ __version__ = '3.1.160'
@@ -3947,14 +3947,14 @@ class DescribeJobsOverviewRequest(AbstractModel):
3947
3947
 
3948
3948
  def __init__(self):
3949
3949
  r"""
3950
- :param _ClusterId: 集群ID
3950
+ :param _ClusterId: <p>集群ID</p>
3951
3951
  :type ClusterId: str
3952
3952
  """
3953
3953
  self._ClusterId = None
3954
3954
 
3955
3955
  @property
3956
3956
  def ClusterId(self):
3957
- r"""集群ID
3957
+ r"""<p>集群ID</p>
3958
3958
  :rtype: str
3959
3959
  """
3960
3960
  return self._ClusterId
@@ -3983,11 +3983,11 @@ class DescribeJobsOverviewResponse(AbstractModel):
3983
3983
 
3984
3984
  def __init__(self):
3985
3985
  r"""
3986
- :param _JobTotal: 作业任务数量
3986
+ :param _JobTotal: <p>作业任务数量</p>
3987
3987
  :type JobTotal: int
3988
- :param _QueuingJobTotal: 排队中的作业任务数量
3988
+ :param _QueuingJobTotal: <p>排队中的作业任务数量</p>
3989
3989
  :type QueuingJobTotal: int
3990
- :param _RunningJobTotal: 运行中的作业数量
3990
+ :param _RunningJobTotal: <p>运行中的作业数量</p>
3991
3991
  :type RunningJobTotal: int
3992
3992
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3993
3993
  :type RequestId: str
@@ -3999,7 +3999,7 @@ class DescribeJobsOverviewResponse(AbstractModel):
3999
3999
 
4000
4000
  @property
4001
4001
  def JobTotal(self):
4002
- r"""作业任务数量
4002
+ r"""<p>作业任务数量</p>
4003
4003
  :rtype: int
4004
4004
  """
4005
4005
  return self._JobTotal
@@ -4010,7 +4010,7 @@ class DescribeJobsOverviewResponse(AbstractModel):
4010
4010
 
4011
4011
  @property
4012
4012
  def QueuingJobTotal(self):
4013
- r"""排队中的作业任务数量
4013
+ r"""<p>排队中的作业任务数量</p>
4014
4014
  :rtype: int
4015
4015
  """
4016
4016
  return self._QueuingJobTotal
@@ -4021,7 +4021,7 @@ class DescribeJobsOverviewResponse(AbstractModel):
4021
4021
 
4022
4022
  @property
4023
4023
  def RunningJobTotal(self):
4024
- r"""运行中的作业数量
4024
+ r"""<p>运行中的作业数量</p>
4025
4025
  :rtype: int
4026
4026
  """
4027
4027
  return self._RunningJobTotal
@@ -4632,9 +4632,9 @@ class DetachNodesRequest(AbstractModel):
4632
4632
 
4633
4633
  def __init__(self):
4634
4634
  r"""
4635
- :param _ClusterId: 集群id
4635
+ :param _ClusterId: <p>集群id</p>
4636
4636
  :type ClusterId: str
4637
- :param _NodeIds: 集群中的节点id
4637
+ :param _NodeIds: <p>集群中的节点id</p>
4638
4638
  :type NodeIds: list of str
4639
4639
  """
4640
4640
  self._ClusterId = None
@@ -4642,7 +4642,7 @@ class DetachNodesRequest(AbstractModel):
4642
4642
 
4643
4643
  @property
4644
4644
  def ClusterId(self):
4645
- r"""集群id
4645
+ r"""<p>集群id</p>
4646
4646
  :rtype: str
4647
4647
  """
4648
4648
  return self._ClusterId
@@ -4653,7 +4653,7 @@ class DetachNodesRequest(AbstractModel):
4653
4653
 
4654
4654
  @property
4655
4655
  def NodeIds(self):
4656
- r"""集群中的节点id
4656
+ r"""<p>集群中的节点id</p>
4657
4657
  :rtype: list of str
4658
4658
  """
4659
4659
  return self._NodeIds
@@ -5503,6 +5503,134 @@ class GooseFSxOptionOverview(AbstractModel):
5503
5503
 
5504
5504
 
5505
5505
 
5506
+ class InquirePriceModifyWorkspacesChargeTypeRequest(AbstractModel):
5507
+ r"""InquirePriceModifyWorkspacesChargeType请求参数结构体
5508
+
5509
+ """
5510
+
5511
+ def __init__(self):
5512
+ r"""
5513
+ :param _SpaceIds: <p>工作空间 ID 列表。每次请求的工作空间计费模式必须一致。</p>
5514
+ :type SpaceIds: list of str
5515
+ :param _SpaceChargeType: <p>转换的目标计费模式。当前仅支持 PREPAID(按量计费转包年包月)。</p>
5516
+ :type SpaceChargeType: str
5517
+ :param _DryRun: <p>是否只进行参数和资源预检。true:不发起询价、组单或正式下单;false:执行对应操作。默认为 false。</p>
5518
+ :type DryRun: bool
5519
+ :param _SpaceChargePrepaid: <p>预付费参数。Period 和 RenewFlag 均为可选字段;未传入时后端使用默认值 Period=1、RenewFlag=NOTIFY_AND_MANUAL_RENEW。</p>
5520
+ :type SpaceChargePrepaid: :class:`tencentcloud.thpc.v20230321.models.SpaceChargePrepaid`
5521
+ """
5522
+ self._SpaceIds = None
5523
+ self._SpaceChargeType = None
5524
+ self._DryRun = None
5525
+ self._SpaceChargePrepaid = None
5526
+
5527
+ @property
5528
+ def SpaceIds(self):
5529
+ r"""<p>工作空间 ID 列表。每次请求的工作空间计费模式必须一致。</p>
5530
+ :rtype: list of str
5531
+ """
5532
+ return self._SpaceIds
5533
+
5534
+ @SpaceIds.setter
5535
+ def SpaceIds(self, SpaceIds):
5536
+ self._SpaceIds = SpaceIds
5537
+
5538
+ @property
5539
+ def SpaceChargeType(self):
5540
+ r"""<p>转换的目标计费模式。当前仅支持 PREPAID(按量计费转包年包月)。</p>
5541
+ :rtype: str
5542
+ """
5543
+ return self._SpaceChargeType
5544
+
5545
+ @SpaceChargeType.setter
5546
+ def SpaceChargeType(self, SpaceChargeType):
5547
+ self._SpaceChargeType = SpaceChargeType
5548
+
5549
+ @property
5550
+ def DryRun(self):
5551
+ r"""<p>是否只进行参数和资源预检。true:不发起询价、组单或正式下单;false:执行对应操作。默认为 false。</p>
5552
+ :rtype: bool
5553
+ """
5554
+ return self._DryRun
5555
+
5556
+ @DryRun.setter
5557
+ def DryRun(self, DryRun):
5558
+ self._DryRun = DryRun
5559
+
5560
+ @property
5561
+ def SpaceChargePrepaid(self):
5562
+ r"""<p>预付费参数。Period 和 RenewFlag 均为可选字段;未传入时后端使用默认值 Period=1、RenewFlag=NOTIFY_AND_MANUAL_RENEW。</p>
5563
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.SpaceChargePrepaid`
5564
+ """
5565
+ return self._SpaceChargePrepaid
5566
+
5567
+ @SpaceChargePrepaid.setter
5568
+ def SpaceChargePrepaid(self, SpaceChargePrepaid):
5569
+ self._SpaceChargePrepaid = SpaceChargePrepaid
5570
+
5571
+
5572
+ def _deserialize(self, params):
5573
+ self._SpaceIds = params.get("SpaceIds")
5574
+ self._SpaceChargeType = params.get("SpaceChargeType")
5575
+ self._DryRun = params.get("DryRun")
5576
+ if params.get("SpaceChargePrepaid") is not None:
5577
+ self._SpaceChargePrepaid = SpaceChargePrepaid()
5578
+ self._SpaceChargePrepaid._deserialize(params.get("SpaceChargePrepaid"))
5579
+ memeber_set = set(params.keys())
5580
+ for name, value in vars(self).items():
5581
+ property_name = name[1:]
5582
+ if property_name in memeber_set:
5583
+ memeber_set.remove(property_name)
5584
+ if len(memeber_set) > 0:
5585
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5586
+
5587
+
5588
+
5589
+ class InquirePriceModifyWorkspacesChargeTypeResponse(AbstractModel):
5590
+ r"""InquirePriceModifyWorkspacesChargeType返回参数结构体
5591
+
5592
+ """
5593
+
5594
+ def __init__(self):
5595
+ r"""
5596
+ :param _Price: <p>该参数表示对应规格工作空间的价格</p>
5597
+ :type Price: :class:`tencentcloud.thpc.v20230321.models.Price`
5598
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5599
+ :type RequestId: str
5600
+ """
5601
+ self._Price = None
5602
+ self._RequestId = None
5603
+
5604
+ @property
5605
+ def Price(self):
5606
+ r"""<p>该参数表示对应规格工作空间的价格</p>
5607
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.Price`
5608
+ """
5609
+ return self._Price
5610
+
5611
+ @Price.setter
5612
+ def Price(self, Price):
5613
+ self._Price = Price
5614
+
5615
+ @property
5616
+ def RequestId(self):
5617
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5618
+ :rtype: str
5619
+ """
5620
+ return self._RequestId
5621
+
5622
+ @RequestId.setter
5623
+ def RequestId(self, RequestId):
5624
+ self._RequestId = RequestId
5625
+
5626
+
5627
+ def _deserialize(self, params):
5628
+ if params.get("Price") is not None:
5629
+ self._Price = Price()
5630
+ self._Price._deserialize(params.get("Price"))
5631
+ self._RequestId = params.get("RequestId")
5632
+
5633
+
5506
5634
  class InstanceChargePrepaid(AbstractModel):
5507
5635
  r"""描述了实例的计费模式
5508
5636
 
@@ -5633,6 +5761,164 @@ BANDWIDTH_PACKAGE:带宽包用户
5633
5761
 
5634
5762
 
5635
5763
 
5764
+ class ItemPrice(AbstractModel):
5765
+ r"""描述了单项的价格信息。
5766
+
5767
+ """
5768
+
5769
+ def __init__(self):
5770
+ r"""
5771
+ :param _OriginalPrice: 预支合计费用的原价,预付费模式使用,单位:元。
5772
+ 注意:此字段可能返回 null,表示取不到有效值。
5773
+ :type OriginalPrice: float
5774
+ :param _DiscountPrice: 预支合计费用的折扣价,预付费模式使用,单位:元。
5775
+ 注意:此字段可能返回 null,表示取不到有效值。
5776
+ :type DiscountPrice: float
5777
+ :param _Discount: 折扣,如20.0代表2折。
5778
+ 注意:此字段可能返回 null,表示取不到有效值。
5779
+ :type Discount: float
5780
+ :param _UnitPrice: 后续合计费用的原价,后付费模式使用,单位:元。
5781
+
5782
+ 如返回了其他时间区间项,如UnitPriceSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
5783
+ 注意:此字段可能返回 null,表示取不到有效值。
5784
+ :type UnitPrice: float
5785
+ :param _DiscountUnitPrice: 后续合计费用的折扣价,后付费模式使用,单位:元
5786
+
5787
+ 如返回了其他时间区间项,如DiscountUnitPriceSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
5788
+ 注意:此字段可能返回 null,表示取不到有效值。
5789
+ :type DiscountUnitPrice: float
5790
+ :param _ChargeUnit: 后续计价单元,后付费模式使用,可取值范围:
5791
+
5792
+ HOUR:表示计价单元是按每小时来计算。当前涉及该计价单元的场景有:实例按小时后付费(POSTPAID_BY_HOUR)、带宽按小时后付费(BANDWIDTH_POSTPAID_BY_HOUR):
5793
+ GB:表示计价单元是按每GB来计算。当前涉及该计价单元的场景有:流量按小时后付费(TRAFFIC_POSTPAID_BY_HOUR)。
5794
+ 注意:此字段可能返回 null,表示取不到有效值。
5795
+ :type ChargeUnit: str
5796
+ :param _UnitPriceDiscount: 后续合计费用的折扣价,后付费模式使用,单位:元
5797
+
5798
+ 如返回了其他时间区间项,如UnitPriceDiscount
5799
+ float,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
5800
+ :type UnitPriceDiscount: float
5801
+ """
5802
+ self._OriginalPrice = None
5803
+ self._DiscountPrice = None
5804
+ self._Discount = None
5805
+ self._UnitPrice = None
5806
+ self._DiscountUnitPrice = None
5807
+ self._ChargeUnit = None
5808
+ self._UnitPriceDiscount = None
5809
+
5810
+ @property
5811
+ def OriginalPrice(self):
5812
+ r"""预支合计费用的原价,预付费模式使用,单位:元。
5813
+ 注意:此字段可能返回 null,表示取不到有效值。
5814
+ :rtype: float
5815
+ """
5816
+ return self._OriginalPrice
5817
+
5818
+ @OriginalPrice.setter
5819
+ def OriginalPrice(self, OriginalPrice):
5820
+ self._OriginalPrice = OriginalPrice
5821
+
5822
+ @property
5823
+ def DiscountPrice(self):
5824
+ r"""预支合计费用的折扣价,预付费模式使用,单位:元。
5825
+ 注意:此字段可能返回 null,表示取不到有效值。
5826
+ :rtype: float
5827
+ """
5828
+ return self._DiscountPrice
5829
+
5830
+ @DiscountPrice.setter
5831
+ def DiscountPrice(self, DiscountPrice):
5832
+ self._DiscountPrice = DiscountPrice
5833
+
5834
+ @property
5835
+ def Discount(self):
5836
+ r"""折扣,如20.0代表2折。
5837
+ 注意:此字段可能返回 null,表示取不到有效值。
5838
+ :rtype: float
5839
+ """
5840
+ return self._Discount
5841
+
5842
+ @Discount.setter
5843
+ def Discount(self, Discount):
5844
+ self._Discount = Discount
5845
+
5846
+ @property
5847
+ def UnitPrice(self):
5848
+ r"""后续合计费用的原价,后付费模式使用,单位:元。
5849
+
5850
+ 如返回了其他时间区间项,如UnitPriceSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
5851
+ 注意:此字段可能返回 null,表示取不到有效值。
5852
+ :rtype: float
5853
+ """
5854
+ return self._UnitPrice
5855
+
5856
+ @UnitPrice.setter
5857
+ def UnitPrice(self, UnitPrice):
5858
+ self._UnitPrice = UnitPrice
5859
+
5860
+ @property
5861
+ def DiscountUnitPrice(self):
5862
+ r"""后续合计费用的折扣价,后付费模式使用,单位:元
5863
+
5864
+ 如返回了其他时间区间项,如DiscountUnitPriceSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
5865
+ 注意:此字段可能返回 null,表示取不到有效值。
5866
+ :rtype: float
5867
+ """
5868
+ return self._DiscountUnitPrice
5869
+
5870
+ @DiscountUnitPrice.setter
5871
+ def DiscountUnitPrice(self, DiscountUnitPrice):
5872
+ self._DiscountUnitPrice = DiscountUnitPrice
5873
+
5874
+ @property
5875
+ def ChargeUnit(self):
5876
+ r"""后续计价单元,后付费模式使用,可取值范围:
5877
+
5878
+ HOUR:表示计价单元是按每小时来计算。当前涉及该计价单元的场景有:实例按小时后付费(POSTPAID_BY_HOUR)、带宽按小时后付费(BANDWIDTH_POSTPAID_BY_HOUR):
5879
+ GB:表示计价单元是按每GB来计算。当前涉及该计价单元的场景有:流量按小时后付费(TRAFFIC_POSTPAID_BY_HOUR)。
5880
+ 注意:此字段可能返回 null,表示取不到有效值。
5881
+ :rtype: str
5882
+ """
5883
+ return self._ChargeUnit
5884
+
5885
+ @ChargeUnit.setter
5886
+ def ChargeUnit(self, ChargeUnit):
5887
+ self._ChargeUnit = ChargeUnit
5888
+
5889
+ @property
5890
+ def UnitPriceDiscount(self):
5891
+ r"""后续合计费用的折扣价,后付费模式使用,单位:元
5892
+
5893
+ 如返回了其他时间区间项,如UnitPriceDiscount
5894
+ float,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
5895
+ :rtype: float
5896
+ """
5897
+ return self._UnitPriceDiscount
5898
+
5899
+ @UnitPriceDiscount.setter
5900
+ def UnitPriceDiscount(self, UnitPriceDiscount):
5901
+ self._UnitPriceDiscount = UnitPriceDiscount
5902
+
5903
+
5904
+ def _deserialize(self, params):
5905
+ self._OriginalPrice = params.get("OriginalPrice")
5906
+ self._DiscountPrice = params.get("DiscountPrice")
5907
+ self._Discount = params.get("Discount")
5908
+ self._UnitPrice = params.get("UnitPrice")
5909
+ self._DiscountUnitPrice = params.get("DiscountUnitPrice")
5910
+ self._ChargeUnit = params.get("ChargeUnit")
5911
+ self._UnitPriceDiscount = params.get("UnitPriceDiscount")
5912
+ memeber_set = set(params.keys())
5913
+ for name, value in vars(self).items():
5914
+ property_name = name[1:]
5915
+ if property_name in memeber_set:
5916
+ memeber_set.remove(property_name)
5917
+ if len(memeber_set) > 0:
5918
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5919
+
5920
+
5921
+
5636
5922
  class Job(AbstractModel):
5637
5923
  r"""提交Job作业信息
5638
5924
 
@@ -6728,6 +7014,117 @@ class ModifyWorkspacesAttributeResponse(AbstractModel):
6728
7014
  self._RequestId = params.get("RequestId")
6729
7015
 
6730
7016
 
7017
+ class ModifyWorkspacesChargeTypeRequest(AbstractModel):
7018
+ r"""ModifyWorkspacesChargeType请求参数结构体
7019
+
7020
+ """
7021
+
7022
+ def __init__(self):
7023
+ r"""
7024
+ :param _SpaceIds: <p>工作空间 ID 列表。每次请求的工作空间计费模式必须一致。</p>
7025
+ :type SpaceIds: list of str
7026
+ :param _SpaceChargeType: <p>转换的目标计费模式。当前仅支持 PREPAID(按量计费转包年包月)。</p>
7027
+ :type SpaceChargeType: str
7028
+ :param _DryRun: <p>是否只进行参数和资源预检。true:不发起询价、组单或正式下单;false:执行对应操作。默认为 false。</p>
7029
+ :type DryRun: bool
7030
+ :param _SpaceChargePrepaid: <p>预付费参数。Period 和 RenewFlag 均为可选字段;未传入时后端使用默认值 Period=1、RenewFlag=NOTIFY_AND_MANUAL_RENEW。</p>
7031
+ :type SpaceChargePrepaid: :class:`tencentcloud.thpc.v20230321.models.SpaceChargePrepaid`
7032
+ """
7033
+ self._SpaceIds = None
7034
+ self._SpaceChargeType = None
7035
+ self._DryRun = None
7036
+ self._SpaceChargePrepaid = None
7037
+
7038
+ @property
7039
+ def SpaceIds(self):
7040
+ r"""<p>工作空间 ID 列表。每次请求的工作空间计费模式必须一致。</p>
7041
+ :rtype: list of str
7042
+ """
7043
+ return self._SpaceIds
7044
+
7045
+ @SpaceIds.setter
7046
+ def SpaceIds(self, SpaceIds):
7047
+ self._SpaceIds = SpaceIds
7048
+
7049
+ @property
7050
+ def SpaceChargeType(self):
7051
+ r"""<p>转换的目标计费模式。当前仅支持 PREPAID(按量计费转包年包月)。</p>
7052
+ :rtype: str
7053
+ """
7054
+ return self._SpaceChargeType
7055
+
7056
+ @SpaceChargeType.setter
7057
+ def SpaceChargeType(self, SpaceChargeType):
7058
+ self._SpaceChargeType = SpaceChargeType
7059
+
7060
+ @property
7061
+ def DryRun(self):
7062
+ r"""<p>是否只进行参数和资源预检。true:不发起询价、组单或正式下单;false:执行对应操作。默认为 false。</p>
7063
+ :rtype: bool
7064
+ """
7065
+ return self._DryRun
7066
+
7067
+ @DryRun.setter
7068
+ def DryRun(self, DryRun):
7069
+ self._DryRun = DryRun
7070
+
7071
+ @property
7072
+ def SpaceChargePrepaid(self):
7073
+ r"""<p>预付费参数。Period 和 RenewFlag 均为可选字段;未传入时后端使用默认值 Period=1、RenewFlag=NOTIFY_AND_MANUAL_RENEW。</p>
7074
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.SpaceChargePrepaid`
7075
+ """
7076
+ return self._SpaceChargePrepaid
7077
+
7078
+ @SpaceChargePrepaid.setter
7079
+ def SpaceChargePrepaid(self, SpaceChargePrepaid):
7080
+ self._SpaceChargePrepaid = SpaceChargePrepaid
7081
+
7082
+
7083
+ def _deserialize(self, params):
7084
+ self._SpaceIds = params.get("SpaceIds")
7085
+ self._SpaceChargeType = params.get("SpaceChargeType")
7086
+ self._DryRun = params.get("DryRun")
7087
+ if params.get("SpaceChargePrepaid") is not None:
7088
+ self._SpaceChargePrepaid = SpaceChargePrepaid()
7089
+ self._SpaceChargePrepaid._deserialize(params.get("SpaceChargePrepaid"))
7090
+ memeber_set = set(params.keys())
7091
+ for name, value in vars(self).items():
7092
+ property_name = name[1:]
7093
+ if property_name in memeber_set:
7094
+ memeber_set.remove(property_name)
7095
+ if len(memeber_set) > 0:
7096
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7097
+
7098
+
7099
+
7100
+ class ModifyWorkspacesChargeTypeResponse(AbstractModel):
7101
+ r"""ModifyWorkspacesChargeType返回参数结构体
7102
+
7103
+ """
7104
+
7105
+ def __init__(self):
7106
+ r"""
7107
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7108
+ :type RequestId: str
7109
+ """
7110
+ self._RequestId = None
7111
+
7112
+ @property
7113
+ def RequestId(self):
7114
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7115
+ :rtype: str
7116
+ """
7117
+ return self._RequestId
7118
+
7119
+ @RequestId.setter
7120
+ def RequestId(self, RequestId):
7121
+ self._RequestId = RequestId
7122
+
7123
+
7124
+ def _deserialize(self, params):
7125
+ self._RequestId = params.get("RequestId")
7126
+
7127
+
6731
7128
  class ModifyWorkspacesRenewFlagRequest(AbstractModel):
6732
7129
  r"""ModifyWorkspacesRenewFlag请求参数结构体
6733
7130
 
@@ -7253,6 +7650,61 @@ class Placement(AbstractModel):
7253
7650
 
7254
7651
 
7255
7652
 
7653
+ class Price(AbstractModel):
7654
+ r"""价格
7655
+
7656
+ """
7657
+
7658
+ def __init__(self):
7659
+ r"""
7660
+ :param _SpacePrice: 工作空间价格
7661
+ :type SpacePrice: :class:`tencentcloud.thpc.v20230321.models.ItemPrice`
7662
+ :param _BandwidthPrice: 网络价格
7663
+ :type BandwidthPrice: :class:`tencentcloud.thpc.v20230321.models.ItemPrice`
7664
+ """
7665
+ self._SpacePrice = None
7666
+ self._BandwidthPrice = None
7667
+
7668
+ @property
7669
+ def SpacePrice(self):
7670
+ r"""工作空间价格
7671
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.ItemPrice`
7672
+ """
7673
+ return self._SpacePrice
7674
+
7675
+ @SpacePrice.setter
7676
+ def SpacePrice(self, SpacePrice):
7677
+ self._SpacePrice = SpacePrice
7678
+
7679
+ @property
7680
+ def BandwidthPrice(self):
7681
+ r"""网络价格
7682
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.ItemPrice`
7683
+ """
7684
+ return self._BandwidthPrice
7685
+
7686
+ @BandwidthPrice.setter
7687
+ def BandwidthPrice(self, BandwidthPrice):
7688
+ self._BandwidthPrice = BandwidthPrice
7689
+
7690
+
7691
+ def _deserialize(self, params):
7692
+ if params.get("SpacePrice") is not None:
7693
+ self._SpacePrice = ItemPrice()
7694
+ self._SpacePrice._deserialize(params.get("SpacePrice"))
7695
+ if params.get("BandwidthPrice") is not None:
7696
+ self._BandwidthPrice = ItemPrice()
7697
+ self._BandwidthPrice._deserialize(params.get("BandwidthPrice"))
7698
+ memeber_set = set(params.keys())
7699
+ for name, value in vars(self).items():
7700
+ property_name = name[1:]
7701
+ if property_name in memeber_set:
7702
+ memeber_set.remove(property_name)
7703
+ if len(memeber_set) > 0:
7704
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7705
+
7706
+
7707
+
7256
7708
  class QueueConfig(AbstractModel):
7257
7709
  r"""扩容队列配置。
7258
7710
 
@@ -562,6 +562,29 @@ class ThpcClient(AbstractClient):
562
562
  raise TencentCloudSDKException(type(e).__name__, str(e))
563
563
 
564
564
 
565
+ def InquirePriceModifyWorkspacesChargeType(self, request):
566
+ r"""查询按量计费工作空间转换为包年包月的价格。不会创建订单或变更资源。
567
+
568
+ :param request: Request instance for InquirePriceModifyWorkspacesChargeType.
569
+ :type request: :class:`tencentcloud.thpc.v20230321.models.InquirePriceModifyWorkspacesChargeTypeRequest`
570
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.InquirePriceModifyWorkspacesChargeTypeResponse`
571
+
572
+ """
573
+ try:
574
+ params = request._serialize()
575
+ headers = request.headers
576
+ body = self.call("InquirePriceModifyWorkspacesChargeType", params, headers=headers)
577
+ response = json.loads(body)
578
+ model = models.InquirePriceModifyWorkspacesChargeTypeResponse()
579
+ model._deserialize(response["Response"])
580
+ return model
581
+ except Exception as e:
582
+ if isinstance(e, TencentCloudSDKException):
583
+ raise
584
+ else:
585
+ raise TencentCloudSDKException(type(e).__name__, str(e))
586
+
587
+
565
588
  def ModifyClusterDeletionProtection(self, request):
566
589
  r"""修改集群删除保护状态
567
590
 
@@ -654,6 +677,29 @@ class ThpcClient(AbstractClient):
654
677
  raise TencentCloudSDKException(type(e).__name__, str(e))
655
678
 
656
679
 
680
+ def ModifyWorkspacesChargeType(self, request):
681
+ r"""正式提交按量计费工作空间转包年包月订单。仅支持 ONLINE 且计费模式为 POSTPAID_BY_HOUR 的工作空间。
682
+
683
+ :param request: Request instance for ModifyWorkspacesChargeType.
684
+ :type request: :class:`tencentcloud.thpc.v20230321.models.ModifyWorkspacesChargeTypeRequest`
685
+ :rtype: :class:`tencentcloud.thpc.v20230321.models.ModifyWorkspacesChargeTypeResponse`
686
+
687
+ """
688
+ try:
689
+ params = request._serialize()
690
+ headers = request.headers
691
+ body = self.call("ModifyWorkspacesChargeType", params, headers=headers)
692
+ response = json.loads(body)
693
+ model = models.ModifyWorkspacesChargeTypeResponse()
694
+ model._deserialize(response["Response"])
695
+ return model
696
+ except Exception as e:
697
+ if isinstance(e, TencentCloudSDKException):
698
+ raise
699
+ else:
700
+ raise TencentCloudSDKException(type(e).__name__, str(e))
701
+
702
+
657
703
  def ModifyWorkspacesRenewFlag(self, request):
658
704
  r"""本接口 (ModifyWorkspacesAttribute) 用于修改工作空间的属性(目前只支持修改工作空间的名称)。
659
705
 
@@ -446,6 +446,24 @@ class ThpcClient(AbstractClient):
446
446
 
447
447
  return await self.call_and_deserialize(**kwargs)
448
448
 
449
+ async def InquirePriceModifyWorkspacesChargeType(
450
+ self,
451
+ request: models.InquirePriceModifyWorkspacesChargeTypeRequest,
452
+ opts: Dict = None,
453
+ ) -> models.InquirePriceModifyWorkspacesChargeTypeResponse:
454
+ """
455
+ 查询按量计费工作空间转换为包年包月的价格。不会创建订单或变更资源。
456
+ """
457
+
458
+ kwargs = {}
459
+ kwargs["action"] = "InquirePriceModifyWorkspacesChargeType"
460
+ kwargs["params"] = request._serialize()
461
+ kwargs["resp_cls"] = models.InquirePriceModifyWorkspacesChargeTypeResponse
462
+ kwargs["headers"] = request.headers
463
+ kwargs["opts"] = opts or {}
464
+
465
+ return await self.call_and_deserialize(**kwargs)
466
+
449
467
  async def ModifyClusterDeletionProtection(
450
468
  self,
451
469
  request: models.ModifyClusterDeletionProtectionRequest,
@@ -518,6 +536,24 @@ class ThpcClient(AbstractClient):
518
536
 
519
537
  return await self.call_and_deserialize(**kwargs)
520
538
 
539
+ async def ModifyWorkspacesChargeType(
540
+ self,
541
+ request: models.ModifyWorkspacesChargeTypeRequest,
542
+ opts: Dict = None,
543
+ ) -> models.ModifyWorkspacesChargeTypeResponse:
544
+ """
545
+ 正式提交按量计费工作空间转包年包月订单。仅支持 ONLINE 且计费模式为 POSTPAID_BY_HOUR 的工作空间。
546
+ """
547
+
548
+ kwargs = {}
549
+ kwargs["action"] = "ModifyWorkspacesChargeType"
550
+ kwargs["params"] = request._serialize()
551
+ kwargs["resp_cls"] = models.ModifyWorkspacesChargeTypeResponse
552
+ kwargs["headers"] = request.headers
553
+ kwargs["opts"] = opts or {}
554
+
555
+ return await self.call_and_deserialize(**kwargs)
556
+
521
557
  async def ModifyWorkspacesRenewFlag(
522
558
  self,
523
559
  request: models.ModifyWorkspacesRenewFlagRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-thpc
3
- Version: 3.1.130
3
+ Version: 3.1.160
4
4
  Summary: Tencent Cloud Thpc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.130
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.160
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=OqHtlRcyw1JSGHtl8DkicKrWgl2KrUlgsAKTW9AZpWU,630
1
+ tencentcloud/__init__.py,sha256=QfPKdL6wFKY5wk-QE-sOfjlZGtA5rXjML4ji0CHCWK0,630
2
2
  tencentcloud/thpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  tencentcloud/thpc/v20211109/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  tencentcloud/thpc/v20211109/errorcodes.py,sha256=vwK0Sl3PK8krfQTSMd11VbM3Zd3CYX10xdEH9HdadJ0,2008
@@ -12,10 +12,10 @@ tencentcloud/thpc/v20220401/thpc_client.py,sha256=0fW2BTAtXOwSUoluvSoyaIBubz3h0u
12
12
  tencentcloud/thpc/v20220401/thpc_client_async.py,sha256=LINqME6SCHKz4KWuf9-MKFrPMmG7RmyEDR1hudF7D4U,11870
13
13
  tencentcloud/thpc/v20230321/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  tencentcloud/thpc/v20230321/errorcodes.py,sha256=fJQngrmvkMxJpMZhyl3unN0PJnlaKQsBURS4BfEAkpc,6850
15
- tencentcloud/thpc/v20230321/models.py,sha256=L5tzXXdg2MRKcDsX_qkcf4lovU0L5G505XlOQHUWSK0,359558
16
- tencentcloud/thpc/v20230321/thpc_client.py,sha256=_d3PZ9ujEXBW0640ES1hhUd_3ozvZu_v1Ke00WDNI5k,31639
17
- tencentcloud/thpc/v20230321/thpc_client_async.py,sha256=mR1RWWjhAnvlci0MWjbxk9pglq7Xbe3wTWMfqKR5ImI,21897
18
- tencentcloud_sdk_python_thpc-3.1.130.dist-info/METADATA,sha256=ypFmHnfPqp4RfJes2tKMD46psr5r7ffiDe_yR_VgFXw,1502
19
- tencentcloud_sdk_python_thpc-3.1.130.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
20
- tencentcloud_sdk_python_thpc-3.1.130.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
21
- tencentcloud_sdk_python_thpc-3.1.130.dist-info/RECORD,,
15
+ tencentcloud/thpc/v20230321/models.py,sha256=-vFavGG_A7qwFwGizu1pufb8YAiKZy-ue0c5vYbjDqg,377371
16
+ tencentcloud/thpc/v20230321/thpc_client.py,sha256=CLuBajUtvyhXqxvM-gafCOoritwBdSyeh8TC1wLTAEw,33757
17
+ tencentcloud/thpc/v20230321/thpc_client_async.py,sha256=eMuvzW35kjF83zKiRbcMMjAn3ew_tcHTtXi-mG4HnW4,23383
18
+ tencentcloud_sdk_python_thpc-3.1.160.dist-info/METADATA,sha256=rQbp2EukP2cbfmKI-A9eZWW5HRSxsHviPb6nw5tno94,1502
19
+ tencentcloud_sdk_python_thpc-3.1.160.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
20
+ tencentcloud_sdk_python_thpc-3.1.160.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
21
+ tencentcloud_sdk_python_thpc-3.1.160.dist-info/RECORD,,