async def sample_get_game_server_cluster(): # Create a client client = gaming_v1beta.GameServerClustersServiceAsyncClient() # Initialize request argument(s) request = gaming_v1beta.GetGameServerClusterRequest(name="name_value", ) # Make the request response = await client.get_game_server_cluster(request=request) # Handle the response print(response)
async def sample_list_game_server_clusters(): # Create a client client = gaming_v1beta.GameServerClustersServiceAsyncClient() # Initialize request argument(s) request = gaming_v1beta.ListGameServerClustersRequest( parent="parent_value", ) # Make the request page_result = client.list_game_server_clusters(request=request) # Handle the response async for response in page_result: print(response)
async def sample_delete_game_server_cluster(): # Create a client client = gaming_v1beta.GameServerClustersServiceAsyncClient() # Initialize request argument(s) request = gaming_v1beta.DeleteGameServerClusterRequest(name="name_value", ) # Make the request operation = client.delete_game_server_cluster(request=request) print("Waiting for operation to complete...") response = await operation.result() # Handle the response print(response)
async def sample_preview_update_game_server_cluster(): # Create a client client = gaming_v1beta.GameServerClustersServiceAsyncClient() # Initialize request argument(s) game_server_cluster = gaming_v1beta.GameServerCluster() game_server_cluster.name = "name_value" request = gaming_v1beta.PreviewUpdateGameServerClusterRequest( game_server_cluster=game_server_cluster, ) # Make the request response = await client.preview_update_game_server_cluster(request=request) # Handle the response print(response)