Class: TencentCloud::Apigateway::V20180808::ServiceConfig

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

Overview

ServiceConfig配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(product = nil, uniqvpcid = nil, url = nil, path = nil, method = nil, upstreamid = nil, cosconfig = nil) ⇒ ServiceConfig

Returns a new instance of ServiceConfig.



8697
8698
8699
8700
8701
8702
8703
8704
8705
# File 'lib/v20180808/models.rb', line 8697

def initialize(product=nil, uniqvpcid=nil, url=nil, path=nil, method=nil, upstreamid=nil, cosconfig=nil)
  @Product = product
  @UniqVpcId = uniqvpcid
  @Url = url
  @Path = path
  @Method = method
  @UpstreamId = upstreamid
  @CosConfig = cosconfig
end

Instance Attribute Details

#CosConfigObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Product:

    后端类型。启用vpc时生效,目前支持的类型为clb, cvm和upstream

  • UniqVpcId:

    vpc 的唯一ID。

  • Url:

    API 的后端服务url。如果ServiceType是HTTP,则此参数必传。

  • Path:

    API 的后端服务路径,如 /path。如果 ServiceType 是 HTTP,则此参数必传。前后端路径可不同。

  • Method:

    API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。

  • UpstreamId:

    当绑定vpc通道才需要

  • CosConfig:

    API后端COS配置。如果 ServiceType 是 COS,则此参数必传。



8695
8696
8697
# File 'lib/v20180808/models.rb', line 8695

def CosConfig
  @CosConfig
end

#MethodObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Product:

    后端类型。启用vpc时生效,目前支持的类型为clb, cvm和upstream

  • UniqVpcId:

    vpc 的唯一ID。

  • Url:

    API 的后端服务url。如果ServiceType是HTTP,则此参数必传。

  • Path:

    API 的后端服务路径,如 /path。如果 ServiceType 是 HTTP,则此参数必传。前后端路径可不同。

  • Method:

    API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。

  • UpstreamId:

    当绑定vpc通道才需要

  • CosConfig:

    API后端COS配置。如果 ServiceType 是 COS,则此参数必传。



8695
8696
8697
# File 'lib/v20180808/models.rb', line 8695

def Method
  @Method
end

#PathObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Product:

    后端类型。启用vpc时生效,目前支持的类型为clb, cvm和upstream

  • UniqVpcId:

    vpc 的唯一ID。

  • Url:

    API 的后端服务url。如果ServiceType是HTTP,则此参数必传。

  • Path:

    API 的后端服务路径,如 /path。如果 ServiceType 是 HTTP,则此参数必传。前后端路径可不同。

  • Method:

    API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。

  • UpstreamId:

    当绑定vpc通道才需要

  • CosConfig:

    API后端COS配置。如果 ServiceType 是 COS,则此参数必传。



8695
8696
8697
# File 'lib/v20180808/models.rb', line 8695

def Path
  @Path
end

#ProductObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Product:

    后端类型。启用vpc时生效,目前支持的类型为clb, cvm和upstream

  • UniqVpcId:

    vpc 的唯一ID。

  • Url:

    API 的后端服务url。如果ServiceType是HTTP,则此参数必传。

  • Path:

    API 的后端服务路径,如 /path。如果 ServiceType 是 HTTP,则此参数必传。前后端路径可不同。

  • Method:

    API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。

  • UpstreamId:

    当绑定vpc通道才需要

  • CosConfig:

    API后端COS配置。如果 ServiceType 是 COS,则此参数必传。



8695
8696
8697
# File 'lib/v20180808/models.rb', line 8695

def Product
  @Product
end

#UniqVpcIdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Product:

    后端类型。启用vpc时生效,目前支持的类型为clb, cvm和upstream

  • UniqVpcId:

    vpc 的唯一ID。

  • Url:

    API 的后端服务url。如果ServiceType是HTTP,则此参数必传。

  • Path:

    API 的后端服务路径,如 /path。如果 ServiceType 是 HTTP,则此参数必传。前后端路径可不同。

  • Method:

    API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。

  • UpstreamId:

    当绑定vpc通道才需要

  • CosConfig:

    API后端COS配置。如果 ServiceType 是 COS,则此参数必传。



8695
8696
8697
# File 'lib/v20180808/models.rb', line 8695

def UniqVpcId
  @UniqVpcId
end

#UpstreamIdObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Product:

    后端类型。启用vpc时生效,目前支持的类型为clb, cvm和upstream

  • UniqVpcId:

    vpc 的唯一ID。

  • Url:

    API 的后端服务url。如果ServiceType是HTTP,则此参数必传。

  • Path:

    API 的后端服务路径,如 /path。如果 ServiceType 是 HTTP,则此参数必传。前后端路径可不同。

  • Method:

    API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。

  • UpstreamId:

    当绑定vpc通道才需要

  • CosConfig:

    API后端COS配置。如果 ServiceType 是 COS,则此参数必传。



8695
8696
8697
# File 'lib/v20180808/models.rb', line 8695

def UpstreamId
  @UpstreamId
end

#UrlObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Product:

    后端类型。启用vpc时生效,目前支持的类型为clb, cvm和upstream

  • UniqVpcId:

    vpc 的唯一ID。

  • Url:

    API 的后端服务url。如果ServiceType是HTTP,则此参数必传。

  • Path:

    API 的后端服务路径,如 /path。如果 ServiceType 是 HTTP,则此参数必传。前后端路径可不同。

  • Method:

    API的后端服务请求方法,如 GET。如果 ServiceType 是 HTTP,则此参数必传。前后端方法可不同。

  • UpstreamId:

    当绑定vpc通道才需要

  • CosConfig:

    API后端COS配置。如果 ServiceType 是 COS,则此参数必传。



8695
8696
8697
# File 'lib/v20180808/models.rb', line 8695

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
# File 'lib/v20180808/models.rb', line 8707

def deserialize(params)
  @Product = params['Product']
  @UniqVpcId = params['UniqVpcId']
  @Url = params['Url']
  @Path = params['Path']
  @Method = params['Method']
  @UpstreamId = params['UpstreamId']
  unless params['CosConfig'].nil?
    @CosConfig = CosConfig.new
    @CosConfig.deserialize(params['CosConfig'])
  end
end