@@ -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 ]]] = (),
@@ -221,6 +222,17 @@ def create(
221
222
location (str):
222
223
Required. Location to retrieve endpoint from. If not set, location
223
224
set in aiplatform.init will be used.
225
+ endpoint_id (str):
226
+ Optional. The ID to use for endpoint, which will become
227
+ the final component of the endpoint resource name. If
228
+ not provided, Vertex AI will generate a value for this
229
+ ID.
230
+
231
+ This value should be 1-10 characters, and valid
232
+ characters are /[0-9]/. When using HTTP/JSON, this field
233
+ is populated based on a query string argument, such as
234
+ ``?endpoint_id=12345``. This is the fallback for fields
235
+ that are not included in either the URI or the body.
224
236
description (str):
225
237
Optional. The description of the Endpoint.
226
238
labels (Dict[str, str]):
@@ -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