Class WorkerPoolSpec (1.130.0)

  WorkerPoolSpec 
 ( 
 * 
 , 
 containerSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 ContainerSpec 
 ] 
 = 
 None 
 , 
 diskSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 DiskSpec 
 ] 
 = 
 None 
 , 
 lustreMounts 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 LustreMount 
 ] 
 ] 
 = 
 None 
 , 
 machineSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 MachineSpec 
 ] 
 = 
 None 
 , 
 nfsMounts 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 NfsMount 
 ]] 
 = 
 None 
 , 
 pythonPackageSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 PythonPackageSpec 
 ] 
 = 
 None 
 , 
 replicaCount 
 : 
 typing 
 . 
 Optional 
 [ 
 int 
 ] 
 = 
 None 
 ) 
 

Represents the spec of a worker pool in a job.

Methods

WorkerPoolSpec

  WorkerPoolSpec 
 ( 
 * 
 , 
 containerSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 ContainerSpec 
 ] 
 = 
 None 
 , 
 diskSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 DiskSpec 
 ] 
 = 
 None 
 , 
 lustreMounts 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 LustreMount 
 ] 
 ] 
 = 
 None 
 , 
 machineSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 MachineSpec 
 ] 
 = 
 None 
 , 
 nfsMounts 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 NfsMount 
 ]] 
 = 
 None 
 , 
 pythonPackageSpec 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 PythonPackageSpec 
 ] 
 = 
 None 
 , 
 replicaCount 
 : 
 typing 
 . 
 Optional 
 [ 
 int 
 ] 
 = 
 None 
 ) 
 

Create a new model by parsing and validating input data from keyword arguments.

Raises [ ValidationError ][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Create a Mobile Website
View Site in Mobile | Classic
Share by: