Class: TencentCloud::Apigateway::V20180808::CreateUpstreamRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Apigateway::V20180808::CreateUpstreamRequest
- Defined in:
- lib/v20180808/models.rb
Overview
CreateUpstream请求参数结构体
Instance Attribute Summary collapse
- #Algorithm ⇒ Object
- #HealthChecker ⇒ Object
- #K8sService ⇒ Object
- #Nodes ⇒ Object
- #Retries ⇒ Object
- #Scheme ⇒ Object
- #Tags ⇒ Object
- #UniqVpcId ⇒ Object
- #UpstreamDescription ⇒ Object
- #UpstreamHost ⇒ Object
- #UpstreamName ⇒ Object
- #UpstreamType ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(scheme = nil, algorithm = nil, uniqvpcid = nil, upstreamname = nil, upstreamdescription = nil, upstreamtype = nil, retries = nil, upstreamhost = nil, nodes = nil, tags = nil, healthchecker = nil, k8sservice = nil) ⇒ CreateUpstreamRequest
constructor
A new instance of CreateUpstreamRequest.
Constructor Details
#initialize(scheme = nil, algorithm = nil, uniqvpcid = nil, upstreamname = nil, upstreamdescription = nil, upstreamtype = nil, retries = nil, upstreamhost = nil, nodes = nil, tags = nil, healthchecker = nil, k8sservice = nil) ⇒ CreateUpstreamRequest
Returns a new instance of CreateUpstreamRequest.
2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 |
# File 'lib/v20180808/models.rb', line 2687 def initialize(scheme=nil, algorithm=nil, uniqvpcid=nil, upstreamname=nil, upstreamdescription=nil, upstreamtype=nil, retries=nil, upstreamhost=nil, nodes=nil, =nil, healthchecker=nil, k8sservice=nil) @Scheme = scheme @Algorithm = algorithm @UniqVpcId = uniqvpcid @UpstreamName = upstreamname @UpstreamDescription = upstreamdescription @UpstreamType = upstreamtype @Retries = retries @UpstreamHost = upstreamhost @Nodes = nodes @Tags = @HealthChecker = healthchecker @K8sService = k8sservice end |
Instance Attribute Details
#Algorithm ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def Algorithm @Algorithm end |
#HealthChecker ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def HealthChecker @HealthChecker end |
#K8sService ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def K8sService @K8sService end |
#Nodes ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def Nodes @Nodes end |
#Retries ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def Retries @Retries end |
#Scheme ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def Scheme @Scheme end |
#Tags ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def Tags @Tags end |
#UniqVpcId ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def UniqVpcId @UniqVpcId end |
#UpstreamDescription ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def UpstreamDescription @UpstreamDescription end |
#UpstreamHost ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def UpstreamHost @UpstreamHost end |
#UpstreamName ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def UpstreamName @UpstreamName end |
#UpstreamType ⇒ Object
2685 2686 2687 |
# File 'lib/v20180808/models.rb', line 2685 def UpstreamType @UpstreamType end |
Instance Method Details
#deserialize(params) ⇒ Object
2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 |
# File 'lib/v20180808/models.rb', line 2702 def deserialize(params) @Scheme = params['Scheme'] @Algorithm = params['Algorithm'] @UniqVpcId = params['UniqVpcId'] @UpstreamName = params['UpstreamName'] @UpstreamDescription = params['UpstreamDescription'] @UpstreamType = params['UpstreamType'] @Retries = params['Retries'] @UpstreamHost = params['UpstreamHost'] unless params['Nodes'].nil? @Nodes = [] params['Nodes'].each do |i| upstreamnode_tmp = UpstreamNode.new upstreamnode_tmp.deserialize(i) @Nodes << upstreamnode_tmp end end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end unless params['HealthChecker'].nil? @HealthChecker = UpstreamHealthChecker.new @HealthChecker.deserialize(params['HealthChecker']) end unless params['K8sService'].nil? @K8sService = [] params['K8sService'].each do |i| k8sservice_tmp = K8sService.new k8sservice_tmp.deserialize(i) @K8sService << k8sservice_tmp end end end |