Class: TencentCloud::Teo::V20220901::RenewPlanRequest

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

Overview

RenewPlan请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(planid = nil, period = nil, autousevoucher = nil) ⇒ RenewPlanRequest

Returns a new instance of RenewPlanRequest.



19997
19998
19999
20000
20001
# File 'lib/v20220901/models.rb', line 19997

def initialize(planid=nil, period=nil, autousevoucher=nil)
  @PlanId = planid
  @Period = period
  @AutoUseVoucher = autousevoucher
end

Instance Attribute Details

#AutoUseVoucherObject

Parameters:

  • PlanId:

    套餐 ID,形如 edgeone-2unuvzjmmn2q。

  • Period:

    续费套餐的时长,单位:月,取值有:1,2,3,4,5,6,7,8,9,10,11,12,24,36。

  • AutoUseVoucher:

    是否自动使用代金券,取值有:<li> true:是;</li><li> false:否。</li>不填写使用默认值 false。



19995
19996
19997
# File 'lib/v20220901/models.rb', line 19995

def AutoUseVoucher
  @AutoUseVoucher
end

#PeriodObject

Parameters:

  • PlanId:

    套餐 ID,形如 edgeone-2unuvzjmmn2q。

  • Period:

    续费套餐的时长,单位:月,取值有:1,2,3,4,5,6,7,8,9,10,11,12,24,36。

  • AutoUseVoucher:

    是否自动使用代金券,取值有:<li> true:是;</li><li> false:否。</li>不填写使用默认值 false。



19995
19996
19997
# File 'lib/v20220901/models.rb', line 19995

def Period
  @Period
end

#PlanIdObject

Parameters:

  • PlanId:

    套餐 ID,形如 edgeone-2unuvzjmmn2q。

  • Period:

    续费套餐的时长,单位:月,取值有:1,2,3,4,5,6,7,8,9,10,11,12,24,36。

  • AutoUseVoucher:

    是否自动使用代金券,取值有:<li> true:是;</li><li> false:否。</li>不填写使用默认值 false。



19995
19996
19997
# File 'lib/v20220901/models.rb', line 19995

def PlanId
  @PlanId
end

Instance Method Details

#deserialize(params) ⇒ Object



20003
20004
20005
20006
20007
# File 'lib/v20220901/models.rb', line 20003

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