Class protos.google.container.v1.NetworkConfig (3.0.0)

Represents a NetworkConfig.

Package

@google-cloud/container

Constructors

(constructor)(properties)

constructor(properties?: google.container.v1.INetworkConfig);

Constructs a new NetworkConfig.

Parameter
NameDescription
properties INetworkConfig

Properties to set

Properties

datapathProvider

public datapathProvider: (google.container.v1.DatapathProvider|keyof typeof google.container.v1.DatapathProvider);

NetworkConfig datapathProvider.

defaultSnatStatus

public defaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null);

NetworkConfig defaultSnatStatus.

dnsConfig

public dnsConfig?: (google.container.v1.IDNSConfig|null);

NetworkConfig dnsConfig.

enableIntraNodeVisibility

public enableIntraNodeVisibility: boolean;

NetworkConfig enableIntraNodeVisibility.

enableL4ilbSubsetting

public enableL4ilbSubsetting: boolean;

NetworkConfig enableL4ilbSubsetting.

network

public network: string;

NetworkConfig network.

privateIpv6GoogleAccess

public privateIpv6GoogleAccess: (google.container.v1.PrivateIPv6GoogleAccess|keyof typeof google.container.v1.PrivateIPv6GoogleAccess);

NetworkConfig privateIpv6GoogleAccess.

serviceExternalIpsConfig

public serviceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null);

NetworkConfig serviceExternalIpsConfig.

subnetwork

public subnetwork: string;

NetworkConfig subnetwork.

Methods

create(properties)

public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig;

Creates a new NetworkConfig instance using the specified properties.

Parameter
NameDescription
properties INetworkConfig

Properties to set

Returns
TypeDescription
google.container.v1.NetworkConfig

NetworkConfig instance

decode(reader, length)

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

Decodes a NetworkConfig 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.container.v1.NetworkConfig

NetworkConfig

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.NetworkConfig;

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.container.v1.NetworkConfig

NetworkConfig

encode(message, writer)

public static encode(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified NetworkConfig message. Does not implicitly messages.

Parameters
NameDescription
message INetworkConfig

NetworkConfig 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.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message INetworkConfig

NetworkConfig 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.container.v1.NetworkConfig;

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

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

Plain object

Returns
TypeDescription
google.container.v1.NetworkConfig

NetworkConfig

toJSON()

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

Converts this NetworkConfig to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.container.v1.NetworkConfig

NetworkConfig

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 NetworkConfig 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