Class: TencentCloud::Tse::V20201207::CloudNativeAPIGatewayBalancedService

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201207/models.rb

Overview

含百分比流量配置的服务

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#PercentObject



381
382
383
# File 'lib/v20201207/models.rb', line 381

def Percent
  @Percent
end

#ServiceIDObject



381
382
383
# File 'lib/v20201207/models.rb', line 381

def ServiceID
  @ServiceID
end

#ServiceNameObject



381
382
383
# File 'lib/v20201207/models.rb', line 381

def ServiceName
  @ServiceName
end

#UpstreamNameObject



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