Class: TencentCloud::Tse::V20201207::CreateCloudNativeAPIGatewayCanaryRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::CreateCloudNativeAPIGatewayCanaryRuleRequest
- Defined in:
- lib/v20201207/models.rb
Overview
CreateCloudNativeAPIGatewayCanaryRule请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(gatewayid = nil, serviceid = nil, canaryrule = nil, canaryrulelist = nil) ⇒ CreateCloudNativeAPIGatewayCanaryRuleRequest
constructor
A new instance of CreateCloudNativeAPIGatewayCanaryRuleRequest.
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
#CanaryRule ⇒ Object
1780 1781 1782 |
# File 'lib/v20201207/models.rb', line 1780 def CanaryRule @CanaryRule end |
#CanaryRuleList ⇒ Object
1780 1781 1782 |
# File 'lib/v20201207/models.rb', line 1780 def CanaryRuleList @CanaryRuleList end |
#GatewayId ⇒ Object
1780 1781 1782 |
# File 'lib/v20201207/models.rb', line 1780 def GatewayId @GatewayId end |
#ServiceId ⇒ Object
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 |