From 85c0a9b558eb8a0264d82a97203f24de7d221030 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 11 Jul 2023 00:18:56 -0700 Subject: [PATCH] Update AutoRest C# version to 3.0.0-beta.20230710.3 (#37518) Co-authored-by: ArcturusZhang --- eng/ApiListing.exclude-attributes.txt | 6 + eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- ...rticals.AgriFood.Farming.netstandard2.0.cs | 2 +- ...AgriFoodFarmingClientBuilderExtensions.cs} | 2 +- ...Azure.AI.AnomalyDetector.netstandard2.0.cs | 30 ++-- ...AnomalyDetectorClientBuilderExtensions.cs} | 2 +- ...ry.cs => AIAnomalyDetectorModelFactory.cs} | 2 +- .../ConfigurationClientBuilderExtensions.cs | 4 +- .../ConversationAnalysisClientExtensions.cs | 2 +- .../src/QuestionAnsweringClientExtensions.cs | 2 +- .../src/QuestionAnsweringModelFactory.cs | 2 +- ...unication.CallAutomation.netstandard2.0.cs | 84 ++++----- ...ommunicationCallAutomationModelFactory.cs} | 2 +- ...ommunicationCallAutomationModelFactory.cs} | 3 +- .../ResultWithEventProcessorAsyncTests.cs | 8 +- .../Events/CallAutomationEventParserTests.cs | 50 +++--- ...munication.CallingServer.netstandard2.0.cs | 50 +++--- ...CommunicationCallingServerModelFactory.cs} | 2 +- ...CommunicationCallingServerModelFactory.cs} | 3 +- .../Events/CallAutomationEventParserTests.cs | 12 +- .../src/Models/ChatModelFactory.cs | 2 + ....Communication.JobRouter.netstandard2.0.cs | 20 +-- ... => CommunicationJobRouterModelFactory.cs} | 2 +- ... => CommunicationJobRouterModelFactory.cs} | 4 +- .../src/Models/PhoneNumbersModelFactory.cs | 2 +- .../src/Models/RoomsModelFactory.cs | 2 +- ...Communication.ShortCodes.netstandard2.0.cs | 8 +- ...=> CommunicationShortCodesModelFactory.cs} | 2 +- .../src/TemporarySuppression.cs | 2 +- .../ContainerRegistryModelFactory.Content.cs | 2 + .../Azure.AI.ContentSafety.netstandard2.0.cs | 24 +-- ...AIContentSafetyClientBuilderExtensions.cs} | 2 +- ...tory.cs => AIContentSafetyModelFactory.cs} | 2 +- ...zure.Developer.DevCenter.netstandard2.0.cs | 2 +- ...eloperDevCenterClientBuilderExtensions.cs} | 2 +- .../Azure.IoT.DeviceUpdate.netstandard2.0.cs | 2 +- ...IoTDeviceUpdateClientBuilderExtensions.cs} | 2 +- .../Customized/DigitalTwinsModelFactory.cs | 2 +- .../Customization/EventGridModelFactory.cs | 2 +- ...Insights.CancerProfiling.netstandard2.0.cs | 20 +-- ...CancerProfilingClientBuilderExtensions.cs} | 2 +- ...lthInsightsCancerProfilingModelFactory.cs} | 2 +- ...nsights.ClinicalMatching.netstandard2.0.cs | 22 +-- ...linicalMatchingClientBuilderExtensions.cs} | 2 +- ...thInsightsClinicalMatchingModelFactory.cs} | 2 +- .../Azure.IoT.Hub.Service.netstandard2.0.cs | 2 +- ...actory.cs => IoTHubServiceModelFactory.cs} | 2 +- .../src/KeyVaultAdministrationModelFactory.cs | 2 +- .../sharelink/Properties/AssemblyInfo.cs | 2 - sdk/keyvault/samples/sharelink/autorest.md | 1 + .../LoadTestingClientBuilderExtensions.cs | 14 ++ .../api/Azure.Maps.Routing.netstandard2.0.cs | 34 ++-- ...lFactory.cs => MapsRoutingModelFactory.cs} | 2 +- .../Azure.AI.MetricsAdvisor.netstandard2.0.cs | 1 + .../Generated/MetricsAdvisorModelFactory.cs | 29 ++++ ...ricsAdvisorRestAPIOpenAPIV2ModelFactory.cs | 160 ------------------ .../src/MetricsAdvisorModelFactory.cs | 4 +- ...ricsAdvisorRestAPIOpenAPIV2ModelFactory.cs | 9 - .../src/IngestionClientBuilderExtensions.cs | 2 +- .../src/Models/MonitorQueryModelFactory.cs | 1 + ...re.ResourceManager.MySql.netstandard2.0.cs | 2 +- ...=> ArmMySqlFlexibleServersModelFactory.cs} | 2 +- .../api/Azure.AI.OpenAI.netstandard2.0.cs | 4 +- ....cs => AIOpenAIClientBuilderExtensions.cs} | 2 +- ...odelFactory.cs => AIOpenAIModelFactory.cs} | 2 +- ...er.PaloAltoNetworks.Ngfw.netstandard2.0.cs | 2 +- ...=> ArmPaloAltoNetworksNgfwModelFactory.cs} | 2 +- ...sourceManager.PostgreSql.netstandard2.0.cs | 2 +- ...mPostgreSqlFlexibleServersModelFactory.cs} | 2 +- ...nalytics.Purview.Account.netstandard2.0.cs | 2 +- ...sPurviewAccountClientBuilderExtensions.cs} | 2 +- .../Customizations/TemporarySuppression.cs | 2 +- ...nalytics.Purview.Catalog.netstandard2.0.cs | 2 +- ...sPurviewCatalogClientBuilderExtensions.cs} | 2 +- ...alytics.Purview.Scanning.netstandard2.0.cs | 2 +- ...PurviewScanningClientBuilderExtensions.cs} | 2 +- ....Analytics.Purview.Share.netstandard2.0.cs | 2 +- ...icsPurviewShareClientBuilderExtensions.cs} | 2 +- ...nalytics.Purview.Sharing.netstandard2.0.cs | 2 +- ...sPurviewSharingClientBuilderExtensions.cs} | 2 +- ...lytics.Purview.Workflows.netstandard2.0.cs | 2 +- ...urviewWorkflowsClientBuilderExtensions.cs} | 2 +- .../api/Azure.Quantum.Jobs.netstandard2.0.cs | 2 +- ...lFactory.cs => QuantumJobsModelFactory.cs} | 2 +- .../Models/RemoteRenderingModelFactory.cs | 2 +- .../src/Models/SearchModelFactory.cs | 2 +- .../src/Models/BlobsModelFactory.cs | 2 +- .../src/Models/ShareModelFactory.cs | 2 +- .../src/Models/QueuesModelFactory.cs | 2 +- ...cs.Synapse.AccessControl.netstandard2.0.cs | 2 +- ...seAccessControlClientBuilderExtensions.cs} | 2 +- ...lytics.Synapse.Artifacts.netstandard2.0.cs | 38 ++--- ... AnalyticsSynapseArtifactsModelFactory.cs} | 2 +- ....ManagedPrivateEndpoints.netstandard2.0.cs | 12 +- ...pseManagedPrivateEndpointsModelFactory.cs} | 2 +- ...ytics.Synapse.Monitoring.netstandard2.0.cs | 2 +- ...AnalyticsSynapseMonitoringModelFactory.cs} | 2 +- ....Analytics.Synapse.Spark.netstandard2.0.cs | 34 ++-- ...s => AnalyticsSynapseSparkModelFactory.cs} | 2 +- .../src/TableModelFactory.cs | 4 +- ...e.IoT.TimeSeriesInsights.netstandard2.0.cs | 20 +-- ...s => IoTTimeSeriesInsightsModelFactory.cs} | 2 +- .../src/DocumentTranslationModelFactory.cs | 2 +- ...zure.AI.Translation.Text.netstandard2.0.cs | 4 +- .../TextTranslationClientBuilderExtensions.cs | 6 +- ...ry.cs => AITranslationTextModelFactory.cs} | 2 +- ...WebPubSubServiceClientBuilderExtensions.cs | 4 +- 108 files changed, 380 insertions(+), 495 deletions(-) rename sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/{FarmBeatsClientBuilderExtensions.cs => VerticalsAgriFoodFarmingClientBuilderExtensions.cs} (95%) rename sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/{AzureAIAnomalyDetectorClientBuilderExtensions.cs => AIAnomalyDetectorClientBuilderExtensions.cs} (96%) rename sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/{AzureAIAnomalyDetectorModelFactory.cs => AIAnomalyDetectorModelFactory.cs} (99%) rename sdk/communication/Azure.Communication.CallAutomation/src/Generated/{CallAutomationModelFactory.cs => CommunicationCallAutomationModelFactory.cs} (99%) rename sdk/communication/Azure.Communication.CallAutomation/src/Models/{CallAutomationModelFactory.cs => CommunicationCallAutomationModelFactory.cs} (98%) rename sdk/communication/Azure.Communication.CallingServer/src/Generated/{CallAutomationModelFactory.cs => CommunicationCallingServerModelFactory.cs} (99%) rename sdk/communication/Azure.Communication.CallingServer/src/Models/{CallAutomationModelFactory.cs => CommunicationCallingServerModelFactory.cs} (98%) rename sdk/communication/Azure.Communication.JobRouter/src/Generated/{RouterModelFactory.cs => CommunicationJobRouterModelFactory.cs} (99%) rename sdk/communication/Azure.Communication.JobRouter/src/Models/{RouterModelFactory.cs => CommunicationJobRouterModelFactory.cs} (90%) rename sdk/communication/Azure.Communication.ShortCodes/src/Generated/{ShortCodesNumbersModelFactory.cs => CommunicationShortCodesModelFactory.cs} (95%) rename sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/{AzureAIContentSafetyClientBuilderExtensions.cs => AIContentSafetyClientBuilderExtensions.cs} (96%) rename sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/{AzureAIContentSafetyModelFactory.cs => AIContentSafetyModelFactory.cs} (99%) rename sdk/devcenter/Azure.Developer.DevCenter/src/Generated/{DevCenterClientBuilderExtensions.cs => DeveloperDevCenterClientBuilderExtensions.cs} (98%) rename sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/{DeviceUpdateClientBuilderExtensions.cs => IoTDeviceUpdateClientBuilderExtensions.cs} (97%) rename sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/{AzureHealthInsightsCancerProfilingClientBuilderExtensions.cs => HealthInsightsCancerProfilingClientBuilderExtensions.cs} (95%) rename sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/{AzureHealthInsightsCancerProfilingModelFactory.cs => HealthInsightsCancerProfilingModelFactory.cs} (98%) rename sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/{AzureHealthInsightsClinicalMatchingClientBuilderExtensions.cs => HealthInsightsClinicalMatchingClientBuilderExtensions.cs} (95%) rename sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/{AzureHealthInsightsClinicalMatchingModelFactory.cs => HealthInsightsClinicalMatchingModelFactory.cs} (99%) rename sdk/iot/Azure.IoT.Hub.Service/src/Generated/{IotHubGatewayServiceAPIsModelFactory.cs => IoTHubServiceModelFactory.cs} (99%) create mode 100644 sdk/loadtestservice/Azure.Developer.LoadTesting/src/AutorestCustomizations/LoadTestingClientBuilderExtensions.cs rename sdk/maps/Azure.Maps.Routing/src/Generated/{RouteModelFactory.cs => MapsRoutingModelFactory.cs} (99%) create mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MetricsAdvisorModelFactory.cs delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs delete mode 100644 sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs rename sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/{ArmFlexibleServersModelFactory.cs => ArmMySqlFlexibleServersModelFactory.cs} (99%) rename sdk/openai/Azure.AI.OpenAI/src/Generated/{AzureAIOpenAIClientBuilderExtensions.cs => AIOpenAIClientBuilderExtensions.cs} (97%) rename sdk/openai/Azure.AI.OpenAI/src/Generated/{AzureAIOpenAIModelFactory.cs => AIOpenAIModelFactory.cs} (98%) rename sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/{ArmNgfwModelFactory.cs => ArmPaloAltoNetworksNgfwModelFactory.cs} (99%) rename sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/{ArmFlexibleServersModelFactory.cs => ArmPostgreSqlFlexibleServersModelFactory.cs} (99%) rename sdk/purview/Azure.Analytics.Purview.Account/src/Generated/{PurviewAccountClientBuilderExtensions.cs => AnalyticsPurviewAccountClientBuilderExtensions.cs} (95%) rename sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/{PurviewCatalogClientBuilderExtensions.cs => AnalyticsPurviewCatalogClientBuilderExtensions.cs} (95%) rename sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/{PurviewScanningServiceClientBuilderExtensions.cs => AnalyticsPurviewScanningClientBuilderExtensions.cs} (98%) rename sdk/purview/Azure.Analytics.Purview.Share/src/Generated/{PurviewShareClientBuilderExtensions.cs => AnalyticsPurviewShareClientBuilderExtensions.cs} (99%) rename sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/{PurviewShareClientBuilderExtensions.cs => AnalyticsPurviewSharingClientBuilderExtensions.cs} (98%) rename sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/{PurviewWorkflowServiceClientBuilderExtensions.cs => AnalyticsPurviewWorkflowsClientBuilderExtensions.cs} (95%) rename sdk/quantum/Azure.Quantum.Jobs/src/Generated/{QuantumModelFactory.cs => QuantumJobsModelFactory.cs} (99%) rename sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/{AccessControlClientBuilderExtensions.cs => AnalyticsSynapseAccessControlClientBuilderExtensions.cs} (97%) rename sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/{ArtifactsModelFactory.cs => AnalyticsSynapseArtifactsModelFactory.cs} (99%) rename sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/{ManagedPrivateEndpointsModelFactory.cs => AnalyticsSynapseManagedPrivateEndpointsModelFactory.cs} (97%) rename sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/{MonitoringModelFactory.cs => AnalyticsSynapseMonitoringModelFactory.cs} (97%) rename sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/{SparkModelFactory.cs => AnalyticsSynapseSparkModelFactory.cs} (99%) rename sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/{TimeSeriesInsightsModelFactory.cs => IoTTimeSeriesInsightsModelFactory.cs} (99%) rename sdk/translation/Azure.AI.Translation.Text/src/Generated/{AzureAITranslationTextModelFactory.cs => AITranslationTextModelFactory.cs} (99%) diff --git a/eng/ApiListing.exclude-attributes.txt b/eng/ApiListing.exclude-attributes.txt index ca9cc3794af3..4fbcb9b4f4bf 100644 --- a/eng/ApiListing.exclude-attributes.txt +++ b/eng/ApiListing.exclude-attributes.txt @@ -7,3 +7,9 @@ T:Azure.Core.CodeGenSuppressAttribute T:Azure.Core.CodeGenModelAttribute T:Azure.Core.CodeGenMemberAttribute T:Azure.Core.PropertyReferenceTypeAttribute +T:Azure.Core.CodeGenTypeAttribute +T:Azure.Core.CodeGenClientAttribute +T:Azure.Core.CodeGenMemberSerializationAttribute +T:Azure.Core.CodeGenMemberSerializationHooksAttribute +T:Azure.Core.CodeGenSuppressAttribute +T:Azure.Core.CodeGenSuppressTypeAttribute diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index aa4712d67a27..3af286a4d754 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -173,7 +173,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index fbf11f7c18fb..fc9dd67fc80f 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20230710.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20230710.3" } } diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs index 7265dbddfb73..f42f382da590 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs @@ -634,7 +634,7 @@ protected Zones() { } } namespace Microsoft.Extensions.Azure { - public static partial class FarmBeatsClientBuilderExtensions + public static partial class VerticalsAgriFoodFarmingClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddFarmBeatsClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddFarmBeatsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmBeatsClientBuilderExtensions.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/VerticalsAgriFoodFarmingClientBuilderExtensions.cs similarity index 95% rename from sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmBeatsClientBuilderExtensions.cs rename to sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/VerticalsAgriFoodFarmingClientBuilderExtensions.cs index e50f089bca5a..20fb1bb0f88b 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmBeatsClientBuilderExtensions.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/VerticalsAgriFoodFarmingClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class FarmBeatsClientBuilderExtensions + public static partial class VerticalsAgriFoodFarmingClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs index aac6e84f5bf0..e27270a0575f 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.netstandard2.0.cs @@ -1,5 +1,19 @@ namespace Azure.AI.AnomalyDetector { + public static partial class AIAnomalyDetectorModelFactory + { + public static Azure.AI.AnomalyDetector.AnomalyDetectionModel AnomalyDetectionModel(System.Guid modelId = default(System.Guid), System.DateTimeOffset createdTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedTime = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.ModelInfo modelInfo = null) { throw null; } + public static Azure.AI.AnomalyDetector.AnomalyInterpretation AnomalyInterpretation(string variable = null, float? contributionScore = default(float?), Azure.AI.AnomalyDetector.CorrelationChanges correlationChanges = null) { throw null; } + public static Azure.AI.AnomalyDetector.AnomalyState AnomalyState(System.DateTimeOffset timestamp = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.AnomalyValue value = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } + public static Azure.AI.AnomalyDetector.AnomalyValue AnomalyValue(bool isAnomaly = false, float severity = 0f, float score = 0f, System.Collections.Generic.IEnumerable interpretation = null) { throw null; } + public static Azure.AI.AnomalyDetector.CorrelationChanges CorrelationChanges(System.Collections.Generic.IEnumerable changedVariables = null) { throw null; } + public static Azure.AI.AnomalyDetector.ModelInfo ModelInfo(System.Uri dataSource = null, Azure.AI.AnomalyDetector.DataSchema? dataSchema = default(Azure.AI.AnomalyDetector.DataSchema?), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), string displayName = null, int? slidingWindow = default(int?), Azure.AI.AnomalyDetector.AlignPolicy alignPolicy = null, Azure.AI.AnomalyDetector.ModelStatus? status = default(Azure.AI.AnomalyDetector.ModelStatus?), System.Collections.Generic.IEnumerable errors = null, Azure.AI.AnomalyDetector.DiagnosticsInfo diagnosticsInfo = null) { throw null; } + public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary MultivariateBatchDetectionResultSummary(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus status = default(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable variableStates = null, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions setupInfo = null) { throw null; } + public static Azure.AI.AnomalyDetector.MultivariateDetectionResult MultivariateDetectionResult(System.Guid resultId = default(System.Guid), Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary summary = null, System.Collections.Generic.IEnumerable results = null) { throw null; } + public static Azure.AI.AnomalyDetector.MultivariateLastDetectionResult MultivariateLastDetectionResult(System.Collections.Generic.IEnumerable variableStates = null, System.Collections.Generic.IEnumerable results = null) { throw null; } + public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult UnivariateChangePointDetectionResult(int? period = default(int?), System.Collections.Generic.IEnumerable isChangePoint = null, System.Collections.Generic.IEnumerable confidenceScores = null) { throw null; } + public static Azure.AI.AnomalyDetector.UnivariateLastDetectionResult UnivariateLastDetectionResult(int period = 0, int suggestedWindow = 0, float expectedValue = 0f, float upperMargin = 0f, float lowerMargin = 0f, bool isAnomaly = false, bool isNegativeAnomaly = false, bool isPositiveAnomaly = false, float? severity = default(float?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AlignMode : System.IEquatable { @@ -106,20 +120,6 @@ internal AnomalyValue() { } public float Score { get { throw null; } } public float Severity { get { throw null; } } } - public static partial class AzureAIAnomalyDetectorModelFactory - { - public static Azure.AI.AnomalyDetector.AnomalyDetectionModel AnomalyDetectionModel(System.Guid modelId = default(System.Guid), System.DateTimeOffset createdTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedTime = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.ModelInfo modelInfo = null) { throw null; } - public static Azure.AI.AnomalyDetector.AnomalyInterpretation AnomalyInterpretation(string variable = null, float? contributionScore = default(float?), Azure.AI.AnomalyDetector.CorrelationChanges correlationChanges = null) { throw null; } - public static Azure.AI.AnomalyDetector.AnomalyState AnomalyState(System.DateTimeOffset timestamp = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.AnomalyValue value = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } - public static Azure.AI.AnomalyDetector.AnomalyValue AnomalyValue(bool isAnomaly = false, float severity = 0f, float score = 0f, System.Collections.Generic.IEnumerable interpretation = null) { throw null; } - public static Azure.AI.AnomalyDetector.CorrelationChanges CorrelationChanges(System.Collections.Generic.IEnumerable changedVariables = null) { throw null; } - public static Azure.AI.AnomalyDetector.ModelInfo ModelInfo(System.Uri dataSource = null, Azure.AI.AnomalyDetector.DataSchema? dataSchema = default(Azure.AI.AnomalyDetector.DataSchema?), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), string displayName = null, int? slidingWindow = default(int?), Azure.AI.AnomalyDetector.AlignPolicy alignPolicy = null, Azure.AI.AnomalyDetector.ModelStatus? status = default(Azure.AI.AnomalyDetector.ModelStatus?), System.Collections.Generic.IEnumerable errors = null, Azure.AI.AnomalyDetector.DiagnosticsInfo diagnosticsInfo = null) { throw null; } - public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary MultivariateBatchDetectionResultSummary(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus status = default(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable variableStates = null, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions setupInfo = null) { throw null; } - public static Azure.AI.AnomalyDetector.MultivariateDetectionResult MultivariateDetectionResult(System.Guid resultId = default(System.Guid), Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary summary = null, System.Collections.Generic.IEnumerable results = null) { throw null; } - public static Azure.AI.AnomalyDetector.MultivariateLastDetectionResult MultivariateLastDetectionResult(System.Collections.Generic.IEnumerable variableStates = null, System.Collections.Generic.IEnumerable results = null) { throw null; } - public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult UnivariateChangePointDetectionResult(int? period = default(int?), System.Collections.Generic.IEnumerable isChangePoint = null, System.Collections.Generic.IEnumerable confidenceScores = null) { throw null; } - public static Azure.AI.AnomalyDetector.UnivariateLastDetectionResult UnivariateLastDetectionResult(int period = 0, int suggestedWindow = 0, float expectedValue = 0f, float upperMargin = 0f, float lowerMargin = 0f, bool isAnomaly = false, bool isNegativeAnomaly = false, bool isPositiveAnomaly = false, float? severity = default(float?)) { throw null; } - } public partial class CorrelationChanges { internal CorrelationChanges() { } @@ -387,7 +387,7 @@ public VariableValues(string variable, System.Collections.Generic.IEnumerable AddAnomalyDetectorClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddAnomalyDetectorClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AzureAIAnomalyDetectorClientBuilderExtensions.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorClientBuilderExtensions.cs similarity index 96% rename from sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AzureAIAnomalyDetectorClientBuilderExtensions.cs rename to sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorClientBuilderExtensions.cs index 3d7f1d80f828..dfbcc4587af6 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AzureAIAnomalyDetectorClientBuilderExtensions.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorClientBuilderExtensions.cs @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class AzureAIAnomalyDetectorClientBuilderExtensions + public static partial class AIAnomalyDetectorClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AzureAIAnomalyDetectorModelFactory.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs similarity index 99% rename from sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AzureAIAnomalyDetectorModelFactory.cs rename to sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs index 0e11905d0580..06d75ba48a6b 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AzureAIAnomalyDetectorModelFactory.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AIAnomalyDetectorModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.AI.AnomalyDetector { /// Model factory for models. - public static partial class AzureAIAnomalyDetectorModelFactory + public static partial class AIAnomalyDetectorModelFactory { /// Initializes a new instance of UnivariateLastDetectionResult. /// diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/src/ConfigurationClientBuilderExtensions.cs b/sdk/appconfiguration/Azure.Data.AppConfiguration/src/ConfigurationClientBuilderExtensions.cs index bde561d2a891..fc852e8573a9 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/src/ConfigurationClientBuilderExtensions.cs +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/src/ConfigurationClientBuilderExtensions.cs @@ -6,9 +6,9 @@ using Azure.Core.Extensions; using Azure.Data.AppConfiguration; -//TODO: there is no way to only suppress a single memmber of a static class so we need to have everything custom here. +//TODO: there is no way to only suppress a single member of a static class so we need to have everything custom here. //The issue here is that the custom code made one of the constructors internal and we aren't catching ExistingType correctly for low level client -[assembly: CodeGenSuppressType("ConfigurationClientBuilderExtensions")] +[assembly: CodeGenSuppressType("DataAppConfigurationClientBuilderExtensions")] namespace Microsoft.Extensions.Azure { diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClientExtensions.cs b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClientExtensions.cs index 601ef26cd1c8..038e89ff76c8 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClientExtensions.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Conversations/src/ConversationAnalysisClientExtensions.cs @@ -9,7 +9,7 @@ namespace Microsoft.Extensions.Azure { - [CodeGenType("ConversationsClientBuilderExtensions")] + [CodeGenType("AILanguageConversationsClientBuilderExtensions")] public static partial class ConversationAnalysisClientExtensions { } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringClientExtensions.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringClientExtensions.cs index a4cbac9bd766..ed4dc3dac5f0 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringClientExtensions.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringClientExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure /// /// Extension methods to add Question Answering clients to the Azure client builder. /// - [CodeGenType("QuestionAnsweringClientBuilderExtensions")] + [CodeGenType("AILanguageQuestionAnsweringClientBuilderExtensions")] public static partial class QuestionAnsweringClientExtensions { /// diff --git a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringModelFactory.cs b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringModelFactory.cs index 102986f5fae0..dc97fb2723ee 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringModelFactory.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering/src/QuestionAnsweringModelFactory.cs @@ -5,7 +5,7 @@ namespace Azure.AI.Language.QuestionAnswering { - [CodeGenType("QuestionAnsweringModelFactory")] + [CodeGenType("AILanguageQuestionAnsweringModelFactory")] public static partial class QuestionAnsweringModelFactory { } diff --git a/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs b/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs index bf62a24dd42c..21732bbc62e3 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/api/Azure.Communication.CallAutomation.netstandard2.0.cs @@ -142,48 +142,6 @@ public void ProcessEvents(System.Collections.Generic.IEnumerable WaitForEventProcessorAsync(string connectionId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TEvent : Azure.Communication.CallAutomation.CallAutomationEventBase { throw null; } public TEvent WaitForEventProcessor(string connectionId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TEvent : Azure.Communication.CallAutomation.CallAutomationEventBase { throw null; } } - public static partial class CallAutomationModelFactory - { - public static Azure.Communication.CallAutomation.AddParticipantFailed AddParticipantFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } - public static Azure.Communication.CallAutomation.AddParticipantResult AddParticipantsResult(Azure.Communication.CallAutomation.CallParticipant participant = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.AddParticipantSucceeded AddParticipantSucceeded(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } - public static Azure.Communication.CallAutomation.AnswerCallResult AnswerCallResult(Azure.Communication.CallAutomation.CallConnection callConnection = null, Azure.Communication.CallAutomation.CallConnectionProperties callConnectionProperties = null) { throw null; } - public static Azure.Communication.CallAutomation.CallConnected CallConnected(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.CallConnectionProperties CallConnectionProperties(string callConnectionId = null, string serverCallId = null, System.Collections.Generic.IEnumerable targets = null, Azure.Communication.CallAutomation.CallConnectionState callConnectionState = default(Azure.Communication.CallAutomation.CallConnectionState), System.Uri callbackUri = null, Azure.Communication.CommunicationIdentifier sourceIdentity = null, Azure.Communication.PhoneNumberIdentifier sourceCallerIdNumber = null, string sourceDisplayName = null, string mediaSubscriptionId = null) { throw null; } - public static Azure.Communication.CallAutomation.CallDisconnected CallDisconnected(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.CallParticipant CallParticipant(Azure.Communication.CommunicationIdentifier identifier = null, bool isMuted = false) { throw null; } - public static Azure.Communication.CallAutomation.CallTransferAccepted CallTransferAccepted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.CallTransferFailed CallTransferFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.ChoiceResult ChoiceResult(string label = null, string recognizedPhrase = null) { throw null; } - public static Azure.Communication.CallAutomation.CollectTonesResult CollectTonesResult(System.Collections.Generic.IEnumerable tones = null) { throw null; } - public static Azure.Communication.CallAutomation.ContinuousDtmfRecognitionStopped ContinuousDtmfRecognitionStopped(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.ContinuousDtmfRecognitionToneFailed ContinuousDtmfRecognitionToneFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.ContinuousDtmfRecognitionToneReceived ContinuousDtmfRecognitionToneReceived(Azure.Communication.CallAutomation.ToneInfo toneInfo = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.CreateCallResult CreateCallResult(Azure.Communication.CallAutomation.CallConnection callConnection = null, Azure.Communication.CallAutomation.CallConnectionProperties callConnectionProperties = null) { throw null; } - public static Azure.Communication.CallAutomation.DtmfResult DtmfResult(System.Collections.Generic.IEnumerable tones = null) { throw null; } - public static Azure.Communication.CallAutomation.MuteParticipantsResponse MuteParticipantsResponse(string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.ParticipantsUpdated ParticipantsUpdated(string callConnectionId = null, string serverCallId = null, string correlationId = null, System.Collections.Generic.IEnumerable participants = null, int sequenceNumber = 0) { throw null; } - public static Azure.Communication.CallAutomation.PlayCanceled PlayCanceled(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.PlayCompleted PlayCompleted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.PlayFailed PlayFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.RecognizeCanceled RecognizeCanceled(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.RecognizeCompleted RecognizeCompleted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CallAutomation.CallMediaRecognitionType recognitionType = default(Azure.Communication.CallAutomation.CallMediaRecognitionType), Azure.Communication.CallAutomation.RecognizeResult recognizeResult = null) { throw null; } - public static Azure.Communication.CallAutomation.RecognizeFailed RecognizeFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.RecordingStateChanged RecordingStateChanged(string callConnectionId = null, string serverCallId = null, string correlationId = null, string recordingId = null, Azure.Communication.CallAutomation.RecordingState state = default(Azure.Communication.CallAutomation.RecordingState), System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?)) { throw null; } - public static Azure.Communication.CallAutomation.RecordingStateResult RecordingStateResult(string recordingId = null, Azure.Communication.CallAutomation.RecordingState? recordingState = default(Azure.Communication.CallAutomation.RecordingState?)) { throw null; } - public static Azure.Communication.CallAutomation.RemoveParticipantFailed RemoveParticipantFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } - public static Azure.Communication.CallAutomation.RemoveParticipantResult RemoveParticipantResult(string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.RemoveParticipantSucceeded RemoveParticipantSucceeded(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } - public static Azure.Communication.CallAutomation.ResultInformation ResultInformation(int? code = default(int?), int? subCode = default(int?), string message = null) { throw null; } - public static Azure.Communication.CallAutomation.SendDtmfCompleted SendDtmfCompleted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.SendDtmfFailed SendDtmfFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } - public static Azure.Communication.CallAutomation.SensitiveFlag SensitiveFlag(int? recording = default(int?)) { throw null; } - public static Azure.Communication.CallAutomation.SpeechResult SpeechResult(string speech = null) { throw null; } - public static Azure.Communication.CallAutomation.ToneInfo ToneInfo(int sequenceId = 0, Azure.Communication.CallAutomation.DtmfTone tone = default(Azure.Communication.CallAutomation.DtmfTone)) { throw null; } - public static Azure.Communication.CallAutomation.TransferCallToParticipantResult TransferCallToParticipantResult(string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.UnmuteParticipantsResponse UnmuteParticipantsResponse(string operationContext = null) { throw null; } - public static Azure.Communication.CallAutomation.UserConsent UserConsent(int? recording = default(int?)) { throw null; } - } public partial class CallConnected : Azure.Communication.CallAutomation.CallAutomationEventBase { internal CallConnected() { } @@ -465,6 +423,48 @@ internal CollectTonesResult() { } public System.Collections.Generic.IReadOnlyList Tones { get { throw null; } } public string ConvertToString() { throw null; } } + public static partial class CommunicationCallAutomationModelFactory + { + public static Azure.Communication.CallAutomation.AddParticipantFailed AddParticipantFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } + public static Azure.Communication.CallAutomation.AddParticipantResult AddParticipantsResult(Azure.Communication.CallAutomation.CallParticipant participant = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.AddParticipantSucceeded AddParticipantSucceeded(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } + public static Azure.Communication.CallAutomation.AnswerCallResult AnswerCallResult(Azure.Communication.CallAutomation.CallConnection callConnection = null, Azure.Communication.CallAutomation.CallConnectionProperties callConnectionProperties = null) { throw null; } + public static Azure.Communication.CallAutomation.CallConnected CallConnected(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.CallConnectionProperties CallConnectionProperties(string callConnectionId = null, string serverCallId = null, System.Collections.Generic.IEnumerable targets = null, Azure.Communication.CallAutomation.CallConnectionState callConnectionState = default(Azure.Communication.CallAutomation.CallConnectionState), System.Uri callbackUri = null, Azure.Communication.CommunicationIdentifier sourceIdentity = null, Azure.Communication.PhoneNumberIdentifier sourceCallerIdNumber = null, string sourceDisplayName = null, string mediaSubscriptionId = null) { throw null; } + public static Azure.Communication.CallAutomation.CallDisconnected CallDisconnected(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.CallParticipant CallParticipant(Azure.Communication.CommunicationIdentifier identifier = null, bool isMuted = false) { throw null; } + public static Azure.Communication.CallAutomation.CallTransferAccepted CallTransferAccepted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.CallTransferFailed CallTransferFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.ChoiceResult ChoiceResult(string label = null, string recognizedPhrase = null) { throw null; } + public static Azure.Communication.CallAutomation.CollectTonesResult CollectTonesResult(System.Collections.Generic.IEnumerable tones = null) { throw null; } + public static Azure.Communication.CallAutomation.ContinuousDtmfRecognitionStopped ContinuousDtmfRecognitionStopped(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.ContinuousDtmfRecognitionToneFailed ContinuousDtmfRecognitionToneFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.ContinuousDtmfRecognitionToneReceived ContinuousDtmfRecognitionToneReceived(Azure.Communication.CallAutomation.ToneInfo toneInfo = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.CreateCallResult CreateCallResult(Azure.Communication.CallAutomation.CallConnection callConnection = null, Azure.Communication.CallAutomation.CallConnectionProperties callConnectionProperties = null) { throw null; } + public static Azure.Communication.CallAutomation.DtmfResult DtmfResult(System.Collections.Generic.IEnumerable tones = null) { throw null; } + public static Azure.Communication.CallAutomation.MuteParticipantsResponse MuteParticipantsResponse(string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.ParticipantsUpdated ParticipantsUpdated(string callConnectionId = null, string serverCallId = null, string correlationId = null, System.Collections.Generic.IEnumerable participants = null, int sequenceNumber = 0) { throw null; } + public static Azure.Communication.CallAutomation.PlayCanceled PlayCanceled(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.PlayCompleted PlayCompleted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.PlayFailed PlayFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.RecognizeCanceled RecognizeCanceled(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.RecognizeCompleted RecognizeCompleted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CallAutomation.CallMediaRecognitionType recognitionType = default(Azure.Communication.CallAutomation.CallMediaRecognitionType), Azure.Communication.CallAutomation.RecognizeResult recognizeResult = null) { throw null; } + public static Azure.Communication.CallAutomation.RecognizeFailed RecognizeFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.RecordingStateChanged RecordingStateChanged(string callConnectionId = null, string serverCallId = null, string correlationId = null, string recordingId = null, Azure.Communication.CallAutomation.RecordingState state = default(Azure.Communication.CallAutomation.RecordingState), System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Communication.CallAutomation.RecordingStateResult RecordingStateResult(string recordingId = null, Azure.Communication.CallAutomation.RecordingState? recordingState = default(Azure.Communication.CallAutomation.RecordingState?)) { throw null; } + public static Azure.Communication.CallAutomation.RemoveParticipantFailed RemoveParticipantFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } + public static Azure.Communication.CallAutomation.RemoveParticipantResult RemoveParticipantResult(string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.RemoveParticipantSucceeded RemoveParticipantSucceeded(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null, Azure.Communication.CommunicationIdentifier participant = null) { throw null; } + public static Azure.Communication.CallAutomation.ResultInformation ResultInformation(int? code = default(int?), int? subCode = default(int?), string message = null) { throw null; } + public static Azure.Communication.CallAutomation.SendDtmfCompleted SendDtmfCompleted(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.SendDtmfFailed SendDtmfFailed(string callConnectionId = null, string serverCallId = null, string correlationId = null, string operationContext = null, Azure.Communication.CallAutomation.ResultInformation resultInformation = null) { throw null; } + public static Azure.Communication.CallAutomation.SensitiveFlag SensitiveFlag(int? recording = default(int?)) { throw null; } + public static Azure.Communication.CallAutomation.SpeechResult SpeechResult(string speech = null) { throw null; } + public static Azure.Communication.CallAutomation.ToneInfo ToneInfo(int sequenceId = 0, Azure.Communication.CallAutomation.DtmfTone tone = default(Azure.Communication.CallAutomation.DtmfTone)) { throw null; } + public static Azure.Communication.CallAutomation.TransferCallToParticipantResult TransferCallToParticipantResult(string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.UnmuteParticipantsResponse UnmuteParticipantsResponse(string operationContext = null) { throw null; } + public static Azure.Communication.CallAutomation.UserConsent UserConsent(int? recording = default(int?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public partial struct ContentTransferOptions : System.IEquatable { diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallAutomationModelFactory.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CommunicationCallAutomationModelFactory.cs similarity index 99% rename from sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallAutomationModelFactory.cs rename to sdk/communication/Azure.Communication.CallAutomation/src/Generated/CommunicationCallAutomationModelFactory.cs index 4194f56d6e6c..2669c24bc143 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CallAutomationModelFactory.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Generated/CommunicationCallAutomationModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Communication.CallAutomation { /// Model factory for models. - public static partial class CallAutomationModelFactory + public static partial class CommunicationCallAutomationModelFactory { /// Initializes a new instance of TransferCallToParticipantResult. /// The operation context provided by client. diff --git a/sdk/communication/Azure.Communication.CallAutomation/src/Models/CallAutomationModelFactory.cs b/sdk/communication/Azure.Communication.CallAutomation/src/Models/CommunicationCallAutomationModelFactory.cs similarity index 98% rename from sdk/communication/Azure.Communication.CallAutomation/src/Models/CallAutomationModelFactory.cs rename to sdk/communication/Azure.Communication.CallAutomation/src/Models/CommunicationCallAutomationModelFactory.cs index 74eb9266fb6f..beb21f257c4e 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/src/Models/CallAutomationModelFactory.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/src/Models/CommunicationCallAutomationModelFactory.cs @@ -10,8 +10,7 @@ namespace Azure.Communication.CallAutomation { /// Model factory for read-only models. - [CodeGenModel("AzureCommunicationServicesModelFactory")] - public static partial class CallAutomationModelFactory + public static partial class CommunicationCallAutomationModelFactory { /// Initializes a new instance of AddParticipantsResult. /// Participant of the call. diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/EventProcessors/ResultWithEventProcessorAsyncTests.cs b/sdk/communication/Azure.Communication.CallAutomation/tests/EventProcessors/ResultWithEventProcessorAsyncTests.cs index 73d384ee66f6..c96c05028e0d 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/tests/EventProcessors/ResultWithEventProcessorAsyncTests.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/EventProcessors/ResultWithEventProcessorAsyncTests.cs @@ -199,7 +199,7 @@ public async Task AddParticipantsEventResultSuccessTest() Assert.AreEqual(successCode, response.GetRawResponse().Status); // Create and send event to event processor - SendAndProcessEvent(handler, CallAutomationModelFactory.AddParticipantSucceeded(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); + SendAndProcessEvent(handler, CommunicationCallAutomationModelFactory.AddParticipantSucceeded(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); AddParticipantEventResult returnedResult = await response.Value.WaitForEventProcessorAsync(); @@ -226,7 +226,7 @@ public async Task AddParticipantsEventResultFailedTest() Assert.AreEqual(successCode, response.GetRawResponse().Status); // Create and send event to event processor - SendAndProcessEvent(handler, CallAutomationModelFactory.AddParticipantFailed(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); + SendAndProcessEvent(handler, CommunicationCallAutomationModelFactory.AddParticipantFailed(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); AddParticipantEventResult returnedResult = await response.Value.WaitForEventProcessorAsync(); @@ -407,7 +407,7 @@ public async Task RemoveParticipantEventResultSuccessTest() Assert.AreEqual(successCode, response.GetRawResponse().Status); // Create and send event to event processor - SendAndProcessEvent(handler, CallAutomationModelFactory.RemoveParticipantSucceeded(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); + SendAndProcessEvent(handler, CommunicationCallAutomationModelFactory.RemoveParticipantSucceeded(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); RemoveParticipantEventResult returnedResult = await response.Value.WaitForEventProcessorAsync(); @@ -434,7 +434,7 @@ public async Task RemoveParticipantsEventResultFailedTest() Assert.AreEqual(successCode, response.GetRawResponse().Status); // Create and send event to event processor - SendAndProcessEvent(handler, CallAutomationModelFactory.RemoveParticipantFailed(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); + SendAndProcessEvent(handler, CommunicationCallAutomationModelFactory.RemoveParticipantFailed(CallConnectionId, ServerCallId, CorelationId, response.Value.OperationContext, null, callInvite.Target)); RemoveParticipantEventResult returnedResult = await response.Value.WaitForEventProcessorAsync(); diff --git a/sdk/communication/Azure.Communication.CallAutomation/tests/Events/CallAutomationEventParserTests.cs b/sdk/communication/Azure.Communication.CallAutomation/tests/Events/CallAutomationEventParserTests.cs index b7859d2faff5..19965c1dfba6 100644 --- a/sdk/communication/Azure.Communication.CallAutomation/tests/Events/CallAutomationEventParserTests.cs +++ b/sdk/communication/Azure.Communication.CallAutomation/tests/Events/CallAutomationEventParserTests.cs @@ -22,7 +22,7 @@ public void EventParserShouldParseEventWithEventDataAndType() var correlationId = Guid.NewGuid().ToString(); var resultInformation = new ResultInformation(200, 0, "success"); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; - CallConnected @event = CallAutomationModelFactory.CallConnected(callConnectionId: callConnectionId, serverCallId: serverCallId, correlationId: correlationId); + CallConnected @event = CommunicationCallAutomationModelFactory.CallConnected(callConnectionId: callConnectionId, serverCallId: serverCallId, correlationId: correlationId); string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); // act @@ -184,7 +184,7 @@ public void AddParticipantsFailedEventParsed_Test() var correlationId = "correlationId"; var operationContext = "operation context"; var participant = new CommunicationUserIdentifier("8:acs:12345"); - var @event = CallAutomationModelFactory.AddParticipantFailed(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(403, 30, "result info message"), participant); + var @event = CommunicationCallAutomationModelFactory.AddParticipantFailed(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(403, 30, "result info message"), participant); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -216,7 +216,7 @@ public void AddParticipantsSucceededEventParsed_Test() var correlationId = "correlationId"; var operationContext = "operation context"; var participant = new CommunicationUserIdentifier("8:acs:12345"); - var @event = CallAutomationModelFactory.AddParticipantSucceeded(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(200, 30, "result info message"), participant); + var @event = CommunicationCallAutomationModelFactory.AddParticipantSucceeded(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(200, 30, "result info message"), participant); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -246,7 +246,7 @@ public void CallConnectedEventParsed_Test() var callConnectionId = "callConnectionId"; var serverCallId = "serverCallId"; var correlationId = "correlationId"; - var @event = CallAutomationModelFactory.CallConnected(callConnectionId, serverCallId, correlationId); + var @event = CommunicationCallAutomationModelFactory.CallConnected(callConnectionId, serverCallId, correlationId); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -275,7 +275,7 @@ public void CallDisconnectedEventParsed_Test() var callConnectionId = "callConnectionId"; var serverCallId = "serverCallId"; var correlationId = "correlationId"; - var @event = CallAutomationModelFactory.CallDisconnected(callConnectionId, serverCallId, correlationId); + var @event = CommunicationCallAutomationModelFactory.CallDisconnected(callConnectionId, serverCallId, correlationId); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -305,7 +305,7 @@ public void CallTransferAcceptedEventParsed_Test() var serverCallId = "serverCallId"; var correlationId = "correlationId"; var operationContext = "operation context"; - var @event = CallAutomationModelFactory.CallTransferAccepted(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(202, 30, "result info message")); + var @event = CommunicationCallAutomationModelFactory.CallTransferAccepted(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(202, 30, "result info message")); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -335,7 +335,7 @@ public void CallTransferFailedEventParsed_Test() var serverCallId = "serverCallId"; var correlationId = "correlationId"; var operationContext = "operation context"; - var @event = CallAutomationModelFactory.CallTransferFailed(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(403, 30, "result info message")); + var @event = CommunicationCallAutomationModelFactory.CallTransferFailed(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(403, 30, "result info message")); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -367,7 +367,7 @@ public void ParticipantsUpdatedEventParsed_Test() var participant1 = new CallParticipant(new CommunicationUserIdentifier("8:acs:12345"), false); var participant2 = new CallParticipant(new PhoneNumberIdentifier("+123456789"), false); var participants = new CallParticipant[] { participant1, participant2 }; - var @event = CallAutomationModelFactory.ParticipantsUpdated(callConnectionId, serverCallId, correlationId, participants); + var @event = CommunicationCallAutomationModelFactory.ParticipantsUpdated(callConnectionId, serverCallId, correlationId, participants); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -397,7 +397,7 @@ public void ParticipantsUpdatedEventParsed_Test() [Test] public void RecordingStateChangedEventParsed_Test() { - RecordingStateChanged @event = CallAutomationModelFactory.RecordingStateChanged( + RecordingStateChanged @event = CommunicationCallAutomationModelFactory.RecordingStateChanged( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -422,7 +422,7 @@ public void RecordingStateChangedEventParsed_Test() [Test] public void PlayCompletedEventParsed_Test() { - PlayCompleted @event = CallAutomationModelFactory.PlayCompleted( + PlayCompleted @event = CommunicationCallAutomationModelFactory.PlayCompleted( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -447,7 +447,7 @@ public void PlayCompletedEventParsed_Test() [Test] public void PlayFailedEventParsed_Test() { - PlayFailed @event = CallAutomationModelFactory.PlayFailed( + PlayFailed @event = CommunicationCallAutomationModelFactory.PlayFailed( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -473,7 +473,7 @@ public void PlayFailedEventParsed_Test() [Test] public void PlayCanceledEventParsed_Test() { - PlayCanceled @event = CallAutomationModelFactory.PlayCanceled( + PlayCanceled @event = CommunicationCallAutomationModelFactory.PlayCanceled( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -496,7 +496,7 @@ public void PlayCanceledEventParsed_Test() public void RecognizeCompletedWithDtmfEventParsed_Test() { DtmfResult dtmfResult = new DtmfResult(new DtmfTone[] { DtmfTone.Five, DtmfTone.Six, DtmfTone.Pound }); - RecognizeCompleted @event = CallAutomationModelFactory.RecognizeCompleted( + RecognizeCompleted @event = CommunicationCallAutomationModelFactory.RecognizeCompleted( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -535,7 +535,7 @@ public void RecognizeCompletedWithDtmfEventParsed_Test() public void RecognizeCompletedWithChoiceEventParsed_Test() { ChoiceResult choiceResult = new ChoiceResult("testLabel", "testRecognizePhrase"); - RecognizeCompleted @event = CallAutomationModelFactory.RecognizeCompleted( + RecognizeCompleted @event = CommunicationCallAutomationModelFactory.RecognizeCompleted( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -573,7 +573,7 @@ public void RecognizeCompletedWithChoiceEventParsed_Test() public void GetRecognizeResultFromRecognizeCompletedWithDtmf_Test() { DtmfResult dtmfResult = new DtmfResult(new DtmfTone[] { DtmfTone.Five }); - RecognizeCompleted @event = CallAutomationModelFactory.RecognizeCompleted( + RecognizeCompleted @event = CommunicationCallAutomationModelFactory.RecognizeCompleted( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -610,7 +610,7 @@ public void GetRecognizeResultFromRecognizeCompletedWithDtmf_Test() public void GetRecognizeResultFromRecognizeCompletedWithChoice_Test() { ChoiceResult choiceResult = new ChoiceResult("testLabel", "testRecognizePhrase"); - RecognizeCompleted @event = CallAutomationModelFactory.RecognizeCompleted( + RecognizeCompleted @event = CommunicationCallAutomationModelFactory.RecognizeCompleted( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -649,7 +649,7 @@ public void GetRecognizeResultFromRecognizeCompletedWithChoice_Test() [Test] public void RecognizeFailedEventParsed_Test() { - RecognizeFailed @event = CallAutomationModelFactory.RecognizeFailed( + RecognizeFailed @event = CommunicationCallAutomationModelFactory.RecognizeFailed( operationContext: "operationContext", resultInformation: new ResultInformation(code: 400, subCode: 8510, message: "Action failed, initial silence timeout reached."), callConnectionId: "callConnectionId", @@ -674,7 +674,7 @@ public void RecognizeFailedEventParsed_Test() [Test] public void RecognizeCancelledEventParsed_Test() { - RecognizeCanceled @event = CallAutomationModelFactory.RecognizeCanceled( + RecognizeCanceled @event = CommunicationCallAutomationModelFactory.RecognizeCanceled( operationContext: "operationContext", callConnectionId: "callConnectionId", serverCallId: "serverCallId", @@ -701,7 +701,7 @@ public void RemoveParticipantsSucceededEventParsed_Test() var correlationId = "correlationId"; var operationContext = "operation context"; var participant = new CommunicationUserIdentifier("8:acs:12345"); - var @event = CallAutomationModelFactory.RemoveParticipantSucceeded(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(200, 30, "result info message"), participant); + var @event = CommunicationCallAutomationModelFactory.RemoveParticipantSucceeded(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(200, 30, "result info message"), participant); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -730,7 +730,7 @@ public void RemoveParticipantsFailedEventParsed_Test() var correlationId = "correlationId"; var operationContext = "operation context"; var participant = new CommunicationUserIdentifier("8:acs:12345"); - var @event = CallAutomationModelFactory.RemoveParticipantFailed(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(200, 30, "result info message"), participant); + var @event = CommunicationCallAutomationModelFactory.RemoveParticipantFailed(callConnectionId, serverCallId, correlationId, operationContext, new ResultInformation(200, 30, "result info message"), participant); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); @@ -754,7 +754,7 @@ public void RemoveParticipantsFailedEventParsed_Test() [Test] public void ContinuousDtmfRecognitionToneReceivedEventParsed_Test() { - ContinuousDtmfRecognitionToneReceived @event = CallAutomationModelFactory.ContinuousDtmfRecognitionToneReceived( + ContinuousDtmfRecognitionToneReceived @event = CommunicationCallAutomationModelFactory.ContinuousDtmfRecognitionToneReceived( toneInfo: new ToneInfo(sequenceId: 1, DtmfTone.A), callConnectionId: "callConnectionId", serverCallId: "serverCallId", @@ -783,7 +783,7 @@ public void ContinuousDtmfRecognitionToneReceivedEventParsed_Test() [Test] public void ContinuousDtmfRecognitionToneFailedEventParsed_Test() { - ContinuousDtmfRecognitionToneFailed @event = CallAutomationModelFactory.ContinuousDtmfRecognitionToneFailed( + ContinuousDtmfRecognitionToneFailed @event = CommunicationCallAutomationModelFactory.ContinuousDtmfRecognitionToneFailed( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -809,7 +809,7 @@ public void ContinuousDtmfRecognitionToneFailedEventParsed_Test() [Test] public void ContinuousDtmfRecognitionStoppedEventParsed_Test() { - ContinuousDtmfRecognitionStopped @event = CallAutomationModelFactory.ContinuousDtmfRecognitionStopped( + ContinuousDtmfRecognitionStopped @event = CommunicationCallAutomationModelFactory.ContinuousDtmfRecognitionStopped( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -835,7 +835,7 @@ public void ContinuousDtmfRecognitionStoppedEventParsed_Test() [Test] public void SendDtmfCompletedEventParsed_Test() { - SendDtmfCompleted @event = CallAutomationModelFactory.SendDtmfCompleted( + SendDtmfCompleted @event = CommunicationCallAutomationModelFactory.SendDtmfCompleted( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", @@ -861,7 +861,7 @@ public void SendDtmfCompletedEventParsed_Test() [Test] public void SendDtmfFailedEventParsed_Test() { - SendDtmfFailed @event = CallAutomationModelFactory.SendDtmfFailed( + SendDtmfFailed @event = CommunicationCallAutomationModelFactory.SendDtmfFailed( callConnectionId: "callConnectionId", serverCallId: "serverCallId", correlationId: "correlationId", diff --git a/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs b/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs index 91ab66f5b064..74de805c2ec8 100644 --- a/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs @@ -87,31 +87,6 @@ public static partial class CallAutomationEventParser public static Azure.Communication.CallingServer.CallAutomationEventBase[] ParseMany(Azure.Messaging.CloudEvent[] cloudEvents) { throw null; } public static Azure.Communication.CallingServer.CallAutomationEventBase[] ParseMany(System.BinaryData json) { throw null; } } - public static partial class CallAutomationModelFactory - { - public static Azure.Communication.CallingServer.AddParticipantsFailed AddParticipantsFailed(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, System.Collections.Generic.IEnumerable participants = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null) { throw null; } - public static Azure.Communication.CallingServer.AddParticipantsResult AddParticipantsResult(System.Collections.Generic.IEnumerable participants = null, string operationContext = null) { throw null; } - public static Azure.Communication.CallingServer.AddParticipantsSucceeded AddParticipantsSucceeded(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, System.Collections.Generic.IEnumerable participants = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null) { throw null; } - public static Azure.Communication.CallingServer.AnswerCallResult AnswerCallResult(Azure.Communication.CallingServer.CallConnection callConnection = null, Azure.Communication.CallingServer.CallConnectionProperties callConnectionProperties = null) { throw null; } - public static Azure.Communication.CallingServer.CallConnected CallConnected(string eventSource = null, string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.CallConnectionProperties CallConnectionProperties(string callConnectionId = null, string serverCallId = null, Azure.Communication.CallingServer.CallSource callSource = null, System.Collections.Generic.IEnumerable targets = null, Azure.Communication.CallingServer.CallConnectionState callConnectionState = default(Azure.Communication.CallingServer.CallConnectionState), string subject = null, System.Uri callbackEndpoint = null, string mediaSubscriptionId = null) { throw null; } - public static Azure.Communication.CallingServer.CallDisconnected CallDisconnected(string eventSource = null, string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.CallParticipant CallParticipant(Azure.Communication.CommunicationIdentifier identifier = null, bool isMuted = false) { throw null; } - public static Azure.Communication.CallingServer.CallRecordingStateChanged CallRecordingStateChanged(string eventSource = null, string recordingId = null, Azure.Communication.CallingServer.RecordingState state = default(Azure.Communication.CallingServer.RecordingState), System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.CallTransferAccepted CallTransferAccepted(string eventSource = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.CallTransferFailed CallTransferFailed(string eventSource = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.CollectTonesResult CollectTonesResult(System.Collections.Generic.IEnumerable tones = null) { throw null; } - public static Azure.Communication.CallingServer.CreateCallResult CreateCallResult(Azure.Communication.CallingServer.CallConnection callConnection = null, Azure.Communication.CallingServer.CallConnectionProperties callConnectionProperties = null) { throw null; } - public static Azure.Communication.CallingServer.ParticipantsUpdated ParticipantsUpdated(System.Collections.Generic.IEnumerable participants = null, string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null) { throw null; } - public static Azure.Communication.CallingServer.PlayCompleted PlayCompleted(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.PlayFailed PlayFailed(string eventSource = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.RecognizeCompleted RecognizeCompleted(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, Azure.Communication.CallingServer.CallMediaRecognitionType recognitionType = default(Azure.Communication.CallingServer.CallMediaRecognitionType), Azure.Communication.CallingServer.CollectTonesResult collectTonesResult = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.RecognizeFailed RecognizeFailed(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } - public static Azure.Communication.CallingServer.RecordingStateResult RecordingStateResult(string recordingId = null, Azure.Communication.CallingServer.RecordingState? recordingState = default(Azure.Communication.CallingServer.RecordingState?)) { throw null; } - public static Azure.Communication.CallingServer.RemoveParticipantsResult RemoveParticipantsResult(string operationContext = null) { throw null; } - public static Azure.Communication.CallingServer.ResultInformation ResultInformation(int? code = default(int?), int? subCode = default(int?), string message = null) { throw null; } - public static Azure.Communication.CallingServer.TransferCallToParticipantResult TransferCallToParticipantResult(string operationContext = null) { throw null; } - } public partial class CallConnected : Azure.Communication.CallingServer.CallAutomationEventBase { internal CallConnected() { } @@ -340,6 +315,31 @@ public partial class CollectTonesResult internal CollectTonesResult() { } public System.Collections.Generic.IReadOnlyList Tones { get { throw null; } } } + public static partial class CommunicationCallingServerModelFactory + { + public static Azure.Communication.CallingServer.AddParticipantsFailed AddParticipantsFailed(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, System.Collections.Generic.IEnumerable participants = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null) { throw null; } + public static Azure.Communication.CallingServer.AddParticipantsResult AddParticipantsResult(System.Collections.Generic.IEnumerable participants = null, string operationContext = null) { throw null; } + public static Azure.Communication.CallingServer.AddParticipantsSucceeded AddParticipantsSucceeded(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, System.Collections.Generic.IEnumerable participants = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null) { throw null; } + public static Azure.Communication.CallingServer.AnswerCallResult AnswerCallResult(Azure.Communication.CallingServer.CallConnection callConnection = null, Azure.Communication.CallingServer.CallConnectionProperties callConnectionProperties = null) { throw null; } + public static Azure.Communication.CallingServer.CallConnected CallConnected(string eventSource = null, string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.CallConnectionProperties CallConnectionProperties(string callConnectionId = null, string serverCallId = null, Azure.Communication.CallingServer.CallSource callSource = null, System.Collections.Generic.IEnumerable targets = null, Azure.Communication.CallingServer.CallConnectionState callConnectionState = default(Azure.Communication.CallingServer.CallConnectionState), string subject = null, System.Uri callbackEndpoint = null, string mediaSubscriptionId = null) { throw null; } + public static Azure.Communication.CallingServer.CallDisconnected CallDisconnected(string eventSource = null, string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.CallParticipant CallParticipant(Azure.Communication.CommunicationIdentifier identifier = null, bool isMuted = false) { throw null; } + public static Azure.Communication.CallingServer.CallRecordingStateChanged CallRecordingStateChanged(string eventSource = null, string recordingId = null, Azure.Communication.CallingServer.RecordingState state = default(Azure.Communication.CallingServer.RecordingState), System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.CallTransferAccepted CallTransferAccepted(string eventSource = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.CallTransferFailed CallTransferFailed(string eventSource = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.CollectTonesResult CollectTonesResult(System.Collections.Generic.IEnumerable tones = null) { throw null; } + public static Azure.Communication.CallingServer.CreateCallResult CreateCallResult(Azure.Communication.CallingServer.CallConnection callConnection = null, Azure.Communication.CallingServer.CallConnectionProperties callConnectionProperties = null) { throw null; } + public static Azure.Communication.CallingServer.ParticipantsUpdated ParticipantsUpdated(System.Collections.Generic.IEnumerable participants = null, string version = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string callConnectionId = null, string serverCallId = null, string correlationId = null) { throw null; } + public static Azure.Communication.CallingServer.PlayCompleted PlayCompleted(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.PlayFailed PlayFailed(string eventSource = null, string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.RecognizeCompleted RecognizeCompleted(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, Azure.Communication.CallingServer.CallMediaRecognitionType recognitionType = default(Azure.Communication.CallingServer.CallMediaRecognitionType), Azure.Communication.CallingServer.CollectTonesResult collectTonesResult = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.RecognizeFailed RecognizeFailed(string operationContext = null, Azure.Communication.CallingServer.ResultInformation resultInformation = null, string version = null, string callConnectionId = null, string serverCallId = null, string correlationId = null, string publicEventType = null) { throw null; } + public static Azure.Communication.CallingServer.RecordingStateResult RecordingStateResult(string recordingId = null, Azure.Communication.CallingServer.RecordingState? recordingState = default(Azure.Communication.CallingServer.RecordingState?)) { throw null; } + public static Azure.Communication.CallingServer.RemoveParticipantsResult RemoveParticipantsResult(string operationContext = null) { throw null; } + public static Azure.Communication.CallingServer.ResultInformation ResultInformation(int? code = default(int?), int? subCode = default(int?), string message = null) { throw null; } + public static Azure.Communication.CallingServer.TransferCallToParticipantResult TransferCallToParticipantResult(string operationContext = null) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public partial struct ContentTransferOptions : System.IEquatable { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallAutomationModelFactory.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CommunicationCallingServerModelFactory.cs similarity index 99% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/CallAutomationModelFactory.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/CommunicationCallingServerModelFactory.cs index 59ad34cdadc7..766de9cdd847 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallAutomationModelFactory.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CommunicationCallingServerModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Communication.CallingServer { /// Model factory for models. - public static partial class CallAutomationModelFactory + public static partial class CommunicationCallingServerModelFactory { /// Initializes a new instance of TransferCallToParticipantResult. /// The operation context provided by client. diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/CallAutomationModelFactory.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationCallingServerModelFactory.cs similarity index 98% rename from sdk/communication/Azure.Communication.CallingServer/src/Models/CallAutomationModelFactory.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationCallingServerModelFactory.cs index cac807a09854..303bdd25aaab 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/CallAutomationModelFactory.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationCallingServerModelFactory.cs @@ -10,8 +10,7 @@ namespace Azure.Communication.CallingServer { /// Model factory for read-only models. - [CodeGenModel("ServerCallingModelFactory")] - public static partial class CallAutomationModelFactory + public static partial class CommunicationCallingServerModelFactory { /// Initializes a new instance of AddParticipantsResult. /// Participants of the call. diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs index d0c3a12aa206..88bccb3a9a90 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/Events/CallAutomationEventParserTests.cs @@ -21,7 +21,7 @@ public void EventParserShouldParseEventWithEventDataAndType() var correlationId = Guid.NewGuid().ToString(); var resultInformation = new ResultInformation(200, 0, "success"); JsonSerializerOptions jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }; - CallConnected @event = CallAutomationModelFactory.CallConnected(resultInformation: resultInformation, callConnectionId: callConnectionId, serverCallId: serverCallId, correlationId: correlationId); + CallConnected @event = CommunicationCallingServerModelFactory.CallConnected(resultInformation: resultInformation, callConnectionId: callConnectionId, serverCallId: serverCallId, correlationId: correlationId); string jsonEvent = JsonSerializer.Serialize(@event, jsonOptions); // act @@ -177,7 +177,7 @@ public void EventParserShouldParseEventsWithBinaryData() [Test] public void RecordingStateChangedEventParsed_Test() { - CallRecordingStateChanged @event = CallAutomationModelFactory.CallRecordingStateChanged( + CallRecordingStateChanged @event = CommunicationCallingServerModelFactory.CallRecordingStateChanged( recordingId: "recordingId", state: RecordingState.Active, startDateTime: DateTimeOffset.UtcNow, @@ -203,7 +203,7 @@ public void RecordingStateChangedEventParsed_Test() [Test] public void PlayCompletedEventParsed_Test() { - PlayCompleted @event = CallAutomationModelFactory.PlayCompleted( + PlayCompleted @event = CommunicationCallingServerModelFactory.PlayCompleted( operationContext: "operationContext", resultInformation: new ResultInformation(code: 200, subCode: 200, message: "Action completed successfully"), callConnectionId: "callConnectionId", @@ -227,7 +227,7 @@ public void PlayCompletedEventParsed_Test() [Test] public void PlayFailedEventParsed_Test() { - PlayFailed @event = CallAutomationModelFactory.PlayFailed( + PlayFailed @event = CommunicationCallingServerModelFactory.PlayFailed( operationContext: "operationContext", resultInformation: new ResultInformation(code: 400, subCode: 8536, message: "Action failed, file could not be downloaded."), callConnectionId: "callConnectionId", @@ -251,7 +251,7 @@ public void PlayFailedEventParsed_Test() [Test] public void RecognizeCompletedEventParsed_Test() { - RecognizeCompleted @event = CallAutomationModelFactory.RecognizeCompleted( + RecognizeCompleted @event = CommunicationCallingServerModelFactory.RecognizeCompleted( operationContext: "operationContext", recognitionType: CallMediaRecognitionType.Dtmf, collectTonesResult: new CollectTonesResult(new DtmfTone[] { DtmfTone.Five }), @@ -284,7 +284,7 @@ public void RecognizeCompletedEventParsed_Test() [Test] public void RecognizeFailedEventParsed_Test() { - RecognizeFailed @event = CallAutomationModelFactory.RecognizeFailed( + RecognizeFailed @event = CommunicationCallingServerModelFactory.RecognizeFailed( operationContext: "operationContext", resultInformation: new ResultInformation(code: 400, subCode: 8510, message: "Action failed, initial silence timeout reached."), callConnectionId: "callConnectionId", diff --git a/sdk/communication/Azure.Communication.Chat/src/Models/ChatModelFactory.cs b/sdk/communication/Azure.Communication.Chat/src/Models/ChatModelFactory.cs index baa307ee0200..00e9a47bbded 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Models/ChatModelFactory.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Models/ChatModelFactory.cs @@ -4,12 +4,14 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using Azure.Core; namespace Azure.Communication.Chat { /// /// Model factory that enables mocking for the Chat library. /// + [CodeGenType("CommunicationChatModelFactory")] public static partial class ChatModelFactory { /// diff --git a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs index 8dd1e78d2282..fa0f0bb84ea1 100644 --- a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs @@ -768,6 +768,16 @@ public partial class CloseJobResult { internal CloseJobResult() { } } + public static partial class CommunicationJobRouterModelFactory + { + public static Azure.Communication.JobRouter.Models.AcceptJobOfferResult AcceptJobOfferResult(string assignmentId = null, string jobId = null, string workerId = null) { throw null; } + public static Azure.Communication.JobRouter.Models.RouterJobAssignment RouterJobAssignment(string assignmentId = null, string workerId = null, System.DateTimeOffset assignedAt = default(System.DateTimeOffset), System.DateTimeOffset? completedAt = default(System.DateTimeOffset?), System.DateTimeOffset? closedAt = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Communication.JobRouter.Models.RouterJobOffer RouterJobOffer(string offerId = null, string jobId = null, int capacityCost = 0, System.DateTimeOffset? offeredAt = default(System.DateTimeOffset?), System.DateTimeOffset? expiresAt = default(System.DateTimeOffset?)) { throw null; } + public static Azure.Communication.JobRouter.Models.RouterQueueItem RouterQueueItem(Azure.Communication.JobRouter.Models.RouterQueue queue = null, string etag = null) { throw null; } + public static Azure.Communication.JobRouter.Models.RouterQueueStatistics RouterQueueStatistics(string queueId = null, int length = 0, System.Collections.Generic.IReadOnlyDictionary estimatedWaitTimeMinutes = null, double? longestJobWaitTimeMinutes = default(double?)) { throw null; } + public static Azure.Communication.JobRouter.Models.RouterWorkerAssignment RouterWorkerAssignment(string assignmentId = null, string jobId = null, int capacityCost = 0, System.DateTimeOffset assignedAt = default(System.DateTimeOffset)) { throw null; } + public static Azure.Communication.JobRouter.Models.UnassignJobResult UnassignJobResult(string jobId = null, int unassignmentCount = 0) { throw null; } + } public partial class CompleteJobResult { internal CompleteJobResult() { } @@ -895,16 +905,6 @@ internal RouterJobPositionDetails() { } public static bool operator !=(Azure.Communication.JobRouter.Models.RouterJobStatus left, Azure.Communication.JobRouter.Models.RouterJobStatus right) { throw null; } public override string ToString() { throw null; } } - public static partial class RouterModelFactory - { - public static Azure.Communication.JobRouter.Models.AcceptJobOfferResult AcceptJobOfferResult(string assignmentId = null, string jobId = null, string workerId = null) { throw null; } - public static Azure.Communication.JobRouter.Models.RouterJobAssignment RouterJobAssignment(string assignmentId = null, string workerId = null, System.DateTimeOffset assignedAt = default(System.DateTimeOffset), System.DateTimeOffset? completedAt = default(System.DateTimeOffset?), System.DateTimeOffset? closedAt = default(System.DateTimeOffset?)) { throw null; } - public static Azure.Communication.JobRouter.Models.RouterJobOffer RouterJobOffer(string offerId = null, string jobId = null, int capacityCost = 0, System.DateTimeOffset? offeredAt = default(System.DateTimeOffset?), System.DateTimeOffset? expiresAt = default(System.DateTimeOffset?)) { throw null; } - public static Azure.Communication.JobRouter.Models.RouterQueueItem RouterQueueItem(Azure.Communication.JobRouter.Models.RouterQueue queue = null, string etag = null) { throw null; } - public static Azure.Communication.JobRouter.Models.RouterQueueStatistics RouterQueueStatistics(string queueId = null, int length = 0, System.Collections.Generic.IReadOnlyDictionary estimatedWaitTimeMinutes = null, double? longestJobWaitTimeMinutes = default(double?)) { throw null; } - public static Azure.Communication.JobRouter.Models.RouterWorkerAssignment RouterWorkerAssignment(string assignmentId = null, string jobId = null, int capacityCost = 0, System.DateTimeOffset assignedAt = default(System.DateTimeOffset)) { throw null; } - public static Azure.Communication.JobRouter.Models.UnassignJobResult UnassignJobResult(string jobId = null, int unassignmentCount = 0) { throw null; } - } public partial class RouterQueue { internal RouterQueue() { } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterModelFactory.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CommunicationJobRouterModelFactory.cs similarity index 99% rename from sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterModelFactory.cs rename to sdk/communication/Azure.Communication.JobRouter/src/Generated/CommunicationJobRouterModelFactory.cs index 2bd744210257..31906d9af2f7 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/RouterModelFactory.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CommunicationJobRouterModelFactory.cs @@ -11,7 +11,7 @@ namespace Azure.Communication.JobRouter.Models { /// Model factory for models. - public static partial class RouterModelFactory + public static partial class CommunicationJobRouterModelFactory { /// Initializes a new instance of RouterJobAssignment. /// The Id of the job assignment. diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterModelFactory.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/CommunicationJobRouterModelFactory.cs similarity index 90% rename from sdk/communication/Azure.Communication.JobRouter/src/Models/RouterModelFactory.cs rename to sdk/communication/Azure.Communication.JobRouter/src/Models/CommunicationJobRouterModelFactory.cs index b30ede5efcc1..ff49fecc15d4 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Models/RouterModelFactory.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/CommunicationJobRouterModelFactory.cs @@ -7,8 +7,8 @@ namespace Azure.Communication.JobRouter.Models { - [CodeGenModel("AzureCommunicationServicesModelFactory")] - public static partial class RouterModelFactory + [CodeGenModel("CommunicationJobRouterModelFactory")] + public static partial class CommunicationJobRouterModelFactory { /// Initializes a new instance of CommunicationError. /// The error code. diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumbersModelFactory.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumbersModelFactory.cs index 80dd708d501e..1e6f8800c4a9 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumbersModelFactory.cs +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Models/PhoneNumbersModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Communication.PhoneNumbers /// /// Model factory that enables mocking for the Azure.Communication.PhoneNumbers library. /// - [CodeGenModel("PhoneNumbersModelFactory")] + [CodeGenModel("CommunicationPhoneNumbersModelFactory")] [CodeGenSuppress("PhoneNumberAreaCodes", typeof(IEnumerable), typeof(string))] [CodeGenSuppress("PhoneNumberCountries", typeof(IEnumerable), typeof(string))] [CodeGenSuppress("PhoneNumberLocalities", typeof(IEnumerable), typeof(string))] diff --git a/sdk/communication/Azure.Communication.Rooms/src/Models/RoomsModelFactory.cs b/sdk/communication/Azure.Communication.Rooms/src/Models/RoomsModelFactory.cs index d62cf82c8ae1..dafa90600e80 100644 --- a/sdk/communication/Azure.Communication.Rooms/src/Models/RoomsModelFactory.cs +++ b/sdk/communication/Azure.Communication.Rooms/src/Models/RoomsModelFactory.cs @@ -11,7 +11,7 @@ namespace Azure.Communication.Rooms { /// Model factory for read-only models. - [CodeGenModel("RoomsModelFactory")] + [CodeGenModel("CommunicationRoomsModelFactory")] public static partial class RoomsModelFactory { /// Initializes a new instance of RoomParticipant. diff --git a/sdk/communication/Azure.Communication.ShortCodes/api/Azure.Communication.ShortCodes.netstandard2.0.cs b/sdk/communication/Azure.Communication.ShortCodes/api/Azure.Communication.ShortCodes.netstandard2.0.cs index c9ca557ae902..bfb1a776b1a5 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/api/Azure.Communication.ShortCodes.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/api/Azure.Communication.ShortCodes.netstandard2.0.cs @@ -49,6 +49,10 @@ namespace Azure.Communication.ShortCodes.Models public static bool operator !=(Azure.Communication.ShortCodes.Models.BillingFrequency left, Azure.Communication.ShortCodes.Models.BillingFrequency right) { throw null; } public override string ToString() { throw null; } } + public static partial class CommunicationShortCodesModelFactory + { + public static Azure.Communication.ShortCodes.Models.ShortCode ShortCode(string number = null, Azure.Communication.ShortCodes.Models.NumberType? numberType = default(Azure.Communication.ShortCodes.Models.NumberType?), string countryCode = null, System.Collections.Generic.IEnumerable programBriefIds = null, System.DateTimeOffset? purchaseDate = default(System.DateTimeOffset?)) { throw null; } + } public partial class CompanyInformation { public CompanyInformation() { } @@ -322,10 +326,6 @@ public ShortCodeCost(double amount, string currencyCode, Azure.Communication.Sho public Azure.Communication.ShortCodes.Models.BillingFrequency BillingFrequency { get { throw null; } set { } } public string CurrencyCode { get { throw null; } set { } } } - public static partial class ShortCodesNumbersModelFactory - { - public static Azure.Communication.ShortCodes.Models.ShortCode ShortCode(string number = null, Azure.Communication.ShortCodes.Models.NumberType? numberType = default(Azure.Communication.ShortCodes.Models.NumberType?), string countryCode = null, System.Collections.Generic.IEnumerable programBriefIds = null, System.DateTimeOffset? purchaseDate = default(System.DateTimeOffset?)) { throw null; } - } public partial class TrafficDetails { public TrafficDetails() { } diff --git a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/ShortCodesNumbersModelFactory.cs b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/CommunicationShortCodesModelFactory.cs similarity index 95% rename from sdk/communication/Azure.Communication.ShortCodes/src/Generated/ShortCodesNumbersModelFactory.cs rename to sdk/communication/Azure.Communication.ShortCodes/src/Generated/CommunicationShortCodesModelFactory.cs index b91f06da4695..21c8ea9b71e9 100644 --- a/sdk/communication/Azure.Communication.ShortCodes/src/Generated/ShortCodesNumbersModelFactory.cs +++ b/sdk/communication/Azure.Communication.ShortCodes/src/Generated/CommunicationShortCodesModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Communication.ShortCodes.Models { /// Model factory for models. - public static partial class ShortCodesNumbersModelFactory + public static partial class CommunicationShortCodesModelFactory { /// Initializes a new instance of ShortCode. /// The value of the ShortCode or the alpha numeric e.g. '555555', 'CONTOSO', etc. diff --git a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/TemporarySuppression.cs b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/TemporarySuppression.cs index 4b430d40c2b9..8ca5b823adee 100644 --- a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/TemporarySuppression.cs +++ b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/TemporarySuppression.cs @@ -7,4 +7,4 @@ // some clients' constructors have been customized and the generated aspdotnet extension is using the old constructor which leads to compilation error // until this issue is fixed in the generator, the generated aspdotnet extension class is suppressed here to temporarily solve this -[assembly: CodeGenSuppressType("ConfidentialLedgerClientBuilderExtensions")] +[assembly: CodeGenSuppressType("SecurityConfidentialLedgerClientBuilderExtensions")] diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Content/ContainerRegistryModelFactory.Content.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Content/ContainerRegistryModelFactory.Content.cs index 6c2c730c5716..7e0f5720e52f 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Content/ContainerRegistryModelFactory.Content.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Content/ContainerRegistryModelFactory.Content.cs @@ -2,9 +2,11 @@ // Licensed under the MIT License. using System; +using Azure.Core; namespace Azure.Containers.ContainerRegistry { + [CodeGenType("ContainersContainerRegistryModelFactory")] public static partial class ContainerRegistryModelFactory { /// Initializes a new instance of . diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.netstandard2.0.cs b/sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.netstandard2.0.cs index e6196d9e2afb..a1dda2197884 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.netstandard2.0.cs +++ b/sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.netstandard2.0.cs @@ -10,6 +10,17 @@ public partial class AddBlockItemsResult internal AddBlockItemsResult() { } public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } } + public static partial class AIContentSafetyModelFactory + { + public static Azure.AI.ContentSafety.AddBlockItemsResult AddBlockItemsResult(System.Collections.Generic.IEnumerable value = null) { throw null; } + public static Azure.AI.ContentSafety.AnalyzeImageResult AnalyzeImageResult(Azure.AI.ContentSafety.ImageAnalyzeSeverityResult hateResult = null, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult selfHarmResult = null, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult sexualResult = null, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult violenceResult = null) { throw null; } + public static Azure.AI.ContentSafety.AnalyzeTextResult AnalyzeTextResult(System.Collections.Generic.IEnumerable blocklistsMatchResults = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult hateResult = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult selfHarmResult = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult sexualResult = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult violenceResult = null) { throw null; } + public static Azure.AI.ContentSafety.ImageAnalyzeSeverityResult ImageAnalyzeSeverityResult(Azure.AI.ContentSafety.ImageCategory category = default(Azure.AI.ContentSafety.ImageCategory), int severity = 0) { throw null; } + public static Azure.AI.ContentSafety.TextAnalyzeSeverityResult TextAnalyzeSeverityResult(Azure.AI.ContentSafety.TextCategory category = default(Azure.AI.ContentSafety.TextCategory), int severity = 0) { throw null; } + public static Azure.AI.ContentSafety.TextBlockItem TextBlockItem(string blockItemId = null, string description = null, string text = null) { throw null; } + public static Azure.AI.ContentSafety.TextBlocklist TextBlocklist(string blocklistName = null, string description = null) { throw null; } + public static Azure.AI.ContentSafety.TextBlocklistMatchResult TextBlocklistMatchResult(string blocklistName = null, string blockItemId = null, string blockItemText = null, int offset = 0, int length = 0) { throw null; } + } public partial class AnalyzeImageOptions { public AnalyzeImageOptions(Azure.AI.ContentSafety.ImageData image) { } @@ -41,17 +52,6 @@ internal AnalyzeTextResult() { } public Azure.AI.ContentSafety.TextAnalyzeSeverityResult SexualResult { get { throw null; } } public Azure.AI.ContentSafety.TextAnalyzeSeverityResult ViolenceResult { get { throw null; } } } - public static partial class AzureAIContentSafetyModelFactory - { - public static Azure.AI.ContentSafety.AddBlockItemsResult AddBlockItemsResult(System.Collections.Generic.IEnumerable value = null) { throw null; } - public static Azure.AI.ContentSafety.AnalyzeImageResult AnalyzeImageResult(Azure.AI.ContentSafety.ImageAnalyzeSeverityResult hateResult = null, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult selfHarmResult = null, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult sexualResult = null, Azure.AI.ContentSafety.ImageAnalyzeSeverityResult violenceResult = null) { throw null; } - public static Azure.AI.ContentSafety.AnalyzeTextResult AnalyzeTextResult(System.Collections.Generic.IEnumerable blocklistsMatchResults = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult hateResult = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult selfHarmResult = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult sexualResult = null, Azure.AI.ContentSafety.TextAnalyzeSeverityResult violenceResult = null) { throw null; } - public static Azure.AI.ContentSafety.ImageAnalyzeSeverityResult ImageAnalyzeSeverityResult(Azure.AI.ContentSafety.ImageCategory category = default(Azure.AI.ContentSafety.ImageCategory), int severity = 0) { throw null; } - public static Azure.AI.ContentSafety.TextAnalyzeSeverityResult TextAnalyzeSeverityResult(Azure.AI.ContentSafety.TextCategory category = default(Azure.AI.ContentSafety.TextCategory), int severity = 0) { throw null; } - public static Azure.AI.ContentSafety.TextBlockItem TextBlockItem(string blockItemId = null, string description = null, string text = null) { throw null; } - public static Azure.AI.ContentSafety.TextBlocklist TextBlocklist(string blocklistName = null, string description = null) { throw null; } - public static Azure.AI.ContentSafety.TextBlocklistMatchResult TextBlocklistMatchResult(string blocklistName = null, string blockItemId = null, string blockItemText = null, int offset = 0, int length = 0) { throw null; } - } public partial class ContentSafetyClient { protected ContentSafetyClient() { } @@ -197,7 +197,7 @@ internal TextBlocklistMatchResult() { } } namespace Microsoft.Extensions.Azure { - public static partial class AzureAIContentSafetyClientBuilderExtensions + public static partial class AIContentSafetyClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddContentSafetyClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddContentSafetyClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AzureAIContentSafetyClientBuilderExtensions.cs b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AIContentSafetyClientBuilderExtensions.cs similarity index 96% rename from sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AzureAIContentSafetyClientBuilderExtensions.cs rename to sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AIContentSafetyClientBuilderExtensions.cs index 8ebfe38f3dec..6c63c13fe6e8 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AzureAIContentSafetyClientBuilderExtensions.cs +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AIContentSafetyClientBuilderExtensions.cs @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class AzureAIContentSafetyClientBuilderExtensions + public static partial class AIContentSafetyClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AzureAIContentSafetyModelFactory.cs b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AIContentSafetyModelFactory.cs similarity index 99% rename from sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AzureAIContentSafetyModelFactory.cs rename to sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AIContentSafetyModelFactory.cs index 0335749b8d78..a66c6f5b7b82 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AzureAIContentSafetyModelFactory.cs +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/AIContentSafetyModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.AI.ContentSafety { /// Model factory for models. - public static partial class AzureAIContentSafetyModelFactory + public static partial class AIContentSafetyModelFactory { /// Initializes a new instance of AnalyzeTextResult. /// The details of blocklist match. diff --git a/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs b/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs index 75011dd897eb..f2c7d35fd546 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/api/Azure.Developer.DevCenter.netstandard2.0.cs @@ -96,7 +96,7 @@ public EnvironmentsClient(System.Uri endpoint, string projectName, Azure.Core.To } namespace Microsoft.Extensions.Azure { - public static partial class DevCenterClientBuilderExtensions + public static partial class DeveloperDevCenterClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, System.Uri endpoint, string projectName) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddDevBoxesClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClientBuilderExtensions.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeveloperDevCenterClientBuilderExtensions.cs similarity index 98% rename from sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClientBuilderExtensions.cs rename to sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeveloperDevCenterClientBuilderExtensions.cs index 5b650f8f703f..44c3ed9d53e1 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DevCenterClientBuilderExtensions.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/Generated/DeveloperDevCenterClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add , , to client builder. - public static partial class DevCenterClientBuilderExtensions + public static partial class DeveloperDevCenterClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/api/Azure.IoT.DeviceUpdate.netstandard2.0.cs b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/api/Azure.IoT.DeviceUpdate.netstandard2.0.cs index e11992375cbe..f02d2f8b9036 100644 --- a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/api/Azure.IoT.DeviceUpdate.netstandard2.0.cs +++ b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/api/Azure.IoT.DeviceUpdate.netstandard2.0.cs @@ -125,7 +125,7 @@ public enum ServiceVersion } namespace Microsoft.Extensions.Azure { - public static partial class DeviceUpdateClientBuilderExtensions + public static partial class IoTDeviceUpdateClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddDeviceManagementClient(this TBuilder builder, System.Uri endpoint, string instanceId) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddDeviceManagementClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/DeviceUpdateClientBuilderExtensions.cs b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/IoTDeviceUpdateClientBuilderExtensions.cs similarity index 97% rename from sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/DeviceUpdateClientBuilderExtensions.cs rename to sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/IoTDeviceUpdateClientBuilderExtensions.cs index fedb5709dbf0..38d066886d6f 100644 --- a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/DeviceUpdateClientBuilderExtensions.cs +++ b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/IoTDeviceUpdateClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add , to client builder. - public static partial class DeviceUpdateClientBuilderExtensions + public static partial class IoTDeviceUpdateClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/DigitalTwinsModelFactory.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/DigitalTwinsModelFactory.cs index 046a05aea3c7..7b105011e2c9 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/DigitalTwinsModelFactory.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/DigitalTwinsModelFactory.cs @@ -8,7 +8,7 @@ namespace Azure.DigitalTwins.Core { /// Model factory for read-only models. - [CodeGenType("AzureDigitalTwinsAPIModelFactory")] + [CodeGenType("DigitalTwinsCoreModelFactory")] public static partial class DigitalTwinsModelFactory { } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs index d2e5e29779fd..2c166af00186 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs @@ -13,7 +13,7 @@ namespace Azure.Messaging.EventGrid { #pragma warning disable CA1054 // URI-like parameters should not be strings - [CodeGenType(nameof(EventGridModelFactory))] + [CodeGenType("MessagingEventGridModelFactory")] public static partial class EventGridModelFactory { /// Initializes new instance of MediaJobError class. diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs index f413b85bd38d..516e65dd9f96 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/api/Azure.Health.Insights.CancerProfiling.netstandard2.0.cs @@ -1,14 +1,5 @@ namespace Azure.Health.Insights.CancerProfiling { - public static partial class AzureHealthInsightsCancerProfilingModelFactory - { - public static Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string text = null, int offset = 0, int length = 0) { throw null; } - public static Azure.Health.Insights.CancerProfiling.InferenceEvidence InferenceEvidence(Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence patientDataEvidence = null, Azure.Health.Insights.CancerProfiling.ClinicalCodedElement patientInfoEvidence = null, float? importance = default(float?)) { throw null; } - public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference OncoPhenotypeInference(Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType type = default(Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType), string value = null, string description = null, float? confidenceScore = default(float?), System.Collections.Generic.IEnumerable evidence = null, string caseId = null) { throw null; } - public static Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult OncoPhenotypePatientResult(string id = null, System.Collections.Generic.IEnumerable inferences = null) { throw null; } - public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeResult OncoPhenotypeResult(System.Guid jobId = default(System.Guid), System.DateTimeOffset createdDateTime = default(System.DateTimeOffset), System.DateTimeOffset expirationDateTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateDateTime = default(System.DateTimeOffset), Azure.Health.Insights.CancerProfiling.JobStatus status = default(Azure.Health.Insights.CancerProfiling.JobStatus), System.Collections.Generic.IEnumerable errors = null, Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults results = null) { throw null; } - public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults OncoPhenotypeResults(System.Collections.Generic.IEnumerable patients = null, string modelVersion = null) { throw null; } - } public partial class CancerProfilingClient { protected CancerProfilingClient() { } @@ -112,6 +103,15 @@ public DocumentContent(Azure.Health.Insights.CancerProfiling.DocumentContentSour public static bool operator !=(Azure.Health.Insights.CancerProfiling.DocumentType left, Azure.Health.Insights.CancerProfiling.DocumentType right) { throw null; } public override string ToString() { throw null; } } + public static partial class HealthInsightsCancerProfilingModelFactory + { + public static Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string text = null, int offset = 0, int length = 0) { throw null; } + public static Azure.Health.Insights.CancerProfiling.InferenceEvidence InferenceEvidence(Azure.Health.Insights.CancerProfiling.ClinicalNoteEvidence patientDataEvidence = null, Azure.Health.Insights.CancerProfiling.ClinicalCodedElement patientInfoEvidence = null, float? importance = default(float?)) { throw null; } + public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeInference OncoPhenotypeInference(Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType type = default(Azure.Health.Insights.CancerProfiling.OncoPhenotypeInferenceType), string value = null, string description = null, float? confidenceScore = default(float?), System.Collections.Generic.IEnumerable evidence = null, string caseId = null) { throw null; } + public static Azure.Health.Insights.CancerProfiling.OncoPhenotypePatientResult OncoPhenotypePatientResult(string id = null, System.Collections.Generic.IEnumerable inferences = null) { throw null; } + public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeResult OncoPhenotypeResult(System.Guid jobId = default(System.Guid), System.DateTimeOffset createdDateTime = default(System.DateTimeOffset), System.DateTimeOffset expirationDateTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateDateTime = default(System.DateTimeOffset), Azure.Health.Insights.CancerProfiling.JobStatus status = default(Azure.Health.Insights.CancerProfiling.JobStatus), System.Collections.Generic.IEnumerable errors = null, Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults results = null) { throw null; } + public static Azure.Health.Insights.CancerProfiling.OncoPhenotypeResults OncoPhenotypeResults(System.Collections.Generic.IEnumerable patients = null, string modelVersion = null) { throw null; } + } public partial class InferenceEvidence { internal InferenceEvidence() { } @@ -257,7 +257,7 @@ public PatientRecord(string id) { } } namespace Microsoft.Extensions.Azure { - public static partial class AzureHealthInsightsCancerProfilingClientBuilderExtensions + public static partial class HealthInsightsCancerProfilingClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddCancerProfilingClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddCancerProfilingClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/AzureHealthInsightsCancerProfilingClientBuilderExtensions.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingClientBuilderExtensions.cs similarity index 95% rename from sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/AzureHealthInsightsCancerProfilingClientBuilderExtensions.cs rename to sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingClientBuilderExtensions.cs index 967e1f429a9c..81bc2fb424c2 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/AzureHealthInsightsCancerProfilingClientBuilderExtensions.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingClientBuilderExtensions.cs @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class AzureHealthInsightsCancerProfilingClientBuilderExtensions + public static partial class HealthInsightsCancerProfilingClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/AzureHealthInsightsCancerProfilingModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingModelFactory.cs similarity index 98% rename from sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/AzureHealthInsightsCancerProfilingModelFactory.cs rename to sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingModelFactory.cs index 5976cce3b3a1..3ea8c3edbb8d 100644 --- a/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/AzureHealthInsightsCancerProfilingModelFactory.cs +++ b/sdk/healthinsights/Azure.Health.Insights.CancerProfiling/src/Generated/HealthInsightsCancerProfilingModelFactory.cs @@ -13,7 +13,7 @@ namespace Azure.Health.Insights.CancerProfiling { /// Model factory for models. - public static partial class AzureHealthInsightsCancerProfilingModelFactory + public static partial class HealthInsightsCancerProfilingModelFactory { /// Initializes a new instance of OncoPhenotypeResult. /// A processing job identifier. diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs index 8bd49390daf9..1b8f1fd64ae3 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/api/Azure.Health.Insights.ClinicalMatching.netstandard2.0.cs @@ -43,16 +43,6 @@ public AreaProperties(Azure.Health.Insights.ClinicalMatching.GeoJsonPropertiesSu public double Radius { get { throw null; } } public Azure.Health.Insights.ClinicalMatching.GeoJsonPropertiesSubType SubType { get { throw null; } } } - public static partial class AzureHealthInsightsClinicalMatchingModelFactory - { - public static Azure.Health.Insights.ClinicalMatching.ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string text = null, int offset = 0, int length = 0) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.ExtendedClinicalCodedElement ExtendedClinicalCodedElement(string system = null, string code = null, string name = null, string value = null, string semanticType = null, string category = null) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInference TrialMatcherInference(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType type = default(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType), string value = null, string description = null, float? confidenceScore = default(float?), System.Collections.Generic.IEnumerable evidence = null, string id = null, Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource? source = default(Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource?), Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata metadata = null) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceEvidence TrialMatcherInferenceEvidence(string eligibilityCriteriaEvidence = null, Azure.Health.Insights.ClinicalMatching.ClinicalNoteEvidence patientDataEvidence = null, Azure.Health.Insights.ClinicalMatching.ClinicalCodedElement patientInfoEvidence = null, float? importance = default(float?)) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherPatientResult TrialMatcherPatientResult(string id = null, System.Collections.Generic.IEnumerable inferences = null, System.Collections.Generic.IEnumerable neededClinicalInfo = null) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherResult TrialMatcherResult(System.Guid jobId = default(System.Guid), System.DateTimeOffset createdDateTime = default(System.DateTimeOffset), System.DateTimeOffset expirationDateTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateDateTime = default(System.DateTimeOffset), Azure.Health.Insights.ClinicalMatching.JobStatus status = default(Azure.Health.Insights.ClinicalMatching.JobStatus), System.Collections.Generic.IEnumerable errors = null, Azure.Health.Insights.ClinicalMatching.TrialMatcherResults results = null) { throw null; } - public static Azure.Health.Insights.ClinicalMatching.TrialMatcherResults TrialMatcherResults(System.Collections.Generic.IEnumerable patients = null, string modelVersion = null, System.DateTimeOffset? knowledgeGraphLastUpdateDate = default(System.DateTimeOffset?)) { throw null; } - } public partial class ClinicalCodedElement { public ClinicalCodedElement(string system, string code) { } @@ -417,6 +407,16 @@ public GeographicLocation(string countryOrRegion) { } public static bool operator !=(Azure.Health.Insights.ClinicalMatching.GeoJsonType left, Azure.Health.Insights.ClinicalMatching.GeoJsonType right) { throw null; } public override string ToString() { throw null; } } + public static partial class HealthInsightsClinicalMatchingModelFactory + { + public static Azure.Health.Insights.ClinicalMatching.ClinicalNoteEvidence ClinicalNoteEvidence(string id = null, string text = null, int offset = 0, int length = 0) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.ExtendedClinicalCodedElement ExtendedClinicalCodedElement(string system = null, string code = null, string name = null, string value = null, string semanticType = null, string category = null) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInference TrialMatcherInference(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType type = default(Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceType), string value = null, string description = null, float? confidenceScore = default(float?), System.Collections.Generic.IEnumerable evidence = null, string id = null, Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource? source = default(Azure.Health.Insights.ClinicalMatching.ClinicalTrialSource?), Azure.Health.Insights.ClinicalMatching.ClinicalTrialMetadata metadata = null) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherInferenceEvidence TrialMatcherInferenceEvidence(string eligibilityCriteriaEvidence = null, Azure.Health.Insights.ClinicalMatching.ClinicalNoteEvidence patientDataEvidence = null, Azure.Health.Insights.ClinicalMatching.ClinicalCodedElement patientInfoEvidence = null, float? importance = default(float?)) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherPatientResult TrialMatcherPatientResult(string id = null, System.Collections.Generic.IEnumerable inferences = null, System.Collections.Generic.IEnumerable neededClinicalInfo = null) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherResult TrialMatcherResult(System.Guid jobId = default(System.Guid), System.DateTimeOffset createdDateTime = default(System.DateTimeOffset), System.DateTimeOffset expirationDateTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdateDateTime = default(System.DateTimeOffset), Azure.Health.Insights.ClinicalMatching.JobStatus status = default(Azure.Health.Insights.ClinicalMatching.JobStatus), System.Collections.Generic.IEnumerable errors = null, Azure.Health.Insights.ClinicalMatching.TrialMatcherResults results = null) { throw null; } + public static Azure.Health.Insights.ClinicalMatching.TrialMatcherResults TrialMatcherResults(System.Collections.Generic.IEnumerable patients = null, string modelVersion = null, System.DateTimeOffset? knowledgeGraphLastUpdateDate = default(System.DateTimeOffset?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct JobStatus : System.IEquatable { @@ -559,7 +559,7 @@ internal TrialMatcherResults() { } } namespace Microsoft.Extensions.Azure { - public static partial class AzureHealthInsightsClinicalMatchingClientBuilderExtensions + public static partial class HealthInsightsClinicalMatchingClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddClinicalMatchingClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddClinicalMatchingClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AzureHealthInsightsClinicalMatchingClientBuilderExtensions.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingClientBuilderExtensions.cs similarity index 95% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AzureHealthInsightsClinicalMatchingClientBuilderExtensions.cs rename to sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingClientBuilderExtensions.cs index f4875df6ff87..ed5a4bd4c4d6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AzureHealthInsightsClinicalMatchingClientBuilderExtensions.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingClientBuilderExtensions.cs @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class AzureHealthInsightsClinicalMatchingClientBuilderExtensions + public static partial class HealthInsightsClinicalMatchingClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AzureHealthInsightsClinicalMatchingModelFactory.cs b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingModelFactory.cs similarity index 99% rename from sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AzureHealthInsightsClinicalMatchingModelFactory.cs rename to sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingModelFactory.cs index a6c4bb03105e..c607bdf3c095 100644 --- a/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/AzureHealthInsightsClinicalMatchingModelFactory.cs +++ b/sdk/healthinsights/Azure.Health.Insights.ClinicalMatching/src/Generated/HealthInsightsClinicalMatchingModelFactory.cs @@ -13,7 +13,7 @@ namespace Azure.Health.Insights.ClinicalMatching { /// Model factory for models. - public static partial class AzureHealthInsightsClinicalMatchingModelFactory + public static partial class HealthInsightsClinicalMatchingModelFactory { /// Initializes a new instance of TrialMatcherResult. /// A processing job identifier. diff --git a/sdk/iot/Azure.IoT.Hub.Service/api/Azure.IoT.Hub.Service.netstandard2.0.cs b/sdk/iot/Azure.IoT.Hub.Service/api/Azure.IoT.Hub.Service.netstandard2.0.cs index 248aa866ffd0..382930c05e9f 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/api/Azure.IoT.Hub.Service.netstandard2.0.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/api/Azure.IoT.Hub.Service.netstandard2.0.cs @@ -638,7 +638,7 @@ public ImportJobRequestOptions() { } public string InputBlobName { get { throw null; } set { } } public string OutputBlobName { get { throw null; } set { } } } - public static partial class IotHubGatewayServiceAPIsModelFactory + public static partial class IoTHubServiceModelFactory { public static Azure.IoT.Hub.Service.Models.BulkRegistryOperationResponse BulkRegistryOperationResponse(bool? isSuccessful = default(bool?), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable warnings = null) { throw null; } public static Azure.IoT.Hub.Service.Models.CloudToDeviceMethodResponse CloudToDeviceMethodResponse(int? status = default(int?), object payload = null) { throw null; } diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/IotHubGatewayServiceAPIsModelFactory.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/IoTHubServiceModelFactory.cs similarity index 99% rename from sdk/iot/Azure.IoT.Hub.Service/src/Generated/IotHubGatewayServiceAPIsModelFactory.cs rename to sdk/iot/Azure.IoT.Hub.Service/src/Generated/IoTHubServiceModelFactory.cs index b4c8fd2c2b07..9c4ae22d5255 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/IotHubGatewayServiceAPIsModelFactory.cs +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/IoTHubServiceModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.IoT.Hub.Service.Models { /// Model factory for models. - public static partial class IotHubGatewayServiceAPIsModelFactory + public static partial class IoTHubServiceModelFactory { /// Initializes a new instance of ConfigurationQueriesTestResponse. /// The errors from running the target condition query. diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultAdministrationModelFactory.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultAdministrationModelFactory.cs index 2ac1cafffb21..e21281e7907e 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultAdministrationModelFactory.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultAdministrationModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Security.KeyVault.Administration /// /// A factory class which constructs model classes for mocking purposes. /// - [CodeGenType("AzureSecurityKeyVaultAdministrationModelFactory")] + [CodeGenType("SecurityKeyVaultAdministrationModelFactory")] public static partial class KeyVaultAdministrationModelFactory { /// Initializes a new instance of KeyVaultRoleDefinition. diff --git a/sdk/keyvault/samples/sharelink/Properties/AssemblyInfo.cs b/sdk/keyvault/samples/sharelink/Properties/AssemblyInfo.cs index 1624344a1df6..725eca58d515 100644 --- a/sdk/keyvault/samples/sharelink/Properties/AssemblyInfo.cs +++ b/sdk/keyvault/samples/sharelink/Properties/AssemblyInfo.cs @@ -1,4 +1,2 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. - -[assembly: Azure.Core.CodeGenSuppressTypeAttribute("AzureSecurityKeyVaultStorageModelFactory")] \ No newline at end of file diff --git a/sdk/keyvault/samples/sharelink/autorest.md b/sdk/keyvault/samples/sharelink/autorest.md index 59cea5afb4a0..97be1196891d 100644 --- a/sdk/keyvault/samples/sharelink/autorest.md +++ b/sdk/keyvault/samples/sharelink/autorest.md @@ -9,6 +9,7 @@ Run `dotnet build /t:GenerateCode` in source directory to re-generate. ``` yaml title: Azure.Security.KeyVault.Storage namespace: Azure.Security.KeyVault.Storage +generate-model-factory: false include-csproj: disable input-file: - https://github.com/Azure/azure-rest-api-specs/blob/615259b6d33d3029de2d6e403ffe0c12776da1d4/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.1/storage.json diff --git a/sdk/loadtestservice/Azure.Developer.LoadTesting/src/AutorestCustomizations/LoadTestingClientBuilderExtensions.cs b/sdk/loadtestservice/Azure.Developer.LoadTesting/src/AutorestCustomizations/LoadTestingClientBuilderExtensions.cs new file mode 100644 index 000000000000..4d343177bea0 --- /dev/null +++ b/sdk/loadtestservice/Azure.Developer.LoadTesting/src/AutorestCustomizations/LoadTestingClientBuilderExtensions.cs @@ -0,0 +1,14 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using Azure.Core; + +namespace Microsoft.Extensions.Azure +{ + [CodeGenType("DeveloperLoadTestingClientBuilderExtensions")] // change the name back here to avoid breaking changes. + public static partial class AzureLoadTestingClientBuilderExtensions + { + } +} diff --git a/sdk/maps/Azure.Maps.Routing/api/Azure.Maps.Routing.netstandard2.0.cs b/sdk/maps/Azure.Maps.Routing/api/Azure.Maps.Routing.netstandard2.0.cs index 60a177e32da9..c0f46e05f54a 100644 --- a/sdk/maps/Azure.Maps.Routing/api/Azure.Maps.Routing.netstandard2.0.cs +++ b/sdk/maps/Azure.Maps.Routing/api/Azure.Maps.Routing.netstandard2.0.cs @@ -638,6 +638,23 @@ public GetRouteMatrixOperation(Azure.Maps.Routing.MapsRoutingClient client, stri public static bool operator !=(Azure.Maps.Routing.Models.JunctionType left, Azure.Maps.Routing.Models.JunctionType right) { throw null; } public override string ToString() { throw null; } } + public static partial class MapsRoutingModelFactory + { + public static Azure.Maps.Routing.Models.EffectiveSetting EffectiveSetting(string key = null, string value = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteData RouteData(Azure.Maps.Routing.Models.RouteSummary summary = null, System.Collections.Generic.IEnumerable legs = null, System.Collections.Generic.IEnumerable sections = null, Azure.Maps.Routing.Models.RouteGuidance guidance = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteDirections RouteDirections(string formatVersion = null, System.Collections.Generic.IEnumerable routes = null, System.Collections.Generic.IEnumerable optimizedWaypoints = null, Azure.Maps.Routing.Models.RouteReport report = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteGuidance RouteGuidance(System.Collections.Generic.IEnumerable instructions = null, System.Collections.Generic.IEnumerable instructionGroups = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteInstructionGroup RouteInstructionGroup(int? firstInstructionIndex = default(int?), int? lastInstructionIndex = default(int?), int? groupLengthInMeters = default(int?), string groupMessage = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteLegSummary RouteLegSummary(int? lengthInMeters = default(int?), int? travelTimeInSeconds = default(int?), int? trafficDelayInSeconds = default(int?), System.DateTimeOffset? departureTime = default(System.DateTimeOffset?), System.DateTimeOffset? arrivalTime = default(System.DateTimeOffset?), int? noTrafficTravelTimeInSeconds = default(int?), int? historicTrafficTravelTimeInSeconds = default(int?), int? liveTrafficIncidentsTravelTimeInSeconds = default(int?), double? fuelConsumptionInLiters = default(double?), double? batteryConsumptionInKwH = default(double?)) { throw null; } + public static Azure.Maps.Routing.Models.RouteMatrixResult RouteMatrixResult(string formatVersion = null, System.Collections.Generic.IEnumerable> matrix = null, Azure.Maps.Routing.Models.RouteMatrixSummary summary = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteMatrixSummary RouteMatrixSummary(int? successfulRoutes = default(int?), int? totalRoutes = default(int?)) { throw null; } + public static Azure.Maps.Routing.Models.RouteOptimizedWaypoint RouteOptimizedWaypoint(int? providedIndex = default(int?), int? optimizedIndex = default(int?)) { throw null; } + public static Azure.Maps.Routing.Models.RouteRangeResult RouteRangeResult(string formatVersion = null, Azure.Maps.Routing.Models.RouteRange reachableRange = null, Azure.Maps.Routing.Models.RouteReport report = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteReport RouteReport(System.Collections.Generic.IEnumerable effectiveSettings = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteSection RouteSection(int? startPointIndex = default(int?), int? endPointIndex = default(int?), Azure.Maps.Routing.Models.ResponseSectionType? sectionType = default(Azure.Maps.Routing.Models.ResponseSectionType?), Azure.Maps.Routing.Models.ResponseTravelMode? travelMode = default(Azure.Maps.Routing.Models.ResponseTravelMode?), Azure.Maps.Routing.Models.TrafficIncidentCategory? simpleCategory = default(Azure.Maps.Routing.Models.TrafficIncidentCategory?), int? effectiveSpeedInKmh = default(int?), int? delayInSeconds = default(int?), Azure.Maps.Routing.Models.DelayMagnitude? delayMagnitude = default(Azure.Maps.Routing.Models.DelayMagnitude?), Azure.Maps.Routing.Models.RouteSectionTec tec = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteSectionTec RouteSectionTec(int? effectCode = default(int?), System.Collections.Generic.IEnumerable causes = null) { throw null; } + public static Azure.Maps.Routing.Models.RouteSectionTecCause RouteSectionTecCause(int? mainCauseCode = default(int?), int? subCauseCode = default(int?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ResponseSectionType : System.IEquatable { @@ -793,23 +810,6 @@ internal RouteMatrixSummary() { } public int? SuccessfulRoutes { get { throw null; } } public int? TotalRoutes { get { throw null; } } } - public static partial class RouteModelFactory - { - public static Azure.Maps.Routing.Models.EffectiveSetting EffectiveSetting(string key = null, string value = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteData RouteData(Azure.Maps.Routing.Models.RouteSummary summary = null, System.Collections.Generic.IEnumerable legs = null, System.Collections.Generic.IEnumerable sections = null, Azure.Maps.Routing.Models.RouteGuidance guidance = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteDirections RouteDirections(string formatVersion = null, System.Collections.Generic.IEnumerable routes = null, System.Collections.Generic.IEnumerable optimizedWaypoints = null, Azure.Maps.Routing.Models.RouteReport report = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteGuidance RouteGuidance(System.Collections.Generic.IEnumerable instructions = null, System.Collections.Generic.IEnumerable instructionGroups = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteInstructionGroup RouteInstructionGroup(int? firstInstructionIndex = default(int?), int? lastInstructionIndex = default(int?), int? groupLengthInMeters = default(int?), string groupMessage = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteLegSummary RouteLegSummary(int? lengthInMeters = default(int?), int? travelTimeInSeconds = default(int?), int? trafficDelayInSeconds = default(int?), System.DateTimeOffset? departureTime = default(System.DateTimeOffset?), System.DateTimeOffset? arrivalTime = default(System.DateTimeOffset?), int? noTrafficTravelTimeInSeconds = default(int?), int? historicTrafficTravelTimeInSeconds = default(int?), int? liveTrafficIncidentsTravelTimeInSeconds = default(int?), double? fuelConsumptionInLiters = default(double?), double? batteryConsumptionInKwH = default(double?)) { throw null; } - public static Azure.Maps.Routing.Models.RouteMatrixResult RouteMatrixResult(string formatVersion = null, System.Collections.Generic.IEnumerable> matrix = null, Azure.Maps.Routing.Models.RouteMatrixSummary summary = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteMatrixSummary RouteMatrixSummary(int? successfulRoutes = default(int?), int? totalRoutes = default(int?)) { throw null; } - public static Azure.Maps.Routing.Models.RouteOptimizedWaypoint RouteOptimizedWaypoint(int? providedIndex = default(int?), int? optimizedIndex = default(int?)) { throw null; } - public static Azure.Maps.Routing.Models.RouteRangeResult RouteRangeResult(string formatVersion = null, Azure.Maps.Routing.Models.RouteRange reachableRange = null, Azure.Maps.Routing.Models.RouteReport report = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteReport RouteReport(System.Collections.Generic.IEnumerable effectiveSettings = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteSection RouteSection(int? startPointIndex = default(int?), int? endPointIndex = default(int?), Azure.Maps.Routing.Models.ResponseSectionType? sectionType = default(Azure.Maps.Routing.Models.ResponseSectionType?), Azure.Maps.Routing.Models.ResponseTravelMode? travelMode = default(Azure.Maps.Routing.Models.ResponseTravelMode?), Azure.Maps.Routing.Models.TrafficIncidentCategory? simpleCategory = default(Azure.Maps.Routing.Models.TrafficIncidentCategory?), int? effectiveSpeedInKmh = default(int?), int? delayInSeconds = default(int?), Azure.Maps.Routing.Models.DelayMagnitude? delayMagnitude = default(Azure.Maps.Routing.Models.DelayMagnitude?), Azure.Maps.Routing.Models.RouteSectionTec tec = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteSectionTec RouteSectionTec(int? effectCode = default(int?), System.Collections.Generic.IEnumerable causes = null) { throw null; } - public static Azure.Maps.Routing.Models.RouteSectionTecCause RouteSectionTecCause(int? mainCauseCode = default(int?), int? subCauseCode = default(int?)) { throw null; } - } public partial class RouteOptimizedWaypoint { internal RouteOptimizedWaypoint() { } diff --git a/sdk/maps/Azure.Maps.Routing/src/Generated/RouteModelFactory.cs b/sdk/maps/Azure.Maps.Routing/src/Generated/MapsRoutingModelFactory.cs similarity index 99% rename from sdk/maps/Azure.Maps.Routing/src/Generated/RouteModelFactory.cs rename to sdk/maps/Azure.Maps.Routing/src/Generated/MapsRoutingModelFactory.cs index 1863edb003bf..402d5306df81 100644 --- a/sdk/maps/Azure.Maps.Routing/src/Generated/RouteModelFactory.cs +++ b/sdk/maps/Azure.Maps.Routing/src/Generated/MapsRoutingModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Maps.Routing.Models { /// Model factory for models. - public static partial class RouteModelFactory + public static partial class MapsRoutingModelFactory { /// Initializes a new instance of RouteMatrixResult. /// Format Version property. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs index 213cfd0c5122..26c26a34e424 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs @@ -1255,6 +1255,7 @@ public static partial class MetricsAdvisorModelFactory public static Azure.AI.MetricsAdvisor.Models.DataFeedMetric DataFeedMetric(string id = null, string name = null, string displayName = null, string description = null) { throw null; } public static Azure.AI.MetricsAdvisor.Administration.DataLakeSharedKeyCredentialEntity DataLakeSharedKeyCredentialEntity(string id = null, string name = null, string description = null, string accountKey = null) { throw null; } public static Azure.AI.MetricsAdvisor.Models.DataPointAnomaly DataPointAnomaly(string dataFeedId = null, string metricId = null, string detectionConfigurationId = null, System.DateTimeOffset timestamp = default(System.DateTimeOffset), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), Azure.AI.MetricsAdvisor.Models.DimensionKey seriesKey = null, Azure.AI.MetricsAdvisor.Models.AnomalySeverity severity = default(Azure.AI.MetricsAdvisor.Models.AnomalySeverity), Azure.AI.MetricsAdvisor.Models.AnomalyStatus? status = default(Azure.AI.MetricsAdvisor.Models.AnomalyStatus?), double value = 0, double? expectedValue = default(double?)) { throw null; } + public static Azure.AI.MetricsAdvisor.Administration.DataSourceCredentialEntity DataSourceCredentialEntity(string credentialKind = "Unknown", string id = null, string name = null, string description = null) { throw null; } public static Azure.AI.MetricsAdvisor.Administration.EmailNotificationHook EmailNotificationHook(string id = null, string name = null, string description = null, System.Uri externalUri = null, System.Collections.Generic.IEnumerable administrators = null, System.Collections.Generic.IEnumerable emailsToAlert = null) { throw null; } public static Azure.AI.MetricsAdvisor.Models.EnrichmentStatus EnrichmentStatus(System.DateTimeOffset timestamp = default(System.DateTimeOffset), string status = null, string message = null) { throw null; } public static Azure.AI.MetricsAdvisor.Models.IncidentRootCause IncidentRootCause(Azure.AI.MetricsAdvisor.Models.DimensionKey seriesKey = null, System.Collections.Generic.IEnumerable paths = null, double contributionScore = 0, string description = null) { throw null; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MetricsAdvisorModelFactory.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MetricsAdvisorModelFactory.cs new file mode 100644 index 000000000000..d7b7a4168844 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MetricsAdvisorModelFactory.cs @@ -0,0 +1,29 @@ +// 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.AI.MetricsAdvisor.Administration; + +namespace Azure.AI.MetricsAdvisor.Models +{ + /// Model factory for models. + public static partial class MetricsAdvisorModelFactory + { + /// Initializes a new instance of DataSourceCredentialEntity. + /// Type of data source credential. + /// Unique id of data source credential. + /// Name of data source credential. + /// Description of data source credential. + /// A new instance for mocking. + public static DataSourceCredentialEntity DataSourceCredentialEntity(string credentialKind = "Unknown", string id = null, string name = null, string description = null) + { + return new UnknownDataSourceCredential(credentialKind, id, name, description); + } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs deleted file mode 100644 index 3e1504a5dfcb..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs +++ /dev/null @@ -1,160 +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.AI.MetricsAdvisor.Administration; - -namespace Azure.AI.MetricsAdvisor.Models -{ - /// Model factory for models. - internal static partial class MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory - { - /// Initializes a new instance of AnomalyAlertConfiguration. - /// anomaly alerting configuration unique id. - /// anomaly alerting configuration name. - /// anomaly alerting configuration description. - /// - /// cross metrics operator - /// - /// should be specified when setting up multiple metric alerting configurations - /// - /// dimensions used to split alert. - /// hook unique ids. - /// Anomaly alerting configurations. - /// A new instance for mocking. - public static AnomalyAlertConfiguration AnomalyAlertConfiguration(string id = null, string name = null, string description = null, MetricAlertConfigurationsOperator? crossMetricsOperator = null, IEnumerable dimensionsToSplitAlert = null, IEnumerable idsOfHooksToAlert = null, IEnumerable metricAlertConfigurations = null) - { - dimensionsToSplitAlert ??= new List(); - idsOfHooksToAlert ??= new List(); - metricAlertConfigurations ??= new List(); - - return new AnomalyAlertConfiguration(id, name, description, crossMetricsOperator, dimensionsToSplitAlert?.ToList(), idsOfHooksToAlert?.ToList(), metricAlertConfigurations?.ToList()); - } - - /// Initializes a new instance of AnomalyAlert. - /// alert id. - /// anomaly time. - /// created time. - /// modified time. - /// is null. - /// A new instance for mocking. - public static AnomalyAlert AnomalyAlert(string id = null, DateTimeOffset timestamp = default, DateTimeOffset createdOn = default, DateTimeOffset lastModified = default) - { - if (id == null) - { - throw new ArgumentNullException(nameof(id)); - } - - return new AnomalyAlert(id, timestamp, createdOn, lastModified); - } - - /// Initializes a new instance of AnomalyDetectionConfiguration. - /// anomaly detection configuration unique id. - /// anomaly detection configuration name. - /// anomaly detection configuration description. - /// metric unique id. - /// - /// detection configuration for series group. - /// detection configuration for specific series. - /// A new instance for mocking. - public static AnomalyDetectionConfiguration AnomalyDetectionConfiguration(string id = null, string name = null, string description = null, string metricId = null, MetricWholeSeriesDetectionCondition wholeSeriesDetectionConditions = null, IEnumerable seriesGroupDetectionConditions = null, IEnumerable seriesDetectionConditions = null) - { - seriesGroupDetectionConditions ??= new List(); - seriesDetectionConditions ??= new List(); - - return new AnomalyDetectionConfiguration(id, name, description, metricId, wholeSeriesDetectionConditions, seriesGroupDetectionConditions?.ToList(), seriesDetectionConditions?.ToList()); - } - - /// Initializes a new instance of IncidentRootCause. - /// - /// drilling down path from query anomaly to root cause. - /// score of the root cause. - /// description of the root cause. - /// A new instance for mocking. - public static IncidentRootCause IncidentRootCause(DimensionKey seriesKey = null, IEnumerable paths = null, double contributionScore = default, string description = null) - { - paths ??= new List(); - - return new IncidentRootCause(seriesKey, paths?.ToList(), contributionScore, description); - } - - /// Initializes a new instance of DataSourceCredentialEntity. - /// Type of data source credential. - /// Unique id of data source credential. - /// Name of data source credential. - /// Description of data source credential. - /// A new instance for mocking. - public static DataSourceCredentialEntity DataSourceCredentialEntity(string credentialKind = "Unknown", string id = null, string name = null, string description = null) - { - return new UnknownDataSourceCredential(credentialKind, id, name, description); - } - - /// Initializes a new instance of DataFeedMetric. - /// metric id. - /// metric name. - /// metric display name. - /// metric description. - /// A new instance for mocking. - public static DataFeedMetric DataFeedMetric(string id = null, string name = null, string displayName = null, string description = null) - { - return new DataFeedMetric(id, name, displayName, description); - } - - /// Initializes a new instance of DataFeedIngestionStatus. - /// data slice timestamp. - /// latest ingestion task status for this data slice. - /// the trimmed message of last ingestion job. - /// is null. - /// A new instance for mocking. - public static DataFeedIngestionStatus DataFeedIngestionStatus(DateTimeOffset timestamp = default, IngestionStatusType status = default, string message = null) - { - if (message == null) - { - throw new ArgumentNullException(nameof(message)); - } - - return new DataFeedIngestionStatus(timestamp, status, message); - } - - /// Initializes a new instance of DataFeedIngestionProgress. - /// - /// the timestamp of latest success ingestion job. - /// null indicates not available - /// - /// - /// the timestamp of latest ingestion job with status update. - /// null indicates not available - /// - /// A new instance for mocking. - public static DataFeedIngestionProgress DataFeedIngestionProgress(DateTimeOffset? latestSuccessTimestamp = null, DateTimeOffset? latestActiveTimestamp = null) - { - return new DataFeedIngestionProgress(latestSuccessTimestamp, latestActiveTimestamp); - } - - /// Initializes a new instance of EnrichmentStatus. - /// data slice timestamp. - /// latest enrichment status for this data slice. - /// the trimmed message describes details of the enrichment status. - /// or is null. - /// A new instance for mocking. - public static EnrichmentStatus EnrichmentStatus(DateTimeOffset timestamp = default, string status = null, string message = null) - { - if (status == null) - { - throw new ArgumentNullException(nameof(status)); - } - if (message == null) - { - throw new ArgumentNullException(nameof(message)); - } - - return new EnrichmentStatus(timestamp, status, message); - } - } -} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorModelFactory.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorModelFactory.cs index efc0a02dd8bc..bffc1e8d934b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorModelFactory.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorModelFactory.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.Core; using Azure.AI.MetricsAdvisor.Administration; namespace Azure.AI.MetricsAdvisor.Models @@ -12,7 +13,8 @@ namespace Azure.AI.MetricsAdvisor.Models /// A factory that builds Azure.AI.MetricsAdvisor and Azure.AI.MetricsAdvisor.Administration /// model types used for mocking. /// - public static class MetricsAdvisorModelFactory + [CodeGenType("AIMetricsAdvisorModelFactory")] + public static partial class MetricsAdvisorModelFactory { /// /// Initializes a new instance of for mocking purposes. diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs deleted file mode 100644 index b6b714b2e1e0..000000000000 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/CodeGenInternal/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -namespace Azure.AI.MetricsAdvisor.Models -{ - internal static partial class MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory - { - } -} diff --git a/sdk/monitor/Azure.Monitor.Ingestion/src/IngestionClientBuilderExtensions.cs b/sdk/monitor/Azure.Monitor.Ingestion/src/IngestionClientBuilderExtensions.cs index fe3dee9d8089..de7314a4299c 100644 --- a/sdk/monitor/Azure.Monitor.Ingestion/src/IngestionClientBuilderExtensions.cs +++ b/sdk/monitor/Azure.Monitor.Ingestion/src/IngestionClientBuilderExtensions.cs @@ -8,7 +8,7 @@ namespace Microsoft.Extensions.Azure { - [CodeGenType("IngestionUsingDataCollectionRulesClientBuilderExtensions")] + [CodeGenType("MonitorIngestionClientBuilderExtensions")] public static partial class IngestionClientBuilderExtensions { } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Models/MonitorQueryModelFactory.cs b/sdk/monitor/Azure.Monitor.Query/src/Models/MonitorQueryModelFactory.cs index 85579085c797..5129aae18e75 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Models/MonitorQueryModelFactory.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Models/MonitorQueryModelFactory.cs @@ -8,6 +8,7 @@ using System.Net.Http.Headers; using System.Text; using System.Text.Json; +using Azure.Core; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query.Models diff --git a/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs b/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs index 5e7dc9138b0a..8ae2acb51797 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs @@ -916,7 +916,7 @@ protected MySqlFlexibleServerResource() { } } namespace Azure.ResourceManager.MySql.FlexibleServers.Models { - public static partial class ArmFlexibleServersModelFactory + public static partial class ArmMySqlFlexibleServersModelFactory { public static Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerAadAdministratorData MySqlFlexibleServerAadAdministratorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerAdministratorType? administratorType = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerAdministratorType?), string login = null, string sid = null, System.Guid? tenantId = default(System.Guid?), Azure.Core.ResourceIdentifier identityResourceId = null) { throw null; } public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportResult MySqlFlexibleServerBackupAndExportResult(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportOperationStatus? status = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupAndExportOperationStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), double? percentComplete = default(double?), Azure.ResponseError error = null, long? datasourceSizeInBytes = default(long?), long? dataTransferredInBytes = default(long?), string backupMetadata = null) { throw null; } diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmMySqlFlexibleServersModelFactory.cs similarity index 99% rename from sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs rename to sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmMySqlFlexibleServersModelFactory.cs index 2633eb1aa0ea..5bc7bc08d418 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmMySqlFlexibleServersModelFactory.cs @@ -17,7 +17,7 @@ namespace Azure.ResourceManager.MySql.FlexibleServers.Models { /// Model factory for models. - public static partial class ArmFlexibleServersModelFactory + public static partial class ArmMySqlFlexibleServersModelFactory { /// Initializes a new instance of MySqlFlexibleServerAadAdministratorData. /// The id. diff --git a/sdk/openai/Azure.AI.OpenAI/api/Azure.AI.OpenAI.netstandard2.0.cs b/sdk/openai/Azure.AI.OpenAI/api/Azure.AI.OpenAI.netstandard2.0.cs index 037b7be635af..b7f6431121f0 100644 --- a/sdk/openai/Azure.AI.OpenAI/api/Azure.AI.OpenAI.netstandard2.0.cs +++ b/sdk/openai/Azure.AI.OpenAI/api/Azure.AI.OpenAI.netstandard2.0.cs @@ -1,6 +1,6 @@ namespace Azure.AI.OpenAI { - public static partial class AzureAIOpenAIModelFactory + public static partial class AIOpenAIModelFactory { public static Azure.AI.OpenAI.Choice Choice(string text = null, int index = 0, Azure.AI.OpenAI.CompletionsLogProbabilityModel logProbabilityModel = null, Azure.AI.OpenAI.CompletionsFinishReason finishReason = default(Azure.AI.OpenAI.CompletionsFinishReason)) { throw null; } public static Azure.AI.OpenAI.CompletionsLogProbabilityModel CompletionsLogProbabilityModel(System.Collections.Generic.IEnumerable tokens = null, System.Collections.Generic.IEnumerable tokenLogProbabilities = null, System.Collections.Generic.IEnumerable> topLogProbabilities = null, System.Collections.Generic.IEnumerable textOffsets = null) { throw null; } @@ -230,7 +230,7 @@ protected virtual void Dispose(bool disposing) { } } namespace Microsoft.Extensions.Azure { - public static partial class AzureAIOpenAIClientBuilderExtensions + public static partial class AIOpenAIClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddOpenAIClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddOpenAIClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureAIOpenAIClientBuilderExtensions.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AIOpenAIClientBuilderExtensions.cs similarity index 97% rename from sdk/openai/Azure.AI.OpenAI/src/Generated/AzureAIOpenAIClientBuilderExtensions.cs rename to sdk/openai/Azure.AI.OpenAI/src/Generated/AIOpenAIClientBuilderExtensions.cs index cf9b8356a116..bc32a7f2b1a4 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureAIOpenAIClientBuilderExtensions.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AIOpenAIClientBuilderExtensions.cs @@ -13,7 +13,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class AzureAIOpenAIClientBuilderExtensions + public static partial class AIOpenAIClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureAIOpenAIModelFactory.cs b/sdk/openai/Azure.AI.OpenAI/src/Generated/AIOpenAIModelFactory.cs similarity index 98% rename from sdk/openai/Azure.AI.OpenAI/src/Generated/AzureAIOpenAIModelFactory.cs rename to sdk/openai/Azure.AI.OpenAI/src/Generated/AIOpenAIModelFactory.cs index c6eac9b606a1..a423a6d69aee 100644 --- a/sdk/openai/Azure.AI.OpenAI/src/Generated/AzureAIOpenAIModelFactory.cs +++ b/sdk/openai/Azure.AI.OpenAI/src/Generated/AIOpenAIModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.AI.OpenAI { /// Model factory for models. - public static partial class AzureAIOpenAIModelFactory + public static partial class AIOpenAIModelFactory { /// Initializes a new instance of Embeddings. /// Embedding values for the prompts submitted in the request. diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/api/Azure.ResourceManager.PaloAltoNetworks.Ngfw.netstandard2.0.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/api/Azure.ResourceManager.PaloAltoNetworks.Ngfw.netstandard2.0.cs index 941499a1e758..7403da39255d 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/api/Azure.ResourceManager.PaloAltoNetworks.Ngfw.netstandard2.0.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/api/Azure.ResourceManager.PaloAltoNetworks.Ngfw.netstandard2.0.cs @@ -727,7 +727,7 @@ internal AppSeenInfo() { } public string Technology { get { throw null; } } public string Title { get { throw null; } } } - public static partial class ArmNgfwModelFactory + public static partial class ArmPaloAltoNetworksNgfwModelFactory { public static Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models.AdvSecurityObjectListResponse AdvSecurityObjectListResponse(Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models.AdvSecurityObjectModel value = null, string nextLink = null) { throw null; } public static Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models.AdvSecurityObjectModel AdvSecurityObjectModel(string advSecurityObjectModelType = null, System.Collections.Generic.IEnumerable entry = null) { throw null; } diff --git a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/ArmNgfwModelFactory.cs b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/ArmPaloAltoNetworksNgfwModelFactory.cs similarity index 99% rename from sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/ArmNgfwModelFactory.cs rename to sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/ArmPaloAltoNetworksNgfwModelFactory.cs index 11116402846a..c3fd10158ec8 100644 --- a/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/ArmNgfwModelFactory.cs +++ b/sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/src/Generated/ArmPaloAltoNetworksNgfwModelFactory.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.PaloAltoNetworks.Ngfw.Models { /// Model factory for models. - public static partial class ArmNgfwModelFactory + public static partial class ArmPaloAltoNetworksNgfwModelFactory { /// Initializes a new instance of GlobalRulestackResourceData. /// The id. diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs index a69cadb0e9eb..63bf2786e858 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/api/Azure.ResourceManager.PostgreSql.netstandard2.0.cs @@ -711,7 +711,7 @@ protected PostgreSqlFlexibleServerResource() { } } namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { - public static partial class ArmFlexibleServersModelFactory + public static partial class ArmPostgreSqlFlexibleServersModelFactory { public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerActiveDirectoryAdministratorData PostgreSqlFlexibleServerActiveDirectoryAdministratorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType? principalType = default(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerPrincipalType?), string principalName = null, System.Guid? objectId = default(System.Guid?), System.Guid? tenantId = default(System.Guid?)) { throw null; } public static Azure.ResourceManager.PostgreSql.FlexibleServers.PostgreSqlFlexibleServerBackupData PostgreSqlFlexibleServerBackupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin? backupType = default(Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerBackupOrigin?), System.DateTimeOffset? completedOn = default(System.DateTimeOffset?), string source = null) { throw null; } diff --git a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/ArmPostgreSqlFlexibleServersModelFactory.cs similarity index 99% rename from sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs rename to sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/ArmPostgreSqlFlexibleServersModelFactory.cs index b78b44120050..348e8ae0bf1d 100644 --- a/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs +++ b/sdk/postgresql/Azure.ResourceManager.PostgreSql/src/PostgreSqlFlexibleServers/Generated/ArmPostgreSqlFlexibleServersModelFactory.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.PostgreSql.FlexibleServers.Models { /// Model factory for models. - public static partial class ArmFlexibleServersModelFactory + public static partial class ArmPostgreSqlFlexibleServersModelFactory { /// Initializes a new instance of PostgreSqlFlexibleServerActiveDirectoryAdministratorData. /// The id. diff --git a/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs index 2989a5da3886..1fe52f68eeca 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/api/Azure.Analytics.Purview.Account.netstandard2.0.cs @@ -58,7 +58,7 @@ protected PurviewResourceSetRule() { } } namespace Microsoft.Extensions.Azure { - public static partial class PurviewAccountClientBuilderExtensions + public static partial class AnalyticsPurviewAccountClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewAccountClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewAccountClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewAccountClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/AnalyticsPurviewAccountClientBuilderExtensions.cs similarity index 95% rename from sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewAccountClientBuilderExtensions.cs rename to sdk/purview/Azure.Analytics.Purview.Account/src/Generated/AnalyticsPurviewAccountClientBuilderExtensions.cs index 88eb62aa8af7..e04e9cfd29e3 100644 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/PurviewAccountClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.Account/src/Generated/AnalyticsPurviewAccountClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class PurviewAccountClientBuilderExtensions + public static partial class AnalyticsPurviewAccountClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/Customizations/TemporarySuppression.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/Customizations/TemporarySuppression.cs index 0edf9df6bb59..4696ccbc7e71 100644 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/Customizations/TemporarySuppression.cs +++ b/sdk/purview/Azure.Analytics.Purview.Administration/src/Customizations/TemporarySuppression.cs @@ -7,4 +7,4 @@ // some clients' constructors have been customized and the generated aspdotnet extension is using the old constructor which leads to compilation error // until this issue is fixed in the generator, the generated aspdotnet extension class is suppressed here to temporarily solve this -[assembly: CodeGenSuppressType("PurviewAdministrationClientBuilderExtensions")] +[assembly: CodeGenSuppressType("AnalyticsPurviewAdministrationClientBuilderExtensions")] diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs index 3c5a24ea2401..ac3ca05a9ec9 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs @@ -270,7 +270,7 @@ protected PurviewTypes() { } } namespace Microsoft.Extensions.Azure { - public static partial class PurviewCatalogClientBuilderExtensions + public static partial class AnalyticsPurviewCatalogClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewCatalogClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewCatalogClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/AnalyticsPurviewCatalogClientBuilderExtensions.cs similarity index 95% rename from sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClientBuilderExtensions.cs rename to sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/AnalyticsPurviewCatalogClientBuilderExtensions.cs index bb7ec5deb5bb..d618613f9f5b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/AnalyticsPurviewCatalogClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class PurviewCatalogClientBuilderExtensions + public static partial class AnalyticsPurviewCatalogClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs index 465d1ab832ce..167ee3c54bac 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs @@ -112,7 +112,7 @@ public enum ServiceVersion } namespace Microsoft.Extensions.Azure { - public static partial class PurviewScanningServiceClientBuilderExtensions + public static partial class AnalyticsPurviewScanningClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewClassificationRuleClient(this TBuilder builder, System.Uri endpoint, string classificationRuleName) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewClassificationRuleClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/AnalyticsPurviewScanningClientBuilderExtensions.cs similarity index 98% rename from sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClientBuilderExtensions.cs rename to sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/AnalyticsPurviewScanningClientBuilderExtensions.cs index 8af9944f58c6..eadec9a99579 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/AnalyticsPurviewScanningClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add , , , to client builder. - public static partial class PurviewScanningServiceClientBuilderExtensions + public static partial class AnalyticsPurviewScanningClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs index 5d693321a9bb..4e8a9820a259 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/api/Azure.Analytics.Purview.Share.netstandard2.0.cs @@ -136,7 +136,7 @@ public SentSharesClient(string endpoint, Azure.Core.TokenCredential credential, } namespace Microsoft.Extensions.Azure { - public static partial class PurviewShareClientBuilderExtensions + public static partial class AnalyticsPurviewShareClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddAcceptedSentSharesClient(this TBuilder builder, string endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddAcceptedSentSharesClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/PurviewShareClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AnalyticsPurviewShareClientBuilderExtensions.cs similarity index 99% rename from sdk/purview/Azure.Analytics.Purview.Share/src/Generated/PurviewShareClientBuilderExtensions.cs rename to sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AnalyticsPurviewShareClientBuilderExtensions.cs index 97edd870c045..075de19cacb3 100644 --- a/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/PurviewShareClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.Share/src/Generated/AnalyticsPurviewShareClientBuilderExtensions.cs @@ -11,7 +11,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add , , , , , , , , to client builder. - public static partial class PurviewShareClientBuilderExtensions + public static partial class AnalyticsPurviewShareClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs index c2e52005a5d5..d033b1dc250b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/api/Azure.Analytics.Purview.Sharing.netstandard2.0.cs @@ -66,7 +66,7 @@ public ShareResourcesClient(System.Uri endpoint, Azure.Core.TokenCredential cred } namespace Microsoft.Extensions.Azure { - public static partial class PurviewShareClientBuilderExtensions + public static partial class AnalyticsPurviewSharingClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddReceivedSharesClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddReceivedSharesClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/PurviewShareClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/AnalyticsPurviewSharingClientBuilderExtensions.cs similarity index 98% rename from sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/PurviewShareClientBuilderExtensions.cs rename to sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/AnalyticsPurviewSharingClientBuilderExtensions.cs index a23d8dbebc64..967202d25864 100644 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/PurviewShareClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.Sharing/src/Generated/AnalyticsPurviewSharingClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add , , to client builder. - public static partial class PurviewShareClientBuilderExtensions + public static partial class AnalyticsPurviewSharingClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs index dc7bba69721c..cc135fcd8632 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/api/Azure.Analytics.Purview.Workflows.netstandard2.0.cs @@ -46,7 +46,7 @@ public enum ServiceVersion } namespace Microsoft.Extensions.Azure { - public static partial class PurviewWorkflowServiceClientBuilderExtensions + public static partial class AnalyticsPurviewWorkflowsClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewWorkflowServiceClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddPurviewWorkflowServiceClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/PurviewWorkflowServiceClientBuilderExtensions.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/AnalyticsPurviewWorkflowsClientBuilderExtensions.cs similarity index 95% rename from sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/PurviewWorkflowServiceClientBuilderExtensions.cs rename to sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/AnalyticsPurviewWorkflowsClientBuilderExtensions.cs index 916d3b45657a..e17f715c674b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/PurviewWorkflowServiceClientBuilderExtensions.cs +++ b/sdk/purview/Azure.Analytics.Purview.Workflows/src/Generated/AnalyticsPurviewWorkflowsClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. - public static partial class PurviewWorkflowServiceClientBuilderExtensions + public static partial class AnalyticsPurviewWorkflowsClientBuilderExtensions { /// Registers a instance. /// The builder to register with. diff --git a/sdk/quantum/Azure.Quantum.Jobs/api/Azure.Quantum.Jobs.netstandard2.0.cs b/sdk/quantum/Azure.Quantum.Jobs/api/Azure.Quantum.Jobs.netstandard2.0.cs index 00b4eaa9cbe9..9670daab91d8 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/api/Azure.Quantum.Jobs.netstandard2.0.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/api/Azure.Quantum.Jobs.netstandard2.0.cs @@ -206,7 +206,7 @@ internal QuantumJobQuotaList() { } public string NextLink { get { throw null; } } public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } } - public static partial class QuantumModelFactory + public static partial class QuantumJobsModelFactory { public static Azure.Quantum.Jobs.Models.CostEstimate CostEstimate(string currencyCode = null, System.Collections.Generic.IEnumerable events = null, float? estimatedTotal = default(float?)) { throw null; } public static Azure.Quantum.Jobs.Models.ErrorData ErrorData(string code = null, string message = null) { throw null; } diff --git a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumModelFactory.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumJobsModelFactory.cs similarity index 99% rename from sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumModelFactory.cs rename to sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumJobsModelFactory.cs index eea331b1ab82..73b8cc9d1ef7 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumModelFactory.cs +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumJobsModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Quantum.Jobs.Models { /// Model factory for models. - public static partial class QuantumModelFactory + public static partial class QuantumJobsModelFactory { /// Initializes a new instance of JobDetails. /// The job id. diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs index 3926ef98648c..323fd797b5ec 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.MixedReality.RemoteRendering /// /// Model factory that enables mocking for the Remote Rendering library. /// - public static class RemoteRenderingModelFactory + public static partial class RemoteRenderingModelFactory { /// /// Initializes a new instance of the class for mocking purposes. diff --git a/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs b/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs index 87c6a41660ef..9d473276413c 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs @@ -13,7 +13,7 @@ namespace Azure.Search.Documents.Models /// /// Helper class that acts as a factory for read-only models, to mock the types in Azure.Search.Documents.Models. /// - [CodeGenModel("SearchServiceModelFactory")] + [CodeGenModel("SearchDocumentsModelFactory")] [CodeGenSuppress("IndexDocumentsResult", typeof(IReadOnlyList))] public static partial class SearchModelFactory { diff --git a/sdk/storage/Azure.Storage.Blobs/src/Models/BlobsModelFactory.cs b/sdk/storage/Azure.Storage.Blobs/src/Models/BlobsModelFactory.cs index d5e7b0541826..1a77c25f7750 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Models/BlobsModelFactory.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Models/BlobsModelFactory.cs @@ -14,7 +14,7 @@ namespace Azure.Storage.Blobs.Models /// /// This class holds BlobModelFactory overloads we need for backwards compatibility. /// - [CodeGenType("AzureBlobStorageModelFactory")] + [CodeGenType("StorageBlobsModelFactory")] public static partial class BlobsModelFactory { #region BlobContentInfo diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Models/ShareModelFactory.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Models/ShareModelFactory.cs index 567de8b55b94..5626627fabd3 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/src/Models/ShareModelFactory.cs +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Models/ShareModelFactory.cs @@ -9,7 +9,7 @@ namespace Azure.Storage.Files.Shares.Models { - [CodeGenType("AzureFileStorageModelFactory")] + [CodeGenType("StorageFilesSharesModelFactory")] public static partial class ShareModelFactory { /// diff --git a/sdk/storage/Azure.Storage.Queues/src/Models/QueuesModelFactory.cs b/sdk/storage/Azure.Storage.Queues/src/Models/QueuesModelFactory.cs index 11b066e6998c..7ffc897efce4 100644 --- a/sdk/storage/Azure.Storage.Queues/src/Models/QueuesModelFactory.cs +++ b/sdk/storage/Azure.Storage.Queues/src/Models/QueuesModelFactory.cs @@ -11,7 +11,7 @@ namespace Azure.Storage.Queues.Models /// /// QueuesModelFactory provides utilities for mocking. /// - [CodeGenType("AzureQueueStorageModelFactory")] + [CodeGenType("StorageQueuesModelFactory")] public static partial class QueuesModelFactory { /// diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs index 1acdc73069f8..c836d7f306a8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/api/Azure.Analytics.Synapse.AccessControl.netstandard2.0.cs @@ -41,7 +41,7 @@ public RoleDefinitionsClient(System.Uri endpoint, Azure.Core.TokenCredential cre } namespace Microsoft.Extensions.Azure { - public static partial class AccessControlClientBuilderExtensions + public static partial class AnalyticsSynapseAccessControlClientBuilderExtensions { public static Azure.Core.Extensions.IAzureClientBuilder AddRoleAssignmentsClient(this TBuilder builder, System.Uri endpoint) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } public static Azure.Core.Extensions.IAzureClientBuilder AddRoleAssignmentsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AccessControlClientBuilderExtensions.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AnalyticsSynapseAccessControlClientBuilderExtensions.cs similarity index 97% rename from sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AccessControlClientBuilderExtensions.cs rename to sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AnalyticsSynapseAccessControlClientBuilderExtensions.cs index 85e266bc3ea4..440acebd1a5a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AccessControlClientBuilderExtensions.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AnalyticsSynapseAccessControlClientBuilderExtensions.cs @@ -12,7 +12,7 @@ namespace Microsoft.Extensions.Azure { /// Extension methods to add , to client builder. - public static partial class AccessControlClientBuilderExtensions + public static partial class AnalyticsSynapseAccessControlClientBuilderExtensions { /// Registers a instance. /// The builder to register with. 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 7765c510deeb..365ef08f4076 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 @@ -1103,25 +1103,7 @@ public AmazonS3ReadSettings() { } public object WildcardFileName { get { throw null; } set { } } public object WildcardFolderPath { get { throw null; } set { } } } - public partial class AppendVariableActivity : Azure.Analytics.Synapse.Artifacts.Models.ControlActivity - { - public AppendVariableActivity(string name) : base (default(string)) { } - public object Value { get { throw null; } set { } } - public string VariableName { get { throw null; } set { } } - } - public partial class AppFiguresLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService - { - public AppFiguresLinkedService(object userName, Azure.Analytics.Synapse.Artifacts.Models.SecretBase password, Azure.Analytics.Synapse.Artifacts.Models.SecretBase clientKey) { } - public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ClientKey { get { throw null; } set { } } - public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } - public object UserName { get { throw null; } set { } } - } - public partial class ArtifactRenameRequest - { - public ArtifactRenameRequest() { } - public string NewName { get { throw null; } set { } } - } - public static partial class ArtifactsModelFactory + public static partial class AnalyticsSynapseArtifactsModelFactory { public static Azure.Analytics.Synapse.Artifacts.Models.ActivityRun ActivityRun(string pipelineName = null, string pipelineRunId = null, string activityName = null, string activityType = null, string activityRunId = null, string linkedServiceName = null, string status = null, System.DateTimeOffset? activityRunStart = default(System.DateTimeOffset?), System.DateTimeOffset? activityRunEnd = default(System.DateTimeOffset?), int? durationInMs = default(int?), object input = null, object output = null, object error = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.ActivityRunsQueryResponse ActivityRunsQueryResponse(System.Collections.Generic.IEnumerable value = null, string continuationToken = null) { throw null; } @@ -1202,6 +1184,24 @@ public static partial class ArtifactsModelFactory public static Azure.Analytics.Synapse.Artifacts.Models.Workspace Workspace(string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary tags = null, string location = null, Azure.Analytics.Synapse.Artifacts.Models.ManagedIdentity identity = null, Azure.Analytics.Synapse.Artifacts.Models.DataLakeStorageAccountDetails defaultDataLakeStorage = null, string sqlAdministratorLoginPassword = null, string managedResourceGroupName = null, string provisioningState = null, string sqlAdministratorLogin = null, Azure.Analytics.Synapse.Artifacts.Models.VirtualNetworkProfile virtualNetworkProfile = null, System.Collections.Generic.IDictionary connectivityEndpoints = null, string managedVirtualNetwork = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.Analytics.Synapse.Artifacts.Models.EncryptionDetails encryption = null, System.Guid? workspaceUID = default(System.Guid?), System.Collections.Generic.IReadOnlyDictionary extraProperties = null, Azure.Analytics.Synapse.Artifacts.Models.ManagedVirtualNetworkSettings managedVirtualNetworkSettings = null, Azure.Analytics.Synapse.Artifacts.Models.WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = null, Azure.Analytics.Synapse.Artifacts.Models.PurviewConfiguration purviewConfiguration = null, string adlaResourceId = null) { throw null; } public static Azure.Analytics.Synapse.Artifacts.Models.WorkspaceIdentity WorkspaceIdentity(Azure.Analytics.Synapse.Artifacts.Models.WorkspaceIdentityType type = default(Azure.Analytics.Synapse.Artifacts.Models.WorkspaceIdentityType), string principalId = null, string tenantId = null) { throw null; } } + public partial class AppendVariableActivity : Azure.Analytics.Synapse.Artifacts.Models.ControlActivity + { + public AppendVariableActivity(string name) : base (default(string)) { } + public object Value { get { throw null; } set { } } + public string VariableName { get { throw null; } set { } } + } + public partial class AppFiguresLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService + { + public AppFiguresLinkedService(object userName, Azure.Analytics.Synapse.Artifacts.Models.SecretBase password, Azure.Analytics.Synapse.Artifacts.Models.SecretBase clientKey) { } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase ClientKey { get { throw null; } set { } } + public Azure.Analytics.Synapse.Artifacts.Models.SecretBase Password { get { throw null; } set { } } + public object UserName { get { throw null; } set { } } + } + public partial class ArtifactRenameRequest + { + public ArtifactRenameRequest() { } + public string NewName { get { throw null; } set { } } + } public partial class AsanaLinkedService : Azure.Analytics.Synapse.Artifacts.Models.LinkedService { public AsanaLinkedService(Azure.Analytics.Synapse.Artifacts.Models.SecretBase apiToken) { } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/ArtifactsModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs similarity index 99% rename from sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/ArtifactsModelFactory.cs rename to sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs index 30a497cf5a17..f8f09cec58ed 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/ArtifactsModelFactory.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/AnalyticsSynapseArtifactsModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Analytics.Synapse.Artifacts.Models { /// Model factory for models. - public static partial class ArtifactsModelFactory + public static partial class AnalyticsSynapseArtifactsModelFactory { /// Initializes a new instance of CloudError. /// Error code. diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/api/Azure.Analytics.Synapse.ManagedPrivateEndpoints.netstandard2.0.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/api/Azure.Analytics.Synapse.ManagedPrivateEndpoints.netstandard2.0.cs index 0fab97ff21bf..86e19e4b5663 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/api/Azure.Analytics.Synapse.ManagedPrivateEndpoints.netstandard2.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/api/Azure.Analytics.Synapse.ManagedPrivateEndpoints.netstandard2.0.cs @@ -24,6 +24,12 @@ public enum ServiceVersion } namespace Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models { + public static partial class AnalyticsSynapseManagedPrivateEndpointsModelFactory + { + public static Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpoint ManagedPrivateEndpoint(string id = null, string name = null, string type = null, Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointProperties properties = null) { throw null; } + public static Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointConnectionState ManagedPrivateEndpointConnectionState(string status = null, string description = null, string actionsRequired = null) { throw null; } + public static Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointProperties ManagedPrivateEndpointProperties(string name = null, string privateLinkResourceId = null, string groupId = null, string provisioningState = null, Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointConnectionState connectionState = null, bool? isReserved = default(bool?), System.Collections.Generic.IEnumerable fqdns = null, bool? isCompliant = default(bool?)) { throw null; } + } public partial class ManagedPrivateEndpoint { public ManagedPrivateEndpoint() { } @@ -51,10 +57,4 @@ public ManagedPrivateEndpointProperties() { } public string PrivateLinkResourceId { get { throw null; } set { } } public string ProvisioningState { get { throw null; } } } - public static partial class ManagedPrivateEndpointsModelFactory - { - public static Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpoint ManagedPrivateEndpoint(string id = null, string name = null, string type = null, Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointProperties properties = null) { throw null; } - public static Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointConnectionState ManagedPrivateEndpointConnectionState(string status = null, string description = null, string actionsRequired = null) { throw null; } - public static Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointProperties ManagedPrivateEndpointProperties(string name = null, string privateLinkResourceId = null, string groupId = null, string provisioningState = null, Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models.ManagedPrivateEndpointConnectionState connectionState = null, bool? isReserved = default(bool?), System.Collections.Generic.IEnumerable fqdns = null, bool? isCompliant = default(bool?)) { throw null; } - } } diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/AnalyticsSynapseManagedPrivateEndpointsModelFactory.cs similarity index 97% rename from sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsModelFactory.cs rename to sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/AnalyticsSynapseManagedPrivateEndpointsModelFactory.cs index cc54cbb7503e..d4fe0061756b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsModelFactory.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/AnalyticsSynapseManagedPrivateEndpointsModelFactory.cs @@ -11,7 +11,7 @@ namespace Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models { /// Model factory for models. - public static partial class ManagedPrivateEndpointsModelFactory + public static partial class AnalyticsSynapseManagedPrivateEndpointsModelFactory { /// Initializes a new instance of ManagedPrivateEndpoint. /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/api/Azure.Analytics.Synapse.Monitoring.netstandard2.0.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/api/Azure.Analytics.Synapse.Monitoring.netstandard2.0.cs index cce7ebd96eed..e318b7e1575a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/api/Azure.Analytics.Synapse.Monitoring.netstandard2.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/api/Azure.Analytics.Synapse.Monitoring.netstandard2.0.cs @@ -20,7 +20,7 @@ public enum ServiceVersion } namespace Azure.Analytics.Synapse.Monitoring.Models { - public static partial class MonitoringModelFactory + public static partial class AnalyticsSynapseMonitoringModelFactory { public static Azure.Analytics.Synapse.Monitoring.Models.SparkJob SparkJob(string state = null, string name = null, string submitter = null, string compute = null, string sparkApplicationId = null, string livyId = null, System.Collections.Generic.IEnumerable timing = null, string sparkJobDefinition = null, System.Collections.Generic.IEnumerable pipeline = null, string jobType = null, System.DateTimeOffset? submitTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), string queuedDuration = null, string runningDuration = null, string totalDuration = null) { throw null; } public static Azure.Analytics.Synapse.Monitoring.Models.SparkJobListViewResponse SparkJobListViewResponse(int? nJobs = default(int?), System.Collections.Generic.IEnumerable sparkJobs = null) { throw null; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/AnalyticsSynapseMonitoringModelFactory.cs similarity index 97% rename from sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringModelFactory.cs rename to sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/AnalyticsSynapseMonitoringModelFactory.cs index 7257991259a5..aa158635ffde 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringModelFactory.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/AnalyticsSynapseMonitoringModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Analytics.Synapse.Monitoring.Models { /// Model factory for models. - public static partial class MonitoringModelFactory + public static partial class AnalyticsSynapseMonitoringModelFactory { /// Initializes a new instance of SparkJobListViewResponse. /// diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/api/Azure.Analytics.Synapse.Spark.netstandard2.0.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/api/Azure.Analytics.Synapse.Spark.netstandard2.0.cs index 860f4436d39b..1c8bd64d6a01 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/api/Azure.Analytics.Synapse.Spark.netstandard2.0.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/api/Azure.Analytics.Synapse.Spark.netstandard2.0.cs @@ -90,6 +90,23 @@ public SparkStatementOperation(int sessionId, int statementId, Azure.Analytics.S } namespace Azure.Analytics.Synapse.Spark.Models { + public static partial class AnalyticsSynapseSparkModelFactory + { + public static Azure.Analytics.Synapse.Spark.Models.SparkBatchJob SparkBatchJob(Azure.Analytics.Synapse.Spark.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.Spark.Models.SparkJobType? jobType = default(Azure.Analytics.Synapse.Spark.Models.SparkJobType?), Azure.Analytics.Synapse.Spark.Models.SparkBatchJobResultType? result = default(Azure.Analytics.Synapse.Spark.Models.SparkBatchJobResultType?), Azure.Analytics.Synapse.Spark.Models.SparkScheduler scheduler = null, Azure.Analytics.Synapse.Spark.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.Spark.Models.LivyStates? state = default(Azure.Analytics.Synapse.Spark.Models.LivyStates?), System.Collections.Generic.IEnumerable logLines = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkBatchJobCollection SparkBatchJobCollection(int from = 0, int total = 0, System.Collections.Generic.IEnumerable sessions = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.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.Spark.Models.SparkRequest jobCreationRequest = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkRequest SparkRequest(string name = null, string file = null, string className = null, System.Collections.Generic.IEnumerable arguments = null, System.Collections.Generic.IEnumerable jars = null, System.Collections.Generic.IEnumerable pythonFiles = null, System.Collections.Generic.IEnumerable files = null, System.Collections.Generic.IEnumerable archives = null, System.Collections.Generic.IReadOnlyDictionary configuration = null, string driverMemory = null, int? driverCores = default(int?), string executorMemory = null, int? executorCores = default(int?), int? executorCount = default(int?)) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkScheduler SparkScheduler(System.DateTimeOffset? submittedAt = default(System.DateTimeOffset?), System.DateTimeOffset? scheduledAt = default(System.DateTimeOffset?), System.DateTimeOffset? endedAt = default(System.DateTimeOffset?), System.DateTimeOffset? cancellationRequestedAt = default(System.DateTimeOffset?), Azure.Analytics.Synapse.Spark.Models.SchedulerCurrentState? currentState = default(Azure.Analytics.Synapse.Spark.Models.SchedulerCurrentState?)) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkServiceError SparkServiceError(string message = null, string errorCode = null, Azure.Analytics.Synapse.Spark.Models.SparkErrorSource? source = default(Azure.Analytics.Synapse.Spark.Models.SparkErrorSource?)) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkServicePlugin SparkServicePlugin(System.DateTimeOffset? preparationStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? resourceAcquisitionStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? submissionStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? monitoringStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? cleanupStartedAt = default(System.DateTimeOffset?), Azure.Analytics.Synapse.Spark.Models.PluginCurrentState? currentState = default(Azure.Analytics.Synapse.Spark.Models.PluginCurrentState?)) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkSession SparkSession(Azure.Analytics.Synapse.Spark.Models.SparkSessionState livyInfo = null, string name = null, string workspaceName = null, string sparkPoolName = null, string submitterName = null, string submitterId = null, string artifactId = null, Azure.Analytics.Synapse.Spark.Models.SparkJobType? jobType = default(Azure.Analytics.Synapse.Spark.Models.SparkJobType?), Azure.Analytics.Synapse.Spark.Models.SparkSessionResultType? result = default(Azure.Analytics.Synapse.Spark.Models.SparkSessionResultType?), Azure.Analytics.Synapse.Spark.Models.SparkScheduler scheduler = null, Azure.Analytics.Synapse.Spark.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.Spark.Models.LivyStates? state = default(Azure.Analytics.Synapse.Spark.Models.LivyStates?), System.Collections.Generic.IEnumerable logLines = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkSessionCollection SparkSessionCollection(int from = 0, int total = 0, System.Collections.Generic.IEnumerable sessions = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkSessionState SparkSessionState(System.DateTimeOffset? notStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? startingAt = default(System.DateTimeOffset?), System.DateTimeOffset? idleAt = default(System.DateTimeOffset?), System.DateTimeOffset? deadAt = default(System.DateTimeOffset?), System.DateTimeOffset? shuttingDownAt = default(System.DateTimeOffset?), System.DateTimeOffset? terminatedAt = default(System.DateTimeOffset?), System.DateTimeOffset? recoveringAt = default(System.DateTimeOffset?), System.DateTimeOffset? busyAt = default(System.DateTimeOffset?), System.DateTimeOffset? errorAt = default(System.DateTimeOffset?), string currentState = null, Azure.Analytics.Synapse.Spark.Models.SparkRequest jobCreationRequest = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkStatement SparkStatement(int id = 0, string code = null, Azure.Analytics.Synapse.Spark.Models.LivyStatementStates? state = default(Azure.Analytics.Synapse.Spark.Models.LivyStatementStates?), Azure.Analytics.Synapse.Spark.Models.SparkStatementOutput output = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkStatementCancellationResult SparkStatementCancellationResult(string message = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkStatementCollection SparkStatementCollection(int total = 0, System.Collections.Generic.IEnumerable statements = null) { throw null; } + public static Azure.Analytics.Synapse.Spark.Models.SparkStatementOutput SparkStatementOutput(string status = null, int executionCount = 0, object data = null, string errorName = null, string errorValue = null, System.Collections.Generic.IEnumerable traceback = null) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct LivyStatementStates : System.IEquatable { @@ -308,23 +325,6 @@ public enum SparkBatchOperationCompletionType public static bool operator !=(Azure.Analytics.Synapse.Spark.Models.SparkJobType left, Azure.Analytics.Synapse.Spark.Models.SparkJobType right) { throw null; } public override string ToString() { throw null; } } - public static partial class SparkModelFactory - { - public static Azure.Analytics.Synapse.Spark.Models.SparkBatchJob SparkBatchJob(Azure.Analytics.Synapse.Spark.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.Spark.Models.SparkJobType? jobType = default(Azure.Analytics.Synapse.Spark.Models.SparkJobType?), Azure.Analytics.Synapse.Spark.Models.SparkBatchJobResultType? result = default(Azure.Analytics.Synapse.Spark.Models.SparkBatchJobResultType?), Azure.Analytics.Synapse.Spark.Models.SparkScheduler scheduler = null, Azure.Analytics.Synapse.Spark.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.Spark.Models.LivyStates? state = default(Azure.Analytics.Synapse.Spark.Models.LivyStates?), System.Collections.Generic.IEnumerable logLines = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkBatchJobCollection SparkBatchJobCollection(int from = 0, int total = 0, System.Collections.Generic.IEnumerable sessions = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.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.Spark.Models.SparkRequest jobCreationRequest = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkRequest SparkRequest(string name = null, string file = null, string className = null, System.Collections.Generic.IEnumerable arguments = null, System.Collections.Generic.IEnumerable jars = null, System.Collections.Generic.IEnumerable pythonFiles = null, System.Collections.Generic.IEnumerable files = null, System.Collections.Generic.IEnumerable archives = null, System.Collections.Generic.IReadOnlyDictionary configuration = null, string driverMemory = null, int? driverCores = default(int?), string executorMemory = null, int? executorCores = default(int?), int? executorCount = default(int?)) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkScheduler SparkScheduler(System.DateTimeOffset? submittedAt = default(System.DateTimeOffset?), System.DateTimeOffset? scheduledAt = default(System.DateTimeOffset?), System.DateTimeOffset? endedAt = default(System.DateTimeOffset?), System.DateTimeOffset? cancellationRequestedAt = default(System.DateTimeOffset?), Azure.Analytics.Synapse.Spark.Models.SchedulerCurrentState? currentState = default(Azure.Analytics.Synapse.Spark.Models.SchedulerCurrentState?)) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkServiceError SparkServiceError(string message = null, string errorCode = null, Azure.Analytics.Synapse.Spark.Models.SparkErrorSource? source = default(Azure.Analytics.Synapse.Spark.Models.SparkErrorSource?)) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkServicePlugin SparkServicePlugin(System.DateTimeOffset? preparationStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? resourceAcquisitionStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? submissionStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? monitoringStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? cleanupStartedAt = default(System.DateTimeOffset?), Azure.Analytics.Synapse.Spark.Models.PluginCurrentState? currentState = default(Azure.Analytics.Synapse.Spark.Models.PluginCurrentState?)) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkSession SparkSession(Azure.Analytics.Synapse.Spark.Models.SparkSessionState livyInfo = null, string name = null, string workspaceName = null, string sparkPoolName = null, string submitterName = null, string submitterId = null, string artifactId = null, Azure.Analytics.Synapse.Spark.Models.SparkJobType? jobType = default(Azure.Analytics.Synapse.Spark.Models.SparkJobType?), Azure.Analytics.Synapse.Spark.Models.SparkSessionResultType? result = default(Azure.Analytics.Synapse.Spark.Models.SparkSessionResultType?), Azure.Analytics.Synapse.Spark.Models.SparkScheduler scheduler = null, Azure.Analytics.Synapse.Spark.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.Spark.Models.LivyStates? state = default(Azure.Analytics.Synapse.Spark.Models.LivyStates?), System.Collections.Generic.IEnumerable logLines = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkSessionCollection SparkSessionCollection(int from = 0, int total = 0, System.Collections.Generic.IEnumerable sessions = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkSessionState SparkSessionState(System.DateTimeOffset? notStartedAt = default(System.DateTimeOffset?), System.DateTimeOffset? startingAt = default(System.DateTimeOffset?), System.DateTimeOffset? idleAt = default(System.DateTimeOffset?), System.DateTimeOffset? deadAt = default(System.DateTimeOffset?), System.DateTimeOffset? shuttingDownAt = default(System.DateTimeOffset?), System.DateTimeOffset? terminatedAt = default(System.DateTimeOffset?), System.DateTimeOffset? recoveringAt = default(System.DateTimeOffset?), System.DateTimeOffset? busyAt = default(System.DateTimeOffset?), System.DateTimeOffset? errorAt = default(System.DateTimeOffset?), string currentState = null, Azure.Analytics.Synapse.Spark.Models.SparkRequest jobCreationRequest = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkStatement SparkStatement(int id = 0, string code = null, Azure.Analytics.Synapse.Spark.Models.LivyStatementStates? state = default(Azure.Analytics.Synapse.Spark.Models.LivyStatementStates?), Azure.Analytics.Synapse.Spark.Models.SparkStatementOutput output = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkStatementCancellationResult SparkStatementCancellationResult(string message = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkStatementCollection SparkStatementCollection(int total = 0, System.Collections.Generic.IEnumerable statements = null) { throw null; } - public static Azure.Analytics.Synapse.Spark.Models.SparkStatementOutput SparkStatementOutput(string status = null, int executionCount = 0, object data = null, string errorName = null, string errorValue = null, System.Collections.Generic.IEnumerable traceback = null) { throw null; } - } public partial class SparkRequest { internal SparkRequest() { } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/AnalyticsSynapseSparkModelFactory.cs similarity index 99% rename from sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkModelFactory.cs rename to sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/AnalyticsSynapseSparkModelFactory.cs index 4c7cc552fcb4..78126dfaf474 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkModelFactory.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/AnalyticsSynapseSparkModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.Analytics.Synapse.Spark.Models { /// Model factory for models. - public static partial class SparkModelFactory + public static partial class AnalyticsSynapseSparkModelFactory { /// Initializes a new instance of SparkBatchJobCollection. /// The start index of fetched sessions. diff --git a/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs b/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs index fd36c6dbe634..8612f2dc5480 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs @@ -5,8 +5,8 @@ namespace Azure.Data.Tables.Models { - [CodeGenModel("AzureDataTablesModelFactory")] - public partial class TableModelFactory + [CodeGenModel("DataTablesModelFactory")] + public static partial class TableModelFactory { /// Initializes new instance of TableItem class. /// The name of the table. diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs index 09e77c6e226a..77f241dc3cee 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs @@ -42,6 +42,16 @@ public InterpolationBoundary() { } public static bool operator !=(Azure.IoT.TimeSeriesInsights.InterpolationKind left, Azure.IoT.TimeSeriesInsights.InterpolationKind right) { throw null; } public override string ToString() { throw null; } } + public static partial class IoTTimeSeriesInsightsModelFactory + { + public static Azure.IoT.TimeSeriesInsights.InstancesOperationResult InstancesOperationResult(Azure.IoT.TimeSeriesInsights.TimeSeriesInstance instance = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError error = null) { throw null; } + public static Azure.IoT.TimeSeriesInsights.TimeSeriesHierarchyOperationResult TimeSeriesHierarchyOperationResult(Azure.IoT.TimeSeriesInsights.TimeSeriesHierarchy hierarchy = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError error = null) { throw null; } + public static Azure.IoT.TimeSeriesInsights.TimeSeriesIdProperty TimeSeriesIdProperty(string name = null, Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyType? type = default(Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyType?)) { throw null; } + public static Azure.IoT.TimeSeriesInsights.TimeSeriesModelSettings TimeSeriesModelSettings(string name = null, System.Collections.Generic.IEnumerable timeSeriesIdProperties = null, string defaultTypeId = null) { throw null; } + public static Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError TimeSeriesOperationError(string code = null, string message = null, string target = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError innerError = null, System.Collections.Generic.IEnumerable details = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } + public static Azure.IoT.TimeSeriesInsights.TimeSeriesOperationErrorDetails TimeSeriesOperationErrorDetails(string code = null, string message = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } + public static Azure.IoT.TimeSeriesInsights.TimeSeriesTypeOperationResult TimeSeriesTypeOperationResult(Azure.IoT.TimeSeriesInsights.TimeSeriesType timeSeriesType = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError error = null) { throw null; } + } public partial class NumericVariable : Azure.IoT.TimeSeriesInsights.TimeSeriesVariable { public NumericVariable(Azure.IoT.TimeSeriesInsights.TimeSeriesExpression value, Azure.IoT.TimeSeriesInsights.TimeSeriesExpression aggregation) { } @@ -219,16 +229,6 @@ protected TimeSeriesInsightsInstances() { } public virtual Azure.Response Replace(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ReplaceAsync(System.Collections.Generic.IEnumerable timeSeriesInstances, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public static partial class TimeSeriesInsightsModelFactory - { - public static Azure.IoT.TimeSeriesInsights.InstancesOperationResult InstancesOperationResult(Azure.IoT.TimeSeriesInsights.TimeSeriesInstance instance = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError error = null) { throw null; } - public static Azure.IoT.TimeSeriesInsights.TimeSeriesHierarchyOperationResult TimeSeriesHierarchyOperationResult(Azure.IoT.TimeSeriesInsights.TimeSeriesHierarchy hierarchy = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError error = null) { throw null; } - public static Azure.IoT.TimeSeriesInsights.TimeSeriesIdProperty TimeSeriesIdProperty(string name = null, Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyType? type = default(Azure.IoT.TimeSeriesInsights.TimeSeriesIdPropertyType?)) { throw null; } - public static Azure.IoT.TimeSeriesInsights.TimeSeriesModelSettings TimeSeriesModelSettings(string name = null, System.Collections.Generic.IEnumerable timeSeriesIdProperties = null, string defaultTypeId = null) { throw null; } - public static Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError TimeSeriesOperationError(string code = null, string message = null, string target = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError innerError = null, System.Collections.Generic.IEnumerable details = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } - public static Azure.IoT.TimeSeriesInsights.TimeSeriesOperationErrorDetails TimeSeriesOperationErrorDetails(string code = null, string message = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } - public static Azure.IoT.TimeSeriesInsights.TimeSeriesTypeOperationResult TimeSeriesTypeOperationResult(Azure.IoT.TimeSeriesInsights.TimeSeriesType timeSeriesType = null, Azure.IoT.TimeSeriesInsights.TimeSeriesOperationError error = null) { throw null; } - } public partial class TimeSeriesInsightsModelSettings { protected TimeSeriesInsightsModelSettings() { } diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/TimeSeriesInsightsModelFactory.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/IoTTimeSeriesInsightsModelFactory.cs similarity index 99% rename from sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/TimeSeriesInsightsModelFactory.cs rename to sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/IoTTimeSeriesInsightsModelFactory.cs index b959513733a0..3acad3b57b9a 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/TimeSeriesInsightsModelFactory.cs +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/IoTTimeSeriesInsightsModelFactory.cs @@ -11,7 +11,7 @@ namespace Azure.IoT.TimeSeriesInsights { /// Model factory for models. - public static partial class TimeSeriesInsightsModelFactory + public static partial class IoTTimeSeriesInsightsModelFactory { /// Initializes a new instance of TimeSeriesOperationError. /// Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programmatically handle specific error cases. diff --git a/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationModelFactory.cs b/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationModelFactory.cs index ee7aa8edee35..62f18189723b 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationModelFactory.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationModelFactory.cs @@ -10,7 +10,7 @@ namespace Azure.AI.Translation.Document /// /// Model factory that enables mocking for the Document Translation Library. /// - [CodeGenModel("BatchDocumentTranslationModelFactory")] + [CodeGenModel("AITranslationDocumentModelFactory")] public static partial class DocumentTranslationModelFactory { #region Statuses diff --git a/sdk/translation/Azure.AI.Translation.Text/api/Azure.AI.Translation.Text.netstandard2.0.cs b/sdk/translation/Azure.AI.Translation.Text/api/Azure.AI.Translation.Text.netstandard2.0.cs index a94a83ffcd9e..67bc13edc30a 100644 --- a/sdk/translation/Azure.AI.Translation.Text/api/Azure.AI.Translation.Text.netstandard2.0.cs +++ b/sdk/translation/Azure.AI.Translation.Text/api/Azure.AI.Translation.Text.netstandard2.0.cs @@ -1,6 +1,6 @@ namespace Azure.AI.Translation.Text { - public static partial class AzureAITranslationTextModelFactory + public static partial class AITranslationTextModelFactory { public static Azure.AI.Translation.Text.BackTranslation BackTranslation(string normalizedText = null, string displayText = null, int numExamples = 0, int frequencyCount = 0) { throw null; } public static Azure.AI.Translation.Text.BreakSentenceItem BreakSentenceItem(Azure.AI.Translation.Text.DetectedLanguage detectedLanguage = null, System.Collections.Generic.IEnumerable sentLen = null) { throw null; } @@ -280,7 +280,7 @@ internal TransliterationLanguage() { } public System.Collections.Generic.IReadOnlyList Scripts { get { throw null; } } } } -namespace Azure.AI.Translation.Text.Custom +namespace Microsoft.Extensions.Azure { public static partial class TextTranslationClientBuilderExtensions { diff --git a/sdk/translation/Azure.AI.Translation.Text/src/Custom/TextTranslationClientBuilderExtensions.cs b/sdk/translation/Azure.AI.Translation.Text/src/Custom/TextTranslationClientBuilderExtensions.cs index 93cfb7abf2e4..78d25726c9d8 100644 --- a/sdk/translation/Azure.AI.Translation.Text/src/Custom/TextTranslationClientBuilderExtensions.cs +++ b/sdk/translation/Azure.AI.Translation.Text/src/Custom/TextTranslationClientBuilderExtensions.cs @@ -10,10 +10,10 @@ using Azure.Core; using Azure.Core.Extensions; -//TODO: there is no way to only suppress a single memmber of a static class so we need to have everything custom here. -[assembly: CodeGenSuppressType("AzureAITranslationTextClientBuilderExtensions")] +//TODO: there is no way to only suppress a single member of a static class so we need to have everything custom here. +[assembly: CodeGenSuppressType("AITranslationTextClientBuilderExtensions")] -namespace Azure.AI.Translation.Text.Custom +namespace Microsoft.Extensions.Azure { /// Extension methods to add to client builder. public static partial class TextTranslationClientBuilderExtensions diff --git a/sdk/translation/Azure.AI.Translation.Text/src/Generated/AzureAITranslationTextModelFactory.cs b/sdk/translation/Azure.AI.Translation.Text/src/Generated/AITranslationTextModelFactory.cs similarity index 99% rename from sdk/translation/Azure.AI.Translation.Text/src/Generated/AzureAITranslationTextModelFactory.cs rename to sdk/translation/Azure.AI.Translation.Text/src/Generated/AITranslationTextModelFactory.cs index fde582dedd58..0047d7b60cbd 100644 --- a/sdk/translation/Azure.AI.Translation.Text/src/Generated/AzureAITranslationTextModelFactory.cs +++ b/sdk/translation/Azure.AI.Translation.Text/src/Generated/AITranslationTextModelFactory.cs @@ -12,7 +12,7 @@ namespace Azure.AI.Translation.Text { /// Model factory for models. - public static partial class AzureAITranslationTextModelFactory + public static partial class AITranslationTextModelFactory { /// Initializes a new instance of GetLanguagesResult. /// Languages that support translate API. diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClientBuilderExtensions.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClientBuilderExtensions.cs index c503401ad380..04149fe284a9 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClientBuilderExtensions.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClientBuilderExtensions.cs @@ -8,8 +8,8 @@ using Azure.Core.Extensions; using Azure.Messaging.WebPubSub; -//TODO: there is no way to only suppress a single memmber of a static class so we need to have everything custom here. -[assembly: CodeGenSuppressType("WebPubSubServiceClientBuilderExtensions")] +//TODO: there is no way to only suppress a single member of a static class so we need to have everything custom here. +[assembly: CodeGenSuppressType("MessagingWebPubSubClientBuilderExtensions")] namespace Microsoft.Extensions.Azure {