Class protos.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig (0.7.0)

Represents a ZoneNetworkConfig.

Package

@google-cloud/gdchardwaremanagement

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.gdchardwaremanagement.v1alpha.IZoneNetworkConfig);

Constructs a new ZoneNetworkConfig.

Parameter
Name Description
properties IZoneNetworkConfig

Properties to set

Properties

dnsIpv4Addresses

public dnsIpv4Addresses: string[];

ZoneNetworkConfig dnsIpv4Addresses.

kubernetesControlPlaneIpv4Range

public kubernetesControlPlaneIpv4Range: string;

ZoneNetworkConfig kubernetesControlPlaneIpv4Range.

kubernetesIpv4Subnet

public kubernetesIpv4Subnet?: (google.cloud.gdchardwaremanagement.v1alpha.ISubnet|null);

ZoneNetworkConfig kubernetesIpv4Subnet.

kubernetesNodeIpv4Range

public kubernetesNodeIpv4Range: string;

ZoneNetworkConfig kubernetesNodeIpv4Range.

kubernetesPrimaryVlanId

public kubernetesPrimaryVlanId: number;

ZoneNetworkConfig kubernetesPrimaryVlanId.

machineMgmtIpv4Range

public machineMgmtIpv4Range: string;

ZoneNetworkConfig machineMgmtIpv4Range.

managementIpv4Subnet

public managementIpv4Subnet?: (google.cloud.gdchardwaremanagement.v1alpha.ISubnet|null);

ZoneNetworkConfig managementIpv4Subnet.

Methods

create(properties)

public static create(properties?: google.cloud.gdchardwaremanagement.v1alpha.IZoneNetworkConfig): google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig;

Creates a new ZoneNetworkConfig instance using the specified properties.

Parameter
Name Description
properties IZoneNetworkConfig

Properties to set

Returns
Type Description
ZoneNetworkConfig

ZoneNetworkConfig instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig;

Decodes a ZoneNetworkConfig 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
ZoneNetworkConfig

ZoneNetworkConfig

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
ZoneNetworkConfig

ZoneNetworkConfig

encode(message, writer)

public static encode(message: google.cloud.gdchardwaremanagement.v1alpha.IZoneNetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ZoneNetworkConfig message. Does not implicitly messages.

Parameters
Name Description
message IZoneNetworkConfig

ZoneNetworkConfig 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.gdchardwaremanagement.v1alpha.IZoneNetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IZoneNetworkConfig

ZoneNetworkConfig 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.gdchardwaremanagement.v1alpha.ZoneNetworkConfig;

Creates a ZoneNetworkConfig 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
ZoneNetworkConfig

ZoneNetworkConfig

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for ZoneNetworkConfig

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 ZoneNetworkConfig to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message ZoneNetworkConfig

ZoneNetworkConfig

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 ZoneNetworkConfig message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not