Class: TencentCloud::Tke::V20220501::InstanceChargePrepaid

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

Overview

包年包月配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(period = nil, renewflag = nil) ⇒ InstanceChargePrepaid



1525
1526
1527
1528
# File 'lib/v20220501/models.rb', line 1525

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

Instance Attribute Details

#PeriodObject

1,2,3,4,5,6,7, 8,9,10,11,12,24,36,48,60

  • NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费

  • NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费(默认)

  • DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费



1523
1524
1525
# File 'lib/v20220501/models.rb', line 1523

def Period
  @Period
end

#RenewFlagObject

1,2,3,4,5,6,7, 8,9,10,11,12,24,36,48,60

  • NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费

  • NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费(默认)

  • DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费



1523
1524
1525
# File 'lib/v20220501/models.rb', line 1523

def RenewFlag
  @RenewFlag
end

Instance Method Details

#deserialize(params) ⇒ Object



1530
1531
1532
1533
# File 'lib/v20220501/models.rb', line 1530

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