/// <summary>Snippet for SubmitJobAsync</summary> public async Task SubmitJobAsync() { // Snippet: SubmitJobAsync(string, string, Job, CallSettings) // Additional: SubmitJobAsync(string, string, Job, CancellationToken) // Create client JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync(); // Initialize request argument(s) string projectId = ""; string region = ""; Job job = new Job(); // Make the request Job response = await jobControllerClient.SubmitJobAsync(projectId, region, job); // End snippet }
/// <summary>Snippet for SubmitJobAsync</summary> public async Task SubmitJobAsync_RequestObject() { // Snippet: SubmitJobAsync(SubmitJobRequest,CallSettings) // Create client JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync(); // Initialize request argument(s) SubmitJobRequest request = new SubmitJobRequest { ProjectId = "", Region = "", Job = new Job(), }; // Make the request Job response = await jobControllerClient.SubmitJobAsync(request); // End snippet }