From e82b9bb0c487557fd8d3ad4e501fa976e5c2efd4 Mon Sep 17 00:00:00 2001 From: KameraSaki Date: Mon, 12 Oct 2026 20:06:54 +0200 Subject: [PATCH] fix batch logs policy enum typing --- batch/create/create_with_container_no_mounting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch/create/create_with_container_no_mounting.py b/batch/create/create_with_container_no_mounting.py index 0f1ebff6d11..e13b77ad557 100644 --- a/batch/create/create_with_container_no_mounting.py +++ b/batch/create/create_with_container_no_mounting.py @@ -78,7 +78,7 @@ def create_container_job(project_id: str, region: str, job_name: str) -> batch_v job.labels = {"env": "testing", "type": "container"} # We use Cloud Logging as it's an out of the box available option job.logs_policy = batch_v1.LogsPolicy() - job.logs_policy.destination = batch_v1.LogsPolicy.Destination.CLOUD_LOGGING + job.logs_policy.destination = batch_v1.LogsPolicy.Destination(batch_v1.LogsPolicy.Destination.CLOUD_LOGGING) create_request = batch_v1.CreateJobRequest() create_request.job = job