Skip to content

Commit

Permalink
Pull the 2019-02-02 swagger (#11572)
Browse files Browse the repository at this point in the history
* pull the 2019-02-02 swagger

* fixup options and link to specific commit

* update exports
  • Loading branch information
christothes authored Apr 24, 2020
1 parent 9cbc01b commit 648e09c
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
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
```

0 comments on commit 648e09c

Please sign in to comment.