Represents a WorkerPool.
Package
@google-cloud/runConstructors
(constructor)(properties)
constructor
(
properties
?:
google
.
cloud
.
run
.
v2
.
IWorkerPool
);
Constructs a new WorkerPool.
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.
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.
reader
( Reader
| Uint8Array
)
Reader or buffer to decode from
length
number
Message length if known beforehand
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.
reader
( Reader
| Uint8Array
)
Reader or buffer to decode from
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.
message
writer
$protobuf.Writer
Writer to encode to
$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.
message
writer
$protobuf.Writer
Writer to encode to
$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.
object
{ [k: string]: any }
Plain object
getTypeUrl(typeUrlPrefix)
public
static
getTypeUrl
(
typeUrlPrefix
?:
string
)
:
string
;
Gets the default type url for WorkerPool
typeUrlPrefix
string
your custom typeUrlPrefix(default "type.googleapis.com")
string
The default type url
toJSON()
public
toJSON
()
:
{
[
k
:
string
]
:
any
};
Converts this WorkerPool to JSON.
{ [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.
message
options
$protobuf.IConversionOptions
Conversion options
{ [k: string]: any }
Plain object
verify(message)
public
static
verify
(
message
:
{
[
k
:
string
]
:
any
})
:
(
string
|
null
);
Verifies a WorkerPool message.
message
{ [k: string]: any }
Plain object to verify
(string|null)
null
if valid, otherwise the reason why it is not

