@@ -564,11 +564,11 @@ async def sample_create_trigger(): |
564 | 564 | ) |
565 | 565 |
|
566 | 566 | # Make the request |
567 | | - operation = client.create_trigger(request=request) |
| 567 | + operation = await client.create_trigger(request=request) |
568 | 568 |
|
569 | 569 | print("Waiting for operation to complete...") |
570 | 570 |
|
571 | | - response = (await operation).result() |
| 571 | + response = await operation.result() |
572 | 572 |
|
573 | 573 | # Handle the response |
574 | 574 | print(response) |
@@ -703,11 +703,11 @@ async def sample_update_trigger(): |
703 | 703 | ) |
704 | 704 |
|
705 | 705 | # Make the request |
706 | | - operation = client.update_trigger(request=request) |
| 706 | + operation = await client.update_trigger(request=request) |
707 | 707 |
|
708 | 708 | print("Waiting for operation to complete...") |
709 | 709 |
|
710 | | - response = (await operation).result() |
| 710 | + response = await operation.result() |
711 | 711 |
|
712 | 712 | # Handle the response |
713 | 713 | print(response) |
@@ -845,11 +845,11 @@ async def sample_delete_trigger(): |
845 | 845 | ) |
846 | 846 |
|
847 | 847 | # Make the request |
848 | | - operation = client.delete_trigger(request=request) |
| 848 | + operation = await client.delete_trigger(request=request) |
849 | 849 |
|
850 | 850 | print("Waiting for operation to complete...") |
851 | 851 |
|
852 | | - response = (await operation).result() |
| 852 | + response = await operation.result() |
853 | 853 |
|
854 | 854 | # Handle the response |
855 | 855 | print(response) |
@@ -1218,11 +1218,11 @@ async def sample_create_channel(): |
1218 | 1218 | ) |
1219 | 1219 |
|
1220 | 1220 | # Make the request |
1221 | | - operation = client.create_channel(request=request) |
| 1221 | + operation = await client.create_channel(request=request) |
1222 | 1222 |
|
1223 | 1223 | print("Waiting for operation to complete...") |
1224 | 1224 |
|
1225 | | - response = (await operation).result() |
| 1225 | + response = await operation.result() |
1226 | 1226 |
|
1227 | 1227 | # Handle the response |
1228 | 1228 | print(response) |
@@ -1359,11 +1359,11 @@ async def sample_update_channel(): |
1359 | 1359 | ) |
1360 | 1360 |
|
1361 | 1361 | # Make the request |
1362 | | - operation = client.update_channel(request=request) |
| 1362 | + operation = await client.update_channel(request=request) |
1363 | 1363 |
|
1364 | 1364 | print("Waiting for operation to complete...") |
1365 | 1365 |
|
1366 | | - response = (await operation).result() |
| 1366 | + response = await operation.result() |
1367 | 1367 |
|
1368 | 1368 | # Handle the response |
1369 | 1369 | print(response) |
@@ -1493,11 +1493,11 @@ async def sample_delete_channel(): |
1493 | 1493 | ) |
1494 | 1494 |
|
1495 | 1495 | # Make the request |
1496 | | - operation = client.delete_channel(request=request) |
| 1496 | + operation = await client.delete_channel(request=request) |
1497 | 1497 |
|
1498 | 1498 | print("Waiting for operation to complete...") |
1499 | 1499 |
|
1500 | | - response = (await operation).result() |
| 1500 | + response = await operation.result() |
1501 | 1501 |
|
1502 | 1502 | # Handle the response |
1503 | 1503 | print(response) |
@@ -2084,11 +2084,11 @@ async def sample_create_channel_connection(): |
2084 | 2084 | ) |
2085 | 2085 |
|
2086 | 2086 | # Make the request |
2087 | | - operation = client.create_channel_connection(request=request) |
| 2087 | + operation = await client.create_channel_connection(request=request) |
2088 | 2088 |
|
2089 | 2089 | print("Waiting for operation to complete...") |
2090 | 2090 |
|
2091 | | - response = (await operation).result() |
| 2091 | + response = await operation.result() |
2092 | 2092 |
|
2093 | 2093 | # Handle the response |
2094 | 2094 | print(response) |
@@ -2225,11 +2225,11 @@ async def sample_delete_channel_connection(): |
2225 | 2225 | ) |
2226 | 2226 |
|
2227 | 2227 | # Make the request |
2228 | | - operation = client.delete_channel_connection(request=request) |
| 2228 | + operation = await client.delete_channel_connection(request=request) |
2229 | 2229 |
|
2230 | 2230 | print("Waiting for operation to complete...") |
2231 | 2231 |
|
2232 | | - response = (await operation).result() |
| 2232 | + response = await operation.result() |
2233 | 2233 |
|
2234 | 2234 | # Handle the response |
2235 | 2235 | print(response) |
|