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, path = nil, timeout = nil, retries = nil, upstreamtype = nil, upstreaminfo = nil) ⇒ CreateCloudNativeAPIGatewayServiceRequest

Returns a new instance of CreateCloudNativeAPIGatewayServiceRequest.



1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
# File 'lib/v20201207/models.rb', line 1529

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

Instance Attribute Details

#GatewayIdObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def GatewayId
  @GatewayId
end

#NameObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def Name
  @Name
end

#PathObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def Path
  @Path
end

#ProtocolObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def Protocol
  @Protocol
end

#RetriesObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def Retries
  @Retries
end

#TimeoutObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def Timeout
  @Timeout
end

#UpstreamInfoObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def UpstreamInfo
  @UpstreamInfo
end

#UpstreamTypeObject

  • https

  • http

  • tcp

  • udp

  • Kubernetes

  • Registry

  • IPList

  • HostIP

  • Scf

Parameters:

  • GatewayId:

    网关ID

  • Name:

    服务名称

  • Protocol:

    请求协议:

  • Path:

    请求路径

  • Timeout:

    超时时间,单位ms

  • Retries:

    重试次数

  • UpstreamType:

    服务类型:

  • UpstreamInfo:

    服务配置信息



1527
1528
1529
# File 'lib/v20201207/models.rb', line 1527

def UpstreamType
  @UpstreamType
end

Instance Method Details

#deserialize(params) ⇒ Object



1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
# File 'lib/v20201207/models.rb', line 1540

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