public async Task <Response <VirtualRouterData> > GetAsync(string subscriptionId, string resourceGroupName, string virtualRouterName, string expand = null, CancellationToken cancellationToken = default)
        {
            if (subscriptionId == null)
            {
                throw new ArgumentNullException(nameof(subscriptionId));
            }
            if (resourceGroupName == null)
            {
                throw new ArgumentNullException(nameof(resourceGroupName));
            }
            if (virtualRouterName == null)
            {
                throw new ArgumentNullException(nameof(virtualRouterName));
            }

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

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

                value = VirtualRouterData.DeserializeVirtualRouterData(document.RootElement);
                return(Response.FromValue(value, message.Response));
            }
        VirtualRouterResource IOperationSource <VirtualRouterResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = VirtualRouterData.DeserializeVirtualRouterData(document.RootElement);

            return(new VirtualRouterResource(_client, data));
        }