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 sqlReaderQuery = default; Optional sqlReaderStoredProcedureName = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional isolationLevel = default; Optional produceAdditionalTypes = default; Optional partitionOption = default; @@ -142,12 +136,7 @@ internal static AmazonRdsForSqlServerSource DeserializeAmazonRdsForSqlServerSour { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("isolationLevel"u8)) @@ -239,7 +228,7 @@ internal static AmazonRdsForSqlServerSource DeserializeAmazonRdsForSqlServerSour additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new AmazonRdsForSqlServerSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, Optional.ToDictionary(storedProcedureParameters), isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); + return new AmazonRdsForSqlServerSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, storedProcedureParameters.Value, isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); } internal partial class AmazonRdsForSqlServerSourceConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.cs index 7b57da5976686..76d5a405654dc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonRdsForSqlServerSource.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class AmazonRdsForSqlServerSource : TabularSource /// Initializes a new instance of AmazonRdsForSqlServerSource. public AmazonRdsForSqlServerSource() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "AmazonRdsForSqlServerSource"; } @@ -35,7 +33,7 @@ public AmazonRdsForSqlServerSource() /// Which additional types to produce. /// The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". /// The settings that will be leveraged for Sql source partitioning. - internal AmazonRdsForSqlServerSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, IDictionary storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) + internal AmazonRdsForSqlServerSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, object storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) { SqlReaderQuery = sqlReaderQuery; SqlReaderStoredProcedureName = sqlReaderStoredProcedureName; @@ -52,7 +50,7 @@ internal AmazonRdsForSqlServerSource(string type, object sourceRetryCount, objec /// Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). public object SqlReaderStoredProcedureName { get; set; } /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). public object IsolationLevel { get; set; } /// Which additional types to produce. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs index adf3207bb7de1..3bd965abf4657 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.Serialization.cs @@ -47,7 +47,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -95,7 +95,7 @@ internal static AmazonS3ReadSettings DeserializeAmazonS3ReadSettings(JsonElement Optional wildcardFileName = default; Optional prefix = default; Optional fileListPath = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional deleteFilesAfterCompletion = default; Optional modifiedDatetimeStart = default; @@ -157,7 +157,7 @@ internal static AmazonS3ReadSettings DeserializeAmazonS3ReadSettings(JsonElement { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -213,7 +213,7 @@ internal static AmazonS3ReadSettings DeserializeAmazonS3ReadSettings(JsonElement additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new AmazonS3ReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); + return new AmazonS3ReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); } internal partial class AmazonS3ReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.cs index 32765462f1180..9d3e8ae8a5639 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AmazonS3ReadSettings.cs @@ -27,12 +27,12 @@ public AmazonS3ReadSettings() /// AmazonS3 wildcardFileName. Type: string (or Expression with resultType string). /// The prefix filter for the S3 object name. Type: string (or Expression with resultType string). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). /// The start of file's modified datetime. Type: string (or Expression with resultType string). /// The end of file's modified datetime. Type: string (or Expression with resultType string). - internal AmazonS3ReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, bool? enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) + internal AmazonS3ReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, object enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -57,8 +57,8 @@ internal AmazonS3ReadSettings(string type, object maxConcurrentConnections, IDic public object Prefix { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). public object FileListPath { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs index bca967b138d31..922b778b5b264 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.Serialization.cs @@ -47,7 +47,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -95,7 +95,7 @@ internal static AzureBlobStorageReadSettings DeserializeAzureBlobStorageReadSett Optional wildcardFileName = default; Optional prefix = default; Optional fileListPath = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional deleteFilesAfterCompletion = default; Optional modifiedDatetimeStart = default; @@ -157,7 +157,7 @@ internal static AzureBlobStorageReadSettings DeserializeAzureBlobStorageReadSett { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -213,7 +213,7 @@ internal static AzureBlobStorageReadSettings DeserializeAzureBlobStorageReadSett additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new AzureBlobStorageReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); + return new AzureBlobStorageReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); } internal partial class AzureBlobStorageReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.cs index abbc23c5cbb59..ea9ad0333bb78 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureBlobStorageReadSettings.cs @@ -27,12 +27,12 @@ public AzureBlobStorageReadSettings() /// Azure blob wildcardFileName. Type: string (or Expression with resultType string). /// The prefix filter for the Azure Blob name. Type: string (or Expression with resultType string). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). /// The start of file's modified datetime. Type: string (or Expression with resultType string). /// The end of file's modified datetime. Type: string (or Expression with resultType string). - internal AzureBlobStorageReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, bool? enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) + internal AzureBlobStorageReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, object enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -57,8 +57,8 @@ internal AzureBlobStorageReadSettings(string type, object maxConcurrentConnectio public object Prefix { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). public object FileListPath { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs index cf1a9e2d0d8be..a29b018108065 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.Serialization.cs @@ -47,7 +47,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -95,7 +95,7 @@ internal static AzureFileStorageReadSettings DeserializeAzureFileStorageReadSett Optional wildcardFileName = default; Optional prefix = default; Optional fileListPath = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional deleteFilesAfterCompletion = default; Optional modifiedDatetimeStart = default; @@ -157,7 +157,7 @@ internal static AzureFileStorageReadSettings DeserializeAzureFileStorageReadSett { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -213,7 +213,7 @@ internal static AzureFileStorageReadSettings DeserializeAzureFileStorageReadSett additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new AzureFileStorageReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); + return new AzureFileStorageReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); } internal partial class AzureFileStorageReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.cs index 777d07910405a..4c86c12216e51 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureFileStorageReadSettings.cs @@ -27,12 +27,12 @@ public AzureFileStorageReadSettings() /// Azure File Storage wildcardFileName. Type: string (or Expression with resultType string). /// The prefix filter for the Azure File name starting from root path. Type: string (or Expression with resultType string). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). /// The start of file's modified datetime. Type: string (or Expression with resultType string). /// The end of file's modified datetime. Type: string (or Expression with resultType string). - internal AzureFileStorageReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, bool? enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) + internal AzureFileStorageReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, object enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -57,8 +57,8 @@ internal AzureFileStorageReadSettings(string type, object maxConcurrentConnectio public object Prefix { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). public object FileListPath { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs index 67962e12af33a..b280aa77198b2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.Serialization.cs @@ -34,16 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preCopyScript"u8); writer.WriteObjectValue(PreCopyScript); } - 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(StoredProcedureTableTypeParameterName)) { @@ -99,7 +93,7 @@ internal static AzureSqlSink DeserializeAzureSqlSink(JsonElement element) Optional sqlWriterStoredProcedureName = default; Optional sqlWriterTableType = default; Optional preCopyScript = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional storedProcedureTableTypeParameterName = default; Optional tableOption = default; string type = default; @@ -145,12 +139,7 @@ internal static AzureSqlSink DeserializeAzureSqlSink(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("storedProcedureTableTypeParameterName"u8)) @@ -224,7 +213,7 @@ internal static AzureSqlSink DeserializeAzureSqlSink(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new AzureSqlSink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, Optional.ToDictionary(storedProcedureParameters), storedProcedureTableTypeParameterName.Value, tableOption.Value); + return new AzureSqlSink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, storedProcedureParameters.Value, storedProcedureTableTypeParameterName.Value, tableOption.Value); } internal partial class AzureSqlSinkConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.cs index 998b55ab59d89..a12c21e3c5af4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSink.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class AzureSqlSink : CopySink /// Initializes a new instance of AzureSqlSink. public AzureSqlSink() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "AzureSqlSink"; } @@ -34,7 +32,7 @@ public AzureSqlSink() /// SQL stored procedure parameters. /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - internal AzureSqlSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, IDictionary storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + internal AzureSqlSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, object storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; @@ -52,7 +50,7 @@ internal AzureSqlSink(string type, object writeBatchSize, object writeBatchTimeo /// SQL pre-copy script. Type: string (or Expression with resultType string). public object PreCopyScript { get; set; } /// SQL stored procedure parameters. - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). public object StoredProcedureTableTypeParameterName { get; set; } /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.Serialization.cs index 22f5f01b78f6f..1e5720622c5fd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.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 AzureSqlSource DeserializeAzureSqlSource(JsonElement element) } Optional sqlReaderQuery = default; Optional sqlReaderStoredProcedureName = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional isolationLevel = default; Optional produceAdditionalTypes = default; Optional partitionOption = default; @@ -142,12 +136,7 @@ internal static AzureSqlSource DeserializeAzureSqlSource(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("isolationLevel"u8)) @@ -239,7 +228,7 @@ internal static AzureSqlSource DeserializeAzureSqlSource(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new AzureSqlSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, Optional.ToDictionary(storedProcedureParameters), isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); + return new AzureSqlSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, storedProcedureParameters.Value, isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); } internal partial class AzureSqlSourceConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.cs index e357a5178ebf8..f00b20a1670ad 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/AzureSqlSource.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class AzureSqlSource : TabularSource /// Initializes a new instance of AzureSqlSource. public AzureSqlSource() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "AzureSqlSource"; } @@ -35,7 +33,7 @@ public AzureSqlSource() /// Which additional types to produce. /// The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". /// The settings that will be leveraged for Sql source partitioning. - internal AzureSqlSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, IDictionary storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) + internal AzureSqlSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, object storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) { SqlReaderQuery = sqlReaderQuery; SqlReaderStoredProcedureName = sqlReaderStoredProcedureName; @@ -52,7 +50,7 @@ internal AzureSqlSource(string type, object sourceRetryCount, object sourceRetry /// Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). public object SqlReaderStoredProcedureName { get; set; } /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). public object IsolationLevel { get; set; } /// Which additional types to produce. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.Serialization.cs new file mode 100644 index 0000000000000..a19757d278047 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.Serialization.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Text.Json.Serialization; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + [JsonConverter(typeof(CredentialConverter))] + public partial class Credential : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(Annotations)) + { + writer.WritePropertyName("annotations"u8); + writer.WriteStartArray(); + foreach (var item in Annotations) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static Credential DeserializeCredential(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("type", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "ServicePrincipal": return ServicePrincipalCredential.DeserializeServicePrincipalCredential(element); + case "ManagedIdentity": return ManagedIdentityCredential.DeserializeManagedIdentityCredential(element); + } + } + return UnknownCredential.DeserializeUnknownCredential(element); + } + + internal partial class CredentialConverter : JsonConverter + { + public override void Write(Utf8JsonWriter writer, Credential model, JsonSerializerOptions options) + { + writer.WriteObjectValue(model); + } + public override Credential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + using var document = JsonDocument.ParseValue(ref reader); + return DeserializeCredential(document.RootElement); + } + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs new file mode 100644 index 0000000000000..c507ea3938038 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// + /// Azure Synapse nested object which contains the information and credential which can be used to connect with related store or compute resource. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public partial class Credential + { + /// Initializes a new instance of Credential. + public Credential() + { + Annotations = new ChangeTrackingList(); + AdditionalProperties = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of Credential. + /// Type of credential. + /// Credential description. + /// List of tags that can be used for describing the Credential. + /// Additional Properties. + internal Credential(string type, string description, IList annotations, IDictionary additionalProperties) + { + Type = type; + Description = description; + Annotations = annotations; + AdditionalProperties = additionalProperties; + } + + /// Type of credential. + internal string Type { get; set; } + /// Credential description. + public string Description { get; set; } + /// List of tags that can be used for describing the Credential. + public IList Annotations { get; } + /// Additional Properties. + public IDictionary AdditionalProperties { get; } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs new file mode 100644 index 0000000000000..433b06bfdafaf --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + [JsonConverter(typeof(CredentialListResponseConverter))] + internal partial class CredentialListResponse + { + internal static CredentialListResponse DeserializeCredentialListResponse(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new CredentialListResponse(value, nextLink.Value); + } + + internal partial class CredentialListResponseConverter : JsonConverter + { + public override void Write(Utf8JsonWriter writer, CredentialListResponse model, JsonSerializerOptions options) + { + throw new NotImplementedException(); + } + public override CredentialListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + using var document = JsonDocument.ParseValue(ref reader); + return DeserializeCredentialListResponse(document.RootElement); + } + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs new file mode 100644 index 0000000000000..049ae86aacf58 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// A list of credential resources. + internal partial class CredentialListResponse + { + /// Initializes a new instance of CredentialListResponse. + /// List of credentials. + /// is null. + internal CredentialListResponse(IEnumerable value) + { + Argument.AssertNotNull(value, nameof(value)); + + Value = value.ToList(); + } + + /// Initializes a new instance of CredentialListResponse. + /// List of credentials. + /// The link to the next page of results, if any remaining results exist. + internal CredentialListResponse(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// List of credentials. + public IReadOnlyList Value { get; } + /// The link to the next page of results, if any remaining results exist. + public string NextLink { get; } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs index 72f8469764fa4..8405bef18d6dc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.Serialization.cs @@ -42,7 +42,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -94,7 +94,7 @@ internal static FileServerReadSettings DeserializeFileServerReadSettings(JsonEle Optional wildcardFolderPath = default; Optional wildcardFileName = default; Optional fileListPath = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional deleteFilesAfterCompletion = default; Optional modifiedDatetimeStart = default; @@ -148,7 +148,7 @@ internal static FileServerReadSettings DeserializeFileServerReadSettings(JsonEle { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -213,7 +213,7 @@ internal static FileServerReadSettings DeserializeFileServerReadSettings(JsonEle additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new FileServerReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, fileListPath.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value, fileFilter.Value); + return new FileServerReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, fileListPath.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value, fileFilter.Value); } internal partial class FileServerReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.cs index 3dca4693f92e3..a88e1f2e5b569 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FileServerReadSettings.cs @@ -26,13 +26,13 @@ public FileServerReadSettings() /// FileServer wildcardFolderPath. Type: string (or Expression with resultType string). /// FileServer wildcardFileName. Type: string (or Expression with resultType string). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). /// The start of file's modified datetime. Type: string (or Expression with resultType string). /// The end of file's modified datetime. Type: string (or Expression with resultType string). /// Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression with resultType string). - internal FileServerReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object fileListPath, bool? enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd, object fileFilter) : base(type, maxConcurrentConnections, additionalProperties) + internal FileServerReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object fileListPath, object enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd, object fileFilter) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -55,8 +55,8 @@ internal FileServerReadSettings(string type, object maxConcurrentConnections, ID public object WildcardFileName { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). public object FileListPath { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs index 88443b0adba5e..58ed08b79c483 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.Serialization.cs @@ -37,7 +37,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -57,7 +57,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(UseBinaryTransfer)) { writer.WritePropertyName("useBinaryTransfer"u8); - writer.WriteBooleanValue(UseBinaryTransfer.Value); + writer.WriteObjectValue(UseBinaryTransfer); } if (Optional.IsDefined(DisableChunking)) { @@ -88,11 +88,11 @@ internal static FtpReadSettings DeserializeFtpReadSettings(JsonElement element) Optional recursive = default; Optional wildcardFolderPath = default; Optional wildcardFileName = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional deleteFilesAfterCompletion = default; Optional fileListPath = default; - Optional useBinaryTransfer = default; + Optional useBinaryTransfer = default; Optional disableChunking = default; string type = default; Optional maxConcurrentConnections = default; @@ -133,7 +133,7 @@ internal static FtpReadSettings DeserializeFtpReadSettings(JsonElement element) { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -169,7 +169,7 @@ internal static FtpReadSettings DeserializeFtpReadSettings(JsonElement element) { continue; } - useBinaryTransfer = property.Value.GetBoolean(); + useBinaryTransfer = property.Value.GetObject(); continue; } if (property.NameEquals("disableChunking"u8)) @@ -198,7 +198,7 @@ internal static FtpReadSettings DeserializeFtpReadSettings(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new FtpReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, deleteFilesAfterCompletion.Value, fileListPath.Value, Optional.ToNullable(useBinaryTransfer), disableChunking.Value); + return new FtpReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, deleteFilesAfterCompletion.Value, fileListPath.Value, useBinaryTransfer.Value, disableChunking.Value); } internal partial class FtpReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.cs index 3e61ef4f85571..81ad42072f89e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FtpReadSettings.cs @@ -25,13 +25,13 @@ public FtpReadSettings() /// If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). /// Ftp wildcardFolderPath. Type: string (or Expression with resultType string). /// Ftp wildcardFileName. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - /// Specify whether to use binary transfer mode for FTP stores. + /// Specify whether to use binary transfer mode for FTP stores. Type: boolean (or Expression with resultType boolean). /// If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - internal FtpReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, bool? enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object fileListPath, bool? useBinaryTransfer, object disableChunking) : base(type, maxConcurrentConnections, additionalProperties) + internal FtpReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object fileListPath, object useBinaryTransfer, object disableChunking) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -51,16 +51,16 @@ internal FtpReadSettings(string type, object maxConcurrentConnections, IDictiona public object WildcardFolderPath { get; set; } /// Ftp wildcardFileName. Type: string (or Expression with resultType string). public object WildcardFileName { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). public object DeleteFilesAfterCompletion { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). public object FileListPath { get; set; } - /// Specify whether to use binary transfer mode for FTP stores. - public bool? UseBinaryTransfer { get; set; } + /// Specify whether to use binary transfer mode for FTP stores. Type: boolean (or Expression with resultType boolean). + public object UseBinaryTransfer { get; set; } /// If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). public object DisableChunking { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs index 41dfc02937244..c910eaa8a7b40 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.Serialization.cs @@ -47,7 +47,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -95,7 +95,7 @@ internal static GoogleCloudStorageReadSettings DeserializeGoogleCloudStorageRead Optional wildcardFileName = default; Optional prefix = default; Optional fileListPath = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional deleteFilesAfterCompletion = default; Optional modifiedDatetimeStart = default; @@ -157,7 +157,7 @@ internal static GoogleCloudStorageReadSettings DeserializeGoogleCloudStorageRead { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -213,7 +213,7 @@ internal static GoogleCloudStorageReadSettings DeserializeGoogleCloudStorageRead additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new GoogleCloudStorageReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); + return new GoogleCloudStorageReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, prefix.Value, fileListPath.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value); } internal partial class GoogleCloudStorageReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.cs index 4396641329cff..e31e4cdf3e436 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/GoogleCloudStorageReadSettings.cs @@ -27,12 +27,12 @@ public GoogleCloudStorageReadSettings() /// Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). /// The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). /// The start of file's modified datetime. Type: string (or Expression with resultType string). /// The end of file's modified datetime. Type: string (or Expression with resultType string). - internal GoogleCloudStorageReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, bool? enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) + internal GoogleCloudStorageReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object prefix, object fileListPath, object enablePartitionDiscovery, object partitionRootPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -57,8 +57,8 @@ internal GoogleCloudStorageReadSettings(string type, object maxConcurrentConnect public object Prefix { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). public object FileListPath { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs index c09d4eb112ff4..dd610a1fd2f69 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.Serialization.cs @@ -42,7 +42,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -94,7 +94,7 @@ internal static HdfsReadSettings DeserializeHdfsReadSettings(JsonElement element Optional wildcardFolderPath = default; Optional wildcardFileName = default; Optional fileListPath = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional modifiedDatetimeStart = default; Optional modifiedDatetimeEnd = default; @@ -148,7 +148,7 @@ internal static HdfsReadSettings DeserializeHdfsReadSettings(JsonElement element { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -213,7 +213,7 @@ internal static HdfsReadSettings DeserializeHdfsReadSettings(JsonElement element additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new HdfsReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, fileListPath.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value, distcpSettings.Value, deleteFilesAfterCompletion.Value); + return new HdfsReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, fileListPath.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value, distcpSettings.Value, deleteFilesAfterCompletion.Value); } internal partial class HdfsReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.cs index 4722aaafd0d65..fefd180cc0bbd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HdfsReadSettings.cs @@ -26,13 +26,13 @@ public HdfsReadSettings() /// HDFS wildcardFolderPath. Type: string (or Expression with resultType string). /// HDFS wildcardFileName. Type: string (or Expression with resultType string). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// The start of file's modified datetime. Type: string (or Expression with resultType string). /// The end of file's modified datetime. Type: string (or Expression with resultType string). /// Specifies Distcp-related settings. /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). - internal HdfsReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object fileListPath, bool? enablePartitionDiscovery, object partitionRootPath, object modifiedDatetimeStart, object modifiedDatetimeEnd, DistcpSettings distcpSettings, object deleteFilesAfterCompletion) : base(type, maxConcurrentConnections, additionalProperties) + internal HdfsReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object fileListPath, object enablePartitionDiscovery, object partitionRootPath, object modifiedDatetimeStart, object modifiedDatetimeEnd, DistcpSettings distcpSettings, object deleteFilesAfterCompletion) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -55,8 +55,8 @@ internal HdfsReadSettings(string type, object maxConcurrentConnections, IDiction public object WildcardFileName { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). public object FileListPath { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// The start of file's modified datetime. Type: string (or Expression with resultType string). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs index 6fc265ea21bf7..6dd25e284b479 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.Serialization.cs @@ -42,13 +42,18 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { writer.WritePropertyName("partitionRootPath"u8); writer.WriteObjectValue(PartitionRootPath); } + if (Optional.IsDefined(AdditionalColumns)) + { + writer.WritePropertyName("additionalColumns"u8); + writer.WriteObjectValue(AdditionalColumns); + } writer.WritePropertyName("type"u8); writer.WriteStringValue(Type); if (Optional.IsDefined(MaxConcurrentConnections)) @@ -74,8 +79,9 @@ internal static HttpReadSettings DeserializeHttpReadSettings(JsonElement element Optional requestBody = default; Optional additionalHeaders = default; Optional requestTimeout = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; + Optional additionalColumns = default; string type = default; Optional maxConcurrentConnections = default; IDictionary additionalProperties = default; @@ -124,7 +130,7 @@ internal static HttpReadSettings DeserializeHttpReadSettings(JsonElement element { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -136,6 +142,15 @@ internal static HttpReadSettings DeserializeHttpReadSettings(JsonElement element partitionRootPath = property.Value.GetObject(); continue; } + if (property.NameEquals("additionalColumns"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + additionalColumns = property.Value.GetObject(); + continue; + } if (property.NameEquals("type"u8)) { type = property.Value.GetString(); @@ -153,7 +168,7 @@ internal static HttpReadSettings DeserializeHttpReadSettings(JsonElement element additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new HttpReadSettings(type, maxConcurrentConnections.Value, additionalProperties, requestMethod.Value, requestBody.Value, additionalHeaders.Value, requestTimeout.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value); + return new HttpReadSettings(type, maxConcurrentConnections.Value, additionalProperties, requestMethod.Value, requestBody.Value, additionalHeaders.Value, requestTimeout.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, additionalColumns.Value); } internal partial class HttpReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.cs index b9836441dcc55..58561d50c9fdd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/HttpReadSettings.cs @@ -9,7 +9,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { - /// Sftp read settings. + /// Http read settings. public partial class HttpReadSettings : StoreReadSettings { /// Initializes a new instance of HttpReadSettings. @@ -26,9 +26,10 @@ public HttpReadSettings() /// The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). /// The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). /// Specifies the timeout for a HTTP client to get HTTP response from HTTP server. - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - internal HttpReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object requestMethod, object requestBody, object additionalHeaders, object requestTimeout, bool? enablePartitionDiscovery, object partitionRootPath) : base(type, maxConcurrentConnections, additionalProperties) + /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). + internal HttpReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object requestMethod, object requestBody, object additionalHeaders, object requestTimeout, object enablePartitionDiscovery, object partitionRootPath, object additionalColumns) : base(type, maxConcurrentConnections, additionalProperties) { RequestMethod = requestMethod; RequestBody = requestBody; @@ -36,6 +37,7 @@ internal HttpReadSettings(string type, object maxConcurrentConnections, IDiction RequestTimeout = requestTimeout; EnablePartitionDiscovery = enablePartitionDiscovery; PartitionRootPath = partitionRootPath; + AdditionalColumns = additionalColumns; Type = type ?? "HttpReadSettings"; } @@ -47,9 +49,11 @@ internal HttpReadSettings(string type, object maxConcurrentConnections, IDiction public object AdditionalHeaders { get; set; } /// Specifies the timeout for a HTTP client to get HTTP response from HTTP server. public object RequestTimeout { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } + /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). + public object AdditionalColumns { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs new file mode 100644 index 0000000000000..c1988a6dcf1bf --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + [JsonConverter(typeof(ManagedIdentityCredentialConverter))] + public partial class ManagedIdentityCredential : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(Annotations)) + { + writer.WritePropertyName("annotations"u8); + writer.WriteStartArray(); + foreach (var item in Annotations) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("typeProperties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(ResourceId)) + { + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); + } + writer.WriteEndObject(); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static ManagedIdentityCredential DeserializeManagedIdentityCredential(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string type = default; + Optional description = default; + Optional> annotations = default; + Optional resourceId = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("annotations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetObject()); + } + } + annotations = array; + continue; + } + if (property.NameEquals("typeProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("resourceId"u8)) + { + resourceId = property0.Value.GetString(); + continue; + } + } + continue; + } + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + additionalProperties = additionalPropertiesDictionary; + return new ManagedIdentityCredential(type, description.Value, Optional.ToList(annotations), additionalProperties, resourceId.Value); + } + + internal partial class ManagedIdentityCredentialConverter : JsonConverter + { + public override void Write(Utf8JsonWriter writer, ManagedIdentityCredential model, JsonSerializerOptions options) + { + writer.WriteObjectValue(model); + } + public override ManagedIdentityCredential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + using var document = JsonDocument.ParseValue(ref reader); + return DeserializeManagedIdentityCredential(document.RootElement); + } + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs new file mode 100644 index 0000000000000..6a5738d499513 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// Managed identity credential. + public partial class ManagedIdentityCredential : Credential + { + /// Initializes a new instance of ManagedIdentityCredential. + public ManagedIdentityCredential() + { + Type = "ManagedIdentity"; + } + + /// Initializes a new instance of ManagedIdentityCredential. + /// Type of credential. + /// Credential description. + /// List of tags that can be used for describing the Credential. + /// Additional Properties. + /// The resource id of user assigned managed identity. + internal ManagedIdentityCredential(string type, string description, IList annotations, IDictionary additionalProperties, string resourceId) : base(type, description, annotations, additionalProperties) + { + ResourceId = resourceId; + Type = type ?? "ManagedIdentity"; + } + + /// The resource id of user assigned managed identity. + public string ResourceId { get; set; } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs new file mode 100644 index 0000000000000..edaf76be2dc52 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Text.Json.Serialization; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + [JsonConverter(typeof(ManagedIdentityCredentialResourceConverter))] + public partial class ManagedIdentityCredentialResource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static ManagedIdentityCredentialResource DeserializeManagedIdentityCredentialResource(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ManagedIdentityCredential properties = default; + Optional etag = default; + Optional id = default; + Optional name = default; + Optional type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = ManagedIdentityCredential.DeserializeManagedIdentityCredential(property.Value); + continue; + } + if (property.NameEquals("etag"u8)) + { + etag = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + } + return new ManagedIdentityCredentialResource(id.Value, name.Value, type.Value, etag.Value, properties); + } + + internal partial class ManagedIdentityCredentialResourceConverter : JsonConverter + { + public override void Write(Utf8JsonWriter writer, ManagedIdentityCredentialResource model, JsonSerializerOptions options) + { + writer.WriteObjectValue(model); + } + public override ManagedIdentityCredentialResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + using var document = JsonDocument.ParseValue(ref reader); + return DeserializeManagedIdentityCredentialResource(document.RootElement); + } + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs new file mode 100644 index 0000000000000..b95246cefaec8 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// Credential resource type. + public partial class ManagedIdentityCredentialResource : SubResource + { + /// Initializes a new instance of ManagedIdentityCredentialResource. + /// Managed Identity Credential properties. + /// is null. + public ManagedIdentityCredentialResource(ManagedIdentityCredential properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// 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. + internal ManagedIdentityCredentialResource(string id, string name, string type, string etag, ManagedIdentityCredential properties) : base(id, name, type, etag) + { + Properties = properties; + } + + /// Managed Identity Credential properties. + public ManagedIdentityCredential Properties { get; set; } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs index ca7d4e63349ef..90d4a038a2b74 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.Serialization.cs @@ -24,7 +24,7 @@ internal static RunNotebookResult DeserializeRunNotebookResult(JsonElement eleme Optional runId = default; Optional runStatus = default; Optional lastCheckedOn = default; - Optional sessionId = default; + Optional sessionId = default; Optional sparkPool = default; Optional sessionDetail = default; Optional exitValue = default; @@ -48,11 +48,7 @@ internal static RunNotebookResult DeserializeRunNotebookResult(JsonElement eleme } if (property.NameEquals("sessionId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - sessionId = property.Value.GetInt64(); + sessionId = property.Value.GetString(); continue; } if (property.NameEquals("sparkPool"u8)) @@ -84,7 +80,7 @@ internal static RunNotebookResult DeserializeRunNotebookResult(JsonElement eleme continue; } } - return new RunNotebookResult(runId.Value, runStatus.Value, lastCheckedOn.Value, Optional.ToNullable(sessionId), sparkPool.Value, sessionDetail.Value, exitValue.Value, error.Value); + return new RunNotebookResult(runId.Value, runStatus.Value, lastCheckedOn.Value, sessionId.Value, sparkPool.Value, sessionDetail.Value, exitValue.Value, error.Value); } internal partial class RunNotebookResultConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.cs index 15d3bcdb15ab9..b591ff6631adf 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookResult.cs @@ -24,7 +24,7 @@ internal RunNotebookResult() /// Run notebook session details. /// Output of exit command. /// Run notebook error. - internal RunNotebookResult(string runId, string runStatus, string lastCheckedOn, long? sessionId, string sparkPool, object sessionDetail, string exitValue, RunNotebookError error) + internal RunNotebookResult(string runId, string runStatus, string lastCheckedOn, string sessionId, string sparkPool, object sessionDetail, string exitValue, RunNotebookError error) { RunId = runId; RunStatus = runStatus; @@ -43,7 +43,7 @@ internal RunNotebookResult(string runId, string runStatus, string lastCheckedOn, /// Timestamp of last update. public string LastCheckedOn { get; } /// Livy session id. - public long? SessionId { get; } + public string SessionId { get; } /// SparkPool name. public string SparkPool { get; } /// Run notebook session details. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs index c43071812cbae..45723d26c705a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.Serialization.cs @@ -27,7 +27,7 @@ internal static RunNotebookSnapshot DeserializeRunNotebookSnapshot(JsonElement e string notebook = default; Optional sessionOptions = default; Optional honorSessionTimeToLive = default; - Optional sessionId = default; + Optional sessionId = default; Optional sparkPool = default; Optional> parameters = default; Optional notebookContent = default; @@ -68,11 +68,7 @@ internal static RunNotebookSnapshot DeserializeRunNotebookSnapshot(JsonElement e } if (property.NameEquals("sessionId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - sessionId = property.Value.GetInt64(); + sessionId = property.Value.GetString(); continue; } if (property.NameEquals("sparkPool"u8)) @@ -104,7 +100,7 @@ internal static RunNotebookSnapshot DeserializeRunNotebookSnapshot(JsonElement e continue; } } - return new RunNotebookSnapshot(exitValue.Value, id, notebook, sessionOptions.Value, Optional.ToNullable(honorSessionTimeToLive), Optional.ToNullable(sessionId), sparkPool.Value, Optional.ToDictionary(parameters), notebookContent.Value); + return new RunNotebookSnapshot(exitValue.Value, id, notebook, sessionOptions.Value, Optional.ToNullable(honorSessionTimeToLive), sessionId.Value, sparkPool.Value, Optional.ToDictionary(parameters), notebookContent.Value); } internal partial class RunNotebookSnapshotConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.cs index 2434f587b6bd0..46010a765bfa5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshot.cs @@ -38,7 +38,7 @@ internal RunNotebookSnapshot(string id, string notebook) /// SparkPool name. /// Run notebook parameters. /// Notebook resource type. - internal RunNotebookSnapshot(string exitValue, string id, string notebook, RunNotebookSparkSessionOptions sessionOptions, bool? honorSessionTimeToLive, long? sessionId, string sparkPool, IReadOnlyDictionary parameters, NotebookResource notebookContent) + internal RunNotebookSnapshot(string exitValue, string id, string notebook, RunNotebookSparkSessionOptions sessionOptions, bool? honorSessionTimeToLive, string sessionId, string sparkPool, IReadOnlyDictionary parameters, NotebookResource notebookContent) { ExitValue = exitValue; Id = id; @@ -62,7 +62,7 @@ internal RunNotebookSnapshot(string exitValue, string id, string notebook, RunNo /// Whether session should run till time to live after run completes. public bool? HonorSessionTimeToLive { get; } /// Livy session id. - public long? SessionId { get; } + public string SessionId { get; } /// SparkPool name. public string SparkPool { get; } /// Run notebook parameters. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs index 183d3f66f1c3f..d98ad67f1ae40 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.Serialization.cs @@ -26,7 +26,7 @@ internal static RunNotebookSnapshotResult DeserializeRunNotebookSnapshotResult(J string runId = default; string runStatus = default; Optional lastCheckedOn = default; - Optional sessionId = default; + Optional sessionId = default; Optional sparkPool = default; foreach (var property in element.EnumerateObject()) { @@ -61,11 +61,7 @@ internal static RunNotebookSnapshotResult DeserializeRunNotebookSnapshotResult(J } if (property.NameEquals("sessionId"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - sessionId = property.Value.GetInt64(); + sessionId = property.Value.GetString(); continue; } if (property.NameEquals("sparkPool"u8)) @@ -74,7 +70,7 @@ internal static RunNotebookSnapshotResult DeserializeRunNotebookSnapshotResult(J continue; } } - return new RunNotebookSnapshotResult(snapshot, error.Value, runId, runStatus, lastCheckedOn.Value, Optional.ToNullable(sessionId), sparkPool.Value); + return new RunNotebookSnapshotResult(snapshot, error.Value, runId, runStatus, lastCheckedOn.Value, sessionId.Value, sparkPool.Value); } internal partial class RunNotebookSnapshotResultConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.cs index 7e9ec0e6a5be7..05bdd60a4b026 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/RunNotebookSnapshotResult.cs @@ -37,7 +37,7 @@ internal RunNotebookSnapshotResult(RunNotebookSnapshot snapshot, string runId, s /// Timestamp of last update. /// Livy session id. /// SparkPool name. - internal RunNotebookSnapshotResult(RunNotebookSnapshot snapshot, RunNotebookError error, string runId, string runStatus, string lastCheckedOn, long? sessionId, string sparkPool) + internal RunNotebookSnapshotResult(RunNotebookSnapshot snapshot, RunNotebookError error, string runId, string runStatus, string lastCheckedOn, string sessionId, string sparkPool) { Snapshot = snapshot; Error = error; @@ -59,7 +59,7 @@ internal RunNotebookSnapshotResult(RunNotebookSnapshot snapshot, RunNotebookErro /// Timestamp of last update. public string LastCheckedOn { get; } /// Livy session id. - public long? SessionId { get; } + public string SessionId { get; } /// SparkPool name. public string SparkPool { get; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionOption.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionOption.cs index 2e05a0289cd32..e4c4c58456299 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionOption.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaPartitionOption.cs @@ -11,7 +11,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { /// The partition mechanism that will be used for SAP HANA read in parallel. - public readonly partial struct SapHanaPartitionOption : IEquatable + internal readonly partial struct SapHanaPartitionOption : IEquatable { private readonly string _value; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs index fb028db591242..5f54817432ee3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.Serialization.cs @@ -32,7 +32,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(PartitionOption)) { writer.WritePropertyName("partitionOption"u8); - writer.WriteStringValue(PartitionOption.Value.ToString()); + writer.WriteObjectValue(PartitionOption); } if (Optional.IsDefined(PartitionSettings)) { @@ -82,7 +82,7 @@ internal static SapHanaSource DeserializeSapHanaSource(JsonElement element) } Optional query = default; Optional packetSize = default; - Optional partitionOption = default; + Optional partitionOption = default; Optional partitionSettings = default; Optional queryTimeout = default; Optional additionalColumns = default; @@ -118,7 +118,7 @@ internal static SapHanaSource DeserializeSapHanaSource(JsonElement element) { continue; } - partitionOption = new SapHanaPartitionOption(property.Value.GetString()); + partitionOption = property.Value.GetObject(); continue; } if (property.NameEquals("partitionSettings"u8)) @@ -183,7 +183,7 @@ internal static SapHanaSource DeserializeSapHanaSource(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SapHanaSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, query.Value, packetSize.Value, Optional.ToNullable(partitionOption), partitionSettings.Value); + return new SapHanaSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, query.Value, packetSize.Value, partitionOption.Value, partitionSettings.Value); } internal partial class SapHanaSourceConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.cs index e355f8f64d043..6ffdb9015d003 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapHanaSource.cs @@ -28,9 +28,9 @@ public SapHanaSource() /// Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). /// SAP HANA Sql query. Type: string (or Expression with resultType string). /// The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). - /// The partition mechanism that will be used for SAP HANA read in parallel. + /// The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". /// The settings that will be leveraged for SAP HANA source partitioning. - internal SapHanaSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object query, object packetSize, SapHanaPartitionOption? partitionOption, SapHanaPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) + internal SapHanaSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object query, object packetSize, object partitionOption, SapHanaPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) { Query = query; PacketSize = packetSize; @@ -43,8 +43,8 @@ internal SapHanaSource(string type, object sourceRetryCount, object sourceRetryW public object Query { get; set; } /// The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). public object PacketSize { get; set; } - /// The partition mechanism that will be used for SAP HANA read in parallel. - public SapHanaPartitionOption? PartitionOption { get; set; } + /// The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "SapHanaDynamicRange". + public object PartitionOption { get; set; } /// The settings that will be leveraged for SAP HANA source partitioning. public SapHanaPartitionSettings PartitionSettings { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionOption.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionOption.cs index 3e6cb959b3f92..c2226509782bc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionOption.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTablePartitionOption.cs @@ -11,7 +11,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { /// The partition mechanism that will be used for SAP table read in parallel. - public readonly partial struct SapTablePartitionOption : IEquatable + internal readonly partial struct SapTablePartitionOption : IEquatable { private readonly string _value; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs index a68091c98a4be..26a0316b3ed83 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.Serialization.cs @@ -57,7 +57,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(PartitionOption)) { writer.WritePropertyName("partitionOption"u8); - writer.WriteStringValue(PartitionOption.Value.ToString()); + writer.WriteObjectValue(PartitionOption); } if (Optional.IsDefined(PartitionSettings)) { @@ -112,7 +112,7 @@ internal static SapTableSource DeserializeSapTableSource(JsonElement element) Optional batchSize = default; Optional customRfcReadTableFunctionModule = default; Optional sapDataColumnDelimiter = default; - Optional partitionOption = default; + Optional partitionOption = default; Optional partitionSettings = default; Optional queryTimeout = default; Optional additionalColumns = default; @@ -193,7 +193,7 @@ internal static SapTableSource DeserializeSapTableSource(JsonElement element) { continue; } - partitionOption = new SapTablePartitionOption(property.Value.GetString()); + partitionOption = property.Value.GetObject(); continue; } if (property.NameEquals("partitionSettings"u8)) @@ -258,7 +258,7 @@ internal static SapTableSource DeserializeSapTableSource(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SapTableSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, rowCount.Value, rowSkips.Value, rfcTableFields.Value, rfcTableOptions.Value, batchSize.Value, customRfcReadTableFunctionModule.Value, sapDataColumnDelimiter.Value, Optional.ToNullable(partitionOption), partitionSettings.Value); + return new SapTableSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, rowCount.Value, rowSkips.Value, rfcTableFields.Value, rfcTableOptions.Value, batchSize.Value, customRfcReadTableFunctionModule.Value, sapDataColumnDelimiter.Value, partitionOption.Value, partitionSettings.Value); } internal partial class SapTableSourceConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.cs index 6990b47f3197e..8a98e3f42b59b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SapTableSource.cs @@ -33,9 +33,9 @@ public SapTableSource() /// Specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer (or Expression with resultType integer). /// Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with resultType string). /// The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with resultType string). - /// The partition mechanism that will be used for SAP table read in parallel. + /// The partition mechanism that will be used for SAP table read in parallel. Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", "PartitionOnCalendarMonth", "PartitionOnCalendarDate", "PartitionOnTime". /// The settings that will be leveraged for SAP table source partitioning. - internal SapTableSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object rowCount, object rowSkips, object rfcTableFields, object rfcTableOptions, object batchSize, object customRfcReadTableFunctionModule, object sapDataColumnDelimiter, SapTablePartitionOption? partitionOption, SapTablePartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) + internal SapTableSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object rowCount, object rowSkips, object rfcTableFields, object rfcTableOptions, object batchSize, object customRfcReadTableFunctionModule, object sapDataColumnDelimiter, object partitionOption, SapTablePartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) { RowCount = rowCount; RowSkips = rowSkips; @@ -63,8 +63,8 @@ internal SapTableSource(string type, object sourceRetryCount, object sourceRetry public object CustomRfcReadTableFunctionModule { get; set; } /// The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: string (or Expression with resultType string). public object SapDataColumnDelimiter { get; set; } - /// The partition mechanism that will be used for SAP table read in parallel. - public SapTablePartitionOption? PartitionOption { get; set; } + /// The partition mechanism that will be used for SAP table read in parallel. Possible values include: "None", "PartitionOnInt", "PartitionOnCalendarYear", "PartitionOnCalendarMonth", "PartitionOnCalendarDate", "PartitionOnTime". + public object PartitionOption { get; set; } /// The settings that will be leveraged for SAP table source partitioning. public SapTablePartitionSettings PartitionSettings { get; set; } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs index 5f2e459ac7c22..cb56f2ad18209 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.Serialization.cs @@ -70,6 +70,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("typeProperties"u8); writer.WriteStartObject(); + if (Optional.IsDefined(ScriptBlockExecutionTimeout)) + { + writer.WritePropertyName("scriptBlockExecutionTimeout"u8); + writer.WriteObjectValue(ScriptBlockExecutionTimeout); + } if (Optional.IsCollectionDefined(Scripts)) { writer.WritePropertyName("scripts"u8); @@ -109,6 +114,7 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) Optional onInactiveMarkAs = default; Optional> dependsOn = default; Optional> userProperties = default; + Optional scriptBlockExecutionTimeout = default; Optional> scripts = default; Optional logSettings = default; IDictionary additionalProperties = default; @@ -203,6 +209,15 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) } foreach (var property0 in property.Value.EnumerateObject()) { + if (property0.NameEquals("scriptBlockExecutionTimeout"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + scriptBlockExecutionTimeout = property0.Value.GetObject(); + continue; + } if (property0.NameEquals("scripts"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -232,7 +247,7 @@ internal static ScriptActivity DeserializeScriptActivity(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new ScriptActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, linkedServiceName.Value, policy.Value, Optional.ToList(scripts), logSettings.Value); + return new ScriptActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, linkedServiceName.Value, policy.Value, scriptBlockExecutionTimeout.Value, Optional.ToList(scripts), logSettings.Value); } internal partial class ScriptActivityConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs index ef43906b292c6..fc7cf6942530d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ScriptActivity.cs @@ -36,15 +36,19 @@ public ScriptActivity(string name) : base(name) /// Additional Properties. /// Linked service reference. /// Activity policy. + /// ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). /// Array of script blocks. Type: array. /// Log settings of script activity. - internal ScriptActivity(string name, string type, string description, ActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, LinkedServiceReference linkedServiceName, ActivityPolicy policy, IList scripts, ScriptActivityTypePropertiesLogSettings logSettings) : base(name, type, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) + internal ScriptActivity(string name, string type, string description, ActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, LinkedServiceReference linkedServiceName, ActivityPolicy policy, object scriptBlockExecutionTimeout, IList scripts, ScriptActivityTypePropertiesLogSettings logSettings) : base(name, type, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties, linkedServiceName, policy) { + ScriptBlockExecutionTimeout = scriptBlockExecutionTimeout; Scripts = scripts; LogSettings = logSettings; Type = type ?? "Script"; } + /// ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). + public object ScriptBlockExecutionTimeout { get; set; } /// Array of script blocks. Type: array. public IList Scripts { get; } /// Log settings of script activity. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs new file mode 100644 index 0000000000000..5c0de5cfb14d6 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs @@ -0,0 +1,175 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using System.Text.Json.Serialization; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + [JsonConverter(typeof(ServicePrincipalCredentialConverter))] + public partial class ServicePrincipalCredential : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(Annotations)) + { + writer.WritePropertyName("annotations"u8); + writer.WriteStartArray(); + foreach (var item in Annotations) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("typeProperties"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(ServicePrincipalId)) + { + writer.WritePropertyName("servicePrincipalId"u8); + writer.WriteObjectValue(ServicePrincipalId); + } + if (Optional.IsDefined(ServicePrincipalKey)) + { + writer.WritePropertyName("servicePrincipalKey"u8); + writer.WriteObjectValue(ServicePrincipalKey); + } + if (Optional.IsDefined(Tenant)) + { + writer.WritePropertyName("tenant"u8); + writer.WriteObjectValue(Tenant); + } + writer.WriteEndObject(); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static ServicePrincipalCredential DeserializeServicePrincipalCredential(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string type = default; + Optional description = default; + Optional> annotations = default; + Optional servicePrincipalId = default; + Optional servicePrincipalKey = default; + Optional tenant = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("annotations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetObject()); + } + } + annotations = array; + continue; + } + if (property.NameEquals("typeProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("servicePrincipalId"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + servicePrincipalId = property0.Value.GetObject(); + continue; + } + if (property0.NameEquals("servicePrincipalKey"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + servicePrincipalKey = SecretBase.DeserializeSecretBase(property0.Value); + continue; + } + if (property0.NameEquals("tenant"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tenant = property0.Value.GetObject(); + continue; + } + } + continue; + } + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + additionalProperties = additionalPropertiesDictionary; + return new ServicePrincipalCredential(type, description.Value, Optional.ToList(annotations), additionalProperties, servicePrincipalId.Value, servicePrincipalKey.Value, tenant.Value); + } + + internal partial class ServicePrincipalCredentialConverter : JsonConverter + { + public override void Write(Utf8JsonWriter writer, ServicePrincipalCredential model, JsonSerializerOptions options) + { + writer.WriteObjectValue(model); + } + public override ServicePrincipalCredential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + using var document = JsonDocument.ParseValue(ref reader); + return DeserializeServicePrincipalCredential(document.RootElement); + } + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.cs new file mode 100644 index 0000000000000..0c2a8eb91900d --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// Service principal credential. + public partial class ServicePrincipalCredential : Credential + { + /// Initializes a new instance of ServicePrincipalCredential. + public ServicePrincipalCredential() + { + Type = "ServicePrincipal"; + } + + /// Initializes a new instance of ServicePrincipalCredential. + /// Type of credential. + /// Credential description. + /// List of tags that can be used for describing the Credential. + /// Additional Properties. + /// The app ID of the service principal used to authenticate. + /// + /// The key of the service principal used to authenticate. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// The ID of the tenant to which the service principal belongs. + internal ServicePrincipalCredential(string type, string description, IList annotations, IDictionary additionalProperties, object servicePrincipalId, SecretBase servicePrincipalKey, object tenant) : base(type, description, annotations, additionalProperties) + { + ServicePrincipalId = servicePrincipalId; + ServicePrincipalKey = servicePrincipalKey; + Tenant = tenant; + Type = type ?? "ServicePrincipal"; + } + + /// The app ID of the service principal used to authenticate. + public object ServicePrincipalId { get; set; } + /// + /// The key of the service principal used to authenticate. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public SecretBase ServicePrincipalKey { get; set; } + /// The ID of the tenant to which the service principal belongs. + public object Tenant { get; set; } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs index 78f000e4a34a5..6115f34fbfe6c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.Serialization.cs @@ -37,7 +37,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(EnablePartitionDiscovery)) { writer.WritePropertyName("enablePartitionDiscovery"u8); - writer.WriteBooleanValue(EnablePartitionDiscovery.Value); + writer.WriteObjectValue(EnablePartitionDiscovery); } if (Optional.IsDefined(PartitionRootPath)) { @@ -93,7 +93,7 @@ internal static SftpReadSettings DeserializeSftpReadSettings(JsonElement element Optional recursive = default; Optional wildcardFolderPath = default; Optional wildcardFileName = default; - Optional enablePartitionDiscovery = default; + Optional enablePartitionDiscovery = default; Optional partitionRootPath = default; Optional fileListPath = default; Optional deleteFilesAfterCompletion = default; @@ -139,7 +139,7 @@ internal static SftpReadSettings DeserializeSftpReadSettings(JsonElement element { continue; } - enablePartitionDiscovery = property.Value.GetBoolean(); + enablePartitionDiscovery = property.Value.GetObject(); continue; } if (property.NameEquals("partitionRootPath"u8)) @@ -213,7 +213,7 @@ internal static SftpReadSettings DeserializeSftpReadSettings(JsonElement element additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SftpReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, Optional.ToNullable(enablePartitionDiscovery), partitionRootPath.Value, fileListPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value, disableChunking.Value); + return new SftpReadSettings(type, maxConcurrentConnections.Value, additionalProperties, recursive.Value, wildcardFolderPath.Value, wildcardFileName.Value, enablePartitionDiscovery.Value, partitionRootPath.Value, fileListPath.Value, deleteFilesAfterCompletion.Value, modifiedDatetimeStart.Value, modifiedDatetimeEnd.Value, disableChunking.Value); } internal partial class SftpReadSettingsConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.cs index b24c13e6e5440..c04abdb5f8137 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SftpReadSettings.cs @@ -25,14 +25,14 @@ public SftpReadSettings() /// If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean). /// Sftp wildcardFolderPath. Type: string (or Expression with resultType string). /// Sftp wildcardFileName. Type: string (or Expression with resultType string). - /// Indicates whether to enable partition discovery. + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). /// Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). /// The start of file's modified datetime. Type: string (or Expression with resultType string). /// The end of file's modified datetime. Type: string (or Expression with resultType string). /// If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - internal SftpReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, bool? enablePartitionDiscovery, object partitionRootPath, object fileListPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd, object disableChunking) : base(type, maxConcurrentConnections, additionalProperties) + internal SftpReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties, object recursive, object wildcardFolderPath, object wildcardFileName, object enablePartitionDiscovery, object partitionRootPath, object fileListPath, object deleteFilesAfterCompletion, object modifiedDatetimeStart, object modifiedDatetimeEnd, object disableChunking) : base(type, maxConcurrentConnections, additionalProperties) { Recursive = recursive; WildcardFolderPath = wildcardFolderPath; @@ -53,8 +53,8 @@ internal SftpReadSettings(string type, object maxConcurrentConnections, IDiction public object WildcardFolderPath { get; set; } /// Sftp wildcardFileName. Type: string (or Expression with resultType string). public object WildcardFileName { get; set; } - /// Indicates whether to enable partition discovery. - public bool? EnablePartitionDiscovery { get; set; } + /// Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). + public object EnablePartitionDiscovery { get; set; } /// Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). public object PartitionRootPath { get; set; } /// Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs index efed409df2b69..39170a10add47 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.Serialization.cs @@ -34,16 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preCopyScript"u8); writer.WriteObjectValue(PreCopyScript); } - 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(StoredProcedureTableTypeParameterName)) { @@ -99,7 +93,7 @@ internal static SqlMISink DeserializeSqlMISink(JsonElement element) Optional sqlWriterStoredProcedureName = default; Optional sqlWriterTableType = default; Optional preCopyScript = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional storedProcedureTableTypeParameterName = default; Optional tableOption = default; string type = default; @@ -145,12 +139,7 @@ internal static SqlMISink DeserializeSqlMISink(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("storedProcedureTableTypeParameterName"u8)) @@ -224,7 +213,7 @@ internal static SqlMISink DeserializeSqlMISink(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SqlMISink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, Optional.ToDictionary(storedProcedureParameters), storedProcedureTableTypeParameterName.Value, tableOption.Value); + return new SqlMISink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, storedProcedureParameters.Value, storedProcedureTableTypeParameterName.Value, tableOption.Value); } internal partial class SqlMISinkConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.cs index 9aa957011ac24..427579c9279e6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISink.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class SqlMISink : CopySink /// Initializes a new instance of SqlMISink. public SqlMISink() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "SqlMISink"; } @@ -34,7 +32,7 @@ public SqlMISink() /// SQL stored procedure parameters. /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - internal SqlMISink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, IDictionary storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + internal SqlMISink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, object storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; @@ -52,7 +50,7 @@ internal SqlMISink(string type, object writeBatchSize, object writeBatchTimeout, /// SQL pre-copy script. Type: string (or Expression with resultType string). public object PreCopyScript { get; set; } /// SQL stored procedure parameters. - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). public object StoredProcedureTableTypeParameterName { get; set; } /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.Serialization.cs index a9b25bc09a3d1..29eb5834928ef 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.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 SqlMISource DeserializeSqlMISource(JsonElement element) } Optional sqlReaderQuery = default; Optional sqlReaderStoredProcedureName = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional isolationLevel = default; Optional produceAdditionalTypes = default; Optional partitionOption = default; @@ -142,12 +136,7 @@ internal static SqlMISource DeserializeSqlMISource(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("isolationLevel"u8)) @@ -239,7 +228,7 @@ internal static SqlMISource DeserializeSqlMISource(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SqlMISource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, Optional.ToDictionary(storedProcedureParameters), isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); + return new SqlMISource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, storedProcedureParameters.Value, isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); } internal partial class SqlMISourceConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.cs index 6b7e4a4c8c99b..528f3cbd3a401 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlMISource.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class SqlMISource : TabularSource /// Initializes a new instance of SqlMISource. public SqlMISource() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "SqlMISource"; } @@ -35,7 +33,7 @@ public SqlMISource() /// Which additional types to produce. /// The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". /// The settings that will be leveraged for Sql source partitioning. - internal SqlMISource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, IDictionary storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) + internal SqlMISource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, object storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) { SqlReaderQuery = sqlReaderQuery; SqlReaderStoredProcedureName = sqlReaderStoredProcedureName; @@ -52,7 +50,7 @@ internal SqlMISource(string type, object sourceRetryCount, object sourceRetryWai /// Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). public object SqlReaderStoredProcedureName { get; set; } /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). public object IsolationLevel { get; set; } /// Which additional types to produce. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs index 0ea4799d0e4d8..289d7f7df94e5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.Serialization.cs @@ -64,16 +64,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("storedProcedureName"u8); writer.WriteObjectValue(StoredProcedureName); - 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); } writer.WriteEndObject(); foreach (var item in AdditionalProperties) @@ -99,7 +93,7 @@ internal static SqlPoolStoredProcedureActivity DeserializeSqlPoolStoredProcedure Optional> dependsOn = default; Optional> userProperties = default; object storedProcedureName = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -190,12 +184,7 @@ internal static SqlPoolStoredProcedureActivity DeserializeSqlPoolStoredProcedure { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property1 in property0.Value.EnumerateObject()) - { - dictionary.Add(property1.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property1.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property0.Value.GetObject(); continue; } } @@ -204,7 +193,7 @@ internal static SqlPoolStoredProcedureActivity DeserializeSqlPoolStoredProcedure additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SqlPoolStoredProcedureActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, sqlPool, storedProcedureName, Optional.ToDictionary(storedProcedureParameters)); + return new SqlPoolStoredProcedureActivity(name, type, description.Value, Optional.ToNullable(state), Optional.ToNullable(onInactiveMarkAs), Optional.ToList(dependsOn), Optional.ToList(userProperties), additionalProperties, sqlPool, storedProcedureName, storedProcedureParameters.Value); } internal partial class SqlPoolStoredProcedureActivityConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.cs index a0d1b1c1c04f4..e555d7b2f0514 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlPoolStoredProcedureActivity.cs @@ -27,7 +27,6 @@ public SqlPoolStoredProcedureActivity(string name, SqlPoolReference sqlPool, obj SqlPool = sqlPool; StoredProcedureName = storedProcedureName; - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "SqlPoolStoredProcedure"; } @@ -43,7 +42,7 @@ public SqlPoolStoredProcedureActivity(string name, SqlPoolReference sqlPool, obj /// SQL pool stored procedure reference. /// Stored procedure name. Type: string (or Expression with resultType string). /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - internal SqlPoolStoredProcedureActivity(string name, string type, string description, ActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, SqlPoolReference sqlPool, object storedProcedureName, IDictionary storedProcedureParameters) : base(name, type, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) + internal SqlPoolStoredProcedureActivity(string name, string type, string description, ActivityState? state, ActivityOnInactiveMarkAs? onInactiveMarkAs, IList dependsOn, IList userProperties, IDictionary additionalProperties, SqlPoolReference sqlPool, object storedProcedureName, object storedProcedureParameters) : base(name, type, description, state, onInactiveMarkAs, dependsOn, userProperties, additionalProperties) { SqlPool = sqlPool; StoredProcedureName = storedProcedureName; @@ -56,6 +55,6 @@ internal SqlPoolStoredProcedureActivity(string name, string type, string descrip /// Stored procedure name. Type: string (or Expression with resultType string). public object StoredProcedureName { get; set; } /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs index 497855df3f25a..fd7bd360842b6 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.Serialization.cs @@ -34,16 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preCopyScript"u8); writer.WriteObjectValue(PreCopyScript); } - 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(StoredProcedureTableTypeParameterName)) { @@ -99,7 +93,7 @@ internal static SqlServerSink DeserializeSqlServerSink(JsonElement element) Optional sqlWriterStoredProcedureName = default; Optional sqlWriterTableType = default; Optional preCopyScript = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional storedProcedureTableTypeParameterName = default; Optional tableOption = default; string type = default; @@ -145,12 +139,7 @@ internal static SqlServerSink DeserializeSqlServerSink(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("storedProcedureTableTypeParameterName"u8)) @@ -224,7 +213,7 @@ internal static SqlServerSink DeserializeSqlServerSink(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SqlServerSink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, Optional.ToDictionary(storedProcedureParameters), storedProcedureTableTypeParameterName.Value, tableOption.Value); + return new SqlServerSink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, storedProcedureParameters.Value, storedProcedureTableTypeParameterName.Value, tableOption.Value); } internal partial class SqlServerSinkConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.cs index 6a9296069e5cb..6533f1fdd3ac9 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSink.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class SqlServerSink : CopySink /// Initializes a new instance of SqlServerSink. public SqlServerSink() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "SqlServerSink"; } @@ -34,7 +32,7 @@ public SqlServerSink() /// SQL stored procedure parameters. /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - internal SqlServerSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, IDictionary storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + internal SqlServerSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, object storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; @@ -52,7 +50,7 @@ internal SqlServerSink(string type, object writeBatchSize, object writeBatchTime /// SQL pre-copy script. Type: string (or Expression with resultType string). public object PreCopyScript { get; set; } /// SQL stored procedure parameters. - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). public object StoredProcedureTableTypeParameterName { get; set; } /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.Serialization.cs index 47438d1687fdc..549bf5c5506f3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.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 SqlServerSource DeserializeSqlServerSource(JsonElement element) } Optional sqlReaderQuery = default; Optional sqlReaderStoredProcedureName = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional isolationLevel = default; Optional produceAdditionalTypes = default; Optional partitionOption = default; @@ -142,12 +136,7 @@ internal static SqlServerSource DeserializeSqlServerSource(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("isolationLevel"u8)) @@ -239,7 +228,7 @@ internal static SqlServerSource DeserializeSqlServerSource(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SqlServerSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, Optional.ToDictionary(storedProcedureParameters), isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); + return new SqlServerSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, storedProcedureParameters.Value, isolationLevel.Value, produceAdditionalTypes.Value, partitionOption.Value, partitionSettings.Value); } internal partial class SqlServerSourceConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.cs index 26a9d55a0f0f0..9ed5d4c4159d3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlServerSource.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class SqlServerSource : TabularSource /// Initializes a new instance of SqlServerSource. public SqlServerSource() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "SqlServerSource"; } @@ -35,7 +33,7 @@ public SqlServerSource() /// Which additional types to produce. /// The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". /// The settings that will be leveraged for Sql source partitioning. - internal SqlServerSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, IDictionary storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) + internal SqlServerSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, object storedProcedureParameters, object isolationLevel, object produceAdditionalTypes, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) { SqlReaderQuery = sqlReaderQuery; SqlReaderStoredProcedureName = sqlReaderStoredProcedureName; @@ -52,7 +50,7 @@ internal SqlServerSource(string type, object sourceRetryCount, object sourceRetr /// Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). public object SqlReaderStoredProcedureName { get; set; } /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). public object IsolationLevel { get; set; } /// Which additional types to produce. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs index a4102910a2e6c..960c94be5b4cc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.Serialization.cs @@ -34,16 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("preCopyScript"u8); writer.WriteObjectValue(PreCopyScript); } - 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(StoredProcedureTableTypeParameterName)) { @@ -99,7 +93,7 @@ internal static SqlSink DeserializeSqlSink(JsonElement element) Optional sqlWriterStoredProcedureName = default; Optional sqlWriterTableType = default; Optional preCopyScript = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional storedProcedureTableTypeParameterName = default; Optional tableOption = default; string type = default; @@ -145,12 +139,7 @@ internal static SqlSink DeserializeSqlSink(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("storedProcedureTableTypeParameterName"u8)) @@ -224,7 +213,7 @@ internal static SqlSink DeserializeSqlSink(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SqlSink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, Optional.ToDictionary(storedProcedureParameters), storedProcedureTableTypeParameterName.Value, tableOption.Value); + return new SqlSink(type, writeBatchSize.Value, writeBatchTimeout.Value, sinkRetryCount.Value, sinkRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, sqlWriterStoredProcedureName.Value, sqlWriterTableType.Value, preCopyScript.Value, storedProcedureParameters.Value, storedProcedureTableTypeParameterName.Value, tableOption.Value); } internal partial class SqlSinkConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.cs index b1308ba9787d7..85716e1cfdd29 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSink.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class SqlSink : CopySink /// Initializes a new instance of SqlSink. public SqlSink() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "SqlSink"; } @@ -34,7 +32,7 @@ public SqlSink() /// SQL stored procedure parameters. /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). - internal SqlSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, IDictionary storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) + internal SqlSink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object sqlWriterStoredProcedureName, object sqlWriterTableType, object preCopyScript, object storedProcedureParameters, object storedProcedureTableTypeParameterName, object tableOption) : base(type, writeBatchSize, writeBatchTimeout, sinkRetryCount, sinkRetryWait, maxConcurrentConnections, additionalProperties) { SqlWriterStoredProcedureName = sqlWriterStoredProcedureName; SqlWriterTableType = sqlWriterTableType; @@ -52,7 +50,7 @@ internal SqlSink(string type, object writeBatchSize, object writeBatchTimeout, o /// SQL pre-copy script. Type: string (or Expression with resultType string). public object PreCopyScript { get; set; } /// SQL stored procedure parameters. - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). public object StoredProcedureTableTypeParameterName { get; set; } /// The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string). diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.Serialization.cs index bd122263746dd..732e550c44c6e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.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)) { @@ -98,7 +92,7 @@ internal static SqlSource DeserializeSqlSource(JsonElement element) } Optional sqlReaderQuery = default; Optional sqlReaderStoredProcedureName = default; - Optional> storedProcedureParameters = default; + Optional storedProcedureParameters = default; Optional isolationLevel = default; Optional partitionOption = default; Optional partitionSettings = default; @@ -136,12 +130,7 @@ internal static SqlSource DeserializeSqlSource(JsonElement element) { continue; } - Dictionary dictionary = new Dictionary(); - foreach (var property0 in property.Value.EnumerateObject()) - { - dictionary.Add(property0.Name, StoredProcedureParameter.DeserializeStoredProcedureParameter(property0.Value)); - } - storedProcedureParameters = dictionary; + storedProcedureParameters = property.Value.GetObject(); continue; } if (property.NameEquals("isolationLevel"u8)) @@ -224,7 +213,7 @@ internal static SqlSource DeserializeSqlSource(JsonElement element) additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new SqlSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, Optional.ToDictionary(storedProcedureParameters), isolationLevel.Value, partitionOption.Value, partitionSettings.Value); + return new SqlSource(type, sourceRetryCount.Value, sourceRetryWait.Value, maxConcurrentConnections.Value, additionalProperties, queryTimeout.Value, additionalColumns.Value, sqlReaderQuery.Value, sqlReaderStoredProcedureName.Value, storedProcedureParameters.Value, isolationLevel.Value, partitionOption.Value, partitionSettings.Value); } internal partial class SqlSourceConverter : JsonConverter diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.cs index 7ac73913d9803..a2a50b6b8861b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/SqlSource.cs @@ -6,7 +6,6 @@ #nullable disable using System.Collections.Generic; -using Azure.Core; namespace Azure.Analytics.Synapse.Artifacts.Models { @@ -16,7 +15,6 @@ public partial class SqlSource : TabularSource /// Initializes a new instance of SqlSource. public SqlSource() { - StoredProcedureParameters = new ChangeTrackingDictionary(); Type = "SqlSource"; } @@ -34,7 +32,7 @@ public SqlSource() /// Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). /// The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". /// The settings that will be leveraged for Sql source partitioning. - internal SqlSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, IDictionary storedProcedureParameters, object isolationLevel, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) + internal SqlSource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties, object queryTimeout, object additionalColumns, object sqlReaderQuery, object sqlReaderStoredProcedureName, object storedProcedureParameters, object isolationLevel, object partitionOption, SqlPartitionSettings partitionSettings) : base(type, sourceRetryCount, sourceRetryWait, maxConcurrentConnections, additionalProperties, queryTimeout, additionalColumns) { SqlReaderQuery = sqlReaderQuery; SqlReaderStoredProcedureName = sqlReaderStoredProcedureName; @@ -50,7 +48,7 @@ internal SqlSource(string type, object sourceRetryCount, object sourceRetryWait, /// Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string). public object SqlReaderStoredProcedureName { get; set; } /// Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - public IDictionary StoredProcedureParameters { get; } + public object StoredProcedureParameters { get; set; } /// Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. The default value is ReadCommitted. Type: string (or Expression with resultType string). public object IsolationLevel { get; set; } /// The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", "DynamicRange". diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.Serialization.cs deleted file mode 100644 index 64421eb970e1e..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.Serialization.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - [JsonConverter(typeof(StoredProcedureParameterConverter))] - public partial class StoredProcedureParameter : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(Value)) - { - if (Value != null) - { - writer.WritePropertyName("value"u8); - writer.WriteObjectValue(Value); - } - else - { - writer.WriteNull("value"); - } - } - if (Optional.IsDefined(Type)) - { - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type.Value.ToString()); - } - writer.WriteEndObject(); - } - - internal static StoredProcedureParameter DeserializeStoredProcedureParameter(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - Optional value = default; - Optional type = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - value = null; - continue; - } - value = property.Value.GetObject(); - continue; - } - if (property.NameEquals("type"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - type = new StoredProcedureParameterType(property.Value.GetString()); - continue; - } - } - return new StoredProcedureParameter(value.Value, Optional.ToNullable(type)); - } - - internal partial class StoredProcedureParameterConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, StoredProcedureParameter model, JsonSerializerOptions options) - { - writer.WriteObjectValue(model); - } - public override StoredProcedureParameter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeStoredProcedureParameter(document.RootElement); - } - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.cs index 43df072d992da..2c016af66fe2b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameter.cs @@ -8,25 +8,16 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { /// SQL stored procedure parameter. - public partial class StoredProcedureParameter + internal partial class StoredProcedureParameter { /// Initializes a new instance of StoredProcedureParameter. - public StoredProcedureParameter() + internal StoredProcedureParameter() { } - /// Initializes a new instance of StoredProcedureParameter. - /// Stored procedure parameter value. Type: string (or Expression with resultType string). - /// Stored procedure parameter type. - internal StoredProcedureParameter(object value, StoredProcedureParameterType? type) - { - Value = value; - Type = type; - } - /// Stored procedure parameter value. Type: string (or Expression with resultType string). - public object Value { get; set; } + public object Value { get; } /// Stored procedure parameter type. - public StoredProcedureParameterType? Type { get; set; } + public StoredProcedureParameterType? Type { get; } } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameterType.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameterType.cs index 95efe4ffa09f7..1d609e372f732 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameterType.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoredProcedureParameterType.cs @@ -11,7 +11,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { /// Stored procedure parameter type. - public readonly partial struct StoredProcedureParameterType : IEquatable + internal readonly partial struct StoredProcedureParameterType : IEquatable { private readonly string _value; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.Serialization.cs new file mode 100644 index 0000000000000..2d77c74560654 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.Serialization.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + internal partial class UnknownCredential : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsCollectionDefined(Annotations)) + { + writer.WritePropertyName("annotations"u8); + writer.WriteStartArray(); + foreach (var item in Annotations) + { + if (item == null) + { + writer.WriteNullValue(); + continue; + } + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static UnknownCredential DeserializeUnknownCredential(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string type = "Unknown"; + Optional description = default; + Optional> annotations = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("annotations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetObject()); + } + } + annotations = array; + continue; + } + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + additionalProperties = additionalPropertiesDictionary; + return new UnknownCredential(type, description.Value, Optional.ToList(annotations), additionalProperties); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs new file mode 100644 index 0000000000000..df3c48e9b7a9c --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Analytics.Synapse.Artifacts.Models +{ + /// The UnknownCredential. + internal partial class UnknownCredential : Credential + { + /// Initializes a new instance of UnknownCredential. + /// Type of credential. + /// Credential description. + /// List of tags that can be used for describing the Credential. + /// Additional Properties. + internal UnknownCredential(string type, string description, IList annotations, IDictionary additionalProperties) : base(type, description, annotations, additionalProperties) + { + Type = type ?? "Unknown"; + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs index 23c94ab735fce..1a9d76bb20d76 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.Serialization.cs @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Username)) { writer.WritePropertyName("username"u8); - writer.WriteStringValue(Username); + writer.WriteObjectValue(Username); } if (Optional.IsDefined(Password)) { @@ -61,7 +61,7 @@ internal static WebActivityAuthentication DeserializeWebActivityAuthentication(J } string type = default; Optional pfx = default; - Optional username = default; + Optional username = default; Optional password = default; Optional resource = default; Optional userTenant = default; @@ -84,7 +84,11 @@ internal static WebActivityAuthentication DeserializeWebActivityAuthentication(J } if (property.NameEquals("username"u8)) { - username = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + username = property.Value.GetObject(); continue; } if (property.NameEquals("password"u8)) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.cs index b71d540b23269..bdbccf793cd5d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/WebActivityAuthentication.cs @@ -30,7 +30,7 @@ public WebActivityAuthentication(string type) /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - /// Web activity authentication user name for basic authentication. + /// Web activity authentication user name for basic authentication. Type: string (or Expression with resultType string). /// /// Password for the PFX file or basic authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. @@ -39,7 +39,7 @@ public WebActivityAuthentication(string type) /// Resource for which Azure Auth token will be requested when using MSI Authentication. Type: string (or Expression with resultType string). /// TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression with resultType string). /// The credential reference containing authentication information. - internal WebActivityAuthentication(string type, SecretBase pfx, string username, SecretBase password, object resource, object userTenant, CredentialReference credential) + internal WebActivityAuthentication(string type, SecretBase pfx, object username, SecretBase password, object resource, object userTenant, CredentialReference credential) { Type = type; Pfx = pfx; @@ -58,8 +58,8 @@ internal WebActivityAuthentication(string type, SecretBase pfx, string username, /// The available derived classes include and . /// public SecretBase Pfx { get; set; } - /// Web activity authentication user name for basic authentication. - public string Username { get; set; } + /// Web activity authentication user name for basic authentication. Type: string (or Expression with resultType string). + public object Username { get; set; } /// /// Password for the PFX file or basic authentication. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookClient.cs index 5afe50856bf63..9486a9a53632c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookClient.cs @@ -29,7 +29,7 @@ protected NotebookClient() } /// Initializes a new instance of NotebookClient. - /// 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 NotebookClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -53,7 +53,7 @@ public NotebookClient(Uri endpoint, TokenCredential credential, ArtifactsClientO /// Initializes a new instance of NotebookClient. /// 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 NotebookClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultClient.cs index 8bc4a2ba9776f..9bda3113f99ac 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultClient.cs @@ -27,7 +27,7 @@ protected NotebookOperationResultClient() } /// Initializes a new instance of NotebookOperationResultClient. - /// 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 NotebookOperationResultClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -51,7 +51,7 @@ public NotebookOperationResultClient(Uri endpoint, TokenCredential credential, A /// Initializes a new instance of NotebookOperationResultClient. /// 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 NotebookOperationResultClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultRestClient.cs index 56dfdb66e69bb..94aa7472ef105 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookOperationResultRestClient.cs @@ -25,7 +25,7 @@ internal partial class NotebookOperationResultRestClient /// Initializes a new instance of NotebookOperationResultRestClient. /// 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 NotebookOperationResultRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookRestClient.cs index 13719286653d5..1bcb665f1b54c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookRestClient.cs @@ -27,7 +27,7 @@ internal partial class NotebookRestClient /// Initializes a new instance of NotebookRestClient. /// 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 NotebookRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineClient.cs index 6c3e5a286035c..417de2b6cce72 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineClient.cs @@ -30,7 +30,7 @@ protected PipelineClient() } /// Initializes a new instance of PipelineClient. - /// 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 PipelineClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -54,7 +54,7 @@ public PipelineClient(Uri endpoint, TokenCredential credential, ArtifactsClientO /// Initializes a new instance of PipelineClient. /// 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 PipelineClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRestClient.cs index 00ecddd439e78..266fb68410a85 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRestClient.cs @@ -28,7 +28,7 @@ internal partial class PipelineRestClient /// Initializes a new instance of PipelineRestClient. /// 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 PipelineRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunClient.cs index 7ae33642f8686..15897a126a31b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunClient.cs @@ -28,7 +28,7 @@ protected PipelineRunClient() } /// Initializes a new instance of PipelineRunClient. - /// 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 PipelineRunClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -52,7 +52,7 @@ public PipelineRunClient(Uri endpoint, TokenCredential credential, ArtifactsClie /// Initializes a new instance of PipelineRunClient. /// 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 PipelineRunClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunRestClient.cs index 99e3a57062c05..0b0258a058a7e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunRestClient.cs @@ -27,7 +27,7 @@ internal partial class PipelineRunRestClient /// Initializes a new instance of PipelineRunRestClient. /// 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 PipelineRunRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookClient.cs index c5666dc22a2b5..c338baf31dbfc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookClient.cs @@ -28,7 +28,7 @@ protected RunNotebookClient() } /// Initializes a new instance of RunNotebookClient. - /// 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 RunNotebookClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -52,7 +52,7 @@ public RunNotebookClient(Uri endpoint, TokenCredential credential, ArtifactsClie /// Initializes a new instance of RunNotebookClient. /// 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 RunNotebookClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookRestClient.cs index 3a9fef1d5d848..76ad7063aaa73 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/RunNotebookRestClient.cs @@ -27,7 +27,7 @@ internal partial class RunNotebookRestClient /// Initializes a new instance of RunNotebookRestClient. /// 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 RunNotebookRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationClient.cs index 18e5e30dfb084..3fe36d29be49e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationClient.cs @@ -29,7 +29,7 @@ protected SparkConfigurationClient() } /// Initializes a new instance of SparkConfigurationClient. - /// 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 SparkConfigurationClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -53,7 +53,7 @@ public SparkConfigurationClient(Uri endpoint, TokenCredential credential, Artifa /// Initializes a new instance of SparkConfigurationClient. /// 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 SparkConfigurationClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationRestClient.cs index 8bea92612c0f9..2646c03c35a90 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkConfigurationRestClient.cs @@ -27,7 +27,7 @@ internal partial class SparkConfigurationRestClient /// Initializes a new instance of SparkConfigurationRestClient. /// 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 SparkConfigurationRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionClient.cs index 9ce90903b988a..0f2e2750ddbee 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionClient.cs @@ -29,7 +29,7 @@ protected SparkJobDefinitionClient() } /// Initializes a new instance of SparkJobDefinitionClient. - /// 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 SparkJobDefinitionClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -53,7 +53,7 @@ public SparkJobDefinitionClient(Uri endpoint, TokenCredential credential, Artifa /// Initializes a new instance of SparkJobDefinitionClient. /// 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 SparkJobDefinitionClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionRestClient.cs index 4e9fe1b7b0277..2ec3a8c725e94 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionRestClient.cs @@ -27,7 +27,7 @@ internal partial class SparkJobDefinitionRestClient /// Initializes a new instance of SparkJobDefinitionRestClient. /// 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 SparkJobDefinitionRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsClient.cs index 46cc95e68babb..fb01b07942ef8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsClient.cs @@ -28,7 +28,7 @@ protected SqlPoolsClient() } /// Initializes a new instance of SqlPoolsClient. - /// 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 SqlPoolsClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -52,7 +52,7 @@ public SqlPoolsClient(Uri endpoint, TokenCredential credential, ArtifactsClientO /// Initializes a new instance of SqlPoolsClient. /// 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 SqlPoolsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsRestClient.cs index d83a55afa8798..c5ad0f8188958 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsRestClient.cs @@ -27,7 +27,7 @@ internal partial class SqlPoolsRestClient /// Initializes a new instance of SqlPoolsRestClient. /// 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 SqlPoolsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptClient.cs index cfc3a6c5a66e5..fcdf67bb132d8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptClient.cs @@ -29,7 +29,7 @@ protected SqlScriptClient() } /// Initializes a new instance of SqlScriptClient. - /// 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 SqlScriptClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -53,7 +53,7 @@ public SqlScriptClient(Uri endpoint, TokenCredential credential, ArtifactsClient /// Initializes a new instance of SqlScriptClient. /// 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 SqlScriptClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptRestClient.cs index ed0b360102582..275d8e06b6ed3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptRestClient.cs @@ -27,7 +27,7 @@ internal partial class SqlScriptRestClient /// Initializes a new instance of SqlScriptRestClient. /// 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 SqlScriptRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerClient.cs index a053904a09473..9078001f2f130 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerClient.cs @@ -29,7 +29,7 @@ protected TriggerClient() } /// Initializes a new instance of TriggerClient. - /// 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 TriggerClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -53,7 +53,7 @@ public TriggerClient(Uri endpoint, TokenCredential credential, ArtifactsClientOp /// Initializes a new instance of TriggerClient. /// 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 TriggerClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRestClient.cs index a23c6ae930763..1055ad2ee811e 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRestClient.cs @@ -27,7 +27,7 @@ internal partial class TriggerRestClient /// Initializes a new instance of TriggerRestClient. /// 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 TriggerRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunClient.cs index 82e64865dba71..d1196b00d14c2 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunClient.cs @@ -28,7 +28,7 @@ protected TriggerRunClient() } /// Initializes a new instance of TriggerRunClient. - /// 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 TriggerRunClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -52,7 +52,7 @@ public TriggerRunClient(Uri endpoint, TokenCredential credential, ArtifactsClien /// Initializes a new instance of TriggerRunClient. /// 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 TriggerRunClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunRestClient.cs index 00fc4625a4d84..8da062891a4d0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunRestClient.cs @@ -27,7 +27,7 @@ internal partial class TriggerRunRestClient /// Initializes a new instance of TriggerRunRestClient. /// 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 TriggerRunRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceClient.cs index 08f7bbfad2d78..5410a84470959 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceClient.cs @@ -28,7 +28,7 @@ protected WorkspaceClient() } /// Initializes a new instance of WorkspaceClient. - /// 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 WorkspaceClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -52,7 +52,7 @@ public WorkspaceClient(Uri endpoint, TokenCredential credential, ArtifactsClient /// Initializes a new instance of WorkspaceClient. /// 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 WorkspaceClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementClient.cs index 032f203a78989..0c0bd45b0b82b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementClient.cs @@ -28,7 +28,7 @@ protected WorkspaceGitRepoManagementClient() } /// Initializes a new instance of WorkspaceGitRepoManagementClient. - /// 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 WorkspaceGitRepoManagementClient(Uri endpoint, TokenCredential credential, ArtifactsClientOptions options = null) @@ -52,7 +52,7 @@ public WorkspaceGitRepoManagementClient(Uri endpoint, TokenCredential credential /// Initializes a new instance of WorkspaceGitRepoManagementClient. /// 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 WorkspaceGitRepoManagementClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementRestClient.cs index 6f15d7094f74a..167de27b417cd 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementRestClient.cs @@ -27,7 +27,7 @@ internal partial class WorkspaceGitRepoManagementRestClient /// Initializes a new instance of WorkspaceGitRepoManagementRestClient. /// 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 WorkspaceGitRepoManagementRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceRestClient.cs index b04d3e89bb36c..f06acfaccecc0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceRestClient.cs @@ -27,7 +27,7 @@ internal partial class WorkspaceRestClient /// Initializes a new instance of WorkspaceRestClient. /// 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 WorkspaceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md index b05cdd538863d..7a5c607d4cd3f 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-composite-v7 require: - - https://github.com/Azure/azure-rest-api-specs/blob/1e56b6fbe36e2dcbaccd342f108b7c6efb175181/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/b0bb0f660e4f3693342db55c1d56178b97ee3ceb/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.Artifacts generation1-convenience-client: true public-clients: true From bd40e55d35602319e714a5f2c86b3b6ee849fe09 Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Fri, 27 Oct 2023 14:45:42 +0800 Subject: [PATCH 2/6] Regenerate SDK code, remove creditial operation --- .github/CODEOWNERS | 2 +- .../CHANGELOG.md | 3 +- ...lytics.Synapse.Artifacts.netstandard2.0.cs | 130 +++------- .../AnalyticsSynapseArtifactsModelFactory.cs | 12 - .../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 ------------------ .../Models/Credential.Serialization.cs | 81 ------ .../src/Generated/Models/Credential.cs | 49 ---- .../CredentialListResponse.Serialization.cs | 61 ----- .../Models/CredentialListResponse.cs | 42 --- ...ManagedIdentityCredential.Serialization.cs | 141 ---------- .../Models/ManagedIdentityCredential.cs | 36 --- ...dentityCredentialResource.Serialization.cs | 81 ------ .../ManagedIdentityCredentialResource.cs | 40 --- ...ervicePrincipalCredential.Serialization.cs | 175 ------------- .../Models/ServicePrincipalCredential.cs | 52 ---- .../Models/UnknownCredential.Serialization.cs | 99 ------- .../src/Generated/Models/UnknownCredential.cs | 25 -- .../src/autorest.md | 2 +- 23 files changed, 34 insertions(+), 1860 deletions(-) delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialClient.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialDeleteOperation.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialRestClient.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsClient.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsCreateOrUpdateOperation.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsRestClient.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.Serialization.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs delete 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/UnknownCredential.Serialization.cs delete mode 100644 sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ea1c988661461..abdcbd5736c9a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -774,7 +774,7 @@ # ServiceLabel: %Synapse %Service Attention # PRLabel: %Synapse -/sdk/synapse/ @wonner @yanjungao718 @annelo-msft +/sdk/synapse/ @wonner @yanjungao718 @annelo-msft @kevinzz6 # PRLabel: %Tables /sdk/tables/ @christothes diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index 89b8219a9a03d..404eee749d47c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -1,7 +1,6 @@ # Release History -## 1.0.0-preview.19 (2023-11-07) -- new apis of Create/Get/Delete for Credential +## 1.0.0-preview.19 (2023-10-30) - Fix runNotebook sessionId from int to string - Fix placeholder links causing 404s - Sync expression Support From DataFactory To Synapse 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 3eec82cea47b2..21f9f5014a95f 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 @@ -1119,7 +1119,7 @@ public AmazonRdsForSqlServerSource() { } public object ProduceAdditionalTypes { get { throw null; } set { } } public object SqlReaderQuery { get { throw null; } set { } } public object SqlReaderStoredProcedureName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } } public partial class AmazonRdsForSqlServerTableDataset : Azure.Analytics.Synapse.Artifacts.Models.Dataset { @@ -1182,7 +1182,7 @@ public partial class AmazonS3ReadSettings : Azure.Analytics.Synapse.Artifacts.Mo { public AmazonS3ReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object ModifiedDatetimeEnd { get { throw null; } set { } } public object ModifiedDatetimeStart { get { throw null; } set { } } @@ -1252,10 +1252,10 @@ public static partial class AnalyticsSynapseArtifactsModelFactory public static Azure.Analytics.Synapse.Artifacts.Models.Resource Resource(string id = null, string name = null, string type = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookError RunNotebookError(string ename = null, string evalue = null, System.Collections.Generic.IEnumerable traceback = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookResponse RunNotebookResponse(string message = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookResult result = null) { throw null; } - public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookResult RunNotebookResult(string runId = null, string runStatus = null, string lastCheckedOn = null, long? sessionId = default(long?), string sparkPool = null, object sessionDetail = null, string exitValue = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookError error = null) { throw null; } - public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshot RunNotebookSnapshot(string exitValue = null, string id = null, string notebook = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSparkSessionOptions sessionOptions = null, bool? honorSessionTimeToLive = default(bool?), long? sessionId = default(long?), string sparkPool = null, System.Collections.Generic.IReadOnlyDictionary parameters = null, Azure.Analytics.Synapse.Artifacts.Models.NotebookResource notebookContent = null) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookResult RunNotebookResult(string runId = null, string runStatus = null, string lastCheckedOn = null, string sessionId = null, string sparkPool = null, object sessionDetail = null, string exitValue = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookError error = null) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshot RunNotebookSnapshot(string exitValue = null, string id = null, string notebook = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSparkSessionOptions sessionOptions = null, bool? honorSessionTimeToLive = default(bool?), string sessionId = null, string sparkPool = null, System.Collections.Generic.IReadOnlyDictionary parameters = null, Azure.Analytics.Synapse.Artifacts.Models.NotebookResource notebookContent = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshotResponse RunNotebookSnapshotResponse(string message = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshotResult result = null) { throw null; } - public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshotResult RunNotebookSnapshotResult(Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshot snapshot = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookError error = null, string runId = null, string runStatus = null, string lastCheckedOn = null, long? sessionId = default(long?), string sparkPool = null) { throw null; } + public static Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshotResult RunNotebookSnapshotResult(Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshot snapshot = null, Azure.Analytics.Synapse.Artifacts.Models.RunNotebookError error = null, string runId = null, string runStatus = null, string lastCheckedOn = null, string sessionId = null, string sparkPool = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.ScheduleTrigger ScheduleTrigger(string description = null, Azure.Analytics.Synapse.Artifacts.Models.TriggerRuntimeState? runtimeState = default(Azure.Analytics.Synapse.Artifacts.Models.TriggerRuntimeState?), System.Collections.Generic.IEnumerable annotations = null, System.Collections.Generic.IDictionary additionalProperties = null, System.Collections.Generic.IEnumerable pipelines = null, Azure.Analytics.Synapse.Artifacts.Models.ScheduleTriggerRecurrence recurrence = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.SparkBatchJob SparkBatchJob(Azure.Analytics.Synapse.Artifacts.Models.SparkBatchJobState livyInfo = null, string name = null, string workspaceName = null, string sparkPoolName = null, string submitterName = null, string submitterId = null, string artifactId = null, Azure.Analytics.Synapse.Artifacts.Models.SparkJobType? jobType = default(Azure.Analytics.Synapse.Artifacts.Models.SparkJobType?), Azure.Analytics.Synapse.Artifacts.Models.SparkBatchJobResultType? result = default(Azure.Analytics.Synapse.Artifacts.Models.SparkBatchJobResultType?), Azure.Analytics.Synapse.Artifacts.Models.SparkScheduler scheduler = null, Azure.Analytics.Synapse.Artifacts.Models.SparkServicePlugin plugin = null, System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IReadOnlyDictionary tags = null, int id = 0, string appId = null, System.Collections.Generic.IReadOnlyDictionary appInfo = null, Azure.Analytics.Synapse.Artifacts.Models.LivyStates? state = default(Azure.Analytics.Synapse.Artifacts.Models.LivyStates?), System.Collections.Generic.IEnumerable logLines = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.SparkBatchJobState SparkBatchJobState(System.DateTimeOffset? notStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? startingAt = default(System.DateTimeOffset?), System.DateTimeOffset? runningAt = default(System.DateTimeOffset?), System.DateTimeOffset? deadAt = default(System.DateTimeOffset?), System.DateTimeOffset? successAt = default(System.DateTimeOffset?), System.DateTimeOffset? terminatedAt = default(System.DateTimeOffset?), System.DateTimeOffset? recoveringAt = default(System.DateTimeOffset?), string currentState = null, Azure.Analytics.Synapse.Artifacts.Models.SparkRequest jobCreationRequest = null) { throw null; } @@ -1455,7 +1455,7 @@ public partial class AzureBlobStorageReadSettings : Azure.Analytics.Synapse.Arti { public AzureBlobStorageReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object ModifiedDatetimeEnd { get { throw null; } set { } } public object ModifiedDatetimeStart { get { throw null; } set { } } @@ -1664,7 +1664,7 @@ public partial class AzureFileStorageReadSettings : Azure.Analytics.Synapse.Arti { public AzureFileStorageReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object ModifiedDatetimeEnd { get { throw null; } set { } } public object ModifiedDatetimeStart { get { throw null; } set { } } @@ -1946,7 +1946,7 @@ public AzureSqlSink() { } public object PreCopyScript { get { throw null; } set { } } public object SqlWriterStoredProcedureName { get { throw null; } set { } } public object SqlWriterTableType { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } public object StoredProcedureTableTypeParameterName { get { throw null; } set { } } public object TableOption { get { throw null; } set { } } } @@ -1959,7 +1959,7 @@ public AzureSqlSource() { } public object ProduceAdditionalTypes { get { throw null; } set { } } public object SqlReaderQuery { get { throw null; } set { } } public object SqlReaderStoredProcedureName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } } public partial class AzureSqlTableDataset : Azure.Analytics.Synapse.Artifacts.Models.Dataset { @@ -3372,7 +3372,7 @@ public partial class FileServerReadSettings : Azure.Analytics.Synapse.Artifacts. { public FileServerReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileFilter { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object ModifiedDatetimeEnd { get { throw null; } set { } } @@ -3464,11 +3464,11 @@ public partial class FtpReadSettings : Azure.Analytics.Synapse.Artifacts.Models. public FtpReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } public object DisableChunking { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object PartitionRootPath { get { throw null; } set { } } public object Recursive { get { throw null; } set { } } - public bool? UseBinaryTransfer { get { throw null; } set { } } + public object UseBinaryTransfer { get { throw null; } set { } } public object WildcardFileName { get { throw null; } set { } } public object WildcardFolderPath { get { throw null; } set { } } } @@ -3627,7 +3627,7 @@ public partial class GoogleCloudStorageReadSettings : Azure.Analytics.Synapse.Ar { public GoogleCloudStorageReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object ModifiedDatetimeEnd { get { throw null; } set { } } public object ModifiedDatetimeStart { get { throw null; } set { } } @@ -3723,7 +3723,7 @@ public partial class HdfsReadSettings : Azure.Analytics.Synapse.Artifacts.Models public HdfsReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.DistcpSettings DistcpSettings { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object ModifiedDatetimeEnd { get { throw null; } set { } } public object ModifiedDatetimeStart { get { throw null; } set { } } @@ -4006,8 +4006,9 @@ public HttpLinkedService(object url) { } public partial class HttpReadSettings : Azure.Analytics.Synapse.Artifacts.Models.StoreReadSettings { public HttpReadSettings() { } + public object AdditionalColumns { get { throw null; } set { } } public object AdditionalHeaders { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object PartitionRootPath { get { throw null; } set { } } public object RequestBody { get { throw null; } set { } } public object RequestMethod { get { throw null; } set { } } @@ -6113,7 +6114,7 @@ internal RunNotebookResult() { } public string RunId { get { throw null; } } public string RunStatus { get { throw null; } } public object SessionDetail { get { throw null; } } - public long? SessionId { get { throw null; } } + public string SessionId { get { throw null; } } public string SparkPool { get { throw null; } } } public partial class RunNotebookSnapshot @@ -6125,7 +6126,7 @@ internal RunNotebookSnapshot() { } public string Notebook { get { throw null; } } public Azure.Analytics.Synapse.Artifacts.Models.NotebookResource NotebookContent { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Parameters { get { throw null; } } - public long? SessionId { get { throw null; } } + public string SessionId { get { throw null; } } public Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSparkSessionOptions SessionOptions { get { throw null; } } public string SparkPool { get { throw null; } } } @@ -6142,7 +6143,7 @@ internal RunNotebookSnapshotResult() { } public string LastCheckedOn { get { throw null; } } public string RunId { get { throw null; } } public string RunStatus { get { throw null; } } - public long? SessionId { get { throw null; } } + public string SessionId { get { throw null; } } public Azure.Analytics.Synapse.Artifacts.Models.RunNotebookSnapshot Snapshot { get { throw null; } } public string SparkPool { get { throw null; } } } @@ -6477,25 +6478,6 @@ public SapHanaLinkedService(object server) { } public object Server { get { throw null; } set { } } public object UserName { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SapHanaPartitionOption : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SapHanaPartitionOption(string value) { throw null; } - public static Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption None { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption PhysicalPartitionsOfTable { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption SapHanaDynamicRange { get { throw null; } } - public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption left, Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption right) { throw null; } - public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption (string value) { throw null; } - public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption left, Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption right) { throw null; } - public override string ToString() { throw null; } - } public partial class SapHanaPartitionSettings { public SapHanaPartitionSettings() { } @@ -6505,7 +6487,7 @@ public partial class SapHanaSource : Azure.Analytics.Synapse.Artifacts.Models.Ta { public SapHanaSource() { } public object PacketSize { get { throw null; } set { } } - public Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionOption? PartitionOption { get { throw null; } set { } } + public object PartitionOption { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SapHanaPartitionSettings PartitionSettings { get { throw null; } set { } } public object Query { get { throw null; } set { } } } @@ -6601,28 +6583,6 @@ public SapTableLinkedService() { } public object SystemNumber { get { throw null; } set { } } public object UserName { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SapTablePartitionOption : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SapTablePartitionOption(string value) { throw null; } - public static Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption None { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption PartitionOnCalendarDate { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption PartitionOnCalendarMonth { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption PartitionOnCalendarYear { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption PartitionOnInt { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption PartitionOnTime { get { throw null; } } - public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption left, Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption right) { throw null; } - public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption (string value) { throw null; } - public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption left, Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption right) { throw null; } - public override string ToString() { throw null; } - } public partial class SapTablePartitionSettings { public SapTablePartitionSettings() { } @@ -6641,7 +6601,7 @@ public partial class SapTableSource : Azure.Analytics.Synapse.Artifacts.Models.T public SapTableSource() { } public object BatchSize { get { throw null; } set { } } public object CustomRfcReadTableFunctionModule { get { throw null; } set { } } - public Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionOption? PartitionOption { get { throw null; } set { } } + public object PartitionOption { get { throw null; } set { } } public Azure.Analytics.Synapse.Artifacts.Models.SapTablePartitionSettings PartitionSettings { get { throw null; } set { } } public object RfcTableFields { get { throw null; } set { } } public object RfcTableOptions { get { throw null; } set { } } @@ -6696,6 +6656,7 @@ public partial class ScriptActivity : Azure.Analytics.Synapse.Artifacts.Models.E { public ScriptActivity(string name) : base (default(string)) { } public Azure.Analytics.Synapse.Artifacts.Models.ScriptActivityTypePropertiesLogSettings LogSettings { get { throw null; } set { } } + public object ScriptBlockExecutionTimeout { get { throw null; } set { } } public System.Collections.Generic.IList Scripts { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -6906,7 +6867,7 @@ public partial class SftpReadSettings : Azure.Analytics.Synapse.Artifacts.Models public SftpReadSettings() { } public object DeleteFilesAfterCompletion { get { throw null; } set { } } public object DisableChunking { get { throw null; } set { } } - public bool? EnablePartitionDiscovery { get { throw null; } set { } } + public object EnablePartitionDiscovery { get { throw null; } set { } } public object FileListPath { get { throw null; } set { } } public object ModifiedDatetimeEnd { get { throw null; } set { } } public object ModifiedDatetimeStart { get { throw null; } set { } } @@ -7439,7 +7400,7 @@ public SqlMISink() { } public object PreCopyScript { get { throw null; } set { } } public object SqlWriterStoredProcedureName { get { throw null; } set { } } public object SqlWriterTableType { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } public object StoredProcedureTableTypeParameterName { get { throw null; } set { } } public object TableOption { get { throw null; } set { } } } @@ -7452,7 +7413,7 @@ public SqlMISource() { } public object ProduceAdditionalTypes { get { throw null; } set { } } public object SqlReaderQuery { get { throw null; } set { } } public object SqlReaderStoredProcedureName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } } public partial class SqlPartitionSettings { @@ -7509,7 +7470,7 @@ public partial class SqlPoolStoredProcedureActivity : Azure.Analytics.Synapse.Ar public SqlPoolStoredProcedureActivity(string name, Azure.Analytics.Synapse.Artifacts.Models.SqlPoolReference sqlPool, object storedProcedureName) : base (default(string)) { } public Azure.Analytics.Synapse.Artifacts.Models.SqlPoolReference SqlPool { get { throw null; } set { } } public object StoredProcedureName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } } public partial class SqlScript { @@ -7581,7 +7542,7 @@ public SqlServerSink() { } public object PreCopyScript { get { throw null; } set { } } public object SqlWriterStoredProcedureName { get { throw null; } set { } } public object SqlWriterTableType { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } public object StoredProcedureTableTypeParameterName { get { throw null; } set { } } public object TableOption { get { throw null; } set { } } } @@ -7594,7 +7555,7 @@ public SqlServerSource() { } public object ProduceAdditionalTypes { get { throw null; } set { } } public object SqlReaderQuery { get { throw null; } set { } } public object SqlReaderStoredProcedureName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } } public partial class SqlServerStoredProcedureActivity : Azure.Analytics.Synapse.Artifacts.Models.ExecutionActivity { @@ -7615,7 +7576,7 @@ public SqlSink() { } public object PreCopyScript { get { throw null; } set { } } public object SqlWriterStoredProcedureName { get { throw null; } set { } } public object SqlWriterTableType { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } public object StoredProcedureTableTypeParameterName { get { throw null; } set { } } public object TableOption { get { throw null; } set { } } } @@ -7627,7 +7588,7 @@ public SqlSource() { } public Azure.Analytics.Synapse.Artifacts.Models.SqlPartitionSettings PartitionSettings { get { throw null; } set { } } public object SqlReaderQuery { get { throw null; } set { } } public object SqlReaderStoredProcedureName { get { throw null; } set { } } - public System.Collections.Generic.IDictionary StoredProcedureParameters { get { throw null; } } + public object StoredProcedureParameters { get { throw null; } set { } } } public partial class SquareLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { @@ -7777,35 +7738,6 @@ public partial class StartDataFlowDebugSessionResponse public StartDataFlowDebugSessionResponse() { } public string JobVersion { get { throw null; } set { } } } - public partial class StoredProcedureParameter - { - public StoredProcedureParameter() { } - public Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType? Type { get { throw null; } set { } } - public object Value { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct StoredProcedureParameterType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public StoredProcedureParameterType(string value) { throw null; } - public static Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType Boolean { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType Date { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType Decimal { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType Guid { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType Int { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType Int64 { get { throw null; } } - public static Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType String { get { throw null; } } - public bool Equals(Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType left, Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType right) { throw null; } - public static implicit operator Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType (string value) { throw null; } - public static bool operator !=(Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType left, Azure.Analytics.Synapse.Artifacts.Models.StoredProcedureParameterType right) { throw null; } - public override string ToString() { throw null; } - } public partial class StoreReadSettings { public StoreReadSettings() { } @@ -8348,7 +8280,7 @@ public WebActivityAuthentication(string type) { } public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Pfx { get { throw null; } set { } } public object Resource { get { throw null; } set { } } public string Type { get { throw null; } set { } } - public string Username { get { throw null; } set { } } + public object Username { get { throw null; } set { } } public object UserTenant { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] 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 f369493c3c992..ce62bb82a2063 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs @@ -999,18 +999,6 @@ 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/CredentialClient.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialClient.cs deleted file mode 100644 index a49cea9bf37b1..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialClient.cs +++ /dev/null @@ -1,152 +0,0 @@ -// 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 deleted file mode 100644 index f985d7a64fb48..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialDeleteOperation.cs +++ /dev/null @@ -1,62 +0,0 @@ -// 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 deleted file mode 100644 index df5a6b5223445..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialRestClient.cs +++ /dev/null @@ -1,181 +0,0 @@ -// 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 deleted file mode 100644 index 5560bf8afbde4..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsClient.cs +++ /dev/null @@ -1,145 +0,0 @@ -// 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 deleted file mode 100644 index 1dc747a07f05e..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsCreateOrUpdateOperation.cs +++ /dev/null @@ -1,82 +0,0 @@ -// 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 deleted file mode 100644 index 4cc85f1a83032..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/CredentialsRestClient.cs +++ /dev/null @@ -1,241 +0,0 @@ -// 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/Models/Credential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.Serialization.cs deleted file mode 100644 index a19757d278047..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.Serialization.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - [JsonConverter(typeof(CredentialConverter))] - public partial class Credential : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type); - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsCollectionDefined(Annotations)) - { - writer.WritePropertyName("annotations"u8); - writer.WriteStartArray(); - foreach (var item in Annotations) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - } - foreach (var item in AdditionalProperties) - { - writer.WritePropertyName(item.Key); - writer.WriteObjectValue(item.Value); - } - writer.WriteEndObject(); - } - - internal static Credential DeserializeCredential(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - if (element.TryGetProperty("type", out JsonElement discriminator)) - { - switch (discriminator.GetString()) - { - case "ServicePrincipal": return ServicePrincipalCredential.DeserializeServicePrincipalCredential(element); - case "ManagedIdentity": return ManagedIdentityCredential.DeserializeManagedIdentityCredential(element); - } - } - return UnknownCredential.DeserializeUnknownCredential(element); - } - - internal partial class CredentialConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, Credential model, JsonSerializerOptions options) - { - writer.WriteObjectValue(model); - } - public override Credential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeCredential(document.RootElement); - } - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs deleted file mode 100644 index c507ea3938038..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Credential.cs +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - /// - /// Azure Synapse nested object which contains the information and credential which can be used to connect with related store or compute resource. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public partial class Credential - { - /// Initializes a new instance of Credential. - public Credential() - { - Annotations = new ChangeTrackingList(); - AdditionalProperties = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of Credential. - /// Type of credential. - /// Credential description. - /// List of tags that can be used for describing the Credential. - /// Additional Properties. - internal Credential(string type, string description, IList annotations, IDictionary additionalProperties) - { - Type = type; - Description = description; - Annotations = annotations; - AdditionalProperties = additionalProperties; - } - - /// Type of credential. - internal string Type { get; set; } - /// Credential description. - public string Description { get; set; } - /// List of tags that can be used for describing the Credential. - public IList Annotations { get; } - /// Additional Properties. - public IDictionary AdditionalProperties { get; } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs deleted file mode 100644 index 433b06bfdafaf..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.Serialization.cs +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Text.Json.Serialization; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - [JsonConverter(typeof(CredentialListResponseConverter))] - internal partial class CredentialListResponse - { - internal static CredentialListResponse DeserializeCredentialListResponse(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ManagedIdentityCredentialResource.DeserializeManagedIdentityCredentialResource(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new CredentialListResponse(value, nextLink.Value); - } - - internal partial class CredentialListResponseConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, CredentialListResponse model, JsonSerializerOptions options) - { - throw new NotImplementedException(); - } - public override CredentialListResponse Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeCredentialListResponse(document.RootElement); - } - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs deleted file mode 100644 index 049ae86aacf58..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CredentialListResponse.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - /// A list of credential resources. - internal partial class CredentialListResponse - { - /// Initializes a new instance of CredentialListResponse. - /// List of credentials. - /// is null. - internal CredentialListResponse(IEnumerable value) - { - Argument.AssertNotNull(value, nameof(value)); - - Value = value.ToList(); - } - - /// Initializes a new instance of CredentialListResponse. - /// List of credentials. - /// The link to the next page of results, if any remaining results exist. - internal CredentialListResponse(IReadOnlyList value, string nextLink) - { - Value = value; - NextLink = nextLink; - } - - /// List of credentials. - public IReadOnlyList Value { get; } - /// The link to the next page of results, if any remaining results exist. - public string NextLink { get; } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs deleted file mode 100644 index c1988a6dcf1bf..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.Serialization.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Text.Json.Serialization; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - [JsonConverter(typeof(ManagedIdentityCredentialConverter))] - public partial class ManagedIdentityCredential : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type); - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsCollectionDefined(Annotations)) - { - writer.WritePropertyName("annotations"u8); - writer.WriteStartArray(); - foreach (var item in Annotations) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - } - writer.WritePropertyName("typeProperties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(ResourceId)) - { - writer.WritePropertyName("resourceId"u8); - writer.WriteStringValue(ResourceId); - } - writer.WriteEndObject(); - foreach (var item in AdditionalProperties) - { - writer.WritePropertyName(item.Key); - writer.WriteObjectValue(item.Value); - } - writer.WriteEndObject(); - } - - internal static ManagedIdentityCredential DeserializeManagedIdentityCredential(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string type = default; - Optional description = default; - Optional> annotations = default; - Optional resourceId = default; - IDictionary additionalProperties = default; - Dictionary additionalPropertiesDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("type"u8)) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("description"u8)) - { - description = property.Value.GetString(); - continue; - } - if (property.NameEquals("annotations"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetObject()); - } - } - annotations = array; - continue; - } - if (property.NameEquals("typeProperties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("resourceId"u8)) - { - resourceId = property0.Value.GetString(); - continue; - } - } - continue; - } - additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); - } - additionalProperties = additionalPropertiesDictionary; - return new ManagedIdentityCredential(type, description.Value, Optional.ToList(annotations), additionalProperties, resourceId.Value); - } - - internal partial class ManagedIdentityCredentialConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, ManagedIdentityCredential model, JsonSerializerOptions options) - { - writer.WriteObjectValue(model); - } - public override ManagedIdentityCredential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeManagedIdentityCredential(document.RootElement); - } - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs deleted file mode 100644 index 6a5738d499513..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredential.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - /// Managed identity credential. - public partial class ManagedIdentityCredential : Credential - { - /// Initializes a new instance of ManagedIdentityCredential. - public ManagedIdentityCredential() - { - Type = "ManagedIdentity"; - } - - /// Initializes a new instance of ManagedIdentityCredential. - /// Type of credential. - /// Credential description. - /// List of tags that can be used for describing the Credential. - /// Additional Properties. - /// The resource id of user assigned managed identity. - internal ManagedIdentityCredential(string type, string description, IList annotations, IDictionary additionalProperties, string resourceId) : base(type, description, annotations, additionalProperties) - { - ResourceId = resourceId; - Type = type ?? "ManagedIdentity"; - } - - /// The resource id of user assigned managed identity. - public string ResourceId { get; set; } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs deleted file mode 100644 index edaf76be2dc52..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.Serialization.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Text.Json; -using System.Text.Json.Serialization; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - [JsonConverter(typeof(ManagedIdentityCredentialResourceConverter))] - public partial class ManagedIdentityCredentialResource : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties); - writer.WriteEndObject(); - } - - internal static ManagedIdentityCredentialResource DeserializeManagedIdentityCredentialResource(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ManagedIdentityCredential properties = default; - Optional etag = default; - Optional id = default; - Optional name = default; - Optional type = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - properties = ManagedIdentityCredential.DeserializeManagedIdentityCredential(property.Value); - continue; - } - if (property.NameEquals("etag"u8)) - { - etag = property.Value.GetString(); - continue; - } - if (property.NameEquals("id"u8)) - { - id = property.Value.GetString(); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = property.Value.GetString(); - continue; - } - } - return new ManagedIdentityCredentialResource(id.Value, name.Value, type.Value, etag.Value, properties); - } - - internal partial class ManagedIdentityCredentialResourceConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, ManagedIdentityCredentialResource model, JsonSerializerOptions options) - { - writer.WriteObjectValue(model); - } - public override ManagedIdentityCredentialResource Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeManagedIdentityCredentialResource(document.RootElement); - } - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs deleted file mode 100644 index b95246cefaec8..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ManagedIdentityCredentialResource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - /// Credential resource type. - public partial class ManagedIdentityCredentialResource : SubResource - { - /// Initializes a new instance of ManagedIdentityCredentialResource. - /// Managed Identity Credential properties. - /// is null. - public ManagedIdentityCredentialResource(ManagedIdentityCredential properties) - { - Argument.AssertNotNull(properties, nameof(properties)); - - Properties = properties; - } - - /// 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. - internal ManagedIdentityCredentialResource(string id, string name, string type, string etag, ManagedIdentityCredential properties) : base(id, name, type, etag) - { - Properties = properties; - } - - /// Managed Identity Credential properties. - public ManagedIdentityCredential Properties { get; set; } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs deleted file mode 100644 index 5c0de5cfb14d6..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.Serialization.cs +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Text.Json; -using System.Text.Json.Serialization; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - [JsonConverter(typeof(ServicePrincipalCredentialConverter))] - public partial class ServicePrincipalCredential : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type); - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsCollectionDefined(Annotations)) - { - writer.WritePropertyName("annotations"u8); - writer.WriteStartArray(); - foreach (var item in Annotations) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - } - writer.WritePropertyName("typeProperties"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(ServicePrincipalId)) - { - writer.WritePropertyName("servicePrincipalId"u8); - writer.WriteObjectValue(ServicePrincipalId); - } - if (Optional.IsDefined(ServicePrincipalKey)) - { - writer.WritePropertyName("servicePrincipalKey"u8); - writer.WriteObjectValue(ServicePrincipalKey); - } - if (Optional.IsDefined(Tenant)) - { - writer.WritePropertyName("tenant"u8); - writer.WriteObjectValue(Tenant); - } - writer.WriteEndObject(); - foreach (var item in AdditionalProperties) - { - writer.WritePropertyName(item.Key); - writer.WriteObjectValue(item.Value); - } - writer.WriteEndObject(); - } - - internal static ServicePrincipalCredential DeserializeServicePrincipalCredential(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string type = default; - Optional description = default; - Optional> annotations = default; - Optional servicePrincipalId = default; - Optional servicePrincipalKey = default; - Optional tenant = default; - IDictionary additionalProperties = default; - Dictionary additionalPropertiesDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("type"u8)) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("description"u8)) - { - description = property.Value.GetString(); - continue; - } - if (property.NameEquals("annotations"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetObject()); - } - } - annotations = array; - continue; - } - if (property.NameEquals("typeProperties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("servicePrincipalId"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - servicePrincipalId = property0.Value.GetObject(); - continue; - } - if (property0.NameEquals("servicePrincipalKey"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - servicePrincipalKey = SecretBase.DeserializeSecretBase(property0.Value); - continue; - } - if (property0.NameEquals("tenant"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - tenant = property0.Value.GetObject(); - continue; - } - } - continue; - } - additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); - } - additionalProperties = additionalPropertiesDictionary; - return new ServicePrincipalCredential(type, description.Value, Optional.ToList(annotations), additionalProperties, servicePrincipalId.Value, servicePrincipalKey.Value, tenant.Value); - } - - internal partial class ServicePrincipalCredentialConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, ServicePrincipalCredential model, JsonSerializerOptions options) - { - writer.WriteObjectValue(model); - } - public override ServicePrincipalCredential Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeServicePrincipalCredential(document.RootElement); - } - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.cs deleted file mode 100644 index 0c2a8eb91900d..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ServicePrincipalCredential.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - /// Service principal credential. - public partial class ServicePrincipalCredential : Credential - { - /// Initializes a new instance of ServicePrincipalCredential. - public ServicePrincipalCredential() - { - Type = "ServicePrincipal"; - } - - /// Initializes a new instance of ServicePrincipalCredential. - /// Type of credential. - /// Credential description. - /// List of tags that can be used for describing the Credential. - /// Additional Properties. - /// The app ID of the service principal used to authenticate. - /// - /// The key of the service principal used to authenticate. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// The ID of the tenant to which the service principal belongs. - internal ServicePrincipalCredential(string type, string description, IList annotations, IDictionary additionalProperties, object servicePrincipalId, SecretBase servicePrincipalKey, object tenant) : base(type, description, annotations, additionalProperties) - { - ServicePrincipalId = servicePrincipalId; - ServicePrincipalKey = servicePrincipalKey; - Tenant = tenant; - Type = type ?? "ServicePrincipal"; - } - - /// The app ID of the service principal used to authenticate. - public object ServicePrincipalId { get; set; } - /// - /// The key of the service principal used to authenticate. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public SecretBase ServicePrincipalKey { get; set; } - /// The ID of the tenant to which the service principal belongs. - public object Tenant { get; set; } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.Serialization.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.Serialization.cs deleted file mode 100644 index 2d77c74560654..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.Serialization.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - internal partial class UnknownCredential : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"u8); - writer.WriteStringValue(Type); - if (Optional.IsDefined(Description)) - { - writer.WritePropertyName("description"u8); - writer.WriteStringValue(Description); - } - if (Optional.IsCollectionDefined(Annotations)) - { - writer.WritePropertyName("annotations"u8); - writer.WriteStartArray(); - foreach (var item in Annotations) - { - if (item == null) - { - writer.WriteNullValue(); - continue; - } - writer.WriteObjectValue(item); - } - writer.WriteEndArray(); - } - foreach (var item in AdditionalProperties) - { - writer.WritePropertyName(item.Key); - writer.WriteObjectValue(item.Value); - } - writer.WriteEndObject(); - } - - internal static UnknownCredential DeserializeUnknownCredential(JsonElement element) - { - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string type = "Unknown"; - Optional description = default; - Optional> annotations = default; - IDictionary additionalProperties = default; - Dictionary additionalPropertiesDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("type"u8)) - { - type = property.Value.GetString(); - continue; - } - if (property.NameEquals("description"u8)) - { - description = property.Value.GetString(); - continue; - } - if (property.NameEquals("annotations"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - if (item.ValueKind == JsonValueKind.Null) - { - array.Add(null); - } - else - { - array.Add(item.GetObject()); - } - } - annotations = array; - continue; - } - additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); - } - additionalProperties = additionalPropertiesDictionary; - return new UnknownCredential(type, description.Value, Optional.ToList(annotations), additionalProperties); - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs deleted file mode 100644 index df3c48e9b7a9c..0000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/UnknownCredential.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; - -namespace Azure.Analytics.Synapse.Artifacts.Models -{ - /// The UnknownCredential. - internal partial class UnknownCredential : Credential - { - /// Initializes a new instance of UnknownCredential. - /// Type of credential. - /// Credential description. - /// List of tags that can be used for describing the Credential. - /// Additional Properties. - internal UnknownCredential(string type, string description, IList annotations, IDictionary additionalProperties) : base(type, description, annotations, additionalProperties) - { - Type = type ?? "Unknown"; - } - } -} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md index 7a5c607d4cd3f..4785cd71bd102 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-composite-v7 require: - - https://github.com/Azure/azure-rest-api-specs/blob/b0bb0f660e4f3693342db55c1d56178b97ee3ceb/specification/synapse/data-plane/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/5ae522bc106bf8609c6cb379e584aa3e0e2639f3/specification/synapse/data-plane/readme.md namespace: Azure.Analytics.Synapse.Artifacts generation1-convenience-client: true public-clients: true From 7edef4ad9785c75445a8f1f9ee773f958907a58f Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Fri, 27 Oct 2023 15:03:02 +0800 Subject: [PATCH 3/6] fix ci, remove code owner change --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index abdcbd5736c9a..ea1c988661461 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -774,7 +774,7 @@ # ServiceLabel: %Synapse %Service Attention # PRLabel: %Synapse -/sdk/synapse/ @wonner @yanjungao718 @annelo-msft @kevinzz6 +/sdk/synapse/ @wonner @yanjungao718 @annelo-msft # PRLabel: %Tables /sdk/tables/ @christothes From 34c89f5705f3d7f6ee707b49749226166abb820e Mon Sep 17 00:00:00 2001 From: pshao25 <97225342+pshao25@users.noreply.github.com> Date: Fri, 27 Oct 2023 16:28:38 +0800 Subject: [PATCH 4/6] update --- sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index 404eee749d47c..2490dcfc50b8d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.0-preview.19 (2023-10-30) +## 1.0.0-preview.19 (2023-11-07) - Fix runNotebook sessionId from int to string - Fix placeholder links causing 404s - Sync expression Support From DataFactory To Synapse From 1146d934f0b28c97ae99a877c725522f67054aea Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Fri, 27 Oct 2023 16:28:48 +0800 Subject: [PATCH 5/6] fix changelog error --- .../Azure.Analytics.Synapse.Artifacts/CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index 404eee749d47c..e2430c4db23cc 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -1,9 +1,9 @@ # Release History -## 1.0.0-preview.19 (2023-10-30) -- Fix runNotebook sessionId from int to string -- Fix placeholder links causing 404s -- Sync expression Support From DataFactory To Synapse +## 1.0.0-preview.19 (2023-11-07) +### Bugs Fixed +- Fix Error when deserializing sessionId in JSON ([#38040](https://github.com/Azure/azure-sdk-for-net/issues/38040)) +- Fix placeholder links causing 404s ([#26143](https://github.com/Azure/azure-sdk-for-net/issues/26143)) ## 1.0.0-preview.18 (2023-08-08) - Added `authenticationType`, `containerUri`, `sasUri` and `sasToken` properties to BlobService From 49eba865a0c8a9f209013711b85bb5493c981b9d Mon Sep 17 00:00:00 2001 From: kevinzz6 <632604666@qq.com> Date: Fri, 27 Oct 2023 17:00:39 +0800 Subject: [PATCH 6/6] Revert "fix changelog error" This reverts commit 1146d934f0b28c97ae99a877c725522f67054aea. --- .../Azure.Analytics.Synapse.Artifacts/CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md index e2430c4db23cc..404eee749d47c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/CHANGELOG.md @@ -1,9 +1,9 @@ # Release History -## 1.0.0-preview.19 (2023-11-07) -### Bugs Fixed -- Fix Error when deserializing sessionId in JSON ([#38040](https://github.com/Azure/azure-sdk-for-net/issues/38040)) -- Fix placeholder links causing 404s ([#26143](https://github.com/Azure/azure-sdk-for-net/issues/26143)) +## 1.0.0-preview.19 (2023-10-30) +- 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