@@ -198,6 +198,7 @@ def network(self) -> Optional[str]:
198
198
def create (
199
199
cls ,
200
200
display_name : Optional [str ] = None ,
201
+ endpoint_id : Optional [str ] = None ,
201
202
description : Optional [str ] = None ,
202
203
labels : Optional [Dict [str , str ]] = None ,
203
204
metadata : Optional [Sequence [Tuple [str , str ]]] = (),
@@ -215,6 +216,17 @@ def create(
215
216
Optional. The user-defined name of the Endpoint.
216
217
The name can be up to 128 characters long and can be consist
217
218
of any UTF-8 characters.
219
+ endpoint_id (str):
220
+ Optional. The ID to use for endpoint, which will become
221
+ the final component of the endpoint resource name. If
222
+ not provided, Vertex AI will generate a value for this
223
+ ID.
224
+
225
+ This value should be 1-10 characters, and valid
226
+ characters are /[0-9]/. When using HTTP/JSON, this field
227
+ is populated based on a query string argument, such as
228
+ ``?endpoint_id=12345``. This is the fallback for fields
229
+ that are not included in either the URI or the body.
218
230
project (str):
219
231
Required. Project to retrieve endpoint from. If not set, project
220
232
set in aiplatform.init will be used.
@@ -276,6 +288,7 @@ def create(
276
288
return cls ._create (
277
289
api_client = api_client ,
278
290
display_name = display_name ,
291
+ endpoint_id = endpoint_id ,
279
292
project = project ,
280
293
location = location ,
281
294
description = description ,
@@ -297,6 +310,7 @@ def _create(
297
310
display_name : str ,
298
311
project : str ,
299
312
location : str ,
313
+ endpoint_id : Optional [str ] = None ,
300
314
description : Optional [str ] = None ,
301
315
labels : Optional [Dict [str , str ]] = None ,
302
316
metadata : Optional [Sequence [Tuple [str , str ]]] = (),
@@ -321,6 +335,17 @@ def _create(
321
335
location (str):
322
336
Required. Location to retrieve endpoint from. If not set, location
323
337
set in aiplatform.init will be used.
338
+ endpoint_id (str):
339
+ Optional. The ID to use for endpoint, which will become
340
+ the final component of the endpoint resource name. If
341
+ not provided, Vertex AI will generate a value for this
342
+ ID.
343
+
344
+ This value should be 1-10 characters, and valid
345
+ characters are /[0-9]/. When using HTTP/JSON, this field
346
+ is populated based on a query string argument, such as
347
+ ``?endpoint_id=12345``. This is the fallback for fields
348
+ that are not included in either the URI or the body.
324
349
description (str):
325
350
Optional. The description of the Endpoint.
326
351
labels (Dict[str, str]):
@@ -368,6 +393,7 @@ def _create(
368
393
operation_future = api_client .create_endpoint (
369
394
parent = parent ,
370
395
endpoint = gapic_endpoint ,
396
+ endpoint_id = endpoint_id ,
371
397
metadata = metadata ,
372
398
timeout = create_request_timeout ,
373
399
)
0 commit comments