tencentcloud-sdk-python-thpc 3.1.127__py2.py3-none-any.whl → 3.1.158__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.127'
17
+ __version__ = '3.1.158'
@@ -29,6 +29,9 @@ INTERNALERROR = 'InternalError'
29
29
  # agent执行脚本失败。
30
30
  INTERNALERROR_AGENTRUNSCRIPTFAIL = 'InternalError.AgentRunScriptFail'
31
31
 
32
+ # Batch服务调用失败
33
+ INTERNALERROR_CALLBATCH = 'InternalError.CallBatch'
34
+
32
35
  # CAM服务调用失败。
33
36
  INTERNALERROR_CALLCAM = 'InternalError.CallCAM'
34
37
 
@@ -47,6 +50,9 @@ INVALIDPARAMETER_MALFORMED = 'InvalidParameter.Malformed'
47
50
  # 参数取值错误。
48
51
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
49
52
 
53
+ # CVM实例ID格式不符合规范
54
+ INVALIDPARAMETERVALUE_INVALIDCVMINSTANCEIDMALFORMED = 'InvalidParameterValue.InvalidCvmInstanceIdMalformed'
55
+
50
56
  # 不支持指定过滤器的键。
51
57
  INVALIDPARAMETERVALUE_INVALIDFILTERNOTSUPPORTEDNAME = 'InvalidParameterValue.InvalidFilterNotSupportedName'
52
58
 
@@ -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
 
@@ -8395,38 +8847,43 @@ class SpaceInfo(AbstractModel):
8395
8847
 
8396
8848
  def __init__(self):
8397
8849
  r"""
8398
- :param _SpaceId: 工作空间ID
8850
+ :param _SpaceId: <p>工作空间ID</p>
8399
8851
  :type SpaceId: str
8400
- :param _SpaceFamily: 工作空间类型
8852
+ :param _SpaceClass: <p>工作空间类别</p>
8853
+ :type SpaceClass: str
8854
+ :param _SpaceFamily: <p>工作空间类型</p>
8401
8855
  :type SpaceFamily: str
8402
- :param _SpaceType: 工作空间规格
8856
+ :param _SpaceType: <p>工作空间规格</p>
8403
8857
  :type SpaceType: str
8404
- :param _SpaceName: 工作空间名称
8858
+ :param _SpaceName: <p>工作空间名称</p>
8405
8859
  :type SpaceName: str
8406
- :param _SpaceState: 工作空间状态。取值范围:<br><li>PENDING:表示创建中<br></li><li>LAUNCH_FAILED:表示创建失败<br></li><li>ONLINE:表示运行中<br></li><li>ARREARS:表示隔离中<br></li><li>TERMINATING:表示销毁中。<br></li>
8860
+ :param _SpaceState: <p>工作空间状态。取值范围:<br><li>PENDING:表示创建中<br></li><li>LAUNCH_FAILED:表示创建失败<br></li><li>ONLINE:表示运行中<br></li><li>ARREARS:表示隔离中<br></li><li>TERMINATING:表示销毁中。<br></li></p>
8407
8861
  :type SpaceState: str
8408
- :param _SpaceChargeType: 工作空间计费模式
8862
+ :param _SpaceChargeType: <p>工作空间计费模式</p>
8409
8863
  :type SpaceChargeType: str
8410
- :param _ResourceId: 工作空间对应资源ID
8864
+ :param _ResourceId: <p>工作空间对应资源ID</p>
8411
8865
  :type ResourceId: str
8412
- :param _RenewFlag: 自动续费标识
8866
+ :param _RenewFlag: <p>自动续费标识</p>
8413
8867
  :type RenewFlag: str
8414
- :param _Tags: 工作空间关联的工作列表
8868
+ :param _Tags: <p>工作空间关联的工作列表</p>
8415
8869
  :type Tags: list of Tag
8416
- :param _CreatedTime: 创建时间
8870
+ :param _CreatedTime: <p>创建时间</p>
8417
8871
  :type CreatedTime: str
8418
- :param _ExpiredTime: 到期时间
8872
+ :param _ExpiredTime: <p>到期时间</p>
8419
8873
  :type ExpiredTime: str
8420
- :param _Placement: 工作空间所在位置
8874
+ :param _Placement: <p>工作空间所在位置</p>
8421
8875
  :type Placement: :class:`tencentcloud.thpc.v20230321.models.Placement`
8422
- :param _LatestOperation: 工作空间的最新操作
8876
+ :param _LatestOperation: <p>工作空间的最新操作</p>
8423
8877
  注意:此字段可能返回 null,表示取不到有效值。
8424
8878
  :type LatestOperation: str
8425
- :param _LatestOperationState: 工作空间的最新操作状态
8879
+ :param _LatestOperationState: <p>工作空间的最新操作状态</p>
8426
8880
  注意:此字段可能返回 null,表示取不到有效值。
8427
8881
  :type LatestOperationState: str
8882
+ :param _PrivateIpAddresses: <p>实例的内网IP</p>
8883
+ :type PrivateIpAddresses: list of str
8428
8884
  """
8429
8885
  self._SpaceId = None
8886
+ self._SpaceClass = None
8430
8887
  self._SpaceFamily = None
8431
8888
  self._SpaceType = None
8432
8889
  self._SpaceName = None
@@ -8440,10 +8897,11 @@ class SpaceInfo(AbstractModel):
8440
8897
  self._Placement = None
8441
8898
  self._LatestOperation = None
8442
8899
  self._LatestOperationState = None
8900
+ self._PrivateIpAddresses = None
8443
8901
 
8444
8902
  @property
8445
8903
  def SpaceId(self):
8446
- r"""工作空间ID
8904
+ r"""<p>工作空间ID</p>
8447
8905
  :rtype: str
8448
8906
  """
8449
8907
  return self._SpaceId
@@ -8452,9 +8910,20 @@ class SpaceInfo(AbstractModel):
8452
8910
  def SpaceId(self, SpaceId):
8453
8911
  self._SpaceId = SpaceId
8454
8912
 
8913
+ @property
8914
+ def SpaceClass(self):
8915
+ r"""<p>工作空间类别</p>
8916
+ :rtype: str
8917
+ """
8918
+ return self._SpaceClass
8919
+
8920
+ @SpaceClass.setter
8921
+ def SpaceClass(self, SpaceClass):
8922
+ self._SpaceClass = SpaceClass
8923
+
8455
8924
  @property
8456
8925
  def SpaceFamily(self):
8457
- r"""工作空间类型
8926
+ r"""<p>工作空间类型</p>
8458
8927
  :rtype: str
8459
8928
  """
8460
8929
  return self._SpaceFamily
@@ -8465,7 +8934,7 @@ class SpaceInfo(AbstractModel):
8465
8934
 
8466
8935
  @property
8467
8936
  def SpaceType(self):
8468
- r"""工作空间规格
8937
+ r"""<p>工作空间规格</p>
8469
8938
  :rtype: str
8470
8939
  """
8471
8940
  return self._SpaceType
@@ -8476,7 +8945,7 @@ class SpaceInfo(AbstractModel):
8476
8945
 
8477
8946
  @property
8478
8947
  def SpaceName(self):
8479
- r"""工作空间名称
8948
+ r"""<p>工作空间名称</p>
8480
8949
  :rtype: str
8481
8950
  """
8482
8951
  return self._SpaceName
@@ -8487,7 +8956,7 @@ class SpaceInfo(AbstractModel):
8487
8956
 
8488
8957
  @property
8489
8958
  def SpaceState(self):
8490
- r"""工作空间状态。取值范围:<br><li>PENDING:表示创建中<br></li><li>LAUNCH_FAILED:表示创建失败<br></li><li>ONLINE:表示运行中<br></li><li>ARREARS:表示隔离中<br></li><li>TERMINATING:表示销毁中。<br></li>
8959
+ r"""<p>工作空间状态。取值范围:<br><li>PENDING:表示创建中<br></li><li>LAUNCH_FAILED:表示创建失败<br></li><li>ONLINE:表示运行中<br></li><li>ARREARS:表示隔离中<br></li><li>TERMINATING:表示销毁中。<br></li></p>
8491
8960
  :rtype: str
8492
8961
  """
8493
8962
  return self._SpaceState
@@ -8498,7 +8967,7 @@ class SpaceInfo(AbstractModel):
8498
8967
 
8499
8968
  @property
8500
8969
  def SpaceChargeType(self):
8501
- r"""工作空间计费模式
8970
+ r"""<p>工作空间计费模式</p>
8502
8971
  :rtype: str
8503
8972
  """
8504
8973
  return self._SpaceChargeType
@@ -8509,7 +8978,7 @@ class SpaceInfo(AbstractModel):
8509
8978
 
8510
8979
  @property
8511
8980
  def ResourceId(self):
8512
- r"""工作空间对应资源ID
8981
+ r"""<p>工作空间对应资源ID</p>
8513
8982
  :rtype: str
8514
8983
  """
8515
8984
  return self._ResourceId
@@ -8520,7 +8989,7 @@ class SpaceInfo(AbstractModel):
8520
8989
 
8521
8990
  @property
8522
8991
  def RenewFlag(self):
8523
- r"""自动续费标识
8992
+ r"""<p>自动续费标识</p>
8524
8993
  :rtype: str
8525
8994
  """
8526
8995
  return self._RenewFlag
@@ -8531,7 +9000,7 @@ class SpaceInfo(AbstractModel):
8531
9000
 
8532
9001
  @property
8533
9002
  def Tags(self):
8534
- r"""工作空间关联的工作列表
9003
+ r"""<p>工作空间关联的工作列表</p>
8535
9004
  :rtype: list of Tag
8536
9005
  """
8537
9006
  return self._Tags
@@ -8542,7 +9011,7 @@ class SpaceInfo(AbstractModel):
8542
9011
 
8543
9012
  @property
8544
9013
  def CreatedTime(self):
8545
- r"""创建时间
9014
+ r"""<p>创建时间</p>
8546
9015
  :rtype: str
8547
9016
  """
8548
9017
  return self._CreatedTime
@@ -8553,7 +9022,7 @@ class SpaceInfo(AbstractModel):
8553
9022
 
8554
9023
  @property
8555
9024
  def ExpiredTime(self):
8556
- r"""到期时间
9025
+ r"""<p>到期时间</p>
8557
9026
  :rtype: str
8558
9027
  """
8559
9028
  return self._ExpiredTime
@@ -8564,7 +9033,7 @@ class SpaceInfo(AbstractModel):
8564
9033
 
8565
9034
  @property
8566
9035
  def Placement(self):
8567
- r"""工作空间所在位置
9036
+ r"""<p>工作空间所在位置</p>
8568
9037
  :rtype: :class:`tencentcloud.thpc.v20230321.models.Placement`
8569
9038
  """
8570
9039
  return self._Placement
@@ -8575,7 +9044,7 @@ class SpaceInfo(AbstractModel):
8575
9044
 
8576
9045
  @property
8577
9046
  def LatestOperation(self):
8578
- r"""工作空间的最新操作
9047
+ r"""<p>工作空间的最新操作</p>
8579
9048
  注意:此字段可能返回 null,表示取不到有效值。
8580
9049
  :rtype: str
8581
9050
  """
@@ -8587,7 +9056,7 @@ class SpaceInfo(AbstractModel):
8587
9056
 
8588
9057
  @property
8589
9058
  def LatestOperationState(self):
8590
- r"""工作空间的最新操作状态
9059
+ r"""<p>工作空间的最新操作状态</p>
8591
9060
  注意:此字段可能返回 null,表示取不到有效值。
8592
9061
  :rtype: str
8593
9062
  """
@@ -8597,9 +9066,21 @@ class SpaceInfo(AbstractModel):
8597
9066
  def LatestOperationState(self, LatestOperationState):
8598
9067
  self._LatestOperationState = LatestOperationState
8599
9068
 
9069
+ @property
9070
+ def PrivateIpAddresses(self):
9071
+ r"""<p>实例的内网IP</p>
9072
+ :rtype: list of str
9073
+ """
9074
+ return self._PrivateIpAddresses
9075
+
9076
+ @PrivateIpAddresses.setter
9077
+ def PrivateIpAddresses(self, PrivateIpAddresses):
9078
+ self._PrivateIpAddresses = PrivateIpAddresses
9079
+
8600
9080
 
8601
9081
  def _deserialize(self, params):
8602
9082
  self._SpaceId = params.get("SpaceId")
9083
+ self._SpaceClass = params.get("SpaceClass")
8603
9084
  self._SpaceFamily = params.get("SpaceFamily")
8604
9085
  self._SpaceType = params.get("SpaceType")
8605
9086
  self._SpaceName = params.get("SpaceName")
@@ -8620,6 +9101,7 @@ class SpaceInfo(AbstractModel):
8620
9101
  self._Placement._deserialize(params.get("Placement"))
8621
9102
  self._LatestOperation = params.get("LatestOperation")
8622
9103
  self._LatestOperationState = params.get("LatestOperationState")
9104
+ self._PrivateIpAddresses = params.get("PrivateIpAddresses")
8623
9105
  memeber_set = set(params.keys())
8624
9106
  for name, value in vars(self).items():
8625
9107
  property_name = name[1:]
@@ -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.127
3
+ Version: 3.1.158
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.127
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.158
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -1,4 +1,4 @@
1
- tencentcloud/__init__.py,sha256=vZZAZ-rWq3WOdn_a3Mhcl_RuBIJLLYDedHQ-p0QzJFw,630
1
+ tencentcloud/__init__.py,sha256=q0pIJJDdZ2KuGrvNeSXmnm8F_b9usd4Dl2zLuBu8UqY,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
@@ -11,11 +11,11 @@ tencentcloud/thpc/v20220401/models.py,sha256=iIyztITt7a1XtksSh2tkjU2JPzgc4Ni1RBC
11
11
  tencentcloud/thpc/v20220401/thpc_client.py,sha256=0fW2BTAtXOwSUoluvSoyaIBubz3h0uLmQv9cXcYbO3I,16786
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
- tencentcloud/thpc/v20230321/errorcodes.py,sha256=cxpEsom7e5qSm1Bhw3Hi18UYOavkYvJ36Flc1Nde9dw,6627
15
- tencentcloud/thpc/v20230321/models.py,sha256=obrLwwEqdbCMlGok1PkWgamFRwmSqEqIzUyi7ZSOUwM,358430
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.127.dist-info/METADATA,sha256=mgl_sCZ1A5w8LxPcfTM4ibHm0GLi9c_RTUMxx06g8S0,1502
19
- tencentcloud_sdk_python_thpc-3.1.127.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
20
- tencentcloud_sdk_python_thpc-3.1.127.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
21
- tencentcloud_sdk_python_thpc-3.1.127.dist-info/RECORD,,
14
+ tencentcloud/thpc/v20230321/errorcodes.py,sha256=fJQngrmvkMxJpMZhyl3unN0PJnlaKQsBURS4BfEAkpc,6850
15
+ tencentcloud/thpc/v20230321/models.py,sha256=N84rdvH94-YMLMzwAqovfzxRAboqddCLwlXer2g9FGg,377287
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.158.dist-info/METADATA,sha256=H0yPSCx8e919ye-PALaC6nsdQtp9vQA95S-6H2luw40,1502
19
+ tencentcloud_sdk_python_thpc-3.1.158.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
20
+ tencentcloud_sdk_python_thpc-3.1.158.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
21
+ tencentcloud_sdk_python_thpc-3.1.158.dist-info/RECORD,,