Class: TencentCloud::Thpc::V20211109::InstanceChargePrepaid

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20211109/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.



568
569
570
571
# File 'lib/v20211109/models.rb', line 568

def initialize(period=nil, renewflag=nil)
  @Period = period
  @RenewFlag = renewflag
end

Instance Attribute Details

#PeriodObject

默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。



566
567
568
# File 'lib/v20211109/models.rb', line 566

def Period
  @Period
end

#RenewFlagObject

默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。



566
567
568
# File 'lib/v20211109/models.rb', line 566

def RenewFlag
  @RenewFlag
end

Instance Method Details

#deserialize(params) ⇒ Object



573
574
575
576
# File 'lib/v20211109/models.rb', line 573

def deserialize(params)
  @Period = params['Period']
  @RenewFlag = params['RenewFlag']
end