Class protos.google.cloud.compute.v1.RouterBgpPeer (3.0.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.

_interfaceName

public _interfaceName?: "interfaceName";

RouterBgpPeer _interfaceName.

_ipAddress

public _ipAddress?: "ipAddress";

RouterBgpPeer _ipAddress.

_managementType

public _managementType?: "managementType";

RouterBgpPeer _managementType.

_name

public _name?: "name";

RouterBgpPeer _name.

_peerAsn

public _peerAsn?: "peerAsn";

RouterBgpPeer _peerAsn.

_peerIpAddress

public _peerIpAddress?: "peerIpAddress";

RouterBgpPeer _peerIpAddress.

advertisedGroups

public advertisedGroups: google.cloud.compute.v1.RouterBgpPeer.AdvertisedGroups[];

RouterBgpPeer advertisedGroups.

advertisedIpRanges

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

RouterBgpPeer advertisedIpRanges.

advertisedRoutePriority

public advertisedRoutePriority?: (number|null);

RouterBgpPeer advertisedRoutePriority.

advertiseMode

public advertiseMode?: (google.cloud.compute.v1.RouterBgpPeer.AdvertiseMode|keyof typeof google.cloud.compute.v1.RouterBgpPeer.AdvertiseMode|null);

RouterBgpPeer advertiseMode.

interfaceName

public interfaceName?: (string|null);

RouterBgpPeer interfaceName.

ipAddress

public ipAddress?: (string|null);

RouterBgpPeer ipAddress.

managementType

public managementType?: (google.cloud.compute.v1.RouterBgpPeer.ManagementType|keyof typeof google.cloud.compute.v1.RouterBgpPeer.ManagementType|null);

RouterBgpPeer managementType.

name

public name?: (string|null);

RouterBgpPeer name.

peerAsn

public peerAsn?: (number|null);

RouterBgpPeer peerAsn.

peerIpAddress

public peerIpAddress?: (string|null);

RouterBgpPeer peerIpAddress.

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
google.cloud.compute.v1.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 ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.compute.v1.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 ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.compute.v1.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
google.cloud.compute.v1.RouterBgpPeer

RouterBgpPeer

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 google.cloud.compute.v1.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