Class protos.google.container.v1.Cluster

Represents a Cluster.

Package

@google-cloud/container

Constructors

(constructor)(properties)

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

Constructs a new Cluster.

Parameter
NameDescription
properties ICluster

Properties to set

Properties

addonsConfig

public addonsConfig?: (google.container.v1.IAddonsConfig|null);

Cluster addonsConfig.

authenticatorGroupsConfig

public authenticatorGroupsConfig?: (google.container.v1.IAuthenticatorGroupsConfig|null);

Cluster authenticatorGroupsConfig.

autoscaling

public autoscaling?: (google.container.v1.IClusterAutoscaling|null);

Cluster autoscaling.

binaryAuthorization

public binaryAuthorization?: (google.container.v1.IBinaryAuthorization|null);

Cluster binaryAuthorization.

clusterIpv4Cidr

public clusterIpv4Cidr: string;

Cluster clusterIpv4Cidr.

conditions

public conditions: google.container.v1.IStatusCondition[];

Cluster conditions.

createTime

public createTime: string;

Cluster createTime.

currentMasterVersion

public currentMasterVersion: string;

Cluster currentMasterVersion.

currentNodeCount

public currentNodeCount: number;

Cluster currentNodeCount.

currentNodeVersion

public currentNodeVersion: string;

Cluster currentNodeVersion.

databaseEncryption

public databaseEncryption?: (google.container.v1.IDatabaseEncryption|null);

Cluster databaseEncryption.

defaultMaxPodsConstraint

public defaultMaxPodsConstraint?: (google.container.v1.IMaxPodsConstraint|null);

Cluster defaultMaxPodsConstraint.

description

public description: string;

Cluster description.

enableKubernetesAlpha

public enableKubernetesAlpha: boolean;

Cluster enableKubernetesAlpha.

enableTpu

public enableTpu: boolean;

Cluster enableTpu.

endpoint

public endpoint: string;

Cluster endpoint.

expireTime

public expireTime: string;

Cluster expireTime.

initialClusterVersion

public initialClusterVersion: string;

Cluster initialClusterVersion.

initialNodeCount

public initialNodeCount: number;

Cluster initialNodeCount.

instanceGroupUrls

public instanceGroupUrls: string[];

Cluster instanceGroupUrls.

ipAllocationPolicy

public ipAllocationPolicy?: (google.container.v1.IIPAllocationPolicy|null);

Cluster ipAllocationPolicy.

labelFingerprint

public labelFingerprint: string;

Cluster labelFingerprint.

legacyAbac

public legacyAbac?: (google.container.v1.ILegacyAbac|null);

Cluster legacyAbac.

location

public location: string;

Cluster location.

locations

public locations: string[];

Cluster locations.

loggingService

public loggingService: string;

Cluster loggingService.

maintenancePolicy

public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null);

Cluster maintenancePolicy.

masterAuth

public masterAuth?: (google.container.v1.IMasterAuth|null);

Cluster masterAuth.

masterAuthorizedNetworksConfig

public masterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null);

Cluster masterAuthorizedNetworksConfig.

monitoringService

public monitoringService: string;

Cluster monitoringService.

name

public name: string;

Cluster name.

network

public network: string;

Cluster network.

networkConfig

public networkConfig?: (google.container.v1.INetworkConfig|null);

Cluster networkConfig.

networkPolicy

public networkPolicy?: (google.container.v1.INetworkPolicy|null);

Cluster networkPolicy.

nodeConfig

public nodeConfig?: (google.container.v1.INodeConfig|null);

Cluster nodeConfig.

nodeIpv4CidrSize

public nodeIpv4CidrSize: number;

Cluster nodeIpv4CidrSize.

nodePools

public nodePools: google.container.v1.INodePool[];

Cluster nodePools.

privateClusterConfig

public privateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null);

Cluster privateClusterConfig.

releaseChannel

public releaseChannel?: (google.container.v1.IReleaseChannel|null);

Cluster releaseChannel.

resourceLabels

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

Cluster resourceLabels.

resourceUsageExportConfig

public resourceUsageExportConfig?: (google.container.v1.IResourceUsageExportConfig|null);

Cluster resourceUsageExportConfig.

public selfLink: string;

Cluster selfLink.

servicesIpv4Cidr

public servicesIpv4Cidr: string;

Cluster servicesIpv4Cidr.

shieldedNodes

public shieldedNodes?: (google.container.v1.IShieldedNodes|null);

Cluster shieldedNodes.

status

public status: (google.container.v1.Cluster.Status|keyof typeof google.container.v1.Cluster.Status);

Cluster status.

statusMessage

public statusMessage: string;

Cluster statusMessage.

subnetwork

public subnetwork: string;

Cluster subnetwork.

tpuIpv4CidrBlock

public tpuIpv4CidrBlock: string;

Cluster tpuIpv4CidrBlock.

verticalPodAutoscaling

public verticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null);

Cluster verticalPodAutoscaling.

workloadIdentityConfig

public workloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null);

Cluster workloadIdentityConfig.

zone

public zone: string;

Cluster zone.

Methods

create(properties)

public static create(properties?: google.container.v1.ICluster): google.container.v1.Cluster;

Creates a new Cluster instance using the specified properties.

Parameter
NameDescription
properties ICluster

Properties to set

Returns
TypeDescription
google.container.v1.Cluster

Cluster instance

decode(reader, length)

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

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

Cluster

decodeDelimited(reader)

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

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

Cluster

encode(message, writer)

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

Encodes the specified Cluster message. Does not implicitly messages.

Parameters
NameDescription
message ICluster

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

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

Parameters
NameDescription
message ICluster

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

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

Cluster

toJSON()

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

Converts this Cluster to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.container.v1.Cluster

Cluster

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