Class: TencentCloud::Apigateway::V20180808::IPStrategyApi

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

Overview

策略绑定api列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(apiid = nil, apiname = nil, apitype = nil, path = nil, method = nil, otheripstrategyid = nil, otherenvironmentname = nil) ⇒ IPStrategyApi

Returns a new instance of IPStrategyApi.



6550
6551
6552
6553
6554
6555
6556
6557
6558
# File 'lib/v20180808/models.rb', line 6550

def initialize(apiid=nil, apiname=nil, apitype=nil, path=nil, method=nil, otheripstrategyid=nil, otherenvironmentname=nil)
  @ApiId = apiid
  @ApiName = apiname
  @ApiType = apitype
  @Path = path
  @Method = method
  @OtherIPStrategyId = otheripstrategyid
  @OtherEnvironmentName = otherenvironmentname
end

Instance Attribute Details

#ApiIdObject

Parameters:

  • ApiId:

    API 唯一 ID。

  • ApiName:

    用户自定义的 API 名称。

  • ApiType:

    API 类型。取值为NORMAL(普通API)和TSF (微服务API)。

  • Path:

    API 的路径。如 /path。

  • Method:

    API 的请求方法。如 GET。

  • OtherIPStrategyId:

    API 已经绑定的其他策略唯一ID。

  • OtherEnvironmentName:

    API 已经绑定的环境。



6548
6549
6550
# File 'lib/v20180808/models.rb', line 6548

def ApiId
  @ApiId
end

#ApiNameObject

Parameters:

  • ApiId:

    API 唯一 ID。

  • ApiName:

    用户自定义的 API 名称。

  • ApiType:

    API 类型。取值为NORMAL(普通API)和TSF (微服务API)。

  • Path:

    API 的路径。如 /path。

  • Method:

    API 的请求方法。如 GET。

  • OtherIPStrategyId:

    API 已经绑定的其他策略唯一ID。

  • OtherEnvironmentName:

    API 已经绑定的环境。



6548
6549
6550
# File 'lib/v20180808/models.rb', line 6548

def ApiName
  @ApiName
end

#ApiTypeObject

Parameters:

  • ApiId:

    API 唯一 ID。

  • ApiName:

    用户自定义的 API 名称。

  • ApiType:

    API 类型。取值为NORMAL(普通API)和TSF (微服务API)。

  • Path:

    API 的路径。如 /path。

  • Method:

    API 的请求方法。如 GET。

  • OtherIPStrategyId:

    API 已经绑定的其他策略唯一ID。

  • OtherEnvironmentName:

    API 已经绑定的环境。



6548
6549
6550
# File 'lib/v20180808/models.rb', line 6548

def ApiType
  @ApiType
end

#MethodObject

Parameters:

  • ApiId:

    API 唯一 ID。

  • ApiName:

    用户自定义的 API 名称。

  • ApiType:

    API 类型。取值为NORMAL(普通API)和TSF (微服务API)。

  • Path:

    API 的路径。如 /path。

  • Method:

    API 的请求方法。如 GET。

  • OtherIPStrategyId:

    API 已经绑定的其他策略唯一ID。

  • OtherEnvironmentName:

    API 已经绑定的环境。



6548
6549
6550
# File 'lib/v20180808/models.rb', line 6548

def Method
  @Method
end

#OtherEnvironmentNameObject

Parameters:

  • ApiId:

    API 唯一 ID。

  • ApiName:

    用户自定义的 API 名称。

  • ApiType:

    API 类型。取值为NORMAL(普通API)和TSF (微服务API)。

  • Path:

    API 的路径。如 /path。

  • Method:

    API 的请求方法。如 GET。

  • OtherIPStrategyId:

    API 已经绑定的其他策略唯一ID。

  • OtherEnvironmentName:

    API 已经绑定的环境。



6548
6549
6550
# File 'lib/v20180808/models.rb', line 6548

def OtherEnvironmentName
  @OtherEnvironmentName
end

#OtherIPStrategyIdObject

Parameters:

  • ApiId:

    API 唯一 ID。

  • ApiName:

    用户自定义的 API 名称。

  • ApiType:

    API 类型。取值为NORMAL(普通API)和TSF (微服务API)。

  • Path:

    API 的路径。如 /path。

  • Method:

    API 的请求方法。如 GET。

  • OtherIPStrategyId:

    API 已经绑定的其他策略唯一ID。

  • OtherEnvironmentName:

    API 已经绑定的环境。



6548
6549
6550
# File 'lib/v20180808/models.rb', line 6548

def OtherIPStrategyId
  @OtherIPStrategyId
end

#PathObject

Parameters:

  • ApiId:

    API 唯一 ID。

  • ApiName:

    用户自定义的 API 名称。

  • ApiType:

    API 类型。取值为NORMAL(普通API)和TSF (微服务API)。

  • Path:

    API 的路径。如 /path。

  • Method:

    API 的请求方法。如 GET。

  • OtherIPStrategyId:

    API 已经绑定的其他策略唯一ID。

  • OtherEnvironmentName:

    API 已经绑定的环境。



6548
6549
6550
# File 'lib/v20180808/models.rb', line 6548

def Path
  @Path
end

Instance Method Details

#deserialize(params) ⇒ Object



6560
6561
6562
6563
6564
6565
6566
6567
6568
# File 'lib/v20180808/models.rb', line 6560

def deserialize(params)
  @ApiId = params['ApiId']
  @ApiName = params['ApiName']
  @ApiType = params['ApiType']
  @Path = params['Path']
  @Method = params['Method']
  @OtherIPStrategyId = params['OtherIPStrategyId']
  @OtherEnvironmentName = params['OtherEnvironmentName']
end