Represents a NodeConfig.
Package
@google-cloud/containerConstructors
(constructor)(properties)
constructor(properties?: google.container.v1.INodeConfig);Constructs a new NodeConfig.
| Name | Description |
| properties |
INodeConfig
Properties to set |
Properties
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.
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.
localSsdCount
public localSsdCount: number;NodeConfig localSsdCount.
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.
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.
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.
| Name | Description |
| properties |
INodeConfig
Properties to set |
| Type | Description |
| 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.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| length |
number
Message length if known beforehand |
| Type | Description |
| 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.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| Type | Description |
| 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.
| Name | Description |
| message |
INodeConfig
NodeConfig message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| Type | Description |
| $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.
| Name | Description |
| message |
INodeConfig
NodeConfig message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| Type | Description |
| $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.
| Name | Description |
| object |
{ [k: string]: any }
Plain object |
| Type | Description |
| google.container.v1.NodeConfig | NodeConfig |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for NodeConfig
| Name | Description |
| typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
| Type | Description |
| string | The default type url |
toJSON()
public toJSON(): { [k: string]: any };Converts this NodeConfig to JSON.
| Type | Description |
| { [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.
| Name | Description |
| message |
google.container.v1.NodeConfig
NodeConfig |
| options |
$protobuf.IConversionOptions
Conversion options |
| Type | Description |
| { [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a NodeConfig message.
| Name | Description |
| message |
{ [k: string]: any }
Plain object to verify |
| Type | Description |
| (string|null) |
|