Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sdk/tables/Azure.Data.Tables/src/TableClientOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
};
}
Expand All @@ -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
}
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/tables/Azure.Data.Tables/src/TableServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion sdk/tables/Azure.Data.Tables/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```