Class: TencentCloud::Tcr::V20190924::CreateNamespaceRequest

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

Overview

CreateNamespace请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CreateNamespaceRequest.



808
809
810
811
812
813
814
815
816
817
# File 'lib/v20190924/models.rb', line 808

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

Instance Attribute Details

#CVEWhitelistItems ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def CVEWhitelistItems
  @CVEWhitelistItems
end

#IsAutoScan ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def IsAutoScan
  @IsAutoScan
end

#IsPreventVUL ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def IsPreventVUL
  @IsPreventVUL
end

#IsPublic ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def IsPublic
  @IsPublic
end

#NamespaceName ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def NamespaceName
  @NamespaceName
end

#RegistryId ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def RegistryId
  @RegistryId
end

#Severity ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def Severity
  @Severity
end

#TagSpecification ⇒ Object

Parameters:

  • RegistryId: —

    实例ID

  • NamespaceName: —

    命名空间的名称(长度2-30个字符,只能包含小写字母、数字及分隔符("."、"_"、"-"),且不能以分隔符开头、结尾或连续)

  • IsPublic: —

    是否公开,true为公开,fale为私有

  • TagSpecification: —

    云标签描述

  • IsAutoScan: —

    自动扫描级别,true为自动,false为手动

  • IsPreventVUL: —

    安全阻断级别,true为自动,false为手动

  • Severity: —

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

  • CVEWhitelistItems: —

    漏洞白名单列表



806
807
808
# File 'lib/v20190924/models.rb', line 806

def TagSpecification
  @TagSpecification
end

Instance Method Details

#deserialize(params) ⇒ Object



819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
# File 'lib/v20190924/models.rb', line 819

def deserialize(params)
  @RegistryId = params['RegistryId']
  @NamespaceName = params['NamespaceName']
  @IsPublic = params['IsPublic']
  unless params['TagSpecification'].nil?
    @TagSpecification = TagSpecification.new
    @TagSpecification.deserialize(params['TagSpecification'])
  end
  @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