Example #1
0
        /// <summary>Snippet for CancelJobAsync</summary>
        public async Task CancelJobAsync()
        {
            // Snippet: CancelJobAsync(string, string, string, CallSettings)
            // Additional: CancelJobAsync(string, string, string, CancellationToken)
            // Create client
            JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();

            // Initialize request argument(s)
            string projectId = "";
            string region    = "";
            string jobId     = "";
            // Make the request
            Job response = await jobControllerClient.CancelJobAsync(projectId, region, jobId);

            // End snippet
        }
        /// <summary>Snippet for CancelJobAsync</summary>
        public async Task CancelJobAsync_RequestObject()
        {
            // Snippet: CancelJobAsync(CancelJobRequest,CallSettings)
            // Create client
            JobControllerClient jobControllerClient = await JobControllerClient.CreateAsync();

            // Initialize request argument(s)
            CancelJobRequest request = new CancelJobRequest
            {
                ProjectId = "",
                Region    = "",
                JobId     = "",
            };
            // Make the request
            Job response = await jobControllerClient.CancelJobAsync(request);

            // End snippet
        }