/// <summary>Snippet for RunOfflineUserDataJob</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void RunOfflineUserDataJobRequestObject() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create(); // Initialize request argument(s) RunOfflineUserDataJobRequest request = new RunOfflineUserDataJobRequest { ResourceNameAsOfflineUserDataJobName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"), }; // Make the request Operation <Empty, Empty> response = offlineUserDataJobServiceClient.RunOfflineUserDataJob(request); // Poll until the returned long-running operation is complete Operation <Empty, Empty> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Empty result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Empty, Empty> retrievedResponse = offlineUserDataJobServiceClient.PollOnceRunOfflineUserDataJob(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Empty retrievedResult = retrievedResponse.Result; } }
/// <summary>Snippet for RunOfflineUserDataJobAsync</summary> public async Task RunOfflineUserDataJobResourceNamesAsync() { // Snippet: RunOfflineUserDataJobAsync(OfflineUserDataJobName, CallSettings) // Additional: RunOfflineUserDataJobAsync(OfflineUserDataJobName, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) OfflineUserDataJobName resourceName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"); // Make the request Operation <Empty, Empty> response = await offlineUserDataJobServiceClient.RunOfflineUserDataJobAsync(resourceName); // Poll until the returned long-running operation is complete Operation <Empty, Empty> completedResponse = await response.PollUntilCompletedAsync(); // Retrieve the operation result Empty result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Empty, Empty> retrievedResponse = await offlineUserDataJobServiceClient.PollOnceRunOfflineUserDataJobAsync(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Empty retrievedResult = retrievedResponse.Result; } // End snippet }
/// <summary>Snippet for GetOfflineUserDataJob</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetOfflineUserDataJobResourceNames() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create(); // Initialize request argument(s) OfflineUserDataJobName resourceName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"); // Make the request OfflineUserDataJob response = offlineUserDataJobServiceClient.GetOfflineUserDataJob(resourceName); }
/// <summary>Snippet for AddOfflineUserDataJobOperations</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void AddOfflineUserDataJobOperationsResourceNames() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create(); // Initialize request argument(s) OfflineUserDataJobName resourceName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"); IEnumerable <OfflineUserDataJobOperation> operations = new OfflineUserDataJobOperation[] { new OfflineUserDataJobOperation(), }; // Make the request AddOfflineUserDataJobOperationsResponse response = offlineUserDataJobServiceClient.AddOfflineUserDataJobOperations(resourceName, operations); }
/// <summary>Snippet for GetOfflineUserDataJobAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetOfflineUserDataJobRequestObjectAsync() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) GetOfflineUserDataJobRequest request = new GetOfflineUserDataJobRequest { ResourceNameAsOfflineUserDataJobName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"), }; // Make the request OfflineUserDataJob response = await offlineUserDataJobServiceClient.GetOfflineUserDataJobAsync(request); }
/// <summary>Snippet for GetOfflineUserDataJob</summary> public void GetOfflineUserDataJobRequestObject() { // Snippet: GetOfflineUserDataJob(GetOfflineUserDataJobRequest, CallSettings) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create(); // Initialize request argument(s) GetOfflineUserDataJobRequest request = new GetOfflineUserDataJobRequest { ResourceNameAsOfflineUserDataJobName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"), }; // Make the request OfflineUserDataJob response = offlineUserDataJobServiceClient.GetOfflineUserDataJob(request); // End snippet }
/// <summary>Snippet for GetOfflineUserDataJobAsync</summary> public async Task GetOfflineUserDataJobResourceNamesAsync() { // Snippet: GetOfflineUserDataJobAsync(OfflineUserDataJobName, CallSettings) // Additional: GetOfflineUserDataJobAsync(OfflineUserDataJobName, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) OfflineUserDataJobName resourceName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"); // Make the request OfflineUserDataJob response = await offlineUserDataJobServiceClient.GetOfflineUserDataJobAsync(resourceName); // End snippet }
/// <summary>Snippet for AddOfflineUserDataJobOperations</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void AddOfflineUserDataJobOperationsRequestObject() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create(); // Initialize request argument(s) AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest { ResourceNameAsOfflineUserDataJobName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"), EnablePartialFailure = false, Operations = { new OfflineUserDataJobOperation(), }, }; // Make the request AddOfflineUserDataJobOperationsResponse response = offlineUserDataJobServiceClient.AddOfflineUserDataJobOperations(request); }
/// <summary>Snippet for AddOfflineUserDataJobOperationsAsync</summary> public async Task AddOfflineUserDataJobOperationsResourceNamesAsync() { // Snippet: AddOfflineUserDataJobOperationsAsync(OfflineUserDataJobName, IEnumerable<OfflineUserDataJobOperation>, CallSettings) // Additional: AddOfflineUserDataJobOperationsAsync(OfflineUserDataJobName, IEnumerable<OfflineUserDataJobOperation>, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) OfflineUserDataJobName resourceName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"); IEnumerable <OfflineUserDataJobOperation> operations = new OfflineUserDataJobOperation[] { new OfflineUserDataJobOperation(), }; // Make the request AddOfflineUserDataJobOperationsResponse response = await offlineUserDataJobServiceClient.AddOfflineUserDataJobOperationsAsync(resourceName, operations); // End snippet }
/// <summary>Snippet for AddOfflineUserDataJobOperationsAsync</summary> public async Task AddOfflineUserDataJobOperationsRequestObjectAsync() { // Snippet: AddOfflineUserDataJobOperationsAsync(AddOfflineUserDataJobOperationsRequest, CallSettings) // Additional: AddOfflineUserDataJobOperationsAsync(AddOfflineUserDataJobOperationsRequest, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest { ResourceNameAsOfflineUserDataJobName = OfflineUserDataJobName.FromCustomerOfflineUserDataJob("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]"), EnablePartialFailure = false, Operations = { new OfflineUserDataJobOperation(), }, }; // Make the request AddOfflineUserDataJobOperationsResponse response = await offlineUserDataJobServiceClient.AddOfflineUserDataJobOperationsAsync(request); // End snippet }