internal ListTenantsRequest(
     string baseUrl,
     ListTenantsOptions options,
     ErrorHandlingHttpClient <FirebaseAuthException> httpClient)
     : base(baseUrl, options?.PageToken, options?.PageSize, httpClient)
 {
 }
        /// <summary>
        /// Gets an async enumerable to iterate or page through tenants
        /// starting from the specified page token. If the page token is null or unspecified,
        /// iteration starts from the first page. See
        /// <a href="https://googleapis.github.io/google-cloud-dotnet/docs/guides/page-streaming.html">
        /// Page Streaming</a> for more details on how to use this API.
        /// </summary>
        /// <param name="options">The options to control the starting point and page size. Pass
        /// null to list from the beginning with default settings.</param>
        /// <returns>A <see cref="PagedAsyncEnumerable{TenantsPage, Tenant}"/>
        /// instance.</returns>
        public PagedAsyncEnumerable <TenantsPage, Tenant> ListTenantsAsync(ListTenantsOptions options)
        {
            Func <ListTenantsRequest> validateAndCreate = () => new ListTenantsRequest(
                this.baseUrl, options, this.httpClient);

            validateAndCreate();
            return(new RestPagedAsyncEnumerable
                   <ListTenantsRequest, TenantsPage, Tenant>(validateAndCreate, new PageManager()));
        }