Class: TencentCloud::Bh::V20230418::DescribeAccessWhiteListRulesResponse

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

Overview

DescribeAccessWhiteListRules返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, accesswhitelistruleset = nil, allowany = nil, allowauto = nil, requestid = nil) ⇒ DescribeAccessWhiteListRulesResponse

Returns a new instance of DescribeAccessWhiteListRulesResponse.



2367
2368
2369
2370
2371
2372
2373
# File 'lib/v20230418/models.rb', line 2367

def initialize(totalcount=nil, accesswhitelistruleset=nil, allowany=nil, allowauto=nil, requestid=nil)
  @TotalCount = totalcount
  @AccessWhiteListRuleSet = accesswhitelistruleset
  @AllowAny = allowany
  @AllowAuto = allowauto
  @RequestId = requestid
end

Instance Attribute Details

#AccessWhiteListRuleSetObject

Parameters:

  • TotalCount:

    记录总数

  • AccessWhiteListRuleSet:

    访问白名单规则列表

  • AllowAny:

    是否放开全部来源IP,如果为true,TotalCount为0,AccessWhiteListRuleSet为空

  • AllowAuto:

    是否开启自动添加来源IP, 如果为true, 在开启访问白名单的情况下将自动添加来源IP

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2365
2366
2367
# File 'lib/v20230418/models.rb', line 2365

def AccessWhiteListRuleSet
  @AccessWhiteListRuleSet
end

#AllowAnyObject

Parameters:

  • TotalCount:

    记录总数

  • AccessWhiteListRuleSet:

    访问白名单规则列表

  • AllowAny:

    是否放开全部来源IP,如果为true,TotalCount为0,AccessWhiteListRuleSet为空

  • AllowAuto:

    是否开启自动添加来源IP, 如果为true, 在开启访问白名单的情况下将自动添加来源IP

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2365
2366
2367
# File 'lib/v20230418/models.rb', line 2365

def AllowAny
  @AllowAny
end

#AllowAutoObject

Parameters:

  • TotalCount:

    记录总数

  • AccessWhiteListRuleSet:

    访问白名单规则列表

  • AllowAny:

    是否放开全部来源IP,如果为true,TotalCount为0,AccessWhiteListRuleSet为空

  • AllowAuto:

    是否开启自动添加来源IP, 如果为true, 在开启访问白名单的情况下将自动添加来源IP

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2365
2366
2367
# File 'lib/v20230418/models.rb', line 2365

def AllowAuto
  @AllowAuto
end

#RequestIdObject

Parameters:

  • TotalCount:

    记录总数

  • AccessWhiteListRuleSet:

    访问白名单规则列表

  • AllowAny:

    是否放开全部来源IP,如果为true,TotalCount为0,AccessWhiteListRuleSet为空

  • AllowAuto:

    是否开启自动添加来源IP, 如果为true, 在开启访问白名单的情况下将自动添加来源IP

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2365
2366
2367
# File 'lib/v20230418/models.rb', line 2365

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    记录总数

  • AccessWhiteListRuleSet:

    访问白名单规则列表

  • AllowAny:

    是否放开全部来源IP,如果为true,TotalCount为0,AccessWhiteListRuleSet为空

  • AllowAuto:

    是否开启自动添加来源IP, 如果为true, 在开启访问白名单的情况下将自动添加来源IP

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



2365
2366
2367
# File 'lib/v20230418/models.rb', line 2365

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
# File 'lib/v20230418/models.rb', line 2375

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['AccessWhiteListRuleSet'].nil?
    @AccessWhiteListRuleSet = []
    params['AccessWhiteListRuleSet'].each do |i|
      accesswhitelistrule_tmp = AccessWhiteListRule.new
      accesswhitelistrule_tmp.deserialize(i)
      @AccessWhiteListRuleSet << accesswhitelistrule_tmp
    end
  end
  @AllowAny = params['AllowAny']
  @AllowAuto = params['AllowAuto']
  @RequestId = params['RequestId']
end