Skip to content

Commit 6b45999

Browse files
mai-nakagawapotiuk
authored andcommitted
Add the format of Vertex Endpoint ID to the docstrings
1 parent 27af0b7 commit 6b45999

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

β€Žairflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def create_endpoint(
9292
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
9393
:param region: Required. The ID of the Google Cloud region that the service belongs to.
9494
:param endpoint: Required. The Endpoint to create.
95-
:param endpoint_id: The ID of Endpoint. If not provided, Vertex AI will generate a value for this ID.
95+
:param endpoint_id: The ID of Endpoint. This value should be 1-10 characters, and valid characters
96+
are /[0-9]/. If not provided, Vertex AI will generate a value for this ID.
9697
:param retry: Designation of what errors, if any, should be retried.
9798
:param timeout: The timeout for this request.
9899
:param metadata: Strings which should be sent along with the request as metadata.

β€Žairflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class CreateEndpointOperator(BaseOperator):
5555
:param project_id: Required. The ID of the Google Cloud project that the service belongs to.
5656
:param region: Required. The ID of the Google Cloud region that the service belongs to.
5757
:param endpoint: Required. The Endpoint to create.
58-
:param endpoint_id: The ID of Endpoint. If not provided, Vertex AI will generate a value for this ID.
58+
:param endpoint_id: The ID of Endpoint. This value should be 1-10 characters, and valid characters
59+
are /[0-9]/. If not provided, Vertex AI will generate a value for this ID.
5960
:param retry: Designation of what errors, if any, should be retried.
6061
:param timeout: The timeout for this request.
6162
:param metadata: Strings which should be sent along with the request as metadata.

0 commit comments

Comments
 (0)