Represents a NodeConfig.
Package
@google-cloud/containerConstructors
(constructor)(properties)
constructor(properties?: google.container.v1beta1.INodeConfig);
Constructs a new NodeConfig.
Parameter | |
---|---|
Name | Description |
properties |
INodeConfig
Properties to set |
Properties
_fastSocket
public _fastSocket?: "fastSocket";
NodeConfig _fastSocket.
accelerators
public accelerators: google.container.v1beta1.IAcceleratorConfig[];
NodeConfig accelerators.
advancedMachineFeatures
public advancedMachineFeatures?: (google.container.v1beta1.IAdvancedMachineFeatures|null);
NodeConfig advancedMachineFeatures.
bootDiskKmsKey
public bootDiskKmsKey: string;
NodeConfig bootDiskKmsKey.
confidentialNodes
public confidentialNodes?: (google.container.v1beta1.IConfidentialNodes|null);
NodeConfig confidentialNodes.
diskSizeGb
public diskSizeGb: number;
NodeConfig diskSizeGb.
diskType
public diskType: string;
NodeConfig diskType.
ephemeralStorageConfig
public ephemeralStorageConfig?: (google.container.v1beta1.IEphemeralStorageConfig|null);
NodeConfig ephemeralStorageConfig.
ephemeralStorageLocalSsdConfig
public ephemeralStorageLocalSsdConfig?: (google.container.v1beta1.IEphemeralStorageLocalSsdConfig|null);
NodeConfig ephemeralStorageLocalSsdConfig.
fastSocket
public fastSocket?: (google.container.v1beta1.IFastSocket|null);
NodeConfig fastSocket.
gcfsConfig
public gcfsConfig?: (google.container.v1beta1.IGcfsConfig|null);
NodeConfig gcfsConfig.
gvnic
public gvnic?: (google.container.v1beta1.IVirtualNIC|null);
NodeConfig gvnic.
imageType
public imageType: string;
NodeConfig imageType.
kubeletConfig
public kubeletConfig?: (google.container.v1beta1.INodeKubeletConfig|null);
NodeConfig kubeletConfig.
labels
public labels: { [k: string]: string };
NodeConfig labels.
linuxNodeConfig
public linuxNodeConfig?: (google.container.v1beta1.ILinuxNodeConfig|null);
NodeConfig linuxNodeConfig.
localNvmeSsdBlockConfig
public localNvmeSsdBlockConfig?: (google.container.v1beta1.ILocalNvmeSsdBlockConfig|null);
NodeConfig localNvmeSsdBlockConfig.
localSsdCount
public localSsdCount: number;
NodeConfig localSsdCount.
loggingConfig
public loggingConfig?: (google.container.v1beta1.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.v1beta1.IReservationAffinity|null);
NodeConfig reservationAffinity.
resourceLabels
public resourceLabels: { [k: string]: string };
NodeConfig resourceLabels.
sandboxConfig
public sandboxConfig?: (google.container.v1beta1.ISandboxConfig|null);
NodeConfig sandboxConfig.
serviceAccount
public serviceAccount: string;
NodeConfig serviceAccount.
shieldedInstanceConfig
public shieldedInstanceConfig?: (google.container.v1beta1.IShieldedInstanceConfig|null);
NodeConfig shieldedInstanceConfig.
spot
public spot: boolean;
NodeConfig spot.
tags
public tags: string[];
NodeConfig tags.
taints
public taints: google.container.v1beta1.INodeTaint[];
NodeConfig taints.
windowsNodeConfig
public windowsNodeConfig?: (google.container.v1beta1.IWindowsNodeConfig|null);
NodeConfig windowsNodeConfig.
workloadMetadataConfig
public workloadMetadataConfig?: (google.container.v1beta1.IWorkloadMetadataConfig|null);
NodeConfig workloadMetadataConfig.
Methods
create(properties)
public static create(properties?: google.container.v1beta1.INodeConfig): google.container.v1beta1.NodeConfig;
Creates a new NodeConfig instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
INodeConfig
Properties to set |
Returns | |
---|---|
Type | Description |
google.container.v1beta1.NodeConfig | NodeConfig instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1beta1.NodeConfig;
Decodes a NodeConfig message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
google.container.v1beta1.NodeConfig | NodeConfig |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1beta1.NodeConfig;
Decodes a NodeConfig message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
google.container.v1beta1.NodeConfig | NodeConfig |
encode(message, writer)
public static encode(message: google.container.v1beta1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified NodeConfig message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
INodeConfig
NodeConfig 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.container.v1beta1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified NodeConfig message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
INodeConfig
NodeConfig 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.container.v1beta1.NodeConfig;
Creates a NodeConfig 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 |
google.container.v1beta1.NodeConfig | NodeConfig |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for NodeConfig
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 NodeConfig to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.container.v1beta1.NodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a NodeConfig message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
google.container.v1beta1.NodeConfig
NodeConfig |
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 NodeConfig message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|