Class protos.google.cloud.compute.v1.RouterBgpPeer (4.3.0)

Represents a RouterBgpPeer.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.IRouterBgpPeer);

Constructs a new RouterBgpPeer.

Parameter
NameDescription
properties IRouterBgpPeer

Properties to set

Properties

_advertisedRoutePriority

public _advertisedRoutePriority?: "advertisedRoutePriority";

RouterBgpPeer _advertisedRoutePriority.

_advertiseMode

public _advertiseMode?: "advertiseMode";

RouterBgpPeer _advertiseMode.

_bfd

public _bfd?: "bfd";

RouterBgpPeer _bfd.

_customLearnedRoutePriority

public _customLearnedRoutePriority?: "customLearnedRoutePriority";

RouterBgpPeer _customLearnedRoutePriority.

_enable

public _enable?: "enable";

RouterBgpPeer _enable.

_enableIpv6

public _enableIpv6?: "enableIpv6";

RouterBgpPeer _enableIpv6.

_interfaceName

public _interfaceName?: "interfaceName";

RouterBgpPeer _interfaceName.

_ipAddress

public _ipAddress?: "ipAddress";

RouterBgpPeer _ipAddress.

_ipv6NexthopAddress

public _ipv6NexthopAddress?: "ipv6NexthopAddress";

RouterBgpPeer _ipv6NexthopAddress.

_managementType

public _managementType?: "managementType";

RouterBgpPeer _managementType.

_md5AuthenticationKeyName

public _md5AuthenticationKeyName?: "md5AuthenticationKeyName";

RouterBgpPeer _md5AuthenticationKeyName.

_name

public _name?: "name";

RouterBgpPeer _name.

_peerAsn

public _peerAsn?: "peerAsn";

RouterBgpPeer _peerAsn.

_peerIpAddress

public _peerIpAddress?: "peerIpAddress";

RouterBgpPeer _peerIpAddress.

_peerIpv6NexthopAddress

public _peerIpv6NexthopAddress?: "peerIpv6NexthopAddress";

RouterBgpPeer _peerIpv6NexthopAddress.

_routerApplianceInstance

public _routerApplianceInstance?: "routerApplianceInstance";

RouterBgpPeer _routerApplianceInstance.

advertisedGroups

public advertisedGroups: string[];

RouterBgpPeer advertisedGroups.

advertisedIpRanges

public advertisedIpRanges: google.cloud.compute.v1.IRouterAdvertisedIpRange[];

RouterBgpPeer advertisedIpRanges.

advertisedRoutePriority

public advertisedRoutePriority?: (number|null);

RouterBgpPeer advertisedRoutePriority.

advertiseMode

public advertiseMode?: (string|null);

RouterBgpPeer advertiseMode.

bfd

public bfd?: (google.cloud.compute.v1.IRouterBgpPeerBfd|null);

RouterBgpPeer bfd.

customLearnedIpRanges

public customLearnedIpRanges: google.cloud.compute.v1.IRouterBgpPeerCustomLearnedIpRange[];

RouterBgpPeer customLearnedIpRanges.

customLearnedRoutePriority

public customLearnedRoutePriority?: (number|null);

RouterBgpPeer customLearnedRoutePriority.

enable

public enable?: (string|null);

RouterBgpPeer enable.

enableIpv6

public enableIpv6?: (boolean|null);

RouterBgpPeer enableIpv6.

interfaceName

public interfaceName?: (string|null);

RouterBgpPeer interfaceName.

ipAddress

public ipAddress?: (string|null);

RouterBgpPeer ipAddress.

ipv6NexthopAddress

public ipv6NexthopAddress?: (string|null);

RouterBgpPeer ipv6NexthopAddress.

managementType

public managementType?: (string|null);

RouterBgpPeer managementType.

md5AuthenticationKeyName

public md5AuthenticationKeyName?: (string|null);

RouterBgpPeer md5AuthenticationKeyName.

name

public name?: (string|null);

RouterBgpPeer name.

peerAsn

public peerAsn?: (number|null);

RouterBgpPeer peerAsn.

peerIpAddress

public peerIpAddress?: (string|null);

RouterBgpPeer peerIpAddress.

peerIpv6NexthopAddress

public peerIpv6NexthopAddress?: (string|null);

RouterBgpPeer peerIpv6NexthopAddress.

routerApplianceInstance

public routerApplianceInstance?: (string|null);

RouterBgpPeer routerApplianceInstance.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IRouterBgpPeer): google.cloud.compute.v1.RouterBgpPeer;

Creates a new RouterBgpPeer instance using the specified properties.

Parameter
NameDescription
properties IRouterBgpPeer

Properties to set

Returns
TypeDescription
RouterBgpPeer

RouterBgpPeer instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.RouterBgpPeer;

Decodes a RouterBgpPeer message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
RouterBgpPeer

RouterBgpPeer

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.RouterBgpPeer;

Decodes a RouterBgpPeer message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
RouterBgpPeer

RouterBgpPeer

encode(message, writer)

public static encode(message: google.cloud.compute.v1.IRouterBgpPeer, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified RouterBgpPeer message. Does not implicitly messages.

Parameters
NameDescription
message IRouterBgpPeer

RouterBgpPeer message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.compute.v1.IRouterBgpPeer, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified RouterBgpPeer message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IRouterBgpPeer

RouterBgpPeer message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.RouterBgpPeer;

Creates a RouterBgpPeer message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
RouterBgpPeer

RouterBgpPeer

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for RouterBgpPeer

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this RouterBgpPeer to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.compute.v1.RouterBgpPeer, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a RouterBgpPeer message. Also converts values to other types if specified.

Parameters
NameDescription
message RouterBgpPeer

RouterBgpPeer

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a RouterBgpPeer message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not