Class protos.google.container.v1.NodeConfig (4.11.0)

Represents a NodeConfig.

Package

@google-cloud/container

Constructors

(constructor)(properties)

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

Constructs a new NodeConfig.

Parameter
NameDescription
properties INodeConfig

Properties to set

Properties

_fastSocket

public _fastSocket?: "fastSocket";

NodeConfig _fastSocket.

accelerators

public accelerators: google.container.v1.IAcceleratorConfig[];

NodeConfig accelerators.

advancedMachineFeatures

public advancedMachineFeatures?: (google.container.v1.IAdvancedMachineFeatures|null);

NodeConfig advancedMachineFeatures.

bootDiskKmsKey

public bootDiskKmsKey: string;

NodeConfig bootDiskKmsKey.

confidentialNodes

public confidentialNodes?: (google.container.v1.IConfidentialNodes|null);

NodeConfig confidentialNodes.

diskSizeGb

public diskSizeGb: number;

NodeConfig diskSizeGb.

diskType

public diskType: string;

NodeConfig diskType.

ephemeralStorageLocalSsdConfig

public ephemeralStorageLocalSsdConfig?: (google.container.v1.IEphemeralStorageLocalSsdConfig|null);

NodeConfig ephemeralStorageLocalSsdConfig.

fastSocket

public fastSocket?: (google.container.v1.IFastSocket|null);

NodeConfig fastSocket.

gcfsConfig

public gcfsConfig?: (google.container.v1.IGcfsConfig|null);

NodeConfig gcfsConfig.

gvnic

public gvnic?: (google.container.v1.IVirtualNIC|null);

NodeConfig gvnic.

imageType

public imageType: string;

NodeConfig imageType.

kubeletConfig

public kubeletConfig?: (google.container.v1.INodeKubeletConfig|null);

NodeConfig kubeletConfig.

labels

public labels: { [k: string]: string };

NodeConfig labels.

linuxNodeConfig

public linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null);

NodeConfig linuxNodeConfig.

localNvmeSsdBlockConfig

public localNvmeSsdBlockConfig?: (google.container.v1.ILocalNvmeSsdBlockConfig|null);

NodeConfig localNvmeSsdBlockConfig.

localSsdCount

public localSsdCount: number;

NodeConfig localSsdCount.

loggingConfig

public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null);

NodeConfig loggingConfig.

machineType

public machineType: string;

NodeConfig machineType.

metadata

public metadata: { [k: string]: string };

NodeConfig metadata.

minCpuPlatform

public minCpuPlatform: string;

NodeConfig minCpuPlatform.

nodeGroup

public nodeGroup: string;

NodeConfig nodeGroup.

oauthScopes

public oauthScopes: string[];

NodeConfig oauthScopes.

preemptible

public preemptible: boolean;

NodeConfig preemptible.

reservationAffinity

public reservationAffinity?: (google.container.v1.IReservationAffinity|null);

NodeConfig reservationAffinity.

resourceLabels

public resourceLabels: { [k: string]: string };

NodeConfig resourceLabels.

sandboxConfig

public sandboxConfig?: (google.container.v1.ISandboxConfig|null);

NodeConfig sandboxConfig.

serviceAccount

public serviceAccount: string;

NodeConfig serviceAccount.

shieldedInstanceConfig

public shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null);

NodeConfig shieldedInstanceConfig.

spot

public spot: boolean;

NodeConfig spot.

tags

public tags: string[];

NodeConfig tags.

taints

public taints: google.container.v1.INodeTaint[];

NodeConfig taints.

windowsNodeConfig

public windowsNodeConfig?: (google.container.v1.IWindowsNodeConfig|null);

NodeConfig windowsNodeConfig.

workloadMetadataConfig

public workloadMetadataConfig?: (google.container.v1.IWorkloadMetadataConfig|null);

NodeConfig workloadMetadataConfig.

Methods

create(properties)

public static create(properties?: google.container.v1.INodeConfig): google.container.v1.NodeConfig;

Creates a new NodeConfig instance using the specified properties.

Parameter
NameDescription
properties INodeConfig

Properties to set

Returns
TypeDescription
google.container.v1.NodeConfig

NodeConfig instance

decode(reader, length)

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

Decodes a NodeConfig 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.NodeConfig

NodeConfig

decodeDelimited(reader)

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

Decodes a NodeConfig 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.NodeConfig

NodeConfig

encode(message, writer)

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

Encodes the specified NodeConfig message. Does not implicitly messages.

Parameters
NameDescription
message INodeConfig

NodeConfig 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.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message INodeConfig

NodeConfig 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.NodeConfig;

Creates a NodeConfig 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.NodeConfig

NodeConfig

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for NodeConfig

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this NodeConfig to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.container.v1.NodeConfig

NodeConfig

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