Class: TencentCloud::Clb::V20180317::CreateTargetGroupRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::CreateTargetGroupRequest
- Defined in:
- lib/v20180317/models.rb
Overview
CreateTargetGroup请求参数结构体
Instance Attribute Summary collapse
- #FullListenSwitch ⇒ Object
- #HealthCheck ⇒ Object
- #IpVersion ⇒ Object
- #KeepaliveEnable ⇒ Object
- #Port ⇒ Object
- #Protocol ⇒ Object
- #ScheduleAlgorithm ⇒ Object
- #SessionExpireTime ⇒ Object
- #SnatEnable ⇒ Object
- #Tags ⇒ Object
- #TargetGroupInstances ⇒ Object
- #TargetGroupName ⇒ Object
- #Type ⇒ Object
- #VpcId ⇒ Object
- #Weight ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(targetgroupname = nil, vpcid = nil, port = nil, targetgroupinstances = nil, type = nil, protocol = nil, healthcheck = nil, schedulealgorithm = nil, tags = nil, weight = nil, fulllistenswitch = nil, keepaliveenable = nil, sessionexpiretime = nil, ipversion = nil, snatenable = nil) ⇒ CreateTargetGroupRequest
constructor
A new instance of CreateTargetGroupRequest.
Constructor Details
#initialize(targetgroupname = nil, vpcid = nil, port = nil, targetgroupinstances = nil, type = nil, protocol = nil, healthcheck = nil, schedulealgorithm = nil, tags = nil, weight = nil, fulllistenswitch = nil, keepaliveenable = nil, sessionexpiretime = nil, ipversion = nil, snatenable = nil) ⇒ CreateTargetGroupRequest
Returns a new instance of CreateTargetGroupRequest.
1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 |
# File 'lib/v20180317/models.rb', line 1831 def initialize(targetgroupname=nil, vpcid=nil, port=nil, targetgroupinstances=nil, type=nil, protocol=nil, healthcheck=nil, schedulealgorithm=nil, =nil, weight=nil, fulllistenswitch=nil, keepaliveenable=nil, sessionexpiretime=nil, ipversion=nil, snatenable=nil) @TargetGroupName = targetgroupname @VpcId = vpcid @Port = port @TargetGroupInstances = targetgroupinstances @Type = type @Protocol = protocol @HealthCheck = healthcheck @ScheduleAlgorithm = schedulealgorithm @Tags = @Weight = weight @FullListenSwitch = fulllistenswitch @KeepaliveEnable = keepaliveenable @SessionExpireTime = sessionexpiretime @IpVersion = ipversion @SnatEnable = snatenable end |
Instance Attribute Details
#FullListenSwitch ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def FullListenSwitch @FullListenSwitch end |
#HealthCheck ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def HealthCheck @HealthCheck end |
#IpVersion ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def IpVersion @IpVersion end |
#KeepaliveEnable ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def KeepaliveEnable @KeepaliveEnable end |
#Port ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def Port @Port end |
#Protocol ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def Protocol @Protocol end |
#ScheduleAlgorithm ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def ScheduleAlgorithm @ScheduleAlgorithm end |
#SessionExpireTime ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def SessionExpireTime @SessionExpireTime end |
#SnatEnable ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def SnatEnable @SnatEnable end |
#Tags ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def Tags @Tags end |
#TargetGroupInstances ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def TargetGroupInstances @TargetGroupInstances end |
#TargetGroupName ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def TargetGroupName @TargetGroupName end |
#Type ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def Type @Type end |
#VpcId ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def VpcId @VpcId end |
#Weight ⇒ Object
1829 1830 1831 |
# File 'lib/v20180317/models.rb', line 1829 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 |
# File 'lib/v20180317/models.rb', line 1849 def deserialize(params) @TargetGroupName = params['TargetGroupName'] @VpcId = params['VpcId'] @Port = params['Port'] unless params['TargetGroupInstances'].nil? @TargetGroupInstances = [] params['TargetGroupInstances'].each do |i| targetgroupinstance_tmp = TargetGroupInstance.new targetgroupinstance_tmp.deserialize(i) @TargetGroupInstances << targetgroupinstance_tmp end end @Type = params['Type'] @Protocol = params['Protocol'] unless params['HealthCheck'].nil? @HealthCheck = TargetGroupHealthCheck.new @HealthCheck.deserialize(params['HealthCheck']) end @ScheduleAlgorithm = params['ScheduleAlgorithm'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| taginfo_tmp = TagInfo.new taginfo_tmp.deserialize(i) @Tags << taginfo_tmp end end @Weight = params['Weight'] @FullListenSwitch = params['FullListenSwitch'] @KeepaliveEnable = params['KeepaliveEnable'] @SessionExpireTime = params['SessionExpireTime'] @IpVersion = params['IpVersion'] @SnatEnable = params['SnatEnable'] end |