/// <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;
            }
        }
Example #2
0
        /// <summary>Snippet for RunOfflineUserDataJob</summary>
        public void RunOfflineUserDataJob()
        {
            // Snippet: RunOfflineUserDataJob(string, CallSettings)
            // Create client
            OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/offlineUserDataJobs/[OFFLINE_USER_DATA_UPDATE_ID]";
            // Make the request
            Operation <Empty, Empty> response = offlineUserDataJobServiceClient.RunOfflineUserDataJob(resourceName);

            // 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
        }
 /// <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 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 GetOfflineUserDataJob()
 {
     // Create client
     OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/offlineUserDataJobs/[OFFLINE_USER_DATA_UPDATE_ID]";
     // Make the request
     OfflineUserDataJob response = offlineUserDataJobServiceClient.GetOfflineUserDataJob(resourceName);
 }
 /// <summary>Snippet for CreateOfflineUserDataJob</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateOfflineUserDataJob()
 {
     // Create client
     OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
     // Initialize request argument(s)
     string             customerId = "";
     OfflineUserDataJob job        = new OfflineUserDataJob();
     // Make the request
     CreateOfflineUserDataJobResponse response = offlineUserDataJobServiceClient.CreateOfflineUserDataJob(customerId, job);
 }
Example #6
0
 /// <summary>Snippet for GetOfflineUserDataJob</summary>
 public void GetOfflineUserDataJobResourceNames()
 {
     // Snippet: GetOfflineUserDataJob(OfflineUserDataJobName, CallSettings)
     // 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);
     // End snippet
 }
 /// <summary>Snippet for GetOfflineUserDataJob</summary>
 public void GetOfflineUserDataJob()
 {
     // Snippet: GetOfflineUserDataJob(string, CallSettings)
     // Create client
     OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER]/offlineUserDataJobs/[OFFLINE_USER_DATA_JOB]";
     // Make the request
     OfflineUserDataJob response = offlineUserDataJobServiceClient.GetOfflineUserDataJob(resourceName);
     // 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 GetOfflineUserDataJobRequestObject()
 {
     // 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);
 }
 /// <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 AddOfflineUserDataJobOperations()
 {
     // Create client
     OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
     // 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 = offlineUserDataJobServiceClient.AddOfflineUserDataJobOperations(resourceName, operations);
 }
Example #10
0
 /// <summary>Snippet for CreateOfflineUserDataJob</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateOfflineUserDataJobRequestObject()
 {
     // Create client
     OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
     // Initialize request argument(s)
     CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest
     {
         CustomerId = "",
         Job        = new OfflineUserDataJob(),
     };
     // Make the request
     CreateOfflineUserDataJobResponse response = offlineUserDataJobServiceClient.CreateOfflineUserDataJob(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);
 }
 /// <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 AddOfflineUserDataJobOperations</summary>
 public void AddOfflineUserDataJobOperationsResourceNames()
 {
     // Snippet: AddOfflineUserDataJobOperations(OfflineUserDataJobName, IEnumerable<OfflineUserDataJobOperation>, CallSettings)
     // 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);
     // End snippet
 }
Example #14
0
 /// <summary>Snippet for CreateOfflineUserDataJob</summary>
 public void CreateOfflineUserDataJobRequestObject()
 {
     // Snippet: CreateOfflineUserDataJob(CreateOfflineUserDataJobRequest, CallSettings)
     // Create client
     OfflineUserDataJobServiceClient offlineUserDataJobServiceClient = OfflineUserDataJobServiceClient.Create();
     // Initialize request argument(s)
     CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest
     {
         CustomerId   = "",
         Job          = new OfflineUserDataJob(),
         ValidateOnly = false,
     };
     // Make the request
     CreateOfflineUserDataJobResponse response = offlineUserDataJobServiceClient.CreateOfflineUserDataJob(request);
     // 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);
 }
Example #16
0
 /// <summary>Snippet for AddOfflineUserDataJobOperations</summary>
 public void AddOfflineUserDataJobOperationsRequestObject()
 {
     // Snippet: AddOfflineUserDataJobOperations(AddOfflineUserDataJobOperationsRequest, CallSettings)
     // 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);
     // End snippet
 }