< Summary

Class:Azure.ResourceManager.Storage.TableRestOperations
Assembly:Azure.ResourceManager.Storage
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\TableRestOperations.cs
Covered lines:0
Uncovered lines:289
Coverable lines:289
Total lines:646
Line coverage:0% (0 of 289)
Covered branches:0
Total branches:118
Branch coverage:0% (0 of 118)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%0%
CreateCreateRequest(...)-0%100%
CreateAsync()-0%0%
Create(...)-0%0%
CreateUpdateRequest(...)-0%100%
UpdateAsync()-0%0%
Update(...)-0%0%
CreateGetRequest(...)-0%100%
GetAsync()-0%0%
Get(...)-0%0%
CreateDeleteRequest(...)-0%100%
DeleteAsync()-0%0%
Delete(...)-0%0%
CreateListRequest(...)-0%100%
ListAsync()-0%0%
List(...)-0%0%
CreateListNextPageRequest(...)-0%100%
ListNextPageAsync()-0%0%
ListNextPage(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\TableRestOperations.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Text.Json;
 10using System.Threading;
 11using System.Threading.Tasks;
 12using Azure;
 13using Azure.Core;
 14using Azure.Core.Pipeline;
 15using Azure.ResourceManager.Storage.Models;
 16
 17namespace Azure.ResourceManager.Storage
 18{
 19    internal partial class TableRestOperations
 20    {
 21        private string subscriptionId;
 22        private Uri endpoint;
 23        private string apiVersion;
 24        private ClientDiagnostics _clientDiagnostics;
 25        private HttpPipeline _pipeline;
 26
 27        /// <summary> Initializes a new instance of TableRestOperations. </summary>
 28        /// <param name="clientDiagnostics"> The handler for diagnostic messaging in the client. </param>
 29        /// <param name="pipeline"> The HTTP pipeline for sending and receiving REST requests and responses. </param>
 30        /// <param name="subscriptionId"> The ID of the target subscription. </param>
 31        /// <param name="endpoint"> server parameter. </param>
 32        /// <param name="apiVersion"> Api Version. </param>
 33        /// <exception cref="ArgumentNullException"> This occurs when one of the required arguments is null. </exception
 034        public TableRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Ur
 35        {
 036            if (subscriptionId == null)
 37            {
 038                throw new ArgumentNullException(nameof(subscriptionId));
 39            }
 040            endpoint ??= new Uri("https://management.azure.com");
 041            if (apiVersion == null)
 42            {
 043                throw new ArgumentNullException(nameof(apiVersion));
 44            }
 45
 046            this.subscriptionId = subscriptionId;
 047            this.endpoint = endpoint;
 048            this.apiVersion = apiVersion;
 049            _clientDiagnostics = clientDiagnostics;
 050            _pipeline = pipeline;
 051        }
 52
 53        internal HttpMessage CreateCreateRequest(string resourceGroupName, string accountName, string tableName)
 54        {
 055            var message = _pipeline.CreateMessage();
 056            var request = message.Request;
 057            request.Method = RequestMethod.Put;
 058            var uri = new RawRequestUriBuilder();
 059            uri.Reset(endpoint);
 060            uri.AppendPath("/subscriptions/", false);
 061            uri.AppendPath(subscriptionId, true);
 062            uri.AppendPath("/resourceGroups/", false);
 063            uri.AppendPath(resourceGroupName, true);
 064            uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false);
 065            uri.AppendPath(accountName, true);
 066            uri.AppendPath("/tableServices/default/tables/", false);
 067            uri.AppendPath(tableName, true);
 068            uri.AppendQuery("api-version", apiVersion, true);
 069            request.Uri = uri;
 070            return message;
 71        }
 72
 73        /// <summary> Creates a new table with the specified table name, under the specified account. </summary>
 74        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 75        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 76        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 77        /// <param name="cancellationToken"> The cancellation token to use. </param>
 78        public async Task<Response<Table>> CreateAsync(string resourceGroupName, string accountName, string tableName, C
 79        {
 080            if (resourceGroupName == null)
 81            {
 082                throw new ArgumentNullException(nameof(resourceGroupName));
 83            }
 084            if (accountName == null)
 85            {
 086                throw new ArgumentNullException(nameof(accountName));
 87            }
 088            if (tableName == null)
 89            {
 090                throw new ArgumentNullException(nameof(tableName));
 91            }
 92
 093            using var message = CreateCreateRequest(resourceGroupName, accountName, tableName);
 094            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 095            switch (message.Response.Status)
 96            {
 97                case 200:
 98                    {
 099                        Table value = default;
 0100                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0101                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 102                        {
 0103                            value = null;
 104                        }
 105                        else
 106                        {
 0107                            value = Table.DeserializeTable(document.RootElement);
 108                        }
 0109                        return Response.FromValue(value, message.Response);
 110                    }
 111                default:
 0112                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 113            }
 0114        }
 115
 116        /// <summary> Creates a new table with the specified table name, under the specified account. </summary>
 117        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 118        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 119        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 120        /// <param name="cancellationToken"> The cancellation token to use. </param>
 121        public Response<Table> Create(string resourceGroupName, string accountName, string tableName, CancellationToken 
 122        {
 0123            if (resourceGroupName == null)
 124            {
 0125                throw new ArgumentNullException(nameof(resourceGroupName));
 126            }
 0127            if (accountName == null)
 128            {
 0129                throw new ArgumentNullException(nameof(accountName));
 130            }
 0131            if (tableName == null)
 132            {
 0133                throw new ArgumentNullException(nameof(tableName));
 134            }
 135
 0136            using var message = CreateCreateRequest(resourceGroupName, accountName, tableName);
 0137            _pipeline.Send(message, cancellationToken);
 0138            switch (message.Response.Status)
 139            {
 140                case 200:
 141                    {
 0142                        Table value = default;
 0143                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0144                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 145                        {
 0146                            value = null;
 147                        }
 148                        else
 149                        {
 0150                            value = Table.DeserializeTable(document.RootElement);
 151                        }
 0152                        return Response.FromValue(value, message.Response);
 153                    }
 154                default:
 0155                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 156            }
 0157        }
 158
 159        internal HttpMessage CreateUpdateRequest(string resourceGroupName, string accountName, string tableName)
 160        {
 0161            var message = _pipeline.CreateMessage();
 0162            var request = message.Request;
 0163            request.Method = RequestMethod.Patch;
 0164            var uri = new RawRequestUriBuilder();
 0165            uri.Reset(endpoint);
 0166            uri.AppendPath("/subscriptions/", false);
 0167            uri.AppendPath(subscriptionId, true);
 0168            uri.AppendPath("/resourceGroups/", false);
 0169            uri.AppendPath(resourceGroupName, true);
 0170            uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false);
 0171            uri.AppendPath(accountName, true);
 0172            uri.AppendPath("/tableServices/default/tables/", false);
 0173            uri.AppendPath(tableName, true);
 0174            uri.AppendQuery("api-version", apiVersion, true);
 0175            request.Uri = uri;
 0176            return message;
 177        }
 178
 179        /// <summary> Creates a new table with the specified table name, under the specified account. </summary>
 180        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 181        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 182        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 183        /// <param name="cancellationToken"> The cancellation token to use. </param>
 184        public async Task<Response<Table>> UpdateAsync(string resourceGroupName, string accountName, string tableName, C
 185        {
 0186            if (resourceGroupName == null)
 187            {
 0188                throw new ArgumentNullException(nameof(resourceGroupName));
 189            }
 0190            if (accountName == null)
 191            {
 0192                throw new ArgumentNullException(nameof(accountName));
 193            }
 0194            if (tableName == null)
 195            {
 0196                throw new ArgumentNullException(nameof(tableName));
 197            }
 198
 0199            using var message = CreateUpdateRequest(resourceGroupName, accountName, tableName);
 0200            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0201            switch (message.Response.Status)
 202            {
 203                case 200:
 204                    {
 0205                        Table value = default;
 0206                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0207                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 208                        {
 0209                            value = null;
 210                        }
 211                        else
 212                        {
 0213                            value = Table.DeserializeTable(document.RootElement);
 214                        }
 0215                        return Response.FromValue(value, message.Response);
 216                    }
 217                default:
 0218                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 219            }
 0220        }
 221
 222        /// <summary> Creates a new table with the specified table name, under the specified account. </summary>
 223        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 224        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 225        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 226        /// <param name="cancellationToken"> The cancellation token to use. </param>
 227        public Response<Table> Update(string resourceGroupName, string accountName, string tableName, CancellationToken 
 228        {
 0229            if (resourceGroupName == null)
 230            {
 0231                throw new ArgumentNullException(nameof(resourceGroupName));
 232            }
 0233            if (accountName == null)
 234            {
 0235                throw new ArgumentNullException(nameof(accountName));
 236            }
 0237            if (tableName == null)
 238            {
 0239                throw new ArgumentNullException(nameof(tableName));
 240            }
 241
 0242            using var message = CreateUpdateRequest(resourceGroupName, accountName, tableName);
 0243            _pipeline.Send(message, cancellationToken);
 0244            switch (message.Response.Status)
 245            {
 246                case 200:
 247                    {
 0248                        Table value = default;
 0249                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0250                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 251                        {
 0252                            value = null;
 253                        }
 254                        else
 255                        {
 0256                            value = Table.DeserializeTable(document.RootElement);
 257                        }
 0258                        return Response.FromValue(value, message.Response);
 259                    }
 260                default:
 0261                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 262            }
 0263        }
 264
 265        internal HttpMessage CreateGetRequest(string resourceGroupName, string accountName, string tableName)
 266        {
 0267            var message = _pipeline.CreateMessage();
 0268            var request = message.Request;
 0269            request.Method = RequestMethod.Get;
 0270            var uri = new RawRequestUriBuilder();
 0271            uri.Reset(endpoint);
 0272            uri.AppendPath("/subscriptions/", false);
 0273            uri.AppendPath(subscriptionId, true);
 0274            uri.AppendPath("/resourceGroups/", false);
 0275            uri.AppendPath(resourceGroupName, true);
 0276            uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false);
 0277            uri.AppendPath(accountName, true);
 0278            uri.AppendPath("/tableServices/default/tables/", false);
 0279            uri.AppendPath(tableName, true);
 0280            uri.AppendQuery("api-version", apiVersion, true);
 0281            request.Uri = uri;
 0282            return message;
 283        }
 284
 285        /// <summary> Gets the table with the specified table name, under the specified account if it exists. </summary>
 286        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 287        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 288        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 289        /// <param name="cancellationToken"> The cancellation token to use. </param>
 290        public async Task<Response<Table>> GetAsync(string resourceGroupName, string accountName, string tableName, Canc
 291        {
 0292            if (resourceGroupName == null)
 293            {
 0294                throw new ArgumentNullException(nameof(resourceGroupName));
 295            }
 0296            if (accountName == null)
 297            {
 0298                throw new ArgumentNullException(nameof(accountName));
 299            }
 0300            if (tableName == null)
 301            {
 0302                throw new ArgumentNullException(nameof(tableName));
 303            }
 304
 0305            using var message = CreateGetRequest(resourceGroupName, accountName, tableName);
 0306            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0307            switch (message.Response.Status)
 308            {
 309                case 200:
 310                    {
 0311                        Table value = default;
 0312                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0313                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 314                        {
 0315                            value = null;
 316                        }
 317                        else
 318                        {
 0319                            value = Table.DeserializeTable(document.RootElement);
 320                        }
 0321                        return Response.FromValue(value, message.Response);
 322                    }
 323                default:
 0324                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 325            }
 0326        }
 327
 328        /// <summary> Gets the table with the specified table name, under the specified account if it exists. </summary>
 329        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 330        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 331        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 332        /// <param name="cancellationToken"> The cancellation token to use. </param>
 333        public Response<Table> Get(string resourceGroupName, string accountName, string tableName, CancellationToken can
 334        {
 0335            if (resourceGroupName == null)
 336            {
 0337                throw new ArgumentNullException(nameof(resourceGroupName));
 338            }
 0339            if (accountName == null)
 340            {
 0341                throw new ArgumentNullException(nameof(accountName));
 342            }
 0343            if (tableName == null)
 344            {
 0345                throw new ArgumentNullException(nameof(tableName));
 346            }
 347
 0348            using var message = CreateGetRequest(resourceGroupName, accountName, tableName);
 0349            _pipeline.Send(message, cancellationToken);
 0350            switch (message.Response.Status)
 351            {
 352                case 200:
 353                    {
 0354                        Table value = default;
 0355                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0356                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 357                        {
 0358                            value = null;
 359                        }
 360                        else
 361                        {
 0362                            value = Table.DeserializeTable(document.RootElement);
 363                        }
 0364                        return Response.FromValue(value, message.Response);
 365                    }
 366                default:
 0367                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 368            }
 0369        }
 370
 371        internal HttpMessage CreateDeleteRequest(string resourceGroupName, string accountName, string tableName)
 372        {
 0373            var message = _pipeline.CreateMessage();
 0374            var request = message.Request;
 0375            request.Method = RequestMethod.Delete;
 0376            var uri = new RawRequestUriBuilder();
 0377            uri.Reset(endpoint);
 0378            uri.AppendPath("/subscriptions/", false);
 0379            uri.AppendPath(subscriptionId, true);
 0380            uri.AppendPath("/resourceGroups/", false);
 0381            uri.AppendPath(resourceGroupName, true);
 0382            uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false);
 0383            uri.AppendPath(accountName, true);
 0384            uri.AppendPath("/tableServices/default/tables/", false);
 0385            uri.AppendPath(tableName, true);
 0386            uri.AppendQuery("api-version", apiVersion, true);
 0387            request.Uri = uri;
 0388            return message;
 389        }
 390
 391        /// <summary> Deletes the table with the specified table name, under the specified account if it exists. </summa
 392        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 393        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 394        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 395        /// <param name="cancellationToken"> The cancellation token to use. </param>
 396        public async Task<Response> DeleteAsync(string resourceGroupName, string accountName, string tableName, Cancella
 397        {
 0398            if (resourceGroupName == null)
 399            {
 0400                throw new ArgumentNullException(nameof(resourceGroupName));
 401            }
 0402            if (accountName == null)
 403            {
 0404                throw new ArgumentNullException(nameof(accountName));
 405            }
 0406            if (tableName == null)
 407            {
 0408                throw new ArgumentNullException(nameof(tableName));
 409            }
 410
 0411            using var message = CreateDeleteRequest(resourceGroupName, accountName, tableName);
 0412            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0413            switch (message.Response.Status)
 414            {
 415                case 204:
 0416                    return message.Response;
 417                default:
 0418                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 419            }
 0420        }
 421
 422        /// <summary> Deletes the table with the specified table name, under the specified account if it exists. </summa
 423        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 424        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 425        /// <param name="tableName"> A table name must be unique within a storage account and must be between 3 and 63 c
 426        /// <param name="cancellationToken"> The cancellation token to use. </param>
 427        public Response Delete(string resourceGroupName, string accountName, string tableName, CancellationToken cancell
 428        {
 0429            if (resourceGroupName == null)
 430            {
 0431                throw new ArgumentNullException(nameof(resourceGroupName));
 432            }
 0433            if (accountName == null)
 434            {
 0435                throw new ArgumentNullException(nameof(accountName));
 436            }
 0437            if (tableName == null)
 438            {
 0439                throw new ArgumentNullException(nameof(tableName));
 440            }
 441
 0442            using var message = CreateDeleteRequest(resourceGroupName, accountName, tableName);
 0443            _pipeline.Send(message, cancellationToken);
 0444            switch (message.Response.Status)
 445            {
 446                case 204:
 0447                    return message.Response;
 448                default:
 0449                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 450            }
 0451        }
 452
 453        internal HttpMessage CreateListRequest(string resourceGroupName, string accountName)
 454        {
 0455            var message = _pipeline.CreateMessage();
 0456            var request = message.Request;
 0457            request.Method = RequestMethod.Get;
 0458            var uri = new RawRequestUriBuilder();
 0459            uri.Reset(endpoint);
 0460            uri.AppendPath("/subscriptions/", false);
 0461            uri.AppendPath(subscriptionId, true);
 0462            uri.AppendPath("/resourceGroups/", false);
 0463            uri.AppendPath(resourceGroupName, true);
 0464            uri.AppendPath("/providers/Microsoft.Storage/storageAccounts/", false);
 0465            uri.AppendPath(accountName, true);
 0466            uri.AppendPath("/tableServices/default/tables", false);
 0467            uri.AppendQuery("api-version", apiVersion, true);
 0468            request.Uri = uri;
 0469            return message;
 470        }
 471
 472        /// <summary> Gets a list of all the tables under the specified storage account. </summary>
 473        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 474        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 475        /// <param name="cancellationToken"> The cancellation token to use. </param>
 476        public async Task<Response<ListTableResource>> ListAsync(string resourceGroupName, string accountName, Cancellat
 477        {
 0478            if (resourceGroupName == null)
 479            {
 0480                throw new ArgumentNullException(nameof(resourceGroupName));
 481            }
 0482            if (accountName == null)
 483            {
 0484                throw new ArgumentNullException(nameof(accountName));
 485            }
 486
 0487            using var message = CreateListRequest(resourceGroupName, accountName);
 0488            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0489            switch (message.Response.Status)
 490            {
 491                case 200:
 492                    {
 0493                        ListTableResource value = default;
 0494                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0495                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 496                        {
 0497                            value = null;
 498                        }
 499                        else
 500                        {
 0501                            value = ListTableResource.DeserializeListTableResource(document.RootElement);
 502                        }
 0503                        return Response.FromValue(value, message.Response);
 504                    }
 505                default:
 0506                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 507            }
 0508        }
 509
 510        /// <summary> Gets a list of all the tables under the specified storage account. </summary>
 511        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 512        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 513        /// <param name="cancellationToken"> The cancellation token to use. </param>
 514        public Response<ListTableResource> List(string resourceGroupName, string accountName, CancellationToken cancella
 515        {
 0516            if (resourceGroupName == null)
 517            {
 0518                throw new ArgumentNullException(nameof(resourceGroupName));
 519            }
 0520            if (accountName == null)
 521            {
 0522                throw new ArgumentNullException(nameof(accountName));
 523            }
 524
 0525            using var message = CreateListRequest(resourceGroupName, accountName);
 0526            _pipeline.Send(message, cancellationToken);
 0527            switch (message.Response.Status)
 528            {
 529                case 200:
 530                    {
 0531                        ListTableResource value = default;
 0532                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0533                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 534                        {
 0535                            value = null;
 536                        }
 537                        else
 538                        {
 0539                            value = ListTableResource.DeserializeListTableResource(document.RootElement);
 540                        }
 0541                        return Response.FromValue(value, message.Response);
 542                    }
 543                default:
 0544                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 545            }
 0546        }
 547
 548        internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceGroupName, string accountName)
 549        {
 0550            var message = _pipeline.CreateMessage();
 0551            var request = message.Request;
 0552            request.Method = RequestMethod.Get;
 0553            var uri = new RawRequestUriBuilder();
 0554            uri.Reset(endpoint);
 0555            uri.AppendRawNextLink(nextLink, false);
 0556            request.Uri = uri;
 0557            return message;
 558        }
 559
 560        /// <summary> Gets a list of all the tables under the specified storage account. </summary>
 561        /// <param name="nextLink"> The URL to the next page of results. </param>
 562        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 563        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 564        /// <param name="cancellationToken"> The cancellation token to use. </param>
 565        public async Task<Response<ListTableResource>> ListNextPageAsync(string nextLink, string resourceGroupName, stri
 566        {
 0567            if (nextLink == null)
 568            {
 0569                throw new ArgumentNullException(nameof(nextLink));
 570            }
 0571            if (resourceGroupName == null)
 572            {
 0573                throw new ArgumentNullException(nameof(resourceGroupName));
 574            }
 0575            if (accountName == null)
 576            {
 0577                throw new ArgumentNullException(nameof(accountName));
 578            }
 579
 0580            using var message = CreateListNextPageRequest(nextLink, resourceGroupName, accountName);
 0581            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0582            switch (message.Response.Status)
 583            {
 584                case 200:
 585                    {
 0586                        ListTableResource value = default;
 0587                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0588                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 589                        {
 0590                            value = null;
 591                        }
 592                        else
 593                        {
 0594                            value = ListTableResource.DeserializeListTableResource(document.RootElement);
 595                        }
 0596                        return Response.FromValue(value, message.Response);
 597                    }
 598                default:
 0599                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 600            }
 0601        }
 602
 603        /// <summary> Gets a list of all the tables under the specified storage account. </summary>
 604        /// <param name="nextLink"> The URL to the next page of results. </param>
 605        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 606        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 607        /// <param name="cancellationToken"> The cancellation token to use. </param>
 608        public Response<ListTableResource> ListNextPage(string nextLink, string resourceGroupName, string accountName, C
 609        {
 0610            if (nextLink == null)
 611            {
 0612                throw new ArgumentNullException(nameof(nextLink));
 613            }
 0614            if (resourceGroupName == null)
 615            {
 0616                throw new ArgumentNullException(nameof(resourceGroupName));
 617            }
 0618            if (accountName == null)
 619            {
 0620                throw new ArgumentNullException(nameof(accountName));
 621            }
 622
 0623            using var message = CreateListNextPageRequest(nextLink, resourceGroupName, accountName);
 0624            _pipeline.Send(message, cancellationToken);
 0625            switch (message.Response.Status)
 626            {
 627                case 200:
 628                    {
 0629                        ListTableResource value = default;
 0630                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0631                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 632                        {
 0633                            value = null;
 634                        }
 635                        else
 636                        {
 0637                            value = ListTableResource.DeserializeListTableResource(document.RootElement);
 638                        }
 0639                        return Response.FromValue(value, message.Response);
 640                    }
 641                default:
 0642                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 643            }
 0644        }
 645    }
 646}