/// <summary>Snippet for CreateEndpoint</summary>
        public void CreateEndpointResourceNames()
        {
            // Snippet: CreateEndpoint(LocationName, Endpoint, string, CallSettings)
            // Create client
            IDSClient iDSClient = IDSClient.Create();
            // Initialize request argument(s)
            LocationName parent     = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
            Endpoint     endpoint   = new Endpoint();
            string       endpointId = "";
            // Make the request
            Operation <Endpoint, OperationMetadata> response = iDSClient.CreateEndpoint(parent, endpoint, endpointId);

            // Poll until the returned long-running operation is complete
            Operation <Endpoint, OperationMetadata> completedResponse = response.PollUntilCompleted();
            // 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 = iDSClient.PollOnceCreateEndpoint(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
        }