Esempio n. 1
0
        /// <summary>Snippet for GetJobAsync</summary>
        public async Task GetJobAsync()
        {
            // Snippet: GetJobAsync(string, string, string, CallSettings)
            // Additional: GetJobAsync(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.GetJobAsync(projectId, region, jobId);

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

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

            // End snippet
        }