< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_RestClient()-0%100%
.ctor()-0%100%
.ctor(...)-0%100%
ListAsync()-0%100%
List(...)-0%100%
SetServicePropertiesAsync()-0%100%
SetServiceProperties(...)-0%100%
GetServicePropertiesAsync()-0%100%
GetServiceProperties(...)-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.ResourceManager.Storage\src\Generated\TableServicesOperations.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.Threading;
 10using System.Threading.Tasks;
 11using Azure;
 12using Azure.Core.Pipeline;
 13using Azure.ResourceManager.Storage.Models;
 14
 15namespace Azure.ResourceManager.Storage
 16{
 17    /// <summary> The TableServices service client. </summary>
 18    public partial class TableServicesOperations
 19    {
 20        private readonly ClientDiagnostics _clientDiagnostics;
 21        private readonly HttpPipeline _pipeline;
 022        internal TableServicesRestOperations RestClient { get; }
 23        /// <summary> Initializes a new instance of TableServicesOperations for mocking. </summary>
 024        protected TableServicesOperations()
 25        {
 026        }
 27        /// <summary> Initializes a new instance of TableServicesOperations. </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>
 033        internal TableServicesOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscription
 34        {
 035            RestClient = new TableServicesRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersi
 036            _clientDiagnostics = clientDiagnostics;
 037            _pipeline = pipeline;
 038        }
 39
 40        /// <summary> List all table services for the storage account. </summary>
 41        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 42        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 43        /// <param name="cancellationToken"> The cancellation token to use. </param>
 44        public virtual async Task<Response<ListTableServices>> ListAsync(string resourceGroupName, string accountName, C
 45        {
 046            using var scope = _clientDiagnostics.CreateScope("TableServicesOperations.List");
 047            scope.Start();
 48            try
 49            {
 050                return await RestClient.ListAsync(resourceGroupName, accountName, cancellationToken).ConfigureAwait(fals
 51            }
 052            catch (Exception e)
 53            {
 054                scope.Failed(e);
 055                throw;
 56            }
 057        }
 58
 59        /// <summary> List all table services for the storage account. </summary>
 60        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 61        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 62        /// <param name="cancellationToken"> The cancellation token to use. </param>
 63        public virtual Response<ListTableServices> List(string resourceGroupName, string accountName, CancellationToken 
 64        {
 065            using var scope = _clientDiagnostics.CreateScope("TableServicesOperations.List");
 066            scope.Start();
 67            try
 68            {
 069                return RestClient.List(resourceGroupName, accountName, cancellationToken);
 70            }
 071            catch (Exception e)
 72            {
 073                scope.Failed(e);
 074                throw;
 75            }
 076        }
 77
 78        /// <summary> Sets the properties of a storage account’s Table service, including properties for Storage Analyti
 79        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 80        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 81        /// <param name="parameters"> The properties of a storage account’s Table service, only properties for Storage A
 82        /// <param name="cancellationToken"> The cancellation token to use. </param>
 83        public virtual async Task<Response<TableServiceProperties>> SetServicePropertiesAsync(string resourceGroupName, 
 84        {
 085            using var scope = _clientDiagnostics.CreateScope("TableServicesOperations.SetServiceProperties");
 086            scope.Start();
 87            try
 88            {
 089                return await RestClient.SetServicePropertiesAsync(resourceGroupName, accountName, parameters, cancellati
 90            }
 091            catch (Exception e)
 92            {
 093                scope.Failed(e);
 094                throw;
 95            }
 096        }
 97
 98        /// <summary> Sets the properties of a storage account’s Table service, including properties for Storage Analyti
 99        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 100        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 101        /// <param name="parameters"> The properties of a storage account’s Table service, only properties for Storage A
 102        /// <param name="cancellationToken"> The cancellation token to use. </param>
 103        public virtual Response<TableServiceProperties> SetServiceProperties(string resourceGroupName, string accountNam
 104        {
 0105            using var scope = _clientDiagnostics.CreateScope("TableServicesOperations.SetServiceProperties");
 0106            scope.Start();
 107            try
 108            {
 0109                return RestClient.SetServiceProperties(resourceGroupName, accountName, parameters, cancellationToken);
 110            }
 0111            catch (Exception e)
 112            {
 0113                scope.Failed(e);
 0114                throw;
 115            }
 0116        }
 117
 118        /// <summary> Gets the properties of a storage account’s Table service, including properties for Storage Analyti
 119        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 120        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 121        /// <param name="cancellationToken"> The cancellation token to use. </param>
 122        public virtual async Task<Response<TableServiceProperties>> GetServicePropertiesAsync(string resourceGroupName, 
 123        {
 0124            using var scope = _clientDiagnostics.CreateScope("TableServicesOperations.GetServiceProperties");
 0125            scope.Start();
 126            try
 127            {
 0128                return await RestClient.GetServicePropertiesAsync(resourceGroupName, accountName, cancellationToken).Con
 129            }
 0130            catch (Exception e)
 131            {
 0132                scope.Failed(e);
 0133                throw;
 134            }
 0135        }
 136
 137        /// <summary> Gets the properties of a storage account’s Table service, including properties for Storage Analyti
 138        /// <param name="resourceGroupName"> The name of the resource group within the user&apos;s subscription. The nam
 139        /// <param name="accountName"> The name of the storage account within the specified resource group. Storage acco
 140        /// <param name="cancellationToken"> The cancellation token to use. </param>
 141        public virtual Response<TableServiceProperties> GetServiceProperties(string resourceGroupName, string accountNam
 142        {
 0143            using var scope = _clientDiagnostics.CreateScope("TableServicesOperations.GetServiceProperties");
 0144            scope.Start();
 145            try
 146            {
 0147                return RestClient.GetServiceProperties(resourceGroupName, accountName, cancellationToken);
 148            }
 0149            catch (Exception e)
 150            {
 0151                scope.Failed(e);
 0152                throw;
 153            }
 0154        }
 155    }
 156}