Class: TencentCloud::Tse::V20201207::CloudNativeAPIGatewayBalancedService
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::CloudNativeAPIGatewayBalancedService
- Defined in:
- lib/v20201207/models.rb
Overview
含百分比流量配置的服务
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(serviceid = nil, servicename = nil, upstreamname = nil, percent = nil) ⇒ CloudNativeAPIGatewayBalancedService
constructor
A new instance of CloudNativeAPIGatewayBalancedService.
Constructor Details
#initialize(serviceid = nil, servicename = nil, upstreamname = nil, percent = nil) ⇒ CloudNativeAPIGatewayBalancedService
383 384 385 386 387 388 |
# File 'lib/v20201207/models.rb', line 383 def initialize(serviceid=nil, servicename=nil, upstreamname=nil, percent=nil) @ServiceID = serviceid @ServiceName = servicename @UpstreamName = upstreamname @Percent = percent end |
Instance Attribute Details
#Percent ⇒ Object
381 382 383 |
# File 'lib/v20201207/models.rb', line 381 def Percent @Percent end |
#ServiceID ⇒ Object
381 382 383 |
# File 'lib/v20201207/models.rb', line 381 def ServiceID @ServiceID end |
#ServiceName ⇒ Object
381 382 383 |
# File 'lib/v20201207/models.rb', line 381 def ServiceName @ServiceName end |
#UpstreamName ⇒ Object
381 382 383 |
# File 'lib/v20201207/models.rb', line 381 def UpstreamName @UpstreamName end |
Instance Method Details
#deserialize(params) ⇒ Object
390 391 392 393 394 395 |
# File 'lib/v20201207/models.rb', line 390 def deserialize(params) @ServiceID = params['ServiceID'] @ServiceName = params['ServiceName'] @UpstreamName = params['UpstreamName'] @Percent = params['Percent'] end |