Class: TencentCloud::Tse::V20201207::CreateCloudNativeAPIGatewayServiceRequest

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

Overview

CreateCloudNativeAPIGatewayService请求参数结构体

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, path = nil) ⇒ CreateCloudNativeAPIGatewayServiceRequest

Returns a new instance of CreateCloudNativeAPIGatewayServiceRequest.



2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
# File 'lib/v20201207/models.rb', line 2344

def initialize(gatewayid=nil, name=nil, protocol=nil, timeout=nil, retries=nil, upstreamtype=nil, upstreaminfo=nil, path=nil)
  @GatewayId = gatewayid
  @Name = name
  @Protocol = protocol
  @Timeout = timeout
  @Retries = retries
  @UpstreamType = upstreamtype
  @UpstreamInfo = upstreaminfo
  @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:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def GatewayId
  @GatewayId
end

#NameObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def Name
  @Name
end

#PathObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def Path
  @Path
end

#ProtocolObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def Protocol
  @Protocol
end

#RetriesObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def Retries
  @Retries
end

#TimeoutObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def Timeout
  @Timeout
end

#UpstreamInfoObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def UpstreamInfo
  @UpstreamInfo
end

#UpstreamTypeObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息

  • Path:

    请求路径



2342
2343
2344
# File 'lib/v20201207/models.rb', line 2342

def UpstreamType
  @UpstreamType
end

Instance Method Details

#deserialize(params) ⇒ Object



2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
# File 'lib/v20201207/models.rb', line 2355

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
  @Path = params['Path']
end