public virtual Response <IReadOnlyList <ExpressRouteGateway> > GetAll(CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("ExpressRouteGatewayContainer.GetAll");
     scope.Start();
     try
     {
         var response = _restClient.GetAllByResourceGroup(Id.ResourceGroupName, cancellationToken);
         return(Response.FromValue(response.Value.Value.Select(data => new ExpressRouteGateway(Parent, data)).ToArray() as IReadOnlyList <ExpressRouteGateway>, response.GetRawResponse()));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }