@@ -1016,7 +1016,7 @@ class _CustomTrainingJob(_TrainingJob):
1016
1016
def __init__ (
1017
1017
self ,
1018
1018
# TODO(b/223262536): Make display_name parameter fully optional in next major release
1019
- display_name : Optional [ str ] ,
1019
+ display_name : str ,
1020
1020
container_uri : str ,
1021
1021
model_serving_container_image_uri : Optional [str ] = None ,
1022
1022
model_serving_container_predict_route : Optional [str ] = None ,
@@ -1040,7 +1040,7 @@ def __init__(
1040
1040
"""
1041
1041
Args:
1042
1042
display_name (str):
1043
- Optional . The user-defined name of this TrainingPipeline.
1043
+ Required . The user-defined name of this TrainingPipeline.
1044
1044
container_uri (str):
1045
1045
Required: Uri of the training container image in the GCR.
1046
1046
model_serving_container_image_uri (str):
@@ -1556,7 +1556,7 @@ class CustomTrainingJob(_CustomTrainingJob):
1556
1556
def __init__ (
1557
1557
self ,
1558
1558
# TODO(b/223262536): Make display_name parameter fully optional in next major release
1559
- display_name : Optional [ str ] ,
1559
+ display_name : str ,
1560
1560
script_path : str ,
1561
1561
container_uri : str ,
1562
1562
requirements : Optional [Sequence [str ]] = None ,
@@ -1616,7 +1616,7 @@ def __init__(
1616
1616
1617
1617
Args:
1618
1618
display_name (str):
1619
- Optional . The user-defined name of this TrainingPipeline.
1619
+ Required . The user-defined name of this TrainingPipeline.
1620
1620
script_path (str): Required. Local path to training script.
1621
1621
container_uri (str):
1622
1622
Required: Uri of the training container image in the GCR.
@@ -2388,7 +2388,7 @@ class CustomContainerTrainingJob(_CustomTrainingJob):
2388
2388
def __init__ (
2389
2389
self ,
2390
2390
# TODO(b/223262536): Make display_name parameter fully optional in next major release
2391
- display_name : Optional [ str ] ,
2391
+ display_name : str ,
2392
2392
container_uri : str ,
2393
2393
command : Sequence [str ] = None ,
2394
2394
model_serving_container_image_uri : Optional [str ] = None ,
@@ -2446,7 +2446,7 @@ def __init__(
2446
2446
2447
2447
Args:
2448
2448
display_name (str):
2449
- Optional . The user-defined name of this TrainingPipeline.
2449
+ Required . The user-defined name of this TrainingPipeline.
2450
2450
container_uri (str):
2451
2451
Required: Uri of the training container image in the GCR.
2452
2452
command (Sequence[str]):
@@ -3197,7 +3197,7 @@ class AutoMLTabularTrainingJob(_TrainingJob):
3197
3197
def __init__ (
3198
3198
self ,
3199
3199
# TODO(b/223262536): Make display_name parameter fully optional in next major release
3200
- display_name : Optional [ str ] ,
3200
+ display_name : str ,
3201
3201
optimization_prediction_type : str ,
3202
3202
optimization_objective : Optional [str ] = None ,
3203
3203
column_specs : Optional [Dict [str , str ]] = None ,
@@ -3225,7 +3225,7 @@ def __init__(
3225
3225
3226
3226
Args:
3227
3227
display_name (str):
3228
- Optional . The user-defined name of this TrainingPipeline.
3228
+ Required . The user-defined name of this TrainingPipeline.
3229
3229
optimization_prediction_type (str):
3230
3230
The type of prediction the Model is to produce.
3231
3231
"classification" - Predict one out of multiple target values is
@@ -5005,7 +5005,7 @@ class CustomPythonPackageTrainingJob(_CustomTrainingJob):
5005
5005
def __init__ (
5006
5006
self ,
5007
5007
# TODO(b/223262536): Make display_name parameter fully optional in next major release
5008
- display_name : Optional [ str ] ,
5008
+ display_name : str ,
5009
5009
python_package_gcs_uri : str ,
5010
5010
python_module_name : str ,
5011
5011
container_uri : str ,
@@ -6177,7 +6177,7 @@ class AutoMLTextTrainingJob(_TrainingJob):
6177
6177
def __init__ (
6178
6178
self ,
6179
6179
# TODO(b/223262536): Make display_name parameter fully optional in next major release
6180
- display_name : Optional [ str ] ,
6180
+ display_name : str ,
6181
6181
prediction_type : str ,
6182
6182
multi_label : bool = False ,
6183
6183
sentiment_max : int = 10 ,
0 commit comments