Ejemplo n.º 1
0
        /// <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
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for RunOfflineUserDataJob</summary>
        public void RunOfflineUserDataJobRequestObject()
        {
            // Snippet: RunOfflineUserDataJob(RunOfflineUserDataJobRequest, CallSettings)
            // Create client
            OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
            // Initialize request argument(s)
            RunOfflineUserDataJobRequest request = new RunOfflineUserDataJobRequest
            {
                ResourceNameAsOfflineUserDataJobName = OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"),
                ValidateOnly = false,
            };
            // 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;
            }
            // End snippet
        }
Ejemplo n.º 3
0
 /// <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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]");
     // Make the request
     OfflineUserDataJob response = offlineUserDataJobServiceClient.GetOfflineUserDataJob(resourceName);
 }
Ejemplo n.º 4
0
        /// <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 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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]");
     IEnumerable <OfflineUserDataJobOperation> operations = new OfflineUserDataJobOperation[]
     {
         new OfflineUserDataJobOperation(),
     };
     // Make the request
     AddOfflineUserDataJobOperationsResponse response = offlineUserDataJobServiceClient.AddOfflineUserDataJobOperations(resourceName, operations);
 }
Ejemplo n.º 6
0
 /// <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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"),
     };
     // Make the request
     OfflineUserDataJob response = offlineUserDataJobServiceClient.GetOfflineUserDataJob(request);
     // End snippet
 }
Ejemplo n.º 7
0
        /// <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
        }
Ejemplo n.º 8
0
 /// <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.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"),
         Operations =
         {
             new OfflineUserDataJobOperation(),
         },
         EnablePartialFailure = false,
     };
     // Make the request
     AddOfflineUserDataJobOperationsResponse response = offlineUserDataJobServiceClient.AddOfflineUserDataJobOperations(request);
 }
Ejemplo n.º 9
0
        /// <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
        }
Ejemplo n.º 10
0
        /// <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
        }