diff --git a/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs b/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs index 5341dc624523..3e657ff7b85e 100644 --- a/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs +++ b/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs @@ -12,10 +12,10 @@ protected TableClient() { } } public partial class TableClientOptions : Azure.Core.ClientOptions { - public TableClientOptions(Azure.Data.Tables.TableClientOptions.ServiceVersion serviceVersion = Azure.Data.Tables.TableClientOptions.ServiceVersion.V2018_10_10) { } + public TableClientOptions(Azure.Data.Tables.TableClientOptions.ServiceVersion serviceVersion = Azure.Data.Tables.TableClientOptions.ServiceVersion.V2019_02_02) { } public enum ServiceVersion { - V2018_10_10 = 1, + V2019_02_02 = 1, } } public partial class TableServiceClient diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceClient.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceClient.cs index f90ef100cda2..c33a599dae22 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceClient.cs @@ -23,7 +23,7 @@ protected ServiceClient() { } /// Initializes a new instance of ServiceClient. - internal ServiceClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2018-10-10") + internal ServiceClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2019-02-02") { RestClient = new ServiceRestClient(clientDiagnostics, pipeline, url, version); _clientDiagnostics = clientDiagnostics; diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceRestClient.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceRestClient.cs index 54fdd0fc1bc4..98a8f7af958b 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceRestClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/ServiceRestClient.cs @@ -23,7 +23,7 @@ internal partial class ServiceRestClient private HttpPipeline _pipeline; /// Initializes a new instance of ServiceRestClient. - public ServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2018-10-10") + public ServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2019-02-02") { if (url == null) { diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableInternalClient.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableInternalClient.cs index f26156bf4d23..0c96d5f5853c 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableInternalClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableInternalClient.cs @@ -24,7 +24,7 @@ protected TableInternalClient() { } /// Initializes a new instance of TableInternalClient. - internal TableInternalClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2018-10-10") + internal TableInternalClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2019-02-02") { RestClient = new TableRestClient(clientDiagnostics, pipeline, url, version); _clientDiagnostics = clientDiagnostics; diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableRestClient.cs b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableRestClient.cs index 1f94a554a951..b2e24605875a 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableRestClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/Operations/TableRestClient.cs @@ -25,7 +25,7 @@ internal partial class TableRestClient private HttpPipeline _pipeline; /// Initializes a new instance of TableRestClient. - public TableRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2018-10-10") + public TableRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version = "2019-02-02") { if (url == null) { diff --git a/sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs b/sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs index 759523fcaf96..e0b80c457da0 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs @@ -8,14 +8,14 @@ namespace Azure.Data.Tables { public class TableClientOptions : ClientOptions { - private const ServiceVersion Latest = ServiceVersion.V2018_10_10; + private const ServiceVersion Latest = ServiceVersion.V2019_02_02; internal static TableClientOptions Default { get; } = new TableClientOptions(); public TableClientOptions(ServiceVersion serviceVersion = Latest) { VersionString = serviceVersion switch { - ServiceVersion.V2018_10_10 => "2018-10-10", + ServiceVersion.V2019_02_02 => "2019-02-02", _ => throw new ArgumentOutOfRangeException(nameof(serviceVersion)) }; } @@ -25,7 +25,7 @@ public TableClientOptions(ServiceVersion serviceVersion = Latest) public enum ServiceVersion { #pragma warning disable CA1707 - V2018_10_10 = 1 + V2019_02_02 = 1 #pragma warning restore CA1707 } } diff --git a/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs b/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs index bbf62ad24663..18cced989055 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs @@ -22,10 +22,10 @@ public TableServiceClient(Uri endpoint, TablesSharedKeyCredential credential, Ta options ??= new TableClientOptions(); - var endpoint1 = endpoint.ToString(); + var endpointString = endpoint.ToString(); var pipeline = HttpPipelineBuilder.Build(options, new TablesSharedKeyPipelinePolicy(credential)); var diagnostics = new ClientDiagnostics(options); - _tableOperations = new TableInternalClient(diagnostics, pipeline, endpoint1, "2019-02-02"); + _tableOperations = new TableInternalClient(diagnostics, pipeline, endpointString); } /// diff --git a/sdk/tables/Azure.Data.Tables/src/autorest.md b/sdk/tables/Azure.Data.Tables/src/autorest.md index 111f529494a1..465508b410e6 100644 --- a/sdk/tables/Azure.Data.Tables/src/autorest.md +++ b/sdk/tables/Azure.Data.Tables/src/autorest.md @@ -6,7 +6,7 @@ ``` yaml title: Azure.Data.Tables input-file: - - https://github.com/shurd/azure-rest-api-specs/tree/tablesSwagger/specification/cosmos-db/data-plane/Microsoft.TablesStorage/preview/2018-10-10/table.json + - https://raw.githubusercontent.com/shurd/azure-rest-api-specs/f5cb6fb416ae0a06329599db9dc17c8fdd7f95c7/specification/cosmos-db/data-plane/Microsoft.TablesStorage/preview/2019-02-02/table.json namespace: Azure.Data.Tables include-csproj: disable ```