Class: TencentCloud::Dc::V20180410::BgpPeer

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

Overview

bgp参数,包括CloudAsn,Asn,AuthKey

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cloudasn = nil, asn = nil, authkey = nil) ⇒ BgpPeer

Returns a new instance of BgpPeer.



241
242
243
244
245
# File 'lib/v20180410/models.rb', line 241

def initialize(cloudasn=nil, asn=nil, authkey=nil)
  @CloudAsn = cloudasn
  @Asn = asn
  @AuthKey = authkey
end

Instance Attribute Details

#Asn ⇒ Object

Parameters:

  • CloudAsn: —

    腾讯侧BGP ASN

  • Asn: —

    用户侧BGP ASN

  • AuthKey: —

    用户侧BGP密钥



239
240
241
# File 'lib/v20180410/models.rb', line 239

def Asn
  @Asn
end

#AuthKey ⇒ Object

Parameters:

  • CloudAsn: —

    腾讯侧BGP ASN

  • Asn: —

    用户侧BGP ASN

  • AuthKey: —

    用户侧BGP密钥



239
240
241
# File 'lib/v20180410/models.rb', line 239

def AuthKey
  @AuthKey
end

#CloudAsn ⇒ Object

Parameters:

  • CloudAsn: —

    腾讯侧BGP ASN

  • Asn: —

    用户侧BGP ASN

  • AuthKey: —

    用户侧BGP密钥



239
240
241
# File 'lib/v20180410/models.rb', line 239

def CloudAsn
  @CloudAsn
end

Instance Method Details

#deserialize(params) ⇒ Object



247
248
249
250
251
# File 'lib/v20180410/models.rb', line 247

def deserialize(params)
  @CloudAsn = params['CloudAsn']
  @Asn = params['Asn']
  @AuthKey = params['AuthKey']
end