Class CustomJobSpec (1.130.0)

  CustomJobSpec 
 ( 
 * 
 , 
 baseOutputDirectory 
 : 
 typing 
 . 
 Optional 
 [ 
 google 
 . 
 genai 
 . 
 types 
 . 
 GcsDestination 
 ] 
 = 
 None 
 , 
 enableDashboardAccess 
 : 
 typing 
 . 
 Optional 
 [ 
 bool 
 ] 
 = 
 None 
 , 
 enableWebAccess 
 : 
 typing 
 . 
 Optional 
 [ 
 bool 
 ] 
 = 
 None 
 , 
 experiment 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 experimentRun 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 models 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 str 
 ]] 
 = 
 None 
 , 
 network 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 persistentResourceId 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 protectedArtifactLocationId 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 pscInterfaceConfig 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 PscInterfaceConfig 
 ] 
 = 
 None 
 , 
 reservedIpRanges 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 str 
 ]] 
 = 
 None 
 , 
 scheduling 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 Scheduling 
 ] 
 = 
 None 
 , 
 serviceAccount 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 tensorboard 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 workerPoolSpecs 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 WorkerPoolSpec 
 ] 
 ] 
 = 
 None 
 ) 
 

Represents a job that runs custom workloads such as a Docker container or a Python package.

Methods

CustomJobSpec

  CustomJobSpec 
 ( 
 * 
 , 
 baseOutputDirectory 
 : 
 typing 
 . 
 Optional 
 [ 
 google 
 . 
 genai 
 . 
 types 
 . 
 GcsDestination 
 ] 
 = 
 None 
 , 
 enableDashboardAccess 
 : 
 typing 
 . 
 Optional 
 [ 
 bool 
 ] 
 = 
 None 
 , 
 enableWebAccess 
 : 
 typing 
 . 
 Optional 
 [ 
 bool 
 ] 
 = 
 None 
 , 
 experiment 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 experimentRun 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 models 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 str 
 ]] 
 = 
 None 
 , 
 network 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 persistentResourceId 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 protectedArtifactLocationId 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 pscInterfaceConfig 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 PscInterfaceConfig 
 ] 
 = 
 None 
 , 
 reservedIpRanges 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 str 
 ]] 
 = 
 None 
 , 
 scheduling 
 : 
 typing 
 . 
 Optional 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 Scheduling 
 ] 
 = 
 None 
 , 
 serviceAccount 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 tensorboard 
 : 
 typing 
 . 
 Optional 
 [ 
 str 
 ] 
 = 
 None 
 , 
 workerPoolSpecs 
 : 
 typing 
 . 
 Optional 
 [ 
 list 
 [ 
 vertexai 
 . 
 _genai 
 . 
 types 
 . 
 common 
 . 
 WorkerPoolSpec 
 ] 
 ] 
 = 
 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.

Design a Mobile Site
View Site in Mobile | Classic
Share by: