@@ -1016,7 +1016,7 @@ class _CustomTrainingJob(_TrainingJob):
10161016 def __init__ (
10171017 self ,
10181018 # TODO(b/223262536): Make display_name parameter fully optional in next major release
1019- display_name : Optional [ str ] ,
1019+ display_name : str ,
10201020 container_uri : str ,
10211021 model_serving_container_image_uri : Optional [str ] = None ,
10221022 model_serving_container_predict_route : Optional [str ] = None ,
@@ -1040,7 +1040,7 @@ def __init__(
10401040 """
10411041 Args:
10421042 display_name (str):
1043- Optional . The user-defined name of this TrainingPipeline.
1043+ Required . The user-defined name of this TrainingPipeline.
10441044 container_uri (str):
10451045 Required: Uri of the training container image in the GCR.
10461046 model_serving_container_image_uri (str):
@@ -1556,7 +1556,7 @@ class CustomTrainingJob(_CustomTrainingJob):
15561556 def __init__ (
15571557 self ,
15581558 # TODO(b/223262536): Make display_name parameter fully optional in next major release
1559- display_name : Optional [ str ] ,
1559+ display_name : str ,
15601560 script_path : str ,
15611561 container_uri : str ,
15621562 requirements : Optional [Sequence [str ]] = None ,
@@ -1616,7 +1616,7 @@ def __init__(
16161616
16171617 Args:
16181618 display_name (str):
1619- Optional . The user-defined name of this TrainingPipeline.
1619+ Required . The user-defined name of this TrainingPipeline.
16201620 script_path (str): Required. Local path to training script.
16211621 container_uri (str):
16221622 Required: Uri of the training container image in the GCR.
@@ -2388,7 +2388,7 @@ class CustomContainerTrainingJob(_CustomTrainingJob):
23882388 def __init__ (
23892389 self ,
23902390 # TODO(b/223262536): Make display_name parameter fully optional in next major release
2391- display_name : Optional [ str ] ,
2391+ display_name : str ,
23922392 container_uri : str ,
23932393 command : Sequence [str ] = None ,
23942394 model_serving_container_image_uri : Optional [str ] = None ,
@@ -2446,7 +2446,7 @@ def __init__(
24462446
24472447 Args:
24482448 display_name (str):
2449- Optional . The user-defined name of this TrainingPipeline.
2449+ Required . The user-defined name of this TrainingPipeline.
24502450 container_uri (str):
24512451 Required: Uri of the training container image in the GCR.
24522452 command (Sequence[str]):
@@ -3197,7 +3197,7 @@ class AutoMLTabularTrainingJob(_TrainingJob):
31973197 def __init__ (
31983198 self ,
31993199 # TODO(b/223262536): Make display_name parameter fully optional in next major release
3200- display_name : Optional [ str ] ,
3200+ display_name : str ,
32013201 optimization_prediction_type : str ,
32023202 optimization_objective : Optional [str ] = None ,
32033203 column_specs : Optional [Dict [str , str ]] = None ,
@@ -3225,7 +3225,7 @@ def __init__(
32253225
32263226 Args:
32273227 display_name (str):
3228- Optional . The user-defined name of this TrainingPipeline.
3228+ Required . The user-defined name of this TrainingPipeline.
32293229 optimization_prediction_type (str):
32303230 The type of prediction the Model is to produce.
32313231 "classification" - Predict one out of multiple target values is
@@ -5005,7 +5005,7 @@ class CustomPythonPackageTrainingJob(_CustomTrainingJob):
50055005 def __init__ (
50065006 self ,
50075007 # TODO(b/223262536): Make display_name parameter fully optional in next major release
5008- display_name : Optional [ str ] ,
5008+ display_name : str ,
50095009 python_package_gcs_uri : str ,
50105010 python_module_name : str ,
50115011 container_uri : str ,
@@ -6177,7 +6177,7 @@ class AutoMLTextTrainingJob(_TrainingJob):
61776177 def __init__ (
61786178 self ,
61796179 # TODO(b/223262536): Make display_name parameter fully optional in next major release
6180- display_name : Optional [ str ] ,
6180+ display_name : str ,
61816181 prediction_type : str ,
61826182 multi_label : bool = False ,
61836183 sentiment_max : int = 10 ,
0 commit comments