Class: TencentCloud::Thpc::V20230321::InstanceChargePrepaid
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20230321::InstanceChargePrepaid
- Defined in:
- lib/v20230321/models.rb
Overview
描述了实例的计费模式
Instance Attribute Summary collapse
-
#Period ⇒ Object
默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 注意:此字段可能返回 null,表示取不到有效值。.
-
#RenewFlag ⇒ Object
默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(period = nil, renewflag = nil) ⇒ InstanceChargePrepaid
constructor
A new instance of InstanceChargePrepaid.
Constructor Details
#initialize(period = nil, renewflag = nil) ⇒ InstanceChargePrepaid
Returns a new instance of InstanceChargePrepaid.
1866 1867 1868 1869 |
# File 'lib/v20230321/models.rb', line 1866 def initialize(period=nil, renewflag=nil) @Period = period @RenewFlag = renewflag end |
Instance Attribute Details
#Period ⇒ Object
默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 注意:此字段可能返回 null,表示取不到有效值。
1864 1865 1866 |
# File 'lib/v20230321/models.rb', line 1864 def Period @Period end |
#RenewFlag ⇒ Object
默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 注意:此字段可能返回 null,表示取不到有效值。
1864 1865 1866 |
# File 'lib/v20230321/models.rb', line 1864 def RenewFlag @RenewFlag end |
Instance Method Details
#deserialize(params) ⇒ Object
1871 1872 1873 1874 |
# File 'lib/v20230321/models.rb', line 1871 def deserialize(params) @Period = params['Period'] @RenewFlag = params['RenewFlag'] end |