tencentcloud-sdk-python 3.0.1334__py2.py3-none-any.whl → 3.0.1336__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.
Files changed (47) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/acp/v20220105/models.py +0 -40
  3. tencentcloud/aiart/v20221229/aiart_client.py +24 -0
  4. tencentcloud/aiart/v20221229/models.py +121 -0
  5. tencentcloud/autoscaling/v20180419/autoscaling_client.py +3 -2
  6. tencentcloud/ccc/v20200210/models.py +15 -0
  7. tencentcloud/controlcenter/v20230110/controlcenter_client.py +92 -0
  8. tencentcloud/controlcenter/v20230110/errorcodes.py +9 -0
  9. tencentcloud/controlcenter/v20230110/models.py +948 -0
  10. tencentcloud/cvm/v20170312/cvm_client.py +92 -0
  11. tencentcloud/cvm/v20170312/errorcodes.py +9 -0
  12. tencentcloud/cvm/v20170312/models.py +1487 -37
  13. tencentcloud/cynosdb/v20190107/models.py +17 -2
  14. tencentcloud/dlc/v20210125/models.py +17 -0
  15. tencentcloud/domain/v20180808/errorcodes.py +2 -2
  16. tencentcloud/ess/v20201111/ess_client.py +5 -4
  17. tencentcloud/ess/v20201111/models.py +4 -0
  18. tencentcloud/essbasic/v20210526/essbasic_client.py +5 -4
  19. tencentcloud/essbasic/v20210526/models.py +8 -2
  20. tencentcloud/ims/v20201229/ims_client.py +18 -12
  21. tencentcloud/iotexplorer/v20190423/models.py +237 -0
  22. tencentcloud/keewidb/v20220308/models.py +0 -2
  23. tencentcloud/lcic/v20220817/models.py +75 -54
  24. tencentcloud/lke/v20231130/errorcodes.py +0 -12
  25. tencentcloud/lke/v20231130/lke_client.py +0 -50
  26. tencentcloud/lke/v20231130/models.py +0 -284
  27. tencentcloud/lowcode/v20210108/models.py +182 -2
  28. tencentcloud/mariadb/v20170312/models.py +10 -10
  29. tencentcloud/mqtt/v20240516/models.py +949 -15
  30. tencentcloud/mqtt/v20240516/mqtt_client.py +92 -0
  31. tencentcloud/ocr/v20181119/models.py +4 -22
  32. tencentcloud/ocr/v20181119/ocr_client.py +1 -1
  33. tencentcloud/organization/v20210331/models.py +158 -0
  34. tencentcloud/organization/v20210331/organization_client.py +46 -0
  35. tencentcloud/partners/v20180321/models.py +197 -0
  36. tencentcloud/partners/v20180321/partners_client.py +23 -0
  37. tencentcloud/tat/v20201028/models.py +494 -180
  38. tencentcloud/tat/v20201028/tat_client.py +2 -2
  39. tencentcloud/teo/v20220901/models.py +14 -4
  40. tencentcloud/tke/v20180525/models.py +0 -292
  41. tencentcloud/tke/v20220501/models.py +0 -2
  42. tencentcloud/vdb/v20230616/models.py +0 -12
  43. {tencentcloud_sdk_python-3.0.1334.dist-info → tencentcloud_sdk_python-3.0.1336.dist-info}/METADATA +1 -1
  44. {tencentcloud_sdk_python-3.0.1334.dist-info → tencentcloud_sdk_python-3.0.1336.dist-info}/RECORD +47 -47
  45. {tencentcloud_sdk_python-3.0.1334.dist-info → tencentcloud_sdk_python-3.0.1336.dist-info}/LICENSE +0 -0
  46. {tencentcloud_sdk_python-3.0.1334.dist-info → tencentcloud_sdk_python-3.0.1336.dist-info}/WHEEL +0 -0
  47. {tencentcloud_sdk_python-3.0.1334.dist-info → tencentcloud_sdk_python-3.0.1336.dist-info}/top_level.txt +0 -0
@@ -7588,6 +7588,340 @@ class DescribeRegionsResponse(AbstractModel):
7588
7588
  self._RequestId = params.get("RequestId")
7589
7589
 
7590
7590
 
7591
+ class DescribeReservedInstancesConfigInfosRequest(AbstractModel):
7592
+ """DescribeReservedInstancesConfigInfos请求参数结构体
7593
+
7594
+ """
7595
+
7596
+ def __init__(self):
7597
+ r"""
7598
+ :param _Filters: zone
7599
+ 按照预留实例计费可购买的可用区进行过滤。形如:ap-guangzhou-1。
7600
+ 类型:String
7601
+ 必选:否
7602
+ 可选项:各地域可用区列表
7603
+
7604
+ product-description
7605
+ 按照预留实例计费的平台描述(即操作系统)进行过滤。形如:linux。
7606
+ 类型:String
7607
+ 必选:否
7608
+ 可选项:linux
7609
+
7610
+ duration
7611
+ 按照预留实例计费有效期,即预留实例计费购买时长进行过滤。形如:31536000。
7612
+ 类型:Integer
7613
+ 计量单位:秒
7614
+ 必选:否
7615
+ 可选项:31536000 (1年)
7616
+ :type Filters: list of Filter
7617
+ """
7618
+ self._Filters = None
7619
+
7620
+ @property
7621
+ def Filters(self):
7622
+ """zone
7623
+ 按照预留实例计费可购买的可用区进行过滤。形如:ap-guangzhou-1。
7624
+ 类型:String
7625
+ 必选:否
7626
+ 可选项:各地域可用区列表
7627
+
7628
+ product-description
7629
+ 按照预留实例计费的平台描述(即操作系统)进行过滤。形如:linux。
7630
+ 类型:String
7631
+ 必选:否
7632
+ 可选项:linux
7633
+
7634
+ duration
7635
+ 按照预留实例计费有效期,即预留实例计费购买时长进行过滤。形如:31536000。
7636
+ 类型:Integer
7637
+ 计量单位:秒
7638
+ 必选:否
7639
+ 可选项:31536000 (1年)
7640
+ :rtype: list of Filter
7641
+ """
7642
+ return self._Filters
7643
+
7644
+ @Filters.setter
7645
+ def Filters(self, Filters):
7646
+ self._Filters = Filters
7647
+
7648
+
7649
+ def _deserialize(self, params):
7650
+ if params.get("Filters") is not None:
7651
+ self._Filters = []
7652
+ for item in params.get("Filters"):
7653
+ obj = Filter()
7654
+ obj._deserialize(item)
7655
+ self._Filters.append(obj)
7656
+ memeber_set = set(params.keys())
7657
+ for name, value in vars(self).items():
7658
+ property_name = name[1:]
7659
+ if property_name in memeber_set:
7660
+ memeber_set.remove(property_name)
7661
+ if len(memeber_set) > 0:
7662
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7663
+
7664
+
7665
+
7666
+ class DescribeReservedInstancesConfigInfosResponse(AbstractModel):
7667
+ """DescribeReservedInstancesConfigInfos返回参数结构体
7668
+
7669
+ """
7670
+
7671
+ def __init__(self):
7672
+ r"""
7673
+ :param _ReservedInstanceConfigInfos: 预留实例静态配置信息列表。
7674
+ :type ReservedInstanceConfigInfos: list of ReservedInstanceConfigInfoItem
7675
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7676
+ :type RequestId: str
7677
+ """
7678
+ self._ReservedInstanceConfigInfos = None
7679
+ self._RequestId = None
7680
+
7681
+ @property
7682
+ def ReservedInstanceConfigInfos(self):
7683
+ """预留实例静态配置信息列表。
7684
+ :rtype: list of ReservedInstanceConfigInfoItem
7685
+ """
7686
+ return self._ReservedInstanceConfigInfos
7687
+
7688
+ @ReservedInstanceConfigInfos.setter
7689
+ def ReservedInstanceConfigInfos(self, ReservedInstanceConfigInfos):
7690
+ self._ReservedInstanceConfigInfos = ReservedInstanceConfigInfos
7691
+
7692
+ @property
7693
+ def RequestId(self):
7694
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7695
+ :rtype: str
7696
+ """
7697
+ return self._RequestId
7698
+
7699
+ @RequestId.setter
7700
+ def RequestId(self, RequestId):
7701
+ self._RequestId = RequestId
7702
+
7703
+
7704
+ def _deserialize(self, params):
7705
+ if params.get("ReservedInstanceConfigInfos") is not None:
7706
+ self._ReservedInstanceConfigInfos = []
7707
+ for item in params.get("ReservedInstanceConfigInfos"):
7708
+ obj = ReservedInstanceConfigInfoItem()
7709
+ obj._deserialize(item)
7710
+ self._ReservedInstanceConfigInfos.append(obj)
7711
+ self._RequestId = params.get("RequestId")
7712
+
7713
+
7714
+ class DescribeReservedInstancesOfferingsRequest(AbstractModel):
7715
+ """DescribeReservedInstancesOfferings请求参数结构体
7716
+
7717
+ """
7718
+
7719
+ def __init__(self):
7720
+ r"""
7721
+ :param _DryRun: 试运行, 默认为 false。
7722
+ :type DryRun: bool
7723
+ :param _Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
7724
+ :type Offset: int
7725
+ :param _Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
7726
+ :type Limit: int
7727
+ :param _MaxDuration: 以最大有效期作为过滤参数。
7728
+ 计量单位: 秒
7729
+ 默认为 94608000。
7730
+ :type MaxDuration: int
7731
+ :param _MinDuration: 以最小有效期作为过滤参数。
7732
+ 计量单位: 秒
7733
+ 默认为 2592000。
7734
+ :type MinDuration: int
7735
+ :param _Filters: <li><strong>zone</strong></li>
7736
+ <p style="padding-left: 30px;">按照预留实例计费可购买的【<strong>可用区</strong>】进行过滤。形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p>
7737
+ <li><strong>duration</strong></li>
7738
+ <p style="padding-left: 30px;">按照预留实例计费【<strong>有效期</strong>】即预留实例计费购买时长进行过滤。形如:31536000。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">计量单位:秒</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:31536000 (1年) | 94608000(3年)</p>
7739
+ <li><strong>instance-type</strong></li>
7740
+ <p style="padding-left: 30px;">按照【<strong>预留实例计费类型</strong>】进行过滤。形如:S3.MEDIUM4。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/11518">预留实例计费类型列表</a></p>
7741
+ <li><strong>offering-type</strong></li>
7742
+ <p style="padding-left: 30px;">按照【<strong>付款类型</strong>】进行过滤。形如:All Upfront (预付全部费用)。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:All Upfront (预付全部费用)</p>
7743
+ <li><strong>product-description</strong></li>
7744
+ <p style="padding-left: 30px;">按照预留实例计费的【<strong>平台描述</strong>】(即操作系统)进行过滤。形如:linux。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:linux</p>
7745
+ <li><strong>reserved-instances-offering-id</strong></li>
7746
+ <p style="padding-left: 30px;">按照【<strong>预留实例计费配置ID</strong>】进行过滤。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
7747
+ 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
7748
+ :type Filters: list of Filter
7749
+ """
7750
+ self._DryRun = None
7751
+ self._Offset = None
7752
+ self._Limit = None
7753
+ self._MaxDuration = None
7754
+ self._MinDuration = None
7755
+ self._Filters = None
7756
+
7757
+ @property
7758
+ def DryRun(self):
7759
+ """试运行, 默认为 false。
7760
+ :rtype: bool
7761
+ """
7762
+ return self._DryRun
7763
+
7764
+ @DryRun.setter
7765
+ def DryRun(self, DryRun):
7766
+ self._DryRun = DryRun
7767
+
7768
+ @property
7769
+ def Offset(self):
7770
+ """偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
7771
+ :rtype: int
7772
+ """
7773
+ return self._Offset
7774
+
7775
+ @Offset.setter
7776
+ def Offset(self, Offset):
7777
+ self._Offset = Offset
7778
+
7779
+ @property
7780
+ def Limit(self):
7781
+ """返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
7782
+ :rtype: int
7783
+ """
7784
+ return self._Limit
7785
+
7786
+ @Limit.setter
7787
+ def Limit(self, Limit):
7788
+ self._Limit = Limit
7789
+
7790
+ @property
7791
+ def MaxDuration(self):
7792
+ """以最大有效期作为过滤参数。
7793
+ 计量单位: 秒
7794
+ 默认为 94608000。
7795
+ :rtype: int
7796
+ """
7797
+ return self._MaxDuration
7798
+
7799
+ @MaxDuration.setter
7800
+ def MaxDuration(self, MaxDuration):
7801
+ self._MaxDuration = MaxDuration
7802
+
7803
+ @property
7804
+ def MinDuration(self):
7805
+ """以最小有效期作为过滤参数。
7806
+ 计量单位: 秒
7807
+ 默认为 2592000。
7808
+ :rtype: int
7809
+ """
7810
+ return self._MinDuration
7811
+
7812
+ @MinDuration.setter
7813
+ def MinDuration(self, MinDuration):
7814
+ self._MinDuration = MinDuration
7815
+
7816
+ @property
7817
+ def Filters(self):
7818
+ """<li><strong>zone</strong></li>
7819
+ <p style="padding-left: 30px;">按照预留实例计费可购买的【<strong>可用区</strong>】进行过滤。形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p>
7820
+ <li><strong>duration</strong></li>
7821
+ <p style="padding-left: 30px;">按照预留实例计费【<strong>有效期</strong>】即预留实例计费购买时长进行过滤。形如:31536000。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">计量单位:秒</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:31536000 (1年) | 94608000(3年)</p>
7822
+ <li><strong>instance-type</strong></li>
7823
+ <p style="padding-left: 30px;">按照【<strong>预留实例计费类型</strong>】进行过滤。形如:S3.MEDIUM4。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/11518">预留实例计费类型列表</a></p>
7824
+ <li><strong>offering-type</strong></li>
7825
+ <p style="padding-left: 30px;">按照【<strong>付款类型</strong>】进行过滤。形如:All Upfront (预付全部费用)。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:All Upfront (预付全部费用)</p>
7826
+ <li><strong>product-description</strong></li>
7827
+ <p style="padding-left: 30px;">按照预留实例计费的【<strong>平台描述</strong>】(即操作系统)进行过滤。形如:linux。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:linux</p>
7828
+ <li><strong>reserved-instances-offering-id</strong></li>
7829
+ <p style="padding-left: 30px;">按照【<strong>预留实例计费配置ID</strong>】进行过滤。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
7830
+ 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
7831
+ :rtype: list of Filter
7832
+ """
7833
+ return self._Filters
7834
+
7835
+ @Filters.setter
7836
+ def Filters(self, Filters):
7837
+ self._Filters = Filters
7838
+
7839
+
7840
+ def _deserialize(self, params):
7841
+ self._DryRun = params.get("DryRun")
7842
+ self._Offset = params.get("Offset")
7843
+ self._Limit = params.get("Limit")
7844
+ self._MaxDuration = params.get("MaxDuration")
7845
+ self._MinDuration = params.get("MinDuration")
7846
+ if params.get("Filters") is not None:
7847
+ self._Filters = []
7848
+ for item in params.get("Filters"):
7849
+ obj = Filter()
7850
+ obj._deserialize(item)
7851
+ self._Filters.append(obj)
7852
+ memeber_set = set(params.keys())
7853
+ for name, value in vars(self).items():
7854
+ property_name = name[1:]
7855
+ if property_name in memeber_set:
7856
+ memeber_set.remove(property_name)
7857
+ if len(memeber_set) > 0:
7858
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7859
+
7860
+
7861
+
7862
+ class DescribeReservedInstancesOfferingsResponse(AbstractModel):
7863
+ """DescribeReservedInstancesOfferings返回参数结构体
7864
+
7865
+ """
7866
+
7867
+ def __init__(self):
7868
+ r"""
7869
+ :param _TotalCount: 符合条件的预留实例计费数量。
7870
+ :type TotalCount: int
7871
+ :param _ReservedInstancesOfferingsSet: 符合条件的预留实例计费列表。
7872
+ :type ReservedInstancesOfferingsSet: list of ReservedInstancesOffering
7873
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7874
+ :type RequestId: str
7875
+ """
7876
+ self._TotalCount = None
7877
+ self._ReservedInstancesOfferingsSet = None
7878
+ self._RequestId = None
7879
+
7880
+ @property
7881
+ def TotalCount(self):
7882
+ """符合条件的预留实例计费数量。
7883
+ :rtype: int
7884
+ """
7885
+ return self._TotalCount
7886
+
7887
+ @TotalCount.setter
7888
+ def TotalCount(self, TotalCount):
7889
+ self._TotalCount = TotalCount
7890
+
7891
+ @property
7892
+ def ReservedInstancesOfferingsSet(self):
7893
+ """符合条件的预留实例计费列表。
7894
+ :rtype: list of ReservedInstancesOffering
7895
+ """
7896
+ return self._ReservedInstancesOfferingsSet
7897
+
7898
+ @ReservedInstancesOfferingsSet.setter
7899
+ def ReservedInstancesOfferingsSet(self, ReservedInstancesOfferingsSet):
7900
+ self._ReservedInstancesOfferingsSet = ReservedInstancesOfferingsSet
7901
+
7902
+ @property
7903
+ def RequestId(self):
7904
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7905
+ :rtype: str
7906
+ """
7907
+ return self._RequestId
7908
+
7909
+ @RequestId.setter
7910
+ def RequestId(self, RequestId):
7911
+ self._RequestId = RequestId
7912
+
7913
+
7914
+ def _deserialize(self, params):
7915
+ self._TotalCount = params.get("TotalCount")
7916
+ if params.get("ReservedInstancesOfferingsSet") is not None:
7917
+ self._ReservedInstancesOfferingsSet = []
7918
+ for item in params.get("ReservedInstancesOfferingsSet"):
7919
+ obj = ReservedInstancesOffering()
7920
+ obj._deserialize(item)
7921
+ self._ReservedInstancesOfferingsSet.append(obj)
7922
+ self._RequestId = params.get("RequestId")
7923
+
7924
+
7591
7925
  class DescribeTaskInfoRequest(AbstractModel):
7592
7926
  """DescribeTaskInfo请求参数结构体
7593
7927
 
@@ -10787,58 +11121,199 @@ class ImportKeyPairResponse(AbstractModel):
10787
11121
  self._RequestId = params.get("RequestId")
10788
11122
 
10789
11123
 
10790
- class InquiryPriceModifyInstancesChargeTypeRequest(AbstractModel):
10791
- """InquiryPriceModifyInstancesChargeType请求参数结构体
11124
+ class InquirePricePurchaseReservedInstancesOfferingRequest(AbstractModel):
11125
+ """InquirePricePurchaseReservedInstancesOffering请求参数结构体
10792
11126
 
10793
11127
  """
10794
11128
 
10795
11129
  def __init__(self):
10796
11130
  r"""
10797
- :param _InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
10798
- :type InstanceIds: list of str
10799
- :param _InstanceChargeType: 修改后的实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月。</li><li>POSTPAID_BY_HOUR:后付费,即按量付费。</li>
10800
- :type InstanceChargeType: str
10801
- :param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。<dx-alert infotype="explain" title="">若指定修改后实例的付费模式为预付费则该参数必传。</dx-alert>
10802
- :type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
10803
- :param _ModifyPortableDataDisk: 是否同时切换弹性数据云盘计费模式。取值范围:<br><li>true:表示切换弹性数据云盘计费模式</li><li>false:表示不切换弹性数据云盘计费模式</li><br>默认取值:false。
10804
- :type ModifyPortableDataDisk: bool
11131
+ :param _InstanceCount: 购买预留实例计费数量
11132
+ :type InstanceCount: int
11133
+ :param _ReservedInstancesOfferingId: 预留实例计费配置ID
11134
+ :type ReservedInstancesOfferingId: str
11135
+ :param _DryRun: 试运行
11136
+ :type DryRun: bool
11137
+ :param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
11138
+ :type ClientToken: str
11139
+ :param _ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
11140
+ :type ReservedInstanceName: str
10805
11141
  """
10806
- self._InstanceIds = None
10807
- self._InstanceChargeType = None
10808
- self._InstanceChargePrepaid = None
10809
- self._ModifyPortableDataDisk = None
11142
+ self._InstanceCount = None
11143
+ self._ReservedInstancesOfferingId = None
11144
+ self._DryRun = None
11145
+ self._ClientToken = None
11146
+ self._ReservedInstanceName = None
10810
11147
 
10811
11148
  @property
10812
- def InstanceIds(self):
10813
- """一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
10814
- :rtype: list of str
11149
+ def InstanceCount(self):
11150
+ """购买预留实例计费数量
11151
+ :rtype: int
10815
11152
  """
10816
- return self._InstanceIds
11153
+ return self._InstanceCount
10817
11154
 
10818
- @InstanceIds.setter
10819
- def InstanceIds(self, InstanceIds):
10820
- self._InstanceIds = InstanceIds
11155
+ @InstanceCount.setter
11156
+ def InstanceCount(self, InstanceCount):
11157
+ self._InstanceCount = InstanceCount
10821
11158
 
10822
11159
  @property
10823
- def InstanceChargeType(self):
10824
- """修改后的实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月。</li><li>POSTPAID_BY_HOUR:后付费,即按量付费。</li>
11160
+ def ReservedInstancesOfferingId(self):
11161
+ """预留实例计费配置ID
10825
11162
  :rtype: str
10826
11163
  """
10827
- return self._InstanceChargeType
11164
+ return self._ReservedInstancesOfferingId
10828
11165
 
10829
- @InstanceChargeType.setter
10830
- def InstanceChargeType(self, InstanceChargeType):
10831
- self._InstanceChargeType = InstanceChargeType
11166
+ @ReservedInstancesOfferingId.setter
11167
+ def ReservedInstancesOfferingId(self, ReservedInstancesOfferingId):
11168
+ self._ReservedInstancesOfferingId = ReservedInstancesOfferingId
10832
11169
 
10833
11170
  @property
10834
- def InstanceChargePrepaid(self):
10835
- """预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。<dx-alert infotype="explain" title="">若指定修改后实例的付费模式为预付费则该参数必传。</dx-alert>
10836
- :rtype: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
11171
+ def DryRun(self):
11172
+ """试运行
11173
+ :rtype: bool
10837
11174
  """
10838
- return self._InstanceChargePrepaid
11175
+ return self._DryRun
10839
11176
 
10840
- @InstanceChargePrepaid.setter
10841
- def InstanceChargePrepaid(self, InstanceChargePrepaid):
11177
+ @DryRun.setter
11178
+ def DryRun(self, DryRun):
11179
+ self._DryRun = DryRun
11180
+
11181
+ @property
11182
+ def ClientToken(self):
11183
+ """用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
11184
+ :rtype: str
11185
+ """
11186
+ return self._ClientToken
11187
+
11188
+ @ClientToken.setter
11189
+ def ClientToken(self, ClientToken):
11190
+ self._ClientToken = ClientToken
11191
+
11192
+ @property
11193
+ def ReservedInstanceName(self):
11194
+ """预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
11195
+ :rtype: str
11196
+ """
11197
+ return self._ReservedInstanceName
11198
+
11199
+ @ReservedInstanceName.setter
11200
+ def ReservedInstanceName(self, ReservedInstanceName):
11201
+ self._ReservedInstanceName = ReservedInstanceName
11202
+
11203
+
11204
+ def _deserialize(self, params):
11205
+ self._InstanceCount = params.get("InstanceCount")
11206
+ self._ReservedInstancesOfferingId = params.get("ReservedInstancesOfferingId")
11207
+ self._DryRun = params.get("DryRun")
11208
+ self._ClientToken = params.get("ClientToken")
11209
+ self._ReservedInstanceName = params.get("ReservedInstanceName")
11210
+ memeber_set = set(params.keys())
11211
+ for name, value in vars(self).items():
11212
+ property_name = name[1:]
11213
+ if property_name in memeber_set:
11214
+ memeber_set.remove(property_name)
11215
+ if len(memeber_set) > 0:
11216
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11217
+
11218
+
11219
+
11220
+ class InquirePricePurchaseReservedInstancesOfferingResponse(AbstractModel):
11221
+ """InquirePricePurchaseReservedInstancesOffering返回参数结构体
11222
+
11223
+ """
11224
+
11225
+ def __init__(self):
11226
+ r"""
11227
+ :param _Price: 该参数表示对应配置预留实例的价格。
11228
+ :type Price: :class:`tencentcloud.cvm.v20170312.models.ReservedInstancePrice`
11229
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11230
+ :type RequestId: str
11231
+ """
11232
+ self._Price = None
11233
+ self._RequestId = None
11234
+
11235
+ @property
11236
+ def Price(self):
11237
+ """该参数表示对应配置预留实例的价格。
11238
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.ReservedInstancePrice`
11239
+ """
11240
+ return self._Price
11241
+
11242
+ @Price.setter
11243
+ def Price(self, Price):
11244
+ self._Price = Price
11245
+
11246
+ @property
11247
+ def RequestId(self):
11248
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11249
+ :rtype: str
11250
+ """
11251
+ return self._RequestId
11252
+
11253
+ @RequestId.setter
11254
+ def RequestId(self, RequestId):
11255
+ self._RequestId = RequestId
11256
+
11257
+
11258
+ def _deserialize(self, params):
11259
+ if params.get("Price") is not None:
11260
+ self._Price = ReservedInstancePrice()
11261
+ self._Price._deserialize(params.get("Price"))
11262
+ self._RequestId = params.get("RequestId")
11263
+
11264
+
11265
+ class InquiryPriceModifyInstancesChargeTypeRequest(AbstractModel):
11266
+ """InquiryPriceModifyInstancesChargeType请求参数结构体
11267
+
11268
+ """
11269
+
11270
+ def __init__(self):
11271
+ r"""
11272
+ :param _InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
11273
+ :type InstanceIds: list of str
11274
+ :param _InstanceChargeType: 修改后的实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月。</li><li>POSTPAID_BY_HOUR:后付费,即按量付费。</li>
11275
+ :type InstanceChargeType: str
11276
+ :param _InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。<dx-alert infotype="explain" title="">若指定修改后实例的付费模式为预付费则该参数必传。</dx-alert>
11277
+ :type InstanceChargePrepaid: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
11278
+ :param _ModifyPortableDataDisk: 是否同时切换弹性数据云盘计费模式。取值范围:<br><li>true:表示切换弹性数据云盘计费模式</li><li>false:表示不切换弹性数据云盘计费模式</li><br>默认取值:false。
11279
+ :type ModifyPortableDataDisk: bool
11280
+ """
11281
+ self._InstanceIds = None
11282
+ self._InstanceChargeType = None
11283
+ self._InstanceChargePrepaid = None
11284
+ self._ModifyPortableDataDisk = None
11285
+
11286
+ @property
11287
+ def InstanceIds(self):
11288
+ """一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
11289
+ :rtype: list of str
11290
+ """
11291
+ return self._InstanceIds
11292
+
11293
+ @InstanceIds.setter
11294
+ def InstanceIds(self, InstanceIds):
11295
+ self._InstanceIds = InstanceIds
11296
+
11297
+ @property
11298
+ def InstanceChargeType(self):
11299
+ """修改后的实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月。</li><li>POSTPAID_BY_HOUR:后付费,即按量付费。</li>
11300
+ :rtype: str
11301
+ """
11302
+ return self._InstanceChargeType
11303
+
11304
+ @InstanceChargeType.setter
11305
+ def InstanceChargeType(self, InstanceChargeType):
11306
+ self._InstanceChargeType = InstanceChargeType
11307
+
11308
+ @property
11309
+ def InstanceChargePrepaid(self):
11310
+ """预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。<dx-alert infotype="explain" title="">若指定修改后实例的付费模式为预付费则该参数必传。</dx-alert>
11311
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.InstanceChargePrepaid`
11312
+ """
11313
+ return self._InstanceChargePrepaid
11314
+
11315
+ @InstanceChargePrepaid.setter
11316
+ def InstanceChargePrepaid(self, InstanceChargePrepaid):
10842
11317
  self._InstanceChargePrepaid = InstanceChargePrepaid
10843
11318
 
10844
11319
  @property
@@ -14984,7 +15459,6 @@ class LaunchTemplateVersionInfo(AbstractModel):
14984
15459
  def __init__(self):
14985
15460
  r"""
14986
15461
  :param _LaunchTemplateVersion: 实例启动模板版本号。
14987
- 注意:此字段可能返回 null,表示取不到有效值。
14988
15462
  :type LaunchTemplateVersion: int
14989
15463
  :param _LaunchTemplateVersionData: 实例启动模板版本数据详情。
14990
15464
  :type LaunchTemplateVersionData: :class:`tencentcloud.cvm.v20170312.models.LaunchTemplateVersionData`
@@ -14995,7 +15469,6 @@ class LaunchTemplateVersionInfo(AbstractModel):
14995
15469
  :param _IsDefaultVersion: 是否为默认启动模板版本。
14996
15470
  :type IsDefaultVersion: bool
14997
15471
  :param _LaunchTemplateVersionDescription: 实例启动模板版本描述信息。
14998
- 注意:此字段可能返回 null,表示取不到有效值。
14999
15472
  :type LaunchTemplateVersionDescription: str
15000
15473
  :param _CreatedBy: 创建者。
15001
15474
  :type CreatedBy: str
@@ -15011,7 +15484,6 @@ class LaunchTemplateVersionInfo(AbstractModel):
15011
15484
  @property
15012
15485
  def LaunchTemplateVersion(self):
15013
15486
  """实例启动模板版本号。
15014
- 注意:此字段可能返回 null,表示取不到有效值。
15015
15487
  :rtype: int
15016
15488
  """
15017
15489
  return self._LaunchTemplateVersion
@@ -15067,7 +15539,6 @@ class LaunchTemplateVersionInfo(AbstractModel):
15067
15539
  @property
15068
15540
  def LaunchTemplateVersionDescription(self):
15069
15541
  """实例启动模板版本描述信息。
15070
- 注意:此字段可能返回 null,表示取不到有效值。
15071
15542
  :rtype: str
15072
15543
  """
15073
15544
  return self._LaunchTemplateVersionDescription
@@ -17424,6 +17895,145 @@ class ProgramFpgaImageResponse(AbstractModel):
17424
17895
  self._RequestId = params.get("RequestId")
17425
17896
 
17426
17897
 
17898
+ class PurchaseReservedInstancesOfferingRequest(AbstractModel):
17899
+ """PurchaseReservedInstancesOffering请求参数结构体
17900
+
17901
+ """
17902
+
17903
+ def __init__(self):
17904
+ r"""
17905
+ :param _InstanceCount: 购买预留实例计费数量
17906
+ :type InstanceCount: int
17907
+ :param _ReservedInstancesOfferingId: 预留实例计费配置ID
17908
+ :type ReservedInstancesOfferingId: str
17909
+ :param _DryRun: 试运行
17910
+ :type DryRun: bool
17911
+ :param _ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
17912
+ :type ClientToken: str
17913
+ :param _ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
17914
+ :type ReservedInstanceName: str
17915
+ """
17916
+ self._InstanceCount = None
17917
+ self._ReservedInstancesOfferingId = None
17918
+ self._DryRun = None
17919
+ self._ClientToken = None
17920
+ self._ReservedInstanceName = None
17921
+
17922
+ @property
17923
+ def InstanceCount(self):
17924
+ """购买预留实例计费数量
17925
+ :rtype: int
17926
+ """
17927
+ return self._InstanceCount
17928
+
17929
+ @InstanceCount.setter
17930
+ def InstanceCount(self, InstanceCount):
17931
+ self._InstanceCount = InstanceCount
17932
+
17933
+ @property
17934
+ def ReservedInstancesOfferingId(self):
17935
+ """预留实例计费配置ID
17936
+ :rtype: str
17937
+ """
17938
+ return self._ReservedInstancesOfferingId
17939
+
17940
+ @ReservedInstancesOfferingId.setter
17941
+ def ReservedInstancesOfferingId(self, ReservedInstancesOfferingId):
17942
+ self._ReservedInstancesOfferingId = ReservedInstancesOfferingId
17943
+
17944
+ @property
17945
+ def DryRun(self):
17946
+ """试运行
17947
+ :rtype: bool
17948
+ """
17949
+ return self._DryRun
17950
+
17951
+ @DryRun.setter
17952
+ def DryRun(self, DryRun):
17953
+ self._DryRun = DryRun
17954
+
17955
+ @property
17956
+ def ClientToken(self):
17957
+ """用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
17958
+ :rtype: str
17959
+ """
17960
+ return self._ClientToken
17961
+
17962
+ @ClientToken.setter
17963
+ def ClientToken(self, ClientToken):
17964
+ self._ClientToken = ClientToken
17965
+
17966
+ @property
17967
+ def ReservedInstanceName(self):
17968
+ """预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
17969
+ :rtype: str
17970
+ """
17971
+ return self._ReservedInstanceName
17972
+
17973
+ @ReservedInstanceName.setter
17974
+ def ReservedInstanceName(self, ReservedInstanceName):
17975
+ self._ReservedInstanceName = ReservedInstanceName
17976
+
17977
+
17978
+ def _deserialize(self, params):
17979
+ self._InstanceCount = params.get("InstanceCount")
17980
+ self._ReservedInstancesOfferingId = params.get("ReservedInstancesOfferingId")
17981
+ self._DryRun = params.get("DryRun")
17982
+ self._ClientToken = params.get("ClientToken")
17983
+ self._ReservedInstanceName = params.get("ReservedInstanceName")
17984
+ memeber_set = set(params.keys())
17985
+ for name, value in vars(self).items():
17986
+ property_name = name[1:]
17987
+ if property_name in memeber_set:
17988
+ memeber_set.remove(property_name)
17989
+ if len(memeber_set) > 0:
17990
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17991
+
17992
+
17993
+
17994
+ class PurchaseReservedInstancesOfferingResponse(AbstractModel):
17995
+ """PurchaseReservedInstancesOffering返回参数结构体
17996
+
17997
+ """
17998
+
17999
+ def __init__(self):
18000
+ r"""
18001
+ :param _ReservedInstanceId: 已购买预留实例计费ID
18002
+ :type ReservedInstanceId: str
18003
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18004
+ :type RequestId: str
18005
+ """
18006
+ self._ReservedInstanceId = None
18007
+ self._RequestId = None
18008
+
18009
+ @property
18010
+ def ReservedInstanceId(self):
18011
+ """已购买预留实例计费ID
18012
+ :rtype: str
18013
+ """
18014
+ return self._ReservedInstanceId
18015
+
18016
+ @ReservedInstanceId.setter
18017
+ def ReservedInstanceId(self, ReservedInstanceId):
18018
+ self._ReservedInstanceId = ReservedInstanceId
18019
+
18020
+ @property
18021
+ def RequestId(self):
18022
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18023
+ :rtype: str
18024
+ """
18025
+ return self._RequestId
18026
+
18027
+ @RequestId.setter
18028
+ def RequestId(self, RequestId):
18029
+ self._RequestId = RequestId
18030
+
18031
+
18032
+ def _deserialize(self, params):
18033
+ self._ReservedInstanceId = params.get("ReservedInstanceId")
18034
+ self._RequestId = params.get("RequestId")
18035
+
18036
+
17427
18037
  class RebootInstancesRequest(AbstractModel):
17428
18038
  """RebootInstances请求参数结构体
17429
18039
 
@@ -18546,6 +19156,846 @@ class RepairTaskInfo(AbstractModel):
18546
19156
 
18547
19157
 
18548
19158
 
19159
+ class ReservedInstanceConfigInfoItem(AbstractModel):
19160
+ """预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
19161
+
19162
+ """
19163
+
19164
+ def __init__(self):
19165
+ r"""
19166
+ :param _Type: 实例规格。
19167
+ :type Type: str
19168
+ :param _TypeName: 实例规格名称。
19169
+ :type TypeName: str
19170
+ :param _Order: 优先级。
19171
+ :type Order: int
19172
+ :param _InstanceFamilies: 实例族信息列表。
19173
+ :type InstanceFamilies: list of ReservedInstanceFamilyItem
19174
+ """
19175
+ self._Type = None
19176
+ self._TypeName = None
19177
+ self._Order = None
19178
+ self._InstanceFamilies = None
19179
+
19180
+ @property
19181
+ def Type(self):
19182
+ """实例规格。
19183
+ :rtype: str
19184
+ """
19185
+ return self._Type
19186
+
19187
+ @Type.setter
19188
+ def Type(self, Type):
19189
+ self._Type = Type
19190
+
19191
+ @property
19192
+ def TypeName(self):
19193
+ """实例规格名称。
19194
+ :rtype: str
19195
+ """
19196
+ return self._TypeName
19197
+
19198
+ @TypeName.setter
19199
+ def TypeName(self, TypeName):
19200
+ self._TypeName = TypeName
19201
+
19202
+ @property
19203
+ def Order(self):
19204
+ """优先级。
19205
+ :rtype: int
19206
+ """
19207
+ return self._Order
19208
+
19209
+ @Order.setter
19210
+ def Order(self, Order):
19211
+ self._Order = Order
19212
+
19213
+ @property
19214
+ def InstanceFamilies(self):
19215
+ """实例族信息列表。
19216
+ :rtype: list of ReservedInstanceFamilyItem
19217
+ """
19218
+ return self._InstanceFamilies
19219
+
19220
+ @InstanceFamilies.setter
19221
+ def InstanceFamilies(self, InstanceFamilies):
19222
+ self._InstanceFamilies = InstanceFamilies
19223
+
19224
+
19225
+ def _deserialize(self, params):
19226
+ self._Type = params.get("Type")
19227
+ self._TypeName = params.get("TypeName")
19228
+ self._Order = params.get("Order")
19229
+ if params.get("InstanceFamilies") is not None:
19230
+ self._InstanceFamilies = []
19231
+ for item in params.get("InstanceFamilies"):
19232
+ obj = ReservedInstanceFamilyItem()
19233
+ obj._deserialize(item)
19234
+ self._InstanceFamilies.append(obj)
19235
+ memeber_set = set(params.keys())
19236
+ for name, value in vars(self).items():
19237
+ property_name = name[1:]
19238
+ if property_name in memeber_set:
19239
+ memeber_set.remove(property_name)
19240
+ if len(memeber_set) > 0:
19241
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19242
+
19243
+
19244
+
19245
+ class ReservedInstanceFamilyItem(AbstractModel):
19246
+ """预留实例相关实例族信息。预留实例当前只针对国际站白名单用户开放。
19247
+
19248
+ """
19249
+
19250
+ def __init__(self):
19251
+ r"""
19252
+ :param _InstanceFamily: 实例族。
19253
+ :type InstanceFamily: str
19254
+ :param _Order: 优先级。
19255
+ :type Order: int
19256
+ :param _InstanceTypes: 实例类型信息列表。
19257
+ :type InstanceTypes: list of ReservedInstanceTypeItem
19258
+ """
19259
+ self._InstanceFamily = None
19260
+ self._Order = None
19261
+ self._InstanceTypes = None
19262
+
19263
+ @property
19264
+ def InstanceFamily(self):
19265
+ """实例族。
19266
+ :rtype: str
19267
+ """
19268
+ return self._InstanceFamily
19269
+
19270
+ @InstanceFamily.setter
19271
+ def InstanceFamily(self, InstanceFamily):
19272
+ self._InstanceFamily = InstanceFamily
19273
+
19274
+ @property
19275
+ def Order(self):
19276
+ """优先级。
19277
+ :rtype: int
19278
+ """
19279
+ return self._Order
19280
+
19281
+ @Order.setter
19282
+ def Order(self, Order):
19283
+ self._Order = Order
19284
+
19285
+ @property
19286
+ def InstanceTypes(self):
19287
+ """实例类型信息列表。
19288
+ :rtype: list of ReservedInstanceTypeItem
19289
+ """
19290
+ return self._InstanceTypes
19291
+
19292
+ @InstanceTypes.setter
19293
+ def InstanceTypes(self, InstanceTypes):
19294
+ self._InstanceTypes = InstanceTypes
19295
+
19296
+
19297
+ def _deserialize(self, params):
19298
+ self._InstanceFamily = params.get("InstanceFamily")
19299
+ self._Order = params.get("Order")
19300
+ if params.get("InstanceTypes") is not None:
19301
+ self._InstanceTypes = []
19302
+ for item in params.get("InstanceTypes"):
19303
+ obj = ReservedInstanceTypeItem()
19304
+ obj._deserialize(item)
19305
+ self._InstanceTypes.append(obj)
19306
+ memeber_set = set(params.keys())
19307
+ for name, value in vars(self).items():
19308
+ property_name = name[1:]
19309
+ if property_name in memeber_set:
19310
+ memeber_set.remove(property_name)
19311
+ if len(memeber_set) > 0:
19312
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19313
+
19314
+
19315
+
19316
+ class ReservedInstancePrice(AbstractModel):
19317
+ """预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
19318
+
19319
+ """
19320
+
19321
+ def __init__(self):
19322
+ r"""
19323
+ :param _OriginalFixedPrice: 预支合计费用的原价,单位:元。
19324
+ :type OriginalFixedPrice: float
19325
+ :param _DiscountFixedPrice: 预支合计费用的折扣价,单位:元。
19326
+ :type DiscountFixedPrice: float
19327
+ :param _OriginalUsagePrice: 后续合计费用的原价,单位:元/小时
19328
+ :type OriginalUsagePrice: float
19329
+ :param _DiscountUsagePrice: 后续合计费用的折扣价,单位:元/小时
19330
+ :type DiscountUsagePrice: float
19331
+ :param _FixedPriceDiscount: 预支费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
19332
+ :type FixedPriceDiscount: float
19333
+ :param _UsagePriceDiscount: 后续费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
19334
+ :type UsagePriceDiscount: float
19335
+ """
19336
+ self._OriginalFixedPrice = None
19337
+ self._DiscountFixedPrice = None
19338
+ self._OriginalUsagePrice = None
19339
+ self._DiscountUsagePrice = None
19340
+ self._FixedPriceDiscount = None
19341
+ self._UsagePriceDiscount = None
19342
+
19343
+ @property
19344
+ def OriginalFixedPrice(self):
19345
+ """预支合计费用的原价,单位:元。
19346
+ :rtype: float
19347
+ """
19348
+ return self._OriginalFixedPrice
19349
+
19350
+ @OriginalFixedPrice.setter
19351
+ def OriginalFixedPrice(self, OriginalFixedPrice):
19352
+ self._OriginalFixedPrice = OriginalFixedPrice
19353
+
19354
+ @property
19355
+ def DiscountFixedPrice(self):
19356
+ """预支合计费用的折扣价,单位:元。
19357
+ :rtype: float
19358
+ """
19359
+ return self._DiscountFixedPrice
19360
+
19361
+ @DiscountFixedPrice.setter
19362
+ def DiscountFixedPrice(self, DiscountFixedPrice):
19363
+ self._DiscountFixedPrice = DiscountFixedPrice
19364
+
19365
+ @property
19366
+ def OriginalUsagePrice(self):
19367
+ """后续合计费用的原价,单位:元/小时
19368
+ :rtype: float
19369
+ """
19370
+ return self._OriginalUsagePrice
19371
+
19372
+ @OriginalUsagePrice.setter
19373
+ def OriginalUsagePrice(self, OriginalUsagePrice):
19374
+ self._OriginalUsagePrice = OriginalUsagePrice
19375
+
19376
+ @property
19377
+ def DiscountUsagePrice(self):
19378
+ """后续合计费用的折扣价,单位:元/小时
19379
+ :rtype: float
19380
+ """
19381
+ return self._DiscountUsagePrice
19382
+
19383
+ @DiscountUsagePrice.setter
19384
+ def DiscountUsagePrice(self, DiscountUsagePrice):
19385
+ self._DiscountUsagePrice = DiscountUsagePrice
19386
+
19387
+ @property
19388
+ def FixedPriceDiscount(self):
19389
+ """预支费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
19390
+ :rtype: float
19391
+ """
19392
+ return self._FixedPriceDiscount
19393
+
19394
+ @FixedPriceDiscount.setter
19395
+ def FixedPriceDiscount(self, FixedPriceDiscount):
19396
+ self._FixedPriceDiscount = FixedPriceDiscount
19397
+
19398
+ @property
19399
+ def UsagePriceDiscount(self):
19400
+ """后续费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
19401
+ :rtype: float
19402
+ """
19403
+ return self._UsagePriceDiscount
19404
+
19405
+ @UsagePriceDiscount.setter
19406
+ def UsagePriceDiscount(self, UsagePriceDiscount):
19407
+ self._UsagePriceDiscount = UsagePriceDiscount
19408
+
19409
+
19410
+ def _deserialize(self, params):
19411
+ self._OriginalFixedPrice = params.get("OriginalFixedPrice")
19412
+ self._DiscountFixedPrice = params.get("DiscountFixedPrice")
19413
+ self._OriginalUsagePrice = params.get("OriginalUsagePrice")
19414
+ self._DiscountUsagePrice = params.get("DiscountUsagePrice")
19415
+ self._FixedPriceDiscount = params.get("FixedPriceDiscount")
19416
+ self._UsagePriceDiscount = params.get("UsagePriceDiscount")
19417
+ memeber_set = set(params.keys())
19418
+ for name, value in vars(self).items():
19419
+ property_name = name[1:]
19420
+ if property_name in memeber_set:
19421
+ memeber_set.remove(property_name)
19422
+ if len(memeber_set) > 0:
19423
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19424
+
19425
+
19426
+
19427
+ class ReservedInstancePriceItem(AbstractModel):
19428
+ """基于付费类型的预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
19429
+
19430
+ """
19431
+
19432
+ def __init__(self):
19433
+ r"""
19434
+ :param _OfferingType: 付费类型,如:"All Upfront","Partial Upfront","No Upfront"
19435
+ :type OfferingType: str
19436
+ :param _FixedPrice: 预支合计费用,单位:元。
19437
+ :type FixedPrice: float
19438
+ :param _UsagePrice: 后续合计费用,单位:元/小时
19439
+ :type UsagePrice: float
19440
+ :param _ReservedInstancesOfferingId: 预留实例配置ID
19441
+ :type ReservedInstancesOfferingId: str
19442
+ :param _Zone: 预留实例计费可购买的可用区。
19443
+ :type Zone: str
19444
+ :param _Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
19445
+ 计量单位:秒
19446
+ :type Duration: int
19447
+ :param _ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:Linux。
19448
+ 返回项: Linux 。
19449
+ :type ProductDescription: str
19450
+ :param _DiscountUsagePrice: 预支合计费用,单位:元。
19451
+ :type DiscountUsagePrice: float
19452
+ :param _DiscountFixedPrice: 后续合计费用的折扣价,单位:元/小时
19453
+ :type DiscountFixedPrice: float
19454
+ """
19455
+ self._OfferingType = None
19456
+ self._FixedPrice = None
19457
+ self._UsagePrice = None
19458
+ self._ReservedInstancesOfferingId = None
19459
+ self._Zone = None
19460
+ self._Duration = None
19461
+ self._ProductDescription = None
19462
+ self._DiscountUsagePrice = None
19463
+ self._DiscountFixedPrice = None
19464
+
19465
+ @property
19466
+ def OfferingType(self):
19467
+ """付费类型,如:"All Upfront","Partial Upfront","No Upfront"
19468
+ :rtype: str
19469
+ """
19470
+ return self._OfferingType
19471
+
19472
+ @OfferingType.setter
19473
+ def OfferingType(self, OfferingType):
19474
+ self._OfferingType = OfferingType
19475
+
19476
+ @property
19477
+ def FixedPrice(self):
19478
+ """预支合计费用,单位:元。
19479
+ :rtype: float
19480
+ """
19481
+ return self._FixedPrice
19482
+
19483
+ @FixedPrice.setter
19484
+ def FixedPrice(self, FixedPrice):
19485
+ self._FixedPrice = FixedPrice
19486
+
19487
+ @property
19488
+ def UsagePrice(self):
19489
+ """后续合计费用,单位:元/小时
19490
+ :rtype: float
19491
+ """
19492
+ return self._UsagePrice
19493
+
19494
+ @UsagePrice.setter
19495
+ def UsagePrice(self, UsagePrice):
19496
+ self._UsagePrice = UsagePrice
19497
+
19498
+ @property
19499
+ def ReservedInstancesOfferingId(self):
19500
+ """预留实例配置ID
19501
+ :rtype: str
19502
+ """
19503
+ return self._ReservedInstancesOfferingId
19504
+
19505
+ @ReservedInstancesOfferingId.setter
19506
+ def ReservedInstancesOfferingId(self, ReservedInstancesOfferingId):
19507
+ self._ReservedInstancesOfferingId = ReservedInstancesOfferingId
19508
+
19509
+ @property
19510
+ def Zone(self):
19511
+ """预留实例计费可购买的可用区。
19512
+ :rtype: str
19513
+ """
19514
+ return self._Zone
19515
+
19516
+ @Zone.setter
19517
+ def Zone(self, Zone):
19518
+ self._Zone = Zone
19519
+
19520
+ @property
19521
+ def Duration(self):
19522
+ """预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
19523
+ 计量单位:秒
19524
+ :rtype: int
19525
+ """
19526
+ return self._Duration
19527
+
19528
+ @Duration.setter
19529
+ def Duration(self, Duration):
19530
+ self._Duration = Duration
19531
+
19532
+ @property
19533
+ def ProductDescription(self):
19534
+ """预留实例计费的平台描述(即操作系统)。形如:Linux。
19535
+ 返回项: Linux 。
19536
+ :rtype: str
19537
+ """
19538
+ return self._ProductDescription
19539
+
19540
+ @ProductDescription.setter
19541
+ def ProductDescription(self, ProductDescription):
19542
+ self._ProductDescription = ProductDescription
19543
+
19544
+ @property
19545
+ def DiscountUsagePrice(self):
19546
+ """预支合计费用,单位:元。
19547
+ :rtype: float
19548
+ """
19549
+ return self._DiscountUsagePrice
19550
+
19551
+ @DiscountUsagePrice.setter
19552
+ def DiscountUsagePrice(self, DiscountUsagePrice):
19553
+ self._DiscountUsagePrice = DiscountUsagePrice
19554
+
19555
+ @property
19556
+ def DiscountFixedPrice(self):
19557
+ """后续合计费用的折扣价,单位:元/小时
19558
+ :rtype: float
19559
+ """
19560
+ return self._DiscountFixedPrice
19561
+
19562
+ @DiscountFixedPrice.setter
19563
+ def DiscountFixedPrice(self, DiscountFixedPrice):
19564
+ self._DiscountFixedPrice = DiscountFixedPrice
19565
+
19566
+
19567
+ def _deserialize(self, params):
19568
+ self._OfferingType = params.get("OfferingType")
19569
+ self._FixedPrice = params.get("FixedPrice")
19570
+ self._UsagePrice = params.get("UsagePrice")
19571
+ self._ReservedInstancesOfferingId = params.get("ReservedInstancesOfferingId")
19572
+ self._Zone = params.get("Zone")
19573
+ self._Duration = params.get("Duration")
19574
+ self._ProductDescription = params.get("ProductDescription")
19575
+ self._DiscountUsagePrice = params.get("DiscountUsagePrice")
19576
+ self._DiscountFixedPrice = params.get("DiscountFixedPrice")
19577
+ memeber_set = set(params.keys())
19578
+ for name, value in vars(self).items():
19579
+ property_name = name[1:]
19580
+ if property_name in memeber_set:
19581
+ memeber_set.remove(property_name)
19582
+ if len(memeber_set) > 0:
19583
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19584
+
19585
+
19586
+
19587
+ class ReservedInstanceTypeItem(AbstractModel):
19588
+ """预留实例类型信息。预留实例当前只针对国际站白名单用户开放。
19589
+
19590
+ """
19591
+
19592
+ def __init__(self):
19593
+ r"""
19594
+ :param _InstanceType: 实例类型。
19595
+ :type InstanceType: str
19596
+ :param _Cpu: CPU核数。
19597
+ :type Cpu: int
19598
+ :param _Memory: 内存大小。
19599
+ :type Memory: int
19600
+ :param _Gpu: GPU数量。
19601
+ :type Gpu: int
19602
+ :param _Fpga: FPGA数量。
19603
+ :type Fpga: int
19604
+ :param _StorageBlock: 本地存储块数量。
19605
+ :type StorageBlock: int
19606
+ :param _NetworkCard: 网卡数。
19607
+ :type NetworkCard: int
19608
+ :param _MaxBandwidth: 最大带宽。
19609
+ :type MaxBandwidth: float
19610
+ :param _Frequency: 主频。
19611
+ :type Frequency: str
19612
+ :param _CpuModelName: CPU型号名称。
19613
+ :type CpuModelName: str
19614
+ :param _Pps: 包转发率。
19615
+ :type Pps: int
19616
+ :param _Externals: 外部信息。
19617
+ :type Externals: :class:`tencentcloud.cvm.v20170312.models.Externals`
19618
+ :param _Remark: 备注信息。
19619
+ :type Remark: str
19620
+ :param _Prices: 预留实例配置价格信息。
19621
+ :type Prices: list of ReservedInstancePriceItem
19622
+ """
19623
+ self._InstanceType = None
19624
+ self._Cpu = None
19625
+ self._Memory = None
19626
+ self._Gpu = None
19627
+ self._Fpga = None
19628
+ self._StorageBlock = None
19629
+ self._NetworkCard = None
19630
+ self._MaxBandwidth = None
19631
+ self._Frequency = None
19632
+ self._CpuModelName = None
19633
+ self._Pps = None
19634
+ self._Externals = None
19635
+ self._Remark = None
19636
+ self._Prices = None
19637
+
19638
+ @property
19639
+ def InstanceType(self):
19640
+ """实例类型。
19641
+ :rtype: str
19642
+ """
19643
+ return self._InstanceType
19644
+
19645
+ @InstanceType.setter
19646
+ def InstanceType(self, InstanceType):
19647
+ self._InstanceType = InstanceType
19648
+
19649
+ @property
19650
+ def Cpu(self):
19651
+ """CPU核数。
19652
+ :rtype: int
19653
+ """
19654
+ return self._Cpu
19655
+
19656
+ @Cpu.setter
19657
+ def Cpu(self, Cpu):
19658
+ self._Cpu = Cpu
19659
+
19660
+ @property
19661
+ def Memory(self):
19662
+ """内存大小。
19663
+ :rtype: int
19664
+ """
19665
+ return self._Memory
19666
+
19667
+ @Memory.setter
19668
+ def Memory(self, Memory):
19669
+ self._Memory = Memory
19670
+
19671
+ @property
19672
+ def Gpu(self):
19673
+ """GPU数量。
19674
+ :rtype: int
19675
+ """
19676
+ return self._Gpu
19677
+
19678
+ @Gpu.setter
19679
+ def Gpu(self, Gpu):
19680
+ self._Gpu = Gpu
19681
+
19682
+ @property
19683
+ def Fpga(self):
19684
+ """FPGA数量。
19685
+ :rtype: int
19686
+ """
19687
+ return self._Fpga
19688
+
19689
+ @Fpga.setter
19690
+ def Fpga(self, Fpga):
19691
+ self._Fpga = Fpga
19692
+
19693
+ @property
19694
+ def StorageBlock(self):
19695
+ """本地存储块数量。
19696
+ :rtype: int
19697
+ """
19698
+ return self._StorageBlock
19699
+
19700
+ @StorageBlock.setter
19701
+ def StorageBlock(self, StorageBlock):
19702
+ self._StorageBlock = StorageBlock
19703
+
19704
+ @property
19705
+ def NetworkCard(self):
19706
+ """网卡数。
19707
+ :rtype: int
19708
+ """
19709
+ return self._NetworkCard
19710
+
19711
+ @NetworkCard.setter
19712
+ def NetworkCard(self, NetworkCard):
19713
+ self._NetworkCard = NetworkCard
19714
+
19715
+ @property
19716
+ def MaxBandwidth(self):
19717
+ """最大带宽。
19718
+ :rtype: float
19719
+ """
19720
+ return self._MaxBandwidth
19721
+
19722
+ @MaxBandwidth.setter
19723
+ def MaxBandwidth(self, MaxBandwidth):
19724
+ self._MaxBandwidth = MaxBandwidth
19725
+
19726
+ @property
19727
+ def Frequency(self):
19728
+ """主频。
19729
+ :rtype: str
19730
+ """
19731
+ return self._Frequency
19732
+
19733
+ @Frequency.setter
19734
+ def Frequency(self, Frequency):
19735
+ self._Frequency = Frequency
19736
+
19737
+ @property
19738
+ def CpuModelName(self):
19739
+ """CPU型号名称。
19740
+ :rtype: str
19741
+ """
19742
+ return self._CpuModelName
19743
+
19744
+ @CpuModelName.setter
19745
+ def CpuModelName(self, CpuModelName):
19746
+ self._CpuModelName = CpuModelName
19747
+
19748
+ @property
19749
+ def Pps(self):
19750
+ """包转发率。
19751
+ :rtype: int
19752
+ """
19753
+ return self._Pps
19754
+
19755
+ @Pps.setter
19756
+ def Pps(self, Pps):
19757
+ self._Pps = Pps
19758
+
19759
+ @property
19760
+ def Externals(self):
19761
+ """外部信息。
19762
+ :rtype: :class:`tencentcloud.cvm.v20170312.models.Externals`
19763
+ """
19764
+ return self._Externals
19765
+
19766
+ @Externals.setter
19767
+ def Externals(self, Externals):
19768
+ self._Externals = Externals
19769
+
19770
+ @property
19771
+ def Remark(self):
19772
+ """备注信息。
19773
+ :rtype: str
19774
+ """
19775
+ return self._Remark
19776
+
19777
+ @Remark.setter
19778
+ def Remark(self, Remark):
19779
+ self._Remark = Remark
19780
+
19781
+ @property
19782
+ def Prices(self):
19783
+ """预留实例配置价格信息。
19784
+ :rtype: list of ReservedInstancePriceItem
19785
+ """
19786
+ return self._Prices
19787
+
19788
+ @Prices.setter
19789
+ def Prices(self, Prices):
19790
+ self._Prices = Prices
19791
+
19792
+
19793
+ def _deserialize(self, params):
19794
+ self._InstanceType = params.get("InstanceType")
19795
+ self._Cpu = params.get("Cpu")
19796
+ self._Memory = params.get("Memory")
19797
+ self._Gpu = params.get("Gpu")
19798
+ self._Fpga = params.get("Fpga")
19799
+ self._StorageBlock = params.get("StorageBlock")
19800
+ self._NetworkCard = params.get("NetworkCard")
19801
+ self._MaxBandwidth = params.get("MaxBandwidth")
19802
+ self._Frequency = params.get("Frequency")
19803
+ self._CpuModelName = params.get("CpuModelName")
19804
+ self._Pps = params.get("Pps")
19805
+ if params.get("Externals") is not None:
19806
+ self._Externals = Externals()
19807
+ self._Externals._deserialize(params.get("Externals"))
19808
+ self._Remark = params.get("Remark")
19809
+ if params.get("Prices") is not None:
19810
+ self._Prices = []
19811
+ for item in params.get("Prices"):
19812
+ obj = ReservedInstancePriceItem()
19813
+ obj._deserialize(item)
19814
+ self._Prices.append(obj)
19815
+ memeber_set = set(params.keys())
19816
+ for name, value in vars(self).items():
19817
+ property_name = name[1:]
19818
+ if property_name in memeber_set:
19819
+ memeber_set.remove(property_name)
19820
+ if len(memeber_set) > 0:
19821
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19822
+
19823
+
19824
+
19825
+ class ReservedInstancesOffering(AbstractModel):
19826
+ """描述可购买预留实例计费信息
19827
+
19828
+ """
19829
+
19830
+ def __init__(self):
19831
+ r"""
19832
+ :param _Zone: 预留实例计费可购买的可用区。形如:ap-guangzhou-1。
19833
+ 返回项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a>
19834
+ :type Zone: str
19835
+ :param _CurrencyCode: 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。
19836
+ 返回项:USD(美元)。
19837
+ :type CurrencyCode: str
19838
+ :param _Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
19839
+ 计量单位:秒
19840
+ :type Duration: int
19841
+ :param _FixedPrice: 预留实例计费的购买价格。形如:4000.0。
19842
+ 计量单位:与 currencyCode 一致,目前支持 USD(美元)
19843
+ :type FixedPrice: float
19844
+ :param _InstanceType: 预留实例计费的实例类型。形如:S3.MEDIUM4。
19845
+ 返回项:<a href="https://cloud.tencent.com/product/cvm/instances">预留实例计费类型列表</a>
19846
+ :type InstanceType: str
19847
+ :param _OfferingType: 预留实例计费的付款类型。形如:All Upfront。
19848
+ 返回项: All Upfront (预付全部费用)。
19849
+ :type OfferingType: str
19850
+ :param _ReservedInstancesOfferingId: 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
19851
+ :type ReservedInstancesOfferingId: str
19852
+ :param _ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:linux。
19853
+ 返回项: linux 。
19854
+ :type ProductDescription: str
19855
+ :param _UsagePrice: 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。
19856
+ 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。
19857
+ 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)
19858
+ :type UsagePrice: float
19859
+ """
19860
+ self._Zone = None
19861
+ self._CurrencyCode = None
19862
+ self._Duration = None
19863
+ self._FixedPrice = None
19864
+ self._InstanceType = None
19865
+ self._OfferingType = None
19866
+ self._ReservedInstancesOfferingId = None
19867
+ self._ProductDescription = None
19868
+ self._UsagePrice = None
19869
+
19870
+ @property
19871
+ def Zone(self):
19872
+ """预留实例计费可购买的可用区。形如:ap-guangzhou-1。
19873
+ 返回项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a>
19874
+ :rtype: str
19875
+ """
19876
+ return self._Zone
19877
+
19878
+ @Zone.setter
19879
+ def Zone(self, Zone):
19880
+ self._Zone = Zone
19881
+
19882
+ @property
19883
+ def CurrencyCode(self):
19884
+ """可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。
19885
+ 返回项:USD(美元)。
19886
+ :rtype: str
19887
+ """
19888
+ return self._CurrencyCode
19889
+
19890
+ @CurrencyCode.setter
19891
+ def CurrencyCode(self, CurrencyCode):
19892
+ self._CurrencyCode = CurrencyCode
19893
+
19894
+ @property
19895
+ def Duration(self):
19896
+ """预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
19897
+ 计量单位:秒
19898
+ :rtype: int
19899
+ """
19900
+ return self._Duration
19901
+
19902
+ @Duration.setter
19903
+ def Duration(self, Duration):
19904
+ self._Duration = Duration
19905
+
19906
+ @property
19907
+ def FixedPrice(self):
19908
+ """预留实例计费的购买价格。形如:4000.0。
19909
+ 计量单位:与 currencyCode 一致,目前支持 USD(美元)
19910
+ :rtype: float
19911
+ """
19912
+ return self._FixedPrice
19913
+
19914
+ @FixedPrice.setter
19915
+ def FixedPrice(self, FixedPrice):
19916
+ self._FixedPrice = FixedPrice
19917
+
19918
+ @property
19919
+ def InstanceType(self):
19920
+ """预留实例计费的实例类型。形如:S3.MEDIUM4。
19921
+ 返回项:<a href="https://cloud.tencent.com/product/cvm/instances">预留实例计费类型列表</a>
19922
+ :rtype: str
19923
+ """
19924
+ return self._InstanceType
19925
+
19926
+ @InstanceType.setter
19927
+ def InstanceType(self, InstanceType):
19928
+ self._InstanceType = InstanceType
19929
+
19930
+ @property
19931
+ def OfferingType(self):
19932
+ """预留实例计费的付款类型。形如:All Upfront。
19933
+ 返回项: All Upfront (预付全部费用)。
19934
+ :rtype: str
19935
+ """
19936
+ return self._OfferingType
19937
+
19938
+ @OfferingType.setter
19939
+ def OfferingType(self, OfferingType):
19940
+ self._OfferingType = OfferingType
19941
+
19942
+ @property
19943
+ def ReservedInstancesOfferingId(self):
19944
+ """可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
19945
+ :rtype: str
19946
+ """
19947
+ return self._ReservedInstancesOfferingId
19948
+
19949
+ @ReservedInstancesOfferingId.setter
19950
+ def ReservedInstancesOfferingId(self, ReservedInstancesOfferingId):
19951
+ self._ReservedInstancesOfferingId = ReservedInstancesOfferingId
19952
+
19953
+ @property
19954
+ def ProductDescription(self):
19955
+ """预留实例计费的平台描述(即操作系统)。形如:linux。
19956
+ 返回项: linux 。
19957
+ :rtype: str
19958
+ """
19959
+ return self._ProductDescription
19960
+
19961
+ @ProductDescription.setter
19962
+ def ProductDescription(self, ProductDescription):
19963
+ self._ProductDescription = ProductDescription
19964
+
19965
+ @property
19966
+ def UsagePrice(self):
19967
+ """扣除预付费之后的使用价格 (按小时计费)。形如:0.0。
19968
+ 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。
19969
+ 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)
19970
+ :rtype: float
19971
+ """
19972
+ return self._UsagePrice
19973
+
19974
+ @UsagePrice.setter
19975
+ def UsagePrice(self, UsagePrice):
19976
+ self._UsagePrice = UsagePrice
19977
+
19978
+
19979
+ def _deserialize(self, params):
19980
+ self._Zone = params.get("Zone")
19981
+ self._CurrencyCode = params.get("CurrencyCode")
19982
+ self._Duration = params.get("Duration")
19983
+ self._FixedPrice = params.get("FixedPrice")
19984
+ self._InstanceType = params.get("InstanceType")
19985
+ self._OfferingType = params.get("OfferingType")
19986
+ self._ReservedInstancesOfferingId = params.get("ReservedInstancesOfferingId")
19987
+ self._ProductDescription = params.get("ProductDescription")
19988
+ self._UsagePrice = params.get("UsagePrice")
19989
+ memeber_set = set(params.keys())
19990
+ for name, value in vars(self).items():
19991
+ property_name = name[1:]
19992
+ if property_name in memeber_set:
19993
+ memeber_set.remove(property_name)
19994
+ if len(memeber_set) > 0:
19995
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19996
+
19997
+
19998
+
18549
19999
  class ResetInstanceRequest(AbstractModel):
18550
20000
  """ResetInstance请求参数结构体
18551
20001