/// <summary>Snippet for CreateEndpointAsync</summary>
        public async Task CreateEndpointResourceNamesAsync()
        {
            // Snippet: CreateEndpointAsync(LocationName, Endpoint, string, CallSettings)
            // Additional: CreateEndpointAsync(LocationName, Endpoint, string, CancellationToken)
            // Create client
            IDSClient iDSClient = await IDSClient.CreateAsync();

            // Initialize request argument(s)
            LocationName parent     = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            Endpoint     endpoint   = new Endpoint();
            string       endpointId = "";
            // Make the request
            Operation <Endpoint, OperationMetadata> response = await iDSClient.CreateEndpointAsync(parent, endpoint, endpointId);

            // Poll until the returned long-running operation is complete
            Operation <Endpoint, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();

            // Retrieve the operation result
            Endpoint 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 <Endpoint, OperationMetadata> retrievedResponse = await iDSClient.PollOnceCreateEndpointAsync(operationName);

            // Check if the retrieved long-running operation has completed
            if (retrievedResponse.IsCompleted)
            {
                // If it has completed, then access the result
                Endpoint retrievedResult = retrievedResponse.Result;
            }
            // End snippet
        }