Class: TencentCloud::Apigateway::V20180808::ModifyUpstreamRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Apigateway::V20180808::ModifyUpstreamRequest
- Defined in:
- lib/v20180808/models.rb
Overview
ModifyUpstream请求参数结构体
Instance Attribute Summary collapse
- #Algorithm ⇒ Object
- #HealthChecker ⇒ Object
- #K8sService ⇒ Object
- #Nodes ⇒ Object
- #Retries ⇒ Object
- #Scheme ⇒ Object
- #UniqVpcId ⇒ Object
- #UpstreamDescription ⇒ Object
- #UpstreamHost ⇒ Object
- #UpstreamId ⇒ Object
- #UpstreamName ⇒ Object
- #UpstreamType ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(upstreamid = nil, upstreamname = nil, upstreamdescription = nil, scheme = nil, upstreamtype = nil, algorithm = nil, uniqvpcid = nil, retries = nil, upstreamhost = nil, nodes = nil, healthchecker = nil, k8sservice = nil) ⇒ ModifyUpstreamRequest
constructor
A new instance of ModifyUpstreamRequest.
Constructor Details
#initialize(upstreamid = nil, upstreamname = nil, upstreamdescription = nil, scheme = nil, upstreamtype = nil, algorithm = nil, uniqvpcid = nil, retries = nil, upstreamhost = nil, nodes = nil, healthchecker = nil, k8sservice = nil) ⇒ ModifyUpstreamRequest
Returns a new instance of ModifyUpstreamRequest.
7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 |
# File 'lib/v20180808/models.rb', line 7891 def initialize(upstreamid=nil, upstreamname=nil, upstreamdescription=nil, scheme=nil, upstreamtype=nil, algorithm=nil, uniqvpcid=nil, retries=nil, upstreamhost=nil, nodes=nil, healthchecker=nil, k8sservice=nil) @UpstreamId = upstreamid @UpstreamName = upstreamname @UpstreamDescription = upstreamdescription @Scheme = scheme @UpstreamType = upstreamtype @Algorithm = algorithm @UniqVpcId = uniqvpcid @Retries = retries @UpstreamHost = upstreamhost @Nodes = nodes @HealthChecker = healthchecker @K8sService = k8sservice end |
Instance Attribute Details
#Algorithm ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def Algorithm @Algorithm end |
#HealthChecker ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def HealthChecker @HealthChecker end |
#K8sService ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def K8sService @K8sService end |
#Nodes ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def Nodes @Nodes end |
#Retries ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def Retries @Retries end |
#Scheme ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def Scheme @Scheme end |
#UniqVpcId ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def UniqVpcId @UniqVpcId end |
#UpstreamDescription ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def UpstreamDescription @UpstreamDescription end |
#UpstreamHost ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def UpstreamHost @UpstreamHost end |
#UpstreamId ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def UpstreamId @UpstreamId end |
#UpstreamName ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def UpstreamName @UpstreamName end |
#UpstreamType ⇒ Object
7889 7890 7891 |
# File 'lib/v20180808/models.rb', line 7889 def UpstreamType @UpstreamType end |
Instance Method Details
#deserialize(params) ⇒ Object
7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 |
# File 'lib/v20180808/models.rb', line 7906 def deserialize(params) @UpstreamId = params['UpstreamId'] @UpstreamName = params['UpstreamName'] @UpstreamDescription = params['UpstreamDescription'] @Scheme = params['Scheme'] @UpstreamType = params['UpstreamType'] @Algorithm = params['Algorithm'] @UniqVpcId = params['UniqVpcId'] @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['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 |