Class: TencentCloud::Cfw::V20190904::CreateAddressTemplateRequest

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

Overview

CreateAddressTemplate请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, detail = nil, ipstring = nil, type = nil, protocoltype = nil, ipversion = nil) ⇒ CreateAddressTemplateRequest

Returns a new instance of CreateAddressTemplateRequest.



903
904
905
906
907
908
909
910
# File 'lib/v20190904/models.rb', line 903

def initialize(name=nil, detail=nil, ipstring=nil, type=nil, protocoltype=nil, ipversion=nil)
  @Name = name
  @Detail = detail
  @IpString = ipstring
  @Type = type
  @ProtocolType = protocoltype
  @IpVersion = ipversion
end

Instance Attribute Details

#DetailObject

Type为5,域名模板eg:www.qq.com,www.tencent.com 5 域名模板6 协议端口模板

Parameters:

  • Name:

    模板名称

  • Detail:

    模板描述

  • IpString:

    Type为1,ip模板eg:1.1.1.1,2.2.2.2;

  • Type:

    1 ip模板

  • ProtocolType:

    协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填

  • IpVersion:

    IP版本,0 IPV4;1 IPV6



901
902
903
# File 'lib/v20190904/models.rb', line 901

def Detail
  @Detail
end

#IpStringObject

Type为5,域名模板eg:www.qq.com,www.tencent.com 5 域名模板6 协议端口模板

Parameters:

  • Name:

    模板名称

  • Detail:

    模板描述

  • IpString:

    Type为1,ip模板eg:1.1.1.1,2.2.2.2;

  • Type:

    1 ip模板

  • ProtocolType:

    协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填

  • IpVersion:

    IP版本,0 IPV4;1 IPV6



901
902
903
# File 'lib/v20190904/models.rb', line 901

def IpString
  @IpString
end

#IpVersionObject

Type为5,域名模板eg:www.qq.com,www.tencent.com 5 域名模板6 协议端口模板

Parameters:

  • Name:

    模板名称

  • Detail:

    模板描述

  • IpString:

    Type为1,ip模板eg:1.1.1.1,2.2.2.2;

  • Type:

    1 ip模板

  • ProtocolType:

    协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填

  • IpVersion:

    IP版本,0 IPV4;1 IPV6



901
902
903
# File 'lib/v20190904/models.rb', line 901

def IpVersion
  @IpVersion
end

#NameObject

Type为5,域名模板eg:www.qq.com,www.tencent.com 5 域名模板6 协议端口模板

Parameters:

  • Name:

    模板名称

  • Detail:

    模板描述

  • IpString:

    Type为1,ip模板eg:1.1.1.1,2.2.2.2;

  • Type:

    1 ip模板

  • ProtocolType:

    协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填

  • IpVersion:

    IP版本,0 IPV4;1 IPV6



901
902
903
# File 'lib/v20190904/models.rb', line 901

def Name
  @Name
end

#ProtocolTypeObject

Type为5,域名模板eg:www.qq.com,www.tencent.com 5 域名模板6 协议端口模板

Parameters:

  • Name:

    模板名称

  • Detail:

    模板描述

  • IpString:

    Type为1,ip模板eg:1.1.1.1,2.2.2.2;

  • Type:

    1 ip模板

  • ProtocolType:

    协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填

  • IpVersion:

    IP版本,0 IPV4;1 IPV6



901
902
903
# File 'lib/v20190904/models.rb', line 901

def ProtocolType
  @ProtocolType
end

#TypeObject

Type为5,域名模板eg:www.qq.com,www.tencent.com 5 域名模板6 协议端口模板

Parameters:

  • Name:

    模板名称

  • Detail:

    模板描述

  • IpString:

    Type为1,ip模板eg:1.1.1.1,2.2.2.2;

  • Type:

    1 ip模板

  • ProtocolType:

    协议端口模板,协议类型,4:4层协议,7:7层协议,Type=6时必填

  • IpVersion:

    IP版本,0 IPV4;1 IPV6



901
902
903
# File 'lib/v20190904/models.rb', line 901

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



912
913
914
915
916
917
918
919
# File 'lib/v20190904/models.rb', line 912

def deserialize(params)
  @Name = params['Name']
  @Detail = params['Detail']
  @IpString = params['IpString']
  @Type = params['Type']
  @ProtocolType = params['ProtocolType']
  @IpVersion = params['IpVersion']
end