Skip to content

Commit 1a1dc85

Browse files
chore: use gapic-generator-python 0.65.2 (#30)
* chore: use gapic-generator-python 0.65.2 PiperOrigin-RevId: 444333013 Source-Link: googleapis/googleapis@f91b6cf Source-Link: googleapis/googleapis-gen@16eb360 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 90abc9f commit 1a1dc85

File tree

2 files changed

+115
-115
lines changed

2 files changed

+115
-115
lines changed

packages/google-cloud-video-live-stream/google/cloud/video/live_stream_v1/services/livestream_service/async_client.py

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ async def create_channel(
238238
239239
from google.cloud.video import live_stream_v1
240240
241-
def sample_create_channel():
241+
async def sample_create_channel():
242242
# Create a client
243-
client = live_stream_v1.LivestreamServiceClient()
243+
client = live_stream_v1.LivestreamServiceAsyncClient()
244244
245245
# Initialize request argument(s)
246246
request = live_stream_v1.CreateChannelRequest(
@@ -253,7 +253,7 @@ def sample_create_channel():
253253
254254
print("Waiting for operation to complete...")
255255
256-
response = operation.result()
256+
response = await operation.result()
257257
258258
# Handle the response
259259
print(response)
@@ -372,9 +372,9 @@ async def list_channels(
372372
373373
from google.cloud.video import live_stream_v1
374374
375-
def sample_list_channels():
375+
async def sample_list_channels():
376376
# Create a client
377-
client = live_stream_v1.LivestreamServiceClient()
377+
client = live_stream_v1.LivestreamServiceAsyncClient()
378378
379379
# Initialize request argument(s)
380380
request = live_stream_v1.ListChannelsRequest(
@@ -385,7 +385,7 @@ def sample_list_channels():
385385
page_result = client.list_channels(request=request)
386386
387387
# Handle the response
388-
for response in page_result:
388+
async for response in page_result:
389389
print(response)
390390
391391
Args:
@@ -489,17 +489,17 @@ async def get_channel(
489489
490490
from google.cloud.video import live_stream_v1
491491
492-
def sample_get_channel():
492+
async def sample_get_channel():
493493
# Create a client
494-
client = live_stream_v1.LivestreamServiceClient()
494+
client = live_stream_v1.LivestreamServiceAsyncClient()
495495
496496
# Initialize request argument(s)
497497
request = live_stream_v1.GetChannelRequest(
498498
name="name_value",
499499
)
500500
501501
# Make the request
502-
response = client.get_channel(request=request)
502+
response = await client.get_channel(request=request)
503503
504504
# Handle the response
505505
print(response)
@@ -600,9 +600,9 @@ async def delete_channel(
600600
601601
from google.cloud.video import live_stream_v1
602602
603-
def sample_delete_channel():
603+
async def sample_delete_channel():
604604
# Create a client
605-
client = live_stream_v1.LivestreamServiceClient()
605+
client = live_stream_v1.LivestreamServiceAsyncClient()
606606
607607
# Initialize request argument(s)
608608
request = live_stream_v1.DeleteChannelRequest(
@@ -614,7 +614,7 @@ def sample_delete_channel():
614614
615615
print("Waiting for operation to complete...")
616616
617-
response = operation.result()
617+
response = await operation.result()
618618
619619
# Handle the response
620620
print(response)
@@ -722,9 +722,9 @@ async def update_channel(
722722
723723
from google.cloud.video import live_stream_v1
724724
725-
def sample_update_channel():
725+
async def sample_update_channel():
726726
# Create a client
727-
client = live_stream_v1.LivestreamServiceClient()
727+
client = live_stream_v1.LivestreamServiceAsyncClient()
728728
729729
# Initialize request argument(s)
730730
request = live_stream_v1.UpdateChannelRequest(
@@ -735,7 +735,7 @@ def sample_update_channel():
735735
736736
print("Waiting for operation to complete...")
737737
738-
response = operation.result()
738+
response = await operation.result()
739739
740740
# Handle the response
741741
print(response)
@@ -859,9 +859,9 @@ async def start_channel(
859859
860860
from google.cloud.video import live_stream_v1
861861
862-
def sample_start_channel():
862+
async def sample_start_channel():
863863
# Create a client
864-
client = live_stream_v1.LivestreamServiceClient()
864+
client = live_stream_v1.LivestreamServiceAsyncClient()
865865
866866
# Initialize request argument(s)
867867
request = live_stream_v1.StartChannelRequest(
@@ -873,7 +873,7 @@ def sample_start_channel():
873873
874874
print("Waiting for operation to complete...")
875875
876-
response = operation.result()
876+
response = await operation.result()
877877
878878
# Handle the response
879879
print(response)
@@ -973,9 +973,9 @@ async def stop_channel(
973973
974974
from google.cloud.video import live_stream_v1
975975
976-
def sample_stop_channel():
976+
async def sample_stop_channel():
977977
# Create a client
978-
client = live_stream_v1.LivestreamServiceClient()
978+
client = live_stream_v1.LivestreamServiceAsyncClient()
979979
980980
# Initialize request argument(s)
981981
request = live_stream_v1.StopChannelRequest(
@@ -987,7 +987,7 @@ def sample_stop_channel():
987987
988988
print("Waiting for operation to complete...")
989989
990-
response = operation.result()
990+
response = await operation.result()
991991
992992
# Handle the response
993993
print(response)
@@ -1088,9 +1088,9 @@ async def create_input(
10881088
10891089
from google.cloud.video import live_stream_v1
10901090
1091-
def sample_create_input():
1091+
async def sample_create_input():
10921092
# Create a client
1093-
client = live_stream_v1.LivestreamServiceClient()
1093+
client = live_stream_v1.LivestreamServiceAsyncClient()
10941094
10951095
# Initialize request argument(s)
10961096
request = live_stream_v1.CreateInputRequest(
@@ -1103,7 +1103,7 @@ def sample_create_input():
11031103
11041104
print("Waiting for operation to complete...")
11051105
1106-
response = operation.result()
1106+
response = await operation.result()
11071107
11081108
# Handle the response
11091109
print(response)
@@ -1217,9 +1217,9 @@ async def list_inputs(
12171217
12181218
from google.cloud.video import live_stream_v1
12191219
1220-
def sample_list_inputs():
1220+
async def sample_list_inputs():
12211221
# Create a client
1222-
client = live_stream_v1.LivestreamServiceClient()
1222+
client = live_stream_v1.LivestreamServiceAsyncClient()
12231223
12241224
# Initialize request argument(s)
12251225
request = live_stream_v1.ListInputsRequest(
@@ -1230,7 +1230,7 @@ def sample_list_inputs():
12301230
page_result = client.list_inputs(request=request)
12311231
12321232
# Handle the response
1233-
for response in page_result:
1233+
async for response in page_result:
12341234
print(response)
12351235
12361236
Args:
@@ -1334,17 +1334,17 @@ async def get_input(
13341334
13351335
from google.cloud.video import live_stream_v1
13361336
1337-
def sample_get_input():
1337+
async def sample_get_input():
13381338
# Create a client
1339-
client = live_stream_v1.LivestreamServiceClient()
1339+
client = live_stream_v1.LivestreamServiceAsyncClient()
13401340
13411341
# Initialize request argument(s)
13421342
request = live_stream_v1.GetInputRequest(
13431343
name="name_value",
13441344
)
13451345
13461346
# Make the request
1347-
response = client.get_input(request=request)
1347+
response = await client.get_input(request=request)
13481348
13491349
# Handle the response
13501350
print(response)
@@ -1440,9 +1440,9 @@ async def delete_input(
14401440
14411441
from google.cloud.video import live_stream_v1
14421442
1443-
def sample_delete_input():
1443+
async def sample_delete_input():
14441444
# Create a client
1445-
client = live_stream_v1.LivestreamServiceClient()
1445+
client = live_stream_v1.LivestreamServiceAsyncClient()
14461446
14471447
# Initialize request argument(s)
14481448
request = live_stream_v1.DeleteInputRequest(
@@ -1454,7 +1454,7 @@ def sample_delete_input():
14541454
14551455
print("Waiting for operation to complete...")
14561456
1457-
response = operation.result()
1457+
response = await operation.result()
14581458
14591459
# Handle the response
14601460
print(response)
@@ -1562,9 +1562,9 @@ async def update_input(
15621562
15631563
from google.cloud.video import live_stream_v1
15641564
1565-
def sample_update_input():
1565+
async def sample_update_input():
15661566
# Create a client
1567-
client = live_stream_v1.LivestreamServiceClient()
1567+
client = live_stream_v1.LivestreamServiceAsyncClient()
15681568
15691569
# Initialize request argument(s)
15701570
request = live_stream_v1.UpdateInputRequest(
@@ -1575,7 +1575,7 @@ def sample_update_input():
15751575
15761576
print("Waiting for operation to complete...")
15771577
1578-
response = operation.result()
1578+
response = await operation.result()
15791579
15801580
# Handle the response
15811581
print(response)
@@ -1692,9 +1692,9 @@ async def create_event(
16921692
16931693
from google.cloud.video import live_stream_v1
16941694
1695-
def sample_create_event():
1695+
async def sample_create_event():
16961696
# Create a client
1697-
client = live_stream_v1.LivestreamServiceClient()
1697+
client = live_stream_v1.LivestreamServiceAsyncClient()
16981698
16991699
# Initialize request argument(s)
17001700
request = live_stream_v1.CreateEventRequest(
@@ -1703,7 +1703,7 @@ def sample_create_event():
17031703
)
17041704
17051705
# Make the request
1706-
response = client.create_event(request=request)
1706+
response = await client.create_event(request=request)
17071707
17081708
# Handle the response
17091709
print(response)
@@ -1811,9 +1811,9 @@ async def list_events(
18111811
18121812
from google.cloud.video import live_stream_v1
18131813
1814-
def sample_list_events():
1814+
async def sample_list_events():
18151815
# Create a client
1816-
client = live_stream_v1.LivestreamServiceClient()
1816+
client = live_stream_v1.LivestreamServiceAsyncClient()
18171817
18181818
# Initialize request argument(s)
18191819
request = live_stream_v1.ListEventsRequest(
@@ -1824,7 +1824,7 @@ def sample_list_events():
18241824
page_result = client.list_events(request=request)
18251825
18261826
# Handle the response
1827-
for response in page_result:
1827+
async for response in page_result:
18281828
print(response)
18291829
18301830
Args:
@@ -1929,17 +1929,17 @@ async def get_event(
19291929
19301930
from google.cloud.video import live_stream_v1
19311931
1932-
def sample_get_event():
1932+
async def sample_get_event():
19331933
# Create a client
1934-
client = live_stream_v1.LivestreamServiceClient()
1934+
client = live_stream_v1.LivestreamServiceAsyncClient()
19351935
19361936
# Initialize request argument(s)
19371937
request = live_stream_v1.GetEventRequest(
19381938
name="name_value",
19391939
)
19401940
19411941
# Make the request
1942-
response = client.get_event(request=request)
1942+
response = await client.get_event(request=request)
19431943
19441944
# Handle the response
19451945
print(response)
@@ -2036,17 +2036,17 @@ async def delete_event(
20362036
20372037
from google.cloud.video import live_stream_v1
20382038
2039-
def sample_delete_event():
2039+
async def sample_delete_event():
20402040
# Create a client
2041-
client = live_stream_v1.LivestreamServiceClient()
2041+
client = live_stream_v1.LivestreamServiceAsyncClient()
20422042
20432043
# Initialize request argument(s)
20442044
request = live_stream_v1.DeleteEventRequest(
20452045
name="name_value",
20462046
)
20472047
20482048
# Make the request
2049-
client.delete_event(request=request)
2049+
await client.delete_event(request=request)
20502050
20512051
Args:
20522052
request (Union[google.cloud.video.live_stream_v1.types.DeleteEventRequest, dict]):

0 commit comments

Comments
 (0)