Class: TencentCloud::Tse::V20201207::AutoScalerPolicy

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

Overview

扩容策略

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, value = nil, periodseconds = nil) ⇒ AutoScalerPolicy

Returns a new instance of AutoScalerPolicy.



120
121
122
123
124
# File 'lib/v20201207/models.rb', line 120

def initialize(type=nil, value=nil, periodseconds=nil)
  @Type = type
  @Value = value
  @PeriodSeconds = periodseconds
end

Instance Attribute Details

#PeriodSecondsObject

Parameters:

  • Type:

    类型,Pods

  • Value:

    数量

  • PeriodSeconds:

    扩容周期



118
119
120
# File 'lib/v20201207/models.rb', line 118

def PeriodSeconds
  @PeriodSeconds
end

#TypeObject

Parameters:

  • Type:

    类型,Pods

  • Value:

    数量

  • PeriodSeconds:

    扩容周期



118
119
120
# File 'lib/v20201207/models.rb', line 118

def Type
  @Type
end

#ValueObject

Parameters:

  • Type:

    类型,Pods

  • Value:

    数量

  • PeriodSeconds:

    扩容周期



118
119
120
# File 'lib/v20201207/models.rb', line 118

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



126
127
128
129
130
# File 'lib/v20201207/models.rb', line 126

def deserialize(params)
  @Type = params['Type']
  @Value = params['Value']
  @PeriodSeconds = params['PeriodSeconds']
end