async def sample_fetch_deployment_state(): # Create a client client = gaming_v1.GameServerDeploymentsServiceAsyncClient() # Initialize request argument(s) request = gaming_v1.FetchDeploymentStateRequest(name="name_value", ) # Make the request response = await client.fetch_deployment_state(request=request) # Handle the response print(response)
async def sample_get_game_server_deployment(): # Create a client client = gaming_v1.GameServerDeploymentsServiceAsyncClient() # Initialize request argument(s) request = gaming_v1.GetGameServerDeploymentRequest(name="name_value", ) # Make the request response = await client.get_game_server_deployment(request=request) # Handle the response print(response)
async def sample_preview_game_server_deployment_rollout(): # Create a client client = gaming_v1.GameServerDeploymentsServiceAsyncClient() # Initialize request argument(s) request = gaming_v1.PreviewGameServerDeploymentRolloutRequest( ) # Make the request response = await client.preview_game_server_deployment_rollout(request=request) # Handle the response print(response)
async def sample_list_game_server_deployments(): # Create a client client = gaming_v1.GameServerDeploymentsServiceAsyncClient() # Initialize request argument(s) request = gaming_v1.ListGameServerDeploymentsRequest( parent="parent_value", ) # Make the request page_result = client.list_game_server_deployments(request=request) # Handle the response async for response in page_result: print(response)
async def sample_delete_game_server_deployment(): # Create a client client = gaming_v1.GameServerDeploymentsServiceAsyncClient() # Initialize request argument(s) request = gaming_v1.DeleteGameServerDeploymentRequest(name="name_value", ) # Make the request operation = client.delete_game_server_deployment(request=request) print("Waiting for operation to complete...") response = await operation.result() # Handle the response print(response)