/// <summary>Snippet for GetChangeStatus</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetChangeStatusResourceNames()
 {
     // Create client
     ChangeStatusServiceClient changeStatusServiceClient = ChangeStatusServiceClient.Create();
     // Initialize request argument(s)
     ChangeStatusName resourceName = ChangeStatusName.FromCustomerChangeStatus("[CUSTOMER_ID]", "[CHANGE_STATUS_ID]");
     // Make the request
     ChangeStatus response = changeStatusServiceClient.GetChangeStatus(resourceName);
 }
        /// <summary>Snippet for GetChangeStatusAsync</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 GetChangeStatusResourceNamesAsync()
        {
            // Create client
            ChangeStatusServiceClient changeStatusServiceClient = await ChangeStatusServiceClient.CreateAsync();

            // Initialize request argument(s)
            ChangeStatusName resourceName = ChangeStatusName.FromCustomerChangeStatus("[CUSTOMER]", "[CHANGE_STATUS]");
            // Make the request
            ChangeStatus response = await changeStatusServiceClient.GetChangeStatusAsync(resourceName);
        }
 /// <summary>Snippet for GetChangeStatus</summary>
 public void GetChangeStatusResourceNames()
 {
     // Snippet: GetChangeStatus(ChangeStatusName, CallSettings)
     // Create client
     ChangeStatusServiceClient changeStatusServiceClient = ChangeStatusServiceClient.Create();
     // Initialize request argument(s)
     ChangeStatusName resourceName = ChangeStatusName.FromCustomerChangeStatus("[CUSTOMER]", "[CHANGE_STATUS]");
     // Make the request
     ChangeStatus response = changeStatusServiceClient.GetChangeStatus(resourceName);
     // End snippet
 }
Example #4
0
 /// <summary>Snippet for GetChangeStatus</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetChangeStatusRequestObject()
 {
     // Create client
     ChangeStatusServiceClient changeStatusServiceClient = ChangeStatusServiceClient.Create();
     // Initialize request argument(s)
     GetChangeStatusRequest request = new GetChangeStatusRequest
     {
         ResourceNameAsChangeStatusName = ChangeStatusName.FromCustomerChangeStatus("[CUSTOMER]", "[CHANGE_STATUS]"),
     };
     // Make the request
     ChangeStatus response = changeStatusServiceClient.GetChangeStatus(request);
 }
        /// <summary>Snippet for GetChangeStatusAsync</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 GetChangeStatusRequestObjectAsync()
        {
            // Create client
            ChangeStatusServiceClient changeStatusServiceClient = await ChangeStatusServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetChangeStatusRequest request = new GetChangeStatusRequest
            {
                ResourceNameAsChangeStatusName = ChangeStatusName.FromCustomerChangeStatus("[CUSTOMER_ID]", "[CHANGE_STATUS_ID]"),
            };
            // Make the request
            ChangeStatus response = await changeStatusServiceClient.GetChangeStatusAsync(request);
        }
Example #6
0
        /// <summary>Snippet for GetChangeStatusAsync</summary>
        public async Task GetChangeStatusResourceNamesAsync()
        {
            // Snippet: GetChangeStatusAsync(ChangeStatusName, CallSettings)
            // Additional: GetChangeStatusAsync(ChangeStatusName, CancellationToken)
            // Create client
            ChangeStatusServiceClient changeStatusServiceClient = await ChangeStatusServiceClient.CreateAsync();

            // Initialize request argument(s)
            ChangeStatusName resourceName = ChangeStatusName.FromCustomerChangeStatus("[CUSTOMER_ID]", "[CHANGE_STATUS_ID]");
            // Make the request
            ChangeStatus response = await changeStatusServiceClient.GetChangeStatusAsync(resourceName);

            // End snippet
        }