// <auto-generated/>

#nullable disable

using System.ClientModel.Primitives;

namespace Sample
{
    public partial class TestClient
    {
        internal global::System.ClientModel.Primitives.PipelineMessage CreateSampleOpRequest(string p1, string optionalParam, global::System.ClientModel.Primitives.RequestOptions options)
        {
            global::Sample.ClientUriBuilder uri = new global::Sample.ClientUriBuilder();
            uri.Reset(_endpoint);
            uri.AppendPath("/items/", false);
            uri.AppendPath(p1, true);
            uri.AppendQuery("comp", "copy", true);
            uri.AppendQuery("restype", "container", true);
            if ((optionalParam != null))
            {
                uri.AppendQuery("optionalParam", optionalParam, true);
            }
            global::System.ClientModel.Primitives.PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "PUT", PipelineMessageClassifier200);
            global::System.ClientModel.Primitives.PipelineRequest request = message.Request;
            message.Apply(options);
            return message;
        }
    }
}
