Class: TencentCloud::Thpc::V20220401::QueueConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20220401::QueueConfig
- Defined in:
- lib/v20220401/models.rb
Overview
扩容队列配置。
Instance Attribute Summary collapse
- #DataDisks ⇒ Object
- #EnableAutoExpansion ⇒ Object
- #EnableAutoShrink ⇒ Object
- #ExpansionNodeConfigs ⇒ Object
- #ImageId ⇒ Object
- #InternetAccessible ⇒ Object
- #MaxSize ⇒ Object
- #MinSize ⇒ Object
- #QueueName ⇒ Object
- #SystemDisk ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(queuename = nil, minsize = nil, maxsize = nil, enableautoexpansion = nil, enableautoshrink = nil, imageid = nil, systemdisk = nil, datadisks = nil, internetaccessible = nil, expansionnodeconfigs = nil) ⇒ QueueConfig
constructor
A new instance of QueueConfig.
Constructor Details
#initialize(queuename = nil, minsize = nil, maxsize = nil, enableautoexpansion = nil, enableautoshrink = nil, imageid = nil, systemdisk = nil, datadisks = nil, internetaccessible = nil, expansionnodeconfigs = nil) ⇒ QueueConfig
Returns a new instance of QueueConfig.
1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 |
# File 'lib/v20220401/models.rb', line 1759 def initialize(queuename=nil, minsize=nil, maxsize=nil, enableautoexpansion=nil, enableautoshrink=nil, imageid=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, expansionnodeconfigs=nil) @QueueName = queuename @MinSize = minsize @MaxSize = maxsize @EnableAutoExpansion = enableautoexpansion @EnableAutoShrink = enableautoshrink @ImageId = imageid @SystemDisk = systemdisk @DataDisks = datadisks @InternetAccessible = internetaccessible @ExpansionNodeConfigs = expansionnodeconfigs end |
Instance Attribute Details
#DataDisks ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def DataDisks @DataDisks end |
#EnableAutoExpansion ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def EnableAutoExpansion @EnableAutoExpansion end |
#EnableAutoShrink ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def EnableAutoShrink @EnableAutoShrink end |
#ExpansionNodeConfigs ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def ExpansionNodeConfigs @ExpansionNodeConfigs end |
#ImageId ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def ImageId @ImageId end |
#InternetAccessible ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def InternetAccessible @InternetAccessible end |
#MaxSize ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def MaxSize @MaxSize end |
#MinSize ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def MinSize @MinSize end |
#QueueName ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def QueueName @QueueName end |
#SystemDisk ⇒ Object
1757 1758 1759 |
# File 'lib/v20220401/models.rb', line 1757 def SystemDisk @SystemDisk end |
Instance Method Details
#deserialize(params) ⇒ Object
1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 |
# File 'lib/v20220401/models.rb', line 1772 def deserialize(params) @QueueName = params['QueueName'] @MinSize = params['MinSize'] @MaxSize = params['MaxSize'] @EnableAutoExpansion = params['EnableAutoExpansion'] @EnableAutoShrink = params['EnableAutoShrink'] @ImageId = params['ImageId'] unless params['SystemDisk'].nil? @SystemDisk = SystemDisk.new @SystemDisk.deserialize(params['SystemDisk']) end unless params['DataDisks'].nil? @DataDisks = [] params['DataDisks'].each do |i| datadisk_tmp = DataDisk.new datadisk_tmp.deserialize(i) @DataDisks << datadisk_tmp end end unless params['InternetAccessible'].nil? @InternetAccessible = InternetAccessible.new @InternetAccessible.deserialize(params['InternetAccessible']) end unless params['ExpansionNodeConfigs'].nil? @ExpansionNodeConfigs = [] params['ExpansionNodeConfigs'].each do |i| expansionnodeconfig_tmp = ExpansionNodeConfig.new expansionnodeconfig_tmp.deserialize(i) @ExpansionNodeConfigs << expansionnodeconfig_tmp end end end |