DscpConfigurationResource IOperationSource <DscpConfigurationResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = DscpConfigurationData.DeserializeDscpConfigurationData(document.RootElement);

            return(new DscpConfigurationResource(_client, data));
        }
        public async Task <Response <DscpConfigurationData> > GetAsync(string subscriptionId, string resourceGroupName, string dscpConfigurationName, CancellationToken cancellationToken = default)
        {
            if (subscriptionId == null)
            {
                throw new ArgumentNullException(nameof(subscriptionId));
            }
            if (resourceGroupName == null)
            {
                throw new ArgumentNullException(nameof(resourceGroupName));
            }
            if (dscpConfigurationName == null)
            {
                throw new ArgumentNullException(nameof(dscpConfigurationName));
            }

            using var message = CreateGetRequest(subscriptionId, resourceGroupName, dscpConfigurationName);
            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);

            switch (message.Response.Status)
            {
            case 200:
            {
                DscpConfigurationData value = default;
                using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);

                value = DscpConfigurationData.DeserializeDscpConfigurationData(document.RootElement);
                return(Response.FromValue(value, message.Response));
            }