Class: TencentCloud::Thpc::V20230321::InstanceChargePrepaid

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230321/models.rb

Overview

描述了实例的计费模式

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#PeriodObject

默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 注意:此字段可能返回 null,表示取不到有效值。



1864
1865
1866
# File 'lib/v20230321/models.rb', line 1864

def Period
  @Period
end

#RenewFlagObject

默认取值: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