Represents a RouterBgpPeer.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IRouterBgpPeer);Constructs a new RouterBgpPeer.
| Name | Description |
| 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.
| Name | Description |
| properties |
IRouterBgpPeer
Properties to set |
| Type | Description |
| 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.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| length |
number
Message length if known beforehand |
| Type | Description |
| 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.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| Type | Description |
| 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.
| Name | Description |
| message |
IRouterBgpPeer
RouterBgpPeer message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| Type | Description |
| $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.
| Name | Description |
| message |
IRouterBgpPeer
RouterBgpPeer message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| Type | Description |
| $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.
| Name | Description |
| object |
{ [k: string]: any }
Plain object |
| Type | Description |
| google.cloud.compute.v1.RouterBgpPeer | RouterBgpPeer |
toJSON()
public toJSON(): { [k: string]: any };Converts this RouterBgpPeer to JSON.
| Type | Description |
| { [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.
| Name | Description |
| message |
google.cloud.compute.v1.RouterBgpPeer
RouterBgpPeer |
| options |
$protobuf.IConversionOptions
Conversion options |
| Type | Description |
| { [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a RouterBgpPeer message.
| Name | Description |
| message |
{ [k: string]: any }
Plain object to verify |
| Type | Description |
| (string|null) |
|