Class: TencentCloud::Tse::V20201207::DescribeKongIpRestrictionResult

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

Overview

查询云原生网关访问控制配置出参

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeKongIpRestrictionResult.



6559
6560
6561
6562
6563
6564
6565
# File 'lib/v20201207/models.rb', line 6559

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

Instance Attribute Details

#AddressListObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6557
6558
6559
# File 'lib/v20201207/models.rb', line 6557

def AddressList
  @AddressList
end

#EnabledObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6557
6558
6559
# File 'lib/v20201207/models.rb', line 6557

def Enabled
  @Enabled
end

#RestrictionTypeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6557
6558
6559
# File 'lib/v20201207/models.rb', line 6557

def RestrictionType
  @RestrictionType
end

#SourceIdObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6557
6558
6559
# File 'lib/v20201207/models.rb', line 6557

def SourceId
  @SourceId
end

#SourceTypeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6557
6558
6559
# File 'lib/v20201207/models.rb', line 6557

def SourceType
  @SourceType
end

Instance Method Details

#deserialize(params) ⇒ Object



6567
6568
6569
6570
6571
6572
6573
# File 'lib/v20201207/models.rb', line 6567

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