public virtual Pageable <VirtualMachineExtensionImage> GetAll(CancellationToken cancellationToken = default)
        {
            Page <VirtualMachineExtensionImage> FirstPageFunc(int?pageSizeHint)
            {
                using var scope = _virtualMachineExtensionImageClientDiagnostics.CreateScope("VirtualMachineExtensionImageCollection.GetAll");
                scope.Start();
                try
                {
                    var response = _virtualMachineExtensionImageRestClient.ListTypes(Id.SubscriptionId, _location, _publisherName, cancellationToken: cancellationToken);
                    return(Page.FromValues(response.Value.Select(value => new VirtualMachineExtensionImage(Client, value)), null, response.GetRawResponse()));
                }
                catch (Exception e)
                {
                    scope.Failed(e);
                    throw;
                }
            }

            return(PageableHelpers.CreateEnumerable(FirstPageFunc, null));
        }
        public virtual Response <IReadOnlyList <VirtualMachineExtensionImage> > GetAll(string location, string publisherName, CancellationToken cancellationToken = default)
        {
            if (location == null)
            {
                throw new ArgumentNullException(nameof(location));
            }
            if (publisherName == null)
            {
                throw new ArgumentNullException(nameof(publisherName));
            }

            using var scope = _clientDiagnostics.CreateScope("VirtualMachineExtensionImageCollection.GetAll");
            scope.Start();
            try
            {
                var response = _virtualMachineExtensionImagesRestClient.ListTypes(Id.SubscriptionId, location, publisherName, cancellationToken);
                return(Response.FromValue(response.Value.Select(value => new VirtualMachineExtensionImage(Parent, value)).ToArray() as IReadOnlyList <VirtualMachineExtensionImage>, response.GetRawResponse()));
            }
            catch (Exception e)
            {
                scope.Failed(e);
                throw;
            }
        }