async def sample_preview_update_game_server_cluster():
    # Create a client
    client = gaming_v1.GameServerClustersServiceAsyncClient()

    # Initialize request argument(s)
    game_server_cluster = gaming_v1.GameServerCluster()
    game_server_cluster.name = "name_value"

    request = gaming_v1.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)
Exemplo n.º 2
0
def sample_preview_create_game_server_cluster():
    # Create a client
    client = gaming_v1.GameServerClustersServiceClient()

    # Initialize request argument(s)
    game_server_cluster = gaming_v1.GameServerCluster()
    game_server_cluster.name = "name_value"

    request = gaming_v1.PreviewCreateGameServerClusterRequest(
        parent="parent_value",
        game_server_cluster_id="game_server_cluster_id_value",
        game_server_cluster=game_server_cluster,
    )

    # Make the request
    response = client.preview_create_game_server_cluster(request=request)

    # Handle the response
    print(response)
def sample_update_game_server_cluster():
    # Create a client
    client = gaming_v1.GameServerClustersServiceClient()

    # Initialize request argument(s)
    game_server_cluster = gaming_v1.GameServerCluster()
    game_server_cluster.name = "name_value"

    request = gaming_v1.UpdateGameServerClusterRequest(
        game_server_cluster=game_server_cluster, )

    # Make the request
    operation = client.update_game_server_cluster(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
Exemplo n.º 4
0
async def sample_create_game_server_cluster():
    # Create a client
    client = gaming_v1.GameServerClustersServiceAsyncClient()

    # Initialize request argument(s)
    game_server_cluster = gaming_v1.GameServerCluster()
    game_server_cluster.name = "name_value"

    request = gaming_v1.CreateGameServerClusterRequest(
        parent="parent_value",
        game_server_cluster_id="game_server_cluster_id_value",
        game_server_cluster=game_server_cluster,
    )

    # Make the request
    operation = client.create_game_server_cluster(request=request)

    print("Waiting for operation to complete...")

    response = await operation.result()

    # Handle the response
    print(response)