Class: TencentCloud::Dc::V20180410::ApplyInternetAddressRequest

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

Overview

ApplyInternetAddress请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(masklen = nil, addrtype = nil, addrproto = nil) ⇒ ApplyInternetAddressRequest

Returns a new instance of ApplyInternetAddressRequest.



153
154
155
156
157
# File 'lib/v20180410/models.rb', line 153

def initialize(masklen=nil, addrtype=nil, addrproto=nil)
  @MaskLen = masklen
  @AddrType = addrtype
  @AddrProto = addrproto
end

Instance Attribute Details

#AddrProtoObject

1:中国电信2:中国移动3:中国联通1:IPv6

Parameters:

  • MaskLen:

    CIDR地址掩码长度

  • AddrType:

    0:BGP类型地址

  • AddrProto:

    0:IPv4



151
152
153
# File 'lib/v20180410/models.rb', line 151

def AddrProto
  @AddrProto
end

#AddrTypeObject

1:中国电信2:中国移动3:中国联通1:IPv6

Parameters:

  • MaskLen:

    CIDR地址掩码长度

  • AddrType:

    0:BGP类型地址

  • AddrProto:

    0:IPv4



151
152
153
# File 'lib/v20180410/models.rb', line 151

def AddrType
  @AddrType
end

#MaskLenObject

1:中国电信2:中国移动3:中国联通1:IPv6

Parameters:

  • MaskLen:

    CIDR地址掩码长度

  • AddrType:

    0:BGP类型地址

  • AddrProto:

    0:IPv4



151
152
153
# File 'lib/v20180410/models.rb', line 151

def MaskLen
  @MaskLen
end

Instance Method Details

#deserialize(params) ⇒ Object



159
160
161
162
163
# File 'lib/v20180410/models.rb', line 159

def deserialize(params)
  @MaskLen = params['MaskLen']
  @AddrType = params['AddrType']
  @AddrProto = params['AddrProto']
end