Class: TencentCloud::Tse::V20201207::CreateCloudNativeAPIGatewayCanaryRuleRequest

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

Overview

CreateCloudNativeAPIGatewayCanaryRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gatewayid = nil, serviceid = nil, canaryrule = nil, canaryrulelist = nil) ⇒ CreateCloudNativeAPIGatewayCanaryRuleRequest

Returns a new instance of CreateCloudNativeAPIGatewayCanaryRuleRequest.



1782
1783
1784
1785
1786
1787
# File 'lib/v20201207/models.rb', line 1782

def initialize(gatewayid=nil, serviceid=nil, canaryrule=nil, canaryrulelist=nil)
  @GatewayId = gatewayid
  @ServiceId = serviceid
  @CanaryRule = canaryrule
  @CanaryRuleList = canaryrulelist
end

Instance Attribute Details

#CanaryRuleObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • CanaryRule:

    灰度规则配置

  • CanaryRuleList:

    灰度规则配置列表,如果配置了此参数,将以此参数为准,忽略CanaryRule参数



1780
1781
1782
# File 'lib/v20201207/models.rb', line 1780

def CanaryRule
  @CanaryRule
end

#CanaryRuleListObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • CanaryRule:

    灰度规则配置

  • CanaryRuleList:

    灰度规则配置列表,如果配置了此参数,将以此参数为准,忽略CanaryRule参数



1780
1781
1782
# File 'lib/v20201207/models.rb', line 1780

def CanaryRuleList
  @CanaryRuleList
end

#GatewayIdObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • CanaryRule:

    灰度规则配置

  • CanaryRuleList:

    灰度规则配置列表,如果配置了此参数,将以此参数为准,忽略CanaryRule参数



1780
1781
1782
# File 'lib/v20201207/models.rb', line 1780

def GatewayId
  @GatewayId
end

#ServiceIdObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • CanaryRule:

    灰度规则配置

  • CanaryRuleList:

    灰度规则配置列表,如果配置了此参数,将以此参数为准,忽略CanaryRule参数



1780
1781
1782
# File 'lib/v20201207/models.rb', line 1780

def ServiceId
  @ServiceId
end

Instance Method Details

#deserialize(params) ⇒ Object



1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
# File 'lib/v20201207/models.rb', line 1789

def deserialize(params)
  @GatewayId = params['GatewayId']
  @ServiceId = params['ServiceId']
  unless params['CanaryRule'].nil?
    @CanaryRule = CloudNativeAPIGatewayCanaryRule.new
    @CanaryRule.deserialize(params['CanaryRule'])
  end
  unless params['CanaryRuleList'].nil?
    @CanaryRuleList = []
    params['CanaryRuleList'].each do |i|
      cloudnativeapigatewaycanaryrule_tmp = CloudNativeAPIGatewayCanaryRule.new
      cloudnativeapigatewaycanaryrule_tmp.deserialize(i)
      @CanaryRuleList << cloudnativeapigatewaycanaryrule_tmp
    end
  end
end