This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 6b459995b260cc7023e4720974ef4f59893cd283 Author: cont-m-nakagawa <[email protected]> AuthorDate: Wed Apr 20 16:31:24 2022 +0900 Add the format of Vertex Endpoint ID to the docstrings --- airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py | 3 ++- airflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py b/airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py index dcf521a978..63307fed15 100644 --- a/airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py +++ b/airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py @@ -92,7 +92,8 @@ class EndpointServiceHook(GoogleBaseHook): :param project_id: Required. The ID of the Google Cloud project that the service belongs to. :param region: Required. The ID of the Google Cloud region that the service belongs to. :param endpoint: Required. The Endpoint to create. - :param endpoint_id: The ID of Endpoint. If not provided, Vertex AI will generate a value for this ID. + :param endpoint_id: The ID of Endpoint. This value should be 1-10 characters, and valid characters + are /[0-9]/. If not provided, Vertex AI will generate a value for this ID. :param retry: Designation of what errors, if any, should be retried. :param timeout: The timeout for this request. :param metadata: Strings which should be sent along with the request as metadata. diff --git a/airflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py b/airflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py index 935575a5fc..3706836e58 100644 --- a/airflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py +++ b/airflow/providers/google/cloud/operators/vertex_ai/endpoint_service.py @@ -55,7 +55,8 @@ class CreateEndpointOperator(BaseOperator): :param project_id: Required. The ID of the Google Cloud project that the service belongs to. :param region: Required. The ID of the Google Cloud region that the service belongs to. :param endpoint: Required. The Endpoint to create. - :param endpoint_id: The ID of Endpoint. If not provided, Vertex AI will generate a value for this ID. + :param endpoint_id: The ID of Endpoint. This value should be 1-10 characters, and valid characters + are /[0-9]/. If not provided, Vertex AI will generate a value for this ID. :param retry: Designation of what errors, if any, should be retried. :param timeout: The timeout for this request. :param metadata: Strings which should be sent along with the request as metadata.
