Class: TencentCloud::Tse::V20201207::ModifyCloudNativeAPIGatewayCanaryRuleRequest

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

Overview

ModifyCloudNativeAPIGatewayCanaryRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gatewayid = nil, serviceid = nil, priority = nil, canaryrule = nil) ⇒ ModifyCloudNativeAPIGatewayCanaryRuleRequest

Returns a new instance of ModifyCloudNativeAPIGatewayCanaryRuleRequest.



5151
5152
5153
5154
5155
5156
# File 'lib/v20201207/models.rb', line 5151

def initialize(gatewayid=nil, serviceid=nil, priority=nil, canaryrule=nil)
  @GatewayId = gatewayid
  @ServiceId = serviceid
  @Priority = priority
  @CanaryRule = canaryrule
end

Instance Attribute Details

#CanaryRuleObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • Priority:

    优先级,同一个服务的灰度规则优先级是唯一的

  • CanaryRule:

    灰度规则配置



5149
5150
5151
# File 'lib/v20201207/models.rb', line 5149

def CanaryRule
  @CanaryRule
end

#GatewayIdObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • Priority:

    优先级,同一个服务的灰度规则优先级是唯一的

  • CanaryRule:

    灰度规则配置



5149
5150
5151
# File 'lib/v20201207/models.rb', line 5149

def GatewayId
  @GatewayId
end

#PriorityObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • Priority:

    优先级,同一个服务的灰度规则优先级是唯一的

  • CanaryRule:

    灰度规则配置



5149
5150
5151
# File 'lib/v20201207/models.rb', line 5149

def Priority
  @Priority
end

#ServiceIdObject

Parameters:

  • GatewayId:

    网关 ID

  • ServiceId:

    服务 ID

  • Priority:

    优先级,同一个服务的灰度规则优先级是唯一的

  • CanaryRule:

    灰度规则配置



5149
5150
5151
# File 'lib/v20201207/models.rb', line 5149

def ServiceId
  @ServiceId
end

Instance Method Details

#deserialize(params) ⇒ Object



5158
5159
5160
5161
5162
5163
5164
5165
5166
# File 'lib/v20201207/models.rb', line 5158

def deserialize(params)
  @GatewayId = params['GatewayId']
  @ServiceId = params['ServiceId']
  @Priority = params['Priority']
  unless params['CanaryRule'].nil?
    @CanaryRule = CloudNativeAPIGatewayCanaryRule.new
    @CanaryRule.deserialize(params['CanaryRule'])
  end
end