/// <summary>Snippet for RunOfflineUserDataJobAsync</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 RunOfflineUserDataJobAsync() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/offlineUserDataJobs/[OFFLINE_USER_DATA_UPDATE_ID]"; // 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; } }
/// <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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"); // 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 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 GetOfflineUserDataJobResourceNamesAsync() { // 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); }
/// <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 GetOfflineUserDataJobAsync() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/offlineUserDataJobs/[OFFLINE_USER_DATA_UPDATE_ID]"; // Make the request OfflineUserDataJob response = await offlineUserDataJobServiceClient.GetOfflineUserDataJobAsync(resourceName); }
/// <summary>Snippet for CreateOfflineUserDataJobAsync</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 CreateOfflineUserDataJobAsync() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; OfflineUserDataJob job = new OfflineUserDataJob(); // Make the request CreateOfflineUserDataJobResponse response = await offlineUserDataJobServiceClient.CreateOfflineUserDataJobAsync(customerId, job); }
/// <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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), }; // Make the request OfflineUserDataJob response = await offlineUserDataJobServiceClient.GetOfflineUserDataJobAsync(request); }
/// <summary>Snippet for CreateOfflineUserDataJobAsync</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 CreateOfflineUserDataJobRequestObjectAsync() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest { CustomerId = "", Job = new OfflineUserDataJob(), }; // Make the request CreateOfflineUserDataJobResponse response = await offlineUserDataJobServiceClient.CreateOfflineUserDataJobAsync(request); }
/// <summary>Snippet for AddOfflineUserDataJobOperationsAsync</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 AddOfflineUserDataJobOperationsResourceNamesAsync() { // 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); }
/// <summary>Snippet for AddOfflineUserDataJobOperationsAsync</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 AddOfflineUserDataJobOperationsAsync() { // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/offlineUserDataJobs/[OFFLINE_USER_DATA_UPDATE_ID]"; IEnumerable <OfflineUserDataJobOperation> operations = new OfflineUserDataJobOperation[] { new OfflineUserDataJobOperation(), }; // Make the request AddOfflineUserDataJobOperationsResponse response = await offlineUserDataJobServiceClient.AddOfflineUserDataJobOperationsAsync(resourceName, operations); }
/// <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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"); // Make the request OfflineUserDataJob response = await offlineUserDataJobServiceClient.GetOfflineUserDataJobAsync(resourceName); // End snippet }
/// <summary>Snippet for GetOfflineUserDataJobAsync</summary> public async Task GetOfflineUserDataJobAsync() { // Snippet: GetOfflineUserDataJobAsync(string, CallSettings) // Additional: GetOfflineUserDataJobAsync(string, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/offlineUserDataJobs/[OFFLINE_USER_DATA_UPDATE_ID]"; // Make the request OfflineUserDataJob response = await offlineUserDataJobServiceClient.GetOfflineUserDataJobAsync(resourceName); // End snippet }
/// <summary>Snippet for CreateOfflineUserDataJobAsync</summary> public async Task CreateOfflineUserDataJobAsync() { // Snippet: CreateOfflineUserDataJobAsync(string, OfflineUserDataJob, CallSettings) // Additional: CreateOfflineUserDataJobAsync(string, OfflineUserDataJob, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; OfflineUserDataJob job = new OfflineUserDataJob(); // Make the request CreateOfflineUserDataJobResponse response = await offlineUserDataJobServiceClient.CreateOfflineUserDataJobAsync(customerId, job); // End snippet }
/// <summary>Snippet for GetOfflineUserDataJobAsync</summary> public async Task GetOfflineUserDataJobRequestObjectAsync() { // Snippet: GetOfflineUserDataJobAsync(GetOfflineUserDataJobRequest, CallSettings) // Additional: GetOfflineUserDataJobAsync(GetOfflineUserDataJobRequest, CancellationToken) // 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); // End snippet }
/// <summary>Snippet for AddOfflineUserDataJobOperationsAsync</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 AddOfflineUserDataJobOperationsRequestObjectAsync() { // 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); }
/// <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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"); IEnumerable <OfflineUserDataJobOperation> operations = new OfflineUserDataJobOperation[] { new OfflineUserDataJobOperation(), }; // Make the request AddOfflineUserDataJobOperationsResponse response = await offlineUserDataJobServiceClient.AddOfflineUserDataJobOperationsAsync(resourceName, operations); // End snippet }
/// <summary>Snippet for CreateOfflineUserDataJobAsync</summary> public async Task CreateOfflineUserDataJobRequestObjectAsync() { // Snippet: CreateOfflineUserDataJobAsync(CreateOfflineUserDataJobRequest, CallSettings) // Additional: CreateOfflineUserDataJobAsync(CreateOfflineUserDataJobRequest, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest { CustomerId = "", Job = new OfflineUserDataJob(), }; // Make the request CreateOfflineUserDataJobResponse response = await offlineUserDataJobServiceClient.CreateOfflineUserDataJobAsync(request); // End snippet }
/// <summary>Snippet for AddOfflineUserDataJobOperationsAsync</summary> public async Task AddOfflineUserDataJobOperationsAsync() { // Snippet: AddOfflineUserDataJobOperationsAsync(string, IEnumerable<OfflineUserDataJobOperation>, CallSettings) // Additional: AddOfflineUserDataJobOperationsAsync(string, IEnumerable<OfflineUserDataJobOperation>, CancellationToken) // Create client OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = await OfflineUserDataJobServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/offlineUserDataJobs/[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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), Operations = { new OfflineUserDataJobOperation(), }, EnablePartialFailure = false, }; // Make the request AddOfflineUserDataJobOperationsResponse response = await offlineUserDataJobServiceClient.AddOfflineUserDataJobOperationsAsync(request); // End snippet }