Skip to content

Commit a69bd80

Browse files
committed
feat(livestream): Modified get_input script to provide more of the information that is returned from the API response
1 parent 1af32d1 commit a69bd80

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

video/live-stream/get_input.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ def get_input(
4242

4343
name = f"projects/{project_id}/locations/{location}/inputs/{input_id}"
4444
response = client.get_input(name=name)
45-
print(f"Input: {response.name}")
45+
print(f"Name: {response.name}")
46+
print(f"Type: {live_stream_v1.types.Input.Type(response.type_).name}")
47+
print(f"Tier: {live_stream_v1.types.Input.Tier(response.tier).name}")
48+
if response.uri:
49+
print(f"URI: {response.uri}")
4650

4751
return response
4852

0 commit comments

Comments
 (0)