diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/autorest.md index 183e89186ea40..c79a3768d0342 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/autorest.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/autorest.md @@ -8,7 +8,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml tag: package-access-control-2020-08-01-preview require: - - https://github.com/Azure/azure-rest-api-specs/blob/f953424dd168e71373bc52edb9713d2d86a14ada/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/fc5e2fbcfc3f585d38bdb1c513ce1ad2c570cf3d/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.AccessControl public-clients: true credential-types: TokenCredential diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs index 6096d7d455a5c..ecbe74ce01784 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/api/Azure.Analytics.Synapse.Artifacts.netstandard2.0.cs @@ -171,8 +171,8 @@ public partial class LibraryClient { protected LibraryClient() { } public LibraryClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Synapse.Artifacts.ArtifactsClientOptions options = null) { } - public virtual Azure.Response Append(string libraryName, System.IO.Stream content, long? xMsBlobConditionAppendpos = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task AppendAsync(string libraryName, System.IO.Stream content, long? xMsBlobConditionAppendpos = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Append(string libraryName, System.IO.Stream content, long? blobConditionAppendPosition = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task AppendAsync(string libraryName, System.IO.Stream content, long? blobConditionAppendPosition = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(string libraryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(string libraryName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetOperationResult(string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryClient.cs index a2f1386d5145d..3f1eba4fd538a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryClient.cs @@ -137,15 +137,15 @@ public virtual Response Get(string libraryName, CancellationTok /// Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks. /// file name to upload. Minimum length of the filename should be 1 excluding the extension length. /// Library file chunk. - /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). + /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). /// The cancellation token to use. - public virtual async Task AppendAsync(string libraryName, Stream content, long? xMsBlobConditionAppendpos = null, CancellationToken cancellationToken = default) + public virtual async Task AppendAsync(string libraryName, Stream content, long? blobConditionAppendPosition = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("LibraryClient.Append"); scope.Start(); try { - return await RestClient.AppendAsync(libraryName, content, xMsBlobConditionAppendpos, cancellationToken).ConfigureAwait(false); + return await RestClient.AppendAsync(libraryName, content, blobConditionAppendPosition, cancellationToken).ConfigureAwait(false); } catch (Exception e) { @@ -157,15 +157,15 @@ public virtual async Task AppendAsync(string libraryName, Stream conte /// Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks. /// file name to upload. Minimum length of the filename should be 1 excluding the extension length. /// Library file chunk. - /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). + /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). /// The cancellation token to use. - public virtual Response Append(string libraryName, Stream content, long? xMsBlobConditionAppendpos = null, CancellationToken cancellationToken = default) + public virtual Response Append(string libraryName, Stream content, long? blobConditionAppendPosition = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("LibraryClient.Append"); scope.Start(); try { - return RestClient.Append(libraryName, content, xMsBlobConditionAppendpos, cancellationToken); + return RestClient.Append(libraryName, content, blobConditionAppendPosition, cancellationToken); } catch (Exception e) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryRestClient.cs index 87eca22d2892f..3e5bac80fea42 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryRestClient.cs @@ -443,7 +443,7 @@ public Response Create(string libraryName, CancellationToken cancellationToken = } } - internal HttpMessage CreateAppendRequest(string libraryName, Stream content, long? xMsBlobConditionAppendpos) + internal HttpMessage CreateAppendRequest(string libraryName, Stream content, long? blobConditionAppendPosition) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -452,11 +452,12 @@ internal HttpMessage CreateAppendRequest(string libraryName, Stream content, lon uri.Reset(endpoint); uri.AppendPath("/libraries/", false); uri.AppendPath(libraryName, true); + uri.AppendQuery("comp", "appendblock", true); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; - if (xMsBlobConditionAppendpos != null) + if (blobConditionAppendPosition != null) { - request.Headers.Add("x-ms-blob-condition-appendpos", xMsBlobConditionAppendpos.Value); + request.Headers.Add("x-ms-blob-condition-appendpos", blobConditionAppendPosition.Value); } request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/octet-stream"); @@ -467,10 +468,10 @@ internal HttpMessage CreateAppendRequest(string libraryName, Stream content, lon /// Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks. /// file name to upload. Minimum length of the filename should be 1 excluding the extension length. /// Library file chunk. - /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). + /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). /// The cancellation token to use. /// or is null. - public async Task AppendAsync(string libraryName, Stream content, long? xMsBlobConditionAppendpos = null, CancellationToken cancellationToken = default) + public async Task AppendAsync(string libraryName, Stream content, long? blobConditionAppendPosition = null, CancellationToken cancellationToken = default) { if (libraryName == null) { @@ -481,7 +482,7 @@ public async Task AppendAsync(string libraryName, Stream content, long throw new ArgumentNullException(nameof(content)); } - using var message = CreateAppendRequest(libraryName, content, xMsBlobConditionAppendpos); + using var message = CreateAppendRequest(libraryName, content, blobConditionAppendPosition); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -495,10 +496,10 @@ public async Task AppendAsync(string libraryName, Stream content, long /// Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks. /// file name to upload. Minimum length of the filename should be 1 excluding the extension length. /// Library file chunk. - /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). + /// Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed). /// The cancellation token to use. /// or is null. - public Response Append(string libraryName, Stream content, long? xMsBlobConditionAppendpos = null, CancellationToken cancellationToken = default) + public Response Append(string libraryName, Stream content, long? blobConditionAppendPosition = null, CancellationToken cancellationToken = default) { if (libraryName == null) { @@ -509,7 +510,7 @@ public Response Append(string libraryName, Stream content, long? xMsBlobConditio throw new ArgumentNullException(nameof(content)); } - using var message = CreateAppendRequest(libraryName, content, xMsBlobConditionAppendpos); + using var message = CreateAppendRequest(libraryName, content, blobConditionAppendPosition); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md index 6494b7f619b1c..a6eb78f32d84d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md @@ -8,7 +8,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml tag: package-artifacts-2019-06-01-preview require: - - https://github.com/Azure/azure-rest-api-specs/blob/f953424dd168e71373bc52edb9713d2d86a14ada/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/fc5e2fbcfc3f585d38bdb1c513ce1ad2c570cf3d/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.Artifacts public-clients: true credential-types: TokenCredential diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/autorest.md index b9b076bdaf9bb..5d15c1d573b94 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/autorest.md +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/autorest.md @@ -8,7 +8,7 @@ Run `dotnet msbuild /t:GenerateCode` to generate code. ``` yaml tag: package-vnet-2019-06-01-preview require: - - https://github.com/Azure/azure-rest-api-specs/blob/f953424dd168e71373bc52edb9713d2d86a14ada/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/fc5e2fbcfc3f585d38bdb1c513ce1ad2c570cf3d/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.ManagedPrivateEndpoints public-clients: true credential-types: TokenCredential diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/autorest.md index 2a656de8404a9..c3b93431cae39 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/autorest.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/autorest.md @@ -8,7 +8,7 @@ Run `dotnet msbuild /t:GenerateCode` to generate code. ``` yaml tag: package-monitoring-2019-11-01-preview require: - - https://github.com/Azure/azure-rest-api-specs/blob/f953424dd168e71373bc52edb9713d2d86a14ada/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/fc5e2fbcfc3f585d38bdb1c513ce1ad2c570cf3d/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.Monitoring public-clients: true credential-types: TokenCredential diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/autorest.md index 4145531fb1463..647c291c0e682 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/autorest.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/autorest.md @@ -8,7 +8,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml tag: package-spark-2019-11-01-preview require: - - https://github.com/Azure/azure-rest-api-specs/blob/f953424dd168e71373bc52edb9713d2d86a14ada/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/fc5e2fbcfc3f585d38bdb1c513ce1ad2c570cf3d/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.Spark public-clients: true credential-types: TokenCredential