Class: TencentCloud::Tse::V20201207::CreateOrModifyCloudNativeAPIGatewayIPRestrictionRequest

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

Overview

CreateOrModifyCloudNativeAPIGatewayIPRestriction请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gatewayid = nil, sourcetype = nil, sourceid = nil, enabled = nil, restrictiontype = nil, addresslist = nil) ⇒ CreateOrModifyCloudNativeAPIGatewayIPRestrictionRequest

Returns a new instance of CreateOrModifyCloudNativeAPIGatewayIPRestrictionRequest.



3068
3069
3070
3071
3072
3073
3074
3075
# File 'lib/v20201207/models.rb', line 3068

def initialize(gatewayid=nil, sourcetype=nil, sourceid=nil, enabled=nil, restrictiontype=nil, addresslist=nil)
  @GatewayId = gatewayid
  @SourceType = sourcetype
  @SourceId = sourceid
  @Enabled = enabled
  @RestrictionType = restrictiontype
  @AddressList = addresslist
end

Instance Attribute Details

#AddressListObject

Parameters:

  • GatewayId:

    网关ID

  • SourceType:

    访问控制插件绑定的资源类型:route|service

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



3066
3067
3068
# File 'lib/v20201207/models.rb', line 3066

def AddressList
  @AddressList
end

#EnabledObject

Parameters:

  • GatewayId:

    网关ID

  • SourceType:

    访问控制插件绑定的资源类型:route|service

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



3066
3067
3068
# File 'lib/v20201207/models.rb', line 3066

def Enabled
  @Enabled
end

#GatewayIdObject

Parameters:

  • GatewayId:

    网关ID

  • SourceType:

    访问控制插件绑定的资源类型:route|service

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



3066
3067
3068
# File 'lib/v20201207/models.rb', line 3066

def GatewayId
  @GatewayId
end

#RestrictionTypeObject

Parameters:

  • GatewayId:

    网关ID

  • SourceType:

    访问控制插件绑定的资源类型:route|service

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



3066
3067
3068
# File 'lib/v20201207/models.rb', line 3066

def RestrictionType
  @RestrictionType
end

#SourceIdObject

Parameters:

  • GatewayId:

    网关ID

  • SourceType:

    访问控制插件绑定的资源类型:route|service

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



3066
3067
3068
# File 'lib/v20201207/models.rb', line 3066

def SourceId
  @SourceId
end

#SourceTypeObject

Parameters:

  • GatewayId:

    网关ID

  • SourceType:

    访问控制插件绑定的资源类型:route|service

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



3066
3067
3068
# File 'lib/v20201207/models.rb', line 3066

def SourceType
  @SourceType
end

Instance Method Details

#deserialize(params) ⇒ Object



3077
3078
3079
3080
3081
3082
3083
3084
# File 'lib/v20201207/models.rb', line 3077

def deserialize(params)
  @GatewayId = params['GatewayId']
  @SourceType = params['SourceType']
  @SourceId = params['SourceId']
  @Enabled = params['Enabled']
  @RestrictionType = params['RestrictionType']
  @AddressList = params['AddressList']
end