Example #1
0
def sample_get_game_server_deployment():
    # Create a client
    client = gaming_v1.GameServerDeploymentsServiceClient()

    # Initialize request argument(s)
    request = gaming_v1.GetGameServerDeploymentRequest(name="name_value", )

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

    # Handle the response
    print(response)
def sample_preview_game_server_deployment_rollout():
    # Create a client
    client = gaming_v1.GameServerDeploymentsServiceClient()

    # Initialize request argument(s)
    request = gaming_v1.PreviewGameServerDeploymentRolloutRequest(
    )

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

    # Handle the response
    print(response)
Example #3
0
def sample_fetch_deployment_state():
    # Create a client
    client = gaming_v1.GameServerDeploymentsServiceClient()

    # Initialize request argument(s)
    request = gaming_v1.FetchDeploymentStateRequest(
        name="name_value",
    )

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

    # Handle the response
    print(response)
def sample_list_game_server_deployments():
    # Create a client
    client = gaming_v1.GameServerDeploymentsServiceClient()

    # 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
    for response in page_result:
        print(response)
def sample_delete_game_server_deployment():
    # Create a client
    client = gaming_v1.GameServerDeploymentsServiceClient()

    # 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 = operation.result()

    # Handle the response
    print(response)