Represents a NetworkEndpointGroup.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.INetworkEndpointGroup);Constructs a new NetworkEndpointGroup.
| Parameter | |
|---|---|
| Name | Description |
properties |
INetworkEndpointGroup
Properties to set |
Properties
_appEngine
public _appEngine?: "appEngine";NetworkEndpointGroup _appEngine.
_cloudFunction
public _cloudFunction?: "cloudFunction";NetworkEndpointGroup _cloudFunction.
_cloudRun
public _cloudRun?: "cloudRun";NetworkEndpointGroup _cloudRun.
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";NetworkEndpointGroup _creationTimestamp.
_defaultPort
public _defaultPort?: "defaultPort";NetworkEndpointGroup _defaultPort.
_description
public _description?: "description";NetworkEndpointGroup _description.
_id
public _id?: "id";NetworkEndpointGroup _id.
_kind
public _kind?: "kind";NetworkEndpointGroup _kind.
_name
public _name?: "name";NetworkEndpointGroup _name.
_network
public _network?: "network";NetworkEndpointGroup _network.
_networkEndpointType
public _networkEndpointType?: "networkEndpointType";NetworkEndpointGroup _networkEndpointType.
_pscData
public _pscData?: "pscData";NetworkEndpointGroup _pscData.
_pscTargetService
public _pscTargetService?: "pscTargetService";NetworkEndpointGroup _pscTargetService.
_region
public _region?: "region";NetworkEndpointGroup _region.
_selfLink
public _selfLink?: "selfLink";NetworkEndpointGroup _selfLink.
_size
public _size?: "size";NetworkEndpointGroup _size.
_subnetwork
public _subnetwork?: "subnetwork";NetworkEndpointGroup _subnetwork.
_zone
public _zone?: "zone";NetworkEndpointGroup _zone.
annotations
public annotations: { [k: string]: string };NetworkEndpointGroup annotations.
appEngine
public appEngine?: (google.cloud.compute.v1.INetworkEndpointGroupAppEngine|null);NetworkEndpointGroup appEngine.
cloudFunction
public cloudFunction?: (google.cloud.compute.v1.INetworkEndpointGroupCloudFunction|null);NetworkEndpointGroup cloudFunction.
cloudRun
public cloudRun?: (google.cloud.compute.v1.INetworkEndpointGroupCloudRun|null);NetworkEndpointGroup cloudRun.
creationTimestamp
public creationTimestamp?: (string|null);NetworkEndpointGroup creationTimestamp.
defaultPort
public defaultPort?: (number|null);NetworkEndpointGroup defaultPort.
description
public description?: (string|null);NetworkEndpointGroup description.
id
public id?: (number|Long|string|null);NetworkEndpointGroup id.
kind
public kind?: (string|null);NetworkEndpointGroup kind.
name
public name?: (string|null);NetworkEndpointGroup name.
network
public network?: (string|null);NetworkEndpointGroup network.
networkEndpointType
public networkEndpointType?: (string|null);NetworkEndpointGroup networkEndpointType.
pscData
public pscData?: (google.cloud.compute.v1.INetworkEndpointGroupPscData|null);NetworkEndpointGroup pscData.
pscTargetService
public pscTargetService?: (string|null);NetworkEndpointGroup pscTargetService.
region
public region?: (string|null);NetworkEndpointGroup region.
selfLink
public selfLink?: (string|null);NetworkEndpointGroup selfLink.
size
public size?: (number|null);NetworkEndpointGroup size.
subnetwork
public subnetwork?: (string|null);NetworkEndpointGroup subnetwork.
zone
public zone?: (string|null);NetworkEndpointGroup zone.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.INetworkEndpointGroup): google.cloud.compute.v1.NetworkEndpointGroup;Creates a new NetworkEndpointGroup instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
INetworkEndpointGroup
Properties to set |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
NetworkEndpointGroup instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.NetworkEndpointGroup;Decodes a NetworkEndpointGroup message from the specified reader or buffer.
| Parameters | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
NetworkEndpointGroup |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.NetworkEndpointGroup;Decodes a NetworkEndpointGroup message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
NetworkEndpointGroup |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.INetworkEndpointGroup, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified NetworkEndpointGroup message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
INetworkEndpointGroup
NetworkEndpointGroup message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.compute.v1.INetworkEndpointGroup, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified NetworkEndpointGroup message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
INetworkEndpointGroup
NetworkEndpointGroup message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NetworkEndpointGroup;Creates a NetworkEndpointGroup message from a plain object. Also converts values to their respective internal types.
| Parameter | |
|---|---|
| Name | Description |
object |
{ [k: string]: any }
Plain object |
| Returns | |
|---|---|
| Type | Description |
NetworkEndpointGroup |
NetworkEndpointGroup |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for NetworkEndpointGroup
| Parameter | |
|---|---|
| Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
| Returns | |
|---|---|
| Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };Converts this NetworkEndpointGroup to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.NetworkEndpointGroup, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a NetworkEndpointGroup message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
NetworkEndpointGroup
NetworkEndpointGroup |
options |
$protobuf.IConversionOptions
Conversion options |
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a NetworkEndpointGroup message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|