From b9067fc26a14b60dc566c24717f97848ea5d5b4f Mon Sep 17 00:00:00 2001
From: kevinzz6 <632604666@qq.com>
Date: Wed, 25 Oct 2023 17:03:02 +0800
Subject: [PATCH 1/6] regenerate new code
---
.../CHANGELOG.md | 14 +-
.../AnalyticsSynapseArtifactsModelFactory.cs | 18 +-
.../src/Generated/BigDataPoolsClient.cs | 4 +-
.../src/Generated/BigDataPoolsRestClient.cs | 2 +-
.../src/Generated/CredentialClient.cs | 152 +++++++++++
.../Generated/CredentialDeleteOperation.cs | 62 +++++
.../src/Generated/CredentialRestClient.cs | 181 +++++++++++++
.../src/Generated/CredentialsClient.cs | 145 +++++++++++
.../CredentialsCreateOrUpdateOperation.cs | 82 ++++++
.../src/Generated/CredentialsRestClient.cs | 241 ++++++++++++++++++
.../src/Generated/DataFlowClient.cs | 4 +-
.../Generated/DataFlowDebugSessionClient.cs | 4 +-
.../DataFlowDebugSessionRestClient.cs | 2 +-
.../src/Generated/DataFlowRestClient.cs | 2 +-
.../src/Generated/DatasetClient.cs | 4 +-
.../src/Generated/DatasetRestClient.cs | 2 +-
.../Generated/IntegrationRuntimesClient.cs | 4 +-
.../IntegrationRuntimesRestClient.cs | 2 +-
.../src/Generated/KqlScriptClient.cs | 4 +-
.../src/Generated/KqlScriptRestClient.cs | 2 +-
.../src/Generated/KqlScriptsClient.cs | 4 +-
.../src/Generated/KqlScriptsRestClient.cs | 2 +-
.../src/Generated/LibraryClient.cs | 4 +-
.../src/Generated/LibraryRestClient.cs | 2 +-
.../src/Generated/LinkConnectionClient.cs | 4 +-
.../src/Generated/LinkConnectionRestClient.cs | 2 +-
.../src/Generated/LinkedServiceClient.cs | 4 +-
.../src/Generated/LinkedServiceRestClient.cs | 2 +-
.../src/Generated/MetastoreClient.cs | 4 +-
.../src/Generated/MetastoreRestClient.cs | 2 +-
...azonRdsForSqlServerSource.Serialization.cs | 21 +-
.../Models/AmazonRdsForSqlServerSource.cs | 6 +-
.../AmazonS3ReadSettings.Serialization.cs | 8 +-
.../Generated/Models/AmazonS3ReadSettings.cs | 8 +-
...reBlobStorageReadSettings.Serialization.cs | 8 +-
.../Models/AzureBlobStorageReadSettings.cs | 8 +-
...reFileStorageReadSettings.Serialization.cs | 8 +-
.../Models/AzureFileStorageReadSettings.cs | 8 +-
.../Models/AzureSqlSink.Serialization.cs | 21 +-
.../src/Generated/Models/AzureSqlSink.cs | 6 +-
.../Models/AzureSqlSource.Serialization.cs | 21 +-
.../src/Generated/Models/AzureSqlSource.cs | 6 +-
.../Models/Credential.Serialization.cs | 81 ++++++
.../src/Generated/Models/Credential.cs | 49 ++++
.../CredentialListResponse.Serialization.cs | 61 +++++
.../Models/CredentialListResponse.cs | 42 +++
.../FileServerReadSettings.Serialization.cs | 8 +-
.../Models/FileServerReadSettings.cs | 8 +-
.../Models/FtpReadSettings.Serialization.cs | 14 +-
.../src/Generated/Models/FtpReadSettings.cs | 14 +-
...eCloudStorageReadSettings.Serialization.cs | 8 +-
.../Models/GoogleCloudStorageReadSettings.cs | 8 +-
.../Models/HdfsReadSettings.Serialization.cs | 8 +-
.../src/Generated/Models/HdfsReadSettings.cs | 8 +-
.../Models/HttpReadSettings.Serialization.cs | 23 +-
.../src/Generated/Models/HttpReadSettings.cs | 14 +-
...ManagedIdentityCredential.Serialization.cs | 141 ++++++++++
.../Models/ManagedIdentityCredential.cs | 36 +++
...dentityCredentialResource.Serialization.cs | 81 ++++++
.../ManagedIdentityCredentialResource.cs | 40 +++
.../Models/RunNotebookResult.Serialization.cs | 10 +-
.../src/Generated/Models/RunNotebookResult.cs | 4 +-
.../RunNotebookSnapshot.Serialization.cs | 10 +-
.../Generated/Models/RunNotebookSnapshot.cs | 4 +-
...RunNotebookSnapshotResult.Serialization.cs | 10 +-
.../Models/RunNotebookSnapshotResult.cs | 4 +-
.../Models/SapHanaPartitionOption.cs | 2 +-
.../Models/SapHanaSource.Serialization.cs | 8 +-
.../src/Generated/Models/SapHanaSource.cs | 8 +-
.../Models/SapTablePartitionOption.cs | 2 +-
.../Models/SapTableSource.Serialization.cs | 8 +-
.../src/Generated/Models/SapTableSource.cs | 8 +-
.../Models/ScriptActivity.Serialization.cs | 17 +-
.../src/Generated/Models/ScriptActivity.cs | 6 +-
...ervicePrincipalCredential.Serialization.cs | 175 +++++++++++++
.../Models/ServicePrincipalCredential.cs | 52 ++++
.../Models/SftpReadSettings.Serialization.cs | 8 +-
.../src/Generated/Models/SftpReadSettings.cs | 8 +-
.../Models/SqlMISink.Serialization.cs | 21 +-
.../src/Generated/Models/SqlMISink.cs | 6 +-
.../Models/SqlMISource.Serialization.cs | 21 +-
.../src/Generated/Models/SqlMISource.cs | 6 +-
...olStoredProcedureActivity.Serialization.cs | 21 +-
.../Models/SqlPoolStoredProcedureActivity.cs | 5 +-
.../Models/SqlServerSink.Serialization.cs | 21 +-
.../src/Generated/Models/SqlServerSink.cs | 6 +-
.../Models/SqlServerSource.Serialization.cs | 21 +-
.../src/Generated/Models/SqlServerSource.cs | 6 +-
.../Generated/Models/SqlSink.Serialization.cs | 21 +-
.../src/Generated/Models/SqlSink.cs | 6 +-
.../Models/SqlSource.Serialization.cs | 21 +-
.../src/Generated/Models/SqlSource.cs | 6 +-
.../StoredProcedureParameter.Serialization.cs | 87 -------
.../Models/StoredProcedureParameter.cs | 17 +-
.../Models/StoredProcedureParameterType.cs | 2 +-
.../Models/UnknownCredential.Serialization.cs | 99 +++++++
.../src/Generated/Models/UnknownCredential.cs | 25 ++
...WebActivityAuthentication.Serialization.cs | 10 +-
.../Models/WebActivityAuthentication.cs | 8 +-
.../src/Generated/NotebookClient.cs | 4 +-
.../NotebookOperationResultClient.cs | 4 +-
.../NotebookOperationResultRestClient.cs | 2 +-
.../src/Generated/NotebookRestClient.cs | 2 +-
.../src/Generated/PipelineClient.cs | 4 +-
.../src/Generated/PipelineRestClient.cs | 2 +-
.../src/Generated/PipelineRunClient.cs | 4 +-
.../src/Generated/PipelineRunRestClient.cs | 2 +-
.../src/Generated/RunNotebookClient.cs | 4 +-
.../src/Generated/RunNotebookRestClient.cs | 2 +-
.../src/Generated/SparkConfigurationClient.cs | 4 +-
.../Generated/SparkConfigurationRestClient.cs | 2 +-
.../src/Generated/SparkJobDefinitionClient.cs | 4 +-
.../Generated/SparkJobDefinitionRestClient.cs | 2 +-
.../src/Generated/SqlPoolsClient.cs | 4 +-
.../src/Generated/SqlPoolsRestClient.cs | 2 +-
.../src/Generated/SqlScriptClient.cs | 4 +-
.../src/Generated/SqlScriptRestClient.cs | 2 +-
.../src/Generated/TriggerClient.cs | 4 +-
.../src/Generated/TriggerRestClient.cs | 2 +-
.../src/Generated/TriggerRunClient.cs | 4 +-
.../src/Generated/TriggerRunRestClient.cs | 2 +-
.../src/Generated/WorkspaceClient.cs | 4 +-
.../WorkspaceGitRepoManagementClient.cs | 4 +-
.../WorkspaceGitRepoManagementRestClient.cs | 2 +-
.../src/Generated/WorkspaceRestClient.cs | 2 +-
.../src/autorest.md | 2 +-
126 files changed, 2076 insertions(+), 518 deletions(-)
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialClient.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialDeleteOperation.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialRestClient.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsClient.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsCreateOrUpdateOperation.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsRestClient.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.Serialization.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.cs
delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.Serialization.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.Serialization.cs
create mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md
index 63cbc0a378409..89b8219a9a03d 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md
@@ -1,14 +1,10 @@
# Release History
-## 1.0.0-preview.19 (Unreleased)
-
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
+## 1.0.0-preview.19 (2023-11-07)
+- new apis of Create/Get/Delete for Credential
+- Fix runNotebook sessionId from int to string
+- Fix placeholder links causing 404s
+- Sync expression Support From DataFactory To Synapse
## 1.0.0-preview.18 (2023-08-08)
- Added `authenticationType`, `containerUri`, `sasUri` and `sasToken` properties to BlobService
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs
index e3248d6c230dd..f369493c3c992 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs
@@ -121,7 +121,7 @@ public static RunNotebookResponse RunNotebookResponse(string message = null, Run
/// Output of exit command.
/// Run notebook error.
/// A new instance for mocking.
- public static RunNotebookResult RunNotebookResult(string runId = null, string runStatus = null, string lastCheckedOn = null, long? sessionId = null, string sparkPool = null, object sessionDetail = null, string exitValue = null, RunNotebookError error = null)
+ public static RunNotebookResult RunNotebookResult(string runId = null, string runStatus = null, string lastCheckedOn = null, string sessionId = null, string sparkPool = null, object sessionDetail = null, string exitValue = null, RunNotebookError error = null)
{
return new RunNotebookResult(runId, runStatus, lastCheckedOn, sessionId, sparkPool, sessionDetail, exitValue, error);
}
@@ -156,7 +156,7 @@ public static RunNotebookSnapshotResponse RunNotebookSnapshotResponse(string mes
/// Livy session id.
/// SparkPool name.
/// A new instance for mocking.
- public static RunNotebookSnapshotResult RunNotebookSnapshotResult(RunNotebookSnapshot snapshot = null, RunNotebookError error = null, string runId = null, string runStatus = null, string lastCheckedOn = null, long? sessionId = null, string sparkPool = null)
+ public static RunNotebookSnapshotResult RunNotebookSnapshotResult(RunNotebookSnapshot snapshot = null, RunNotebookError error = null, string runId = null, string runStatus = null, string lastCheckedOn = null, string sessionId = null, string sparkPool = null)
{
return new RunNotebookSnapshotResult(snapshot, error, runId, runStatus, lastCheckedOn, sessionId, sparkPool);
}
@@ -172,7 +172,7 @@ public static RunNotebookSnapshotResult RunNotebookSnapshotResult(RunNotebookSna
/// Run notebook parameters.
/// Notebook resource type.
/// A new instance for mocking.
- public static RunNotebookSnapshot RunNotebookSnapshot(string exitValue = null, string id = null, string notebook = null, RunNotebookSparkSessionOptions sessionOptions = null, bool? honorSessionTimeToLive = null, long? sessionId = null, string sparkPool = null, IReadOnlyDictionary parameters = null, NotebookResource notebookContent = null)
+ public static RunNotebookSnapshot RunNotebookSnapshot(string exitValue = null, string id = null, string notebook = null, RunNotebookSparkSessionOptions sessionOptions = null, bool? honorSessionTimeToLive = null, string sessionId = null, string sparkPool = null, IReadOnlyDictionary parameters = null, NotebookResource notebookContent = null)
{
parameters ??= new Dictionary();
@@ -999,6 +999,18 @@ public static ManagedIdentity ManagedIdentity(string principalId = null, Guid? t
return new ManagedIdentity(principalId, tenantId, type);
}
+ /// Initializes a new instance of ManagedIdentityCredentialResource.
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Resource Etag.
+ /// Managed Identity Credential properties.
+ /// A new instance for mocking.
+ public static ManagedIdentityCredentialResource ManagedIdentityCredentialResource(string id = null, string name = null, string type = null, string etag = null, ManagedIdentityCredential properties = null)
+ {
+ return new ManagedIdentityCredentialResource(id, name, type, etag, properties);
+ }
+
/// Initializes a new instance of WorkspaceIdentity.
/// The identity type. Currently the only supported type is 'SystemAssigned'.
/// The principal id of the identity.
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsClient.cs
index 3e077512416f2..774062c6ebd6e 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsClient.cs
@@ -28,7 +28,7 @@ protected BigDataPoolsClient()
}
/// Initializes a new instance of BigDataPoolsClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public BigDataPoolsClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -52,7 +52,7 @@ public BigDataPoolsClient(Uri endpoint, TokenCredential credential, ArtifactsCli
/// Initializes a new instance of BigDataPoolsClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal BigDataPoolsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsRestClient.cs
index e0042a1d0e495..91cf8e6d165d6 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsRestClient.cs
@@ -27,7 +27,7 @@ internal partial class BigDataPoolsRestClient
/// Initializes a new instance of BigDataPoolsRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public BigDataPoolsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialClient.cs
new file mode 100644
index 0000000000000..a49cea9bf37b1
--- /dev/null
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialClient.cs
@@ -0,0 +1,152 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Analytics.Synapse.Artifacts.Models;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Analytics.Synapse.Artifacts
+{
+ /// The Credential service client.
+ public partial class CredentialClient
+ {
+ private readonly ClientDiagnostics _clientDiagnostics;
+ private readonly HttpPipeline _pipeline;
+ internal CredentialRestClient RestClient { get; }
+
+ /// Initializes a new instance of CredentialClient for mocking.
+ protected CredentialClient()
+ {
+ }
+
+ /// Initializes a new instance of CredentialClient.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ public CredentialClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
+ {
+ if (endpoint == null)
+ {
+ throw new ArgumentNullException(nameof(endpoint));
+ }
+ if (credential == null)
+ {
+ throw new ArgumentNullException(nameof(credential));
+ }
+
+ options ??= new ArtifactsClientOptions();
+ _clientDiagnostics = new ClientDiagnostics(options);
+ string[] scopes = { "https://dev.azuresynapse.net/.default" };
+ _pipeline = HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(credential, scopes));
+ RestClient = new CredentialRestClient(_clientDiagnostics, _pipeline, endpoint);
+ }
+
+ /// Initializes a new instance of CredentialClient.
+ /// The handler for diagnostic messaging in the client.
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
+ /// , or is null.
+ internal CredentialClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
+ {
+ RestClient = new CredentialRestClient(clientDiagnostics, pipeline, endpoint);
+ _clientDiagnostics = clientDiagnostics;
+ _pipeline = pipeline;
+ }
+
+ /// Gets a credential.
+ /// Credential name.
+ /// ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(string credentialName, string ifNoneMatch = null, CancellationToken cancellationToken = default)
+ {
+ using var scope = _clientDiagnostics.CreateScope("CredentialClient.Get");
+ scope.Start();
+ try
+ {
+ return await RestClient.GetAsync(credentialName, ifNoneMatch, cancellationToken).ConfigureAwait(false);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Gets a credential.
+ /// Credential name.
+ /// ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
+ /// The cancellation token to use.
+ public virtual Response Get(string credentialName, string ifNoneMatch = null, CancellationToken cancellationToken = default)
+ {
+ using var scope = _clientDiagnostics.CreateScope("CredentialClient.Get");
+ scope.Start();
+ try
+ {
+ return RestClient.Get(credentialName, ifNoneMatch, cancellationToken);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Deletes a credential.
+ /// Credential name.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task StartDeleteAsync(string credentialName, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+
+ using var scope = _clientDiagnostics.CreateScope("CredentialClient.StartDelete");
+ scope.Start();
+ try
+ {
+ var originalResponse = await RestClient.DeleteAsync(credentialName, cancellationToken).ConfigureAwait(false);
+ return new CredentialDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(credentialName).Request, originalResponse);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Deletes a credential.
+ /// Credential name.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual CredentialDeleteOperation StartDelete(string credentialName, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+
+ using var scope = _clientDiagnostics.CreateScope("CredentialClient.StartDelete");
+ scope.Start();
+ try
+ {
+ var originalResponse = RestClient.Delete(credentialName, cancellationToken);
+ return new CredentialDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(credentialName).Request, originalResponse);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialDeleteOperation.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialDeleteOperation.cs
new file mode 100644
index 0000000000000..f985d7a64fb48
--- /dev/null
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialDeleteOperation.cs
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Analytics.Synapse.Artifacts
+{
+ /// Deletes a credential.
+ public partial class CredentialDeleteOperation : Operation
+ {
+ private readonly OperationInternal _operation;
+
+ /// Initializes a new instance of CredentialDeleteOperation for mocking.
+ protected CredentialDeleteOperation()
+ {
+ }
+
+ internal CredentialDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response)
+ {
+ IOperation nextLinkOperation = NextLinkOperationImplementation.Create(pipeline, request.Method, request.Uri.ToUri(), response, OperationFinalStateVia.Location);
+ _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CredentialDeleteOperation");
+ }
+
+ ///
+#pragma warning disable CA1822
+ public override string Id => throw new NotImplementedException();
+#pragma warning restore CA1822
+
+ ///
+ public override bool HasCompleted => _operation.HasCompleted;
+
+ ///
+ public override Response GetRawResponse() => _operation.RawResponse;
+
+ ///
+ public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken);
+
+ ///
+ public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
+
+ ///
+ public override Response WaitForCompletionResponse(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(cancellationToken);
+
+ ///
+ public override Response WaitForCompletionResponse(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken);
+
+ ///
+ public override ValueTask WaitForCompletionResponseAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(cancellationToken);
+
+ ///
+ public override ValueTask WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken);
+ }
+}
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialRestClient.cs
new file mode 100644
index 0000000000000..df5a6b5223445
--- /dev/null
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialRestClient.cs
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Analytics.Synapse.Artifacts.Models;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Analytics.Synapse.Artifacts
+{
+ internal partial class CredentialRestClient
+ {
+ private readonly HttpPipeline _pipeline;
+ private readonly Uri _endpoint;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// Initializes a new instance of CredentialRestClient.
+ /// The handler for diagnostic messaging in the client.
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
+ /// , or is null.
+ public CredentialRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
+ {
+ ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics));
+ _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
+ _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint));
+ }
+
+ internal HttpMessage CreateGetRequest(string credentialName, string ifNoneMatch)
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/credentials/", false);
+ uri.AppendPath(credentialName, true);
+ uri.AppendQuery("api-version", "2020-12-01", true);
+ request.Uri = uri;
+ if (ifNoneMatch != null)
+ {
+ request.Headers.Add("If-None-Match", ifNoneMatch);
+ }
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ /// Gets a credential.
+ /// Credential name.
+ /// ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
+ /// The cancellation token to use.
+ /// is null.
+ public async Task> GetAsync(string credentialName, string ifNoneMatch = null, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+
+ using var message = CreateGetRequest(credentialName, ifNoneMatch);
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ ManagedIdentityCredentialResource value = default;
+ using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ value = ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ case 304:
+ return Response.FromValue((ManagedIdentityCredentialResource)null, message.Response);
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// Gets a credential.
+ /// Credential name.
+ /// ETag of the dataset entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
+ /// The cancellation token to use.
+ /// is null.
+ public Response Get(string credentialName, string ifNoneMatch = null, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+
+ using var message = CreateGetRequest(credentialName, ifNoneMatch);
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ ManagedIdentityCredentialResource value = default;
+ using var document = JsonDocument.Parse(message.Response.ContentStream);
+ value = ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ case 304:
+ return Response.FromValue((ManagedIdentityCredentialResource)null, message.Response);
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ internal HttpMessage CreateDeleteRequest(string credentialName)
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Delete;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/credentials/", false);
+ uri.AppendPath(credentialName, true);
+ uri.AppendQuery("api-version", "2020-12-01", true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ /// Deletes a credential.
+ /// Credential name.
+ /// The cancellation token to use.
+ /// is null.
+ public async Task DeleteAsync(string credentialName, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+
+ using var message = CreateDeleteRequest(credentialName);
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ case 202:
+ case 204:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// Deletes a credential.
+ /// Credential name.
+ /// The cancellation token to use.
+ /// is null.
+ public Response Delete(string credentialName, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+
+ using var message = CreateDeleteRequest(credentialName);
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ case 202:
+ case 204:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+ }
+}
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsClient.cs
new file mode 100644
index 0000000000000..5560bf8afbde4
--- /dev/null
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsClient.cs
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure;
+using Azure.Analytics.Synapse.Artifacts.Models;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Analytics.Synapse.Artifacts
+{
+ /// The Credentials service client.
+ public partial class CredentialsClient
+ {
+ private readonly ClientDiagnostics _clientDiagnostics;
+ private readonly HttpPipeline _pipeline;
+ internal CredentialsRestClient RestClient { get; }
+
+ /// Initializes a new instance of CredentialsClient for mocking.
+ protected CredentialsClient()
+ {
+ }
+
+ /// Initializes a new instance of CredentialsClient.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
+ /// A credential used to authenticate to an Azure Service.
+ /// The options for configuring the client.
+ public CredentialsClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
+ {
+ if (endpoint == null)
+ {
+ throw new ArgumentNullException(nameof(endpoint));
+ }
+ if (credential == null)
+ {
+ throw new ArgumentNullException(nameof(credential));
+ }
+
+ options ??= new ArtifactsClientOptions();
+ _clientDiagnostics = new ClientDiagnostics(options);
+ string[] scopes = { "https://dev.azuresynapse.net/.default" };
+ _pipeline = HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(credential, scopes));
+ RestClient = new CredentialsRestClient(_clientDiagnostics, _pipeline, endpoint);
+ }
+
+ /// Initializes a new instance of CredentialsClient.
+ /// The handler for diagnostic messaging in the client.
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
+ /// , or is null.
+ internal CredentialsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
+ {
+ RestClient = new CredentialsRestClient(clientDiagnostics, pipeline, endpoint);
+ _clientDiagnostics = clientDiagnostics;
+ _pipeline = pipeline;
+ }
+
+ /// Lists credentials.
+ /// The cancellation token to use.
+ public virtual AsyncPageable ListByWorkspaceAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => RestClient.CreateListByWorkspaceRequest();
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => RestClient.CreateListByWorkspaceNextPageRequest(nextLink);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource, _clientDiagnostics, _pipeline, "CredentialsClient.ListByWorkspace", "value", "nextLink", cancellationToken);
+ }
+
+ /// Lists credentials.
+ /// The cancellation token to use.
+ public virtual Pageable ListByWorkspace(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => RestClient.CreateListByWorkspaceRequest();
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => RestClient.CreateListByWorkspaceNextPageRequest(nextLink);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource, _clientDiagnostics, _pipeline, "CredentialsClient.ListByWorkspace", "value", "nextLink", cancellationToken);
+ }
+
+ /// Creates or updates a credential.
+ /// Credential name.
+ /// Credential resource definition.
+ /// ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual async Task StartCreateOrUpdateAsync(string credentialName, ManagedIdentityCredentialResource credential, string ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+ if (credential == null)
+ {
+ throw new ArgumentNullException(nameof(credential));
+ }
+
+ using var scope = _clientDiagnostics.CreateScope("CredentialsClient.StartCreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var originalResponse = await RestClient.CreateOrUpdateAsync(credentialName, credential, ifMatch, cancellationToken).ConfigureAwait(false);
+ return new CredentialsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(credentialName, credential, ifMatch).Request, originalResponse);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ /// Creates or updates a credential.
+ /// Credential name.
+ /// Credential resource definition.
+ /// ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual CredentialsCreateOrUpdateOperation StartCreateOrUpdate(string credentialName, ManagedIdentityCredentialResource credential, string ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+ if (credential == null)
+ {
+ throw new ArgumentNullException(nameof(credential));
+ }
+
+ using var scope = _clientDiagnostics.CreateScope("CredentialsClient.StartCreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var originalResponse = RestClient.CreateOrUpdate(credentialName, credential, ifMatch, cancellationToken);
+ return new CredentialsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(credentialName, credential, ifMatch).Request, originalResponse);
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsCreateOrUpdateOperation.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsCreateOrUpdateOperation.cs
new file mode 100644
index 0000000000000..1dc747a07f05e
--- /dev/null
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsCreateOrUpdateOperation.cs
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Analytics.Synapse.Artifacts.Models;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Analytics.Synapse.Artifacts
+{
+ /// Creates or updates a credential.
+ public partial class CredentialsCreateOrUpdateOperation : Operation, IOperationSource
+ {
+ private readonly OperationInternal _operation;
+
+ /// Initializes a new instance of CredentialsCreateOrUpdateOperation for mocking.
+ protected CredentialsCreateOrUpdateOperation()
+ {
+ }
+
+ internal CredentialsCreateOrUpdateOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response)
+ {
+ IOperation nextLinkOperation = NextLinkOperationImplementation.Create(this, pipeline, request.Method, request.Uri.ToUri(), response, OperationFinalStateVia.Location);
+ _operation = new OperationInternal(nextLinkOperation, clientDiagnostics, response, "CredentialsCreateOrUpdateOperation");
+ }
+
+ ///
+#pragma warning disable CA1822
+ public override string Id => throw new NotImplementedException();
+#pragma warning restore CA1822
+
+ ///
+ public override ManagedIdentityCredentialResource Value => _operation.Value;
+
+ ///
+ public override bool HasCompleted => _operation.HasCompleted;
+
+ ///
+ public override bool HasValue => _operation.HasValue;
+
+ ///
+ public override Response GetRawResponse() => _operation.RawResponse;
+
+ ///
+ public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken);
+
+ ///
+ public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken);
+
+ ///
+ public override Response WaitForCompletion(CancellationToken cancellationToken = default) => _operation.WaitForCompletion(cancellationToken);
+
+ ///
+ public override Response WaitForCompletion(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletion(pollingInterval, cancellationToken);
+
+ ///
+ public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken);
+
+ ///
+ public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken);
+
+ ManagedIdentityCredentialResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ return ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource(document.RootElement);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ return ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource(document.RootElement);
+ }
+ }
+}
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsRestClient.cs
new file mode 100644
index 0000000000000..4cc85f1a83032
--- /dev/null
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsRestClient.cs
@@ -0,0 +1,241 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Analytics.Synapse.Artifacts.Models;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.Analytics.Synapse.Artifacts
+{
+ internal partial class CredentialsRestClient
+ {
+ private readonly HttpPipeline _pipeline;
+ private readonly Uri _endpoint;
+
+ /// The ClientDiagnostics is used to provide tracing support for the client library.
+ internal ClientDiagnostics ClientDiagnostics { get; }
+
+ /// Initializes a new instance of CredentialsRestClient.
+ /// The handler for diagnostic messaging in the client.
+ /// The HTTP pipeline for sending and receiving REST requests and responses.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
+ /// , or is null.
+ public CredentialsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
+ {
+ ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics));
+ _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline));
+ _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint));
+ }
+
+ internal HttpMessage CreateListByWorkspaceRequest()
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/credentials", false);
+ uri.AppendQuery("api-version", "2020-12-01", true);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ /// Lists credentials.
+ /// The cancellation token to use.
+ public async Task> ListByWorkspaceAsync(CancellationToken cancellationToken = default)
+ {
+ using var message = CreateListByWorkspaceRequest();
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ CredentialListResponse value = default;
+ using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// Lists credentials.
+ /// The cancellation token to use.
+ public Response ListByWorkspace(CancellationToken cancellationToken = default)
+ {
+ using var message = CreateListByWorkspaceRequest();
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ CredentialListResponse value = default;
+ using var document = JsonDocument.Parse(message.Response.ContentStream);
+ value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ internal HttpMessage CreateCreateOrUpdateRequest(string credentialName, ManagedIdentityCredentialResource credential, string ifMatch)
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Put;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/credentials/", false);
+ uri.AppendPath(credentialName, true);
+ uri.AppendQuery("api-version", "2020-12-01", true);
+ request.Uri = uri;
+ if (ifMatch != null)
+ {
+ request.Headers.Add("If-Match", ifMatch);
+ }
+ request.Headers.Add("Accept", "application/json");
+ request.Headers.Add("Content-Type", "application/json");
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(credential);
+ request.Content = content;
+ return message;
+ }
+
+ /// Creates or updates a credential.
+ /// Credential name.
+ /// Credential resource definition.
+ /// ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
+ /// The cancellation token to use.
+ /// or is null.
+ public async Task CreateOrUpdateAsync(string credentialName, ManagedIdentityCredentialResource credential, string ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+ if (credential == null)
+ {
+ throw new ArgumentNullException(nameof(credential));
+ }
+
+ using var message = CreateCreateOrUpdateRequest(credentialName, credential, ifMatch);
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ case 202:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// Creates or updates a credential.
+ /// Credential name.
+ /// Credential resource definition.
+ /// ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
+ /// The cancellation token to use.
+ /// or is null.
+ public Response CreateOrUpdate(string credentialName, ManagedIdentityCredentialResource credential, string ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ if (credentialName == null)
+ {
+ throw new ArgumentNullException(nameof(credentialName));
+ }
+ if (credential == null)
+ {
+ throw new ArgumentNullException(nameof(credential));
+ }
+
+ using var message = CreateCreateOrUpdateRequest(credentialName, credential, ifMatch);
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ case 202:
+ return message.Response;
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink)
+ {
+ var message = _pipeline.CreateMessage();
+ var request = message.Request;
+ request.Method = RequestMethod.Get;
+ var uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendRawNextLink(nextLink, false);
+ request.Uri = uri;
+ request.Headers.Add("Accept", "application/json");
+ return message;
+ }
+
+ /// Lists credentials.
+ /// The URL to the next page of results.
+ /// The cancellation token to use.
+ /// is null.
+ public async Task> ListByWorkspaceNextPageAsync(string nextLink, CancellationToken cancellationToken = default)
+ {
+ if (nextLink == null)
+ {
+ throw new ArgumentNullException(nameof(nextLink));
+ }
+
+ using var message = CreateListByWorkspaceNextPageRequest(nextLink);
+ await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ CredentialListResponse value = default;
+ using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+
+ /// Lists credentials.
+ /// The URL to the next page of results.
+ /// The cancellation token to use.
+ /// is null.
+ public Response ListByWorkspaceNextPage(string nextLink, CancellationToken cancellationToken = default)
+ {
+ if (nextLink == null)
+ {
+ throw new ArgumentNullException(nameof(nextLink));
+ }
+
+ using var message = CreateListByWorkspaceNextPageRequest(nextLink);
+ _pipeline.Send(message, cancellationToken);
+ switch (message.Response.Status)
+ {
+ case 200:
+ {
+ CredentialListResponse value = default;
+ using var document = JsonDocument.Parse(message.Response.ContentStream);
+ value = CredentialListResponse.DeserializeCredentialListResponse(document.RootElement);
+ return Response.FromValue(value, message.Response);
+ }
+ default:
+ throw new RequestFailedException(message.Response);
+ }
+ }
+ }
+}
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowClient.cs
index ace097ea164d9..7a8bdcd5f4e30 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowClient.cs
@@ -29,7 +29,7 @@ protected DataFlowClient()
}
/// Initializes a new instance of DataFlowClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public DataFlowClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -53,7 +53,7 @@ public DataFlowClient(Uri endpoint, TokenCredential credential, ArtifactsClientO
/// Initializes a new instance of DataFlowClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal DataFlowClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionClient.cs
index 967f20654897d..d70b92c6a775c 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionClient.cs
@@ -29,7 +29,7 @@ protected DataFlowDebugSessionClient()
}
/// Initializes a new instance of DataFlowDebugSessionClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public DataFlowDebugSessionClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -53,7 +53,7 @@ public DataFlowDebugSessionClient(Uri endpoint, TokenCredential credential, Arti
/// Initializes a new instance of DataFlowDebugSessionClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal DataFlowDebugSessionClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionRestClient.cs
index a316913378e1f..ad5e20dc5cabe 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionRestClient.cs
@@ -27,7 +27,7 @@ internal partial class DataFlowDebugSessionRestClient
/// Initializes a new instance of DataFlowDebugSessionRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public DataFlowDebugSessionRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowRestClient.cs
index be865af636c81..b8856536b944e 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowRestClient.cs
@@ -27,7 +27,7 @@ internal partial class DataFlowRestClient
/// Initializes a new instance of DataFlowRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public DataFlowRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetClient.cs
index 0b33038d92754..b3d1a54976b18 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetClient.cs
@@ -29,7 +29,7 @@ protected DatasetClient()
}
/// Initializes a new instance of DatasetClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public DatasetClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -53,7 +53,7 @@ public DatasetClient(Uri endpoint, TokenCredential credential, ArtifactsClientOp
/// Initializes a new instance of DatasetClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal DatasetClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetRestClient.cs
index 4e9f4e459d7a3..9d6c46653709e 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetRestClient.cs
@@ -27,7 +27,7 @@ internal partial class DatasetRestClient
/// Initializes a new instance of DatasetRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public DatasetRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesClient.cs
index d5ba571926180..1f2ba0b90a96c 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesClient.cs
@@ -28,7 +28,7 @@ protected IntegrationRuntimesClient()
}
/// Initializes a new instance of IntegrationRuntimesClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public IntegrationRuntimesClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -52,7 +52,7 @@ public IntegrationRuntimesClient(Uri endpoint, TokenCredential credential, Artif
/// Initializes a new instance of IntegrationRuntimesClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal IntegrationRuntimesClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesRestClient.cs
index d4c6e6d934948..4711dc5b60d25 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesRestClient.cs
@@ -27,7 +27,7 @@ internal partial class IntegrationRuntimesRestClient
/// Initializes a new instance of IntegrationRuntimesRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public IntegrationRuntimesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptClient.cs
index 56836a5ab2d74..c284a922f8eb4 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptClient.cs
@@ -28,7 +28,7 @@ protected KqlScriptClient()
}
/// Initializes a new instance of KqlScriptClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public KqlScriptClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -52,7 +52,7 @@ public KqlScriptClient(Uri endpoint, TokenCredential credential, ArtifactsClient
/// Initializes a new instance of KqlScriptClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal KqlScriptClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptRestClient.cs
index a641ef9ffb8bb..fa272fc6ef918 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptRestClient.cs
@@ -27,7 +27,7 @@ internal partial class KqlScriptRestClient
/// Initializes a new instance of KqlScriptRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public KqlScriptRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsClient.cs
index 939a1ab7415a5..2ff5f5a79e682 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsClient.cs
@@ -28,7 +28,7 @@ protected KqlScriptsClient()
}
/// Initializes a new instance of KqlScriptsClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public KqlScriptsClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -52,7 +52,7 @@ public KqlScriptsClient(Uri endpoint, TokenCredential credential, ArtifactsClien
/// Initializes a new instance of KqlScriptsClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal KqlScriptsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsRestClient.cs
index 5d41ff307e71e..cfebdf16c91d9 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/KqlScriptsRestClient.cs
@@ -27,7 +27,7 @@ internal partial class KqlScriptsRestClient
/// Initializes a new instance of KqlScriptsRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public KqlScriptsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
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 c24a89bb46769..88b01a7ad8edf 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryClient.cs
@@ -30,7 +30,7 @@ protected LibraryClient()
}
/// Initializes a new instance of LibraryClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public LibraryClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -54,7 +54,7 @@ public LibraryClient(Uri endpoint, TokenCredential credential, ArtifactsClientOp
/// Initializes a new instance of LibraryClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal LibraryClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
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 3630fc4f66068..986335a8d025d 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LibraryRestClient.cs
@@ -28,7 +28,7 @@ internal partial class LibraryRestClient
/// Initializes a new instance of LibraryRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public LibraryRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionClient.cs
index 745988db0a771..c0a4317c163bd 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionClient.cs
@@ -29,7 +29,7 @@ protected LinkConnectionClient()
}
/// Initializes a new instance of LinkConnectionClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public LinkConnectionClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -53,7 +53,7 @@ public LinkConnectionClient(Uri endpoint, TokenCredential credential, ArtifactsC
/// Initializes a new instance of LinkConnectionClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal LinkConnectionClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionRestClient.cs
index 260f7f8e15aa2..80134ea9f436b 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkConnectionRestClient.cs
@@ -27,7 +27,7 @@ internal partial class LinkConnectionRestClient
/// Initializes a new instance of LinkConnectionRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public LinkConnectionRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceClient.cs
index 0d1ae21168cfd..73ff15ac8c07c 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceClient.cs
@@ -29,7 +29,7 @@ protected LinkedServiceClient()
}
/// Initializes a new instance of LinkedServiceClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public LinkedServiceClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -53,7 +53,7 @@ public LinkedServiceClient(Uri endpoint, TokenCredential credential, ArtifactsCl
/// Initializes a new instance of LinkedServiceClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal LinkedServiceClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceRestClient.cs
index e7a2d12b56690..0138763a630c9 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceRestClient.cs
@@ -27,7 +27,7 @@ internal partial class LinkedServiceRestClient
/// Initializes a new instance of LinkedServiceRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public LinkedServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreClient.cs
index 07725b064f577..a287350d22a00 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreClient.cs
@@ -28,7 +28,7 @@ protected MetastoreClient()
}
/// Initializes a new instance of MetastoreClient.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// A credential used to authenticate to an Azure Service.
/// The options for configuring the client.
public MetastoreClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null)
@@ -52,7 +52,7 @@ public MetastoreClient(Uri endpoint, TokenCredential credential, ArtifactsClient
/// Initializes a new instance of MetastoreClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
internal MetastoreClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreRestClient.cs
index cf3381af66054..dfdc8d0c10763 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreRestClient.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/MetastoreRestClient.cs
@@ -27,7 +27,7 @@ internal partial class MetastoreRestClient
/// Initializes a new instance of MetastoreRestClient.
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
- /// The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
+ /// The workspace development endpoint, for example `https://myworkspace.dev.azuresynapse.net`.
/// , or is null.
public MetastoreRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint)
{
diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs
index 6e2cd87b304f3..ea0c2094483b7 100644
--- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs
+++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.Serialization.cs
@@ -29,16 +29,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("sqlReaderStoredProcedureName"u8);
writer.WriteObjectValue(SqlReaderStoredProcedureName);
}
- if (Optional.IsCollectionDefined(StoredProcedureParameters))
+ if (Optional.IsDefined(StoredProcedureParameters))
{
writer.WritePropertyName("storedProcedureParameters"u8);
- writer.WriteStartObject();
- foreach (var item in StoredProcedureParameters)
- {
- writer.WritePropertyName(item.Key);
- writer.WriteObjectValue(item.Value);
- }
- writer.WriteEndObject();
+ writer.WriteObjectValue(StoredProcedureParameters);
}
if (Optional.IsDefined(IsolationLevel))
{
@@ -103,7 +97,7 @@ internal static AmazonRdsForSqlServerSource DeserializeAmazonRdsForSqlServerSour
}
Optional