Class: TencentCloud::Tse::V20201207::ModifyCloudNativeAPIGatewayServiceRequest

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

Overview

ModifyCloudNativeAPIGatewayService请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gatewayid = nil, name = nil, protocol = nil, timeout = nil, retries = nil, upstreamtype = nil, upstreaminfo = nil, id = nil, path = nil) ⇒ ModifyCloudNativeAPIGatewayServiceRequest

Returns a new instance of ModifyCloudNativeAPIGatewayServiceRequest.



10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
# File 'lib/v20201207/models.rb', line 10008

def initialize(gatewayid=nil, name=nil, protocol=nil, timeout=nil, retries=nil, upstreamtype=nil, upstreaminfo=nil, id=nil, path=nil)
  @GatewayId = gatewayid
  @Name = name
  @Protocol = protocol
  @Timeout = timeout
  @Retries = retries
  @UpstreamType = upstreamtype
  @UpstreamInfo = upstreaminfo
  @ID = id
  @Path = path
end

Instance Attribute Details

#GatewayIdObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def GatewayId
  @GatewayId
end

#IDObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def ID
  @ID
end

#NameObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def Name
  @Name
end

#PathObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def Path
  @Path
end

#ProtocolObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def Protocol
  @Protocol
end

#RetriesObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def Retries
  @Retries
end

#TimeoutObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def Timeout
  @Timeout
end

#UpstreamInfoObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def UpstreamInfo
  @UpstreamInfo
end

#UpstreamTypeObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置

  • ID:

    服务ID

  • Path:

    请求路径



10006
10007
10008
# File 'lib/v20201207/models.rb', line 10006

def UpstreamType
  @UpstreamType
end

Instance Method Details

#deserialize(params) ⇒ Object



10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
# File 'lib/v20201207/models.rb', line 10020

def deserialize(params)
  @GatewayId = params['GatewayId']
  @Name = params['Name']
  @Protocol = params['Protocol']
  @Timeout = params['Timeout']
  @Retries = params['Retries']
  @UpstreamType = params['UpstreamType']
  unless params['UpstreamInfo'].nil?
    @UpstreamInfo = KongUpstreamInfo.new
    @UpstreamInfo.deserialize(params['UpstreamInfo'])
  end
  @ID = params['ID']
  @Path = params['Path']
end