Class protos.google.cloud.run.v2.WorkerPool (3.2.0)

Represents a WorkerPool.

Package

@google-cloud/run

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.run.v2.IWorkerPool);

Constructs a new WorkerPool.

Parameter
Name Description
properties IWorkerPool

Properties to set

Properties

annotations

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

WorkerPool annotations.

binaryAuthorization

public binaryAuthorization?: (google.cloud.run.v2.IBinaryAuthorization|null);

WorkerPool binaryAuthorization.

client

public client: string;

WorkerPool client.

clientVersion

public clientVersion: string;

WorkerPool clientVersion.

conditions

public conditions: google.cloud.run.v2.ICondition[];

WorkerPool conditions.

createTime

public createTime?: (google.protobuf.ITimestamp|null);

WorkerPool createTime.

creator

public creator: string;

WorkerPool creator.

customAudiences

public customAudiences: string[];

WorkerPool customAudiences.

deleteTime

public deleteTime?: (google.protobuf.ITimestamp|null);

WorkerPool deleteTime.

description

public description: string;

WorkerPool description.

etag

public etag: string;

WorkerPool etag.

expireTime

public expireTime?: (google.protobuf.ITimestamp|null);

WorkerPool expireTime.

generation

public generation: (number|Long|string);

WorkerPool generation.

instanceSplits

public instanceSplits: google.cloud.run.v2.IInstanceSplit[];

WorkerPool instanceSplits.

instanceSplitStatuses

public instanceSplitStatuses: google.cloud.run.v2.IInstanceSplitStatus[];

WorkerPool instanceSplitStatuses.

labels

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

WorkerPool labels.

lastModifier

public lastModifier: string;

WorkerPool lastModifier.

latestCreatedRevision

public latestCreatedRevision: string;

WorkerPool latestCreatedRevision.

latestReadyRevision

public latestReadyRevision: string;

WorkerPool latestReadyRevision.

launchStage

public launchStage: (google.api.LaunchStage|keyof typeof google.api.LaunchStage);

WorkerPool launchStage.

name

public name: string;

WorkerPool name.

observedGeneration

public observedGeneration: (number|Long|string);

WorkerPool observedGeneration.

reconciling

public reconciling: boolean;

WorkerPool reconciling.

satisfiesPzs

public satisfiesPzs: boolean;

WorkerPool satisfiesPzs.

scaling

public scaling?: (google.cloud.run.v2.IWorkerPoolScaling|null);

WorkerPool scaling.

template

public template?: (google.cloud.run.v2.IWorkerPoolRevisionTemplate|null);

WorkerPool template.

terminalCondition

public terminalCondition?: (google.cloud.run.v2.ICondition|null);

WorkerPool terminalCondition.

threatDetectionEnabled

public threatDetectionEnabled: boolean;

WorkerPool threatDetectionEnabled.

uid

public uid: string;

WorkerPool uid.

updateTime

public updateTime?: (google.protobuf.ITimestamp|null);

WorkerPool updateTime.

Methods

create(properties)

public static create(properties?: google.cloud.run.v2.IWorkerPool): google.cloud.run.v2.WorkerPool;

Creates a new WorkerPool instance using the specified properties.

Parameter
Name Description
properties IWorkerPool

Properties to set

Returns
Type Description
WorkerPool

WorkerPool instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.run.v2.WorkerPool;

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

WorkerPool

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.run.v2.WorkerPool;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
WorkerPool

WorkerPool

encode(message, writer)

public static encode(message: google.cloud.run.v2.IWorkerPool, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified WorkerPool message. Does not implicitly messages.

Parameters
Name Description
message IWorkerPool

WorkerPool 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.run.v2.IWorkerPool, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IWorkerPool

WorkerPool 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.run.v2.WorkerPool;

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

WorkerPool

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for WorkerPool

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message WorkerPool

WorkerPool

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