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
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#KeepaliveEnable ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#Port ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#Protocol ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#SessionExpireTime ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#Tags ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#TargetGroupInstances ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#TargetGroupName ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#Type ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#VpcId ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
-
#Weight ⇒ Object
<ul> <li>取值范围[0, 100]</li> <li>设置该值后,添加后端服务到目标组时, 若后端服务不单独设置权重, 则使用这里的默认权重。 </li> </ul> v1 目标组类型不支持设置 Weight 参数。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(targetgroupname = nil, vpcid = nil, port = nil, targetgroupinstances = nil, type = nil, protocol = nil, tags = nil, weight = nil, fulllistenswitch = nil, keepaliveenable = nil, sessionexpiretime = nil) ⇒ CreateTargetGroupRequest
constructor
A new instance of CreateTargetGroupRequest.
Constructor Details
#initialize(targetgroupname = nil, vpcid = nil, port = nil, targetgroupinstances = nil, type = nil, protocol = nil, tags = nil, weight = nil, fulllistenswitch = nil, keepaliveenable = nil, sessionexpiretime = nil) ⇒ CreateTargetGroupRequest
Returns a new instance of CreateTargetGroupRequest.
1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 |
# File 'lib/v20180317/models.rb', line 1897 def initialize(targetgroupname=nil, vpcid=nil, port=nil, targetgroupinstances=nil, type=nil, protocol=nil, =nil, weight=nil, fulllistenswitch=nil, keepaliveenable=nil, sessionexpiretime=nil) @TargetGroupName = targetgroupname @VpcId = vpcid @Port = port @TargetGroupInstances = targetgroupinstances @Type = type @Protocol = protocol @Tags = @Weight = weight @FullListenSwitch = fulllistenswitch @KeepaliveEnable = keepaliveenable @SessionExpireTime = sessionexpiretime end |
Instance Attribute Details
#FullListenSwitch ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def FullListenSwitch @FullListenSwitch end |
#KeepaliveEnable ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def KeepaliveEnable @KeepaliveEnable end |
#Port ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def Port @Port end |
#Protocol ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def Protocol @Protocol end |
#SessionExpireTime ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def SessionExpireTime @SessionExpireTime end |
#Tags ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def Tags @Tags end |
#TargetGroupInstances ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def TargetGroupInstances @TargetGroupInstances end |
#TargetGroupName ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def TargetGroupName @TargetGroupName end |
#Type ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def Type @Type end |
#VpcId ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def VpcId @VpcId end |
#Weight ⇒ Object
<ul>
<li>
</ul> v1 目标组类型不支持设置 Weight 参数。
1895 1896 1897 |
# File 'lib/v20180317/models.rb', line 1895 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 |
# File 'lib/v20180317/models.rb', line 1911 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['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'] end |