Class: TencentCloud::Tcr::V20190924::ModifyNamespaceRequest

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

Overview

ModifyNamespace请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(registryid = nil, namespacename = nil, ispublic = nil, isautoscan = nil, ispreventvul = nil, severity = nil, cvewhitelistitems = nil) ⇒ ModifyNamespaceRequest

Returns a new instance of ModifyNamespaceRequest.



5421
5422
5423
5424
5425
5426
5427
5428
5429
# File 'lib/v20190924/models.rb', line 5421

def initialize(registryid=nil, namespacename=nil, ispublic=nil, isautoscan=nil, ispreventvul=nil, severity=nil, cvewhitelistitems=nil)
  @RegistryId = registryid
  @NamespaceName = namespacename
  @IsPublic = ispublic
  @IsAutoScan = isautoscan
  @IsPreventVUL = ispreventvul
  @Severity = severity
  @CVEWhitelistItems = cvewhitelistitems
end

Instance Attribute Details

#CVEWhitelistItems ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • NamespaceName: —

    命名空间名称

  • IsPublic: —

    访问级别,True为公开,False为私有

  • IsAutoScan: —

    扫描级别,True为自动,False为手动

  • IsPreventVUL: —

    阻断开关,True为开放,False为关闭

  • Severity: —

    阻断漏洞等级,目前仅支持 low、medium、high

  • CVEWhitelistItems: —

    漏洞白名单列表



5419
5420
5421
# File 'lib/v20190924/models.rb', line 5419

def CVEWhitelistItems
  @CVEWhitelistItems
end

#IsAutoScan ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • NamespaceName: —

    命名空间名称

  • IsPublic: —

    访问级别,True为公开,False为私有

  • IsAutoScan: —

    扫描级别,True为自动,False为手动

  • IsPreventVUL: —

    阻断开关,True为开放,False为关闭

  • Severity: —

    阻断漏洞等级,目前仅支持 low、medium、high

  • CVEWhitelistItems: —

    漏洞白名单列表



5419
5420
5421
# File 'lib/v20190924/models.rb', line 5419

def IsAutoScan
  @IsAutoScan
end

#IsPreventVUL ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • NamespaceName: —

    命名空间名称

  • IsPublic: —

    访问级别,True为公开,False为私有

  • IsAutoScan: —

    扫描级别,True为自动,False为手动

  • IsPreventVUL: —

    阻断开关,True为开放,False为关闭

  • Severity: —

    阻断漏洞等级,目前仅支持 low、medium、high

  • CVEWhitelistItems: —

    漏洞白名单列表



5419
5420
5421
# File 'lib/v20190924/models.rb', line 5419

def IsPreventVUL
  @IsPreventVUL
end

#IsPublic ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • NamespaceName: —

    命名空间名称

  • IsPublic: —

    访问级别,True为公开,False为私有

  • IsAutoScan: —

    扫描级别,True为自动,False为手动

  • IsPreventVUL: —

    阻断开关,True为开放,False为关闭

  • Severity: —

    阻断漏洞等级,目前仅支持 low、medium、high

  • CVEWhitelistItems: —

    漏洞白名单列表



5419
5420
5421
# File 'lib/v20190924/models.rb', line 5419

def IsPublic
  @IsPublic
end

#NamespaceName ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • NamespaceName: —

    命名空间名称

  • IsPublic: —

    访问级别,True为公开,False为私有

  • IsAutoScan: —

    扫描级别,True为自动,False为手动

  • IsPreventVUL: —

    阻断开关,True为开放,False为关闭

  • Severity: —

    阻断漏洞等级,目前仅支持 low、medium、high

  • CVEWhitelistItems: —

    漏洞白名单列表



5419
5420
5421
# File 'lib/v20190924/models.rb', line 5419

def NamespaceName
  @NamespaceName
end

#RegistryId ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • NamespaceName: —

    命名空间名称

  • IsPublic: —

    访问级别,True为公开,False为私有

  • IsAutoScan: —

    扫描级别,True为自动,False为手动

  • IsPreventVUL: —

    阻断开关,True为开放,False为关闭

  • Severity: —

    阻断漏洞等级,目前仅支持 low、medium、high

  • CVEWhitelistItems: —

    漏洞白名单列表



5419
5420
5421
# File 'lib/v20190924/models.rb', line 5419

def RegistryId
  @RegistryId
end

#Severity ⇒ Object

Parameters:

  • RegistryId: —

    实例Id

  • NamespaceName: —

    命名空间名称

  • IsPublic: —

    访问级别,True为公开,False为私有

  • IsAutoScan: —

    扫描级别,True为自动,False为手动

  • IsPreventVUL: —

    阻断开关,True为开放,False为关闭

  • Severity: —

    阻断漏洞等级,目前仅支持 low、medium、high

  • CVEWhitelistItems: —

    漏洞白名单列表



5419
5420
5421
# File 'lib/v20190924/models.rb', line 5419

def Severity
  @Severity
end

Instance Method Details

#deserialize(params) ⇒ Object



5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
# File 'lib/v20190924/models.rb', line 5431

def deserialize(params)
  @RegistryId = params['RegistryId']
  @NamespaceName = params['NamespaceName']
  @IsPublic = params['IsPublic']
  @IsAutoScan = params['IsAutoScan']
  @IsPreventVUL = params['IsPreventVUL']
  @Severity = params['Severity']
  unless params['CVEWhitelistItems'].nil?
    @CVEWhitelistItems = []
    params['CVEWhitelistItems'].each do |i|
      cvewhitelistitem_tmp = CVEWhitelistItem.new
      cvewhitelistitem_tmp.deserialize(i)
      @CVEWhitelistItems << cvewhitelistitem_tmp
    end
  end
end