From a69bd808381ff46627d56e880eb20a199ee9b116 Mon Sep 17 00:00:00 2001 From: Chris Hampartsoumian Date: Sat, 27 Dec 2025 00:15:09 +0000 Subject: [PATCH 1/2] feat(livestream): Modified get_input script to provide more of the information that is returned from the API response --- video/live-stream/get_input.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/video/live-stream/get_input.py b/video/live-stream/get_input.py index 4da1ab06c09..131e670212f 100644 --- a/video/live-stream/get_input.py +++ b/video/live-stream/get_input.py @@ -42,7 +42,11 @@ def get_input( name = f"projects/{project_id}/locations/{location}/inputs/{input_id}" response = client.get_input(name=name) - print(f"Input: {response.name}") + print(f"Name: {response.name}") + print(f"Type: {live_stream_v1.types.Input.Type(response.type_).name}") + print(f"Tier: {live_stream_v1.types.Input.Tier(response.tier).name}") + if response.uri: + print(f"URI: {response.uri}") return response From 01c93483cc4d6bfeb4338d2ef018ec371ce556d3 Mon Sep 17 00:00:00 2001 From: Chris H Date: Sat, 27 Dec 2025 01:28:57 +0000 Subject: [PATCH 2/2] Update video/live-stream/get_input.py Using the .name attribute to access the string does work and makes the code easier to follow. Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- video/live-stream/get_input.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/live-stream/get_input.py b/video/live-stream/get_input.py index 131e670212f..fc8624d3aa7 100644 --- a/video/live-stream/get_input.py +++ b/video/live-stream/get_input.py @@ -43,8 +43,8 @@ def get_input( name = f"projects/{project_id}/locations/{location}/inputs/{input_id}" response = client.get_input(name=name) print(f"Name: {response.name}") - print(f"Type: {live_stream_v1.types.Input.Type(response.type_).name}") - print(f"Tier: {live_stream_v1.types.Input.Tier(response.tier).name}") + print(f"Type: {response.type_.name}") + print(f"Tier: {response.tier.name}") if response.uri: print(f"URI: {response.uri}")