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.



6538
6539
6540
6541
6542
6543
6544
# File 'lib/v20201207/models.rb', line 6538

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



6536
6537
6538
# File 'lib/v20201207/models.rb', line 6536

def AddressList
  @AddressList
end

#EnabledObject

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

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6536
6537
6538
# File 'lib/v20201207/models.rb', line 6536

def Enabled
  @Enabled
end

#RestrictionTypeObject

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

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6536
6537
6538
# File 'lib/v20201207/models.rb', line 6536

def RestrictionType
  @RestrictionType
end

#SourceIdObject

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

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6536
6537
6538
# File 'lib/v20201207/models.rb', line 6536

def SourceId
  @SourceId
end

#SourceTypeObject

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

Parameters:

  • SourceType:

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

  • SourceId:

    路由或服务的id

  • Enabled:

    是否启用插件

  • RestrictionType:

    访问控制类型:whiteList|blackList

  • AddressList:

    cidr|ip



6536
6537
6538
# File 'lib/v20201207/models.rb', line 6536

def SourceType
  @SourceType
end

Instance Method Details

#deserialize(params) ⇒ Object



6546
6547
6548
6549
6550
6551
6552
# File 'lib/v20201207/models.rb', line 6546

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