Class: TencentCloud::Thpc::V20220401::QueueConfigOverview
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20220401::QueueConfigOverview
- Defined in:
- lib/v20220401/models.rb
Overview
扩容队列配置概览。
Instance Attribute Summary collapse
- #EnableAutoExpansion ⇒ Object
- #EnableAutoShrink ⇒ Object
- #ExpansionNodeConfigs ⇒ Object
- #MaxSize ⇒ Object
- #MinSize ⇒ Object
- #QueueName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(queuename = nil, minsize = nil, maxsize = nil, enableautoexpansion = nil, enableautoshrink = nil, expansionnodeconfigs = nil) ⇒ QueueConfigOverview
constructor
A new instance of QueueConfigOverview.
Constructor Details
#initialize(queuename = nil, minsize = nil, maxsize = nil, enableautoexpansion = nil, enableautoshrink = nil, expansionnodeconfigs = nil) ⇒ QueueConfigOverview
Returns a new instance of QueueConfigOverview.
1823 1824 1825 1826 1827 1828 1829 1830 |
# File 'lib/v20220401/models.rb', line 1823 def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, expansionnodeconfigs=nil) @QueueName = queuename @MinSize = minsize @MaxSize = maxsize @EnableAutoExpansion = enableautoexpansion @EnableAutoShrink = enableautoshrink @ExpansionNodeConfigs = expansionnodeconfigs end |
Instance Attribute Details
#EnableAutoExpansion ⇒ Object
1821 1822 1823 |
# File 'lib/v20220401/models.rb', line 1821 def EnableAutoExpansion @EnableAutoExpansion end |
#EnableAutoShrink ⇒ Object
1821 1822 1823 |
# File 'lib/v20220401/models.rb', line 1821 def EnableAutoShrink @EnableAutoShrink end |
#ExpansionNodeConfigs ⇒ Object
1821 1822 1823 |
# File 'lib/v20220401/models.rb', line 1821 def ExpansionNodeConfigs @ExpansionNodeConfigs end |
#MaxSize ⇒ Object
1821 1822 1823 |
# File 'lib/v20220401/models.rb', line 1821 def MaxSize @MaxSize end |
#MinSize ⇒ Object
1821 1822 1823 |
# File 'lib/v20220401/models.rb', line 1821 def MinSize @MinSize end |
#QueueName ⇒ Object
1821 1822 1823 |
# File 'lib/v20220401/models.rb', line 1821 def QueueName @QueueName end |
Instance Method Details
#deserialize(params) ⇒ Object
1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 |
# File 'lib/v20220401/models.rb', line 1832 def deserialize(params) @QueueName = params['QueueName'] @MinSize = params['MinSize'] @MaxSize = params['MaxSize'] @EnableAutoExpansion = params['EnableAutoExpansion'] @EnableAutoShrink = params['EnableAutoShrink'] unless params['ExpansionNodeConfigs'].nil? @ExpansionNodeConfigs = [] params['ExpansionNodeConfigs'].each do |i| expansionnodeconfigoverview_tmp = ExpansionNodeConfigOverview.new expansionnodeconfigoverview_tmp.deserialize(i) @ExpansionNodeConfigs << expansionnodeconfigoverview_tmp end end end |